Update debhelper compatibility level to V7
[shibboleth/sp.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for shibboleth 2.3.1.
4 #
5 # Report bugs to <shibboleth-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='shibboleth'
425 PACKAGE_TARNAME='shibboleth'
426 PACKAGE_VERSION='2.3.1'
427 PACKAGE_STRING='shibboleth 2.3.1'
428 PACKAGE_BUGREPORT='shibboleth-users@internet2.edu'
429
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DX_PROJECT DX_CONFIG DX_DOCDIR DX_ENV DX_FLAG_doc DX_DOXYGEN ac_pt_DX_DOXYGEN DX_PERL ac_pt_DX_PERL DX_COND_doc_TRUE DX_COND_doc_FALSE DX_FLAG_dot DX_DOT ac_pt_DX_DOT DX_COND_dot_TRUE DX_COND_dot_FALSE DX_FLAG_man DX_COND_man_TRUE DX_COND_man_FALSE DX_FLAG_rtf DX_COND_rtf_TRUE DX_COND_rtf_FALSE DX_FLAG_xml DX_COND_xml_TRUE DX_COND_xml_FALSE DX_FLAG_chm DX_HHC ac_pt_DX_HHC DX_COND_chm_TRUE DX_COND_chm_FALSE DX_FLAG_chi DX_COND_chi_TRUE DX_COND_chi_FALSE DX_FLAG_html DX_COND_html_TRUE DX_COND_html_FALSE DX_FLAG_ps DX_LATEX ac_pt_DX_LATEX DX_MAKEINDEX ac_pt_DX_MAKEINDEX DX_DVIPS ac_pt_DX_DVIPS DX_EGREP ac_pt_DX_EGREP DX_COND_ps_TRUE DX_COND_ps_FALSE DX_FLAG_pdf DX_PDFLATEX ac_pt_DX_PDFLATEX DX_COND_pdf_TRUE DX_COND_pdf_FALSE DX_COND_latex_TRUE DX_COND_latex_FALSE DOXYGEN_PAPER_SIZE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS PKG_CONFIG LOG4SHIB_CONFIG LOG4CPP_CONFIG XMLTOOLINGXMLDIR OPENSAMLXMLDIR LITE_LIBS XMLSEC_LIBS NSAPI_INCLUDE BUILD_NSAPI_TRUE BUILD_NSAPI_FALSE FASTCGI_INCLUDE FASTCGI_LDFLAGS FASTCGI_LIBS BUILD_FASTCGI_TRUE BUILD_FASTCGI_FALSE MEMCACHED_INCLUDE MEMCACHED_LDFLAGS MEMCACHED_LIBS BUILD_MEMCACHED_TRUE BUILD_MEMCACHED_FALSE xs APXS APXS_CFLAGS APXS_INCLUDE APXS2 APR_CONFIG APU_CONFIG APXS2_CFLAGS APXS2_INCLUDE APXS22 APR1_CONFIG APU1_CONFIG APXS22_CFLAGS APXS22_INCLUDE BUILD_AP13_TRUE BUILD_AP13_FALSE BUILD_AP20_TRUE BUILD_AP20_FALSE BUILD_AP22_TRUE BUILD_AP22_FALSE ODBC_CONFIG ODBC_CFLAGS ODBC_LIBS WANT_SUBDIRS 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 shibboleth 2.3.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 shibboleth 2.3.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   --disable-adfs          don't build the ADFS module
1055   --enable-apache-13      enable the Apache 1.3 module
1056   --enable-apache-20      enable the Apache 2.0 module
1057   --enable-apache-22      enable the Apache 2.2 module
1058   --disable-odbc          disable the ODBC Storage Service
1059
1060 Optional Packages:
1061   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1062   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1063   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1064   --with-pic              try to use only PIC/non-PIC objects [default=use
1065                           both]
1066   --with-tags[=TAGS]
1067                           include additional configurations [automatic]
1068   --with-openssl=PATH     where openssl is installed
1069   --with-log4shib=PATH    where log4shib-config is installed
1070   --with-log4cpp=PATH     where log4cpp-config is installed
1071   --with-xerces=PATH      where xerces-c is installed
1072   --with-xmltooling=PATH  where xmltooling-c is installed
1073   --with-xmlsec=PATH      where xmlsec is installed
1074   --with-saml=PATH        where saml is installed
1075   --with-nsapi=DIR        Build NSAPI module for Netscape/iPlanet/SunONE
1076   --with-fastcgi=DIR      Build FastCGI support
1077   --with-memcached=DIR    Build Memcached support
1078   --with-apxs=FILE        Specifies where to find the Apache 1.3 apxs script.
1079   --with-apxs2=FILE       Specifies where to find the Apache 2.0 apxs script.
1080   --with-apr=PATH         where apr-config is installed
1081   --with-apu=PATH         where apu-config is installed
1082   --with-apxs22=FILE      Specifies where to find the Apache 2.2 apxs script.
1083   --with-apr1=PATH        where apr-1-config is installed
1084   --with-apu1=PATH        where apu-1-config is installed
1085   --with-odbc=PATH        directory where odbc is installed
1086
1087 Some influential environment variables:
1088   DOXYGEN_PAPER_SIZE
1089               a4wide (default), a4, letter, legal or executive
1090   CC          C compiler command
1091   CFLAGS      C compiler flags
1092   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1093               nonstandard directory <lib dir>
1094   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1095               headers in a nonstandard directory <include dir>
1096   CXX         C++ compiler command
1097   CXXFLAGS    C++ compiler flags
1098   CPP         C preprocessor
1099   CXXCPP      C++ preprocessor
1100   F77         Fortran 77 compiler command
1101   FFLAGS      Fortran 77 compiler flags
1102
1103 Use these variables to override the choices made by `configure' or to help
1104 it to find libraries and programs with nonstandard names/locations.
1105
1106 Report bugs to <shibboleth-users@internet2.edu>.
1107 _ACEOF
1108 fi
1109
1110 if test "$ac_init_help" = "recursive"; then
1111   # If there are subdirs, report their specific --help.
1112   ac_popdir=`pwd`
1113   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1114     test -d $ac_dir || continue
1115     ac_builddir=.
1116
1117 if test "$ac_dir" != .; then
1118   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1119   # A "../" for each directory in $ac_dir_suffix.
1120   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1121 else
1122   ac_dir_suffix= ac_top_builddir=
1123 fi
1124
1125 case $srcdir in
1126   .)  # No --srcdir option.  We are building in place.
1127     ac_srcdir=.
1128     if test -z "$ac_top_builddir"; then
1129        ac_top_srcdir=.
1130     else
1131        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1132     fi ;;
1133   [\\/]* | ?:[\\/]* )  # Absolute path.
1134     ac_srcdir=$srcdir$ac_dir_suffix;
1135     ac_top_srcdir=$srcdir ;;
1136   *) # Relative path.
1137     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1138     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1139 esac
1140
1141 # Do not use `cd foo && pwd` to compute absolute paths, because
1142 # the directories may not exist.
1143 case `pwd` in
1144 .) ac_abs_builddir="$ac_dir";;
1145 *)
1146   case "$ac_dir" in
1147   .) ac_abs_builddir=`pwd`;;
1148   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1149   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1150   esac;;
1151 esac
1152 case $ac_abs_builddir in
1153 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 *)
1155   case ${ac_top_builddir}. in
1156   .) ac_abs_top_builddir=$ac_abs_builddir;;
1157   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1158   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1159   esac;;
1160 esac
1161 case $ac_abs_builddir in
1162 .) ac_abs_srcdir=$ac_srcdir;;
1163 *)
1164   case $ac_srcdir in
1165   .) ac_abs_srcdir=$ac_abs_builddir;;
1166   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1167   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1168   esac;;
1169 esac
1170 case $ac_abs_builddir in
1171 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 *)
1173   case $ac_top_srcdir in
1174   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1175   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1176   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1177   esac;;
1178 esac
1179
1180     cd $ac_dir
1181     # Check for guested configure; otherwise get Cygnus style configure.
1182     if test -f $ac_srcdir/configure.gnu; then
1183       echo
1184       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1185     elif test -f $ac_srcdir/configure; then
1186       echo
1187       $SHELL $ac_srcdir/configure  --help=recursive
1188     elif test -f $ac_srcdir/configure.ac ||
1189            test -f $ac_srcdir/configure.in; then
1190       echo
1191       $ac_configure --help
1192     else
1193       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1194     fi
1195     cd $ac_popdir
1196   done
1197 fi
1198
1199 test -n "$ac_init_help" && exit 0
1200 if $ac_init_version; then
1201   cat <<\_ACEOF
1202 shibboleth configure 2.3.1
1203 generated by GNU Autoconf 2.59
1204
1205 Copyright (C) 2003 Free Software Foundation, Inc.
1206 This configure script is free software; the Free Software Foundation
1207 gives unlimited permission to copy, distribute and modify it.
1208 _ACEOF
1209   exit 0
1210 fi
1211 exec 5>config.log
1212 cat >&5 <<_ACEOF
1213 This file contains any messages produced by compilers while
1214 running configure, to aid debugging if configure makes a mistake.
1215
1216 It was created by shibboleth $as_me 2.3.1, which was
1217 generated by GNU Autoconf 2.59.  Invocation command line was
1218
1219   $ $0 $@
1220
1221 _ACEOF
1222 {
1223 cat <<_ASUNAME
1224 ## --------- ##
1225 ## Platform. ##
1226 ## --------- ##
1227
1228 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1229 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1230 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1231 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1232 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1233
1234 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1235 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1236
1237 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1238 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1239 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1240 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1241 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1242 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1243 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1244
1245 _ASUNAME
1246
1247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1248 for as_dir in $PATH
1249 do
1250   IFS=$as_save_IFS
1251   test -z "$as_dir" && as_dir=.
1252   echo "PATH: $as_dir"
1253 done
1254
1255 } >&5
1256
1257 cat >&5 <<_ACEOF
1258
1259
1260 ## ----------- ##
1261 ## Core tests. ##
1262 ## ----------- ##
1263
1264 _ACEOF
1265
1266
1267 # Keep a trace of the command line.
1268 # Strip out --no-create and --no-recursion so they do not pile up.
1269 # Strip out --silent because we don't want to record it for future runs.
1270 # Also quote any args containing shell meta-characters.
1271 # Make two passes to allow for proper duplicate-argument suppression.
1272 ac_configure_args=
1273 ac_configure_args0=
1274 ac_configure_args1=
1275 ac_sep=
1276 ac_must_keep_next=false
1277 for ac_pass in 1 2
1278 do
1279   for ac_arg
1280   do
1281     case $ac_arg in
1282     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1283     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1284     | -silent | --silent | --silen | --sile | --sil)
1285       continue ;;
1286     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1288     esac
1289     case $ac_pass in
1290     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1291     2)
1292       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1293       if test $ac_must_keep_next = true; then
1294         ac_must_keep_next=false # Got value, back to normal.
1295       else
1296         case $ac_arg in
1297           *=* | --config-cache | -C | -disable-* | --disable-* \
1298           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1299           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1300           | -with-* | --with-* | -without-* | --without-* | --x)
1301             case "$ac_configure_args0 " in
1302               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1303             esac
1304             ;;
1305           -* ) ac_must_keep_next=true ;;
1306         esac
1307       fi
1308       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1309       # Get rid of the leading space.
1310       ac_sep=" "
1311       ;;
1312     esac
1313   done
1314 done
1315 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1316 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1317
1318 # When interrupted or exit'd, cleanup temporary files, and complete
1319 # config.log.  We remove comments because anyway the quotes in there
1320 # would cause problems or look ugly.
1321 # WARNING: Be sure not to use single quotes in there, as some shells,
1322 # such as our DU 5.0 friend, will then `close' the trap.
1323 trap 'exit_status=$?
1324   # Save into config.log some information that might help in debugging.
1325   {
1326     echo
1327
1328     cat <<\_ASBOX
1329 ## ---------------- ##
1330 ## Cache variables. ##
1331 ## ---------------- ##
1332 _ASBOX
1333     echo
1334     # The following way of writing the cache mishandles newlines in values,
1335 {
1336   (set) 2>&1 |
1337     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1338     *ac_space=\ *)
1339       sed -n \
1340         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1341           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1342       ;;
1343     *)
1344       sed -n \
1345         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1346       ;;
1347     esac;
1348 }
1349     echo
1350
1351     cat <<\_ASBOX
1352 ## ----------------- ##
1353 ## Output variables. ##
1354 ## ----------------- ##
1355 _ASBOX
1356     echo
1357     for ac_var in $ac_subst_vars
1358     do
1359       eval ac_val=$`echo $ac_var`
1360       echo "$ac_var='"'"'$ac_val'"'"'"
1361     done | sort
1362     echo
1363
1364     if test -n "$ac_subst_files"; then
1365       cat <<\_ASBOX
1366 ## ------------- ##
1367 ## Output files. ##
1368 ## ------------- ##
1369 _ASBOX
1370       echo
1371       for ac_var in $ac_subst_files
1372       do
1373         eval ac_val=$`echo $ac_var`
1374         echo "$ac_var='"'"'$ac_val'"'"'"
1375       done | sort
1376       echo
1377     fi
1378
1379     if test -s confdefs.h; then
1380       cat <<\_ASBOX
1381 ## ----------- ##
1382 ## confdefs.h. ##
1383 ## ----------- ##
1384 _ASBOX
1385       echo
1386       sed "/^$/d" confdefs.h | sort
1387       echo
1388     fi
1389     test "$ac_signal" != 0 &&
1390       echo "$as_me: caught signal $ac_signal"
1391     echo "$as_me: exit $exit_status"
1392   } >&5
1393   rm -f core *.core &&
1394   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1395     exit $exit_status
1396      ' 0
1397 for ac_signal in 1 2 13 15; do
1398   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1399 done
1400 ac_signal=0
1401
1402 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1403 rm -rf conftest* confdefs.h
1404 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1405 echo >confdefs.h
1406
1407 # Predefined preprocessor variables.
1408
1409 cat >>confdefs.h <<_ACEOF
1410 #define PACKAGE_NAME "$PACKAGE_NAME"
1411 _ACEOF
1412
1413
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1416 _ACEOF
1417
1418
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1421 _ACEOF
1422
1423
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_STRING "$PACKAGE_STRING"
1426 _ACEOF
1427
1428
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1431 _ACEOF
1432
1433
1434 # Let the site file select an alternate cache file if it wants to.
1435 # Prefer explicitly selected file to automatically selected ones.
1436 if test -z "$CONFIG_SITE"; then
1437   if test "x$prefix" != xNONE; then
1438     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1439   else
1440     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1441   fi
1442 fi
1443 for ac_site_file in $CONFIG_SITE; do
1444   if test -r "$ac_site_file"; then
1445     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1446 echo "$as_me: loading site script $ac_site_file" >&6;}
1447     sed 's/^/| /' "$ac_site_file" >&5
1448     . "$ac_site_file"
1449   fi
1450 done
1451
1452 if test -r "$cache_file"; then
1453   # Some versions of bash will fail to source /dev/null (special
1454   # files actually), so we avoid doing that.
1455   if test -f "$cache_file"; then
1456     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1457 echo "$as_me: loading cache $cache_file" >&6;}
1458     case $cache_file in
1459       [\\/]* | ?:[\\/]* ) . $cache_file;;
1460       *)                      . ./$cache_file;;
1461     esac
1462   fi
1463 else
1464   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1465 echo "$as_me: creating cache $cache_file" >&6;}
1466   >$cache_file
1467 fi
1468
1469 # Check that the precious variables saved in the cache have kept the same
1470 # value.
1471 ac_cache_corrupted=false
1472 for ac_var in `(set) 2>&1 |
1473                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1474   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1475   eval ac_new_set=\$ac_env_${ac_var}_set
1476   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1477   eval ac_new_val="\$ac_env_${ac_var}_value"
1478   case $ac_old_set,$ac_new_set in
1479     set,)
1480       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1481 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1482       ac_cache_corrupted=: ;;
1483     ,set)
1484       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1485 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1486       ac_cache_corrupted=: ;;
1487     ,);;
1488     *)
1489       if test "x$ac_old_val" != "x$ac_new_val"; then
1490         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1491 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1492         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1493 echo "$as_me:   former value:  $ac_old_val" >&2;}
1494         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1495 echo "$as_me:   current value: $ac_new_val" >&2;}
1496         ac_cache_corrupted=:
1497       fi;;
1498   esac
1499   # Pass precious variables to config.status.
1500   if test "$ac_new_set" = set; then
1501     case $ac_new_val in
1502     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1503       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1504     *) ac_arg=$ac_var=$ac_new_val ;;
1505     esac
1506     case " $ac_configure_args " in
1507       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1508       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1509     esac
1510   fi
1511 done
1512 if $ac_cache_corrupted; then
1513   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1514 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1515   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1516 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1517    { (exit 1); exit 1; }; }
1518 fi
1519
1520 ac_ext=c
1521 ac_cpp='$CPP $CPPFLAGS'
1522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552           ac_config_headers="$ac_config_headers config.h"
1553
1554 am__api_version="1.9"
1555 ac_aux_dir=
1556 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1557   if test -f $ac_dir/install-sh; then
1558     ac_aux_dir=$ac_dir
1559     ac_install_sh="$ac_aux_dir/install-sh -c"
1560     break
1561   elif test -f $ac_dir/install.sh; then
1562     ac_aux_dir=$ac_dir
1563     ac_install_sh="$ac_aux_dir/install.sh -c"
1564     break
1565   elif test -f $ac_dir/shtool; then
1566     ac_aux_dir=$ac_dir
1567     ac_install_sh="$ac_aux_dir/shtool install -c"
1568     break
1569   fi
1570 done
1571 if test -z "$ac_aux_dir"; then
1572   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1573 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1574    { (exit 1); exit 1; }; }
1575 fi
1576 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1577 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1578 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1579
1580 # Find a good install program.  We prefer a C program (faster),
1581 # so one script is as good as another.  But avoid the broken or
1582 # incompatible versions:
1583 # SysV /etc/install, /usr/sbin/install
1584 # SunOS /usr/etc/install
1585 # IRIX /sbin/install
1586 # AIX /bin/install
1587 # AmigaOS /C/install, which installs bootblocks on floppy discs
1588 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1589 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1590 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1591 # OS/2's system install, which has a completely different semantic
1592 # ./install, which can be erroneously created by make from ./install.sh.
1593 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1594 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1595 if test -z "$INSTALL"; then
1596 if test "${ac_cv_path_install+set}" = set; then
1597   echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 for as_dir in $PATH
1601 do
1602   IFS=$as_save_IFS
1603   test -z "$as_dir" && as_dir=.
1604   # Account for people who put trailing slashes in PATH elements.
1605 case $as_dir/ in
1606   ./ | .// | /cC/* | \
1607   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1608   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1609   /usr/ucb/* ) ;;
1610   *)
1611     # OSF1 and SCO ODT 3.0 have their own names for install.
1612     # Don't use installbsd from OSF since it installs stuff as root
1613     # by default.
1614     for ac_prog in ginstall scoinst install; do
1615       for ac_exec_ext in '' $ac_executable_extensions; do
1616         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1617           if test $ac_prog = install &&
1618             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1619             # AIX install.  It has an incompatible calling convention.
1620             :
1621           elif test $ac_prog = install &&
1622             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1623             # program-specific install script used by HP pwplus--don't use.
1624             :
1625           else
1626             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1627             break 3
1628           fi
1629         fi
1630       done
1631     done
1632     ;;
1633 esac
1634 done
1635
1636
1637 fi
1638   if test "${ac_cv_path_install+set}" = set; then
1639     INSTALL=$ac_cv_path_install
1640   else
1641     # As a last resort, use the slow shell script.  We don't cache a
1642     # path for INSTALL within a source directory, because that will
1643     # break other packages using the cache if that directory is
1644     # removed, or if the path is relative.
1645     INSTALL=$ac_install_sh
1646   fi
1647 fi
1648 echo "$as_me:$LINENO: result: $INSTALL" >&5
1649 echo "${ECHO_T}$INSTALL" >&6
1650
1651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1652 # It thinks the first close brace ends the variable substitution.
1653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1654
1655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1656
1657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1658
1659 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1660 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1661 # Just in case
1662 sleep 1
1663 echo timestamp > conftest.file
1664 # Do `set' in a subshell so we don't clobber the current shell's
1665 # arguments.  Must try -L first in case configure is actually a
1666 # symlink; some systems play weird games with the mod time of symlinks
1667 # (eg FreeBSD returns the mod time of the symlink's containing
1668 # directory).
1669 if (
1670    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1671    if test "$*" = "X"; then
1672       # -L didn't work.
1673       set X `ls -t $srcdir/configure conftest.file`
1674    fi
1675    rm -f conftest.file
1676    if test "$*" != "X $srcdir/configure conftest.file" \
1677       && test "$*" != "X conftest.file $srcdir/configure"; then
1678
1679       # If neither matched, then we have a broken ls.  This can happen
1680       # if, for instance, CONFIG_SHELL is bash and it inherits a
1681       # broken ls alias from the environment.  This has actually
1682       # happened.  Such a system could not be considered "sane".
1683       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1684 alias in your environment" >&5
1685 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1686 alias in your environment" >&2;}
1687    { (exit 1); exit 1; }; }
1688    fi
1689
1690    test "$2" = conftest.file
1691    )
1692 then
1693    # Ok.
1694    :
1695 else
1696    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1697 Check your system clock" >&5
1698 echo "$as_me: error: newly created file is older than distributed files!
1699 Check your system clock" >&2;}
1700    { (exit 1); exit 1; }; }
1701 fi
1702 echo "$as_me:$LINENO: result: yes" >&5
1703 echo "${ECHO_T}yes" >&6
1704 test "$program_prefix" != NONE &&
1705   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1706 # Use a double $ so make ignores it.
1707 test "$program_suffix" != NONE &&
1708   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1709 # Double any \ or $.  echo might interpret backslashes.
1710 # By default was `s,x,x', remove it if useless.
1711 cat <<\_ACEOF >conftest.sed
1712 s/[\\$]/&&/g;s/;s,x,x,$//
1713 _ACEOF
1714 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1715 rm conftest.sed
1716
1717 # expand $ac_aux_dir to an absolute path
1718 am_aux_dir=`cd $ac_aux_dir && pwd`
1719
1720 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1721 # Use eval to expand $SHELL
1722 if eval "$MISSING --run true"; then
1723   am_missing_run="$MISSING --run "
1724 else
1725   am_missing_run=
1726   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1727 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1728 fi
1729
1730 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1731   # We used to keeping the `.' as first argument, in order to
1732   # allow $(mkdir_p) to be used without argument.  As in
1733   #   $(mkdir_p) $(somedir)
1734   # where $(somedir) is conditionally defined.  However this is wrong
1735   # for two reasons:
1736   #  1. if the package is installed by a user who cannot write `.'
1737   #     make install will fail,
1738   #  2. the above comment should most certainly read
1739   #     $(mkdir_p) $(DESTDIR)$(somedir)
1740   #     so it does not work when $(somedir) is undefined and
1741   #     $(DESTDIR) is not.
1742   #  To support the latter case, we have to write
1743   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1744   #  so the `.' trick is pointless.
1745   mkdir_p='mkdir -p --'
1746 else
1747   # On NextStep and OpenStep, the `mkdir' command does not
1748   # recognize any option.  It will interpret all options as
1749   # directories to create, and then abort because `.' already
1750   # exists.
1751   for d in ./-p ./--version;
1752   do
1753     test -d $d && rmdir $d
1754   done
1755   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1756   if test -f "$ac_aux_dir/mkinstalldirs"; then
1757     mkdir_p='$(mkinstalldirs)'
1758   else
1759     mkdir_p='$(install_sh) -d'
1760   fi
1761 fi
1762
1763 for ac_prog in gawk mawk nawk awk
1764 do
1765   # Extract the first word of "$ac_prog", so it can be a program name with args.
1766 set dummy $ac_prog; ac_word=$2
1767 echo "$as_me:$LINENO: checking for $ac_word" >&5
1768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769 if test "${ac_cv_prog_AWK+set}" = set; then
1770   echo $ECHO_N "(cached) $ECHO_C" >&6
1771 else
1772   if test -n "$AWK"; then
1773   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1774 else
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1777 do
1778   IFS=$as_save_IFS
1779   test -z "$as_dir" && as_dir=.
1780   for ac_exec_ext in '' $ac_executable_extensions; do
1781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782     ac_cv_prog_AWK="$ac_prog"
1783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784     break 2
1785   fi
1786 done
1787 done
1788
1789 fi
1790 fi
1791 AWK=$ac_cv_prog_AWK
1792 if test -n "$AWK"; then
1793   echo "$as_me:$LINENO: result: $AWK" >&5
1794 echo "${ECHO_T}$AWK" >&6
1795 else
1796   echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1798 fi
1799
1800   test -n "$AWK" && break
1801 done
1802
1803 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1804 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1805 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1806 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1807   echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809   cat >conftest.make <<\_ACEOF
1810 all:
1811         @echo 'ac_maketemp="$(MAKE)"'
1812 _ACEOF
1813 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1814 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1815 if test -n "$ac_maketemp"; then
1816   eval ac_cv_prog_make_${ac_make}_set=yes
1817 else
1818   eval ac_cv_prog_make_${ac_make}_set=no
1819 fi
1820 rm -f conftest.make
1821 fi
1822 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1823   echo "$as_me:$LINENO: result: yes" >&5
1824 echo "${ECHO_T}yes" >&6
1825   SET_MAKE=
1826 else
1827   echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6
1829   SET_MAKE="MAKE=${MAKE-make}"
1830 fi
1831
1832 rm -rf .tst 2>/dev/null
1833 mkdir .tst 2>/dev/null
1834 if test -d .tst; then
1835   am__leading_dot=.
1836 else
1837   am__leading_dot=_
1838 fi
1839 rmdir .tst 2>/dev/null
1840
1841 # test to see if srcdir already configured
1842 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1843    test -f $srcdir/config.status; then
1844   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1845 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1846    { (exit 1); exit 1; }; }
1847 fi
1848
1849 # test whether we have cygpath
1850 if test -z "$CYGPATH_W"; then
1851   if (cygpath --version) >/dev/null 2>/dev/null; then
1852     CYGPATH_W='cygpath -w'
1853   else
1854     CYGPATH_W=echo
1855   fi
1856 fi
1857
1858
1859 # Define the identity of the package.
1860  PACKAGE=shibboleth
1861  VERSION=2.3.1
1862
1863
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE "$PACKAGE"
1866 _ACEOF
1867
1868
1869 cat >>confdefs.h <<_ACEOF
1870 #define VERSION "$VERSION"
1871 _ACEOF
1872
1873 # Some tools Automake needs.
1874
1875 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1876
1877
1878 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1879
1880
1881 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1882
1883
1884 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1885
1886
1887 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1888
1889 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1890
1891 # Installed binaries are usually stripped using `strip' when the user
1892 # run `make install-strip'.  However `strip' might not be the right
1893 # tool to use in cross-compilation environments, therefore Automake
1894 # will honor the `STRIP' environment variable to overrule this program.
1895 if test "$cross_compiling" != no; then
1896   if test -n "$ac_tool_prefix"; then
1897   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1898 set dummy ${ac_tool_prefix}strip; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_STRIP+set}" = set; then
1902   echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904   if test -n "$STRIP"; then
1905   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1906 else
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1909 do
1910   IFS=$as_save_IFS
1911   test -z "$as_dir" && as_dir=.
1912   for ac_exec_ext in '' $ac_executable_extensions; do
1913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916     break 2
1917   fi
1918 done
1919 done
1920
1921 fi
1922 fi
1923 STRIP=$ac_cv_prog_STRIP
1924 if test -n "$STRIP"; then
1925   echo "$as_me:$LINENO: result: $STRIP" >&5
1926 echo "${ECHO_T}$STRIP" >&6
1927 else
1928   echo "$as_me:$LINENO: result: no" >&5
1929 echo "${ECHO_T}no" >&6
1930 fi
1931
1932 fi
1933 if test -z "$ac_cv_prog_STRIP"; then
1934   ac_ct_STRIP=$STRIP
1935   # Extract the first word of "strip", so it can be a program name with args.
1936 set dummy strip; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1940   echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942   if test -n "$ac_ct_STRIP"; then
1943   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1944 else
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1947 do
1948   IFS=$as_save_IFS
1949   test -z "$as_dir" && as_dir=.
1950   for ac_exec_ext in '' $ac_executable_extensions; do
1951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952     ac_cv_prog_ac_ct_STRIP="strip"
1953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954     break 2
1955   fi
1956 done
1957 done
1958
1959   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1960 fi
1961 fi
1962 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1963 if test -n "$ac_ct_STRIP"; then
1964   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1965 echo "${ECHO_T}$ac_ct_STRIP" >&6
1966 else
1967   echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1969 fi
1970
1971   STRIP=$ac_ct_STRIP
1972 else
1973   STRIP="$ac_cv_prog_STRIP"
1974 fi
1975
1976 fi
1977 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1978
1979 # We need awk for the "check" target.  The system "awk" is bad on
1980 # some platforms.
1981 # Always define AMTAR for backward compatibility.
1982
1983 AMTAR=${AMTAR-"${am_missing_run}tar"}
1984
1985 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1986
1987
1988
1989
1990
1991
1992 # This file is part of Autoconf.                       -*- Autoconf -*-
1993
1994 # Copyright (C) 2004 Oren Ben-Kiki
1995 # This file is distributed under the same terms as the Autoconf macro files.
1996
1997 # Generate automatic documentation using Doxygen. Works in concert with the
1998 # aminclude.m4 file and a compatible doxygen configuration file. Defines the
1999 # following public macros:
2000 #
2001 # DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature.
2002 # Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics,
2003 # 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI'
2004 # for generating a seperate .chi file by the .chm file, and 'MAN', 'RTF',
2005 # 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment
2006 # variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide'
2007 # paper size.
2008 #
2009 # By default, HTML, PDF and PS documentation is generated as this seems to be
2010 # the most popular and portable combination. MAN pages created by Doxygen are
2011 # usually problematic, though by picking an appropriate subset and doing some
2012 # massaging they might be better than nothing. CHM and RTF are specific for MS
2013 # (note that you can't generate both HTML and CHM at the same time). The XML is
2014 # rather useless unless you apply specialized post-processing to it.
2015 #
2016 # The macro mainly controls the default state of the feature. The use can
2017 # override the default by specifying --enable or --disable. The macros ensure
2018 # that contradictory flags are not given (e.g., --enable-doxygen-html and
2019 # --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.)
2020 # Finally, each feature will be automatically disabled (with a warning) if the
2021 # required programs are missing.
2022 #
2023 # Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with
2024 # the following parameters: a one-word name for the project for use as a
2025 # filename base etc., an optional configuration file name (the default is
2026 # 'Doxyfile', the same as Doxygen's default), and an optional output directory
2027 # name (the default is 'doxygen-doc').
2028
2029 ## ----------##
2030 ## Defaults. ##
2031 ## ----------##
2032
2033 DX_ENV=""
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045 # Compatibility with older autoconf versions.
2046
2047
2048 ## --------------- ##
2049 ## Private macros. ##
2050 ## --------------- ##
2051
2052 # DX_ENV_APPEND(VARIABLE, VALUE)
2053 # ------------------------------
2054 # Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
2055
2056
2057 # DX_DIRNAME_EXPR
2058 # ---------------
2059 # Expand into a shell expression prints the directory part of a path.
2060
2061
2062 # DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
2063 # -------------------------------------
2064 # Expands according to the M4 (static) status of the feature.
2065
2066
2067 # DX_REQUIRE_PROG(VARIABLE, PROGRAM)
2068 # ----------------------------------
2069 # Require the specified program to be found for the DX_CURRENT_FEATURE to work.
2070
2071
2072 # DX_TEST_FEATURE(FEATURE)
2073 # ------------------------
2074 # Expand to a shell expression testing whether the feature is active.
2075
2076
2077 # DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
2078 # -------------------------------------------------
2079 # Verify that a required features has the right state before trying to turn on
2080 # the DX_CURRENT_FEATURE.
2081
2082
2083 # DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
2084 # ----------------------------------------------------------
2085 # Turn off the DX_CURRENT_FEATURE if the required feature is off.
2086
2087
2088 # DX_FEATURE_ARG(FEATURE, DESCRIPTION,
2089 #                CHECK_DEPEND, CLEAR_DEPEND,
2090 #                REQUIRE, DO-IF-ON, DO-IF-OFF)
2091 # --------------------------------------------
2092 # Parse the command-line option controlling a feature. CHECK_DEPEND is called
2093 # if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
2094 # otherwise CLEAR_DEPEND is called to turn off the default state if a required
2095 # feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
2096 # requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
2097 # DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
2098
2099
2100 ## -------------- ##
2101 ## Public macros. ##
2102 ## -------------- ##
2103
2104 # DX_XXX_FEATURE(DEFAULT_STATE)
2105 # -----------------------------
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117 # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
2118 # ---------------------------------------------------------
2119 # PROJECT also serves as the base name for the documentation files.
2120 # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
2121
2122
2123 ##### http://autoconf-archive.cryp.to/acx_pthread.html
2124 #
2125 # SYNOPSIS
2126 #
2127 #   ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
2128 #
2129 # DESCRIPTION
2130 #
2131 #   This macro figures out how to build C programs using POSIX threads.
2132 #   It sets the PTHREAD_LIBS output variable to the threads library and
2133 #   linker flags, and the PTHREAD_CFLAGS output variable to any special
2134 #   C compiler flags that are needed. (The user can also force certain
2135 #   compiler flags/libs to be tested by setting these environment
2136 #   variables.)
2137 #
2138 #   Also sets PTHREAD_CC to any special C compiler that is needed for
2139 #   multi-threaded programs (defaults to the value of CC otherwise).
2140 #   (This is necessary on AIX to use the special cc_r compiler alias.)
2141 #
2142 #   NOTE: You are assumed to not only compile your program with these
2143 #   flags, but also link it with them as well. e.g. you should link
2144 #   with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS
2145 #   $LIBS
2146 #
2147 #   If you are only building threads programs, you may wish to use
2148 #   these variables in your default LIBS, CFLAGS, and CC:
2149 #
2150 #          LIBS="$PTHREAD_LIBS $LIBS"
2151 #          CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
2152 #          CC="$PTHREAD_CC"
2153 #
2154 #   In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
2155 #   constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
2156 #   that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
2157 #
2158 #   ACTION-IF-FOUND is a list of shell commands to run if a threads
2159 #   library is found, and ACTION-IF-NOT-FOUND is a list of commands to
2160 #   run it if it is not found. If ACTION-IF-FOUND is not specified, the
2161 #   default action will define HAVE_PTHREAD.
2162 #
2163 #   Please let the authors know if this macro fails on any platform, or
2164 #   if you have any other suggestions or comments. This macro was based
2165 #   on work by SGJ on autoconf scripts for FFTW (http://www.fftw.org/)
2166 #   (with help from M. Frigo), as well as ac_pthread and hb_pthread
2167 #   macros posted by Alejandro Forero Cuervo to the autoconf macro
2168 #   repository. We are also grateful for the helpful feedback of
2169 #   numerous users.
2170 #
2171 # LAST MODIFICATION
2172 #
2173 #   2006-05-29
2174 #
2175 # COPYLEFT
2176 #
2177 #   Copyright (c) 2006 Steven G. Johnson <stevenj@alum.mit.edu>
2178 #
2179 #   This program is free software; you can redistribute it and/or
2180 #   modify it under the terms of the GNU General Public License as
2181 #   published by the Free Software Foundation; either version 2 of the
2182 #   License, or (at your option) any later version.
2183 #
2184 #   This program is distributed in the hope that it will be useful, but
2185 #   WITHOUT ANY WARRANTY; without even the implied warranty of
2186 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2187 #   General Public License for more details.
2188 #
2189 #   You should have received a copy of the GNU General Public License
2190 #   along with this program; if not, write to the Free Software
2191 #   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2192 #   02111-1307, USA.
2193 #
2194 #   As a special exception, the respective Autoconf Macro's copyright
2195 #   owner gives unlimited permission to copy, distribute and modify the
2196 #   configure scripts that are the output of Autoconf when processing
2197 #   the Macro. You need not follow the terms of the GNU General Public
2198 #   License when using or distributing such scripts, even though
2199 #   portions of the text of the Macro appear in them. The GNU General
2200 #   Public License (GPL) does govern all other use of the material that
2201 #   constitutes the Autoconf Macro.
2202 #
2203 #   This special exception to the GPL applies to versions of the
2204 #   Autoconf Macro released by the Autoconf Macro Archive. When you
2205 #   make and distribute a modified version of the Autoconf Macro, you
2206 #   may extend this special exception to the GPL to apply to your
2207 #   modified version as well.
2208
2209
2210
2211 # Docygen features
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222 # Files:
2223 DX_PROJECT=shibboleth
2224
2225 DX_CONFIG=doxygen.cfg
2226
2227 DX_DOCDIR=doc/api
2228
2229
2230 # Environment variables used inside doxygen.cfg:
2231 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
2232
2233 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
2234
2235 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
2236
2237 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
2238
2239
2240 # Doxygen itself:
2241
2242
2243
2244     # Check whether --enable-doxygen-doc or --disable-doxygen-doc was given.
2245 if test "${enable_doxygen_doc+set}" = set; then
2246   enableval="$enable_doxygen_doc"
2247
2248 case "$enableval" in
2249 #(
2250 y|Y|yes|Yes|YES)
2251     DX_FLAG_doc=1
2252
2253
2254 ;; #(
2255 n|N|no|No|NO)
2256     DX_FLAG_doc=0
2257
2258 ;; #(
2259 *)
2260     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-doc" >&5
2261 echo "$as_me: error: invalid value '$enableval' given to doxygen-doc" >&2;}
2262    { (exit 1); exit 1; }; }
2263 ;;
2264 esac
2265
2266 else
2267
2268 DX_FLAG_doc=1
2269
2270
2271
2272 fi;
2273 if test "$DX_FLAG_doc" = 1; then
2274
2275 if test -n "$ac_tool_prefix"; then
2276   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
2277 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
2278 echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2280 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then
2281   echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283   case $DX_DOXYGEN in
2284   [\\/]* | ?:[\\/]*)
2285   ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
2286   ;;
2287   *)
2288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291   IFS=$as_save_IFS
2292   test -z "$as_dir" && as_dir=.
2293   for ac_exec_ext in '' $ac_executable_extensions; do
2294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295     ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297     break 2
2298   fi
2299 done
2300 done
2301
2302   ;;
2303 esac
2304 fi
2305 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
2306
2307 if test -n "$DX_DOXYGEN"; then
2308   echo "$as_me:$LINENO: result: $DX_DOXYGEN" >&5
2309 echo "${ECHO_T}$DX_DOXYGEN" >&6
2310 else
2311   echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6
2313 fi
2314
2315 fi
2316 if test -z "$ac_cv_path_DX_DOXYGEN"; then
2317   ac_pt_DX_DOXYGEN=$DX_DOXYGEN
2318   # Extract the first word of "doxygen", so it can be a program name with args.
2319 set dummy doxygen; ac_word=$2
2320 echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2322 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then
2323   echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325   case $ac_pt_DX_DOXYGEN in
2326   [\\/]* | ?:[\\/]*)
2327   ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
2328   ;;
2329   *)
2330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2332 do
2333   IFS=$as_save_IFS
2334   test -z "$as_dir" && as_dir=.
2335   for ac_exec_ext in '' $ac_executable_extensions; do
2336   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2337     ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339     break 2
2340   fi
2341 done
2342 done
2343
2344   ;;
2345 esac
2346 fi
2347 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
2348
2349 if test -n "$ac_pt_DX_DOXYGEN"; then
2350   echo "$as_me:$LINENO: result: $ac_pt_DX_DOXYGEN" >&5
2351 echo "${ECHO_T}$ac_pt_DX_DOXYGEN" >&6
2352 else
2353   echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6
2355 fi
2356
2357   DX_DOXYGEN=$ac_pt_DX_DOXYGEN
2358 else
2359   DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
2360 fi
2361
2362 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
2363     { echo "$as_me:$LINENO: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
2364 echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
2365     DX_FLAG_doc=0
2366
2367 fi
2368
2369
2370 if test -n "$ac_tool_prefix"; then
2371   # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
2372 set dummy ${ac_tool_prefix}perl; ac_word=$2
2373 echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2375 if test "${ac_cv_path_DX_PERL+set}" = set; then
2376   echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378   case $DX_PERL in
2379   [\\/]* | ?:[\\/]*)
2380   ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
2381   ;;
2382   *)
2383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386   IFS=$as_save_IFS
2387   test -z "$as_dir" && as_dir=.
2388   for ac_exec_ext in '' $ac_executable_extensions; do
2389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390     ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392     break 2
2393   fi
2394 done
2395 done
2396
2397   ;;
2398 esac
2399 fi
2400 DX_PERL=$ac_cv_path_DX_PERL
2401
2402 if test -n "$DX_PERL"; then
2403   echo "$as_me:$LINENO: result: $DX_PERL" >&5
2404 echo "${ECHO_T}$DX_PERL" >&6
2405 else
2406   echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2408 fi
2409
2410 fi
2411 if test -z "$ac_cv_path_DX_PERL"; then
2412   ac_pt_DX_PERL=$DX_PERL
2413   # Extract the first word of "perl", so it can be a program name with args.
2414 set dummy perl; ac_word=$2
2415 echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2417 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then
2418   echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420   case $ac_pt_DX_PERL in
2421   [\\/]* | ?:[\\/]*)
2422   ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
2423   ;;
2424   *)
2425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2427 do
2428   IFS=$as_save_IFS
2429   test -z "$as_dir" && as_dir=.
2430   for ac_exec_ext in '' $ac_executable_extensions; do
2431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2432     ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434     break 2
2435   fi
2436 done
2437 done
2438
2439   ;;
2440 esac
2441 fi
2442 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
2443
2444 if test -n "$ac_pt_DX_PERL"; then
2445   echo "$as_me:$LINENO: result: $ac_pt_DX_PERL" >&5
2446 echo "${ECHO_T}$ac_pt_DX_PERL" >&6
2447 else
2448   echo "$as_me:$LINENO: result: no" >&5
2449 echo "${ECHO_T}no" >&6
2450 fi
2451
2452   DX_PERL=$ac_pt_DX_PERL
2453 else
2454   DX_PERL="$ac_cv_path_DX_PERL"
2455 fi
2456
2457 if test "$DX_FLAG_doc$DX_PERL" = 1; then
2458     { echo "$as_me:$LINENO: WARNING: perl not found - will not generate any doxygen documentation" >&5
2459 echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
2460     DX_FLAG_doc=0
2461
2462 fi
2463
2464     :
2465 fi
2466 if test "$DX_FLAG_doc" = 1; then
2467
2468
2469 if :; then
2470   DX_COND_doc_TRUE=
2471   DX_COND_doc_FALSE='#'
2472 else
2473   DX_COND_doc_TRUE='#'
2474   DX_COND_doc_FALSE=
2475 fi
2476
2477     DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
2478
2479     :
2480 else
2481
2482
2483 if false; then
2484   DX_COND_doc_TRUE=
2485   DX_COND_doc_FALSE='#'
2486 else
2487   DX_COND_doc_TRUE='#'
2488   DX_COND_doc_FALSE=
2489 fi
2490
2491
2492     :
2493 fi
2494
2495
2496 # Dot for graphics:
2497
2498
2499
2500     # Check whether --enable-doxygen-dot or --disable-doxygen-dot was given.
2501 if test "${enable_doxygen_dot+set}" = set; then
2502   enableval="$enable_doxygen_dot"
2503
2504 case "$enableval" in
2505 #(
2506 y|Y|yes|Yes|YES)
2507     DX_FLAG_dot=1
2508
2509
2510 test "$DX_FLAG_doc" = "1" \
2511 || { { echo "$as_me:$LINENO: error: doxygen-dot requires doxygen-dot" >&5
2512 echo "$as_me: error: doxygen-dot requires doxygen-dot" >&2;}
2513    { (exit 1); exit 1; }; }
2514
2515 ;; #(
2516 n|N|no|No|NO)
2517     DX_FLAG_dot=0
2518
2519 ;; #(
2520 *)
2521     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-dot" >&5
2522 echo "$as_me: error: invalid value '$enableval' given to doxygen-dot" >&2;}
2523    { (exit 1); exit 1; }; }
2524 ;;
2525 esac
2526
2527 else
2528
2529 DX_FLAG_dot=1
2530
2531
2532 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
2533
2534
2535
2536 fi;
2537 if test "$DX_FLAG_dot" = 1; then
2538
2539 if test -n "$ac_tool_prefix"; then
2540   # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
2541 set dummy ${ac_tool_prefix}dot; ac_word=$2
2542 echo "$as_me:$LINENO: checking for $ac_word" >&5
2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2544 if test "${ac_cv_path_DX_DOT+set}" = set; then
2545   echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547   case $DX_DOT in
2548   [\\/]* | ?:[\\/]*)
2549   ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
2550   ;;
2551   *)
2552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555   IFS=$as_save_IFS
2556   test -z "$as_dir" && as_dir=.
2557   for ac_exec_ext in '' $ac_executable_extensions; do
2558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559     ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561     break 2
2562   fi
2563 done
2564 done
2565
2566   ;;
2567 esac
2568 fi
2569 DX_DOT=$ac_cv_path_DX_DOT
2570
2571 if test -n "$DX_DOT"; then
2572   echo "$as_me:$LINENO: result: $DX_DOT" >&5
2573 echo "${ECHO_T}$DX_DOT" >&6
2574 else
2575   echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6
2577 fi
2578
2579 fi
2580 if test -z "$ac_cv_path_DX_DOT"; then
2581   ac_pt_DX_DOT=$DX_DOT
2582   # Extract the first word of "dot", so it can be a program name with args.
2583 set dummy dot; ac_word=$2
2584 echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2586 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then
2587   echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589   case $ac_pt_DX_DOT in
2590   [\\/]* | ?:[\\/]*)
2591   ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
2592   ;;
2593   *)
2594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599   for ac_exec_ext in '' $ac_executable_extensions; do
2600   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601     ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603     break 2
2604   fi
2605 done
2606 done
2607
2608   ;;
2609 esac
2610 fi
2611 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
2612
2613 if test -n "$ac_pt_DX_DOT"; then
2614   echo "$as_me:$LINENO: result: $ac_pt_DX_DOT" >&5
2615 echo "${ECHO_T}$ac_pt_DX_DOT" >&6
2616 else
2617   echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2619 fi
2620
2621   DX_DOT=$ac_pt_DX_DOT
2622 else
2623   DX_DOT="$ac_cv_path_DX_DOT"
2624 fi
2625
2626 if test "$DX_FLAG_dot$DX_DOT" = 1; then
2627     { echo "$as_me:$LINENO: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
2628 echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
2629     DX_FLAG_dot=0
2630
2631 fi
2632
2633     :
2634 fi
2635 if test "$DX_FLAG_dot" = 1; then
2636
2637
2638 if :; then
2639   DX_COND_dot_TRUE=
2640   DX_COND_dot_FALSE='#'
2641 else
2642   DX_COND_dot_TRUE='#'
2643   DX_COND_dot_FALSE=
2644 fi
2645
2646     DX_ENV="$DX_ENV HAVE_DOT='YES'"
2647
2648              DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
2649
2650     :
2651 else
2652
2653
2654 if false; then
2655   DX_COND_dot_TRUE=
2656   DX_COND_dot_FALSE='#'
2657 else
2658   DX_COND_dot_TRUE='#'
2659   DX_COND_dot_FALSE=
2660 fi
2661
2662     DX_ENV="$DX_ENV HAVE_DOT='NO'"
2663
2664     :
2665 fi
2666
2667
2668 # Man pages generation:
2669
2670
2671
2672     # Check whether --enable-doxygen-man or --disable-doxygen-man was given.
2673 if test "${enable_doxygen_man+set}" = set; then
2674   enableval="$enable_doxygen_man"
2675
2676 case "$enableval" in
2677 #(
2678 y|Y|yes|Yes|YES)
2679     DX_FLAG_man=1
2680
2681
2682 test "$DX_FLAG_doc" = "1" \
2683 || { { echo "$as_me:$LINENO: error: doxygen-man requires doxygen-man" >&5
2684 echo "$as_me: error: doxygen-man requires doxygen-man" >&2;}
2685    { (exit 1); exit 1; }; }
2686
2687 ;; #(
2688 n|N|no|No|NO)
2689     DX_FLAG_man=0
2690
2691 ;; #(
2692 *)
2693     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-man" >&5
2694 echo "$as_me: error: invalid value '$enableval' given to doxygen-man" >&2;}
2695    { (exit 1); exit 1; }; }
2696 ;;
2697 esac
2698
2699 else
2700
2701 DX_FLAG_man=0
2702
2703
2704 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
2705
2706
2707
2708 fi;
2709 if test "$DX_FLAG_man" = 1; then
2710
2711     :
2712 fi
2713 if test "$DX_FLAG_man" = 1; then
2714
2715
2716 if :; then
2717   DX_COND_man_TRUE=
2718   DX_COND_man_FALSE='#'
2719 else
2720   DX_COND_man_TRUE='#'
2721   DX_COND_man_FALSE=
2722 fi
2723
2724     DX_ENV="$DX_ENV GENERATE_MAN='YES'"
2725
2726     :
2727 else
2728
2729
2730 if false; then
2731   DX_COND_man_TRUE=
2732   DX_COND_man_FALSE='#'
2733 else
2734   DX_COND_man_TRUE='#'
2735   DX_COND_man_FALSE=
2736 fi
2737
2738     DX_ENV="$DX_ENV GENERATE_MAN='NO'"
2739
2740     :
2741 fi
2742
2743
2744 # RTF file generation:
2745
2746
2747
2748     # Check whether --enable-doxygen-rtf or --disable-doxygen-rtf was given.
2749 if test "${enable_doxygen_rtf+set}" = set; then
2750   enableval="$enable_doxygen_rtf"
2751
2752 case "$enableval" in
2753 #(
2754 y|Y|yes|Yes|YES)
2755     DX_FLAG_rtf=1
2756
2757
2758 test "$DX_FLAG_doc" = "1" \
2759 || { { echo "$as_me:$LINENO: error: doxygen-rtf requires doxygen-rtf" >&5
2760 echo "$as_me: error: doxygen-rtf requires doxygen-rtf" >&2;}
2761    { (exit 1); exit 1; }; }
2762
2763 ;; #(
2764 n|N|no|No|NO)
2765     DX_FLAG_rtf=0
2766
2767 ;; #(
2768 *)
2769     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-rtf" >&5
2770 echo "$as_me: error: invalid value '$enableval' given to doxygen-rtf" >&2;}
2771    { (exit 1); exit 1; }; }
2772 ;;
2773 esac
2774
2775 else
2776
2777 DX_FLAG_rtf=0
2778
2779
2780 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
2781
2782
2783
2784 fi;
2785 if test "$DX_FLAG_rtf" = 1; then
2786
2787     :
2788 fi
2789 if test "$DX_FLAG_rtf" = 1; then
2790
2791
2792 if :; then
2793   DX_COND_rtf_TRUE=
2794   DX_COND_rtf_FALSE='#'
2795 else
2796   DX_COND_rtf_TRUE='#'
2797   DX_COND_rtf_FALSE=
2798 fi
2799
2800     DX_ENV="$DX_ENV GENERATE_RTF='YES'"
2801
2802     :
2803 else
2804
2805
2806 if false; then
2807   DX_COND_rtf_TRUE=
2808   DX_COND_rtf_FALSE='#'
2809 else
2810   DX_COND_rtf_TRUE='#'
2811   DX_COND_rtf_FALSE=
2812 fi
2813
2814     DX_ENV="$DX_ENV GENERATE_RTF='NO'"
2815
2816     :
2817 fi
2818
2819
2820 # XML file generation:
2821
2822
2823
2824     # Check whether --enable-doxygen-xml or --disable-doxygen-xml was given.
2825 if test "${enable_doxygen_xml+set}" = set; then
2826   enableval="$enable_doxygen_xml"
2827
2828 case "$enableval" in
2829 #(
2830 y|Y|yes|Yes|YES)
2831     DX_FLAG_xml=1
2832
2833
2834 test "$DX_FLAG_doc" = "1" \
2835 || { { echo "$as_me:$LINENO: error: doxygen-xml requires doxygen-xml" >&5
2836 echo "$as_me: error: doxygen-xml requires doxygen-xml" >&2;}
2837    { (exit 1); exit 1; }; }
2838
2839 ;; #(
2840 n|N|no|No|NO)
2841     DX_FLAG_xml=0
2842
2843 ;; #(
2844 *)
2845     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-xml" >&5
2846 echo "$as_me: error: invalid value '$enableval' given to doxygen-xml" >&2;}
2847    { (exit 1); exit 1; }; }
2848 ;;
2849 esac
2850
2851 else
2852
2853 DX_FLAG_xml=0
2854
2855
2856 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
2857
2858
2859
2860 fi;
2861 if test "$DX_FLAG_xml" = 1; then
2862
2863     :
2864 fi
2865 if test "$DX_FLAG_xml" = 1; then
2866
2867
2868 if :; then
2869   DX_COND_xml_TRUE=
2870   DX_COND_xml_FALSE='#'
2871 else
2872   DX_COND_xml_TRUE='#'
2873   DX_COND_xml_FALSE=
2874 fi
2875
2876     DX_ENV="$DX_ENV GENERATE_XML='YES'"
2877
2878     :
2879 else
2880
2881
2882 if false; then
2883   DX_COND_xml_TRUE=
2884   DX_COND_xml_FALSE='#'
2885 else
2886   DX_COND_xml_TRUE='#'
2887   DX_COND_xml_FALSE=
2888 fi
2889
2890     DX_ENV="$DX_ENV GENERATE_XML='NO'"
2891
2892     :
2893 fi
2894
2895
2896 # (Compressed) HTML help generation:
2897
2898
2899
2900     # Check whether --enable-doxygen-chm or --disable-doxygen-chm was given.
2901 if test "${enable_doxygen_chm+set}" = set; then
2902   enableval="$enable_doxygen_chm"
2903
2904 case "$enableval" in
2905 #(
2906 y|Y|yes|Yes|YES)
2907     DX_FLAG_chm=1
2908
2909
2910 test "$DX_FLAG_doc" = "1" \
2911 || { { echo "$as_me:$LINENO: error: doxygen-chm requires doxygen-chm" >&5
2912 echo "$as_me: error: doxygen-chm requires doxygen-chm" >&2;}
2913    { (exit 1); exit 1; }; }
2914
2915 ;; #(
2916 n|N|no|No|NO)
2917     DX_FLAG_chm=0
2918
2919 ;; #(
2920 *)
2921     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chm" >&5
2922 echo "$as_me: error: invalid value '$enableval' given to doxygen-chm" >&2;}
2923    { (exit 1); exit 1; }; }
2924 ;;
2925 esac
2926
2927 else
2928
2929 DX_FLAG_chm=0
2930
2931
2932 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
2933
2934
2935
2936 fi;
2937 if test "$DX_FLAG_chm" = 1; then
2938
2939 if test -n "$ac_tool_prefix"; then
2940   # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
2941 set dummy ${ac_tool_prefix}hhc; ac_word=$2
2942 echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2944 if test "${ac_cv_path_DX_HHC+set}" = set; then
2945   echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947   case $DX_HHC in
2948   [\\/]* | ?:[\\/]*)
2949   ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
2950   ;;
2951   *)
2952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955   IFS=$as_save_IFS
2956   test -z "$as_dir" && as_dir=.
2957   for ac_exec_ext in '' $ac_executable_extensions; do
2958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959     ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961     break 2
2962   fi
2963 done
2964 done
2965
2966   ;;
2967 esac
2968 fi
2969 DX_HHC=$ac_cv_path_DX_HHC
2970
2971 if test -n "$DX_HHC"; then
2972   echo "$as_me:$LINENO: result: $DX_HHC" >&5
2973 echo "${ECHO_T}$DX_HHC" >&6
2974 else
2975   echo "$as_me:$LINENO: result: no" >&5
2976 echo "${ECHO_T}no" >&6
2977 fi
2978
2979 fi
2980 if test -z "$ac_cv_path_DX_HHC"; then
2981   ac_pt_DX_HHC=$DX_HHC
2982   # Extract the first word of "hhc", so it can be a program name with args.
2983 set dummy hhc; ac_word=$2
2984 echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then
2987   echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989   case $ac_pt_DX_HHC in
2990   [\\/]* | ?:[\\/]*)
2991   ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
2992   ;;
2993   *)
2994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997   IFS=$as_save_IFS
2998   test -z "$as_dir" && as_dir=.
2999   for ac_exec_ext in '' $ac_executable_extensions; do
3000   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001     ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
3002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003     break 2
3004   fi
3005 done
3006 done
3007
3008   ;;
3009 esac
3010 fi
3011 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
3012
3013 if test -n "$ac_pt_DX_HHC"; then
3014   echo "$as_me:$LINENO: result: $ac_pt_DX_HHC" >&5
3015 echo "${ECHO_T}$ac_pt_DX_HHC" >&6
3016 else
3017   echo "$as_me:$LINENO: result: no" >&5
3018 echo "${ECHO_T}no" >&6
3019 fi
3020
3021   DX_HHC=$ac_pt_DX_HHC
3022 else
3023   DX_HHC="$ac_cv_path_DX_HHC"
3024 fi
3025
3026 if test "$DX_FLAG_chm$DX_HHC" = 1; then
3027     { echo "$as_me:$LINENO: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
3028 echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
3029     DX_FLAG_chm=0
3030
3031 fi
3032
3033     :
3034 fi
3035 if test "$DX_FLAG_chm" = 1; then
3036
3037
3038 if :; 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 HHC_PATH='$DX_HHC'"
3047
3048              DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3049
3050              DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
3051
3052     :
3053 else
3054
3055
3056 if false; then
3057   DX_COND_chm_TRUE=
3058   DX_COND_chm_FALSE='#'
3059 else
3060   DX_COND_chm_TRUE='#'
3061   DX_COND_chm_FALSE=
3062 fi
3063
3064     DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
3065
3066     :
3067 fi
3068
3069
3070 # Seperate CHI file generation.
3071
3072
3073
3074     # Check whether --enable-doxygen-chi or --disable-doxygen-chi was given.
3075 if test "${enable_doxygen_chi+set}" = set; then
3076   enableval="$enable_doxygen_chi"
3077
3078 case "$enableval" in
3079 #(
3080 y|Y|yes|Yes|YES)
3081     DX_FLAG_chi=1
3082
3083
3084 test "$DX_FLAG_chm" = "1" \
3085 || { { echo "$as_me:$LINENO: error: doxygen-chi requires doxygen-chi" >&5
3086 echo "$as_me: error: doxygen-chi requires doxygen-chi" >&2;}
3087    { (exit 1); exit 1; }; }
3088
3089 ;; #(
3090 n|N|no|No|NO)
3091     DX_FLAG_chi=0
3092
3093 ;; #(
3094 *)
3095     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chi" >&5
3096 echo "$as_me: error: invalid value '$enableval' given to doxygen-chi" >&2;}
3097    { (exit 1); exit 1; }; }
3098 ;;
3099 esac
3100
3101 else
3102
3103 DX_FLAG_chi=0
3104
3105
3106 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
3107
3108
3109
3110 fi;
3111 if test "$DX_FLAG_chi" = 1; then
3112
3113     :
3114 fi
3115 if test "$DX_FLAG_chi" = 1; then
3116
3117
3118 if :; then
3119   DX_COND_chi_TRUE=
3120   DX_COND_chi_FALSE='#'
3121 else
3122   DX_COND_chi_TRUE='#'
3123   DX_COND_chi_FALSE=
3124 fi
3125
3126     DX_ENV="$DX_ENV GENERATE_CHI='YES'"
3127
3128     :
3129 else
3130
3131
3132 if false; then
3133   DX_COND_chi_TRUE=
3134   DX_COND_chi_FALSE='#'
3135 else
3136   DX_COND_chi_TRUE='#'
3137   DX_COND_chi_FALSE=
3138 fi
3139
3140     DX_ENV="$DX_ENV GENERATE_CHI='NO'"
3141
3142     :
3143 fi
3144
3145
3146 # Plain HTML pages generation:
3147
3148
3149
3150     # Check whether --enable-doxygen-html or --disable-doxygen-html was given.
3151 if test "${enable_doxygen_html+set}" = set; then
3152   enableval="$enable_doxygen_html"
3153
3154 case "$enableval" in
3155 #(
3156 y|Y|yes|Yes|YES)
3157     DX_FLAG_html=1
3158
3159
3160 test "$DX_FLAG_doc" = "1" \
3161 || { { echo "$as_me:$LINENO: error: doxygen-html requires doxygen-html" >&5
3162 echo "$as_me: error: doxygen-html requires doxygen-html" >&2;}
3163    { (exit 1); exit 1; }; }
3164
3165 test "$DX_FLAG_chm" = "0" \
3166 || { { echo "$as_me:$LINENO: error: doxygen-html contradicts doxygen-html" >&5
3167 echo "$as_me: error: doxygen-html contradicts doxygen-html" >&2;}
3168    { (exit 1); exit 1; }; }
3169
3170 ;; #(
3171 n|N|no|No|NO)
3172     DX_FLAG_html=0
3173
3174 ;; #(
3175 *)
3176     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-html" >&5
3177 echo "$as_me: error: invalid value '$enableval' given to doxygen-html" >&2;}
3178    { (exit 1); exit 1; }; }
3179 ;;
3180 esac
3181
3182 else
3183
3184 DX_FLAG_html=1
3185
3186
3187 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
3188
3189
3190 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
3191
3192
3193
3194 fi;
3195 if test "$DX_FLAG_html" = 1; then
3196
3197     :
3198 fi
3199 if test "$DX_FLAG_html" = 1; then
3200
3201
3202 if :; then
3203   DX_COND_html_TRUE=
3204   DX_COND_html_FALSE='#'
3205 else
3206   DX_COND_html_TRUE='#'
3207   DX_COND_html_FALSE=
3208 fi
3209
3210     DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3211
3212     :
3213 else
3214
3215
3216 if false; then
3217   DX_COND_html_TRUE=
3218   DX_COND_html_FALSE='#'
3219 else
3220   DX_COND_html_TRUE='#'
3221   DX_COND_html_FALSE=
3222 fi
3223
3224     test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
3225
3226     :
3227 fi
3228
3229
3230 # PostScript file generation:
3231
3232
3233
3234     # Check whether --enable-doxygen-ps or --disable-doxygen-ps was given.
3235 if test "${enable_doxygen_ps+set}" = set; then
3236   enableval="$enable_doxygen_ps"
3237
3238 case "$enableval" in
3239 #(
3240 y|Y|yes|Yes|YES)
3241     DX_FLAG_ps=1
3242
3243
3244 test "$DX_FLAG_doc" = "1" \
3245 || { { echo "$as_me:$LINENO: error: doxygen-ps requires doxygen-ps" >&5
3246 echo "$as_me: error: doxygen-ps requires doxygen-ps" >&2;}
3247    { (exit 1); exit 1; }; }
3248
3249 ;; #(
3250 n|N|no|No|NO)
3251     DX_FLAG_ps=0
3252
3253 ;; #(
3254 *)
3255     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-ps" >&5
3256 echo "$as_me: error: invalid value '$enableval' given to doxygen-ps" >&2;}
3257    { (exit 1); exit 1; }; }
3258 ;;
3259 esac
3260
3261 else
3262
3263 DX_FLAG_ps=0
3264
3265
3266 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
3267
3268
3269
3270 fi;
3271 if test "$DX_FLAG_ps" = 1; then
3272
3273 if test -n "$ac_tool_prefix"; then
3274   # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}latex; ac_word=$2
3276 echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3278 if test "${ac_cv_path_DX_LATEX+set}" = set; then
3279   echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281   case $DX_LATEX in
3282   [\\/]* | ?:[\\/]*)
3283   ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
3284   ;;
3285   *)
3286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289   IFS=$as_save_IFS
3290   test -z "$as_dir" && as_dir=.
3291   for ac_exec_ext in '' $ac_executable_extensions; do
3292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293     ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295     break 2
3296   fi
3297 done
3298 done
3299
3300   ;;
3301 esac
3302 fi
3303 DX_LATEX=$ac_cv_path_DX_LATEX
3304
3305 if test -n "$DX_LATEX"; then
3306   echo "$as_me:$LINENO: result: $DX_LATEX" >&5
3307 echo "${ECHO_T}$DX_LATEX" >&6
3308 else
3309   echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6
3311 fi
3312
3313 fi
3314 if test -z "$ac_cv_path_DX_LATEX"; then
3315   ac_pt_DX_LATEX=$DX_LATEX
3316   # Extract the first word of "latex", so it can be a program name with args.
3317 set dummy latex; ac_word=$2
3318 echo "$as_me:$LINENO: checking for $ac_word" >&5
3319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3320 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then
3321   echo $ECHO_N "(cached) $ECHO_C" >&6
3322 else
3323   case $ac_pt_DX_LATEX in
3324   [\\/]* | ?:[\\/]*)
3325   ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
3326   ;;
3327   *)
3328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331   IFS=$as_save_IFS
3332   test -z "$as_dir" && as_dir=.
3333   for ac_exec_ext in '' $ac_executable_extensions; do
3334   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335     ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337     break 2
3338   fi
3339 done
3340 done
3341
3342   ;;
3343 esac
3344 fi
3345 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
3346
3347 if test -n "$ac_pt_DX_LATEX"; then
3348   echo "$as_me:$LINENO: result: $ac_pt_DX_LATEX" >&5
3349 echo "${ECHO_T}$ac_pt_DX_LATEX" >&6
3350 else
3351   echo "$as_me:$LINENO: result: no" >&5
3352 echo "${ECHO_T}no" >&6
3353 fi
3354
3355   DX_LATEX=$ac_pt_DX_LATEX
3356 else
3357   DX_LATEX="$ac_cv_path_DX_LATEX"
3358 fi
3359
3360 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
3361     { echo "$as_me:$LINENO: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
3362 echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
3363     DX_FLAG_ps=0
3364
3365 fi
3366
3367
3368 if test -n "$ac_tool_prefix"; then
3369   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3370 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3371 echo "$as_me:$LINENO: checking for $ac_word" >&5
3372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3373 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3374   echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376   case $DX_MAKEINDEX in
3377   [\\/]* | ?:[\\/]*)
3378   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3379   ;;
3380   *)
3381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3383 do
3384   IFS=$as_save_IFS
3385   test -z "$as_dir" && as_dir=.
3386   for ac_exec_ext in '' $ac_executable_extensions; do
3387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3390     break 2
3391   fi
3392 done
3393 done
3394
3395   ;;
3396 esac
3397 fi
3398 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3399
3400 if test -n "$DX_MAKEINDEX"; then
3401   echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3402 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3403 else
3404   echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6
3406 fi
3407
3408 fi
3409 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3410   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3411   # Extract the first word of "makeindex", so it can be a program name with args.
3412 set dummy makeindex; ac_word=$2
3413 echo "$as_me:$LINENO: checking for $ac_word" >&5
3414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3415 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3416   echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418   case $ac_pt_DX_MAKEINDEX in
3419   [\\/]* | ?:[\\/]*)
3420   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3421   ;;
3422   *)
3423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426   IFS=$as_save_IFS
3427   test -z "$as_dir" && as_dir=.
3428   for ac_exec_ext in '' $ac_executable_extensions; do
3429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3432     break 2
3433   fi
3434 done
3435 done
3436
3437   ;;
3438 esac
3439 fi
3440 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3441
3442 if test -n "$ac_pt_DX_MAKEINDEX"; then
3443   echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3444 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3445 else
3446   echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6
3448 fi
3449
3450   DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3451 else
3452   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3453 fi
3454
3455 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
3456     { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
3457 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
3458     DX_FLAG_ps=0
3459
3460 fi
3461
3462
3463 if test -n "$ac_tool_prefix"; then
3464   # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
3465 set dummy ${ac_tool_prefix}dvips; ac_word=$2
3466 echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468 if test "${ac_cv_path_DX_DVIPS+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   case $DX_DVIPS in
3472   [\\/]* | ?:[\\/]*)
3473   ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
3474   ;;
3475   *)
3476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479   IFS=$as_save_IFS
3480   test -z "$as_dir" && as_dir=.
3481   for ac_exec_ext in '' $ac_executable_extensions; do
3482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483     ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485     break 2
3486   fi
3487 done
3488 done
3489
3490   ;;
3491 esac
3492 fi
3493 DX_DVIPS=$ac_cv_path_DX_DVIPS
3494
3495 if test -n "$DX_DVIPS"; then
3496   echo "$as_me:$LINENO: result: $DX_DVIPS" >&5
3497 echo "${ECHO_T}$DX_DVIPS" >&6
3498 else
3499   echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3501 fi
3502
3503 fi
3504 if test -z "$ac_cv_path_DX_DVIPS"; then
3505   ac_pt_DX_DVIPS=$DX_DVIPS
3506   # Extract the first word of "dvips", so it can be a program name with args.
3507 set dummy dvips; ac_word=$2
3508 echo "$as_me:$LINENO: checking for $ac_word" >&5
3509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3510 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then
3511   echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513   case $ac_pt_DX_DVIPS in
3514   [\\/]* | ?:[\\/]*)
3515   ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
3516   ;;
3517   *)
3518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521   IFS=$as_save_IFS
3522   test -z "$as_dir" && as_dir=.
3523   for ac_exec_ext in '' $ac_executable_extensions; do
3524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525     ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3527     break 2
3528   fi
3529 done
3530 done
3531
3532   ;;
3533 esac
3534 fi
3535 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
3536
3537 if test -n "$ac_pt_DX_DVIPS"; then
3538   echo "$as_me:$LINENO: result: $ac_pt_DX_DVIPS" >&5
3539 echo "${ECHO_T}$ac_pt_DX_DVIPS" >&6
3540 else
3541   echo "$as_me:$LINENO: result: no" >&5
3542 echo "${ECHO_T}no" >&6
3543 fi
3544
3545   DX_DVIPS=$ac_pt_DX_DVIPS
3546 else
3547   DX_DVIPS="$ac_cv_path_DX_DVIPS"
3548 fi
3549
3550 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
3551     { echo "$as_me:$LINENO: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
3552 echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
3553     DX_FLAG_ps=0
3554
3555 fi
3556
3557
3558 if test -n "$ac_tool_prefix"; then
3559   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3560 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3561 echo "$as_me:$LINENO: checking for $ac_word" >&5
3562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3563 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   case $DX_EGREP in
3567   [\\/]* | ?:[\\/]*)
3568   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3569   ;;
3570   *)
3571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574   IFS=$as_save_IFS
3575   test -z "$as_dir" && as_dir=.
3576   for ac_exec_ext in '' $ac_executable_extensions; do
3577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3580     break 2
3581   fi
3582 done
3583 done
3584
3585   ;;
3586 esac
3587 fi
3588 DX_EGREP=$ac_cv_path_DX_EGREP
3589
3590 if test -n "$DX_EGREP"; then
3591   echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3592 echo "${ECHO_T}$DX_EGREP" >&6
3593 else
3594   echo "$as_me:$LINENO: result: no" >&5
3595 echo "${ECHO_T}no" >&6
3596 fi
3597
3598 fi
3599 if test -z "$ac_cv_path_DX_EGREP"; then
3600   ac_pt_DX_EGREP=$DX_EGREP
3601   # Extract the first word of "egrep", so it can be a program name with args.
3602 set dummy egrep; ac_word=$2
3603 echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608   case $ac_pt_DX_EGREP in
3609   [\\/]* | ?:[\\/]*)
3610   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3611   ;;
3612   *)
3613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616   IFS=$as_save_IFS
3617   test -z "$as_dir" && as_dir=.
3618   for ac_exec_ext in '' $ac_executable_extensions; do
3619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3622     break 2
3623   fi
3624 done
3625 done
3626
3627   ;;
3628 esac
3629 fi
3630 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3631
3632 if test -n "$ac_pt_DX_EGREP"; then
3633   echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3634 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3635 else
3636   echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3638 fi
3639
3640   DX_EGREP=$ac_pt_DX_EGREP
3641 else
3642   DX_EGREP="$ac_cv_path_DX_EGREP"
3643 fi
3644
3645 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
3646     { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
3647 echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
3648     DX_FLAG_ps=0
3649
3650 fi
3651
3652     :
3653 fi
3654 if test "$DX_FLAG_ps" = 1; then
3655
3656
3657 if :; then
3658   DX_COND_ps_TRUE=
3659   DX_COND_ps_FALSE='#'
3660 else
3661   DX_COND_ps_TRUE='#'
3662   DX_COND_ps_FALSE=
3663 fi
3664
3665
3666     :
3667 else
3668
3669
3670 if false; then
3671   DX_COND_ps_TRUE=
3672   DX_COND_ps_FALSE='#'
3673 else
3674   DX_COND_ps_TRUE='#'
3675   DX_COND_ps_FALSE=
3676 fi
3677
3678
3679     :
3680 fi
3681
3682
3683 # PDF file generation:
3684
3685
3686
3687     # Check whether --enable-doxygen-pdf or --disable-doxygen-pdf was given.
3688 if test "${enable_doxygen_pdf+set}" = set; then
3689   enableval="$enable_doxygen_pdf"
3690
3691 case "$enableval" in
3692 #(
3693 y|Y|yes|Yes|YES)
3694     DX_FLAG_pdf=1
3695
3696
3697 test "$DX_FLAG_doc" = "1" \
3698 || { { echo "$as_me:$LINENO: error: doxygen-pdf requires doxygen-pdf" >&5
3699 echo "$as_me: error: doxygen-pdf requires doxygen-pdf" >&2;}
3700    { (exit 1); exit 1; }; }
3701
3702 ;; #(
3703 n|N|no|No|NO)
3704     DX_FLAG_pdf=0
3705
3706 ;; #(
3707 *)
3708     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-pdf" >&5
3709 echo "$as_me: error: invalid value '$enableval' given to doxygen-pdf" >&2;}
3710    { (exit 1); exit 1; }; }
3711 ;;
3712 esac
3713
3714 else
3715
3716 DX_FLAG_pdf=0
3717
3718
3719 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
3720
3721
3722
3723 fi;
3724 if test "$DX_FLAG_pdf" = 1; then
3725
3726 if test -n "$ac_tool_prefix"; then
3727   # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
3728 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
3729 echo "$as_me:$LINENO: checking for $ac_word" >&5
3730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3731 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then
3732   echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734   case $DX_PDFLATEX in
3735   [\\/]* | ?:[\\/]*)
3736   ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
3737   ;;
3738   *)
3739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3741 do
3742   IFS=$as_save_IFS
3743   test -z "$as_dir" && as_dir=.
3744   for ac_exec_ext in '' $ac_executable_extensions; do
3745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3746     ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3748     break 2
3749   fi
3750 done
3751 done
3752
3753   ;;
3754 esac
3755 fi
3756 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
3757
3758 if test -n "$DX_PDFLATEX"; then
3759   echo "$as_me:$LINENO: result: $DX_PDFLATEX" >&5
3760 echo "${ECHO_T}$DX_PDFLATEX" >&6
3761 else
3762   echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3764 fi
3765
3766 fi
3767 if test -z "$ac_cv_path_DX_PDFLATEX"; then
3768   ac_pt_DX_PDFLATEX=$DX_PDFLATEX
3769   # Extract the first word of "pdflatex", so it can be a program name with args.
3770 set dummy pdflatex; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   case $ac_pt_DX_PDFLATEX in
3777   [\\/]* | ?:[\\/]*)
3778   ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
3779   ;;
3780   *)
3781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784   IFS=$as_save_IFS
3785   test -z "$as_dir" && as_dir=.
3786   for ac_exec_ext in '' $ac_executable_extensions; do
3787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788     ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790     break 2
3791   fi
3792 done
3793 done
3794
3795   ;;
3796 esac
3797 fi
3798 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
3799
3800 if test -n "$ac_pt_DX_PDFLATEX"; then
3801   echo "$as_me:$LINENO: result: $ac_pt_DX_PDFLATEX" >&5
3802 echo "${ECHO_T}$ac_pt_DX_PDFLATEX" >&6
3803 else
3804   echo "$as_me:$LINENO: result: no" >&5
3805 echo "${ECHO_T}no" >&6
3806 fi
3807
3808   DX_PDFLATEX=$ac_pt_DX_PDFLATEX
3809 else
3810   DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
3811 fi
3812
3813 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
3814     { echo "$as_me:$LINENO: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
3815 echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
3816     DX_FLAG_pdf=0
3817
3818 fi
3819
3820
3821 if test -n "$ac_tool_prefix"; then
3822   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3823 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3824 echo "$as_me:$LINENO: checking for $ac_word" >&5
3825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3826 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   case $DX_MAKEINDEX in
3830   [\\/]* | ?:[\\/]*)
3831   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3832   ;;
3833   *)
3834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH
3836 do
3837   IFS=$as_save_IFS
3838   test -z "$as_dir" && as_dir=.
3839   for ac_exec_ext in '' $ac_executable_extensions; do
3840   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3843     break 2
3844   fi
3845 done
3846 done
3847
3848   ;;
3849 esac
3850 fi
3851 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3852
3853 if test -n "$DX_MAKEINDEX"; then
3854   echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3855 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3856 else
3857   echo "$as_me:$LINENO: result: no" >&5
3858 echo "${ECHO_T}no" >&6
3859 fi
3860
3861 fi
3862 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3863   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3864   # Extract the first word of "makeindex", so it can be a program name with args.
3865 set dummy makeindex; ac_word=$2
3866 echo "$as_me:$LINENO: checking for $ac_word" >&5
3867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3868 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3869   echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871   case $ac_pt_DX_MAKEINDEX in
3872   [\\/]* | ?:[\\/]*)
3873   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3874   ;;
3875   *)
3876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3878 do
3879   IFS=$as_save_IFS
3880   test -z "$as_dir" && as_dir=.
3881   for ac_exec_ext in '' $ac_executable_extensions; do
3882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885     break 2
3886   fi
3887 done
3888 done
3889
3890   ;;
3891 esac
3892 fi
3893 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3894
3895 if test -n "$ac_pt_DX_MAKEINDEX"; then
3896   echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3897 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3898 else
3899   echo "$as_me:$LINENO: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3901 fi
3902
3903   DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3904 else
3905   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3906 fi
3907
3908 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
3909     { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
3910 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
3911     DX_FLAG_pdf=0
3912
3913 fi
3914
3915
3916 if test -n "$ac_tool_prefix"; then
3917   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3918 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3919 echo "$as_me:$LINENO: checking for $ac_word" >&5
3920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3921 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924   case $DX_EGREP in
3925   [\\/]* | ?:[\\/]*)
3926   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3927   ;;
3928   *)
3929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932   IFS=$as_save_IFS
3933   test -z "$as_dir" && as_dir=.
3934   for ac_exec_ext in '' $ac_executable_extensions; do
3935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938     break 2
3939   fi
3940 done
3941 done
3942
3943   ;;
3944 esac
3945 fi
3946 DX_EGREP=$ac_cv_path_DX_EGREP
3947
3948 if test -n "$DX_EGREP"; then
3949   echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3950 echo "${ECHO_T}$DX_EGREP" >&6
3951 else
3952   echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6
3954 fi
3955
3956 fi
3957 if test -z "$ac_cv_path_DX_EGREP"; then
3958   ac_pt_DX_EGREP=$DX_EGREP
3959   # Extract the first word of "egrep", so it can be a program name with args.
3960 set dummy egrep; ac_word=$2
3961 echo "$as_me:$LINENO: checking for $ac_word" >&5
3962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   case $ac_pt_DX_EGREP in
3967   [\\/]* | ?:[\\/]*)
3968   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3969   ;;
3970   *)
3971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974   IFS=$as_save_IFS
3975   test -z "$as_dir" && as_dir=.
3976   for ac_exec_ext in '' $ac_executable_extensions; do
3977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980     break 2
3981   fi
3982 done
3983 done
3984
3985   ;;
3986 esac
3987 fi
3988 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3989
3990 if test -n "$ac_pt_DX_EGREP"; then
3991   echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3992 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3993 else
3994   echo "$as_me:$LINENO: result: no" >&5
3995 echo "${ECHO_T}no" >&6
3996 fi
3997
3998   DX_EGREP=$ac_pt_DX_EGREP
3999 else
4000   DX_EGREP="$ac_cv_path_DX_EGREP"
4001 fi
4002
4003 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
4004     { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
4005 echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
4006     DX_FLAG_pdf=0
4007
4008 fi
4009
4010     :
4011 fi
4012 if test "$DX_FLAG_pdf" = 1; then
4013
4014
4015 if :; then
4016   DX_COND_pdf_TRUE=
4017   DX_COND_pdf_FALSE='#'
4018 else
4019   DX_COND_pdf_TRUE='#'
4020   DX_COND_pdf_FALSE=
4021 fi
4022
4023
4024     :
4025 else
4026
4027
4028 if false; then
4029   DX_COND_pdf_TRUE=
4030   DX_COND_pdf_FALSE='#'
4031 else
4032   DX_COND_pdf_TRUE='#'
4033   DX_COND_pdf_FALSE=
4034 fi
4035
4036
4037     :
4038 fi
4039
4040
4041 # LaTeX generation for PS and/or PDF:
4042 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
4043
4044
4045 if :; then
4046   DX_COND_latex_TRUE=
4047   DX_COND_latex_FALSE='#'
4048 else
4049   DX_COND_latex_TRUE='#'
4050   DX_COND_latex_FALSE=
4051 fi
4052
4053     DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
4054
4055 else
4056
4057
4058 if false; then
4059   DX_COND_latex_TRUE=
4060   DX_COND_latex_FALSE='#'
4061 else
4062   DX_COND_latex_TRUE='#'
4063   DX_COND_latex_FALSE=
4064 fi
4065
4066     DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
4067
4068 fi
4069
4070 # Paper size for PS and/or PDF:
4071
4072 case "$DOXYGEN_PAPER_SIZE" in
4073 #(
4074 "")
4075     DOXYGEN_PAPER_SIZE=""
4076
4077 ;; #(
4078 a4wide|a4|letter|legal|executive)
4079     DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
4080
4081 ;; #(
4082 *)
4083     { { echo "$as_me:$LINENO: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&5
4084 echo "$as_me: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&2;}
4085    { (exit 1); exit 1; }; }
4086 ;;
4087 esac
4088
4089 #For debugging:
4090 #echo DX_FLAG_doc=$DX_FLAG_doc
4091 #echo DX_FLAG_dot=$DX_FLAG_dot
4092 #echo DX_FLAG_man=$DX_FLAG_man
4093 #echo DX_FLAG_html=$DX_FLAG_html
4094 #echo DX_FLAG_chm=$DX_FLAG_chm
4095 #echo DX_FLAG_chi=$DX_FLAG_chi
4096 #echo DX_FLAG_rtf=$DX_FLAG_rtf
4097 #echo DX_FLAG_xml=$DX_FLAG_xml
4098 #echo DX_FLAG_pdf=$DX_FLAG_pdf
4099 #echo DX_FLAG_ps=$DX_FLAG_ps
4100 #echo DX_ENV=$DX_ENV
4101
4102 DX_INCLUDE=
4103
4104 # Check whether --enable-debug or --disable-debug was given.
4105 if test "${enable_debug+set}" = set; then
4106   enableval="$enable_debug"
4107   enable_debug=$enableval
4108 else
4109   enable_debug=no
4110 fi;
4111
4112 if test "$enable_debug" = "yes" ; then
4113     GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
4114     GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
4115 else
4116     GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
4117     GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
4118 fi
4119
4120 ac_ext=c
4121 ac_cpp='$CPP $CPPFLAGS'
4122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125 if test -n "$ac_tool_prefix"; then
4126   for ac_prog in gcc gcc3 cc
4127   do
4128     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4130 echo "$as_me:$LINENO: checking for $ac_word" >&5
4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4132 if test "${ac_cv_prog_CC+set}" = set; then
4133   echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135   if test -n "$CC"; then
4136   ac_cv_prog_CC="$CC" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141   IFS=$as_save_IFS
4142   test -z "$as_dir" && as_dir=.
4143   for ac_exec_ext in '' $ac_executable_extensions; do
4144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147     break 2
4148   fi
4149 done
4150 done
4151
4152 fi
4153 fi
4154 CC=$ac_cv_prog_CC
4155 if test -n "$CC"; then
4156   echo "$as_me:$LINENO: result: $CC" >&5
4157 echo "${ECHO_T}$CC" >&6
4158 else
4159   echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6
4161 fi
4162
4163     test -n "$CC" && break
4164   done
4165 fi
4166 if test -z "$CC"; then
4167   ac_ct_CC=$CC
4168   for ac_prog in gcc gcc3 cc
4169 do
4170   # Extract the first word of "$ac_prog", so it can be a program name with args.
4171 set dummy $ac_prog; ac_word=$2
4172 echo "$as_me:$LINENO: checking for $ac_word" >&5
4173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4174 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4175   echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177   if test -n "$ac_ct_CC"; then
4178   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183   IFS=$as_save_IFS
4184   test -z "$as_dir" && as_dir=.
4185   for ac_exec_ext in '' $ac_executable_extensions; do
4186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187     ac_cv_prog_ac_ct_CC="$ac_prog"
4188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189     break 2
4190   fi
4191 done
4192 done
4193
4194 fi
4195 fi
4196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4197 if test -n "$ac_ct_CC"; then
4198   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4199 echo "${ECHO_T}$ac_ct_CC" >&6
4200 else
4201   echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6
4203 fi
4204
4205   test -n "$ac_ct_CC" && break
4206 done
4207
4208   CC=$ac_ct_CC
4209 fi
4210
4211
4212 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4213 See \`config.log' for more details." >&5
4214 echo "$as_me: error: no acceptable C compiler found in \$PATH
4215 See \`config.log' for more details." >&2;}
4216    { (exit 1); exit 1; }; }
4217
4218 # Provide some information about the compiler.
4219 echo "$as_me:$LINENO:" \
4220      "checking for C compiler version" >&5
4221 ac_compiler=`set X $ac_compile; echo $2`
4222 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4223   (eval $ac_compiler --version </dev/null >&5) 2>&5
4224   ac_status=$?
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); }
4227 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4228   (eval $ac_compiler -v </dev/null >&5) 2>&5
4229   ac_status=$?
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); }
4232 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4233   (eval $ac_compiler -V </dev/null >&5) 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); }
4237
4238 cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h.  */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h.  */
4244
4245 int
4246 main ()
4247 {
4248
4249   ;
4250   return 0;
4251 }
4252 _ACEOF
4253 ac_clean_files_save=$ac_clean_files
4254 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4255 # Try to create an executable without -o first, disregard a.out.
4256 # It will help us diagnose broken compilers, and finding out an intuition
4257 # of exeext.
4258 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4259 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4260 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4261 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4262   (eval $ac_link_default) 2>&5
4263   ac_status=$?
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); }; then
4266   # Find the output, starting from the most likely.  This scheme is
4267 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4268 # resort.
4269
4270 # Be careful to initialize this variable, since it used to be cached.
4271 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4272 ac_cv_exeext=
4273 # b.out is created by i960 compilers.
4274 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4275 do
4276   test -f "$ac_file" || continue
4277   case $ac_file in
4278     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4279         ;;
4280     conftest.$ac_ext )
4281         # This is the source file.
4282         ;;
4283     [ab].out )
4284         # We found the default executable, but exeext='' is most
4285         # certainly right.
4286         break;;
4287     *.* )
4288         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4289         # FIXME: I believe we export ac_cv_exeext for Libtool,
4290         # but it would be cool to find out if it's true.  Does anybody
4291         # maintain Libtool? --akim.
4292         export ac_cv_exeext
4293         break;;
4294     * )
4295         break;;
4296   esac
4297 done
4298 else
4299   echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4301
4302 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4303 See \`config.log' for more details." >&5
4304 echo "$as_me: error: C compiler cannot create executables
4305 See \`config.log' for more details." >&2;}
4306    { (exit 77); exit 77; }; }
4307 fi
4308
4309 ac_exeext=$ac_cv_exeext
4310 echo "$as_me:$LINENO: result: $ac_file" >&5
4311 echo "${ECHO_T}$ac_file" >&6
4312
4313 # Check the compiler produces executables we can run.  If not, either
4314 # the compiler is broken, or we cross compile.
4315 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4316 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4317 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4318 # If not cross compiling, check that we can run a simple program.
4319 if test "$cross_compiling" != yes; then
4320   if { ac_try='./$ac_file'
4321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322   (eval $ac_try) 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); }; }; then
4326     cross_compiling=no
4327   else
4328     if test "$cross_compiling" = maybe; then
4329         cross_compiling=yes
4330     else
4331         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4332 If you meant to cross compile, use \`--host'.
4333 See \`config.log' for more details." >&5
4334 echo "$as_me: error: cannot run C compiled programs.
4335 If you meant to cross compile, use \`--host'.
4336 See \`config.log' for more details." >&2;}
4337    { (exit 1); exit 1; }; }
4338     fi
4339   fi
4340 fi
4341 echo "$as_me:$LINENO: result: yes" >&5
4342 echo "${ECHO_T}yes" >&6
4343
4344 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4345 ac_clean_files=$ac_clean_files_save
4346 # Check the compiler produces executables we can run.  If not, either
4347 # the compiler is broken, or we cross compile.
4348 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4349 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4350 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4351 echo "${ECHO_T}$cross_compiling" >&6
4352
4353 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4354 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4356   (eval $ac_link) 2>&5
4357   ac_status=$?
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); }; then
4360   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4361 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4362 # work properly (i.e., refer to `conftest.exe'), while it won't with
4363 # `rm'.
4364 for ac_file in conftest.exe conftest conftest.*; do
4365   test -f "$ac_file" || continue
4366   case $ac_file in
4367     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4368     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4369           export ac_cv_exeext
4370           break;;
4371     * ) break;;
4372   esac
4373 done
4374 else
4375   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4376 See \`config.log' for more details." >&5
4377 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4378 See \`config.log' for more details." >&2;}
4379    { (exit 1); exit 1; }; }
4380 fi
4381
4382 rm -f conftest$ac_cv_exeext
4383 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4384 echo "${ECHO_T}$ac_cv_exeext" >&6
4385
4386 rm -f conftest.$ac_ext
4387 EXEEXT=$ac_cv_exeext
4388 ac_exeext=$EXEEXT
4389 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4390 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4391 if test "${ac_cv_objext+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   cat >conftest.$ac_ext <<_ACEOF
4395 /* confdefs.h.  */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h.  */
4400
4401 int
4402 main ()
4403 {
4404
4405   ;
4406   return 0;
4407 }
4408 _ACEOF
4409 rm -f conftest.o conftest.obj
4410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411   (eval $ac_compile) 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); }; then
4415   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4416   case $ac_file in
4417     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4418     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4419        break;;
4420   esac
4421 done
4422 else
4423   echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4425
4426 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4427 See \`config.log' for more details." >&5
4428 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4429 See \`config.log' for more details." >&2;}
4430    { (exit 1); exit 1; }; }
4431 fi
4432
4433 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4434 fi
4435 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4436 echo "${ECHO_T}$ac_cv_objext" >&6
4437 OBJEXT=$ac_cv_objext
4438 ac_objext=$OBJEXT
4439 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4440 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4441 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450
4451 int
4452 main ()
4453 {
4454 #ifndef __GNUC__
4455        choke me
4456 #endif
4457
4458   ;
4459   return 0;
4460 }
4461 _ACEOF
4462 rm -f conftest.$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464   (eval $ac_compile) 2>conftest.er1
4465   ac_status=$?
4466   grep -v '^ *+' conftest.er1 >conftest.err
4467   rm -f conftest.er1
4468   cat conftest.err >&5
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); } &&
4471          { ac_try='test -z "$ac_c_werror_flag"
4472                          || test ! -s conftest.err'
4473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474   (eval $ac_try) 2>&5
4475   ac_status=$?
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); }; } &&
4478          { ac_try='test -s conftest.$ac_objext'
4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; }; then
4484   ac_compiler_gnu=yes
4485 else
4486   echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 ac_compiler_gnu=no
4490 fi
4491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4492 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4493
4494 fi
4495 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4496 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4497 GCC=`test $ac_compiler_gnu = yes && echo yes`
4498 ac_test_CFLAGS=${CFLAGS+set}
4499 ac_save_CFLAGS=$CFLAGS
4500 CFLAGS="-g"
4501 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4502 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4503 if test "${ac_cv_prog_cc_g+set}" = set; then
4504   echo $ECHO_N "(cached) $ECHO_C" >&6
4505 else
4506   cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h.  */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h.  */
4512
4513 int
4514 main ()
4515 {
4516
4517   ;
4518   return 0;
4519 }
4520 _ACEOF
4521 rm -f conftest.$ac_objext
4522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4523   (eval $ac_compile) 2>conftest.er1
4524   ac_status=$?
4525   grep -v '^ *+' conftest.er1 >conftest.err
4526   rm -f conftest.er1
4527   cat conftest.err >&5
4528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529   (exit $ac_status); } &&
4530          { ac_try='test -z "$ac_c_werror_flag"
4531                          || test ! -s conftest.err'
4532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533   (eval $ac_try) 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); }; } &&
4537          { ac_try='test -s conftest.$ac_objext'
4538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539   (eval $ac_try) 2>&5
4540   ac_status=$?
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); }; }; then
4543   ac_cv_prog_cc_g=yes
4544 else
4545   echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548 ac_cv_prog_cc_g=no
4549 fi
4550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4551 fi
4552 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4553 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4554 if test "$ac_test_CFLAGS" = set; then
4555   CFLAGS=$ac_save_CFLAGS
4556 elif test $ac_cv_prog_cc_g = yes; then
4557   if test "$GCC" = yes; then
4558     CFLAGS="-g -O2"
4559   else
4560     CFLAGS="-g"
4561   fi
4562 else
4563   if test "$GCC" = yes; then
4564     CFLAGS="-O2"
4565   else
4566     CFLAGS=
4567   fi
4568 fi
4569 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4570 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4571 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4572   echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574   ac_cv_prog_cc_stdc=no
4575 ac_save_CC=$CC
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h.  */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h.  */
4582 #include <stdarg.h>
4583 #include <stdio.h>
4584 #include <sys/types.h>
4585 #include <sys/stat.h>
4586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4587 struct buf { int x; };
4588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4589 static char *e (p, i)
4590      char **p;
4591      int i;
4592 {
4593   return p[i];
4594 }
4595 static char *f (char * (*g) (char **, int), char **p, ...)
4596 {
4597   char *s;
4598   va_list v;
4599   va_start (v,p);
4600   s = g (p, va_arg (v,int));
4601   va_end (v);
4602   return s;
4603 }
4604
4605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4606    function prototypes and stuff, but not '\xHH' hex character constants.
4607    These don't provoke an error unfortunately, instead are silently treated
4608    as 'x'.  The following induces an error, until -std1 is added to get
4609    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4610    array size at least.  It's necessary to write '\x00'==0 to get something
4611    that's true only with -std1.  */
4612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4613
4614 int test (int i, double x);
4615 struct s1 {int (*f) (int a);};
4616 struct s2 {int (*f) (double a);};
4617 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4618 int argc;
4619 char **argv;
4620 int
4621 main ()
4622 {
4623 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4624   ;
4625   return 0;
4626 }
4627 _ACEOF
4628 # Don't try gcc -ansi; that turns off useful extensions and
4629 # breaks some systems' header files.
4630 # AIX                   -qlanglvl=ansi
4631 # Ultrix and OSF/1      -std1
4632 # HP-UX 10.20 and later -Ae
4633 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4634 # SVR4                  -Xc -D__EXTENSIONS__
4635 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4636 do
4637   CC="$ac_save_CC $ac_arg"
4638   rm -f conftest.$ac_objext
4639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4640   (eval $ac_compile) 2>conftest.er1
4641   ac_status=$?
4642   grep -v '^ *+' conftest.er1 >conftest.err
4643   rm -f conftest.er1
4644   cat conftest.err >&5
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); } &&
4647          { ac_try='test -z "$ac_c_werror_flag"
4648                          || test ! -s conftest.err'
4649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650   (eval $ac_try) 2>&5
4651   ac_status=$?
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); }; } &&
4654          { ac_try='test -s conftest.$ac_objext'
4655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656   (eval $ac_try) 2>&5
4657   ac_status=$?
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); }; }; then
4660   ac_cv_prog_cc_stdc=$ac_arg
4661 break
4662 else
4663   echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 fi
4667 rm -f conftest.err conftest.$ac_objext
4668 done
4669 rm -f conftest.$ac_ext conftest.$ac_objext
4670 CC=$ac_save_CC
4671
4672 fi
4673
4674 case "x$ac_cv_prog_cc_stdc" in
4675   x|xno)
4676     echo "$as_me:$LINENO: result: none needed" >&5
4677 echo "${ECHO_T}none needed" >&6 ;;
4678   *)
4679     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4680 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4681     CC="$CC $ac_cv_prog_cc_stdc" ;;
4682 esac
4683
4684 # Some people use a C++ compiler to compile C.  Since we use `exit',
4685 # in C++ we need to declare it.  In case someone uses the same compiler
4686 # for both compiling C and C++ we need to have the C++ compiler decide
4687 # the declaration of exit, since it's the most demanding environment.
4688 cat >conftest.$ac_ext <<_ACEOF
4689 #ifndef __cplusplus
4690   choke me
4691 #endif
4692 _ACEOF
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695   (eval $ac_compile) 2>conftest.er1
4696   ac_status=$?
4697   grep -v '^ *+' conftest.er1 >conftest.err
4698   rm -f conftest.er1
4699   cat conftest.err >&5
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); } &&
4702          { ac_try='test -z "$ac_c_werror_flag"
4703                          || test ! -s conftest.err'
4704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705   (eval $ac_try) 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; } &&
4709          { ac_try='test -s conftest.$ac_objext'
4710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711   (eval $ac_try) 2>&5
4712   ac_status=$?
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); }; }; then
4715   for ac_declaration in \
4716    '' \
4717    'extern "C" void std::exit (int) throw (); using std::exit;' \
4718    'extern "C" void std::exit (int); using std::exit;' \
4719    'extern "C" void exit (int) throw ();' \
4720    'extern "C" void exit (int);' \
4721    'void exit (int);'
4722 do
4723   cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h.  */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h.  */
4729 $ac_declaration
4730 #include <stdlib.h>
4731 int
4732 main ()
4733 {
4734 exit (42);
4735   ;
4736   return 0;
4737 }
4738 _ACEOF
4739 rm -f conftest.$ac_objext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741   (eval $ac_compile) 2>conftest.er1
4742   ac_status=$?
4743   grep -v '^ *+' conftest.er1 >conftest.err
4744   rm -f conftest.er1
4745   cat conftest.err >&5
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); } &&
4748          { ac_try='test -z "$ac_c_werror_flag"
4749                          || test ! -s conftest.err'
4750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751   (eval $ac_try) 2>&5
4752   ac_status=$?
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); }; } &&
4755          { ac_try='test -s conftest.$ac_objext'
4756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757   (eval $ac_try) 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); }; }; then
4761   :
4762 else
4763   echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 continue
4767 fi
4768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4769   cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h.  */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h.  */
4775 $ac_declaration
4776 int
4777 main ()
4778 {
4779 exit (42);
4780   ;
4781   return 0;
4782 }
4783 _ACEOF
4784 rm -f conftest.$ac_objext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4786   (eval $ac_compile) 2>conftest.er1
4787   ac_status=$?
4788   grep -v '^ *+' conftest.er1 >conftest.err
4789   rm -f conftest.er1
4790   cat conftest.err >&5
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); } &&
4793          { ac_try='test -z "$ac_c_werror_flag"
4794                          || test ! -s conftest.err'
4795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796   (eval $ac_try) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); }; } &&
4800          { ac_try='test -s conftest.$ac_objext'
4801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802   (eval $ac_try) 2>&5
4803   ac_status=$?
4804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805   (exit $ac_status); }; }; then
4806   break
4807 else
4808   echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4810
4811 fi
4812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4813 done
4814 rm -f conftest*
4815 if test -n "$ac_declaration"; then
4816   echo '#ifdef __cplusplus' >>confdefs.h
4817   echo $ac_declaration      >>confdefs.h
4818   echo '#endif'             >>confdefs.h
4819 fi
4820
4821 else
4822   echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4824
4825 fi
4826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4827 ac_ext=c
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832 DEPDIR="${am__leading_dot}deps"
4833
4834           ac_config_commands="$ac_config_commands depfiles"
4835
4836
4837 am_make=${MAKE-make}
4838 cat > confinc << 'END'
4839 am__doit:
4840         @echo done
4841 .PHONY: am__doit
4842 END
4843 # If we don't find an include directive, just comment out the code.
4844 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4845 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4846 am__include="#"
4847 am__quote=
4848 _am_result=none
4849 # First try GNU make style include.
4850 echo "include confinc" > confmf
4851 # We grep out `Entering directory' and `Leaving directory'
4852 # messages which can occur if `w' ends up in MAKEFLAGS.
4853 # In particular we don't look at `^make:' because GNU make might
4854 # be invoked under some other name (usually "gmake"), in which
4855 # case it prints its new name instead of `make'.
4856 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4857    am__include=include
4858    am__quote=
4859    _am_result=GNU
4860 fi
4861 # Now try BSD make style include.
4862 if test "$am__include" = "#"; then
4863    echo '.include "confinc"' > confmf
4864    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4865       am__include=.include
4866       am__quote="\""
4867       _am_result=BSD
4868    fi
4869 fi
4870
4871
4872 echo "$as_me:$LINENO: result: $_am_result" >&5
4873 echo "${ECHO_T}$_am_result" >&6
4874 rm -f confinc confmf
4875
4876 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4877 if test "${enable_dependency_tracking+set}" = set; then
4878   enableval="$enable_dependency_tracking"
4879
4880 fi;
4881 if test "x$enable_dependency_tracking" != xno; then
4882   am_depcomp="$ac_aux_dir/depcomp"
4883   AMDEPBACKSLASH='\'
4884 fi
4885
4886
4887 if test "x$enable_dependency_tracking" != xno; then
4888   AMDEP_TRUE=
4889   AMDEP_FALSE='#'
4890 else
4891   AMDEP_TRUE='#'
4892   AMDEP_FALSE=
4893 fi
4894
4895
4896
4897
4898 depcc="$CC"   am_compiler_list=
4899
4900 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4901 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4902 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4906   # We make a subdir and do the tests there.  Otherwise we can end up
4907   # making bogus files that we don't know about and never remove.  For
4908   # instance it was reported that on HP-UX the gcc test will end up
4909   # making a dummy file named `D' -- because `-MD' means `put the output
4910   # in D'.
4911   mkdir conftest.dir
4912   # Copy depcomp to subdir because otherwise we won't find it if we're
4913   # using a relative directory.
4914   cp "$am_depcomp" conftest.dir
4915   cd conftest.dir
4916   # We will build objects and dependencies in a subdirectory because
4917   # it helps to detect inapplicable dependency modes.  For instance
4918   # both Tru64's cc and ICC support -MD to output dependencies as a
4919   # side effect of compilation, but ICC will put the dependencies in
4920   # the current directory while Tru64 will put them in the object
4921   # directory.
4922   mkdir sub
4923
4924   am_cv_CC_dependencies_compiler_type=none
4925   if test "$am_compiler_list" = ""; then
4926      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4927   fi
4928   for depmode in $am_compiler_list; do
4929     # Setup a source with many dependencies, because some compilers
4930     # like to wrap large dependency lists on column 80 (with \), and
4931     # we should not choose a depcomp mode which is confused by this.
4932     #
4933     # We need to recreate these files for each test, as the compiler may
4934     # overwrite some of them when testing with obscure command lines.
4935     # This happens at least with the AIX C compiler.
4936     : > sub/conftest.c
4937     for i in 1 2 3 4 5 6; do
4938       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4939       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4940       # Solaris 8's {/usr,}/bin/sh.
4941       touch sub/conftst$i.h
4942     done
4943     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4944
4945     case $depmode in
4946     nosideeffect)
4947       # after this tag, mechanisms are not by side-effect, so they'll
4948       # only be used when explicitly requested
4949       if test "x$enable_dependency_tracking" = xyes; then
4950         continue
4951       else
4952         break
4953       fi
4954       ;;
4955     none) break ;;
4956     esac
4957     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4958     # mode.  It turns out that the SunPro C++ compiler does not properly
4959     # handle `-M -o', and we need to detect this.
4960     if depmode=$depmode \
4961        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4962        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4963        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4964          >/dev/null 2>conftest.err &&
4965        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4966        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4967        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4968       # icc doesn't choke on unknown options, it will just issue warnings
4969       # or remarks (even with -Werror).  So we grep stderr for any message
4970       # that says an option was ignored or not supported.
4971       # When given -MP, icc 7.0 and 7.1 complain thusly:
4972       #   icc: Command line warning: ignoring option '-M'; no argument required
4973       # The diagnosis changed in icc 8.0:
4974       #   icc: Command line remark: option '-MP' not supported
4975       if (grep 'ignoring option' conftest.err ||
4976           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4977         am_cv_CC_dependencies_compiler_type=$depmode
4978         break
4979       fi
4980     fi
4981   done
4982
4983   cd ..
4984   rm -rf conftest.dir
4985 else
4986   am_cv_CC_dependencies_compiler_type=none
4987 fi
4988
4989 fi
4990 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4991 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4992 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4993
4994
4995
4996 if
4997   test "x$enable_dependency_tracking" != xno \
4998   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4999   am__fastdepCC_TRUE=
5000   am__fastdepCC_FALSE='#'
5001 else
5002   am__fastdepCC_TRUE='#'
5003   am__fastdepCC_FALSE=
5004 fi
5005
5006
5007 ac_ext=cc
5008 ac_cpp='$CXXCPP $CPPFLAGS'
5009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5012 if test -n "$ac_tool_prefix"; then
5013   for ac_prog in $CCC g++ g++3 c++ CC
5014   do
5015     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5017 echo "$as_me:$LINENO: checking for $ac_word" >&5
5018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5019 if test "${ac_cv_prog_CXX+set}" = set; then
5020   echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022   if test -n "$CXX"; then
5023   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5027 do
5028   IFS=$as_save_IFS
5029   test -z "$as_dir" && as_dir=.
5030   for ac_exec_ext in '' $ac_executable_extensions; do
5031   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5034     break 2
5035   fi
5036 done
5037 done
5038
5039 fi
5040 fi
5041 CXX=$ac_cv_prog_CXX
5042 if test -n "$CXX"; then
5043   echo "$as_me:$LINENO: result: $CXX" >&5
5044 echo "${ECHO_T}$CXX" >&6
5045 else
5046   echo "$as_me:$LINENO: result: no" >&5
5047 echo "${ECHO_T}no" >&6
5048 fi
5049
5050     test -n "$CXX" && break
5051   done
5052 fi
5053 if test -z "$CXX"; then
5054   ac_ct_CXX=$CXX
5055   for ac_prog in $CCC g++ g++3 c++ CC
5056 do
5057   # Extract the first word of "$ac_prog", so it can be a program name with args.
5058 set dummy $ac_prog; ac_word=$2
5059 echo "$as_me:$LINENO: checking for $ac_word" >&5
5060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5061 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5062   echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064   if test -n "$ac_ct_CXX"; then
5065   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5069 do
5070   IFS=$as_save_IFS
5071   test -z "$as_dir" && as_dir=.
5072   for ac_exec_ext in '' $ac_executable_extensions; do
5073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074     ac_cv_prog_ac_ct_CXX="$ac_prog"
5075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5076     break 2
5077   fi
5078 done
5079 done
5080
5081 fi
5082 fi
5083 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5084 if test -n "$ac_ct_CXX"; then
5085   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5086 echo "${ECHO_T}$ac_ct_CXX" >&6
5087 else
5088   echo "$as_me:$LINENO: result: no" >&5
5089 echo "${ECHO_T}no" >&6
5090 fi
5091
5092   test -n "$ac_ct_CXX" && break
5093 done
5094 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5095
5096   CXX=$ac_ct_CXX
5097 fi
5098
5099
5100 # Provide some information about the compiler.
5101 echo "$as_me:$LINENO:" \
5102      "checking for C++ compiler version" >&5
5103 ac_compiler=`set X $ac_compile; echo $2`
5104 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5105   (eval $ac_compiler --version </dev/null >&5) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }
5109 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5110   (eval $ac_compiler -v </dev/null >&5) 2>&5
5111   ac_status=$?
5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); }
5114 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5115   (eval $ac_compiler -V </dev/null >&5) 2>&5
5116   ac_status=$?
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); }
5119
5120 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5121 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5122 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5123   echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125   cat >conftest.$ac_ext <<_ACEOF
5126 /* confdefs.h.  */
5127 _ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h.  */
5131
5132 int
5133 main ()
5134 {
5135 #ifndef __GNUC__
5136        choke me
5137 #endif
5138
5139   ;
5140   return 0;
5141 }
5142 _ACEOF
5143 rm -f conftest.$ac_objext
5144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5145   (eval $ac_compile) 2>conftest.er1
5146   ac_status=$?
5147   grep -v '^ *+' conftest.er1 >conftest.err
5148   rm -f conftest.er1
5149   cat conftest.err >&5
5150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151   (exit $ac_status); } &&
5152          { ac_try='test -z "$ac_cxx_werror_flag"
5153                          || test ! -s conftest.err'
5154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155   (eval $ac_try) 2>&5
5156   ac_status=$?
5157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158   (exit $ac_status); }; } &&
5159          { ac_try='test -s conftest.$ac_objext'
5160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161   (eval $ac_try) 2>&5
5162   ac_status=$?
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); }; }; then
5165   ac_compiler_gnu=yes
5166 else
5167   echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5169
5170 ac_compiler_gnu=no
5171 fi
5172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5173 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5174
5175 fi
5176 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5177 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5178 GXX=`test $ac_compiler_gnu = yes && echo yes`
5179 ac_test_CXXFLAGS=${CXXFLAGS+set}
5180 ac_save_CXXFLAGS=$CXXFLAGS
5181 CXXFLAGS="-g"
5182 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5183 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5184 if test "${ac_cv_prog_cxx_g+set}" = set; then
5185   echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187   cat >conftest.$ac_ext <<_ACEOF
5188 /* confdefs.h.  */
5189 _ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h.  */
5193
5194 int
5195 main ()
5196 {
5197
5198   ;
5199   return 0;
5200 }
5201 _ACEOF
5202 rm -f conftest.$ac_objext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204   (eval $ac_compile) 2>conftest.er1
5205   ac_status=$?
5206   grep -v '^ *+' conftest.er1 >conftest.err
5207   rm -f conftest.er1
5208   cat conftest.err >&5
5209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210   (exit $ac_status); } &&
5211          { ac_try='test -z "$ac_cxx_werror_flag"
5212                          || test ! -s conftest.err'
5213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214   (eval $ac_try) 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); }; } &&
5218          { ac_try='test -s conftest.$ac_objext'
5219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220   (eval $ac_try) 2>&5
5221   ac_status=$?
5222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223   (exit $ac_status); }; }; then
5224   ac_cv_prog_cxx_g=yes
5225 else
5226   echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5228
5229 ac_cv_prog_cxx_g=no
5230 fi
5231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5232 fi
5233 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5234 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5235 if test "$ac_test_CXXFLAGS" = set; then
5236   CXXFLAGS=$ac_save_CXXFLAGS
5237 elif test $ac_cv_prog_cxx_g = yes; then
5238   if test "$GXX" = yes; then
5239     CXXFLAGS="-g -O2"
5240   else
5241     CXXFLAGS="-g"
5242   fi
5243 else
5244   if test "$GXX" = yes; then
5245     CXXFLAGS="-O2"
5246   else
5247     CXXFLAGS=
5248   fi
5249 fi
5250 for ac_declaration in \
5251    '' \
5252    'extern "C" void std::exit (int) throw (); using std::exit;' \
5253    'extern "C" void std::exit (int); using std::exit;' \
5254    'extern "C" void exit (int) throw ();' \
5255    'extern "C" void exit (int);' \
5256    'void exit (int);'
5257 do
5258   cat >conftest.$ac_ext <<_ACEOF
5259 /* confdefs.h.  */
5260 _ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h.  */
5264 $ac_declaration
5265 #include <stdlib.h>
5266 int
5267 main ()
5268 {
5269 exit (42);
5270   ;
5271   return 0;
5272 }
5273 _ACEOF
5274 rm -f conftest.$ac_objext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5276   (eval $ac_compile) 2>conftest.er1
5277   ac_status=$?
5278   grep -v '^ *+' conftest.er1 >conftest.err
5279   rm -f conftest.er1
5280   cat conftest.err >&5
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); } &&
5283          { ac_try='test -z "$ac_cxx_werror_flag"
5284                          || test ! -s conftest.err'
5285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286   (eval $ac_try) 2>&5
5287   ac_status=$?
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); }; } &&
5290          { ac_try='test -s conftest.$ac_objext'
5291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292   (eval $ac_try) 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }; }; then
5296   :
5297 else
5298   echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5300
5301 continue
5302 fi
5303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5304   cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h.  */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h.  */
5310 $ac_declaration
5311 int
5312 main ()
5313 {
5314 exit (42);
5315   ;
5316   return 0;
5317 }
5318 _ACEOF
5319 rm -f conftest.$ac_objext
5320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5321   (eval $ac_compile) 2>conftest.er1
5322   ac_status=$?
5323   grep -v '^ *+' conftest.er1 >conftest.err
5324   rm -f conftest.er1
5325   cat conftest.err >&5
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); } &&
5328          { ac_try='test -z "$ac_cxx_werror_flag"
5329                          || test ! -s conftest.err'
5330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331   (eval $ac_try) 2>&5
5332   ac_status=$?
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); }; } &&
5335          { ac_try='test -s conftest.$ac_objext'
5336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337   (eval $ac_try) 2>&5
5338   ac_status=$?
5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340   (exit $ac_status); }; }; then
5341   break
5342 else
5343   echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5345
5346 fi
5347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5348 done
5349 rm -f conftest*
5350 if test -n "$ac_declaration"; then
5351   echo '#ifdef __cplusplus' >>confdefs.h
5352   echo $ac_declaration      >>confdefs.h
5353   echo '#endif'             >>confdefs.h
5354 fi
5355
5356 ac_ext=c
5357 ac_cpp='$CPP $CPPFLAGS'
5358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5361
5362 depcc="$CXX"  am_compiler_list=
5363
5364 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5365 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5366 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5370   # We make a subdir and do the tests there.  Otherwise we can end up
5371   # making bogus files that we don't know about and never remove.  For
5372   # instance it was reported that on HP-UX the gcc test will end up
5373   # making a dummy file named `D' -- because `-MD' means `put the output
5374   # in D'.
5375   mkdir conftest.dir
5376   # Copy depcomp to subdir because otherwise we won't find it if we're
5377   # using a relative directory.
5378   cp "$am_depcomp" conftest.dir
5379   cd conftest.dir
5380   # We will build objects and dependencies in a subdirectory because
5381   # it helps to detect inapplicable dependency modes.  For instance
5382   # both Tru64's cc and ICC support -MD to output dependencies as a
5383   # side effect of compilation, but ICC will put the dependencies in
5384   # the current directory while Tru64 will put them in the object
5385   # directory.
5386   mkdir sub
5387
5388   am_cv_CXX_dependencies_compiler_type=none
5389   if test "$am_compiler_list" = ""; then
5390      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5391   fi
5392   for depmode in $am_compiler_list; do
5393     # Setup a source with many dependencies, because some compilers
5394     # like to wrap large dependency lists on column 80 (with \), and
5395     # we should not choose a depcomp mode which is confused by this.
5396     #
5397     # We need to recreate these files for each test, as the compiler may
5398     # overwrite some of them when testing with obscure command lines.
5399     # This happens at least with the AIX C compiler.
5400     : > sub/conftest.c
5401     for i in 1 2 3 4 5 6; do
5402       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5403       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5404       # Solaris 8's {/usr,}/bin/sh.
5405       touch sub/conftst$i.h
5406     done
5407     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5408
5409     case $depmode in
5410     nosideeffect)
5411       # after this tag, mechanisms are not by side-effect, so they'll
5412       # only be used when explicitly requested
5413       if test "x$enable_dependency_tracking" = xyes; then
5414         continue
5415       else
5416         break
5417       fi
5418       ;;
5419     none) break ;;
5420     esac
5421     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5422     # mode.  It turns out that the SunPro C++ compiler does not properly
5423     # handle `-M -o', and we need to detect this.
5424     if depmode=$depmode \
5425        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5426        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5427        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5428          >/dev/null 2>conftest.err &&
5429        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5430        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5431        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5432       # icc doesn't choke on unknown options, it will just issue warnings
5433       # or remarks (even with -Werror).  So we grep stderr for any message
5434       # that says an option was ignored or not supported.
5435       # When given -MP, icc 7.0 and 7.1 complain thusly:
5436       #   icc: Command line warning: ignoring option '-M'; no argument required
5437       # The diagnosis changed in icc 8.0:
5438       #   icc: Command line remark: option '-MP' not supported
5439       if (grep 'ignoring option' conftest.err ||
5440           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5441         am_cv_CXX_dependencies_compiler_type=$depmode
5442         break
5443       fi
5444     fi
5445   done
5446
5447   cd ..
5448   rm -rf conftest.dir
5449 else
5450   am_cv_CXX_dependencies_compiler_type=none
5451 fi
5452
5453 fi
5454 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5455 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5456 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5457
5458
5459
5460 if
5461   test "x$enable_dependency_tracking" != xno \
5462   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5463   am__fastdepCXX_TRUE=
5464   am__fastdepCXX_FALSE='#'
5465 else
5466   am__fastdepCXX_TRUE='#'
5467   am__fastdepCXX_FALSE=
5468 fi
5469
5470
5471 # Make sure we can run config.sub.
5472 $ac_config_sub sun4 >/dev/null 2>&1 ||
5473   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5474 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5475    { (exit 1); exit 1; }; }
5476
5477 echo "$as_me:$LINENO: checking build system type" >&5
5478 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5479 if test "${ac_cv_build+set}" = set; then
5480   echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482   ac_cv_build_alias=$build_alias
5483 test -z "$ac_cv_build_alias" &&
5484   ac_cv_build_alias=`$ac_config_guess`
5485 test -z "$ac_cv_build_alias" &&
5486   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5487 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5488    { (exit 1); exit 1; }; }
5489 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5490   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5491 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5492    { (exit 1); exit 1; }; }
5493
5494 fi
5495 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5496 echo "${ECHO_T}$ac_cv_build" >&6
5497 build=$ac_cv_build
5498 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5499 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5500 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5501
5502
5503 echo "$as_me:$LINENO: checking host system type" >&5
5504 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5505 if test "${ac_cv_host+set}" = set; then
5506   echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508   ac_cv_host_alias=$host_alias
5509 test -z "$ac_cv_host_alias" &&
5510   ac_cv_host_alias=$ac_cv_build_alias
5511 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5512   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5513 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5514    { (exit 1); exit 1; }; }
5515
5516 fi
5517 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5518 echo "${ECHO_T}$ac_cv_host" >&6
5519 host=$ac_cv_host
5520 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5521 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5522 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5523
5524
5525
5526 if test "$GCC" = "yes" ; then
5527 #    AC_HAVE_GCC_VERSION(4,0,0,0,
5528 #        [
5529 #        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
5530 #            [Define to enable class visibility control in gcc.])
5531 #        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5532 #        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5533 #        ])
5534     CFLAGS="-Wall $GCC_CFLAGS"
5535     CXXFLAGS="-Wall $GCC_CXXFLAGS"
5536 else
5537 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
5538         case "${host_cpu}-${host_os}" in
5539                 *solaris*)
5540                         if test "$CXX" = "CC" ; then
5541                                 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
5542                         fi
5543                         ;;
5544                 *osf*)
5545                         CXXFLAGS="$CXXFLAGS -D_POSIX_PII_SOCKET"
5546                         ;;
5547         esac
5548 fi
5549
5550 # Check whether --enable-static or --disable-static was given.
5551 if test "${enable_static+set}" = set; then
5552   enableval="$enable_static"
5553   p=${PACKAGE-default}
5554     case $enableval in
5555     yes) enable_static=yes ;;
5556     no) enable_static=no ;;
5557     *)
5558      enable_static=no
5559       # Look at the argument we got.  We use all the common list separators.
5560       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5561       for pkg in $enableval; do
5562         IFS="$lt_save_ifs"
5563         if test "X$pkg" = "X$p"; then
5564           enable_static=yes
5565         fi
5566       done
5567       IFS="$lt_save_ifs"
5568       ;;
5569     esac
5570 else
5571   enable_static=no
5572 fi;
5573
5574
5575 # Check whether --enable-shared or --disable-shared was given.
5576 if test "${enable_shared+set}" = set; then
5577   enableval="$enable_shared"
5578   p=${PACKAGE-default}
5579     case $enableval in
5580     yes) enable_shared=yes ;;
5581     no) enable_shared=no ;;
5582     *)
5583       enable_shared=no
5584       # Look at the argument we got.  We use all the common list separators.
5585       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5586       for pkg in $enableval; do
5587         IFS="$lt_save_ifs"
5588         if test "X$pkg" = "X$p"; then
5589           enable_shared=yes
5590         fi
5591       done
5592       IFS="$lt_save_ifs"
5593       ;;
5594     esac
5595 else
5596   enable_shared=yes
5597 fi;
5598
5599 # Check whether --enable-fast-install or --disable-fast-install was given.
5600 if test "${enable_fast_install+set}" = set; then
5601   enableval="$enable_fast_install"
5602   p=${PACKAGE-default}
5603     case $enableval in
5604     yes) enable_fast_install=yes ;;
5605     no) enable_fast_install=no ;;
5606     *)
5607       enable_fast_install=no
5608       # Look at the argument we got.  We use all the common list separators.
5609       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5610       for pkg in $enableval; do
5611         IFS="$lt_save_ifs"
5612         if test "X$pkg" = "X$p"; then
5613           enable_fast_install=yes
5614         fi
5615       done
5616       IFS="$lt_save_ifs"
5617       ;;
5618     esac
5619 else
5620   enable_fast_install=yes
5621 fi;
5622
5623 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5624 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5625 if test "${lt_cv_path_SED+set}" = set; then
5626   echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628   # Loop through the user's path and test for sed and gsed.
5629 # Then use that list of sed's as ones to test for truncation.
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633   IFS=$as_save_IFS
5634   test -z "$as_dir" && as_dir=.
5635   for lt_ac_prog in sed gsed; do
5636     for ac_exec_ext in '' $ac_executable_extensions; do
5637       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5638         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5639       fi
5640     done
5641   done
5642 done
5643 lt_ac_max=0
5644 lt_ac_count=0
5645 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5646 # along with /bin/sed that truncates output.
5647 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5648   test ! -f $lt_ac_sed && break
5649   cat /dev/null > conftest.in
5650   lt_ac_count=0
5651   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5652   # Check for GNU sed and select it if it is found.
5653   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5654     lt_cv_path_SED=$lt_ac_sed
5655     break
5656   fi
5657   while true; do
5658     cat conftest.in conftest.in >conftest.tmp
5659     mv conftest.tmp conftest.in
5660     cp conftest.in conftest.nl
5661     echo >>conftest.nl
5662     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5663     cmp -s conftest.out conftest.nl || break
5664     # 10000 chars as input seems more than enough
5665     test $lt_ac_count -gt 10 && break
5666     lt_ac_count=`expr $lt_ac_count + 1`
5667     if test $lt_ac_count -gt $lt_ac_max; then
5668       lt_ac_max=$lt_ac_count
5669       lt_cv_path_SED=$lt_ac_sed
5670     fi
5671   done
5672 done
5673 SED=$lt_cv_path_SED
5674
5675 fi
5676
5677 echo "$as_me:$LINENO: result: $SED" >&5
5678 echo "${ECHO_T}$SED" >&6
5679
5680 echo "$as_me:$LINENO: checking for egrep" >&5
5681 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5682 if test "${ac_cv_prog_egrep+set}" = set; then
5683   echo $ECHO_N "(cached) $ECHO_C" >&6
5684 else
5685   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5686     then ac_cv_prog_egrep='grep -E'
5687     else ac_cv_prog_egrep='egrep'
5688     fi
5689 fi
5690 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5691 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5692  EGREP=$ac_cv_prog_egrep
5693
5694
5695
5696 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5697 if test "${with_gnu_ld+set}" = set; then
5698   withval="$with_gnu_ld"
5699   test "$withval" = no || with_gnu_ld=yes
5700 else
5701   with_gnu_ld=no
5702 fi;
5703 ac_prog=ld
5704 if test "$GCC" = yes; then
5705   # Check if gcc -print-prog-name=ld gives a path.
5706   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5707 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5708   case $host in
5709   *-*-mingw*)
5710     # gcc leaves a trailing carriage return which upsets mingw
5711     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5712   *)
5713     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5714   esac
5715   case $ac_prog in
5716     # Accept absolute paths.
5717     [\\/]* | ?:[\\/]*)
5718       re_direlt='/[^/][^/]*/\.\./'
5719       # Canonicalize the pathname of ld
5720       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5721       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5722         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5723       done
5724       test -z "$LD" && LD="$ac_prog"
5725       ;;
5726   "")
5727     # If it fails, then pretend we aren't using GCC.
5728     ac_prog=ld
5729     ;;
5730   *)
5731     # If it is relative, then search for the first ld in PATH.
5732     with_gnu_ld=unknown
5733     ;;
5734   esac
5735 elif test "$with_gnu_ld" = yes; then
5736   echo "$as_me:$LINENO: checking for GNU ld" >&5
5737 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5738 else
5739   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5740 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5741 fi
5742 if test "${lt_cv_path_LD+set}" = set; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745   if test -z "$LD"; then
5746   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5747   for ac_dir in $PATH; do
5748     IFS="$lt_save_ifs"
5749     test -z "$ac_dir" && ac_dir=.
5750     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5751       lt_cv_path_LD="$ac_dir/$ac_prog"
5752       # Check to see if the program is GNU ld.  I'd rather use --version,
5753       # but apparently some GNU ld's only accept -v.
5754       # Break only if it was the GNU/non-GNU ld that we prefer.
5755       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5756       *GNU* | *'with BFD'*)
5757         test "$with_gnu_ld" != no && break
5758         ;;
5759       *)
5760         test "$with_gnu_ld" != yes && break
5761         ;;
5762       esac
5763     fi
5764   done
5765   IFS="$lt_save_ifs"
5766 else
5767   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5768 fi
5769 fi
5770
5771 LD="$lt_cv_path_LD"
5772 if test -n "$LD"; then
5773   echo "$as_me:$LINENO: result: $LD" >&5
5774 echo "${ECHO_T}$LD" >&6
5775 else
5776   echo "$as_me:$LINENO: result: no" >&5
5777 echo "${ECHO_T}no" >&6
5778 fi
5779 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5780 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5781    { (exit 1); exit 1; }; }
5782 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5783 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5784 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5785   echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5788 case `$LD -v 2>&1 </dev/null` in
5789 *GNU* | *'with BFD'*)
5790   lt_cv_prog_gnu_ld=yes
5791   ;;
5792 *)
5793   lt_cv_prog_gnu_ld=no
5794   ;;
5795 esac
5796 fi
5797 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5798 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5799 with_gnu_ld=$lt_cv_prog_gnu_ld
5800
5801
5802 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5803 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5804 if test "${lt_cv_ld_reload_flag+set}" = set; then
5805   echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807   lt_cv_ld_reload_flag='-r'
5808 fi
5809 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5810 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5811 reload_flag=$lt_cv_ld_reload_flag
5812 case $reload_flag in
5813 "" | " "*) ;;
5814 *) reload_flag=" $reload_flag" ;;
5815 esac
5816 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5817
5818 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5819 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5820 if test "${lt_cv_path_NM+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   if test -n "$NM"; then
5824   # Let the user override the test.
5825   lt_cv_path_NM="$NM"
5826 else
5827   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5828   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5829     IFS="$lt_save_ifs"
5830     test -z "$ac_dir" && ac_dir=.
5831     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5832     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5833       # Check to see if the nm accepts a BSD-compat flag.
5834       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5835       #   nm: unknown option "B" ignored
5836       # Tru64's nm complains that /dev/null is an invalid object file
5837       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5838       */dev/null* | *'Invalid file or object type'*)
5839         lt_cv_path_NM="$tmp_nm -B"
5840         break
5841         ;;
5842       *)
5843         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5844         */dev/null*)
5845           lt_cv_path_NM="$tmp_nm -p"
5846           break
5847           ;;
5848         *)
5849           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5850           continue # so that we can try to find one that supports BSD flags
5851           ;;
5852         esac
5853       esac
5854     fi
5855   done
5856   IFS="$lt_save_ifs"
5857   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5858 fi
5859 fi
5860 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5861 echo "${ECHO_T}$lt_cv_path_NM" >&6
5862 NM="$lt_cv_path_NM"
5863
5864 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5865 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5866 LN_S=$as_ln_s
5867 if test "$LN_S" = "ln -s"; then
5868   echo "$as_me:$LINENO: result: yes" >&5
5869 echo "${ECHO_T}yes" >&6
5870 else
5871   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5872 echo "${ECHO_T}no, using $LN_S" >&6
5873 fi
5874
5875 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5876 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5877 if test "${lt_cv_deplibs_check_method+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   lt_cv_file_magic_cmd='$MAGIC_CMD'
5881 lt_cv_file_magic_test_file=
5882 lt_cv_deplibs_check_method='unknown'
5883 # Need to set the preceding variable on all platforms that support
5884 # interlibrary dependencies.
5885 # 'none' -- dependencies not supported.
5886 # `unknown' -- same as none, but documents that we really don't know.
5887 # 'pass_all' -- all dependencies passed with no checks.
5888 # 'test_compile' -- check by making test program.
5889 # 'file_magic [[regex]]' -- check by looking for files in library path
5890 # which responds to the $file_magic_cmd with a given extended regex.
5891 # If you have `file' or equivalent on your system and you're not sure
5892 # whether `pass_all' will *always* work, you probably want this one.
5893
5894 case $host_os in
5895 aix4* | aix5*)
5896   lt_cv_deplibs_check_method=pass_all
5897   ;;
5898
5899 beos*)
5900   lt_cv_deplibs_check_method=pass_all
5901   ;;
5902
5903 bsdi4*)
5904   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5905   lt_cv_file_magic_cmd='/usr/bin/file -L'
5906   lt_cv_file_magic_test_file=/shlib/libc.so
5907   ;;
5908
5909 cygwin*)
5910   # func_win32_libid is a shell function defined in ltmain.sh
5911   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5912   lt_cv_file_magic_cmd='func_win32_libid'
5913   ;;
5914
5915 mingw* | pw32*)
5916   # Base MSYS/MinGW do not provide the 'file' command needed by
5917   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5918   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5919   lt_cv_file_magic_cmd='$OBJDUMP -f'
5920   ;;
5921
5922 darwin* | rhapsody*)
5923   lt_cv_deplibs_check_method=pass_all
5924   ;;
5925
5926 freebsd* | kfreebsd*-gnu)
5927   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5928     case $host_cpu in
5929     i*86 )
5930       # Not sure whether the presence of OpenBSD here was a mistake.
5931       # Let's accept both of them until this is cleared up.
5932       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5933       lt_cv_file_magic_cmd=/usr/bin/file
5934       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5935       ;;
5936     esac
5937   else
5938     lt_cv_deplibs_check_method=pass_all
5939   fi
5940   ;;
5941
5942 gnu*)
5943   lt_cv_deplibs_check_method=pass_all
5944   ;;
5945
5946 hpux10.20* | hpux11*)
5947   lt_cv_file_magic_cmd=/usr/bin/file
5948   case "$host_cpu" in
5949   ia64*)
5950     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5951     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5952     ;;
5953   hppa*64*)
5954     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]'
5955     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5956     ;;
5957   *)
5958     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5959     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5960     ;;
5961   esac
5962   ;;
5963
5964 irix5* | irix6* | nonstopux*)
5965   case $LD in
5966   *-32|*"-32 ") libmagic=32-bit;;
5967   *-n32|*"-n32 ") libmagic=N32;;
5968   *-64|*"-64 ") libmagic=64-bit;;
5969   *) libmagic=never-match;;
5970   esac
5971   lt_cv_deplibs_check_method=pass_all
5972   ;;
5973
5974 # This must be Linux ELF.
5975 linux*)
5976   case $host_cpu in
5977   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
5978     lt_cv_deplibs_check_method=pass_all ;;
5979   *)
5980     # glibc up to 2.1.1 does not perform some relocations on ARM
5981     # this will be overridden with pass_all, but let us keep it just in case
5982     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5983   esac
5984   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5985   lt_cv_deplibs_check_method=pass_all
5986   ;;
5987
5988 netbsd*)
5989   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5990     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5991   else
5992     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5993   fi
5994   ;;
5995
5996 newos6*)
5997   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5998   lt_cv_file_magic_cmd=/usr/bin/file
5999   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6000   ;;
6001
6002 nto-qnx*)
6003   lt_cv_deplibs_check_method=unknown
6004   ;;
6005
6006 openbsd*)
6007   lt_cv_file_magic_cmd=/usr/bin/file
6008   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6009   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6010     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
6011   else
6012     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
6013   fi
6014   ;;
6015
6016 osf3* | osf4* | osf5*)
6017   lt_cv_deplibs_check_method=pass_all
6018   ;;
6019
6020 sco3.2v5*)
6021   lt_cv_deplibs_check_method=pass_all
6022   ;;
6023
6024 solaris*)
6025   lt_cv_deplibs_check_method=pass_all
6026   ;;
6027
6028 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6029   case $host_vendor in
6030   motorola)
6031     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]'
6032     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6033     ;;
6034   ncr)
6035     lt_cv_deplibs_check_method=pass_all
6036     ;;
6037   sequent)
6038     lt_cv_file_magic_cmd='/bin/file'
6039     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6040     ;;
6041   sni)
6042     lt_cv_file_magic_cmd='/bin/file'
6043     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6044     lt_cv_file_magic_test_file=/lib/libc.so
6045     ;;
6046   siemens)
6047     lt_cv_deplibs_check_method=pass_all
6048     ;;
6049   esac
6050   ;;
6051
6052 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6053   lt_cv_deplibs_check_method=pass_all
6054   ;;
6055 esac
6056
6057 fi
6058 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6059 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6060 file_magic_cmd=$lt_cv_file_magic_cmd
6061 deplibs_check_method=$lt_cv_deplibs_check_method
6062 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6063
6064
6065
6066
6067 # If no C compiler was specified, use CC.
6068 LTCC=${LTCC-"$CC"}
6069
6070 # Allow CC to be a program name with arguments.
6071 compiler=$CC
6072
6073
6074 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6075 if test "${enable_libtool_lock+set}" = set; then
6076   enableval="$enable_libtool_lock"
6077
6078 fi;
6079 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6080
6081 # Some flags need to be propagated to the compiler or linker for good
6082 # libtool support.
6083 case $host in
6084 ia64-*-hpux*)
6085   # Find out which ABI we are using.
6086   echo 'int i;' > conftest.$ac_ext
6087   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088   (eval $ac_compile) 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); }; then
6092     case `/usr/bin/file conftest.$ac_objext` in
6093     *ELF-32*)
6094       HPUX_IA64_MODE="32"
6095       ;;
6096     *ELF-64*)
6097       HPUX_IA64_MODE="64"
6098       ;;
6099     esac
6100   fi
6101   rm -rf conftest*
6102   ;;
6103 *-*-irix6*)
6104   # Find out which ABI we are using.
6105   echo '#line 6105 "configure"' > conftest.$ac_ext
6106   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107   (eval $ac_compile) 2>&5
6108   ac_status=$?
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); }; then
6111    if test "$lt_cv_prog_gnu_ld" = yes; then
6112     case `/usr/bin/file conftest.$ac_objext` in
6113     *32-bit*)
6114       LD="${LD-ld} -melf32bsmip"
6115       ;;
6116     *N32*)
6117       LD="${LD-ld} -melf32bmipn32"
6118       ;;
6119     *64-bit*)
6120       LD="${LD-ld} -melf64bmip"
6121       ;;
6122     esac
6123    else
6124     case `/usr/bin/file conftest.$ac_objext` in
6125     *32-bit*)
6126       LD="${LD-ld} -32"
6127       ;;
6128     *N32*)
6129       LD="${LD-ld} -n32"
6130       ;;
6131     *64-bit*)
6132       LD="${LD-ld} -64"
6133       ;;
6134     esac
6135    fi
6136   fi
6137   rm -rf conftest*
6138   ;;
6139
6140 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6141   # Find out which ABI we are using.
6142   echo 'int i;' > conftest.$ac_ext
6143   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144   (eval $ac_compile) 2>&5
6145   ac_status=$?
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); }; then
6148     case "`/usr/bin/file conftest.o`" in
6149     *32-bit*)
6150       case $host in
6151         x86_64-*linux*)
6152           LD="${LD-ld} -m elf_i386"
6153           ;;
6154         ppc64-*linux*|powerpc64-*linux*)
6155           LD="${LD-ld} -m elf32ppclinux"
6156           ;;
6157         s390x-*linux*)
6158           LD="${LD-ld} -m elf_s390"
6159           ;;
6160         sparc64-*linux*)
6161           LD="${LD-ld} -m elf32_sparc"
6162           ;;
6163       esac
6164       ;;
6165     *64-bit*)
6166       case $host in
6167         x86_64-*linux*)
6168           LD="${LD-ld} -m elf_x86_64"
6169           ;;
6170         ppc*-*linux*|powerpc*-*linux*)
6171           LD="${LD-ld} -m elf64ppc"
6172           ;;
6173         s390*-*linux*)
6174           LD="${LD-ld} -m elf64_s390"
6175           ;;
6176         sparc*-*linux*)
6177           LD="${LD-ld} -m elf64_sparc"
6178           ;;
6179       esac
6180       ;;
6181     esac
6182   fi
6183   rm -rf conftest*
6184   ;;
6185
6186 *-*-sco3.2v5*)
6187   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6188   SAVE_CFLAGS="$CFLAGS"
6189   CFLAGS="$CFLAGS -belf"
6190   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6191 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6192 if test "${lt_cv_cc_needs_belf+set}" = set; then
6193   echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195   ac_ext=c
6196 ac_cpp='$CPP $CPPFLAGS'
6197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6200
6201      cat >conftest.$ac_ext <<_ACEOF
6202 /* confdefs.h.  */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h.  */
6207
6208 int
6209 main ()
6210 {
6211
6212   ;
6213   return 0;
6214 }
6215 _ACEOF
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6218   (eval $ac_link) 2>conftest.er1
6219   ac_status=$?
6220   grep -v '^ *+' conftest.er1 >conftest.err
6221   rm -f conftest.er1
6222   cat conftest.err >&5
6223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224   (exit $ac_status); } &&
6225          { ac_try='test -z "$ac_c_werror_flag"
6226                          || test ! -s conftest.err'
6227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228   (eval $ac_try) 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); }; } &&
6232          { ac_try='test -s conftest$ac_exeext'
6233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234   (eval $ac_try) 2>&5
6235   ac_status=$?
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); }; }; then
6238   lt_cv_cc_needs_belf=yes
6239 else
6240   echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6242
6243 lt_cv_cc_needs_belf=no
6244 fi
6245 rm -f conftest.err conftest.$ac_objext \
6246       conftest$ac_exeext conftest.$ac_ext
6247      ac_ext=c
6248 ac_cpp='$CPP $CPPFLAGS'
6249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6252
6253 fi
6254 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6255 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6256   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6257     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6258     CFLAGS="$SAVE_CFLAGS"
6259   fi
6260   ;;
6261
6262 esac
6263
6264 need_locks="$enable_libtool_lock"
6265
6266
6267 ac_ext=c
6268 ac_cpp='$CPP $CPPFLAGS'
6269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6272 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6273 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6274 # On Suns, sometimes $CPP names a directory.
6275 if test -n "$CPP" && test -d "$CPP"; then
6276   CPP=
6277 fi
6278 if test -z "$CPP"; then
6279   if test "${ac_cv_prog_CPP+set}" = set; then
6280   echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282       # Double quotes because CPP needs to be expanded
6283     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6284     do
6285       ac_preproc_ok=false
6286 for ac_c_preproc_warn_flag in '' yes
6287 do
6288   # Use a header file that comes with gcc, so configuring glibc
6289   # with a fresh cross-compiler works.
6290   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6291   # <limits.h> exists even on freestanding compilers.
6292   # On the NeXT, cc -E runs the code through the compiler's parser,
6293   # not just through cpp. "Syntax error" is here to catch this case.
6294   cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h.  */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h.  */
6300 #ifdef __STDC__
6301 # include <limits.h>
6302 #else
6303 # include <assert.h>
6304 #endif
6305                      Syntax error
6306 _ACEOF
6307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6309   ac_status=$?
6310   grep -v '^ *+' conftest.er1 >conftest.err
6311   rm -f conftest.er1
6312   cat conftest.err >&5
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); } >/dev/null; then
6315   if test -s conftest.err; then
6316     ac_cpp_err=$ac_c_preproc_warn_flag
6317     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6318   else
6319     ac_cpp_err=
6320   fi
6321 else
6322   ac_cpp_err=yes
6323 fi
6324 if test -z "$ac_cpp_err"; then
6325   :
6326 else
6327   echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6329
6330   # Broken: fails on valid input.
6331 continue
6332 fi
6333 rm -f conftest.err conftest.$ac_ext
6334
6335   # OK, works on sane cases.  Now check whether non-existent headers
6336   # can be detected and how.
6337   cat >conftest.$ac_ext <<_ACEOF
6338 /* confdefs.h.  */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h.  */
6343 #include <ac_nonexistent.h>
6344 _ACEOF
6345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6346   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6347   ac_status=$?
6348   grep -v '^ *+' conftest.er1 >conftest.err
6349   rm -f conftest.er1
6350   cat conftest.err >&5
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); } >/dev/null; then
6353   if test -s conftest.err; then
6354     ac_cpp_err=$ac_c_preproc_warn_flag
6355     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6356   else
6357     ac_cpp_err=
6358   fi
6359 else
6360   ac_cpp_err=yes
6361 fi
6362 if test -z "$ac_cpp_err"; then
6363   # Broken: success on invalid input.
6364 continue
6365 else
6366   echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6368
6369   # Passes both tests.
6370 ac_preproc_ok=:
6371 break
6372 fi
6373 rm -f conftest.err conftest.$ac_ext
6374
6375 done
6376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6377 rm -f conftest.err conftest.$ac_ext
6378 if $ac_preproc_ok; then
6379   break
6380 fi
6381
6382     done
6383     ac_cv_prog_CPP=$CPP
6384
6385 fi
6386   CPP=$ac_cv_prog_CPP
6387 else
6388   ac_cv_prog_CPP=$CPP
6389 fi
6390 echo "$as_me:$LINENO: result: $CPP" >&5
6391 echo "${ECHO_T}$CPP" >&6
6392 ac_preproc_ok=false
6393 for ac_c_preproc_warn_flag in '' yes
6394 do
6395   # Use a header file that comes with gcc, so configuring glibc
6396   # with a fresh cross-compiler works.
6397   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6398   # <limits.h> exists even on freestanding compilers.
6399   # On the NeXT, cc -E runs the code through the compiler's parser,
6400   # not just through cpp. "Syntax error" is here to catch this case.
6401   cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h.  */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h.  */
6407 #ifdef __STDC__
6408 # include <limits.h>
6409 #else
6410 # include <assert.h>
6411 #endif
6412                      Syntax error
6413 _ACEOF
6414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6416   ac_status=$?
6417   grep -v '^ *+' conftest.er1 >conftest.err
6418   rm -f conftest.er1
6419   cat conftest.err >&5
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); } >/dev/null; then
6422   if test -s conftest.err; then
6423     ac_cpp_err=$ac_c_preproc_warn_flag
6424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6425   else
6426     ac_cpp_err=
6427   fi
6428 else
6429   ac_cpp_err=yes
6430 fi
6431 if test -z "$ac_cpp_err"; then
6432   :
6433 else
6434   echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6436
6437   # Broken: fails on valid input.
6438 continue
6439 fi
6440 rm -f conftest.err conftest.$ac_ext
6441
6442   # OK, works on sane cases.  Now check whether non-existent headers
6443   # can be detected and how.
6444   cat >conftest.$ac_ext <<_ACEOF
6445 /* confdefs.h.  */
6446 _ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h.  */
6450 #include <ac_nonexistent.h>
6451 _ACEOF
6452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6453   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6454   ac_status=$?
6455   grep -v '^ *+' conftest.er1 >conftest.err
6456   rm -f conftest.er1
6457   cat conftest.err >&5
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); } >/dev/null; then
6460   if test -s conftest.err; then
6461     ac_cpp_err=$ac_c_preproc_warn_flag
6462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6463   else
6464     ac_cpp_err=
6465   fi
6466 else
6467   ac_cpp_err=yes
6468 fi
6469 if test -z "$ac_cpp_err"; then
6470   # Broken: success on invalid input.
6471 continue
6472 else
6473   echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6475
6476   # Passes both tests.
6477 ac_preproc_ok=:
6478 break
6479 fi
6480 rm -f conftest.err conftest.$ac_ext
6481
6482 done
6483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6484 rm -f conftest.err conftest.$ac_ext
6485 if $ac_preproc_ok; then
6486   :
6487 else
6488   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6489 See \`config.log' for more details." >&5
6490 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6491 See \`config.log' for more details." >&2;}
6492    { (exit 1); exit 1; }; }
6493 fi
6494
6495 ac_ext=c
6496 ac_cpp='$CPP $CPPFLAGS'
6497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6500
6501
6502 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6503 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6504 if test "${ac_cv_header_stdc+set}" = set; then
6505   echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507   cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h.  */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h.  */
6513 #include <stdlib.h>
6514 #include <stdarg.h>
6515 #include <string.h>
6516 #include <float.h>
6517
6518 int
6519 main ()
6520 {
6521
6522   ;
6523   return 0;
6524 }
6525 _ACEOF
6526 rm -f conftest.$ac_objext
6527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6528   (eval $ac_compile) 2>conftest.er1
6529   ac_status=$?
6530   grep -v '^ *+' conftest.er1 >conftest.err
6531   rm -f conftest.er1
6532   cat conftest.err >&5
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); } &&
6535          { ac_try='test -z "$ac_c_werror_flag"
6536                          || test ! -s conftest.err'
6537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538   (eval $ac_try) 2>&5
6539   ac_status=$?
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); }; } &&
6542          { ac_try='test -s conftest.$ac_objext'
6543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544   (eval $ac_try) 2>&5
6545   ac_status=$?
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); }; }; then
6548   ac_cv_header_stdc=yes
6549 else
6550   echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6552
6553 ac_cv_header_stdc=no
6554 fi
6555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6556
6557 if test $ac_cv_header_stdc = yes; then
6558   # SunOS 4.x string.h does not declare mem*, 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 <string.h>
6566
6567 _ACEOF
6568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569   $EGREP "memchr" >/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   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6580   cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h.  */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h.  */
6586 #include <stdlib.h>
6587
6588 _ACEOF
6589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590   $EGREP "free" >/dev/null 2>&1; then
6591   :
6592 else
6593   ac_cv_header_stdc=no
6594 fi
6595 rm -f conftest*
6596
6597 fi
6598
6599 if test $ac_cv_header_stdc = yes; then
6600   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6601   if test "$cross_compiling" = yes; then
6602   :
6603 else
6604   cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h.  */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h.  */
6610 #include <ctype.h>
6611 #if ((' ' & 0x0FF) == 0x020)
6612 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6613 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6614 #else
6615 # define ISLOWER(c) \
6616                    (('a' <= (c) && (c) <= 'i') \
6617                      || ('j' <= (c) && (c) <= 'r') \
6618                      || ('s' <= (c) && (c) <= 'z'))
6619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6620 #endif
6621
6622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6623 int
6624 main ()
6625 {
6626   int i;
6627   for (i = 0; i < 256; i++)
6628     if (XOR (islower (i), ISLOWER (i))
6629         || toupper (i) != TOUPPER (i))
6630       exit(2);
6631   exit (0);
6632 }
6633 _ACEOF
6634 rm -f conftest$ac_exeext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6636   (eval $ac_link) 2>&5
6637   ac_status=$?
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641   (eval $ac_try) 2>&5
6642   ac_status=$?
6643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644   (exit $ac_status); }; }; then
6645   :
6646 else
6647   echo "$as_me: program exited with status $ac_status" >&5
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6650
6651 ( exit $ac_status )
6652 ac_cv_header_stdc=no
6653 fi
6654 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6655 fi
6656 fi
6657 fi
6658 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6659 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6660 if test $ac_cv_header_stdc = yes; then
6661
6662 cat >>confdefs.h <<\_ACEOF
6663 #define STDC_HEADERS 1
6664 _ACEOF
6665
6666 fi
6667
6668 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6679                   inttypes.h stdint.h unistd.h
6680 do
6681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6682 echo "$as_me:$LINENO: checking for $ac_header" >&5
6683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6685   echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687   cat >conftest.$ac_ext <<_ACEOF
6688 /* confdefs.h.  */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h.  */
6693 $ac_includes_default
6694
6695 #include <$ac_header>
6696 _ACEOF
6697 rm -f conftest.$ac_objext
6698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6699   (eval $ac_compile) 2>conftest.er1
6700   ac_status=$?
6701   grep -v '^ *+' conftest.er1 >conftest.err
6702   rm -f conftest.er1
6703   cat conftest.err >&5
6704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705   (exit $ac_status); } &&
6706          { ac_try='test -z "$ac_c_werror_flag"
6707                          || test ! -s conftest.err'
6708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709   (eval $ac_try) 2>&5
6710   ac_status=$?
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); }; } &&
6713          { ac_try='test -s conftest.$ac_objext'
6714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715   (eval $ac_try) 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); }; }; then
6719   eval "$as_ac_Header=yes"
6720 else
6721   echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6723
6724 eval "$as_ac_Header=no"
6725 fi
6726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6727 fi
6728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6731   cat >>confdefs.h <<_ACEOF
6732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6733 _ACEOF
6734
6735 fi
6736
6737 done
6738
6739
6740
6741 for ac_header in dlfcn.h
6742 do
6743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6745   echo "$as_me:$LINENO: checking for $ac_header" >&5
6746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6748   echo $ECHO_N "(cached) $ECHO_C" >&6
6749 fi
6750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6752 else
6753   # Is the header compilable?
6754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6756 cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h.  */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h.  */
6762 $ac_includes_default
6763 #include <$ac_header>
6764 _ACEOF
6765 rm -f conftest.$ac_objext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6767   (eval $ac_compile) 2>conftest.er1
6768   ac_status=$?
6769   grep -v '^ *+' conftest.er1 >conftest.err
6770   rm -f conftest.er1
6771   cat conftest.err >&5
6772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773   (exit $ac_status); } &&
6774          { ac_try='test -z "$ac_c_werror_flag"
6775                          || test ! -s conftest.err'
6776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777   (eval $ac_try) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); }; } &&
6781          { ac_try='test -s conftest.$ac_objext'
6782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783   (eval $ac_try) 2>&5
6784   ac_status=$?
6785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786   (exit $ac_status); }; }; then
6787   ac_header_compiler=yes
6788 else
6789   echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6791
6792 ac_header_compiler=no
6793 fi
6794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6796 echo "${ECHO_T}$ac_header_compiler" >&6
6797
6798 # Is the header present?
6799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h.  */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h.  */
6807 #include <$ac_header>
6808 _ACEOF
6809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6811   ac_status=$?
6812   grep -v '^ *+' conftest.er1 >conftest.err
6813   rm -f conftest.er1
6814   cat conftest.err >&5
6815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816   (exit $ac_status); } >/dev/null; then
6817   if test -s conftest.err; then
6818     ac_cpp_err=$ac_c_preproc_warn_flag
6819     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6820   else
6821     ac_cpp_err=
6822   fi
6823 else
6824   ac_cpp_err=yes
6825 fi
6826 if test -z "$ac_cpp_err"; then
6827   ac_header_preproc=yes
6828 else
6829   echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6831
6832   ac_header_preproc=no
6833 fi
6834 rm -f conftest.err conftest.$ac_ext
6835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6836 echo "${ECHO_T}$ac_header_preproc" >&6
6837
6838 # So?  What about this header?
6839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6840   yes:no: )
6841     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6845     ac_header_preproc=yes
6846     ;;
6847   no:yes:* )
6848     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6850     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6851 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6852     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6854     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6855 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6858     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6860     (
6861       cat <<\_ASBOX
6862 ## --------------------------------------------- ##
6863 ## Report this to shibboleth-users@internet2.edu ##
6864 ## --------------------------------------------- ##
6865 _ASBOX
6866     ) |
6867       sed "s/^/$as_me: WARNING:     /" >&2
6868     ;;
6869 esac
6870 echo "$as_me:$LINENO: checking for $ac_header" >&5
6871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6873   echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875   eval "$as_ac_Header=\$ac_header_preproc"
6876 fi
6877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6879
6880 fi
6881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6882   cat >>confdefs.h <<_ACEOF
6883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6884 _ACEOF
6885
6886 fi
6887
6888 done
6889
6890 ac_ext=cc
6891 ac_cpp='$CXXCPP $CPPFLAGS'
6892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6895 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6896 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6897 if test -z "$CXXCPP"; then
6898   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6899   echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901       # Double quotes because CXXCPP needs to be expanded
6902     for CXXCPP in "$CXX -E" "/lib/cpp"
6903     do
6904       ac_preproc_ok=false
6905 for ac_cxx_preproc_warn_flag in '' yes
6906 do
6907   # Use a header file that comes with gcc, so configuring glibc
6908   # with a fresh cross-compiler works.
6909   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6910   # <limits.h> exists even on freestanding compilers.
6911   # On the NeXT, cc -E runs the code through the compiler's parser,
6912   # not just through cpp. "Syntax error" is here to catch this case.
6913   cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h.  */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h.  */
6919 #ifdef __STDC__
6920 # include <limits.h>
6921 #else
6922 # include <assert.h>
6923 #endif
6924                      Syntax error
6925 _ACEOF
6926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6927   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6928   ac_status=$?
6929   grep -v '^ *+' conftest.er1 >conftest.err
6930   rm -f conftest.er1
6931   cat conftest.err >&5
6932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933   (exit $ac_status); } >/dev/null; then
6934   if test -s conftest.err; then
6935     ac_cpp_err=$ac_cxx_preproc_warn_flag
6936     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6937   else
6938     ac_cpp_err=
6939   fi
6940 else
6941   ac_cpp_err=yes
6942 fi
6943 if test -z "$ac_cpp_err"; then
6944   :
6945 else
6946   echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6948
6949   # Broken: fails on valid input.
6950 continue
6951 fi
6952 rm -f conftest.err conftest.$ac_ext
6953
6954   # OK, works on sane cases.  Now check whether non-existent headers
6955   # can be detected and how.
6956   cat >conftest.$ac_ext <<_ACEOF
6957 /* confdefs.h.  */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h.  */
6962 #include <ac_nonexistent.h>
6963 _ACEOF
6964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6965   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6966   ac_status=$?
6967   grep -v '^ *+' conftest.er1 >conftest.err
6968   rm -f conftest.er1
6969   cat conftest.err >&5
6970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971   (exit $ac_status); } >/dev/null; then
6972   if test -s conftest.err; then
6973     ac_cpp_err=$ac_cxx_preproc_warn_flag
6974     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6975   else
6976     ac_cpp_err=
6977   fi
6978 else
6979   ac_cpp_err=yes
6980 fi
6981 if test -z "$ac_cpp_err"; then
6982   # Broken: success on invalid input.
6983 continue
6984 else
6985   echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6987
6988   # Passes both tests.
6989 ac_preproc_ok=:
6990 break
6991 fi
6992 rm -f conftest.err conftest.$ac_ext
6993
6994 done
6995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6996 rm -f conftest.err conftest.$ac_ext
6997 if $ac_preproc_ok; then
6998   break
6999 fi
7000
7001     done
7002     ac_cv_prog_CXXCPP=$CXXCPP
7003
7004 fi
7005   CXXCPP=$ac_cv_prog_CXXCPP
7006 else
7007   ac_cv_prog_CXXCPP=$CXXCPP
7008 fi
7009 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7010 echo "${ECHO_T}$CXXCPP" >&6
7011 ac_preproc_ok=false
7012 for ac_cxx_preproc_warn_flag in '' yes
7013 do
7014   # Use a header file that comes with gcc, so configuring glibc
7015   # with a fresh cross-compiler works.
7016   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7017   # <limits.h> exists even on freestanding compilers.
7018   # On the NeXT, cc -E runs the code through the compiler's parser,
7019   # not just through cpp. "Syntax error" is here to catch this case.
7020   cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h.  */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h.  */
7026 #ifdef __STDC__
7027 # include <limits.h>
7028 #else
7029 # include <assert.h>
7030 #endif
7031                      Syntax error
7032 _ACEOF
7033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7034   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7035   ac_status=$?
7036   grep -v '^ *+' conftest.er1 >conftest.err
7037   rm -f conftest.er1
7038   cat conftest.err >&5
7039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); } >/dev/null; then
7041   if test -s conftest.err; then
7042     ac_cpp_err=$ac_cxx_preproc_warn_flag
7043     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7044   else
7045     ac_cpp_err=
7046   fi
7047 else
7048   ac_cpp_err=yes
7049 fi
7050 if test -z "$ac_cpp_err"; then
7051   :
7052 else
7053   echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7055
7056   # Broken: fails on valid input.
7057 continue
7058 fi
7059 rm -f conftest.err conftest.$ac_ext
7060
7061   # OK, works on sane cases.  Now check whether non-existent headers
7062   # can be detected and how.
7063   cat >conftest.$ac_ext <<_ACEOF
7064 /* confdefs.h.  */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h.  */
7069 #include <ac_nonexistent.h>
7070 _ACEOF
7071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7073   ac_status=$?
7074   grep -v '^ *+' conftest.er1 >conftest.err
7075   rm -f conftest.er1
7076   cat conftest.err >&5
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); } >/dev/null; then
7079   if test -s conftest.err; then
7080     ac_cpp_err=$ac_cxx_preproc_warn_flag
7081     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7082   else
7083     ac_cpp_err=
7084   fi
7085 else
7086   ac_cpp_err=yes
7087 fi
7088 if test -z "$ac_cpp_err"; then
7089   # Broken: success on invalid input.
7090 continue
7091 else
7092   echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7094
7095   # Passes both tests.
7096 ac_preproc_ok=:
7097 break
7098 fi
7099 rm -f conftest.err conftest.$ac_ext
7100
7101 done
7102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7103 rm -f conftest.err conftest.$ac_ext
7104 if $ac_preproc_ok; then
7105   :
7106 else
7107   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7108 See \`config.log' for more details." >&5
7109 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7110 See \`config.log' for more details." >&2;}
7111    { (exit 1); exit 1; }; }
7112 fi
7113
7114 ac_ext=cc
7115 ac_cpp='$CXXCPP $CPPFLAGS'
7116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7119
7120
7121 ac_ext=f
7122 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7123 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7124 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7125 if test -n "$ac_tool_prefix"; then
7126   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7127   do
7128     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7130 echo "$as_me:$LINENO: checking for $ac_word" >&5
7131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7132 if test "${ac_cv_prog_F77+set}" = set; then
7133   echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135   if test -n "$F77"; then
7136   ac_cv_prog_F77="$F77" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141   IFS=$as_save_IFS
7142   test -z "$as_dir" && as_dir=.
7143   for ac_exec_ext in '' $ac_executable_extensions; do
7144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147     break 2
7148   fi
7149 done
7150 done
7151
7152 fi
7153 fi
7154 F77=$ac_cv_prog_F77
7155 if test -n "$F77"; then
7156   echo "$as_me:$LINENO: result: $F77" >&5
7157 echo "${ECHO_T}$F77" >&6
7158 else
7159   echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6
7161 fi
7162
7163     test -n "$F77" && break
7164   done
7165 fi
7166 if test -z "$F77"; then
7167   ac_ct_F77=$F77
7168   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7169 do
7170   # Extract the first word of "$ac_prog", so it can be a program name with args.
7171 set dummy $ac_prog; ac_word=$2
7172 echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7174 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   if test -n "$ac_ct_F77"; then
7178   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183   IFS=$as_save_IFS
7184   test -z "$as_dir" && as_dir=.
7185   for ac_exec_ext in '' $ac_executable_extensions; do
7186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187     ac_cv_prog_ac_ct_F77="$ac_prog"
7188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189     break 2
7190   fi
7191 done
7192 done
7193
7194 fi
7195 fi
7196 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7197 if test -n "$ac_ct_F77"; then
7198   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7199 echo "${ECHO_T}$ac_ct_F77" >&6
7200 else
7201   echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6
7203 fi
7204
7205   test -n "$ac_ct_F77" && break
7206 done
7207
7208   F77=$ac_ct_F77
7209 fi
7210
7211
7212 # Provide some information about the compiler.
7213 echo "$as_me:7213:" \
7214      "checking for Fortran 77 compiler version" >&5
7215 ac_compiler=`set X $ac_compile; echo $2`
7216 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7217   (eval $ac_compiler --version </dev/null >&5) 2>&5
7218   ac_status=$?
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); }
7221 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7222   (eval $ac_compiler -v </dev/null >&5) 2>&5
7223   ac_status=$?
7224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); }
7226 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7227   (eval $ac_compiler -V </dev/null >&5) 2>&5
7228   ac_status=$?
7229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230   (exit $ac_status); }
7231 rm -f a.out
7232
7233 # If we don't use `.F' as extension, the preprocessor is not run on the
7234 # input file.  (Note that this only needs to work for GNU compilers.)
7235 ac_save_ext=$ac_ext
7236 ac_ext=F
7237 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7238 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7239 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7240   echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242   cat >conftest.$ac_ext <<_ACEOF
7243       program main
7244 #ifndef __GNUC__
7245        choke me
7246 #endif
7247
7248       end
7249 _ACEOF
7250 rm -f conftest.$ac_objext
7251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7252   (eval $ac_compile) 2>conftest.er1
7253   ac_status=$?
7254   grep -v '^ *+' conftest.er1 >conftest.err
7255   rm -f conftest.er1
7256   cat conftest.err >&5
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); } &&
7259          { ac_try='test -z "$ac_f77_werror_flag"
7260                          || test ! -s conftest.err'
7261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262   (eval $ac_try) 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); }; } &&
7266          { ac_try='test -s conftest.$ac_objext'
7267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268   (eval $ac_try) 2>&5
7269   ac_status=$?
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); }; }; then
7272   ac_compiler_gnu=yes
7273 else
7274   echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7276
7277 ac_compiler_gnu=no
7278 fi
7279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7280 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7281
7282 fi
7283 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7284 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7285 ac_ext=$ac_save_ext
7286 ac_test_FFLAGS=${FFLAGS+set}
7287 ac_save_FFLAGS=$FFLAGS
7288 FFLAGS=
7289 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7290 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7291 if test "${ac_cv_prog_f77_g+set}" = set; then
7292   echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294   FFLAGS=-g
7295 cat >conftest.$ac_ext <<_ACEOF
7296       program main
7297
7298       end
7299 _ACEOF
7300 rm -f conftest.$ac_objext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7302   (eval $ac_compile) 2>conftest.er1
7303   ac_status=$?
7304   grep -v '^ *+' conftest.er1 >conftest.err
7305   rm -f conftest.er1
7306   cat conftest.err >&5
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); } &&
7309          { ac_try='test -z "$ac_f77_werror_flag"
7310                          || test ! -s conftest.err'
7311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312   (eval $ac_try) 2>&5
7313   ac_status=$?
7314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315   (exit $ac_status); }; } &&
7316          { ac_try='test -s conftest.$ac_objext'
7317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318   (eval $ac_try) 2>&5
7319   ac_status=$?
7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321   (exit $ac_status); }; }; then
7322   ac_cv_prog_f77_g=yes
7323 else
7324   echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7326
7327 ac_cv_prog_f77_g=no
7328 fi
7329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7330
7331 fi
7332 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7333 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7334 if test "$ac_test_FFLAGS" = set; then
7335   FFLAGS=$ac_save_FFLAGS
7336 elif test $ac_cv_prog_f77_g = yes; then
7337   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7338     FFLAGS="-g -O2"
7339   else
7340     FFLAGS="-g"
7341   fi
7342 else
7343   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7344     FFLAGS="-O2"
7345   else
7346     FFLAGS=
7347   fi
7348 fi
7349
7350 G77=`test $ac_compiler_gnu = yes && echo yes`
7351 ac_ext=c
7352 ac_cpp='$CPP $CPPFLAGS'
7353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7356
7357
7358
7359 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7360
7361 # find the maximum length of command line arguments
7362 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7363 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7364 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7365   echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367     i=0
7368   teststring="ABCD"
7369
7370   case $build_os in
7371   msdosdjgpp*)
7372     # On DJGPP, this test can blow up pretty badly due to problems in libc
7373     # (any single argument exceeding 2000 bytes causes a buffer overrun
7374     # during glob expansion).  Even if it were fixed, the result of this
7375     # check would be larger than it should be.
7376     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7377     ;;
7378
7379   gnu*)
7380     # Under GNU Hurd, this test is not required because there is
7381     # no limit to the length of command line arguments.
7382     # Libtool will interpret -1 as no limit whatsoever
7383     lt_cv_sys_max_cmd_len=-1;
7384     ;;
7385
7386   cygwin* | mingw*)
7387     # On Win9x/ME, this test blows up -- it succeeds, but takes
7388     # about 5 minutes as the teststring grows exponentially.
7389     # Worse, since 9x/ME are not pre-emptively multitasking,
7390     # you end up with a "frozen" computer, even though with patience
7391     # the test eventually succeeds (with a max line length of 256k).
7392     # Instead, let's just punt: use the minimum linelength reported by
7393     # all of the supported platforms: 8192 (on NT/2K/XP).
7394     lt_cv_sys_max_cmd_len=8192;
7395     ;;
7396
7397   amigaos*)
7398     # On AmigaOS with pdksh, this test takes hours, literally.
7399     # So we just punt and use a minimum line length of 8192.
7400     lt_cv_sys_max_cmd_len=8192;
7401     ;;
7402
7403  *)
7404     # If test is not a shell built-in, we'll probably end up computing a
7405     # maximum length that is only half of the actual maximum length, but
7406     # we can't tell.
7407     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7408                = "XX$teststring") >/dev/null 2>&1 &&
7409             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7410             lt_cv_sys_max_cmd_len=$new_result &&
7411             test $i != 17 # 1/2 MB should be enough
7412     do
7413       i=`expr $i + 1`
7414       teststring=$teststring$teststring
7415     done
7416     teststring=
7417     # Add a significant safety factor because C++ compilers can tack on massive
7418     # amounts of additional arguments before passing them to the linker.
7419     # It appears as though 1/2 is a usable value.
7420     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7421     ;;
7422   esac
7423
7424 fi
7425
7426 if test -n $lt_cv_sys_max_cmd_len ; then
7427   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7428 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7429 else
7430   echo "$as_me:$LINENO: result: none" >&5
7431 echo "${ECHO_T}none" >&6
7432 fi
7433
7434
7435
7436
7437 # Check for command to grab the raw symbol name followed by C symbol from nm.
7438 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7439 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7440 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7441   echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443
7444 # These are sane defaults that work on at least a few old systems.
7445 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7446
7447 # Character class describing NM global symbol codes.
7448 symcode='[BCDEGRST]'
7449
7450 # Regexp to match symbols that can be accessed directly from C.
7451 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7452
7453 # Transform the above into a raw symbol and a C symbol.
7454 symxfrm='\1 \2\3 \3'
7455
7456 # Transform an extracted symbol line into a proper C declaration
7457 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7458
7459 # Transform an extracted symbol line into symbol name and symbol address
7460 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'"
7461
7462 # Define system-specific variables.
7463 case $host_os in
7464 aix*)
7465   symcode='[BCDT]'
7466   ;;
7467 cygwin* | mingw* | pw32*)
7468   symcode='[ABCDGISTW]'
7469   ;;
7470 hpux*) # Its linker distinguishes data from code symbols
7471   if test "$host_cpu" = ia64; then
7472     symcode='[ABCDEGRST]'
7473   fi
7474   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7475   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'"
7476   ;;
7477 irix* | nonstopux*)
7478   symcode='[BCDEGRST]'
7479   ;;
7480 osf*)
7481   symcode='[BCDEGQRST]'
7482   ;;
7483 solaris* | sysv5*)
7484   symcode='[BDRT]'
7485   ;;
7486 sysv4)
7487   symcode='[DFNSTU]'
7488   ;;
7489 esac
7490
7491 # Handle CRLF in mingw tool chain
7492 opt_cr=
7493 case $build_os in
7494 mingw*)
7495   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7496   ;;
7497 esac
7498
7499 # If we're using GNU nm, then use its standard symbol codes.
7500 case `$NM -V 2>&1` in
7501 *GNU* | *'with BFD'*)
7502   symcode='[ABCDGIRSTW]' ;;
7503 esac
7504
7505 # Try without a prefix undercore, then with it.
7506 for ac_symprfx in "" "_"; do
7507
7508   # Write the raw and C identifiers.
7509   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7510
7511   # Check to see that the pipe works correctly.
7512   pipe_works=no
7513
7514   rm -f conftest*
7515   cat > conftest.$ac_ext <<EOF
7516 #ifdef __cplusplus
7517 extern "C" {
7518 #endif
7519 char nm_test_var;
7520 void nm_test_func(){}
7521 #ifdef __cplusplus
7522 }
7523 #endif
7524 int main(){nm_test_var='a';nm_test_func();return(0);}
7525 EOF
7526
7527   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528   (eval $ac_compile) 2>&5
7529   ac_status=$?
7530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531   (exit $ac_status); }; then
7532     # Now try to grab the symbols.
7533     nlist=conftest.nm
7534     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7535   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7536   ac_status=$?
7537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); } && test -s "$nlist"; then
7539       # Try sorting and uniquifying the output.
7540       if sort "$nlist" | uniq > "$nlist"T; then
7541         mv -f "$nlist"T "$nlist"
7542       else
7543         rm -f "$nlist"T
7544       fi
7545
7546       # Make sure that we snagged all the symbols we need.
7547       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7548         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7549           cat <<EOF > conftest.$ac_ext
7550 #ifdef __cplusplus
7551 extern "C" {
7552 #endif
7553
7554 EOF
7555           # Now generate the symbol file.
7556           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7557
7558           cat <<EOF >> conftest.$ac_ext
7559 #if defined (__STDC__) && __STDC__
7560 # define lt_ptr_t void *
7561 #else
7562 # define lt_ptr_t char *
7563 # define const
7564 #endif
7565
7566 /* The mapping between symbol names and symbols. */
7567 const struct {
7568   const char *name;
7569   lt_ptr_t address;
7570 }
7571 lt_preloaded_symbols[] =
7572 {
7573 EOF
7574           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7575           cat <<\EOF >> conftest.$ac_ext
7576   {0, (lt_ptr_t) 0}
7577 };
7578
7579 #ifdef __cplusplus
7580 }
7581 #endif
7582 EOF
7583           # Now try linking the two files.
7584           mv conftest.$ac_objext conftstm.$ac_objext
7585           lt_save_LIBS="$LIBS"
7586           lt_save_CFLAGS="$CFLAGS"
7587           LIBS="conftstm.$ac_objext"
7588           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7589           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7590   (eval $ac_link) 2>&5
7591   ac_status=$?
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7594             pipe_works=yes
7595           fi
7596           LIBS="$lt_save_LIBS"
7597           CFLAGS="$lt_save_CFLAGS"
7598         else
7599           echo "cannot find nm_test_func in $nlist" >&5
7600         fi
7601       else
7602         echo "cannot find nm_test_var in $nlist" >&5
7603       fi
7604     else
7605       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7606     fi
7607   else
7608     echo "$progname: failed program was:" >&5
7609     cat conftest.$ac_ext >&5
7610   fi
7611   rm -f conftest* conftst*
7612
7613   # Do not use the global_symbol_pipe unless it works.
7614   if test "$pipe_works" = yes; then
7615     break
7616   else
7617     lt_cv_sys_global_symbol_pipe=
7618   fi
7619 done
7620
7621 fi
7622
7623 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7624   lt_cv_sys_global_symbol_to_cdecl=
7625 fi
7626 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7627   echo "$as_me:$LINENO: result: failed" >&5
7628 echo "${ECHO_T}failed" >&6
7629 else
7630   echo "$as_me:$LINENO: result: ok" >&5
7631 echo "${ECHO_T}ok" >&6
7632 fi
7633
7634 echo "$as_me:$LINENO: checking for objdir" >&5
7635 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7636 if test "${lt_cv_objdir+set}" = set; then
7637   echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639   rm -f .libs 2>/dev/null
7640 mkdir .libs 2>/dev/null
7641 if test -d .libs; then
7642   lt_cv_objdir=.libs
7643 else
7644   # MS-DOS does not allow filenames that begin with a dot.
7645   lt_cv_objdir=_libs
7646 fi
7647 rmdir .libs 2>/dev/null
7648 fi
7649 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7650 echo "${ECHO_T}$lt_cv_objdir" >&6
7651 objdir=$lt_cv_objdir
7652
7653
7654
7655
7656
7657 case $host_os in
7658 aix3*)
7659   # AIX sometimes has problems with the GCC collect2 program.  For some
7660   # reason, if we set the COLLECT_NAMES environment variable, the problems
7661   # vanish in a puff of smoke.
7662   if test "X${COLLECT_NAMES+set}" != Xset; then
7663     COLLECT_NAMES=
7664     export COLLECT_NAMES
7665   fi
7666   ;;
7667 esac
7668
7669 # Sed substitution that helps us do robust quoting.  It backslashifies
7670 # metacharacters that are still active within double-quoted strings.
7671 Xsed='sed -e s/^X//'
7672 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7673
7674 # Same as above, but do not quote variable references.
7675 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7676
7677 # Sed substitution to delay expansion of an escaped shell variable in a
7678 # double_quote_subst'ed string.
7679 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7680
7681 # Sed substitution to avoid accidental globbing in evaled expressions
7682 no_glob_subst='s/\*/\\\*/g'
7683
7684 # Constants:
7685 rm="rm -f"
7686
7687 # Global variables:
7688 default_ofile=libtool
7689 can_build_shared=yes
7690
7691 # All known linkers require a `.a' archive for static linking (except M$VC,
7692 # which needs '.lib').
7693 libext=a
7694 ltmain="$ac_aux_dir/ltmain.sh"
7695 ofile="$default_ofile"
7696 with_gnu_ld="$lt_cv_prog_gnu_ld"
7697
7698 if test -n "$ac_tool_prefix"; then
7699   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7700 set dummy ${ac_tool_prefix}ar; ac_word=$2
7701 echo "$as_me:$LINENO: checking for $ac_word" >&5
7702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7703 if test "${ac_cv_prog_AR+set}" = set; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706   if test -n "$AR"; then
7707   ac_cv_prog_AR="$AR" # Let the user override the test.
7708 else
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7711 do
7712   IFS=$as_save_IFS
7713   test -z "$as_dir" && as_dir=.
7714   for ac_exec_ext in '' $ac_executable_extensions; do
7715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7716     ac_cv_prog_AR="${ac_tool_prefix}ar"
7717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7718     break 2
7719   fi
7720 done
7721 done
7722
7723 fi
7724 fi
7725 AR=$ac_cv_prog_AR
7726 if test -n "$AR"; then
7727   echo "$as_me:$LINENO: result: $AR" >&5
7728 echo "${ECHO_T}$AR" >&6
7729 else
7730   echo "$as_me:$LINENO: result: no" >&5
7731 echo "${ECHO_T}no" >&6
7732 fi
7733
7734 fi
7735 if test -z "$ac_cv_prog_AR"; then
7736   ac_ct_AR=$AR
7737   # Extract the first word of "ar", so it can be a program name with args.
7738 set dummy ar; ac_word=$2
7739 echo "$as_me:$LINENO: checking for $ac_word" >&5
7740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7741 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7742   echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744   if test -n "$ac_ct_AR"; then
7745   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750   IFS=$as_save_IFS
7751   test -z "$as_dir" && as_dir=.
7752   for ac_exec_ext in '' $ac_executable_extensions; do
7753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754     ac_cv_prog_ac_ct_AR="ar"
7755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756     break 2
7757   fi
7758 done
7759 done
7760
7761   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7762 fi
7763 fi
7764 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7765 if test -n "$ac_ct_AR"; then
7766   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7767 echo "${ECHO_T}$ac_ct_AR" >&6
7768 else
7769   echo "$as_me:$LINENO: result: no" >&5
7770 echo "${ECHO_T}no" >&6
7771 fi
7772
7773   AR=$ac_ct_AR
7774 else
7775   AR="$ac_cv_prog_AR"
7776 fi
7777
7778 if test -n "$ac_tool_prefix"; then
7779   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7780 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7781 echo "$as_me:$LINENO: checking for $ac_word" >&5
7782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7783 if test "${ac_cv_prog_RANLIB+set}" = set; then
7784   echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786   if test -n "$RANLIB"; then
7787   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7788 else
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 for as_dir in $PATH
7791 do
7792   IFS=$as_save_IFS
7793   test -z "$as_dir" && as_dir=.
7794   for ac_exec_ext in '' $ac_executable_extensions; do
7795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7798     break 2
7799   fi
7800 done
7801 done
7802
7803 fi
7804 fi
7805 RANLIB=$ac_cv_prog_RANLIB
7806 if test -n "$RANLIB"; then
7807   echo "$as_me:$LINENO: result: $RANLIB" >&5
7808 echo "${ECHO_T}$RANLIB" >&6
7809 else
7810   echo "$as_me:$LINENO: result: no" >&5
7811 echo "${ECHO_T}no" >&6
7812 fi
7813
7814 fi
7815 if test -z "$ac_cv_prog_RANLIB"; then
7816   ac_ct_RANLIB=$RANLIB
7817   # Extract the first word of "ranlib", so it can be a program name with args.
7818 set dummy ranlib; ac_word=$2
7819 echo "$as_me:$LINENO: checking for $ac_word" >&5
7820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7821 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7822   echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824   if test -n "$ac_ct_RANLIB"; then
7825   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7829 do
7830   IFS=$as_save_IFS
7831   test -z "$as_dir" && as_dir=.
7832   for ac_exec_ext in '' $ac_executable_extensions; do
7833   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834     ac_cv_prog_ac_ct_RANLIB="ranlib"
7835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7836     break 2
7837   fi
7838 done
7839 done
7840
7841   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7842 fi
7843 fi
7844 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7845 if test -n "$ac_ct_RANLIB"; then
7846   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7847 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7848 else
7849   echo "$as_me:$LINENO: result: no" >&5
7850 echo "${ECHO_T}no" >&6
7851 fi
7852
7853   RANLIB=$ac_ct_RANLIB
7854 else
7855   RANLIB="$ac_cv_prog_RANLIB"
7856 fi
7857
7858 if test -n "$ac_tool_prefix"; then
7859   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7860 set dummy ${ac_tool_prefix}strip; ac_word=$2
7861 echo "$as_me:$LINENO: checking for $ac_word" >&5
7862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7863 if test "${ac_cv_prog_STRIP+set}" = set; then
7864   echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866   if test -n "$STRIP"; then
7867   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7871 do
7872   IFS=$as_save_IFS
7873   test -z "$as_dir" && as_dir=.
7874   for ac_exec_ext in '' $ac_executable_extensions; do
7875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7878     break 2
7879   fi
7880 done
7881 done
7882
7883 fi
7884 fi
7885 STRIP=$ac_cv_prog_STRIP
7886 if test -n "$STRIP"; then
7887   echo "$as_me:$LINENO: result: $STRIP" >&5
7888 echo "${ECHO_T}$STRIP" >&6
7889 else
7890   echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6
7892 fi
7893
7894 fi
7895 if test -z "$ac_cv_prog_STRIP"; then
7896   ac_ct_STRIP=$STRIP
7897   # Extract the first word of "strip", so it can be a program name with args.
7898 set dummy strip; ac_word=$2
7899 echo "$as_me:$LINENO: checking for $ac_word" >&5
7900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7901 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7902   echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904   if test -n "$ac_ct_STRIP"; then
7905   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910   IFS=$as_save_IFS
7911   test -z "$as_dir" && as_dir=.
7912   for ac_exec_ext in '' $ac_executable_extensions; do
7913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914     ac_cv_prog_ac_ct_STRIP="strip"
7915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7916     break 2
7917   fi
7918 done
7919 done
7920
7921   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7922 fi
7923 fi
7924 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7925 if test -n "$ac_ct_STRIP"; then
7926   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7927 echo "${ECHO_T}$ac_ct_STRIP" >&6
7928 else
7929   echo "$as_me:$LINENO: result: no" >&5
7930 echo "${ECHO_T}no" >&6
7931 fi
7932
7933   STRIP=$ac_ct_STRIP
7934 else
7935   STRIP="$ac_cv_prog_STRIP"
7936 fi
7937
7938
7939 old_CC="$CC"
7940 old_CFLAGS="$CFLAGS"
7941
7942 # Set sane defaults for various variables
7943 test -z "$AR" && AR=ar
7944 test -z "$AR_FLAGS" && AR_FLAGS=cru
7945 test -z "$AS" && AS=as
7946 test -z "$CC" && CC=cc
7947 test -z "$LTCC" && LTCC=$CC
7948 test -z "$DLLTOOL" && DLLTOOL=dlltool
7949 test -z "$LD" && LD=ld
7950 test -z "$LN_S" && LN_S="ln -s"
7951 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7952 test -z "$NM" && NM=nm
7953 test -z "$SED" && SED=sed
7954 test -z "$OBJDUMP" && OBJDUMP=objdump
7955 test -z "$RANLIB" && RANLIB=:
7956 test -z "$STRIP" && STRIP=:
7957 test -z "$ac_objext" && ac_objext=o
7958
7959 # Determine commands to create old-style static archives.
7960 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7961 old_postinstall_cmds='chmod 644 $oldlib'
7962 old_postuninstall_cmds=
7963
7964 if test -n "$RANLIB"; then
7965   case $host_os in
7966   openbsd*)
7967     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7968     ;;
7969   *)
7970     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7971     ;;
7972   esac
7973   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7974 fi
7975
7976 # Only perform the check for file, if the check method requires it
7977 case $deplibs_check_method in
7978 file_magic*)
7979   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7980     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7981 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7982 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7983   echo $ECHO_N "(cached) $ECHO_C" >&6
7984 else
7985   case $MAGIC_CMD in
7986 [\\/*] |  ?:[\\/]*)
7987   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7988   ;;
7989 *)
7990   lt_save_MAGIC_CMD="$MAGIC_CMD"
7991   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7992   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7993   for ac_dir in $ac_dummy; do
7994     IFS="$lt_save_ifs"
7995     test -z "$ac_dir" && ac_dir=.
7996     if test -f $ac_dir/${ac_tool_prefix}file; then
7997       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7998       if test -n "$file_magic_test_file"; then
7999         case $deplibs_check_method in
8000         "file_magic "*)
8001           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8002           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8003           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8004             $EGREP "$file_magic_regex" > /dev/null; then
8005             :
8006           else
8007             cat <<EOF 1>&2
8008
8009 *** Warning: the command libtool uses to detect shared libraries,
8010 *** $file_magic_cmd, produces output that libtool cannot recognize.
8011 *** The result is that libtool may fail to recognize shared libraries
8012 *** as such.  This will affect the creation of libtool libraries that
8013 *** depend on shared libraries, but programs linked with such libtool
8014 *** libraries will work regardless of this problem.  Nevertheless, you
8015 *** may want to report the problem to your system manager and/or to
8016 *** bug-libtool@gnu.org
8017
8018 EOF
8019           fi ;;
8020         esac
8021       fi
8022       break
8023     fi
8024   done
8025   IFS="$lt_save_ifs"
8026   MAGIC_CMD="$lt_save_MAGIC_CMD"
8027   ;;
8028 esac
8029 fi
8030
8031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8032 if test -n "$MAGIC_CMD"; then
8033   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8034 echo "${ECHO_T}$MAGIC_CMD" >&6
8035 else
8036   echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6
8038 fi
8039
8040 if test -z "$lt_cv_path_MAGIC_CMD"; then
8041   if test -n "$ac_tool_prefix"; then
8042     echo "$as_me:$LINENO: checking for file" >&5
8043 echo $ECHO_N "checking for file... $ECHO_C" >&6
8044 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8045   echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047   case $MAGIC_CMD in
8048 [\\/*] |  ?:[\\/]*)
8049   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8050   ;;
8051 *)
8052   lt_save_MAGIC_CMD="$MAGIC_CMD"
8053   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8054   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8055   for ac_dir in $ac_dummy; do
8056     IFS="$lt_save_ifs"
8057     test -z "$ac_dir" && ac_dir=.
8058     if test -f $ac_dir/file; then
8059       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8060       if test -n "$file_magic_test_file"; then
8061         case $deplibs_check_method in
8062         "file_magic "*)
8063           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8064           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8065           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8066             $EGREP "$file_magic_regex" > /dev/null; then
8067             :
8068           else
8069             cat <<EOF 1>&2
8070
8071 *** Warning: the command libtool uses to detect shared libraries,
8072 *** $file_magic_cmd, produces output that libtool cannot recognize.
8073 *** The result is that libtool may fail to recognize shared libraries
8074 *** as such.  This will affect the creation of libtool libraries that
8075 *** depend on shared libraries, but programs linked with such libtool
8076 *** libraries will work regardless of this problem.  Nevertheless, you
8077 *** may want to report the problem to your system manager and/or to
8078 *** bug-libtool@gnu.org
8079
8080 EOF
8081           fi ;;
8082         esac
8083       fi
8084       break
8085     fi
8086   done
8087   IFS="$lt_save_ifs"
8088   MAGIC_CMD="$lt_save_MAGIC_CMD"
8089   ;;
8090 esac
8091 fi
8092
8093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8094 if test -n "$MAGIC_CMD"; then
8095   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8096 echo "${ECHO_T}$MAGIC_CMD" >&6
8097 else
8098   echo "$as_me:$LINENO: result: no" >&5
8099 echo "${ECHO_T}no" >&6
8100 fi
8101
8102   else
8103     MAGIC_CMD=:
8104   fi
8105 fi
8106
8107   fi
8108   ;;
8109 esac
8110
8111 enable_dlopen=no
8112 enable_win32_dll=no
8113
8114 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8115 if test "${enable_libtool_lock+set}" = set; then
8116   enableval="$enable_libtool_lock"
8117
8118 fi;
8119 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8120
8121
8122 # Check whether --with-pic or --without-pic was given.
8123 if test "${with_pic+set}" = set; then
8124   withval="$with_pic"
8125   pic_mode="$withval"
8126 else
8127   pic_mode=default
8128 fi;
8129 test -z "$pic_mode" && pic_mode=default
8130
8131 # Use C for the default configuration in the libtool script
8132 tagname=
8133 lt_save_CC="$CC"
8134 ac_ext=c
8135 ac_cpp='$CPP $CPPFLAGS'
8136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8139
8140
8141 # Source file extension for C test sources.
8142 ac_ext=c
8143
8144 # Object file extension for compiled C test sources.
8145 objext=o
8146 objext=$objext
8147
8148 # Code to be used in simple compile tests
8149 lt_simple_compile_test_code="int some_variable = 0;\n"
8150
8151 # Code to be used in simple link tests
8152 lt_simple_link_test_code='int main(){return(0);}\n'
8153
8154
8155 # If no C compiler was specified, use CC.
8156 LTCC=${LTCC-"$CC"}
8157
8158 # Allow CC to be a program name with arguments.
8159 compiler=$CC
8160
8161
8162 #
8163 # Check for any special shared library compilation flags.
8164 #
8165 lt_prog_cc_shlib=
8166 if test "$GCC" = no; then
8167   case $host_os in
8168   sco3.2v5*)
8169     lt_prog_cc_shlib='-belf'
8170     ;;
8171   esac
8172 fi
8173 if test -n "$lt_prog_cc_shlib"; then
8174   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8175 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8176   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8177   else
8178     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8179 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8180     lt_cv_prog_cc_can_build_shared=no
8181   fi
8182 fi
8183
8184
8185 #
8186 # Check to make sure the static flag actually works.
8187 #
8188 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8189 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8190 if test "${lt_prog_compiler_static_works+set}" = set; then
8191   echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193   lt_prog_compiler_static_works=no
8194    save_LDFLAGS="$LDFLAGS"
8195    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8196    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8197    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8198      # The compiler can only warn and ignore the option if not recognized
8199      # So say no if there are warnings
8200      if test -s conftest.err; then
8201        # Append any errors to the config.log.
8202        cat conftest.err 1>&5
8203      else
8204        lt_prog_compiler_static_works=yes
8205      fi
8206    fi
8207    $rm conftest*
8208    LDFLAGS="$save_LDFLAGS"
8209
8210 fi
8211 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8212 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8213
8214 if test x"$lt_prog_compiler_static_works" = xyes; then
8215     :
8216 else
8217     lt_prog_compiler_static=
8218 fi
8219
8220
8221
8222 ## CAVEAT EMPTOR:
8223 ## There is no encapsulation within the following macros, do not change
8224 ## the running order or otherwise move them around unless you know exactly
8225 ## what you are doing...
8226
8227 lt_prog_compiler_no_builtin_flag=
8228
8229 if test "$GCC" = yes; then
8230   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8231
8232
8233 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8234 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8235 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8236   echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8238   lt_cv_prog_compiler_rtti_exceptions=no
8239   ac_outfile=conftest.$ac_objext
8240    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8241    lt_compiler_flag="-fno-rtti -fno-exceptions"
8242    # Insert the option either (1) after the last *FLAGS variable, or
8243    # (2) before a word containing "conftest.", or (3) at the end.
8244    # Note that $ac_compile itself does not contain backslashes and begins
8245    # with a dollar sign (not a hyphen), so the echo should work correctly.
8246    # The option is referenced via a variable to avoid confusing sed.
8247    lt_compile=`echo "$ac_compile" | $SED \
8248    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8249    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8250    -e 's:$: $lt_compiler_flag:'`
8251    (eval echo "\"\$as_me:8251: $lt_compile\"" >&5)
8252    (eval "$lt_compile" 2>conftest.err)
8253    ac_status=$?
8254    cat conftest.err >&5
8255    echo "$as_me:8255: \$? = $ac_status" >&5
8256    if (exit $ac_status) && test -s "$ac_outfile"; then
8257      # The compiler can only warn and ignore the option if not recognized
8258      # So say no if there are warnings
8259      if test ! -s conftest.err; then
8260        lt_cv_prog_compiler_rtti_exceptions=yes
8261      fi
8262    fi
8263    $rm conftest*
8264
8265 fi
8266 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8267 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8268
8269 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8270     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8271 else
8272     :
8273 fi
8274
8275 fi
8276
8277 lt_prog_compiler_wl=
8278 lt_prog_compiler_pic=
8279 lt_prog_compiler_static=
8280
8281 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8282 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8283
8284   if test "$GCC" = yes; then
8285     lt_prog_compiler_wl='-Wl,'
8286     lt_prog_compiler_static='-static'
8287
8288     case $host_os in
8289       aix*)
8290       # All AIX code is PIC.
8291       if test "$host_cpu" = ia64; then
8292         # AIX 5 now supports IA64 processor
8293         lt_prog_compiler_static='-Bstatic'
8294       fi
8295       ;;
8296
8297     amigaos*)
8298       # FIXME: we need at least 68020 code to build shared libraries, but
8299       # adding the `-m68020' flag to GCC prevents building anything better,
8300       # like `-m68040'.
8301       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8302       ;;
8303
8304     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8305       # PIC is the default for these OSes.
8306       ;;
8307
8308     mingw* | pw32* | os2*)
8309       # This hack is so that the source file can tell whether it is being
8310       # built for inclusion in a dll (and should export symbols for example).
8311       lt_prog_compiler_pic='-DDLL_EXPORT'
8312       ;;
8313
8314     darwin* | rhapsody*)
8315       # PIC is the default on this platform
8316       # Common symbols not allowed in MH_DYLIB files
8317       lt_prog_compiler_pic='-fno-common'
8318       ;;
8319
8320     msdosdjgpp*)
8321       # Just because we use GCC doesn't mean we suddenly get shared libraries
8322       # on systems that don't support them.
8323       lt_prog_compiler_can_build_shared=no
8324       enable_shared=no
8325       ;;
8326
8327     sysv4*MP*)
8328       if test -d /usr/nec; then
8329         lt_prog_compiler_pic=-Kconform_pic
8330       fi
8331       ;;
8332
8333     hpux*)
8334       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8335       # not for PA HP-UX.
8336       case "$host_cpu" in
8337       hppa*64*|ia64*)
8338         # +Z the default
8339         ;;
8340       *)
8341         lt_prog_compiler_pic='-fPIC'
8342         ;;
8343       esac
8344       ;;
8345
8346     *)
8347       lt_prog_compiler_pic='-fPIC'
8348       ;;
8349     esac
8350   else
8351     # PORTME Check for flag to pass linker flags through the system compiler.
8352     case $host_os in
8353     aix*)
8354       lt_prog_compiler_wl='-Wl,'
8355       if test "$host_cpu" = ia64; then
8356         # AIX 5 now supports IA64 processor
8357         lt_prog_compiler_static='-Bstatic'
8358       else
8359         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8360       fi
8361       ;;
8362
8363     mingw* | pw32* | os2*)
8364       # This hack is so that the source file can tell whether it is being
8365       # built for inclusion in a dll (and should export symbols for example).
8366       lt_prog_compiler_pic='-DDLL_EXPORT'
8367       ;;
8368
8369     hpux9* | hpux10* | hpux11*)
8370       lt_prog_compiler_wl='-Wl,'
8371       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8372       # not for PA HP-UX.
8373       case "$host_cpu" in
8374       hppa*64*|ia64*)
8375         # +Z the default
8376         ;;
8377       *)
8378         lt_prog_compiler_pic='+Z'
8379         ;;
8380       esac
8381       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8382       lt_prog_compiler_static='${wl}-a ${wl}archive'
8383       ;;
8384
8385     irix5* | irix6* | nonstopux*)
8386       lt_prog_compiler_wl='-Wl,'
8387       # PIC (with -KPIC) is the default.
8388       lt_prog_compiler_static='-non_shared'
8389       ;;
8390
8391     newsos6)
8392       lt_prog_compiler_pic='-KPIC'
8393       lt_prog_compiler_static='-Bstatic'
8394       ;;
8395
8396     linux*)
8397       case $CC in
8398       icc* | ecc*)
8399         lt_prog_compiler_wl='-Wl,'
8400         lt_prog_compiler_pic='-KPIC'
8401         lt_prog_compiler_static='-static'
8402         ;;
8403       ccc*)
8404         lt_prog_compiler_wl='-Wl,'
8405         # All Alpha code is PIC.
8406         lt_prog_compiler_static='-non_shared'
8407         ;;
8408       esac
8409       ;;
8410
8411     osf3* | osf4* | osf5*)
8412       lt_prog_compiler_wl='-Wl,'
8413       # All OSF/1 code is PIC.
8414       lt_prog_compiler_static='-non_shared'
8415       ;;
8416
8417     sco3.2v5*)
8418       lt_prog_compiler_pic='-Kpic'
8419       lt_prog_compiler_static='-dn'
8420       ;;
8421
8422     solaris*)
8423       lt_prog_compiler_wl='-Wl,'
8424       lt_prog_compiler_pic='-KPIC'
8425       lt_prog_compiler_static='-Bstatic'
8426       ;;
8427
8428     sunos4*)
8429       lt_prog_compiler_wl='-Qoption ld '
8430       lt_prog_compiler_pic='-PIC'
8431       lt_prog_compiler_static='-Bstatic'
8432       ;;
8433
8434     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8435       lt_prog_compiler_wl='-Wl,'
8436       lt_prog_compiler_pic='-KPIC'
8437       lt_prog_compiler_static='-Bstatic'
8438       ;;
8439
8440     sysv4*MP*)
8441       if test -d /usr/nec ;then
8442         lt_prog_compiler_pic='-Kconform_pic'
8443         lt_prog_compiler_static='-Bstatic'
8444       fi
8445       ;;
8446
8447     uts4*)
8448       lt_prog_compiler_pic='-pic'
8449       lt_prog_compiler_static='-Bstatic'
8450       ;;
8451
8452     *)
8453       lt_prog_compiler_can_build_shared=no
8454       ;;
8455     esac
8456   fi
8457
8458 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8459 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8460
8461 #
8462 # Check to make sure the PIC flag actually works.
8463 #
8464 if test -n "$lt_prog_compiler_pic"; then
8465
8466 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8467 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8468 if test "${lt_prog_compiler_pic_works+set}" = set; then
8469   echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471   lt_prog_compiler_pic_works=no
8472   ac_outfile=conftest.$ac_objext
8473    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8474    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8475    # Insert the option either (1) after the last *FLAGS variable, or
8476    # (2) before a word containing "conftest.", or (3) at the end.
8477    # Note that $ac_compile itself does not contain backslashes and begins
8478    # with a dollar sign (not a hyphen), so the echo should work correctly.
8479    # The option is referenced via a variable to avoid confusing sed.
8480    lt_compile=`echo "$ac_compile" | $SED \
8481    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8482    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8483    -e 's:$: $lt_compiler_flag:'`
8484    (eval echo "\"\$as_me:8484: $lt_compile\"" >&5)
8485    (eval "$lt_compile" 2>conftest.err)
8486    ac_status=$?
8487    cat conftest.err >&5
8488    echo "$as_me:8488: \$? = $ac_status" >&5
8489    if (exit $ac_status) && test -s "$ac_outfile"; then
8490      # The compiler can only warn and ignore the option if not recognized
8491      # So say no if there are warnings
8492      if test ! -s conftest.err; then
8493        lt_prog_compiler_pic_works=yes
8494      fi
8495    fi
8496    $rm conftest*
8497
8498 fi
8499 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8500 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8501
8502 if test x"$lt_prog_compiler_pic_works" = xyes; then
8503     case $lt_prog_compiler_pic in
8504      "" | " "*) ;;
8505      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8506      esac
8507 else
8508     lt_prog_compiler_pic=
8509      lt_prog_compiler_can_build_shared=no
8510 fi
8511
8512 fi
8513 case "$host_os" in
8514   # For platforms which do not support PIC, -DPIC is meaningless:
8515   *djgpp*)
8516     lt_prog_compiler_pic=
8517     ;;
8518   *)
8519     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8520     ;;
8521 esac
8522
8523 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8524 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8525 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8526   echo $ECHO_N "(cached) $ECHO_C" >&6
8527 else
8528   lt_cv_prog_compiler_c_o=no
8529    $rm -r conftest 2>/dev/null
8530    mkdir conftest
8531    cd conftest
8532    mkdir out
8533    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8534
8535    lt_compiler_flag="-o out/conftest2.$ac_objext"
8536    # Insert the option either (1) after the last *FLAGS variable, or
8537    # (2) before a word containing "conftest.", or (3) at the end.
8538    # Note that $ac_compile itself does not contain backslashes and begins
8539    # with a dollar sign (not a hyphen), so the echo should work correctly.
8540    lt_compile=`echo "$ac_compile" | $SED \
8541    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8542    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8543    -e 's:$: $lt_compiler_flag:'`
8544    (eval echo "\"\$as_me:8544: $lt_compile\"" >&5)
8545    (eval "$lt_compile" 2>out/conftest.err)
8546    ac_status=$?
8547    cat out/conftest.err >&5
8548    echo "$as_me:8548: \$? = $ac_status" >&5
8549    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8550    then
8551      # The compiler can only warn and ignore the option if not recognized
8552      # So say no if there are warnings
8553      if test ! -s out/conftest.err; then
8554        lt_cv_prog_compiler_c_o=yes
8555      fi
8556    fi
8557    chmod u+w .
8558    $rm conftest*
8559    # SGI C++ compiler will create directory out/ii_files/ for
8560    # template instantiation
8561    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8562    $rm out/* && rmdir out
8563    cd ..
8564    rmdir conftest
8565    $rm conftest*
8566
8567 fi
8568 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8569 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8570
8571
8572 hard_links="nottested"
8573 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8574   # do not overwrite the value of need_locks provided by the user
8575   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8576 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8577   hard_links=yes
8578   $rm conftest*
8579   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8580   touch conftest.a
8581   ln conftest.a conftest.b 2>&5 || hard_links=no
8582   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8583   echo "$as_me:$LINENO: result: $hard_links" >&5
8584 echo "${ECHO_T}$hard_links" >&6
8585   if test "$hard_links" = no; then
8586     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8587 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8588     need_locks=warn
8589   fi
8590 else
8591   need_locks=no
8592 fi
8593
8594 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8595 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8596
8597   runpath_var=
8598   allow_undefined_flag=
8599   enable_shared_with_static_runtimes=no
8600   archive_cmds=
8601   archive_expsym_cmds=
8602   old_archive_From_new_cmds=
8603   old_archive_from_expsyms_cmds=
8604   export_dynamic_flag_spec=
8605   whole_archive_flag_spec=
8606   thread_safe_flag_spec=
8607   hardcode_libdir_flag_spec=
8608   hardcode_libdir_flag_spec_ld=
8609   hardcode_libdir_separator=
8610   hardcode_direct=no
8611   hardcode_minus_L=no
8612   hardcode_shlibpath_var=unsupported
8613   link_all_deplibs=unknown
8614   hardcode_automatic=no
8615   module_cmds=
8616   module_expsym_cmds=
8617   always_export_symbols=no
8618   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8619   # include_expsyms should be a list of space-separated symbols to be *always*
8620   # included in the symbol list
8621   include_expsyms=
8622   # exclude_expsyms can be an extended regexp of symbols to exclude
8623   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8624   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8625   # as well as any symbol that contains `d'.
8626   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8627   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8628   # platforms (ab)use it in PIC code, but their linkers get confused if
8629   # the symbol is explicitly referenced.  Since portable code cannot
8630   # rely on this symbol name, it's probably fine to never include it in
8631   # preloaded symbol tables.
8632   extract_expsyms_cmds=
8633
8634   case $host_os in
8635   cygwin* | mingw* | pw32*)
8636     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8637     # When not using gcc, we currently assume that we are using
8638     # Microsoft Visual C++.
8639     if test "$GCC" != yes; then
8640       with_gnu_ld=no
8641     fi
8642     ;;
8643   openbsd*)
8644     with_gnu_ld=no
8645     ;;
8646   esac
8647
8648   ld_shlibs=yes
8649   if test "$with_gnu_ld" = yes; then
8650     # If archive_cmds runs LD, not CC, wlarc should be empty
8651     wlarc='${wl}'
8652
8653     # See if GNU ld supports shared libraries.
8654     case $host_os in
8655     aix3* | aix4* | aix5*)
8656       # On AIX/PPC, the GNU linker is very broken
8657       if test "$host_cpu" != ia64; then
8658         ld_shlibs=no
8659         cat <<EOF 1>&2
8660
8661 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8662 *** to be unable to reliably create shared libraries on AIX.
8663 *** Therefore, libtool is disabling shared libraries support.  If you
8664 *** really care for shared libraries, you may want to modify your PATH
8665 *** so that a non-GNU linker is found, and then restart.
8666
8667 EOF
8668       fi
8669       ;;
8670
8671     amigaos*)
8672       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)'
8673       hardcode_libdir_flag_spec='-L$libdir'
8674       hardcode_minus_L=yes
8675
8676       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8677       # that the semantics of dynamic libraries on AmigaOS, at least up
8678       # to version 4, is to share data among multiple programs linked
8679       # with the same dynamic library.  Since this doesn't match the
8680       # behavior of shared libraries on other platforms, we can't use
8681       # them.
8682       ld_shlibs=no
8683       ;;
8684
8685     beos*)
8686       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8687         allow_undefined_flag=unsupported
8688         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8689         # support --undefined.  This deserves some investigation.  FIXME
8690         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691       else
8692         ld_shlibs=no
8693       fi
8694       ;;
8695
8696     cygwin* | mingw* | pw32*)
8697       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8698       # as there is no search path for DLLs.
8699       hardcode_libdir_flag_spec='-L$libdir'
8700       allow_undefined_flag=unsupported
8701       always_export_symbols=no
8702       enable_shared_with_static_runtimes=yes
8703       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8704
8705       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8706         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8707         # If the export-symbols file already is a .def file (1st line
8708         # is EXPORTS), use it as is; otherwise, prepend...
8709         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8710           cp $export_symbols $output_objdir/$soname.def;
8711         else
8712           echo EXPORTS > $output_objdir/$soname.def;
8713           cat $export_symbols >> $output_objdir/$soname.def;
8714         fi~
8715         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8716       else
8717         ld_shlibs=no
8718       fi
8719       ;;
8720
8721     netbsd*)
8722       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8723         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8724         wlarc=
8725       else
8726         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8728       fi
8729       ;;
8730
8731     solaris* | sysv5*)
8732       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8733         ld_shlibs=no
8734         cat <<EOF 1>&2
8735
8736 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8737 *** create shared libraries on Solaris systems.  Therefore, libtool
8738 *** is disabling shared libraries support.  We urge you to upgrade GNU
8739 *** binutils to release 2.9.1 or newer.  Another option is to modify
8740 *** your PATH or compiler configuration so that the native linker is
8741 *** used, and then restart.
8742
8743 EOF
8744       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8745         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8747       else
8748         ld_shlibs=no
8749       fi
8750       ;;
8751
8752     sunos4*)
8753       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8754       wlarc=
8755       hardcode_direct=yes
8756       hardcode_shlibpath_var=no
8757       ;;
8758
8759   linux*)
8760     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8761         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8762         archive_cmds="$tmp_archive_cmds"
8763       supports_anon_versioning=no
8764       case `$LD -v 2>/dev/null` in
8765         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8766         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8767         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8768         *\ 2.11.*) ;; # other 2.11 versions
8769         *) supports_anon_versioning=yes ;;
8770       esac
8771       if test $supports_anon_versioning = yes; then
8772         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8773 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8774 $echo "local: *; };" >> $output_objdir/$libname.ver~
8775         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8776       else
8777         archive_expsym_cmds="$tmp_archive_cmds"
8778       fi
8779     else
8780       ld_shlibs=no
8781     fi
8782     ;;
8783
8784     *)
8785       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8786         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8787         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8788       else
8789         ld_shlibs=no
8790       fi
8791       ;;
8792     esac
8793
8794     if test "$ld_shlibs" = yes; then
8795       runpath_var=LD_RUN_PATH
8796       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8797       export_dynamic_flag_spec='${wl}--export-dynamic'
8798       # ancient GNU ld didn't support --whole-archive et. al.
8799       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8800         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8801       else
8802         whole_archive_flag_spec=
8803       fi
8804     fi
8805   else
8806     # PORTME fill in a description of your system's linker (not GNU ld)
8807     case $host_os in
8808     aix3*)
8809       allow_undefined_flag=unsupported
8810       always_export_symbols=yes
8811       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'
8812       # Note: this linker hardcodes the directories in LIBPATH if there
8813       # are no directories specified by -L.
8814       hardcode_minus_L=yes
8815       if test "$GCC" = yes && test -z "$link_static_flag"; then
8816         # Neither direct hardcoding nor static linking is supported with a
8817         # broken collect2.
8818         hardcode_direct=unsupported
8819       fi
8820       ;;
8821
8822     aix4* | aix5*)
8823       if test "$host_cpu" = ia64; then
8824         # On IA64, the linker does run time linking by default, so we don't
8825         # have to do anything special.
8826         aix_use_runtimelinking=no
8827         exp_sym_flag='-Bexport'
8828         no_entry_flag=""
8829       else
8830         # If we're using GNU nm, then we don't want the "-C" option.
8831         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8832         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8833           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'
8834         else
8835           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'
8836         fi
8837         aix_use_runtimelinking=no
8838
8839         # Test if we are trying to use run time linking or normal
8840         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8841         # need to do runtime linking.
8842         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8843           for ld_flag in $LDFLAGS; do
8844           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8845             aix_use_runtimelinking=yes
8846             break
8847           fi
8848           done
8849         esac
8850
8851         exp_sym_flag='-bexport'
8852         no_entry_flag='-bnoentry'
8853       fi
8854
8855       # When large executables or shared objects are built, AIX ld can
8856       # have problems creating the table of contents.  If linking a library
8857       # or program results in "error TOC overflow" add -mminimal-toc to
8858       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8859       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8860
8861       archive_cmds=''
8862       hardcode_direct=yes
8863       hardcode_libdir_separator=':'
8864       link_all_deplibs=yes
8865
8866       if test "$GCC" = yes; then
8867         case $host_os in aix4.012|aix4.012.*)
8868         # We only want to do this on AIX 4.2 and lower, the check
8869         # below for broken collect2 doesn't work under 4.3+
8870           collect2name=`${CC} -print-prog-name=collect2`
8871           if test -f "$collect2name" && \
8872            strings "$collect2name" | grep resolve_lib_name >/dev/null
8873           then
8874           # We have reworked collect2
8875           hardcode_direct=yes
8876           else
8877           # We have old collect2
8878           hardcode_direct=unsupported
8879           # It fails to find uninstalled libraries when the uninstalled
8880           # path is not listed in the libpath.  Setting hardcode_minus_L
8881           # to unsupported forces relinking
8882           hardcode_minus_L=yes
8883           hardcode_libdir_flag_spec='-L$libdir'
8884           hardcode_libdir_separator=
8885           fi
8886         esac
8887         shared_flag='-shared'
8888       else
8889         # not using gcc
8890         if test "$host_cpu" = ia64; then
8891         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8892         # chokes on -Wl,-G. The following line is correct:
8893           shared_flag='-G'
8894         else
8895         if test "$aix_use_runtimelinking" = yes; then
8896             shared_flag='${wl}-G'
8897           else
8898             shared_flag='${wl}-bM:SRE'
8899         fi
8900         fi
8901       fi
8902
8903       # It seems that -bexpall does not export symbols beginning with
8904       # underscore (_), so it is better to generate a list of symbols to export.
8905       always_export_symbols=yes
8906       if test "$aix_use_runtimelinking" = yes; then
8907         # Warning - without using the other runtime loading flags (-brtl),
8908         # -berok will link without error, but may produce a broken library.
8909         allow_undefined_flag='-berok'
8910        # Determine the default libpath from the value encoded in an empty executable.
8911        cat >conftest.$ac_ext <<_ACEOF
8912 /* confdefs.h.  */
8913 _ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h.  */
8917
8918 int
8919 main ()
8920 {
8921
8922   ;
8923   return 0;
8924 }
8925 _ACEOF
8926 rm -f conftest.$ac_objext conftest$ac_exeext
8927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928   (eval $ac_link) 2>conftest.er1
8929   ac_status=$?
8930   grep -v '^ *+' conftest.er1 >conftest.err
8931   rm -f conftest.er1
8932   cat conftest.err >&5
8933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934   (exit $ac_status); } &&
8935          { ac_try='test -z "$ac_c_werror_flag"
8936                          || test ! -s conftest.err'
8937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938   (eval $ac_try) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; } &&
8942          { ac_try='test -s conftest$ac_exeext'
8943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944   (eval $ac_try) 2>&5
8945   ac_status=$?
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); }; }; then
8948
8949 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8950 }'`
8951 # Check for a 64-bit object if we didn't find anything.
8952 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; }
8953 }'`; fi
8954 else
8955   echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8957
8958 fi
8959 rm -f conftest.err conftest.$ac_objext \
8960       conftest$ac_exeext conftest.$ac_ext
8961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8962
8963        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8964         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"
8965        else
8966         if test "$host_cpu" = ia64; then
8967           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8968           allow_undefined_flag="-z nodefs"
8969           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"
8970         else
8971          # Determine the default libpath from the value encoded in an empty executable.
8972          cat >conftest.$ac_ext <<_ACEOF
8973 /* confdefs.h.  */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h.  */
8978
8979 int
8980 main ()
8981 {
8982
8983   ;
8984   return 0;
8985 }
8986 _ACEOF
8987 rm -f conftest.$ac_objext conftest$ac_exeext
8988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8989   (eval $ac_link) 2>conftest.er1
8990   ac_status=$?
8991   grep -v '^ *+' conftest.er1 >conftest.err
8992   rm -f conftest.er1
8993   cat conftest.err >&5
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); } &&
8996          { ac_try='test -z "$ac_c_werror_flag"
8997                          || test ! -s conftest.err'
8998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999   (eval $ac_try) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); }; } &&
9003          { ac_try='test -s conftest$ac_exeext'
9004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005   (eval $ac_try) 2>&5
9006   ac_status=$?
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); }; }; then
9009
9010 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9011 }'`
9012 # Check for a 64-bit object if we didn't find anything.
9013 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; }
9014 }'`; fi
9015 else
9016   echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9018
9019 fi
9020 rm -f conftest.err conftest.$ac_objext \
9021       conftest$ac_exeext conftest.$ac_ext
9022 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9023
9024          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9025           # Warning - without using the other run time loading flags,
9026           # -berok will link without error, but may produce a broken library.
9027           no_undefined_flag=' ${wl}-bernotok'
9028           allow_undefined_flag=' ${wl}-berok'
9029           # -bexpall does not export symbols beginning with underscore (_)
9030           always_export_symbols=yes
9031           # Exported symbols can be pulled into shared objects from archives
9032           whole_archive_flag_spec=' '
9033           archive_cmds_need_lc=yes
9034           # This is similar to how AIX traditionally builds it's shared libraries.
9035           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'
9036         fi
9037       fi
9038       ;;
9039
9040     amigaos*)
9041       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)'
9042       hardcode_libdir_flag_spec='-L$libdir'
9043       hardcode_minus_L=yes
9044       # see comment about different semantics on the GNU ld section
9045       ld_shlibs=no
9046       ;;
9047
9048     bsdi4*)
9049       export_dynamic_flag_spec=-rdynamic
9050       ;;
9051
9052     cygwin* | mingw* | pw32*)
9053       # When not using gcc, we currently assume that we are using
9054       # Microsoft Visual C++.
9055       # hardcode_libdir_flag_spec is actually meaningless, as there is
9056       # no search path for DLLs.
9057       hardcode_libdir_flag_spec=' '
9058       allow_undefined_flag=unsupported
9059       # Tell ltmain to make .lib files, not .a files.
9060       libext=lib
9061       # Tell ltmain to make .dll files, not .so files.
9062       shrext_cmds=".dll"
9063       # FIXME: Setting linknames here is a bad hack.
9064       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9065       # The linker will automatically build a .lib file if we build a DLL.
9066       old_archive_From_new_cmds='true'
9067       # FIXME: Should let the user specify the lib program.
9068       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9069       fix_srcfile_path='`cygpath -w "$srcfile"`'
9070       enable_shared_with_static_runtimes=yes
9071       ;;
9072
9073     darwin* | rhapsody*)
9074     if test "$GXX" = yes ; then
9075       archive_cmds_need_lc=no
9076       case "$host_os" in
9077       rhapsody* | darwin1.[012])
9078         allow_undefined_flag='-undefined suppress'
9079         ;;
9080       *) # Darwin 1.3 on
9081       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9082         allow_undefined_flag='-flat_namespace -undefined suppress'
9083       else
9084         case ${MACOSX_DEPLOYMENT_TARGET} in
9085           10.[012])
9086             allow_undefined_flag='-flat_namespace -undefined suppress'
9087             ;;
9088           10.*)
9089             allow_undefined_flag='-undefined dynamic_lookup'
9090             ;;
9091         esac
9092       fi
9093         ;;
9094       esac
9095         lt_int_apple_cc_single_mod=no
9096         output_verbose_link_cmd='echo'
9097         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9098           lt_int_apple_cc_single_mod=yes
9099         fi
9100         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9101           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9102         else
9103         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'
9104       fi
9105       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9106       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9107         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9108           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}'
9109         else
9110           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}'
9111         fi
9112           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}'
9113       hardcode_direct=no
9114       hardcode_automatic=yes
9115       hardcode_shlibpath_var=unsupported
9116       whole_archive_flag_spec='-all_load $convenience'
9117       link_all_deplibs=yes
9118     else
9119       ld_shlibs=no
9120     fi
9121       ;;
9122
9123     dgux*)
9124       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9125       hardcode_libdir_flag_spec='-L$libdir'
9126       hardcode_shlibpath_var=no
9127       ;;
9128
9129     freebsd1*)
9130       ld_shlibs=no
9131       ;;
9132
9133     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9134     # support.  Future versions do this automatically, but an explicit c++rt0.o
9135     # does not break anything, and helps significantly (at the cost of a little
9136     # extra space).
9137     freebsd2.2*)
9138       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9139       hardcode_libdir_flag_spec='-R$libdir'
9140       hardcode_direct=yes
9141       hardcode_shlibpath_var=no
9142       ;;
9143
9144     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9145     freebsd2*)
9146       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9147       hardcode_direct=yes
9148       hardcode_minus_L=yes
9149       hardcode_shlibpath_var=no
9150       ;;
9151
9152     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9153     freebsd* | kfreebsd*-gnu)
9154       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9155       hardcode_libdir_flag_spec='-R$libdir'
9156       hardcode_direct=yes
9157       hardcode_shlibpath_var=no
9158       ;;
9159
9160     hpux9*)
9161       if test "$GCC" = yes; then
9162         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'
9163       else
9164         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'
9165       fi
9166       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9167       hardcode_libdir_separator=:
9168       hardcode_direct=yes
9169
9170       # hardcode_minus_L: Not really in the search PATH,
9171       # but as the default location of the library.
9172       hardcode_minus_L=yes
9173       export_dynamic_flag_spec='${wl}-E'
9174       ;;
9175
9176     hpux10* | hpux11*)
9177       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9178         case "$host_cpu" in
9179         hppa*64*|ia64*)
9180           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9181           ;;
9182         *)
9183           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9184           ;;
9185         esac
9186       else
9187         case "$host_cpu" in
9188         hppa*64*|ia64*)
9189           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9190           ;;
9191         *)
9192           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9193           ;;
9194         esac
9195       fi
9196       if test "$with_gnu_ld" = no; then
9197         case "$host_cpu" in
9198         hppa*64*)
9199           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9200           hardcode_libdir_flag_spec_ld='+b $libdir'
9201           hardcode_libdir_separator=:
9202           hardcode_direct=no
9203           hardcode_shlibpath_var=no
9204           ;;
9205         ia64*)
9206           hardcode_libdir_flag_spec='-L$libdir'
9207           hardcode_direct=no
9208           hardcode_shlibpath_var=no
9209
9210           # hardcode_minus_L: Not really in the search PATH,
9211           # but as the default location of the library.
9212           hardcode_minus_L=yes
9213           ;;
9214         *)
9215           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9216           hardcode_libdir_separator=:
9217           hardcode_direct=yes
9218           export_dynamic_flag_spec='${wl}-E'
9219
9220           # hardcode_minus_L: Not really in the search PATH,
9221           # but as the default location of the library.
9222           hardcode_minus_L=yes
9223           ;;
9224         esac
9225       fi
9226       ;;
9227
9228     irix5* | irix6* | nonstopux*)
9229       if test "$GCC" = yes; then
9230         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'
9231       else
9232         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'
9233         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9234       fi
9235       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9236       hardcode_libdir_separator=:
9237       link_all_deplibs=yes
9238       ;;
9239
9240     netbsd*)
9241       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9242         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9243       else
9244         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9245       fi
9246       hardcode_libdir_flag_spec='-R$libdir'
9247       hardcode_direct=yes
9248       hardcode_shlibpath_var=no
9249       ;;
9250
9251     newsos6)
9252       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9253       hardcode_direct=yes
9254       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9255       hardcode_libdir_separator=:
9256       hardcode_shlibpath_var=no
9257       ;;
9258
9259     openbsd*)
9260       hardcode_direct=yes
9261       hardcode_shlibpath_var=no
9262       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9263         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9264         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9265         export_dynamic_flag_spec='${wl}-E'
9266       else
9267        case $host_os in
9268          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9269            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9270            hardcode_libdir_flag_spec='-R$libdir'
9271            ;;
9272          *)
9273            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9274            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9275            ;;
9276        esac
9277       fi
9278       ;;
9279
9280     os2*)
9281       hardcode_libdir_flag_spec='-L$libdir'
9282       hardcode_minus_L=yes
9283       allow_undefined_flag=unsupported
9284       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'
9285       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9286       ;;
9287
9288     osf3*)
9289       if test "$GCC" = yes; then
9290         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9291         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'
9292       else
9293         allow_undefined_flag=' -expect_unresolved \*'
9294         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'
9295       fi
9296       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9297       hardcode_libdir_separator=:
9298       ;;
9299
9300     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9301       if test "$GCC" = yes; then
9302         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9303         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'
9304         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9305       else
9306         allow_undefined_flag=' -expect_unresolved \*'
9307         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'
9308         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9309         $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'
9310
9311         # Both c and cxx compiler support -rpath directly
9312         hardcode_libdir_flag_spec='-rpath $libdir'
9313       fi
9314       hardcode_libdir_separator=:
9315       ;;
9316
9317     sco3.2v5*)
9318       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319       hardcode_shlibpath_var=no
9320       export_dynamic_flag_spec='${wl}-Bexport'
9321       runpath_var=LD_RUN_PATH
9322       hardcode_runpath_var=yes
9323       ;;
9324
9325     solaris*)
9326       no_undefined_flag=' -z text'
9327       if test "$GCC" = yes; then
9328         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9329         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9330           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9331       else
9332         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9334         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9335       fi
9336       hardcode_libdir_flag_spec='-R$libdir'
9337       hardcode_shlibpath_var=no
9338       case $host_os in
9339       solaris2.[0-5] | solaris2.[0-5].*) ;;
9340       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9341         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9342       esac
9343       link_all_deplibs=yes
9344       ;;
9345
9346     sunos4*)
9347       if test "x$host_vendor" = xsequent; then
9348         # Use $CC to link under sequent, because it throws in some extra .o
9349         # files that make .init and .fini sections work.
9350         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9351       else
9352         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9353       fi
9354       hardcode_libdir_flag_spec='-L$libdir'
9355       hardcode_direct=yes
9356       hardcode_minus_L=yes
9357       hardcode_shlibpath_var=no
9358       ;;
9359
9360     sysv4)
9361       case $host_vendor in
9362         sni)
9363           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364           hardcode_direct=yes # is this really true???
9365         ;;
9366         siemens)
9367           ## LD is ld it makes a PLAMLIB
9368           ## CC just makes a GrossModule.
9369           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9370           reload_cmds='$CC -r -o $output$reload_objs'
9371           hardcode_direct=no
9372         ;;
9373         motorola)
9374           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9375           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9376         ;;
9377       esac
9378       runpath_var='LD_RUN_PATH'
9379       hardcode_shlibpath_var=no
9380       ;;
9381
9382     sysv4.3*)
9383       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384       hardcode_shlibpath_var=no
9385       export_dynamic_flag_spec='-Bexport'
9386       ;;
9387
9388     sysv4*MP*)
9389       if test -d /usr/nec; then
9390         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391         hardcode_shlibpath_var=no
9392         runpath_var=LD_RUN_PATH
9393         hardcode_runpath_var=yes
9394         ld_shlibs=yes
9395       fi
9396       ;;
9397
9398     sysv4.2uw2*)
9399       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9400       hardcode_direct=yes
9401       hardcode_minus_L=no
9402       hardcode_shlibpath_var=no
9403       hardcode_runpath_var=yes
9404       runpath_var=LD_RUN_PATH
9405       ;;
9406
9407    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9408       no_undefined_flag='${wl}-z ${wl}text'
9409       if test "$GCC" = yes; then
9410         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9411       else
9412         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9413       fi
9414       runpath_var='LD_RUN_PATH'
9415       hardcode_shlibpath_var=no
9416       ;;
9417
9418     sysv5*)
9419       no_undefined_flag=' -z text'
9420       # $CC -shared without GNU ld will not create a library from C++
9421       # object files and a static libstdc++, better avoid it by now
9422       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9423       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9424                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9425       hardcode_libdir_flag_spec=
9426       hardcode_shlibpath_var=no
9427       runpath_var='LD_RUN_PATH'
9428       ;;
9429
9430     uts4*)
9431       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9432       hardcode_libdir_flag_spec='-L$libdir'
9433       hardcode_shlibpath_var=no
9434       ;;
9435
9436     *)
9437       ld_shlibs=no
9438       ;;
9439     esac
9440   fi
9441
9442 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9443 echo "${ECHO_T}$ld_shlibs" >&6
9444 test "$ld_shlibs" = no && can_build_shared=no
9445
9446 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9447 if test "$GCC" = yes; then
9448   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9449 fi
9450
9451 #
9452 # Do we need to explicitly link libc?
9453 #
9454 case "x$archive_cmds_need_lc" in
9455 x|xyes)
9456   # Assume -lc should be added
9457   archive_cmds_need_lc=yes
9458
9459   if test "$enable_shared" = yes && test "$GCC" = yes; then
9460     case $archive_cmds in
9461     *'~'*)
9462       # FIXME: we may have to deal with multi-command sequences.
9463       ;;
9464     '$CC '*)
9465       # Test whether the compiler implicitly links with -lc since on some
9466       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9467       # to ld, don't add -lc before -lgcc.
9468       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9469 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9470       $rm conftest*
9471       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9472
9473       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9474   (eval $ac_compile) 2>&5
9475   ac_status=$?
9476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477   (exit $ac_status); } 2>conftest.err; then
9478         soname=conftest
9479         lib=conftest
9480         libobjs=conftest.$ac_objext
9481         deplibs=
9482         wl=$lt_prog_compiler_wl
9483         compiler_flags=-v
9484         linker_flags=-v
9485         verstring=
9486         output_objdir=.
9487         libname=conftest
9488         lt_save_allow_undefined_flag=$allow_undefined_flag
9489         allow_undefined_flag=
9490         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9491   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); }
9495         then
9496           archive_cmds_need_lc=no
9497         else
9498           archive_cmds_need_lc=yes
9499         fi
9500         allow_undefined_flag=$lt_save_allow_undefined_flag
9501       else
9502         cat conftest.err 1>&5
9503       fi
9504       $rm conftest*
9505       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9506 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9507       ;;
9508     esac
9509   fi
9510   ;;
9511 esac
9512
9513 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9514 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9515 library_names_spec=
9516 libname_spec='lib$name'
9517 soname_spec=
9518 shrext_cmds=".so"
9519 postinstall_cmds=
9520 postuninstall_cmds=
9521 finish_cmds=
9522 finish_eval=
9523 shlibpath_var=
9524 shlibpath_overrides_runpath=unknown
9525 version_type=none
9526 dynamic_linker="$host_os ld.so"
9527 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9528 if test "$GCC" = yes; then
9529   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9530   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9531     # if the path contains ";" then we assume it to be the separator
9532     # otherwise default to the standard path separator (i.e. ":") - it is
9533     # assumed that no part of a normal pathname contains ";" but that should
9534     # okay in the real world where ";" in dirpaths is itself problematic.
9535     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9536   else
9537     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9538   fi
9539 else
9540   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9541 fi
9542 need_lib_prefix=unknown
9543 hardcode_into_libs=no
9544
9545 # when you set need_version to no, make sure it does not cause -set_version
9546 # flags to be left without arguments
9547 need_version=unknown
9548
9549 case $host_os in
9550 aix3*)
9551   version_type=linux
9552   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9553   shlibpath_var=LIBPATH
9554
9555   # AIX 3 has no versioning support, so we append a major version to the name.
9556   soname_spec='${libname}${release}${shared_ext}$major'
9557   ;;
9558
9559 aix4* | aix5*)
9560   version_type=linux
9561   need_lib_prefix=no
9562   need_version=no
9563   hardcode_into_libs=yes
9564   if test "$host_cpu" = ia64; then
9565     # AIX 5 supports IA64
9566     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9567     shlibpath_var=LD_LIBRARY_PATH
9568   else
9569     # With GCC up to 2.95.x, collect2 would create an import file
9570     # for dependence libraries.  The import file would start with
9571     # the line `#! .'.  This would cause the generated library to
9572     # depend on `.', always an invalid library.  This was fixed in
9573     # development snapshots of GCC prior to 3.0.
9574     case $host_os in
9575       aix4 | aix4.[01] | aix4.[01].*)
9576       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9577            echo ' yes '
9578            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9579         :
9580       else
9581         can_build_shared=no
9582       fi
9583       ;;
9584     esac
9585     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9586     # soname into executable. Probably we can add versioning support to
9587     # collect2, so additional links can be useful in future.
9588     if test "$aix_use_runtimelinking" = yes; then
9589       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9590       # instead of lib<name>.a to let people know that these are not
9591       # typical AIX shared libraries.
9592       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9593     else
9594       # We preserve .a as extension for shared libraries through AIX4.2
9595       # and later when we are not doing run time linking.
9596       library_names_spec='${libname}${release}.a $libname.a'
9597       soname_spec='${libname}${release}${shared_ext}$major'
9598     fi
9599     shlibpath_var=LIBPATH
9600   fi
9601   ;;
9602
9603 amigaos*)
9604   library_names_spec='$libname.ixlibrary $libname.a'
9605   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9606   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'
9607   ;;
9608
9609 beos*)
9610   library_names_spec='${libname}${shared_ext}'
9611   dynamic_linker="$host_os ld.so"
9612   shlibpath_var=LIBRARY_PATH
9613   ;;
9614
9615 bsdi4*)
9616   version_type=linux
9617   need_version=no
9618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9619   soname_spec='${libname}${release}${shared_ext}$major'
9620   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9621   shlibpath_var=LD_LIBRARY_PATH
9622   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9623   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9624   # the default ld.so.conf also contains /usr/contrib/lib and
9625   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9626   # libtool to hard-code these into programs
9627   ;;
9628
9629 cygwin* | mingw* | pw32*)
9630   version_type=windows
9631   shrext_cmds=".dll"
9632   need_version=no
9633   need_lib_prefix=no
9634
9635   case $GCC,$host_os in
9636   yes,cygwin* | yes,mingw* | yes,pw32*)
9637     library_names_spec='$libname.dll.a'
9638     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9639     postinstall_cmds='base_file=`basename \${file}`~
9640       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9641       dldir=$destdir/`dirname \$dlpath`~
9642       test -d \$dldir || mkdir -p \$dldir~
9643       $install_prog $dir/$dlname \$dldir/$dlname'
9644     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9645       dlpath=$dir/\$dldll~
9646        $rm \$dlpath'
9647     shlibpath_overrides_runpath=yes
9648
9649     case $host_os in
9650     cygwin*)
9651       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9652       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9653       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9654       ;;
9655     mingw*)
9656       # MinGW DLLs use traditional 'lib' prefix
9657       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9658       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9659       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9660         # It is most probably a Windows format PATH printed by
9661         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9662         # path with ; separators, and with drive letters. We can handle the
9663         # drive letters (cygwin fileutils understands them), so leave them,
9664         # especially as we might pass files found there to a mingw objdump,
9665         # which wouldn't understand a cygwinified path. Ahh.
9666         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9667       else
9668         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9669       fi
9670       ;;
9671     pw32*)
9672       # pw32 DLLs use 'pw' prefix rather than 'lib'
9673       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9674       ;;
9675     esac
9676     ;;
9677
9678   *)
9679     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9680     ;;
9681   esac
9682   dynamic_linker='Win32 ld.exe'
9683   # FIXME: first we should search . and the directory the executable is in
9684   shlibpath_var=PATH
9685   ;;
9686
9687 darwin* | rhapsody*)
9688   dynamic_linker="$host_os dyld"
9689   version_type=darwin
9690   need_lib_prefix=no
9691   need_version=no
9692   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9693   soname_spec='${libname}${release}${major}$shared_ext'
9694   shlibpath_overrides_runpath=yes
9695   shlibpath_var=DYLD_LIBRARY_PATH
9696   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9697   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9698   if test "$GCC" = yes; then
9699     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"`
9700   else
9701     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9702   fi
9703   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9704   ;;
9705
9706 dgux*)
9707   version_type=linux
9708   need_lib_prefix=no
9709   need_version=no
9710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9711   soname_spec='${libname}${release}${shared_ext}$major'
9712   shlibpath_var=LD_LIBRARY_PATH
9713   ;;
9714
9715 freebsd1*)
9716   dynamic_linker=no
9717   ;;
9718
9719 kfreebsd*-gnu)
9720   version_type=linux
9721   need_lib_prefix=no
9722   need_version=no
9723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9724   soname_spec='${libname}${release}${shared_ext}$major'
9725   shlibpath_var=LD_LIBRARY_PATH
9726   shlibpath_overrides_runpath=no
9727   hardcode_into_libs=yes
9728   dynamic_linker='GNU ld.so'
9729   ;;
9730
9731 freebsd*)
9732   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9733   version_type=freebsd-$objformat
9734   case $version_type in
9735     freebsd-elf*)
9736       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9737       need_version=no
9738       need_lib_prefix=no
9739       ;;
9740     freebsd-*)
9741       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9742       need_version=yes
9743       ;;
9744   esac
9745   shlibpath_var=LD_LIBRARY_PATH
9746   case $host_os in
9747   freebsd2*)
9748     shlibpath_overrides_runpath=yes
9749     ;;
9750   freebsd3.01* | freebsdelf3.01*)
9751     shlibpath_overrides_runpath=yes
9752     hardcode_into_libs=yes
9753     ;;
9754   *) # from 3.2 on
9755     shlibpath_overrides_runpath=no
9756     hardcode_into_libs=yes
9757     ;;
9758   esac
9759   ;;
9760
9761 gnu*)
9762   version_type=linux
9763   need_lib_prefix=no
9764   need_version=no
9765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9766   soname_spec='${libname}${release}${shared_ext}$major'
9767   shlibpath_var=LD_LIBRARY_PATH
9768   hardcode_into_libs=yes
9769   ;;
9770
9771 hpux9* | hpux10* | hpux11*)
9772   # Give a soname corresponding to the major version so that dld.sl refuses to
9773   # link against other versions.
9774   version_type=sunos
9775   need_lib_prefix=no
9776   need_version=no
9777   case "$host_cpu" in
9778   ia64*)
9779     shrext_cmds='.so'
9780     hardcode_into_libs=yes
9781     dynamic_linker="$host_os dld.so"
9782     shlibpath_var=LD_LIBRARY_PATH
9783     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9784     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785     soname_spec='${libname}${release}${shared_ext}$major'
9786     if test "X$HPUX_IA64_MODE" = X32; then
9787       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9788     else
9789       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9790     fi
9791     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9792     ;;
9793    hppa*64*)
9794      shrext_cmds='.sl'
9795      hardcode_into_libs=yes
9796      dynamic_linker="$host_os dld.sl"
9797      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9798      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9799      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800      soname_spec='${libname}${release}${shared_ext}$major'
9801      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9802      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9803      ;;
9804    *)
9805     shrext_cmds='.sl'
9806     dynamic_linker="$host_os dld.sl"
9807     shlibpath_var=SHLIB_PATH
9808     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9809     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9810     soname_spec='${libname}${release}${shared_ext}$major'
9811     ;;
9812   esac
9813   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9814   postinstall_cmds='chmod 555 $lib'
9815   ;;
9816
9817 irix5* | irix6* | nonstopux*)
9818   case $host_os in
9819     nonstopux*) version_type=nonstopux ;;
9820     *)
9821         if test "$lt_cv_prog_gnu_ld" = yes; then
9822                 version_type=linux
9823         else
9824                 version_type=irix
9825         fi ;;
9826   esac
9827   need_lib_prefix=no
9828   need_version=no
9829   soname_spec='${libname}${release}${shared_ext}$major'
9830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9831   case $host_os in
9832   irix5* | nonstopux*)
9833     libsuff= shlibsuff=
9834     ;;
9835   *)
9836     case $LD in # libtool.m4 will add one of these switches to LD
9837     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9838       libsuff= shlibsuff= libmagic=32-bit;;
9839     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9840       libsuff=32 shlibsuff=N32 libmagic=N32;;
9841     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9842       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9843     *) libsuff= shlibsuff= libmagic=never-match;;
9844     esac
9845     ;;
9846   esac
9847   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9848   shlibpath_overrides_runpath=no
9849   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9850   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9851   hardcode_into_libs=yes
9852   ;;
9853
9854 # No shared lib support for Linux oldld, aout, or coff.
9855 linux*oldld* | linux*aout* | linux*coff*)
9856   dynamic_linker=no
9857   ;;
9858
9859 # This must be Linux ELF.
9860 linux*)
9861   version_type=linux
9862   need_lib_prefix=no
9863   need_version=no
9864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865   soname_spec='${libname}${release}${shared_ext}$major'
9866   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9867   shlibpath_var=LD_LIBRARY_PATH
9868   shlibpath_overrides_runpath=no
9869   # This implies no fast_install, which is unacceptable.
9870   # Some rework will be needed to allow for fast_install
9871   # before this can be enabled.
9872   hardcode_into_libs=yes
9873
9874   # find out which ABI we are using
9875   libsuff=
9876   case "$host_cpu" in
9877   x86_64*|s390x*|powerpc64*)
9878     echo '#line 9878 "configure"' > conftest.$ac_ext
9879     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9880   (eval $ac_compile) 2>&5
9881   ac_status=$?
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); }; then
9884       case `/usr/bin/file conftest.$ac_objext` in
9885       *64-bit*)
9886         libsuff=64
9887         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9888         ;;
9889       esac
9890     fi
9891     rm -rf conftest*
9892     ;;
9893   esac
9894
9895   # Append ld.so.conf contents to the search path
9896   if test -f /etc/ld.so.conf; then
9897     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9898     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9899   fi
9900
9901   # We used to test for /lib/ld.so.1 and disable shared libraries on
9902   # powerpc, because MkLinux only supported shared libraries with the
9903   # GNU dynamic linker.  Since this was broken with cross compilers,
9904   # most powerpc-linux boxes support dynamic linking these days and
9905   # people can always --disable-shared, the test was removed, and we
9906   # assume the GNU/Linux dynamic linker is in use.
9907   dynamic_linker='GNU/Linux ld.so'
9908   ;;
9909
9910 knetbsd*-gnu)
9911   version_type=linux
9912   need_lib_prefix=no
9913   need_version=no
9914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9915   soname_spec='${libname}${release}${shared_ext}$major'
9916   shlibpath_var=LD_LIBRARY_PATH
9917   shlibpath_overrides_runpath=no
9918   hardcode_into_libs=yes
9919   dynamic_linker='GNU ld.so'
9920   ;;
9921
9922 netbsd*)
9923   version_type=sunos
9924   need_lib_prefix=no
9925   need_version=no
9926   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9928     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9929     dynamic_linker='NetBSD (a.out) ld.so'
9930   else
9931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9932     soname_spec='${libname}${release}${shared_ext}$major'
9933     dynamic_linker='NetBSD ld.elf_so'
9934   fi
9935   shlibpath_var=LD_LIBRARY_PATH
9936   shlibpath_overrides_runpath=yes
9937   hardcode_into_libs=yes
9938   ;;
9939
9940 newsos6)
9941   version_type=linux
9942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943   shlibpath_var=LD_LIBRARY_PATH
9944   shlibpath_overrides_runpath=yes
9945   ;;
9946
9947 nto-qnx*)
9948   version_type=linux
9949   need_lib_prefix=no
9950   need_version=no
9951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952   soname_spec='${libname}${release}${shared_ext}$major'
9953   shlibpath_var=LD_LIBRARY_PATH
9954   shlibpath_overrides_runpath=yes
9955   ;;
9956
9957 openbsd*)
9958   version_type=sunos
9959   need_lib_prefix=no
9960   need_version=yes
9961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9962   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9963   shlibpath_var=LD_LIBRARY_PATH
9964   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9965     case $host_os in
9966       openbsd2.[89] | openbsd2.[89].*)
9967         shlibpath_overrides_runpath=no
9968         ;;
9969       *)
9970         shlibpath_overrides_runpath=yes
9971         ;;
9972       esac
9973   else
9974     shlibpath_overrides_runpath=yes
9975   fi
9976   ;;
9977
9978 os2*)
9979   libname_spec='$name'
9980   shrext_cmds=".dll"
9981   need_lib_prefix=no
9982   library_names_spec='$libname${shared_ext} $libname.a'
9983   dynamic_linker='OS/2 ld.exe'
9984   shlibpath_var=LIBPATH
9985   ;;
9986
9987 osf3* | osf4* | osf5*)
9988   version_type=osf
9989   need_lib_prefix=no
9990   need_version=no
9991   soname_spec='${libname}${release}${shared_ext}$major'
9992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993   shlibpath_var=LD_LIBRARY_PATH
9994   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9995   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9996   ;;
9997
9998 sco3.2v5*)
9999   version_type=osf
10000   soname_spec='${libname}${release}${shared_ext}$major'
10001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002   shlibpath_var=LD_LIBRARY_PATH
10003   ;;
10004
10005 solaris*)
10006   version_type=linux
10007   need_lib_prefix=no
10008   need_version=no
10009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010   soname_spec='${libname}${release}${shared_ext}$major'
10011   shlibpath_var=LD_LIBRARY_PATH
10012   shlibpath_overrides_runpath=yes
10013   hardcode_into_libs=yes
10014   # ldd complains unless libraries are executable
10015   postinstall_cmds='chmod +x $lib'
10016   ;;
10017
10018 sunos4*)
10019   version_type=sunos
10020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10021   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10022   shlibpath_var=LD_LIBRARY_PATH
10023   shlibpath_overrides_runpath=yes
10024   if test "$with_gnu_ld" = yes; then
10025     need_lib_prefix=no
10026   fi
10027   need_version=yes
10028   ;;
10029
10030 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10031   version_type=linux
10032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10033   soname_spec='${libname}${release}${shared_ext}$major'
10034   shlibpath_var=LD_LIBRARY_PATH
10035   case $host_vendor in
10036     sni)
10037       shlibpath_overrides_runpath=no
10038       need_lib_prefix=no
10039       export_dynamic_flag_spec='${wl}-Blargedynsym'
10040       runpath_var=LD_RUN_PATH
10041       ;;
10042     siemens)
10043       need_lib_prefix=no
10044       ;;
10045     motorola)
10046       need_lib_prefix=no
10047       need_version=no
10048       shlibpath_overrides_runpath=no
10049       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10050       ;;
10051   esac
10052   ;;
10053
10054 sysv4*MP*)
10055   if test -d /usr/nec ;then
10056     version_type=linux
10057     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10058     soname_spec='$libname${shared_ext}.$major'
10059     shlibpath_var=LD_LIBRARY_PATH
10060   fi
10061   ;;
10062
10063 uts4*)
10064   version_type=linux
10065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066   soname_spec='${libname}${release}${shared_ext}$major'
10067   shlibpath_var=LD_LIBRARY_PATH
10068   ;;
10069
10070 *)
10071   dynamic_linker=no
10072   ;;
10073 esac
10074 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10075 echo "${ECHO_T}$dynamic_linker" >&6
10076 test "$dynamic_linker" = no && can_build_shared=no
10077
10078 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10079 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10080 hardcode_action=
10081 if test -n "$hardcode_libdir_flag_spec" || \
10082    test -n "$runpath_var " || \
10083    test "X$hardcode_automatic"="Xyes" ; then
10084
10085   # We can hardcode non-existant directories.
10086   if test "$hardcode_direct" != no &&
10087      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10088      # have to relink, otherwise we might link with an installed library
10089      # when we should be linking with a yet-to-be-installed one
10090      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10091      test "$hardcode_minus_L" != no; then
10092     # Linking always hardcodes the temporary library directory.
10093     hardcode_action=relink
10094   else
10095     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10096     hardcode_action=immediate
10097   fi
10098 else
10099   # We cannot hardcode anything, or else we can only hardcode existing
10100   # directories.
10101   hardcode_action=unsupported
10102 fi
10103 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10104 echo "${ECHO_T}$hardcode_action" >&6
10105
10106 if test "$hardcode_action" = relink; then
10107   # Fast installation is not supported
10108   enable_fast_install=no
10109 elif test "$shlibpath_overrides_runpath" = yes ||
10110      test "$enable_shared" = no; then
10111   # Fast installation is not necessary
10112   enable_fast_install=needless
10113 fi
10114
10115 striplib=
10116 old_striplib=
10117 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10118 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10119 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10120   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10121   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10122   echo "$as_me:$LINENO: result: yes" >&5
10123 echo "${ECHO_T}yes" >&6
10124 else
10125 # FIXME - insert some real tests, host_os isn't really good enough
10126   case $host_os in
10127    darwin*)
10128        if test -n "$STRIP" ; then
10129          striplib="$STRIP -x"
10130          echo "$as_me:$LINENO: result: yes" >&5
10131 echo "${ECHO_T}yes" >&6
10132        else
10133   echo "$as_me:$LINENO: result: no" >&5
10134 echo "${ECHO_T}no" >&6
10135 fi
10136        ;;
10137    *)
10138   echo "$as_me:$LINENO: result: no" >&5
10139 echo "${ECHO_T}no" >&6
10140     ;;
10141   esac
10142 fi
10143
10144 if test "x$enable_dlopen" != xyes; then
10145   enable_dlopen=unknown
10146   enable_dlopen_self=unknown
10147   enable_dlopen_self_static=unknown
10148 else
10149   lt_cv_dlopen=no
10150   lt_cv_dlopen_libs=
10151
10152   case $host_os in
10153   beos*)
10154     lt_cv_dlopen="load_add_on"
10155     lt_cv_dlopen_libs=
10156     lt_cv_dlopen_self=yes
10157     ;;
10158
10159   mingw* | pw32*)
10160     lt_cv_dlopen="LoadLibrary"
10161     lt_cv_dlopen_libs=
10162    ;;
10163
10164   cygwin*)
10165     lt_cv_dlopen="dlopen"
10166     lt_cv_dlopen_libs=
10167    ;;
10168
10169   darwin*)
10170   # if libdl is installed we need to link against it
10171     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10172 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10173 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10174   echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176   ac_check_lib_save_LIBS=$LIBS
10177 LIBS="-ldl  $LIBS"
10178 cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h.  */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h.  */
10184
10185 /* Override any gcc2 internal prototype to avoid an error.  */
10186 #ifdef __cplusplus
10187 extern "C"
10188 #endif
10189 /* We use char because int might match the return type of a gcc2
10190    builtin and then its argument prototype would still apply.  */
10191 char dlopen ();
10192 int
10193 main ()
10194 {
10195 dlopen ();
10196   ;
10197   return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202   (eval $ac_link) 2>conftest.er1
10203   ac_status=$?
10204   grep -v '^ *+' conftest.er1 >conftest.err
10205   rm -f conftest.er1
10206   cat conftest.err >&5
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); } &&
10209          { ac_try='test -z "$ac_c_werror_flag"
10210                          || test ! -s conftest.err'
10211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212   (eval $ac_try) 2>&5
10213   ac_status=$?
10214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215   (exit $ac_status); }; } &&
10216          { ac_try='test -s conftest$ac_exeext'
10217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218   (eval $ac_try) 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); }; }; then
10222   ac_cv_lib_dl_dlopen=yes
10223 else
10224   echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10226
10227 ac_cv_lib_dl_dlopen=no
10228 fi
10229 rm -f conftest.err conftest.$ac_objext \
10230       conftest$ac_exeext conftest.$ac_ext
10231 LIBS=$ac_check_lib_save_LIBS
10232 fi
10233 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10234 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10235 if test $ac_cv_lib_dl_dlopen = yes; then
10236   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10237 else
10238
10239     lt_cv_dlopen="dyld"
10240     lt_cv_dlopen_libs=
10241     lt_cv_dlopen_self=yes
10242
10243 fi
10244
10245    ;;
10246
10247   *)
10248     echo "$as_me:$LINENO: checking for shl_load" >&5
10249 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10250 if test "${ac_cv_func_shl_load+set}" = set; then
10251   echo $ECHO_N "(cached) $ECHO_C" >&6
10252 else
10253   cat >conftest.$ac_ext <<_ACEOF
10254 /* confdefs.h.  */
10255 _ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h.  */
10259 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10261 #define shl_load innocuous_shl_load
10262
10263 /* System header to define __stub macros and hopefully few prototypes,
10264     which can conflict with char shl_load (); below.
10265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10266     <limits.h> exists even on freestanding compilers.  */
10267
10268 #ifdef __STDC__
10269 # include <limits.h>
10270 #else
10271 # include <assert.h>
10272 #endif
10273
10274 #undef shl_load
10275
10276 /* Override any gcc2 internal prototype to avoid an error.  */
10277 #ifdef __cplusplus
10278 extern "C"
10279 {
10280 #endif
10281 /* We use char because int might match the return type of a gcc2
10282    builtin and then its argument prototype would still apply.  */
10283 char shl_load ();
10284 /* The GNU C library defines this for functions which it implements
10285     to always fail with ENOSYS.  Some functions are actually named
10286     something starting with __ and the normal name is an alias.  */
10287 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10288 choke me
10289 #else
10290 char (*f) () = shl_load;
10291 #endif
10292 #ifdef __cplusplus
10293 }
10294 #endif
10295
10296 int
10297 main ()
10298 {
10299 return f != shl_load;
10300   ;
10301   return 0;
10302 }
10303 _ACEOF
10304 rm -f conftest.$ac_objext conftest$ac_exeext
10305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10306   (eval $ac_link) 2>conftest.er1
10307   ac_status=$?
10308   grep -v '^ *+' conftest.er1 >conftest.err
10309   rm -f conftest.er1
10310   cat conftest.err >&5
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); } &&
10313          { ac_try='test -z "$ac_c_werror_flag"
10314                          || test ! -s conftest.err'
10315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316   (eval $ac_try) 2>&5
10317   ac_status=$?
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); }; } &&
10320          { ac_try='test -s conftest$ac_exeext'
10321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322   (eval $ac_try) 2>&5
10323   ac_status=$?
10324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325   (exit $ac_status); }; }; then
10326   ac_cv_func_shl_load=yes
10327 else
10328   echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10330
10331 ac_cv_func_shl_load=no
10332 fi
10333 rm -f conftest.err conftest.$ac_objext \
10334       conftest$ac_exeext conftest.$ac_ext
10335 fi
10336 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10337 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10338 if test $ac_cv_func_shl_load = yes; then
10339   lt_cv_dlopen="shl_load"
10340 else
10341   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10342 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10343 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10344   echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346   ac_check_lib_save_LIBS=$LIBS
10347 LIBS="-ldld  $LIBS"
10348 cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h.  */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h.  */
10354
10355 /* Override any gcc2 internal prototype to avoid an error.  */
10356 #ifdef __cplusplus
10357 extern "C"
10358 #endif
10359 /* We use char because int might match the return type of a gcc2
10360    builtin and then its argument prototype would still apply.  */
10361 char shl_load ();
10362 int
10363 main ()
10364 {
10365 shl_load ();
10366   ;
10367   return 0;
10368 }
10369 _ACEOF
10370 rm -f conftest.$ac_objext conftest$ac_exeext
10371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10372   (eval $ac_link) 2>conftest.er1
10373   ac_status=$?
10374   grep -v '^ *+' conftest.er1 >conftest.err
10375   rm -f conftest.er1
10376   cat conftest.err >&5
10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378   (exit $ac_status); } &&
10379          { ac_try='test -z "$ac_c_werror_flag"
10380                          || test ! -s conftest.err'
10381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382   (eval $ac_try) 2>&5
10383   ac_status=$?
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); }; } &&
10386          { ac_try='test -s conftest$ac_exeext'
10387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388   (eval $ac_try) 2>&5
10389   ac_status=$?
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); }; }; then
10392   ac_cv_lib_dld_shl_load=yes
10393 else
10394   echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10396
10397 ac_cv_lib_dld_shl_load=no
10398 fi
10399 rm -f conftest.err conftest.$ac_objext \
10400       conftest$ac_exeext conftest.$ac_ext
10401 LIBS=$ac_check_lib_save_LIBS
10402 fi
10403 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10404 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10405 if test $ac_cv_lib_dld_shl_load = yes; then
10406   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10407 else
10408   echo "$as_me:$LINENO: checking for dlopen" >&5
10409 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10410 if test "${ac_cv_func_dlopen+set}" = set; then
10411   echo $ECHO_N "(cached) $ECHO_C" >&6
10412 else
10413   cat >conftest.$ac_ext <<_ACEOF
10414 /* confdefs.h.  */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h.  */
10419 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10421 #define dlopen innocuous_dlopen
10422
10423 /* System header to define __stub macros and hopefully few prototypes,
10424     which can conflict with char dlopen (); below.
10425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10426     <limits.h> exists even on freestanding compilers.  */
10427
10428 #ifdef __STDC__
10429 # include <limits.h>
10430 #else
10431 # include <assert.h>
10432 #endif
10433
10434 #undef dlopen
10435
10436 /* Override any gcc2 internal prototype to avoid an error.  */
10437 #ifdef __cplusplus
10438 extern "C"
10439 {
10440 #endif
10441 /* We use char because int might match the return type of a gcc2
10442    builtin and then its argument prototype would still apply.  */
10443 char dlopen ();
10444 /* The GNU C library defines this for functions which it implements
10445     to always fail with ENOSYS.  Some functions are actually named
10446     something starting with __ and the normal name is an alias.  */
10447 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10448 choke me
10449 #else
10450 char (*f) () = dlopen;
10451 #endif
10452 #ifdef __cplusplus
10453 }
10454 #endif
10455
10456 int
10457 main ()
10458 {
10459 return f != dlopen;
10460   ;
10461   return 0;
10462 }
10463 _ACEOF
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466   (eval $ac_link) 2>conftest.er1
10467   ac_status=$?
10468   grep -v '^ *+' conftest.er1 >conftest.err
10469   rm -f conftest.er1
10470   cat conftest.err >&5
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); } &&
10473          { ac_try='test -z "$ac_c_werror_flag"
10474                          || test ! -s conftest.err'
10475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476   (eval $ac_try) 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); }; } &&
10480          { ac_try='test -s conftest$ac_exeext'
10481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482   (eval $ac_try) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); }; }; then
10486   ac_cv_func_dlopen=yes
10487 else
10488   echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10490
10491 ac_cv_func_dlopen=no
10492 fi
10493 rm -f conftest.err conftest.$ac_objext \
10494       conftest$ac_exeext conftest.$ac_ext
10495 fi
10496 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10497 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10498 if test $ac_cv_func_dlopen = yes; then
10499   lt_cv_dlopen="dlopen"
10500 else
10501   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10502 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10504   echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506   ac_check_lib_save_LIBS=$LIBS
10507 LIBS="-ldl  $LIBS"
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h.  */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h.  */
10514
10515 /* Override any gcc2 internal prototype to avoid an error.  */
10516 #ifdef __cplusplus
10517 extern "C"
10518 #endif
10519 /* We use char because int might match the return type of a gcc2
10520    builtin and then its argument prototype would still apply.  */
10521 char dlopen ();
10522 int
10523 main ()
10524 {
10525 dlopen ();
10526   ;
10527   return 0;
10528 }
10529 _ACEOF
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10532   (eval $ac_link) 2>conftest.er1
10533   ac_status=$?
10534   grep -v '^ *+' conftest.er1 >conftest.err
10535   rm -f conftest.er1
10536   cat conftest.err >&5
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } &&
10539          { ac_try='test -z "$ac_c_werror_flag"
10540                          || test ! -s conftest.err'
10541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542   (eval $ac_try) 2>&5
10543   ac_status=$?
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); }; } &&
10546          { ac_try='test -s conftest$ac_exeext'
10547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548   (eval $ac_try) 2>&5
10549   ac_status=$?
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); }; }; then
10552   ac_cv_lib_dl_dlopen=yes
10553 else
10554   echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10556
10557 ac_cv_lib_dl_dlopen=no
10558 fi
10559 rm -f conftest.err conftest.$ac_objext \
10560       conftest$ac_exeext conftest.$ac_ext
10561 LIBS=$ac_check_lib_save_LIBS
10562 fi
10563 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10564 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10565 if test $ac_cv_lib_dl_dlopen = yes; then
10566   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10567 else
10568   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10569 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10570 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10571   echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573   ac_check_lib_save_LIBS=$LIBS
10574 LIBS="-lsvld  $LIBS"
10575 cat >conftest.$ac_ext <<_ACEOF
10576 /* confdefs.h.  */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h.  */
10581
10582 /* Override any gcc2 internal prototype to avoid an error.  */
10583 #ifdef __cplusplus
10584 extern "C"
10585 #endif
10586 /* We use char because int might match the return type of a gcc2
10587    builtin and then its argument prototype would still apply.  */
10588 char dlopen ();
10589 int
10590 main ()
10591 {
10592 dlopen ();
10593   ;
10594   return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10599   (eval $ac_link) 2>conftest.er1
10600   ac_status=$?
10601   grep -v '^ *+' conftest.er1 >conftest.err
10602   rm -f conftest.er1
10603   cat conftest.err >&5
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); } &&
10606          { ac_try='test -z "$ac_c_werror_flag"
10607                          || test ! -s conftest.err'
10608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609   (eval $ac_try) 2>&5
10610   ac_status=$?
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); }; } &&
10613          { ac_try='test -s conftest$ac_exeext'
10614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615   (eval $ac_try) 2>&5
10616   ac_status=$?
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); }; }; then
10619   ac_cv_lib_svld_dlopen=yes
10620 else
10621   echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10623
10624 ac_cv_lib_svld_dlopen=no
10625 fi
10626 rm -f conftest.err conftest.$ac_objext \
10627       conftest$ac_exeext conftest.$ac_ext
10628 LIBS=$ac_check_lib_save_LIBS
10629 fi
10630 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10631 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10632 if test $ac_cv_lib_svld_dlopen = yes; then
10633   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10634 else
10635   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10636 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10637 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10638   echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640   ac_check_lib_save_LIBS=$LIBS
10641 LIBS="-ldld  $LIBS"
10642 cat >conftest.$ac_ext <<_ACEOF
10643 /* confdefs.h.  */
10644 _ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h.  */
10648
10649 /* Override any gcc2 internal prototype to avoid an error.  */
10650 #ifdef __cplusplus
10651 extern "C"
10652 #endif
10653 /* We use char because int might match the return type of a gcc2
10654    builtin and then its argument prototype would still apply.  */
10655 char dld_link ();
10656 int
10657 main ()
10658 {
10659 dld_link ();
10660   ;
10661   return 0;
10662 }
10663 _ACEOF
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666   (eval $ac_link) 2>conftest.er1
10667   ac_status=$?
10668   grep -v '^ *+' conftest.er1 >conftest.err
10669   rm -f conftest.er1
10670   cat conftest.err >&5
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); } &&
10673          { ac_try='test -z "$ac_c_werror_flag"
10674                          || test ! -s conftest.err'
10675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676   (eval $ac_try) 2>&5
10677   ac_status=$?
10678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); }; } &&
10680          { ac_try='test -s conftest$ac_exeext'
10681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682   (eval $ac_try) 2>&5
10683   ac_status=$?
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); }; }; then
10686   ac_cv_lib_dld_dld_link=yes
10687 else
10688   echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10690
10691 ac_cv_lib_dld_dld_link=no
10692 fi
10693 rm -f conftest.err conftest.$ac_objext \
10694       conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_check_lib_save_LIBS
10696 fi
10697 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10698 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10699 if test $ac_cv_lib_dld_dld_link = yes; then
10700   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10701 fi
10702
10703
10704 fi
10705
10706
10707 fi
10708
10709
10710 fi
10711
10712
10713 fi
10714
10715
10716 fi
10717
10718     ;;
10719   esac
10720
10721   if test "x$lt_cv_dlopen" != xno; then
10722     enable_dlopen=yes
10723   else
10724     enable_dlopen=no
10725   fi
10726
10727   case $lt_cv_dlopen in
10728   dlopen)
10729     save_CPPFLAGS="$CPPFLAGS"
10730     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10731
10732     save_LDFLAGS="$LDFLAGS"
10733     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10734
10735     save_LIBS="$LIBS"
10736     LIBS="$lt_cv_dlopen_libs $LIBS"
10737
10738     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10739 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10740 if test "${lt_cv_dlopen_self+set}" = set; then
10741   echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743           if test "$cross_compiling" = yes; then :
10744   lt_cv_dlopen_self=cross
10745 else
10746   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10747   lt_status=$lt_dlunknown
10748   cat > conftest.$ac_ext <<EOF
10749 #line 10749 "configure"
10750 #include "confdefs.h"
10751
10752 #if HAVE_DLFCN_H
10753 #include <dlfcn.h>
10754 #endif
10755
10756 #include <stdio.h>
10757
10758 #ifdef RTLD_GLOBAL
10759 #  define LT_DLGLOBAL           RTLD_GLOBAL
10760 #else
10761 #  ifdef DL_GLOBAL
10762 #    define LT_DLGLOBAL         DL_GLOBAL
10763 #  else
10764 #    define LT_DLGLOBAL         0
10765 #  endif
10766 #endif
10767
10768 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10769    find out it does not work in some platform. */
10770 #ifndef LT_DLLAZY_OR_NOW
10771 #  ifdef RTLD_LAZY
10772 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10773 #  else
10774 #    ifdef DL_LAZY
10775 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10776 #    else
10777 #      ifdef RTLD_NOW
10778 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10779 #      else
10780 #        ifdef DL_NOW
10781 #          define LT_DLLAZY_OR_NOW      DL_NOW
10782 #        else
10783 #          define LT_DLLAZY_OR_NOW      0
10784 #        endif
10785 #      endif
10786 #    endif
10787 #  endif
10788 #endif
10789
10790 #ifdef __cplusplus
10791 extern "C" void exit (int);
10792 #endif
10793
10794 void fnord() { int i=42;}
10795 int main ()
10796 {
10797   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10798   int status = $lt_dlunknown;
10799
10800   if (self)
10801     {
10802       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10803       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10804       /* dlclose (self); */
10805     }
10806
10807     exit (status);
10808 }
10809 EOF
10810   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10811   (eval $ac_link) 2>&5
10812   ac_status=$?
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10815     (./conftest; exit; ) 2>/dev/null
10816     lt_status=$?
10817     case x$lt_status in
10818       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10819       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10820       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10821     esac
10822   else :
10823     # compilation failed
10824     lt_cv_dlopen_self=no
10825   fi
10826 fi
10827 rm -fr conftest*
10828
10829
10830 fi
10831 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10832 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10833
10834     if test "x$lt_cv_dlopen_self" = xyes; then
10835       LDFLAGS="$LDFLAGS $link_static_flag"
10836       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10837 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10838 if test "${lt_cv_dlopen_self_static+set}" = set; then
10839   echo $ECHO_N "(cached) $ECHO_C" >&6
10840 else
10841           if test "$cross_compiling" = yes; then :
10842   lt_cv_dlopen_self_static=cross
10843 else
10844   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10845   lt_status=$lt_dlunknown
10846   cat > conftest.$ac_ext <<EOF
10847 #line 10847 "configure"
10848 #include "confdefs.h"
10849
10850 #if HAVE_DLFCN_H
10851 #include <dlfcn.h>
10852 #endif
10853
10854 #include <stdio.h>
10855
10856 #ifdef RTLD_GLOBAL
10857 #  define LT_DLGLOBAL           RTLD_GLOBAL
10858 #else
10859 #  ifdef DL_GLOBAL
10860 #    define LT_DLGLOBAL         DL_GLOBAL
10861 #  else
10862 #    define LT_DLGLOBAL         0
10863 #  endif
10864 #endif
10865
10866 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10867    find out it does not work in some platform. */
10868 #ifndef LT_DLLAZY_OR_NOW
10869 #  ifdef RTLD_LAZY
10870 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10871 #  else
10872 #    ifdef DL_LAZY
10873 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10874 #    else
10875 #      ifdef RTLD_NOW
10876 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10877 #      else
10878 #        ifdef DL_NOW
10879 #          define LT_DLLAZY_OR_NOW      DL_NOW
10880 #        else
10881 #          define LT_DLLAZY_OR_NOW      0
10882 #        endif
10883 #      endif
10884 #    endif
10885 #  endif
10886 #endif
10887
10888 #ifdef __cplusplus
10889 extern "C" void exit (int);
10890 #endif
10891
10892 void fnord() { int i=42;}
10893 int main ()
10894 {
10895   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10896   int status = $lt_dlunknown;
10897
10898   if (self)
10899     {
10900       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10901       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10902       /* dlclose (self); */
10903     }
10904
10905     exit (status);
10906 }
10907 EOF
10908   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909   (eval $ac_link) 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10913     (./conftest; exit; ) 2>/dev/null
10914     lt_status=$?
10915     case x$lt_status in
10916       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10917       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10918       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10919     esac
10920   else :
10921     # compilation failed
10922     lt_cv_dlopen_self_static=no
10923   fi
10924 fi
10925 rm -fr conftest*
10926
10927
10928 fi
10929 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10930 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10931     fi
10932
10933     CPPFLAGS="$save_CPPFLAGS"
10934     LDFLAGS="$save_LDFLAGS"
10935     LIBS="$save_LIBS"
10936     ;;
10937   esac
10938
10939   case $lt_cv_dlopen_self in
10940   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10941   *) enable_dlopen_self=unknown ;;
10942   esac
10943
10944   case $lt_cv_dlopen_self_static in
10945   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10946   *) enable_dlopen_self_static=unknown ;;
10947   esac
10948 fi
10949
10950
10951 # Report which librarie types wil actually be built
10952 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10953 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10954 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10955 echo "${ECHO_T}$can_build_shared" >&6
10956
10957 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10958 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10959 test "$can_build_shared" = "no" && enable_shared=no
10960
10961 # On AIX, shared libraries and static libraries use the same namespace, and
10962 # are all built from PIC.
10963 case "$host_os" in
10964 aix3*)
10965   test "$enable_shared" = yes && enable_static=no
10966   if test -n "$RANLIB"; then
10967     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10968     postinstall_cmds='$RANLIB $lib'
10969   fi
10970   ;;
10971
10972 aix4* | aix5*)
10973   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10974     test "$enable_shared" = yes && enable_static=no
10975   fi
10976   ;;
10977   darwin* | rhapsody*)
10978   if test "$GCC" = yes; then
10979     archive_cmds_need_lc=no
10980     case "$host_os" in
10981     rhapsody* | darwin1.[012])
10982       allow_undefined_flag='-undefined suppress'
10983       ;;
10984     *) # Darwin 1.3 on
10985       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10986         allow_undefined_flag='-flat_namespace -undefined suppress'
10987       else
10988         case ${MACOSX_DEPLOYMENT_TARGET} in
10989           10.[012])
10990             allow_undefined_flag='-flat_namespace -undefined suppress'
10991             ;;
10992           10.*)
10993             allow_undefined_flag='-undefined dynamic_lookup'
10994             ;;
10995         esac
10996       fi
10997       ;;
10998     esac
10999     output_verbose_link_cmd='echo'
11000     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
11001     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11002     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11003     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}'
11004     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}'
11005     hardcode_direct=no
11006     hardcode_automatic=yes
11007     hardcode_shlibpath_var=unsupported
11008     whole_archive_flag_spec='-all_load $convenience'
11009     link_all_deplibs=yes
11010   else
11011     ld_shlibs=no
11012   fi
11013     ;;
11014 esac
11015 echo "$as_me:$LINENO: result: $enable_shared" >&5
11016 echo "${ECHO_T}$enable_shared" >&6
11017
11018 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11019 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11020 # Make sure either enable_shared or enable_static is yes.
11021 test "$enable_shared" = yes || enable_static=yes
11022 echo "$as_me:$LINENO: result: $enable_static" >&5
11023 echo "${ECHO_T}$enable_static" >&6
11024
11025 # The else clause should only fire when bootstrapping the
11026 # libtool distribution, otherwise you forgot to ship ltmain.sh
11027 # with your package, and you will get complaints that there are
11028 # no rules to generate ltmain.sh.
11029 if test -f "$ltmain"; then
11030   # See if we are running on zsh, and set the options which allow our commands through
11031   # without removal of \ escapes.
11032   if test -n "${ZSH_VERSION+set}" ; then
11033     setopt NO_GLOB_SUBST
11034   fi
11035   # Now quote all the things that may contain metacharacters while being
11036   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11037   # variables and quote the copies for generation of the libtool script.
11038   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11039     SED SHELL STRIP \
11040     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11041     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11042     deplibs_check_method reload_flag reload_cmds need_locks \
11043     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11044     lt_cv_sys_global_symbol_to_c_name_address \
11045     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11046     old_postinstall_cmds old_postuninstall_cmds \
11047     compiler \
11048     CC \
11049     LD \
11050     lt_prog_compiler_wl \
11051     lt_prog_compiler_pic \
11052     lt_prog_compiler_static \
11053     lt_prog_compiler_no_builtin_flag \
11054     export_dynamic_flag_spec \
11055     thread_safe_flag_spec \
11056     whole_archive_flag_spec \
11057     enable_shared_with_static_runtimes \
11058     old_archive_cmds \
11059     old_archive_from_new_cmds \
11060     predep_objects \
11061     postdep_objects \
11062     predeps \
11063     postdeps \
11064     compiler_lib_search_path \
11065     archive_cmds \
11066     archive_expsym_cmds \
11067     postinstall_cmds \
11068     postuninstall_cmds \
11069     old_archive_from_expsyms_cmds \
11070     allow_undefined_flag \
11071     no_undefined_flag \
11072     export_symbols_cmds \
11073     hardcode_libdir_flag_spec \
11074     hardcode_libdir_flag_spec_ld \
11075     hardcode_libdir_separator \
11076     hardcode_automatic \
11077     module_cmds \
11078     module_expsym_cmds \
11079     lt_cv_prog_compiler_c_o \
11080     exclude_expsyms \
11081     include_expsyms; do
11082
11083     case $var in
11084     old_archive_cmds | \
11085     old_archive_from_new_cmds | \
11086     archive_cmds | \
11087     archive_expsym_cmds | \
11088     module_cmds | \
11089     module_expsym_cmds | \
11090     old_archive_from_expsyms_cmds | \
11091     export_symbols_cmds | \
11092     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11093     postinstall_cmds | postuninstall_cmds | \
11094     old_postinstall_cmds | old_postuninstall_cmds | \
11095     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11096       # Double-quote double-evaled strings.
11097       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11098       ;;
11099     *)
11100       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11101       ;;
11102     esac
11103   done
11104
11105   case $lt_echo in
11106   *'\$0 --fallback-echo"')
11107     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11108     ;;
11109   esac
11110
11111 cfgfile="${ofile}T"
11112   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11113   $rm -f "$cfgfile"
11114   { echo "$as_me:$LINENO: creating $ofile" >&5
11115 echo "$as_me: creating $ofile" >&6;}
11116
11117   cat <<__EOF__ >> "$cfgfile"
11118 #! $SHELL
11119
11120 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11121 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11122 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11123 #
11124 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11125 # Free Software Foundation, Inc.
11126 #
11127 # This file is part of GNU Libtool:
11128 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11129 #
11130 # This program is free software; you can redistribute it and/or modify
11131 # it under the terms of the GNU General Public License as published by
11132 # the Free Software Foundation; either version 2 of the License, or
11133 # (at your option) any later version.
11134 #
11135 # This program is distributed in the hope that it will be useful, but
11136 # WITHOUT ANY WARRANTY; without even the implied warranty of
11137 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11138 # General Public License for more details.
11139 #
11140 # You should have received a copy of the GNU General Public License
11141 # along with this program; if not, write to the Free Software
11142 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11143 #
11144 # As a special exception to the GNU General Public License, if you
11145 # distribute this file as part of a program that contains a
11146 # configuration script generated by Autoconf, you may include it under
11147 # the same distribution terms that you use for the rest of that program.
11148
11149 # A sed program that does not truncate output.
11150 SED=$lt_SED
11151
11152 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11153 Xsed="$SED -e s/^X//"
11154
11155 # The HP-UX ksh and POSIX shell print the target directory to stdout
11156 # if CDPATH is set.
11157 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11158
11159 # The names of the tagged configurations supported by this script.
11160 available_tags=
11161
11162 # ### BEGIN LIBTOOL CONFIG
11163
11164 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11165
11166 # Shell to use when invoking shell scripts.
11167 SHELL=$lt_SHELL
11168
11169 # Whether or not to build shared libraries.
11170 build_libtool_libs=$enable_shared
11171
11172 # Whether or not to build static libraries.
11173 build_old_libs=$enable_static
11174
11175 # Whether or not to add -lc for building shared libraries.
11176 build_libtool_need_lc=$archive_cmds_need_lc
11177
11178 # Whether or not to disallow shared libs when runtime libs are static
11179 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11180
11181 # Whether or not to optimize for fast installation.
11182 fast_install=$enable_fast_install
11183
11184 # The host system.
11185 host_alias=$host_alias
11186 host=$host
11187
11188 # An echo program that does not interpret backslashes.
11189 echo=$lt_echo
11190
11191 # The archiver.
11192 AR=$lt_AR
11193 AR_FLAGS=$lt_AR_FLAGS
11194
11195 # A C compiler.
11196 LTCC=$lt_LTCC
11197
11198 # A language-specific compiler.
11199 CC=$lt_compiler
11200
11201 # Is the compiler the GNU C compiler?
11202 with_gcc=$GCC
11203
11204 # An ERE matcher.
11205 EGREP=$lt_EGREP
11206
11207 # The linker used to build libraries.
11208 LD=$lt_LD
11209
11210 # Whether we need hard or soft links.
11211 LN_S=$lt_LN_S
11212
11213 # A BSD-compatible nm program.
11214 NM=$lt_NM
11215
11216 # A symbol stripping program
11217 STRIP=$lt_STRIP
11218
11219 # Used to examine libraries when file_magic_cmd begins "file"
11220 MAGIC_CMD=$MAGIC_CMD
11221
11222 # Used on cygwin: DLL creation program.
11223 DLLTOOL="$DLLTOOL"
11224
11225 # Used on cygwin: object dumper.
11226 OBJDUMP="$OBJDUMP"
11227
11228 # Used on cygwin: assembler.
11229 AS="$AS"
11230
11231 # The name of the directory that contains temporary libtool files.
11232 objdir=$objdir
11233
11234 # How to create reloadable object files.
11235 reload_flag=$lt_reload_flag
11236 reload_cmds=$lt_reload_cmds
11237
11238 # How to pass a linker flag through the compiler.
11239 wl=$lt_lt_prog_compiler_wl
11240
11241 # Object file suffix (normally "o").
11242 objext="$ac_objext"
11243
11244 # Old archive suffix (normally "a").
11245 libext="$libext"
11246
11247 # Shared library suffix (normally ".so").
11248 shrext_cmds='$shrext_cmds'
11249
11250 # Executable file suffix (normally "").
11251 exeext="$exeext"
11252
11253 # Additional compiler flags for building library objects.
11254 pic_flag=$lt_lt_prog_compiler_pic
11255 pic_mode=$pic_mode
11256
11257 # What is the maximum length of a command?
11258 max_cmd_len=$lt_cv_sys_max_cmd_len
11259
11260 # Does compiler simultaneously support -c and -o options?
11261 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11262
11263 # Must we lock files when doing compilation ?
11264 need_locks=$lt_need_locks
11265
11266 # Do we need the lib prefix for modules?
11267 need_lib_prefix=$need_lib_prefix
11268
11269 # Do we need a version for libraries?
11270 need_version=$need_version
11271
11272 # Whether dlopen is supported.
11273 dlopen_support=$enable_dlopen
11274
11275 # Whether dlopen of programs is supported.
11276 dlopen_self=$enable_dlopen_self
11277
11278 # Whether dlopen of statically linked programs is supported.
11279 dlopen_self_static=$enable_dlopen_self_static
11280
11281 # Compiler flag to prevent dynamic linking.
11282 link_static_flag=$lt_lt_prog_compiler_static
11283
11284 # Compiler flag to turn off builtin functions.
11285 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11286
11287 # Compiler flag to allow reflexive dlopens.
11288 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11289
11290 # Compiler flag to generate shared objects directly from archives.
11291 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11292
11293 # Compiler flag to generate thread-safe objects.
11294 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11295
11296 # Library versioning type.
11297 version_type=$version_type
11298
11299 # Format of library name prefix.
11300 libname_spec=$lt_libname_spec
11301
11302 # List of archive names.  First name is the real one, the rest are links.
11303 # The last name is the one that the linker finds with -lNAME.
11304 library_names_spec=$lt_library_names_spec
11305
11306 # The coded name of the library, if different from the real name.
11307 soname_spec=$lt_soname_spec
11308
11309 # Commands used to build and install an old-style archive.
11310 RANLIB=$lt_RANLIB
11311 old_archive_cmds=$lt_old_archive_cmds
11312 old_postinstall_cmds=$lt_old_postinstall_cmds
11313 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11314
11315 # Create an old-style archive from a shared archive.
11316 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11317
11318 # Create a temporary old-style archive to link instead of a shared archive.
11319 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11320
11321 # Commands used to build and install a shared archive.
11322 archive_cmds=$lt_archive_cmds
11323 archive_expsym_cmds=$lt_archive_expsym_cmds
11324 postinstall_cmds=$lt_postinstall_cmds
11325 postuninstall_cmds=$lt_postuninstall_cmds
11326
11327 # Commands used to build a loadable module (assumed same as above if empty)
11328 module_cmds=$lt_module_cmds
11329 module_expsym_cmds=$lt_module_expsym_cmds
11330
11331 # Commands to strip libraries.
11332 old_striplib=$lt_old_striplib
11333 striplib=$lt_striplib
11334
11335 # Dependencies to place before the objects being linked to create a
11336 # shared library.
11337 predep_objects=$lt_predep_objects
11338
11339 # Dependencies to place after the objects being linked to create a
11340 # shared library.
11341 postdep_objects=$lt_postdep_objects
11342
11343 # Dependencies to place before the objects being linked to create a
11344 # shared library.
11345 predeps=$lt_predeps
11346
11347 # Dependencies to place after the objects being linked to create a
11348 # shared library.
11349 postdeps=$lt_postdeps
11350
11351 # The library search path used internally by the compiler when linking
11352 # a shared library.
11353 compiler_lib_search_path=$lt_compiler_lib_search_path
11354
11355 # Method to check whether dependent libraries are shared objects.
11356 deplibs_check_method=$lt_deplibs_check_method
11357
11358 # Command to use when deplibs_check_method == file_magic.
11359 file_magic_cmd=$lt_file_magic_cmd
11360
11361 # Flag that allows shared libraries with undefined symbols to be built.
11362 allow_undefined_flag=$lt_allow_undefined_flag
11363
11364 # Flag that forces no undefined symbols.
11365 no_undefined_flag=$lt_no_undefined_flag
11366
11367 # Commands used to finish a libtool library installation in a directory.
11368 finish_cmds=$lt_finish_cmds
11369
11370 # Same as above, but a single script fragment to be evaled but not shown.
11371 finish_eval=$lt_finish_eval
11372
11373 # Take the output of nm and produce a listing of raw symbols and C names.
11374 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11375
11376 # Transform the output of nm in a proper C declaration
11377 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11378
11379 # Transform the output of nm in a C name address pair
11380 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11381
11382 # This is the shared library runtime path variable.
11383 runpath_var=$runpath_var
11384
11385 # This is the shared library path variable.
11386 shlibpath_var=$shlibpath_var
11387
11388 # Is shlibpath searched before the hard-coded library search path?
11389 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11390
11391 # How to hardcode a shared library path into an executable.
11392 hardcode_action=$hardcode_action
11393
11394 # Whether we should hardcode library paths into libraries.
11395 hardcode_into_libs=$hardcode_into_libs
11396
11397 # Flag to hardcode \$libdir into a binary during linking.
11398 # This must work even if \$libdir does not exist.
11399 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11400
11401 # If ld is used when linking, flag to hardcode \$libdir into
11402 # a binary during linking. This must work even if \$libdir does
11403 # not exist.
11404 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11405
11406 # Whether we need a single -rpath flag with a separated argument.
11407 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11408
11409 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11410 # resulting binary.
11411 hardcode_direct=$hardcode_direct
11412
11413 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11414 # resulting binary.
11415 hardcode_minus_L=$hardcode_minus_L
11416
11417 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11418 # the resulting binary.
11419 hardcode_shlibpath_var=$hardcode_shlibpath_var
11420
11421 # Set to yes if building a shared library automatically hardcodes DIR into the library
11422 # and all subsequent libraries and executables linked against it.
11423 hardcode_automatic=$hardcode_automatic
11424
11425 # Variables whose values should be saved in libtool wrapper scripts and
11426 # restored at relink time.
11427 variables_saved_for_relink="$variables_saved_for_relink"
11428
11429 # Whether libtool must link a program against all its dependency libraries.
11430 link_all_deplibs=$link_all_deplibs
11431
11432 # Compile-time system search path for libraries
11433 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11434
11435 # Run-time system search path for libraries
11436 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11437
11438 # Fix the shell variable \$srcfile for the compiler.
11439 fix_srcfile_path="$fix_srcfile_path"
11440
11441 # Set to yes if exported symbols are required.
11442 always_export_symbols=$always_export_symbols
11443
11444 # The commands to list exported symbols.
11445 export_symbols_cmds=$lt_export_symbols_cmds
11446
11447 # The commands to extract the exported symbol list from a shared archive.
11448 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11449
11450 # Symbols that should not be listed in the preloaded symbols.
11451 exclude_expsyms=$lt_exclude_expsyms
11452
11453 # Symbols that must always be exported.
11454 include_expsyms=$lt_include_expsyms
11455
11456 # ### END LIBTOOL CONFIG
11457
11458 __EOF__
11459
11460
11461   case $host_os in
11462   aix3*)
11463     cat <<\EOF >> "$cfgfile"
11464
11465 # AIX sometimes has problems with the GCC collect2 program.  For some
11466 # reason, if we set the COLLECT_NAMES environment variable, the problems
11467 # vanish in a puff of smoke.
11468 if test "X${COLLECT_NAMES+set}" != Xset; then
11469   COLLECT_NAMES=
11470   export COLLECT_NAMES
11471 fi
11472 EOF
11473     ;;
11474   esac
11475
11476   # We use sed instead of cat because bash on DJGPP gets confused if
11477   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11478   # text mode, it properly converts lines to CR/LF.  This bash problem
11479   # is reportedly fixed, but why not run on old versions too?
11480   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11481
11482   mv -f "$cfgfile" "$ofile" || \
11483     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11484   chmod +x "$ofile"
11485
11486 else
11487   # If there is no Makefile yet, we rely on a make rule to execute
11488   # `config.status --recheck' to rerun these tests and create the
11489   # libtool script then.
11490   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11491   if test -f "$ltmain_in"; then
11492     test -f Makefile && make "$ltmain"
11493   fi
11494 fi
11495
11496
11497 ac_ext=c
11498 ac_cpp='$CPP $CPPFLAGS'
11499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11502
11503 CC="$lt_save_CC"
11504
11505
11506 # Check whether --with-tags or --without-tags was given.
11507 if test "${with_tags+set}" = set; then
11508   withval="$with_tags"
11509   tagnames="$withval"
11510 fi;
11511
11512 if test -f "$ltmain" && test -n "$tagnames"; then
11513   if test ! -f "${ofile}"; then
11514     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11515 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11516   fi
11517
11518   if test -z "$LTCC"; then
11519     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11520     if test -z "$LTCC"; then
11521       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11522 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11523     else
11524       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11525 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11526     fi
11527   fi
11528
11529   # Extract list of available tagged configurations in $ofile.
11530   # Note that this assumes the entire list is on one line.
11531   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11532
11533   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11534   for tagname in $tagnames; do
11535     IFS="$lt_save_ifs"
11536     # Check whether tagname contains only valid characters
11537     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11538     "") ;;
11539     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11540 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11541    { (exit 1); exit 1; }; }
11542         ;;
11543     esac
11544
11545     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11546     then
11547       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11548 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11549    { (exit 1); exit 1; }; }
11550     fi
11551
11552     # Update the list of available tags.
11553     if test -n "$tagname"; then
11554       echo appending configuration tag \"$tagname\" to $ofile
11555
11556       case $tagname in
11557       CXX)
11558         if test -n "$CXX" && test "X$CXX" != "Xno"; then
11559           ac_ext=cc
11560 ac_cpp='$CXXCPP $CPPFLAGS'
11561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11564
11565
11566
11567
11568 archive_cmds_need_lc_CXX=no
11569 allow_undefined_flag_CXX=
11570 always_export_symbols_CXX=no
11571 archive_expsym_cmds_CXX=
11572 export_dynamic_flag_spec_CXX=
11573 hardcode_direct_CXX=no
11574 hardcode_libdir_flag_spec_CXX=
11575 hardcode_libdir_flag_spec_ld_CXX=
11576 hardcode_libdir_separator_CXX=
11577 hardcode_minus_L_CXX=no
11578 hardcode_automatic_CXX=no
11579 module_cmds_CXX=
11580 module_expsym_cmds_CXX=
11581 link_all_deplibs_CXX=unknown
11582 old_archive_cmds_CXX=$old_archive_cmds
11583 no_undefined_flag_CXX=
11584 whole_archive_flag_spec_CXX=
11585 enable_shared_with_static_runtimes_CXX=no
11586
11587 # Dependencies to place before and after the object being linked:
11588 predep_objects_CXX=
11589 postdep_objects_CXX=
11590 predeps_CXX=
11591 postdeps_CXX=
11592 compiler_lib_search_path_CXX=
11593
11594 # Source file extension for C++ test sources.
11595 ac_ext=cc
11596
11597 # Object file extension for compiled C++ test sources.
11598 objext=o
11599 objext_CXX=$objext
11600
11601 # Code to be used in simple compile tests
11602 lt_simple_compile_test_code="int some_variable = 0;\n"
11603
11604 # Code to be used in simple link tests
11605 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11606
11607 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11608
11609 # If no C compiler was specified, use CC.
11610 LTCC=${LTCC-"$CC"}
11611
11612 # Allow CC to be a program name with arguments.
11613 compiler=$CC
11614
11615
11616 # Allow CC to be a program name with arguments.
11617 lt_save_CC=$CC
11618 lt_save_LD=$LD
11619 lt_save_GCC=$GCC
11620 GCC=$GXX
11621 lt_save_with_gnu_ld=$with_gnu_ld
11622 lt_save_path_LD=$lt_cv_path_LD
11623 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11624   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11625 else
11626   unset lt_cv_prog_gnu_ld
11627 fi
11628 if test -n "${lt_cv_path_LDCXX+set}"; then
11629   lt_cv_path_LD=$lt_cv_path_LDCXX
11630 else
11631   unset lt_cv_path_LD
11632 fi
11633 test -z "${LDCXX+set}" || LD=$LDCXX
11634 CC=${CXX-"c++"}
11635 compiler=$CC
11636 compiler_CXX=$CC
11637 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11638
11639 # We don't want -fno-exception wen compiling C++ code, so set the
11640 # no_builtin_flag separately
11641 if test "$GXX" = yes; then
11642   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11643 else
11644   lt_prog_compiler_no_builtin_flag_CXX=
11645 fi
11646
11647 if test "$GXX" = yes; then
11648   # Set up default GNU C++ configuration
11649
11650
11651 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11652 if test "${with_gnu_ld+set}" = set; then
11653   withval="$with_gnu_ld"
11654   test "$withval" = no || with_gnu_ld=yes
11655 else
11656   with_gnu_ld=no
11657 fi;
11658 ac_prog=ld
11659 if test "$GCC" = yes; then
11660   # Check if gcc -print-prog-name=ld gives a path.
11661   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11662 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11663   case $host in
11664   *-*-mingw*)
11665     # gcc leaves a trailing carriage return which upsets mingw
11666     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11667   *)
11668     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11669   esac
11670   case $ac_prog in
11671     # Accept absolute paths.
11672     [\\/]* | ?:[\\/]*)
11673       re_direlt='/[^/][^/]*/\.\./'
11674       # Canonicalize the pathname of ld
11675       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11676       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11677         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11678       done
11679       test -z "$LD" && LD="$ac_prog"
11680       ;;
11681   "")
11682     # If it fails, then pretend we aren't using GCC.
11683     ac_prog=ld
11684     ;;
11685   *)
11686     # If it is relative, then search for the first ld in PATH.
11687     with_gnu_ld=unknown
11688     ;;
11689   esac
11690 elif test "$with_gnu_ld" = yes; then
11691   echo "$as_me:$LINENO: checking for GNU ld" >&5
11692 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11693 else
11694   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11695 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11696 fi
11697 if test "${lt_cv_path_LD+set}" = set; then
11698   echo $ECHO_N "(cached) $ECHO_C" >&6
11699 else
11700   if test -z "$LD"; then
11701   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11702   for ac_dir in $PATH; do
11703     IFS="$lt_save_ifs"
11704     test -z "$ac_dir" && ac_dir=.
11705     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11706       lt_cv_path_LD="$ac_dir/$ac_prog"
11707       # Check to see if the program is GNU ld.  I'd rather use --version,
11708       # but apparently some GNU ld's only accept -v.
11709       # Break only if it was the GNU/non-GNU ld that we prefer.
11710       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11711       *GNU* | *'with BFD'*)
11712         test "$with_gnu_ld" != no && break
11713         ;;
11714       *)
11715         test "$with_gnu_ld" != yes && break
11716         ;;
11717       esac
11718     fi
11719   done
11720   IFS="$lt_save_ifs"
11721 else
11722   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11723 fi
11724 fi
11725
11726 LD="$lt_cv_path_LD"
11727 if test -n "$LD"; then
11728   echo "$as_me:$LINENO: result: $LD" >&5
11729 echo "${ECHO_T}$LD" >&6
11730 else
11731   echo "$as_me:$LINENO: result: no" >&5
11732 echo "${ECHO_T}no" >&6
11733 fi
11734 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11735 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11736    { (exit 1); exit 1; }; }
11737 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11738 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11739 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11740   echo $ECHO_N "(cached) $ECHO_C" >&6
11741 else
11742   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11743 case `$LD -v 2>&1 </dev/null` in
11744 *GNU* | *'with BFD'*)
11745   lt_cv_prog_gnu_ld=yes
11746   ;;
11747 *)
11748   lt_cv_prog_gnu_ld=no
11749   ;;
11750 esac
11751 fi
11752 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11753 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11754 with_gnu_ld=$lt_cv_prog_gnu_ld
11755
11756
11757
11758   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11759   # archiving commands below assume that GNU ld is being used.
11760   if test "$with_gnu_ld" = yes; then
11761     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11762     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'
11763
11764     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11765     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11766
11767     # If archive_cmds runs LD, not CC, wlarc should be empty
11768     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11769     #     investigate it a little bit more. (MM)
11770     wlarc='${wl}'
11771
11772     # ancient GNU ld didn't support --whole-archive et. al.
11773     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11774         grep 'no-whole-archive' > /dev/null; then
11775       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11776     else
11777       whole_archive_flag_spec_CXX=
11778     fi
11779   else
11780     with_gnu_ld=no
11781     wlarc=
11782
11783     # A generic and very simple default shared library creation
11784     # command for GNU C++ for the case where it uses the native
11785     # linker, instead of GNU ld.  If possible, this setting should
11786     # overridden to take advantage of the native linker features on
11787     # the platform it is being used on.
11788     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11789   fi
11790
11791   # Commands to make compiler produce verbose output that lists
11792   # what "hidden" libraries, object files and flags are used when
11793   # linking a shared library.
11794   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11795
11796 else
11797   GXX=no
11798   with_gnu_ld=no
11799   wlarc=
11800 fi
11801
11802 # PORTME: fill in a description of your system's C++ link characteristics
11803 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11804 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11805 ld_shlibs_CXX=yes
11806 case $host_os in
11807   aix3*)
11808     # FIXME: insert proper C++ library support
11809     ld_shlibs_CXX=no
11810     ;;
11811   aix4* | aix5*)
11812     if test "$host_cpu" = ia64; then
11813       # On IA64, the linker does run time linking by default, so we don't
11814       # have to do anything special.
11815       aix_use_runtimelinking=no
11816       exp_sym_flag='-Bexport'
11817       no_entry_flag=""
11818     else
11819       aix_use_runtimelinking=no
11820
11821       # Test if we are trying to use run time linking or normal
11822       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11823       # need to do runtime linking.
11824       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11825         for ld_flag in $LDFLAGS; do
11826           case $ld_flag in
11827           *-brtl*)
11828             aix_use_runtimelinking=yes
11829             break
11830             ;;
11831           esac
11832         done
11833       esac
11834
11835       exp_sym_flag='-bexport'
11836       no_entry_flag='-bnoentry'
11837     fi
11838
11839     # When large executables or shared objects are built, AIX ld can
11840     # have problems creating the table of contents.  If linking a library
11841     # or program results in "error TOC overflow" add -mminimal-toc to
11842     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11843     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11844
11845     archive_cmds_CXX=''
11846     hardcode_direct_CXX=yes
11847     hardcode_libdir_separator_CXX=':'
11848     link_all_deplibs_CXX=yes
11849
11850     if test "$GXX" = yes; then
11851       case $host_os in aix4.012|aix4.012.*)
11852       # We only want to do this on AIX 4.2 and lower, the check
11853       # below for broken collect2 doesn't work under 4.3+
11854         collect2name=`${CC} -print-prog-name=collect2`
11855         if test -f "$collect2name" && \
11856            strings "$collect2name" | grep resolve_lib_name >/dev/null
11857         then
11858           # We have reworked collect2
11859           hardcode_direct_CXX=yes
11860         else
11861           # We have old collect2
11862           hardcode_direct_CXX=unsupported
11863           # It fails to find uninstalled libraries when the uninstalled
11864           # path is not listed in the libpath.  Setting hardcode_minus_L
11865           # to unsupported forces relinking
11866           hardcode_minus_L_CXX=yes
11867           hardcode_libdir_flag_spec_CXX='-L$libdir'
11868           hardcode_libdir_separator_CXX=
11869         fi
11870       esac
11871       shared_flag='-shared'
11872     else
11873       # not using gcc
11874       if test "$host_cpu" = ia64; then
11875         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11876         # chokes on -Wl,-G. The following line is correct:
11877         shared_flag='-G'
11878       else
11879         if test "$aix_use_runtimelinking" = yes; then
11880           shared_flag='${wl}-G'
11881         else
11882           shared_flag='${wl}-bM:SRE'
11883         fi
11884       fi
11885     fi
11886
11887     # It seems that -bexpall does not export symbols beginning with
11888     # underscore (_), so it is better to generate a list of symbols to export.
11889     always_export_symbols_CXX=yes
11890     if test "$aix_use_runtimelinking" = yes; then
11891       # Warning - without using the other runtime loading flags (-brtl),
11892       # -berok will link without error, but may produce a broken library.
11893       allow_undefined_flag_CXX='-berok'
11894       # Determine the default libpath from the value encoded in an empty executable.
11895       cat >conftest.$ac_ext <<_ACEOF
11896 /* confdefs.h.  */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h.  */
11901
11902 int
11903 main ()
11904 {
11905
11906   ;
11907   return 0;
11908 }
11909 _ACEOF
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11912   (eval $ac_link) 2>conftest.er1
11913   ac_status=$?
11914   grep -v '^ *+' conftest.er1 >conftest.err
11915   rm -f conftest.er1
11916   cat conftest.err >&5
11917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918   (exit $ac_status); } &&
11919          { ac_try='test -z "$ac_cxx_werror_flag"
11920                          || test ! -s conftest.err'
11921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922   (eval $ac_try) 2>&5
11923   ac_status=$?
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); }; } &&
11926          { ac_try='test -s conftest$ac_exeext'
11927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928   (eval $ac_try) 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); }; }; then
11932
11933 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11934 }'`
11935 # Check for a 64-bit object if we didn't find anything.
11936 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; }
11937 }'`; fi
11938 else
11939   echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11941
11942 fi
11943 rm -f conftest.err conftest.$ac_objext \
11944       conftest$ac_exeext conftest.$ac_ext
11945 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11946
11947       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11948
11949       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"
11950      else
11951       if test "$host_cpu" = ia64; then
11952         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11953         allow_undefined_flag_CXX="-z nodefs"
11954         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"
11955       else
11956         # Determine the default libpath from the value encoded in an empty executable.
11957         cat >conftest.$ac_ext <<_ACEOF
11958 /* confdefs.h.  */
11959 _ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h.  */
11963
11964 int
11965 main ()
11966 {
11967
11968   ;
11969   return 0;
11970 }
11971 _ACEOF
11972 rm -f conftest.$ac_objext conftest$ac_exeext
11973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11974   (eval $ac_link) 2>conftest.er1
11975   ac_status=$?
11976   grep -v '^ *+' conftest.er1 >conftest.err
11977   rm -f conftest.er1
11978   cat conftest.err >&5
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); } &&
11981          { ac_try='test -z "$ac_cxx_werror_flag"
11982                          || test ! -s conftest.err'
11983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984   (eval $ac_try) 2>&5
11985   ac_status=$?
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); }; } &&
11988          { ac_try='test -s conftest$ac_exeext'
11989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990   (eval $ac_try) 2>&5
11991   ac_status=$?
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); }; }; then
11994
11995 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11996 }'`
11997 # Check for a 64-bit object if we didn't find anything.
11998 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; }
11999 }'`; fi
12000 else
12001   echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12003
12004 fi
12005 rm -f conftest.err conftest.$ac_objext \
12006       conftest$ac_exeext conftest.$ac_ext
12007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12008
12009         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12010         # Warning - without using the other run time loading flags,
12011         # -berok will link without error, but may produce a broken library.
12012         no_undefined_flag_CXX=' ${wl}-bernotok'
12013         allow_undefined_flag_CXX=' ${wl}-berok'
12014         # -bexpall does not export symbols beginning with underscore (_)
12015         always_export_symbols_CXX=yes
12016         # Exported symbols can be pulled into shared objects from archives
12017         whole_archive_flag_spec_CXX=' '
12018         archive_cmds_need_lc_CXX=yes
12019         # This is similar to how AIX traditionally builds it's shared libraries.
12020         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'
12021       fi
12022     fi
12023     ;;
12024   chorus*)
12025     case $cc_basename in
12026       *)
12027         # FIXME: insert proper C++ library support
12028         ld_shlibs_CXX=no
12029         ;;
12030     esac
12031     ;;
12032
12033   cygwin* | mingw* | pw32*)
12034     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12035     # as there is no search path for DLLs.
12036     hardcode_libdir_flag_spec_CXX='-L$libdir'
12037     allow_undefined_flag_CXX=unsupported
12038     always_export_symbols_CXX=no
12039     enable_shared_with_static_runtimes_CXX=yes
12040
12041     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12042       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'
12043       # If the export-symbols file already is a .def file (1st line
12044       # is EXPORTS), use it as is; otherwise, prepend...
12045       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12046         cp $export_symbols $output_objdir/$soname.def;
12047       else
12048         echo EXPORTS > $output_objdir/$soname.def;
12049         cat $export_symbols >> $output_objdir/$soname.def;
12050       fi~
12051       $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'
12052     else
12053       ld_shlibs_CXX=no
12054     fi
12055   ;;
12056
12057   darwin* | rhapsody*)
12058   if test "$GXX" = yes; then
12059     archive_cmds_need_lc_CXX=no
12060     case "$host_os" in
12061     rhapsody* | darwin1.[012])
12062       allow_undefined_flag_CXX='-undefined suppress'
12063       ;;
12064     *) # Darwin 1.3 on
12065       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12066         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12067       else
12068         case ${MACOSX_DEPLOYMENT_TARGET} in
12069           10.[012])
12070             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12071             ;;
12072           10.*)
12073             allow_undefined_flag_CXX='-undefined dynamic_lookup'
12074             ;;
12075         esac
12076       fi
12077       ;;
12078     esac
12079     lt_int_apple_cc_single_mod=no
12080     output_verbose_link_cmd='echo'
12081     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12082       lt_int_apple_cc_single_mod=yes
12083     fi
12084     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12085       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12086     else
12087       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'
12088     fi
12089     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12090
12091     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12092     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12093       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}'
12094     else
12095       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}'
12096     fi
12097     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}'
12098     hardcode_direct_CXX=no
12099     hardcode_automatic_CXX=yes
12100     hardcode_shlibpath_var_CXX=unsupported
12101     whole_archive_flag_spec_CXX='-all_load $convenience'
12102     link_all_deplibs_CXX=yes
12103   else
12104     ld_shlibs_CXX=no
12105   fi
12106     ;;
12107
12108   dgux*)
12109     case $cc_basename in
12110       ec++)
12111         # FIXME: insert proper C++ library support
12112         ld_shlibs_CXX=no
12113         ;;
12114       ghcx)
12115         # Green Hills C++ Compiler
12116         # FIXME: insert proper C++ library support
12117         ld_shlibs_CXX=no
12118         ;;
12119       *)
12120         # FIXME: insert proper C++ library support
12121         ld_shlibs_CXX=no
12122         ;;
12123     esac
12124     ;;
12125   freebsd12*)
12126     # C++ shared libraries reported to be fairly broken before switch to ELF
12127     ld_shlibs_CXX=no
12128     ;;
12129   freebsd-elf*)
12130     archive_cmds_need_lc_CXX=no
12131     ;;
12132   freebsd* | kfreebsd*-gnu)
12133     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12134     # conventions
12135     ld_shlibs_CXX=yes
12136     ;;
12137   gnu*)
12138     ;;
12139   hpux9*)
12140     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12141     hardcode_libdir_separator_CXX=:
12142     export_dynamic_flag_spec_CXX='${wl}-E'
12143     hardcode_direct_CXX=yes
12144     hardcode_minus_L_CXX=yes # Not in the search PATH,
12145                                 # but as the default
12146                                 # location of the library.
12147
12148     case $cc_basename in
12149     CC)
12150       # FIXME: insert proper C++ library support
12151       ld_shlibs_CXX=no
12152       ;;
12153     aCC)
12154       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'
12155       # Commands to make compiler produce verbose output that lists
12156       # what "hidden" libraries, object files and flags are used when
12157       # linking a shared library.
12158       #
12159       # There doesn't appear to be a way to prevent this compiler from
12160       # explicitly linking system object files so we need to strip them
12161       # from the output so that they don't get included in the library
12162       # dependencies.
12163       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'
12164       ;;
12165     *)
12166       if test "$GXX" = yes; then
12167         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'
12168       else
12169         # FIXME: insert proper C++ library support
12170         ld_shlibs_CXX=no
12171       fi
12172       ;;
12173     esac
12174     ;;
12175   hpux10*|hpux11*)
12176     if test $with_gnu_ld = no; then
12177       case "$host_cpu" in
12178       hppa*64*)
12179         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12180         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12181         hardcode_libdir_separator_CXX=:
12182         ;;
12183       ia64*)
12184         hardcode_libdir_flag_spec_CXX='-L$libdir'
12185         ;;
12186       *)
12187         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12188         hardcode_libdir_separator_CXX=:
12189         export_dynamic_flag_spec_CXX='${wl}-E'
12190         ;;
12191       esac
12192     fi
12193     case "$host_cpu" in
12194     hppa*64*)
12195       hardcode_direct_CXX=no
12196       hardcode_shlibpath_var_CXX=no
12197       ;;
12198     ia64*)
12199       hardcode_direct_CXX=no
12200       hardcode_shlibpath_var_CXX=no
12201       hardcode_minus_L_CXX=yes # Not in the search PATH,
12202                                               # but as the default
12203                                               # location of the library.
12204       ;;
12205     *)
12206       hardcode_direct_CXX=yes
12207       hardcode_minus_L_CXX=yes # Not in the search PATH,
12208                                               # but as the default
12209                                               # location of the library.
12210       ;;
12211     esac
12212
12213     case $cc_basename in
12214       CC)
12215         # FIXME: insert proper C++ library support
12216         ld_shlibs_CXX=no
12217         ;;
12218       aCC)
12219         case "$host_cpu" in
12220         hppa*64*|ia64*)
12221           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12222           ;;
12223         *)
12224           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12225           ;;
12226         esac
12227         # Commands to make compiler produce verbose output that lists
12228         # what "hidden" libraries, object files and flags are used when
12229         # linking a shared library.
12230         #
12231         # There doesn't appear to be a way to prevent this compiler from
12232         # explicitly linking system object files so we need to strip them
12233         # from the output so that they don't get included in the library
12234         # dependencies.
12235         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'
12236         ;;
12237       *)
12238         if test "$GXX" = yes; then
12239           if test $with_gnu_ld = no; then
12240             case "$host_cpu" in
12241             ia64*|hppa*64*)
12242               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12243               ;;
12244             *)
12245               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'
12246               ;;
12247             esac
12248           fi
12249         else
12250           # FIXME: insert proper C++ library support
12251           ld_shlibs_CXX=no
12252         fi
12253         ;;
12254     esac
12255     ;;
12256   irix5* | irix6*)
12257     case $cc_basename in
12258       CC)
12259         # SGI C++
12260         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'
12261
12262         # Archives containing C++ object files must be created using
12263         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12264         # necessary to make sure instantiated templates are included
12265         # in the archive.
12266         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12267         ;;
12268       *)
12269         if test "$GXX" = yes; then
12270           if test "$with_gnu_ld" = no; then
12271             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'
12272           else
12273             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'
12274           fi
12275         fi
12276         link_all_deplibs_CXX=yes
12277         ;;
12278     esac
12279     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12280     hardcode_libdir_separator_CXX=:
12281     ;;
12282   linux*)
12283     case $cc_basename in
12284       KCC)
12285         # Kuck and Associates, Inc. (KAI) C++ Compiler
12286
12287         # KCC will only create a shared library if the output file
12288         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12289         # to its proper name (with version) after linking.
12290         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'
12291         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'
12292         # Commands to make compiler produce verbose output that lists
12293         # what "hidden" libraries, object files and flags are used when
12294         # linking a shared library.
12295         #
12296         # There doesn't appear to be a way to prevent this compiler from
12297         # explicitly linking system object files so we need to strip them
12298         # from the output so that they don't get included in the library
12299         # dependencies.
12300         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'
12301
12302         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12303         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12304
12305         # Archives containing C++ object files must be created using
12306         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12307         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12308         ;;
12309       icpc)
12310         # Intel C++
12311         with_gnu_ld=yes
12312         archive_cmds_need_lc_CXX=no
12313         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12314         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'
12315         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12316         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12317         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12318         ;;
12319       cxx)
12320         # Compaq C++
12321         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12322         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'
12323
12324         runpath_var=LD_RUN_PATH
12325         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12326         hardcode_libdir_separator_CXX=:
12327
12328         # Commands to make compiler produce verbose output that lists
12329         # what "hidden" libraries, object files and flags are used when
12330         # linking a shared library.
12331         #
12332         # There doesn't appear to be a way to prevent this compiler from
12333         # explicitly linking system object files so we need to strip them
12334         # from the output so that they don't get included in the library
12335         # dependencies.
12336         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'
12337         ;;
12338     esac
12339     ;;
12340   lynxos*)
12341     # FIXME: insert proper C++ library support
12342     ld_shlibs_CXX=no
12343     ;;
12344   m88k*)
12345     # FIXME: insert proper C++ library support
12346     ld_shlibs_CXX=no
12347     ;;
12348   mvs*)
12349     case $cc_basename in
12350       cxx)
12351         # FIXME: insert proper C++ library support
12352         ld_shlibs_CXX=no
12353         ;;
12354       *)
12355         # FIXME: insert proper C++ library support
12356         ld_shlibs_CXX=no
12357         ;;
12358     esac
12359     ;;
12360   netbsd*)
12361     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12362       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12363       wlarc=
12364       hardcode_libdir_flag_spec_CXX='-R$libdir'
12365       hardcode_direct_CXX=yes
12366       hardcode_shlibpath_var_CXX=no
12367     fi
12368     # Workaround some broken pre-1.5 toolchains
12369     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12370     ;;
12371   osf3*)
12372     case $cc_basename in
12373       KCC)
12374         # Kuck and Associates, Inc. (KAI) C++ Compiler
12375
12376         # KCC will only create a shared library if the output file
12377         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12378         # to its proper name (with version) after linking.
12379         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'
12380
12381         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12382         hardcode_libdir_separator_CXX=:
12383
12384         # Archives containing C++ object files must be created using
12385         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12386         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12387
12388         ;;
12389       RCC)
12390         # Rational C++ 2.4.1
12391         # FIXME: insert proper C++ library support
12392         ld_shlibs_CXX=no
12393         ;;
12394       cxx)
12395         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12396         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'
12397
12398         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12399         hardcode_libdir_separator_CXX=:
12400
12401         # Commands to make compiler produce verbose output that lists
12402         # what "hidden" libraries, object files and flags are used when
12403         # linking a shared library.
12404         #
12405         # There doesn't appear to be a way to prevent this compiler from
12406         # explicitly linking system object files so we need to strip them
12407         # from the output so that they don't get included in the library
12408         # dependencies.
12409         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'
12410         ;;
12411       *)
12412         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12413           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12414           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'
12415
12416           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12417           hardcode_libdir_separator_CXX=:
12418
12419           # Commands to make compiler produce verbose output that lists
12420           # what "hidden" libraries, object files and flags are used when
12421           # linking a shared library.
12422           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12423
12424         else
12425           # FIXME: insert proper C++ library support
12426           ld_shlibs_CXX=no
12427         fi
12428         ;;
12429     esac
12430     ;;
12431   osf4* | osf5*)
12432     case $cc_basename in
12433       KCC)
12434         # Kuck and Associates, Inc. (KAI) C++ Compiler
12435
12436         # KCC will only create a shared library if the output file
12437         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12438         # to its proper name (with version) after linking.
12439         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'
12440
12441         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12442         hardcode_libdir_separator_CXX=:
12443
12444         # Archives containing C++ object files must be created using
12445         # the KAI C++ compiler.
12446         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12447         ;;
12448       RCC)
12449         # Rational C++ 2.4.1
12450         # FIXME: insert proper C++ library support
12451         ld_shlibs_CXX=no
12452         ;;
12453       cxx)
12454         allow_undefined_flag_CXX=' -expect_unresolved \*'
12455         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'
12456         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12457           echo "-hidden">> $lib.exp~
12458           $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~
12459           $rm $lib.exp'
12460
12461         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12462         hardcode_libdir_separator_CXX=:
12463
12464         # Commands to make compiler produce verbose output that lists
12465         # what "hidden" libraries, object files and flags are used when
12466         # linking a shared library.
12467         #
12468         # There doesn't appear to be a way to prevent this compiler from
12469         # explicitly linking system object files so we need to strip them
12470         # from the output so that they don't get included in the library
12471         # dependencies.
12472         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'
12473         ;;
12474       *)
12475         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12476           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12477          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'
12478
12479           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12480           hardcode_libdir_separator_CXX=:
12481
12482           # Commands to make compiler produce verbose output that lists
12483           # what "hidden" libraries, object files and flags are used when
12484           # linking a shared library.
12485           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12486
12487         else
12488           # FIXME: insert proper C++ library support
12489           ld_shlibs_CXX=no
12490         fi
12491         ;;
12492     esac
12493     ;;
12494   psos*)
12495     # FIXME: insert proper C++ library support
12496     ld_shlibs_CXX=no
12497     ;;
12498   sco*)
12499     archive_cmds_need_lc_CXX=no
12500     case $cc_basename in
12501       CC)
12502         # FIXME: insert proper C++ library support
12503         ld_shlibs_CXX=no
12504         ;;
12505       *)
12506         # FIXME: insert proper C++ library support
12507         ld_shlibs_CXX=no
12508         ;;
12509     esac
12510     ;;
12511   sunos4*)
12512     case $cc_basename in
12513       CC)
12514         # Sun C++ 4.x
12515         # FIXME: insert proper C++ library support
12516         ld_shlibs_CXX=no
12517         ;;
12518       lcc)
12519         # Lucid
12520         # FIXME: insert proper C++ library support
12521         ld_shlibs_CXX=no
12522         ;;
12523       *)
12524         # FIXME: insert proper C++ library support
12525         ld_shlibs_CXX=no
12526         ;;
12527     esac
12528     ;;
12529   solaris*)
12530     case $cc_basename in
12531       CC)
12532         # Sun C++ 4.2, 5.x and Centerline C++
12533         no_undefined_flag_CXX=' -zdefs'
12534         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12535         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12536         $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'
12537
12538         hardcode_libdir_flag_spec_CXX='-R$libdir'
12539         hardcode_shlibpath_var_CXX=no
12540         case $host_os in
12541           solaris2.0-5 | solaris2.0-5.*) ;;
12542           *)
12543             # The C++ compiler is used as linker so we must use $wl
12544             # flag to pass the commands to the underlying system
12545             # linker.
12546             # Supported since Solaris 2.6 (maybe 2.5.1?)
12547             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12548             ;;
12549         esac
12550         link_all_deplibs_CXX=yes
12551
12552         # Commands to make compiler produce verbose output that lists
12553         # what "hidden" libraries, object files and flags are used when
12554         # linking a shared library.
12555         #
12556         # There doesn't appear to be a way to prevent this compiler from
12557         # explicitly linking system object files so we need to strip them
12558         # from the output so that they don't get included in the library
12559         # dependencies.
12560         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'
12561
12562         # Archives containing C++ object files must be created using
12563         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12564         # necessary to make sure instantiated templates are included
12565         # in the archive.
12566         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12567         ;;
12568       gcx)
12569         # Green Hills C++ Compiler
12570         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12571
12572         # The C++ compiler must be used to create the archive.
12573         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12574         ;;
12575       *)
12576         # GNU C++ compiler with Solaris linker
12577         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12578           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12579           if $CC --version | grep -v '^2\.7' > /dev/null; then
12580             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12581             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12582                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12583
12584             # Commands to make compiler produce verbose output that lists
12585             # what "hidden" libraries, object files and flags are used when
12586             # linking a shared library.
12587             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12588           else
12589             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12590             # platform.
12591             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12592             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12593                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12594
12595             # Commands to make compiler produce verbose output that lists
12596             # what "hidden" libraries, object files and flags are used when
12597             # linking a shared library.
12598             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12599           fi
12600
12601           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12602         fi
12603         ;;
12604     esac
12605     ;;
12606   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12607     archive_cmds_need_lc_CXX=no
12608     ;;
12609   tandem*)
12610     case $cc_basename in
12611       NCC)
12612         # NonStop-UX NCC 3.20
12613         # FIXME: insert proper C++ library support
12614         ld_shlibs_CXX=no
12615         ;;
12616       *)
12617         # FIXME: insert proper C++ library support
12618         ld_shlibs_CXX=no
12619         ;;
12620     esac
12621     ;;
12622   vxworks*)
12623     # FIXME: insert proper C++ library support
12624     ld_shlibs_CXX=no
12625     ;;
12626   *)
12627     # FIXME: insert proper C++ library support
12628     ld_shlibs_CXX=no
12629     ;;
12630 esac
12631 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12632 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12633 test "$ld_shlibs_CXX" = no && can_build_shared=no
12634
12635 GCC_CXX="$GXX"
12636 LD_CXX="$LD"
12637
12638 ## CAVEAT EMPTOR:
12639 ## There is no encapsulation within the following macros, do not change
12640 ## the running order or otherwise move them around unless you know exactly
12641 ## what you are doing...
12642
12643 cat > conftest.$ac_ext <<EOF
12644 class Foo
12645 {
12646 public:
12647   Foo (void) { a = 0; }
12648 private:
12649   int a;
12650 };
12651 EOF
12652
12653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12654   (eval $ac_compile) 2>&5
12655   ac_status=$?
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); }; then
12658   # Parse the compiler output and extract the necessary
12659   # objects, libraries and library flags.
12660
12661   # Sentinel used to keep track of whether or not we are before
12662   # the conftest object file.
12663   pre_test_object_deps_done=no
12664
12665   # The `*' in the case matches for architectures that use `case' in
12666   # $output_verbose_cmd can trigger glob expansion during the loop
12667   # eval without this substitution.
12668   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12669
12670   for p in `eval $output_verbose_link_cmd`; do
12671     case $p in
12672
12673     -L* | -R* | -l*)
12674        # Some compilers place space between "-{L,R}" and the path.
12675        # Remove the space.
12676        if test $p = "-L" \
12677           || test $p = "-R"; then
12678          prev=$p
12679          continue
12680        else
12681          prev=
12682        fi
12683
12684        if test "$pre_test_object_deps_done" = no; then
12685          case $p in
12686          -L* | -R*)
12687            # Internal compiler library paths should come after those
12688            # provided the user.  The postdeps already come after the
12689            # user supplied libs so there is no need to process them.
12690            if test -z "$compiler_lib_search_path_CXX"; then
12691              compiler_lib_search_path_CXX="${prev}${p}"
12692            else
12693              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12694            fi
12695            ;;
12696          # The "-l" case would never come before the object being
12697          # linked, so don't bother handling this case.
12698          esac
12699        else
12700          if test -z "$postdeps_CXX"; then
12701            postdeps_CXX="${prev}${p}"
12702          else
12703            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12704          fi
12705        fi
12706        ;;
12707
12708     *.$objext)
12709        # This assumes that the test object file only shows up
12710        # once in the compiler output.
12711        if test "$p" = "conftest.$objext"; then
12712          pre_test_object_deps_done=yes
12713          continue
12714        fi
12715
12716        if test "$pre_test_object_deps_done" = no; then
12717          if test -z "$predep_objects_CXX"; then
12718            predep_objects_CXX="$p"
12719          else
12720            predep_objects_CXX="$predep_objects_CXX $p"
12721          fi
12722        else
12723          if test -z "$postdep_objects_CXX"; then
12724            postdep_objects_CXX="$p"
12725          else
12726            postdep_objects_CXX="$postdep_objects_CXX $p"
12727          fi
12728        fi
12729        ;;
12730
12731     *) ;; # Ignore the rest.
12732
12733     esac
12734   done
12735
12736   # Clean up.
12737   rm -f a.out a.exe
12738 else
12739   echo "libtool.m4: error: problem compiling CXX test program"
12740 fi
12741
12742 $rm -f confest.$objext
12743
12744 case " $postdeps_CXX " in
12745 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12746 esac
12747
12748 lt_prog_compiler_wl_CXX=
12749 lt_prog_compiler_pic_CXX=
12750 lt_prog_compiler_static_CXX=
12751
12752 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12753 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12754
12755   # C++ specific cases for pic, static, wl, etc.
12756   if test "$GXX" = yes; then
12757     lt_prog_compiler_wl_CXX='-Wl,'
12758     lt_prog_compiler_static_CXX='-static'
12759
12760     case $host_os in
12761     aix*)
12762       # All AIX code is PIC.
12763       if test "$host_cpu" = ia64; then
12764         # AIX 5 now supports IA64 processor
12765         lt_prog_compiler_static_CXX='-Bstatic'
12766       fi
12767       ;;
12768     amigaos*)
12769       # FIXME: we need at least 68020 code to build shared libraries, but
12770       # adding the `-m68020' flag to GCC prevents building anything better,
12771       # like `-m68040'.
12772       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12773       ;;
12774     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12775       # PIC is the default for these OSes.
12776       ;;
12777     mingw* | os2* | pw32*)
12778       # This hack is so that the source file can tell whether it is being
12779       # built for inclusion in a dll (and should export symbols for example).
12780       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12781       ;;
12782     darwin* | rhapsody*)
12783       # PIC is the default on this platform
12784       # Common symbols not allowed in MH_DYLIB files
12785       lt_prog_compiler_pic_CXX='-fno-common'
12786       ;;
12787     *djgpp*)
12788       # DJGPP does not support shared libraries at all
12789       lt_prog_compiler_pic_CXX=
12790       ;;
12791     sysv4*MP*)
12792       if test -d /usr/nec; then
12793         lt_prog_compiler_pic_CXX=-Kconform_pic
12794       fi
12795       ;;
12796     hpux*)
12797       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12798       # not for PA HP-UX.
12799       case "$host_cpu" in
12800       hppa*64*|ia64*)
12801         ;;
12802       *)
12803         lt_prog_compiler_pic_CXX='-fPIC'
12804         ;;
12805       esac
12806       ;;
12807     *)
12808       lt_prog_compiler_pic_CXX='-fPIC'
12809       ;;
12810     esac
12811   else
12812     case $host_os in
12813       aix4* | aix5*)
12814         # All AIX code is PIC.
12815         if test "$host_cpu" = ia64; then
12816           # AIX 5 now supports IA64 processor
12817           lt_prog_compiler_static_CXX='-Bstatic'
12818         else
12819           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12820         fi
12821         ;;
12822       chorus*)
12823         case $cc_basename in
12824         cxch68)
12825           # Green Hills C++ Compiler
12826           # _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"
12827           ;;
12828         esac
12829         ;;
12830       dgux*)
12831         case $cc_basename in
12832           ec++)
12833             lt_prog_compiler_pic_CXX='-KPIC'
12834             ;;
12835           ghcx)
12836             # Green Hills C++ Compiler
12837             lt_prog_compiler_pic_CXX='-pic'
12838             ;;
12839           *)
12840             ;;
12841         esac
12842         ;;
12843       freebsd* | kfreebsd*-gnu)
12844         # FreeBSD uses GNU C++
12845         ;;
12846       hpux9* | hpux10* | hpux11*)
12847         case $cc_basename in
12848           CC)
12849             lt_prog_compiler_wl_CXX='-Wl,'
12850             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12851             if test "$host_cpu" != ia64; then
12852               lt_prog_compiler_pic_CXX='+Z'
12853             fi
12854             ;;
12855           aCC)
12856             lt_prog_compiler_wl_CXX='-Wl,'
12857             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12858             case "$host_cpu" in
12859             hppa*64*|ia64*)
12860               # +Z the default
12861               ;;
12862             *)
12863               lt_prog_compiler_pic_CXX='+Z'
12864               ;;
12865             esac
12866             ;;
12867           *)
12868             ;;
12869         esac
12870         ;;
12871       irix5* | irix6* | nonstopux*)
12872         case $cc_basename in
12873           CC)
12874             lt_prog_compiler_wl_CXX='-Wl,'
12875             lt_prog_compiler_static_CXX='-non_shared'
12876             # CC pic flag -KPIC is the default.
12877             ;;
12878           *)
12879             ;;
12880         esac
12881         ;;
12882       linux*)
12883         case $cc_basename in
12884           KCC)
12885             # KAI C++ Compiler
12886             lt_prog_compiler_wl_CXX='--backend -Wl,'
12887             lt_prog_compiler_pic_CXX='-fPIC'
12888             ;;
12889           icpc)
12890             # Intel C++
12891             lt_prog_compiler_wl_CXX='-Wl,'
12892             lt_prog_compiler_pic_CXX='-KPIC'
12893             lt_prog_compiler_static_CXX='-static'
12894             ;;
12895           cxx)
12896             # Compaq C++
12897             # Make sure the PIC flag is empty.  It appears that all Alpha
12898             # Linux and Compaq Tru64 Unix objects are PIC.
12899             lt_prog_compiler_pic_CXX=
12900             lt_prog_compiler_static_CXX='-non_shared'
12901             ;;
12902           *)
12903             ;;
12904         esac
12905         ;;
12906       lynxos*)
12907         ;;
12908       m88k*)
12909         ;;
12910       mvs*)
12911         case $cc_basename in
12912           cxx)
12913             lt_prog_compiler_pic_CXX='-W c,exportall'
12914             ;;
12915           *)
12916             ;;
12917         esac
12918         ;;
12919       netbsd*)
12920         ;;
12921       osf3* | osf4* | osf5*)
12922         case $cc_basename in
12923           KCC)
12924             lt_prog_compiler_wl_CXX='--backend -Wl,'
12925             ;;
12926           RCC)
12927             # Rational C++ 2.4.1
12928             lt_prog_compiler_pic_CXX='-pic'
12929             ;;
12930           cxx)
12931             # Digital/Compaq C++
12932             lt_prog_compiler_wl_CXX='-Wl,'
12933             # Make sure the PIC flag is empty.  It appears that all Alpha
12934             # Linux and Compaq Tru64 Unix objects are PIC.
12935             lt_prog_compiler_pic_CXX=
12936             lt_prog_compiler_static_CXX='-non_shared'
12937             ;;
12938           *)
12939             ;;
12940         esac
12941         ;;
12942       psos*)
12943         ;;
12944       sco*)
12945         case $cc_basename in
12946           CC)
12947             lt_prog_compiler_pic_CXX='-fPIC'
12948             ;;
12949           *)
12950             ;;
12951         esac
12952         ;;
12953       solaris*)
12954         case $cc_basename in
12955           CC)
12956             # Sun C++ 4.2, 5.x and Centerline C++
12957             lt_prog_compiler_pic_CXX='-KPIC'
12958             lt_prog_compiler_static_CXX='-Bstatic'
12959             lt_prog_compiler_wl_CXX='-Qoption ld '
12960             ;;
12961           gcx)
12962             # Green Hills C++ Compiler
12963             lt_prog_compiler_pic_CXX='-PIC'
12964             ;;
12965           *)
12966             ;;
12967         esac
12968         ;;
12969       sunos4*)
12970         case $cc_basename in
12971           CC)
12972             # Sun C++ 4.x
12973             lt_prog_compiler_pic_CXX='-pic'
12974             lt_prog_compiler_static_CXX='-Bstatic'
12975             ;;
12976           lcc)
12977             # Lucid
12978             lt_prog_compiler_pic_CXX='-pic'
12979             ;;
12980           *)
12981             ;;
12982         esac
12983         ;;
12984       tandem*)
12985         case $cc_basename in
12986           NCC)
12987             # NonStop-UX NCC 3.20
12988             lt_prog_compiler_pic_CXX='-KPIC'
12989             ;;
12990           *)
12991             ;;
12992         esac
12993         ;;
12994       unixware*)
12995         ;;
12996       vxworks*)
12997         ;;
12998       *)
12999         lt_prog_compiler_can_build_shared_CXX=no
13000         ;;
13001     esac
13002   fi
13003
13004 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13005 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13006
13007 #
13008 # Check to make sure the PIC flag actually works.
13009 #
13010 if test -n "$lt_prog_compiler_pic_CXX"; then
13011
13012 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13013 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13014 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13015   echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017   lt_prog_compiler_pic_works_CXX=no
13018   ac_outfile=conftest.$ac_objext
13019    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13020    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13021    # Insert the option either (1) after the last *FLAGS variable, or
13022    # (2) before a word containing "conftest.", or (3) at the end.
13023    # Note that $ac_compile itself does not contain backslashes and begins
13024    # with a dollar sign (not a hyphen), so the echo should work correctly.
13025    # The option is referenced via a variable to avoid confusing sed.
13026    lt_compile=`echo "$ac_compile" | $SED \
13027    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13028    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13029    -e 's:$: $lt_compiler_flag:'`
13030    (eval echo "\"\$as_me:13030: $lt_compile\"" >&5)
13031    (eval "$lt_compile" 2>conftest.err)
13032    ac_status=$?
13033    cat conftest.err >&5
13034    echo "$as_me:13034: \$? = $ac_status" >&5
13035    if (exit $ac_status) && test -s "$ac_outfile"; then
13036      # The compiler can only warn and ignore the option if not recognized
13037      # So say no if there are warnings
13038      if test ! -s conftest.err; then
13039        lt_prog_compiler_pic_works_CXX=yes
13040      fi
13041    fi
13042    $rm conftest*
13043
13044 fi
13045 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13046 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13047
13048 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13049     case $lt_prog_compiler_pic_CXX in
13050      "" | " "*) ;;
13051      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13052      esac
13053 else
13054     lt_prog_compiler_pic_CXX=
13055      lt_prog_compiler_can_build_shared_CXX=no
13056 fi
13057
13058 fi
13059 case "$host_os" in
13060   # For platforms which do not support PIC, -DPIC is meaningless:
13061   *djgpp*)
13062     lt_prog_compiler_pic_CXX=
13063     ;;
13064   *)
13065     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13066     ;;
13067 esac
13068
13069 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13070 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13071 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13072   echo $ECHO_N "(cached) $ECHO_C" >&6
13073 else
13074   lt_cv_prog_compiler_c_o_CXX=no
13075    $rm -r conftest 2>/dev/null
13076    mkdir conftest
13077    cd conftest
13078    mkdir out
13079    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13080
13081    lt_compiler_flag="-o out/conftest2.$ac_objext"
13082    # Insert the option either (1) after the last *FLAGS variable, or
13083    # (2) before a word containing "conftest.", or (3) at the end.
13084    # Note that $ac_compile itself does not contain backslashes and begins
13085    # with a dollar sign (not a hyphen), so the echo should work correctly.
13086    lt_compile=`echo "$ac_compile" | $SED \
13087    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13088    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13089    -e 's:$: $lt_compiler_flag:'`
13090    (eval echo "\"\$as_me:13090: $lt_compile\"" >&5)
13091    (eval "$lt_compile" 2>out/conftest.err)
13092    ac_status=$?
13093    cat out/conftest.err >&5
13094    echo "$as_me:13094: \$? = $ac_status" >&5
13095    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13096    then
13097      # The compiler can only warn and ignore the option if not recognized
13098      # So say no if there are warnings
13099      if test ! -s out/conftest.err; then
13100        lt_cv_prog_compiler_c_o_CXX=yes
13101      fi
13102    fi
13103    chmod u+w .
13104    $rm conftest*
13105    # SGI C++ compiler will create directory out/ii_files/ for
13106    # template instantiation
13107    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13108    $rm out/* && rmdir out
13109    cd ..
13110    rmdir conftest
13111    $rm conftest*
13112
13113 fi
13114 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13115 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13116
13117
13118 hard_links="nottested"
13119 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13120   # do not overwrite the value of need_locks provided by the user
13121   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13122 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13123   hard_links=yes
13124   $rm conftest*
13125   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13126   touch conftest.a
13127   ln conftest.a conftest.b 2>&5 || hard_links=no
13128   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13129   echo "$as_me:$LINENO: result: $hard_links" >&5
13130 echo "${ECHO_T}$hard_links" >&6
13131   if test "$hard_links" = no; then
13132     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13133 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13134     need_locks=warn
13135   fi
13136 else
13137   need_locks=no
13138 fi
13139
13140 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13141 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13142
13143   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13144   case $host_os in
13145   aix4* | aix5*)
13146     # If we're using GNU nm, then we don't want the "-C" option.
13147     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13148     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13149       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'
13150     else
13151       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'
13152     fi
13153     ;;
13154   pw32*)
13155     export_symbols_cmds_CXX="$ltdll_cmds"
13156   ;;
13157   cygwin* | mingw*)
13158     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13159   ;;
13160   *)
13161     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13162   ;;
13163   esac
13164
13165 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13166 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13167 test "$ld_shlibs_CXX" = no && can_build_shared=no
13168
13169 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13170 if test "$GCC" = yes; then
13171   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13172 fi
13173
13174 #
13175 # Do we need to explicitly link libc?
13176 #
13177 case "x$archive_cmds_need_lc_CXX" in
13178 x|xyes)
13179   # Assume -lc should be added
13180   archive_cmds_need_lc_CXX=yes
13181
13182   if test "$enable_shared" = yes && test "$GCC" = yes; then
13183     case $archive_cmds_CXX in
13184     *'~'*)
13185       # FIXME: we may have to deal with multi-command sequences.
13186       ;;
13187     '$CC '*)
13188       # Test whether the compiler implicitly links with -lc since on some
13189       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13190       # to ld, don't add -lc before -lgcc.
13191       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13192 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13193       $rm conftest*
13194       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13195
13196       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13197   (eval $ac_compile) 2>&5
13198   ac_status=$?
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); } 2>conftest.err; then
13201         soname=conftest
13202         lib=conftest
13203         libobjs=conftest.$ac_objext
13204         deplibs=
13205         wl=$lt_prog_compiler_wl_CXX
13206         compiler_flags=-v
13207         linker_flags=-v
13208         verstring=
13209         output_objdir=.
13210         libname=conftest
13211         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13212         allow_undefined_flag_CXX=
13213         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13214   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13215   ac_status=$?
13216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217   (exit $ac_status); }
13218         then
13219           archive_cmds_need_lc_CXX=no
13220         else
13221           archive_cmds_need_lc_CXX=yes
13222         fi
13223         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13224       else
13225         cat conftest.err 1>&5
13226       fi
13227       $rm conftest*
13228       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13229 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13230       ;;
13231     esac
13232   fi
13233   ;;
13234 esac
13235
13236 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13237 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13238 library_names_spec=
13239 libname_spec='lib$name'
13240 soname_spec=
13241 shrext_cmds=".so"
13242 postinstall_cmds=
13243 postuninstall_cmds=
13244 finish_cmds=
13245 finish_eval=
13246 shlibpath_var=
13247 shlibpath_overrides_runpath=unknown
13248 version_type=none
13249 dynamic_linker="$host_os ld.so"
13250 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13251 if test "$GCC" = yes; then
13252   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13253   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13254     # if the path contains ";" then we assume it to be the separator
13255     # otherwise default to the standard path separator (i.e. ":") - it is
13256     # assumed that no part of a normal pathname contains ";" but that should
13257     # okay in the real world where ";" in dirpaths is itself problematic.
13258     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13259   else
13260     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13261   fi
13262 else
13263   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13264 fi
13265 need_lib_prefix=unknown
13266 hardcode_into_libs=no
13267
13268 # when you set need_version to no, make sure it does not cause -set_version
13269 # flags to be left without arguments
13270 need_version=unknown
13271
13272 case $host_os in
13273 aix3*)
13274   version_type=linux
13275   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13276   shlibpath_var=LIBPATH
13277
13278   # AIX 3 has no versioning support, so we append a major version to the name.
13279   soname_spec='${libname}${release}${shared_ext}$major'
13280   ;;
13281
13282 aix4* | aix5*)
13283   version_type=linux
13284   need_lib_prefix=no
13285   need_version=no
13286   hardcode_into_libs=yes
13287   if test "$host_cpu" = ia64; then
13288     # AIX 5 supports IA64
13289     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13290     shlibpath_var=LD_LIBRARY_PATH
13291   else
13292     # With GCC up to 2.95.x, collect2 would create an import file
13293     # for dependence libraries.  The import file would start with
13294     # the line `#! .'.  This would cause the generated library to
13295     # depend on `.', always an invalid library.  This was fixed in
13296     # development snapshots of GCC prior to 3.0.
13297     case $host_os in
13298       aix4 | aix4.[01] | aix4.[01].*)
13299       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13300            echo ' yes '
13301            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13302         :
13303       else
13304         can_build_shared=no
13305       fi
13306       ;;
13307     esac
13308     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13309     # soname into executable. Probably we can add versioning support to
13310     # collect2, so additional links can be useful in future.
13311     if test "$aix_use_runtimelinking" = yes; then
13312       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13313       # instead of lib<name>.a to let people know that these are not
13314       # typical AIX shared libraries.
13315       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13316     else
13317       # We preserve .a as extension for shared libraries through AIX4.2
13318       # and later when we are not doing run time linking.
13319       library_names_spec='${libname}${release}.a $libname.a'
13320       soname_spec='${libname}${release}${shared_ext}$major'
13321     fi
13322     shlibpath_var=LIBPATH
13323   fi
13324   ;;
13325
13326 amigaos*)
13327   library_names_spec='$libname.ixlibrary $libname.a'
13328   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13329   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'
13330   ;;
13331
13332 beos*)
13333   library_names_spec='${libname}${shared_ext}'
13334   dynamic_linker="$host_os ld.so"
13335   shlibpath_var=LIBRARY_PATH
13336   ;;
13337
13338 bsdi4*)
13339   version_type=linux
13340   need_version=no
13341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13342   soname_spec='${libname}${release}${shared_ext}$major'
13343   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13344   shlibpath_var=LD_LIBRARY_PATH
13345   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13346   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13347   # the default ld.so.conf also contains /usr/contrib/lib and
13348   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13349   # libtool to hard-code these into programs
13350   ;;
13351
13352 cygwin* | mingw* | pw32*)
13353   version_type=windows
13354   shrext_cmds=".dll"
13355   need_version=no
13356   need_lib_prefix=no
13357
13358   case $GCC,$host_os in
13359   yes,cygwin* | yes,mingw* | yes,pw32*)
13360     library_names_spec='$libname.dll.a'
13361     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13362     postinstall_cmds='base_file=`basename \${file}`~
13363       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13364       dldir=$destdir/`dirname \$dlpath`~
13365       test -d \$dldir || mkdir -p \$dldir~
13366       $install_prog $dir/$dlname \$dldir/$dlname'
13367     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13368       dlpath=$dir/\$dldll~
13369        $rm \$dlpath'
13370     shlibpath_overrides_runpath=yes
13371
13372     case $host_os in
13373     cygwin*)
13374       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13375       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13376       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13377       ;;
13378     mingw*)
13379       # MinGW DLLs use traditional 'lib' prefix
13380       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13381       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13382       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13383         # It is most probably a Windows format PATH printed by
13384         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13385         # path with ; separators, and with drive letters. We can handle the
13386         # drive letters (cygwin fileutils understands them), so leave them,
13387         # especially as we might pass files found there to a mingw objdump,
13388         # which wouldn't understand a cygwinified path. Ahh.
13389         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13390       else
13391         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13392       fi
13393       ;;
13394     pw32*)
13395       # pw32 DLLs use 'pw' prefix rather than 'lib'
13396       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13397       ;;
13398     esac
13399     ;;
13400
13401   *)
13402     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13403     ;;
13404   esac
13405   dynamic_linker='Win32 ld.exe'
13406   # FIXME: first we should search . and the directory the executable is in
13407   shlibpath_var=PATH
13408   ;;
13409
13410 darwin* | rhapsody*)
13411   dynamic_linker="$host_os dyld"
13412   version_type=darwin
13413   need_lib_prefix=no
13414   need_version=no
13415   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13416   soname_spec='${libname}${release}${major}$shared_ext'
13417   shlibpath_overrides_runpath=yes
13418   shlibpath_var=DYLD_LIBRARY_PATH
13419   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13420   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13421   if test "$GCC" = yes; then
13422     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"`
13423   else
13424     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13425   fi
13426   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13427   ;;
13428
13429 dgux*)
13430   version_type=linux
13431   need_lib_prefix=no
13432   need_version=no
13433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13434   soname_spec='${libname}${release}${shared_ext}$major'
13435   shlibpath_var=LD_LIBRARY_PATH
13436   ;;
13437
13438 freebsd1*)
13439   dynamic_linker=no
13440   ;;
13441
13442 kfreebsd*-gnu)
13443   version_type=linux
13444   need_lib_prefix=no
13445   need_version=no
13446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13447   soname_spec='${libname}${release}${shared_ext}$major'
13448   shlibpath_var=LD_LIBRARY_PATH
13449   shlibpath_overrides_runpath=no
13450   hardcode_into_libs=yes
13451   dynamic_linker='GNU ld.so'
13452   ;;
13453
13454 freebsd*)
13455   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13456   version_type=freebsd-$objformat
13457   case $version_type in
13458     freebsd-elf*)
13459       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13460       need_version=no
13461       need_lib_prefix=no
13462       ;;
13463     freebsd-*)
13464       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13465       need_version=yes
13466       ;;
13467   esac
13468   shlibpath_var=LD_LIBRARY_PATH
13469   case $host_os in
13470   freebsd2*)
13471     shlibpath_overrides_runpath=yes
13472     ;;
13473   freebsd3.01* | freebsdelf3.01*)
13474     shlibpath_overrides_runpath=yes
13475     hardcode_into_libs=yes
13476     ;;
13477   *) # from 3.2 on
13478     shlibpath_overrides_runpath=no
13479     hardcode_into_libs=yes
13480     ;;
13481   esac
13482   ;;
13483
13484 gnu*)
13485   version_type=linux
13486   need_lib_prefix=no
13487   need_version=no
13488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13489   soname_spec='${libname}${release}${shared_ext}$major'
13490   shlibpath_var=LD_LIBRARY_PATH
13491   hardcode_into_libs=yes
13492   ;;
13493
13494 hpux9* | hpux10* | hpux11*)
13495   # Give a soname corresponding to the major version so that dld.sl refuses to
13496   # link against other versions.
13497   version_type=sunos
13498   need_lib_prefix=no
13499   need_version=no
13500   case "$host_cpu" in
13501   ia64*)
13502     shrext_cmds='.so'
13503     hardcode_into_libs=yes
13504     dynamic_linker="$host_os dld.so"
13505     shlibpath_var=LD_LIBRARY_PATH
13506     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13507     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13508     soname_spec='${libname}${release}${shared_ext}$major'
13509     if test "X$HPUX_IA64_MODE" = X32; then
13510       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13511     else
13512       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13513     fi
13514     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13515     ;;
13516    hppa*64*)
13517      shrext_cmds='.sl'
13518      hardcode_into_libs=yes
13519      dynamic_linker="$host_os dld.sl"
13520      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13521      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13522      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13523      soname_spec='${libname}${release}${shared_ext}$major'
13524      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13525      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13526      ;;
13527    *)
13528     shrext_cmds='.sl'
13529     dynamic_linker="$host_os dld.sl"
13530     shlibpath_var=SHLIB_PATH
13531     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13532     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13533     soname_spec='${libname}${release}${shared_ext}$major'
13534     ;;
13535   esac
13536   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13537   postinstall_cmds='chmod 555 $lib'
13538   ;;
13539
13540 irix5* | irix6* | nonstopux*)
13541   case $host_os in
13542     nonstopux*) version_type=nonstopux ;;
13543     *)
13544         if test "$lt_cv_prog_gnu_ld" = yes; then
13545                 version_type=linux
13546         else
13547                 version_type=irix
13548         fi ;;
13549   esac
13550   need_lib_prefix=no
13551   need_version=no
13552   soname_spec='${libname}${release}${shared_ext}$major'
13553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13554   case $host_os in
13555   irix5* | nonstopux*)
13556     libsuff= shlibsuff=
13557     ;;
13558   *)
13559     case $LD in # libtool.m4 will add one of these switches to LD
13560     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13561       libsuff= shlibsuff= libmagic=32-bit;;
13562     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13563       libsuff=32 shlibsuff=N32 libmagic=N32;;
13564     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13565       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13566     *) libsuff= shlibsuff= libmagic=never-match;;
13567     esac
13568     ;;
13569   esac
13570   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13571   shlibpath_overrides_runpath=no
13572   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13573   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13574   hardcode_into_libs=yes
13575   ;;
13576
13577 # No shared lib support for Linux oldld, aout, or coff.
13578 linux*oldld* | linux*aout* | linux*coff*)
13579   dynamic_linker=no
13580   ;;
13581
13582 # This must be Linux ELF.
13583 linux*)
13584   version_type=linux
13585   need_lib_prefix=no
13586   need_version=no
13587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13588   soname_spec='${libname}${release}${shared_ext}$major'
13589   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13590   shlibpath_var=LD_LIBRARY_PATH
13591   shlibpath_overrides_runpath=no
13592   # This implies no fast_install, which is unacceptable.
13593   # Some rework will be needed to allow for fast_install
13594   # before this can be enabled.
13595   hardcode_into_libs=yes
13596
13597   # find out which ABI we are using
13598   libsuff=
13599   case "$host_cpu" in
13600   x86_64*|s390x*|powerpc64*)
13601     echo '#line 13601 "configure"' > conftest.$ac_ext
13602     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13603   (eval $ac_compile) 2>&5
13604   ac_status=$?
13605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); }; then
13607       case `/usr/bin/file conftest.$ac_objext` in
13608       *64-bit*)
13609         libsuff=64
13610         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13611         ;;
13612       esac
13613     fi
13614     rm -rf conftest*
13615     ;;
13616   esac
13617
13618   # Append ld.so.conf contents to the search path
13619   if test -f /etc/ld.so.conf; then
13620     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13621     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13622   fi
13623
13624   # We used to test for /lib/ld.so.1 and disable shared libraries on
13625   # powerpc, because MkLinux only supported shared libraries with the
13626   # GNU dynamic linker.  Since this was broken with cross compilers,
13627   # most powerpc-linux boxes support dynamic linking these days and
13628   # people can always --disable-shared, the test was removed, and we
13629   # assume the GNU/Linux dynamic linker is in use.
13630   dynamic_linker='GNU/Linux ld.so'
13631   ;;
13632
13633 knetbsd*-gnu)
13634   version_type=linux
13635   need_lib_prefix=no
13636   need_version=no
13637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13638   soname_spec='${libname}${release}${shared_ext}$major'
13639   shlibpath_var=LD_LIBRARY_PATH
13640   shlibpath_overrides_runpath=no
13641   hardcode_into_libs=yes
13642   dynamic_linker='GNU ld.so'
13643   ;;
13644
13645 netbsd*)
13646   version_type=sunos
13647   need_lib_prefix=no
13648   need_version=no
13649   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13650     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13651     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13652     dynamic_linker='NetBSD (a.out) ld.so'
13653   else
13654     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13655     soname_spec='${libname}${release}${shared_ext}$major'
13656     dynamic_linker='NetBSD ld.elf_so'
13657   fi
13658   shlibpath_var=LD_LIBRARY_PATH
13659   shlibpath_overrides_runpath=yes
13660   hardcode_into_libs=yes
13661   ;;
13662
13663 newsos6)
13664   version_type=linux
13665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666   shlibpath_var=LD_LIBRARY_PATH
13667   shlibpath_overrides_runpath=yes
13668   ;;
13669
13670 nto-qnx*)
13671   version_type=linux
13672   need_lib_prefix=no
13673   need_version=no
13674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13675   soname_spec='${libname}${release}${shared_ext}$major'
13676   shlibpath_var=LD_LIBRARY_PATH
13677   shlibpath_overrides_runpath=yes
13678   ;;
13679
13680 openbsd*)
13681   version_type=sunos
13682   need_lib_prefix=no
13683   need_version=yes
13684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13685   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13686   shlibpath_var=LD_LIBRARY_PATH
13687   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13688     case $host_os in
13689       openbsd2.[89] | openbsd2.[89].*)
13690         shlibpath_overrides_runpath=no
13691         ;;
13692       *)
13693         shlibpath_overrides_runpath=yes
13694         ;;
13695       esac
13696   else
13697     shlibpath_overrides_runpath=yes
13698   fi
13699   ;;
13700
13701 os2*)
13702   libname_spec='$name'
13703   shrext_cmds=".dll"
13704   need_lib_prefix=no
13705   library_names_spec='$libname${shared_ext} $libname.a'
13706   dynamic_linker='OS/2 ld.exe'
13707   shlibpath_var=LIBPATH
13708   ;;
13709
13710 osf3* | osf4* | osf5*)
13711   version_type=osf
13712   need_lib_prefix=no
13713   need_version=no
13714   soname_spec='${libname}${release}${shared_ext}$major'
13715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716   shlibpath_var=LD_LIBRARY_PATH
13717   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13718   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13719   ;;
13720
13721 sco3.2v5*)
13722   version_type=osf
13723   soname_spec='${libname}${release}${shared_ext}$major'
13724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13725   shlibpath_var=LD_LIBRARY_PATH
13726   ;;
13727
13728 solaris*)
13729   version_type=linux
13730   need_lib_prefix=no
13731   need_version=no
13732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13733   soname_spec='${libname}${release}${shared_ext}$major'
13734   shlibpath_var=LD_LIBRARY_PATH
13735   shlibpath_overrides_runpath=yes
13736   hardcode_into_libs=yes
13737   # ldd complains unless libraries are executable
13738   postinstall_cmds='chmod +x $lib'
13739   ;;
13740
13741 sunos4*)
13742   version_type=sunos
13743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13744   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13745   shlibpath_var=LD_LIBRARY_PATH
13746   shlibpath_overrides_runpath=yes
13747   if test "$with_gnu_ld" = yes; then
13748     need_lib_prefix=no
13749   fi
13750   need_version=yes
13751   ;;
13752
13753 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13754   version_type=linux
13755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13756   soname_spec='${libname}${release}${shared_ext}$major'
13757   shlibpath_var=LD_LIBRARY_PATH
13758   case $host_vendor in
13759     sni)
13760       shlibpath_overrides_runpath=no
13761       need_lib_prefix=no
13762       export_dynamic_flag_spec='${wl}-Blargedynsym'
13763       runpath_var=LD_RUN_PATH
13764       ;;
13765     siemens)
13766       need_lib_prefix=no
13767       ;;
13768     motorola)
13769       need_lib_prefix=no
13770       need_version=no
13771       shlibpath_overrides_runpath=no
13772       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13773       ;;
13774   esac
13775   ;;
13776
13777 sysv4*MP*)
13778   if test -d /usr/nec ;then
13779     version_type=linux
13780     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13781     soname_spec='$libname${shared_ext}.$major'
13782     shlibpath_var=LD_LIBRARY_PATH
13783   fi
13784   ;;
13785
13786 uts4*)
13787   version_type=linux
13788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789   soname_spec='${libname}${release}${shared_ext}$major'
13790   shlibpath_var=LD_LIBRARY_PATH
13791   ;;
13792
13793 *)
13794   dynamic_linker=no
13795   ;;
13796 esac
13797 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13798 echo "${ECHO_T}$dynamic_linker" >&6
13799 test "$dynamic_linker" = no && can_build_shared=no
13800
13801 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13802 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13803 hardcode_action_CXX=
13804 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13805    test -n "$runpath_var CXX" || \
13806    test "X$hardcode_automatic_CXX"="Xyes" ; then
13807
13808   # We can hardcode non-existant directories.
13809   if test "$hardcode_direct_CXX" != no &&
13810      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13811      # have to relink, otherwise we might link with an installed library
13812      # when we should be linking with a yet-to-be-installed one
13813      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13814      test "$hardcode_minus_L_CXX" != no; then
13815     # Linking always hardcodes the temporary library directory.
13816     hardcode_action_CXX=relink
13817   else
13818     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13819     hardcode_action_CXX=immediate
13820   fi
13821 else
13822   # We cannot hardcode anything, or else we can only hardcode existing
13823   # directories.
13824   hardcode_action_CXX=unsupported
13825 fi
13826 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13827 echo "${ECHO_T}$hardcode_action_CXX" >&6
13828
13829 if test "$hardcode_action_CXX" = relink; then
13830   # Fast installation is not supported
13831   enable_fast_install=no
13832 elif test "$shlibpath_overrides_runpath" = yes ||
13833      test "$enable_shared" = no; then
13834   # Fast installation is not necessary
13835   enable_fast_install=needless
13836 fi
13837
13838 striplib=
13839 old_striplib=
13840 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13841 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13842 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13843   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13844   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13845   echo "$as_me:$LINENO: result: yes" >&5
13846 echo "${ECHO_T}yes" >&6
13847 else
13848 # FIXME - insert some real tests, host_os isn't really good enough
13849   case $host_os in
13850    darwin*)
13851        if test -n "$STRIP" ; then
13852          striplib="$STRIP -x"
13853          echo "$as_me:$LINENO: result: yes" >&5
13854 echo "${ECHO_T}yes" >&6
13855        else
13856   echo "$as_me:$LINENO: result: no" >&5
13857 echo "${ECHO_T}no" >&6
13858 fi
13859        ;;
13860    *)
13861   echo "$as_me:$LINENO: result: no" >&5
13862 echo "${ECHO_T}no" >&6
13863     ;;
13864   esac
13865 fi
13866
13867 if test "x$enable_dlopen" != xyes; then
13868   enable_dlopen=unknown
13869   enable_dlopen_self=unknown
13870   enable_dlopen_self_static=unknown
13871 else
13872   lt_cv_dlopen=no
13873   lt_cv_dlopen_libs=
13874
13875   case $host_os in
13876   beos*)
13877     lt_cv_dlopen="load_add_on"
13878     lt_cv_dlopen_libs=
13879     lt_cv_dlopen_self=yes
13880     ;;
13881
13882   mingw* | pw32*)
13883     lt_cv_dlopen="LoadLibrary"
13884     lt_cv_dlopen_libs=
13885    ;;
13886
13887   cygwin*)
13888     lt_cv_dlopen="dlopen"
13889     lt_cv_dlopen_libs=
13890    ;;
13891
13892   darwin*)
13893   # if libdl is installed we need to link against it
13894     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13895 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13896 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13897   echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899   ac_check_lib_save_LIBS=$LIBS
13900 LIBS="-ldl  $LIBS"
13901 cat >conftest.$ac_ext <<_ACEOF
13902 /* confdefs.h.  */
13903 _ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h.  */
13907
13908 /* Override any gcc2 internal prototype to avoid an error.  */
13909 #ifdef __cplusplus
13910 extern "C"
13911 #endif
13912 /* We use char because int might match the return type of a gcc2
13913    builtin and then its argument prototype would still apply.  */
13914 char dlopen ();
13915 int
13916 main ()
13917 {
13918 dlopen ();
13919   ;
13920   return 0;
13921 }
13922 _ACEOF
13923 rm -f conftest.$ac_objext conftest$ac_exeext
13924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13925   (eval $ac_link) 2>conftest.er1
13926   ac_status=$?
13927   grep -v '^ *+' conftest.er1 >conftest.err
13928   rm -f conftest.er1
13929   cat conftest.err >&5
13930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931   (exit $ac_status); } &&
13932          { ac_try='test -z "$ac_cxx_werror_flag"
13933                          || test ! -s conftest.err'
13934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935   (eval $ac_try) 2>&5
13936   ac_status=$?
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); }; } &&
13939          { ac_try='test -s conftest$ac_exeext'
13940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941   (eval $ac_try) 2>&5
13942   ac_status=$?
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); }; }; then
13945   ac_cv_lib_dl_dlopen=yes
13946 else
13947   echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13949
13950 ac_cv_lib_dl_dlopen=no
13951 fi
13952 rm -f conftest.err conftest.$ac_objext \
13953       conftest$ac_exeext conftest.$ac_ext
13954 LIBS=$ac_check_lib_save_LIBS
13955 fi
13956 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13957 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13958 if test $ac_cv_lib_dl_dlopen = yes; then
13959   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13960 else
13961
13962     lt_cv_dlopen="dyld"
13963     lt_cv_dlopen_libs=
13964     lt_cv_dlopen_self=yes
13965
13966 fi
13967
13968    ;;
13969
13970   *)
13971     echo "$as_me:$LINENO: checking for shl_load" >&5
13972 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13973 if test "${ac_cv_func_shl_load+set}" = set; then
13974   echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976   cat >conftest.$ac_ext <<_ACEOF
13977 /* confdefs.h.  */
13978 _ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h.  */
13982 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13984 #define shl_load innocuous_shl_load
13985
13986 /* System header to define __stub macros and hopefully few prototypes,
13987     which can conflict with char shl_load (); below.
13988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13989     <limits.h> exists even on freestanding compilers.  */
13990
13991 #ifdef __STDC__
13992 # include <limits.h>
13993 #else
13994 # include <assert.h>
13995 #endif
13996
13997 #undef shl_load
13998
13999 /* Override any gcc2 internal prototype to avoid an error.  */
14000 #ifdef __cplusplus
14001 extern "C"
14002 {
14003 #endif
14004 /* We use char because int might match the return type of a gcc2
14005    builtin and then its argument prototype would still apply.  */
14006 char shl_load ();
14007 /* The GNU C library defines this for functions which it implements
14008     to always fail with ENOSYS.  Some functions are actually named
14009     something starting with __ and the normal name is an alias.  */
14010 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14011 choke me
14012 #else
14013 char (*f) () = shl_load;
14014 #endif
14015 #ifdef __cplusplus
14016 }
14017 #endif
14018
14019 int
14020 main ()
14021 {
14022 return f != shl_load;
14023   ;
14024   return 0;
14025 }
14026 _ACEOF
14027 rm -f conftest.$ac_objext conftest$ac_exeext
14028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14029   (eval $ac_link) 2>conftest.er1
14030   ac_status=$?
14031   grep -v '^ *+' conftest.er1 >conftest.err
14032   rm -f conftest.er1
14033   cat conftest.err >&5
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); } &&
14036          { ac_try='test -z "$ac_cxx_werror_flag"
14037                          || test ! -s conftest.err'
14038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039   (eval $ac_try) 2>&5
14040   ac_status=$?
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); }; } &&
14043          { ac_try='test -s conftest$ac_exeext'
14044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045   (eval $ac_try) 2>&5
14046   ac_status=$?
14047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048   (exit $ac_status); }; }; then
14049   ac_cv_func_shl_load=yes
14050 else
14051   echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14053
14054 ac_cv_func_shl_load=no
14055 fi
14056 rm -f conftest.err conftest.$ac_objext \
14057       conftest$ac_exeext conftest.$ac_ext
14058 fi
14059 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14060 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14061 if test $ac_cv_func_shl_load = yes; then
14062   lt_cv_dlopen="shl_load"
14063 else
14064   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14065 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14066 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14067   echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069   ac_check_lib_save_LIBS=$LIBS
14070 LIBS="-ldld  $LIBS"
14071 cat >conftest.$ac_ext <<_ACEOF
14072 /* confdefs.h.  */
14073 _ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h.  */
14077
14078 /* Override any gcc2 internal prototype to avoid an error.  */
14079 #ifdef __cplusplus
14080 extern "C"
14081 #endif
14082 /* We use char because int might match the return type of a gcc2
14083    builtin and then its argument prototype would still apply.  */
14084 char shl_load ();
14085 int
14086 main ()
14087 {
14088 shl_load ();
14089   ;
14090   return 0;
14091 }
14092 _ACEOF
14093 rm -f conftest.$ac_objext conftest$ac_exeext
14094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14095   (eval $ac_link) 2>conftest.er1
14096   ac_status=$?
14097   grep -v '^ *+' conftest.er1 >conftest.err
14098   rm -f conftest.er1
14099   cat conftest.err >&5
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); } &&
14102          { ac_try='test -z "$ac_cxx_werror_flag"
14103                          || test ! -s conftest.err'
14104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105   (eval $ac_try) 2>&5
14106   ac_status=$?
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); }; } &&
14109          { ac_try='test -s conftest$ac_exeext'
14110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111   (eval $ac_try) 2>&5
14112   ac_status=$?
14113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); }; }; then
14115   ac_cv_lib_dld_shl_load=yes
14116 else
14117   echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14119
14120 ac_cv_lib_dld_shl_load=no
14121 fi
14122 rm -f conftest.err conftest.$ac_objext \
14123       conftest$ac_exeext conftest.$ac_ext
14124 LIBS=$ac_check_lib_save_LIBS
14125 fi
14126 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14127 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14128 if test $ac_cv_lib_dld_shl_load = yes; then
14129   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14130 else
14131   echo "$as_me:$LINENO: checking for dlopen" >&5
14132 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14133 if test "${ac_cv_func_dlopen+set}" = set; then
14134   echo $ECHO_N "(cached) $ECHO_C" >&6
14135 else
14136   cat >conftest.$ac_ext <<_ACEOF
14137 /* confdefs.h.  */
14138 _ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h.  */
14142 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14144 #define dlopen innocuous_dlopen
14145
14146 /* System header to define __stub macros and hopefully few prototypes,
14147     which can conflict with char dlopen (); below.
14148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14149     <limits.h> exists even on freestanding compilers.  */
14150
14151 #ifdef __STDC__
14152 # include <limits.h>
14153 #else
14154 # include <assert.h>
14155 #endif
14156
14157 #undef dlopen
14158
14159 /* Override any gcc2 internal prototype to avoid an error.  */
14160 #ifdef __cplusplus
14161 extern "C"
14162 {
14163 #endif
14164 /* We use char because int might match the return type of a gcc2
14165    builtin and then its argument prototype would still apply.  */
14166 char dlopen ();
14167 /* The GNU C library defines this for functions which it implements
14168     to always fail with ENOSYS.  Some functions are actually named
14169     something starting with __ and the normal name is an alias.  */
14170 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14171 choke me
14172 #else
14173 char (*f) () = dlopen;
14174 #endif
14175 #ifdef __cplusplus
14176 }
14177 #endif
14178
14179 int
14180 main ()
14181 {
14182 return f != dlopen;
14183   ;
14184   return 0;
14185 }
14186 _ACEOF
14187 rm -f conftest.$ac_objext conftest$ac_exeext
14188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14189   (eval $ac_link) 2>conftest.er1
14190   ac_status=$?
14191   grep -v '^ *+' conftest.er1 >conftest.err
14192   rm -f conftest.er1
14193   cat conftest.err >&5
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); } &&
14196          { ac_try='test -z "$ac_cxx_werror_flag"
14197                          || test ! -s conftest.err'
14198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199   (eval $ac_try) 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; } &&
14203          { ac_try='test -s conftest$ac_exeext'
14204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205   (eval $ac_try) 2>&5
14206   ac_status=$?
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); }; }; then
14209   ac_cv_func_dlopen=yes
14210 else
14211   echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14213
14214 ac_cv_func_dlopen=no
14215 fi
14216 rm -f conftest.err conftest.$ac_objext \
14217       conftest$ac_exeext conftest.$ac_ext
14218 fi
14219 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14220 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14221 if test $ac_cv_func_dlopen = yes; then
14222   lt_cv_dlopen="dlopen"
14223 else
14224   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14225 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14227   echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14229   ac_check_lib_save_LIBS=$LIBS
14230 LIBS="-ldl  $LIBS"
14231 cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h.  */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h.  */
14237
14238 /* Override any gcc2 internal prototype to avoid an error.  */
14239 #ifdef __cplusplus
14240 extern "C"
14241 #endif
14242 /* We use char because int might match the return type of a gcc2
14243    builtin and then its argument prototype would still apply.  */
14244 char dlopen ();
14245 int
14246 main ()
14247 {
14248 dlopen ();
14249   ;
14250   return 0;
14251 }
14252 _ACEOF
14253 rm -f conftest.$ac_objext conftest$ac_exeext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14255   (eval $ac_link) 2>conftest.er1
14256   ac_status=$?
14257   grep -v '^ *+' conftest.er1 >conftest.err
14258   rm -f conftest.er1
14259   cat conftest.err >&5
14260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261   (exit $ac_status); } &&
14262          { ac_try='test -z "$ac_cxx_werror_flag"
14263                          || test ! -s conftest.err'
14264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265   (eval $ac_try) 2>&5
14266   ac_status=$?
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); }; } &&
14269          { ac_try='test -s conftest$ac_exeext'
14270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271   (eval $ac_try) 2>&5
14272   ac_status=$?
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }; }; then
14275   ac_cv_lib_dl_dlopen=yes
14276 else
14277   echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14279
14280 ac_cv_lib_dl_dlopen=no
14281 fi
14282 rm -f conftest.err conftest.$ac_objext \
14283       conftest$ac_exeext conftest.$ac_ext
14284 LIBS=$ac_check_lib_save_LIBS
14285 fi
14286 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14287 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14288 if test $ac_cv_lib_dl_dlopen = yes; then
14289   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14290 else
14291   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14292 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14293 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14294   echo $ECHO_N "(cached) $ECHO_C" >&6
14295 else
14296   ac_check_lib_save_LIBS=$LIBS
14297 LIBS="-lsvld  $LIBS"
14298 cat >conftest.$ac_ext <<_ACEOF
14299 /* confdefs.h.  */
14300 _ACEOF
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h.  */
14304
14305 /* Override any gcc2 internal prototype to avoid an error.  */
14306 #ifdef __cplusplus
14307 extern "C"
14308 #endif
14309 /* We use char because int might match the return type of a gcc2
14310    builtin and then its argument prototype would still apply.  */
14311 char dlopen ();
14312 int
14313 main ()
14314 {
14315 dlopen ();
14316   ;
14317   return 0;
14318 }
14319 _ACEOF
14320 rm -f conftest.$ac_objext conftest$ac_exeext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14322   (eval $ac_link) 2>conftest.er1
14323   ac_status=$?
14324   grep -v '^ *+' conftest.er1 >conftest.err
14325   rm -f conftest.er1
14326   cat conftest.err >&5
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); } &&
14329          { ac_try='test -z "$ac_cxx_werror_flag"
14330                          || test ! -s conftest.err'
14331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332   (eval $ac_try) 2>&5
14333   ac_status=$?
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); }; } &&
14336          { ac_try='test -s conftest$ac_exeext'
14337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338   (eval $ac_try) 2>&5
14339   ac_status=$?
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); }; }; then
14342   ac_cv_lib_svld_dlopen=yes
14343 else
14344   echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14346
14347 ac_cv_lib_svld_dlopen=no
14348 fi
14349 rm -f conftest.err conftest.$ac_objext \
14350       conftest$ac_exeext conftest.$ac_ext
14351 LIBS=$ac_check_lib_save_LIBS
14352 fi
14353 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14354 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14355 if test $ac_cv_lib_svld_dlopen = yes; then
14356   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14357 else
14358   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14359 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14360 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14361   echo $ECHO_N "(cached) $ECHO_C" >&6
14362 else
14363   ac_check_lib_save_LIBS=$LIBS
14364 LIBS="-ldld  $LIBS"
14365 cat >conftest.$ac_ext <<_ACEOF
14366 /* confdefs.h.  */
14367 _ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h.  */
14371
14372 /* Override any gcc2 internal prototype to avoid an error.  */
14373 #ifdef __cplusplus
14374 extern "C"
14375 #endif
14376 /* We use char because int might match the return type of a gcc2
14377    builtin and then its argument prototype would still apply.  */
14378 char dld_link ();
14379 int
14380 main ()
14381 {
14382 dld_link ();
14383   ;
14384   return 0;
14385 }
14386 _ACEOF
14387 rm -f conftest.$ac_objext conftest$ac_exeext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14389   (eval $ac_link) 2>conftest.er1
14390   ac_status=$?
14391   grep -v '^ *+' conftest.er1 >conftest.err
14392   rm -f conftest.er1
14393   cat conftest.err >&5
14394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); } &&
14396          { ac_try='test -z "$ac_cxx_werror_flag"
14397                          || test ! -s conftest.err'
14398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399   (eval $ac_try) 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); }; } &&
14403          { ac_try='test -s conftest$ac_exeext'
14404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405   (eval $ac_try) 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; }; then
14409   ac_cv_lib_dld_dld_link=yes
14410 else
14411   echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414 ac_cv_lib_dld_dld_link=no
14415 fi
14416 rm -f conftest.err conftest.$ac_objext \
14417       conftest$ac_exeext conftest.$ac_ext
14418 LIBS=$ac_check_lib_save_LIBS
14419 fi
14420 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14421 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14422 if test $ac_cv_lib_dld_dld_link = yes; then
14423   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14424 fi
14425
14426
14427 fi
14428
14429
14430 fi
14431
14432
14433 fi
14434
14435
14436 fi
14437
14438
14439 fi
14440
14441     ;;
14442   esac
14443
14444   if test "x$lt_cv_dlopen" != xno; then
14445     enable_dlopen=yes
14446   else
14447     enable_dlopen=no
14448   fi
14449
14450   case $lt_cv_dlopen in
14451   dlopen)
14452     save_CPPFLAGS="$CPPFLAGS"
14453     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14454
14455     save_LDFLAGS="$LDFLAGS"
14456     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14457
14458     save_LIBS="$LIBS"
14459     LIBS="$lt_cv_dlopen_libs $LIBS"
14460
14461     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14462 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14463 if test "${lt_cv_dlopen_self+set}" = set; then
14464   echo $ECHO_N "(cached) $ECHO_C" >&6
14465 else
14466           if test "$cross_compiling" = yes; then :
14467   lt_cv_dlopen_self=cross
14468 else
14469   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14470   lt_status=$lt_dlunknown
14471   cat > conftest.$ac_ext <<EOF
14472 #line 14472 "configure"
14473 #include "confdefs.h"
14474
14475 #if HAVE_DLFCN_H
14476 #include <dlfcn.h>
14477 #endif
14478
14479 #include <stdio.h>
14480
14481 #ifdef RTLD_GLOBAL
14482 #  define LT_DLGLOBAL           RTLD_GLOBAL
14483 #else
14484 #  ifdef DL_GLOBAL
14485 #    define LT_DLGLOBAL         DL_GLOBAL
14486 #  else
14487 #    define LT_DLGLOBAL         0
14488 #  endif
14489 #endif
14490
14491 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14492    find out it does not work in some platform. */
14493 #ifndef LT_DLLAZY_OR_NOW
14494 #  ifdef RTLD_LAZY
14495 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14496 #  else
14497 #    ifdef DL_LAZY
14498 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14499 #    else
14500 #      ifdef RTLD_NOW
14501 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14502 #      else
14503 #        ifdef DL_NOW
14504 #          define LT_DLLAZY_OR_NOW      DL_NOW
14505 #        else
14506 #          define LT_DLLAZY_OR_NOW      0
14507 #        endif
14508 #      endif
14509 #    endif
14510 #  endif
14511 #endif
14512
14513 #ifdef __cplusplus
14514 extern "C" void exit (int);
14515 #endif
14516
14517 void fnord() { int i=42;}
14518 int main ()
14519 {
14520   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14521   int status = $lt_dlunknown;
14522
14523   if (self)
14524     {
14525       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14526       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14527       /* dlclose (self); */
14528     }
14529
14530     exit (status);
14531 }
14532 EOF
14533   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14534   (eval $ac_link) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14538     (./conftest; exit; ) 2>/dev/null
14539     lt_status=$?
14540     case x$lt_status in
14541       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14542       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14543       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14544     esac
14545   else :
14546     # compilation failed
14547     lt_cv_dlopen_self=no
14548   fi
14549 fi
14550 rm -fr conftest*
14551
14552
14553 fi
14554 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14555 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14556
14557     if test "x$lt_cv_dlopen_self" = xyes; then
14558       LDFLAGS="$LDFLAGS $link_static_flag"
14559       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14560 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14561 if test "${lt_cv_dlopen_self_static+set}" = set; then
14562   echo $ECHO_N "(cached) $ECHO_C" >&6
14563 else
14564           if test "$cross_compiling" = yes; then :
14565   lt_cv_dlopen_self_static=cross
14566 else
14567   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14568   lt_status=$lt_dlunknown
14569   cat > conftest.$ac_ext <<EOF
14570 #line 14570 "configure"
14571 #include "confdefs.h"
14572
14573 #if HAVE_DLFCN_H
14574 #include <dlfcn.h>
14575 #endif
14576
14577 #include <stdio.h>
14578
14579 #ifdef RTLD_GLOBAL
14580 #  define LT_DLGLOBAL           RTLD_GLOBAL
14581 #else
14582 #  ifdef DL_GLOBAL
14583 #    define LT_DLGLOBAL         DL_GLOBAL
14584 #  else
14585 #    define LT_DLGLOBAL         0
14586 #  endif
14587 #endif
14588
14589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14590    find out it does not work in some platform. */
14591 #ifndef LT_DLLAZY_OR_NOW
14592 #  ifdef RTLD_LAZY
14593 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14594 #  else
14595 #    ifdef DL_LAZY
14596 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14597 #    else
14598 #      ifdef RTLD_NOW
14599 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14600 #      else
14601 #        ifdef DL_NOW
14602 #          define LT_DLLAZY_OR_NOW      DL_NOW
14603 #        else
14604 #          define LT_DLLAZY_OR_NOW      0
14605 #        endif
14606 #      endif
14607 #    endif
14608 #  endif
14609 #endif
14610
14611 #ifdef __cplusplus
14612 extern "C" void exit (int);
14613 #endif
14614
14615 void fnord() { int i=42;}
14616 int main ()
14617 {
14618   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14619   int status = $lt_dlunknown;
14620
14621   if (self)
14622     {
14623       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14624       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14625       /* dlclose (self); */
14626     }
14627
14628     exit (status);
14629 }
14630 EOF
14631   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14632   (eval $ac_link) 2>&5
14633   ac_status=$?
14634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14636     (./conftest; exit; ) 2>/dev/null
14637     lt_status=$?
14638     case x$lt_status in
14639       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14640       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14641       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14642     esac
14643   else :
14644     # compilation failed
14645     lt_cv_dlopen_self_static=no
14646   fi
14647 fi
14648 rm -fr conftest*
14649
14650
14651 fi
14652 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14653 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14654     fi
14655
14656     CPPFLAGS="$save_CPPFLAGS"
14657     LDFLAGS="$save_LDFLAGS"
14658     LIBS="$save_LIBS"
14659     ;;
14660   esac
14661
14662   case $lt_cv_dlopen_self in
14663   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14664   *) enable_dlopen_self=unknown ;;
14665   esac
14666
14667   case $lt_cv_dlopen_self_static in
14668   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14669   *) enable_dlopen_self_static=unknown ;;
14670   esac
14671 fi
14672
14673
14674 # The else clause should only fire when bootstrapping the
14675 # libtool distribution, otherwise you forgot to ship ltmain.sh
14676 # with your package, and you will get complaints that there are
14677 # no rules to generate ltmain.sh.
14678 if test -f "$ltmain"; then
14679   # See if we are running on zsh, and set the options which allow our commands through
14680   # without removal of \ escapes.
14681   if test -n "${ZSH_VERSION+set}" ; then
14682     setopt NO_GLOB_SUBST
14683   fi
14684   # Now quote all the things that may contain metacharacters while being
14685   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14686   # variables and quote the copies for generation of the libtool script.
14687   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14688     SED SHELL STRIP \
14689     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14690     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14691     deplibs_check_method reload_flag reload_cmds need_locks \
14692     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14693     lt_cv_sys_global_symbol_to_c_name_address \
14694     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14695     old_postinstall_cmds old_postuninstall_cmds \
14696     compiler_CXX \
14697     CC_CXX \
14698     LD_CXX \
14699     lt_prog_compiler_wl_CXX \
14700     lt_prog_compiler_pic_CXX \
14701     lt_prog_compiler_static_CXX \
14702     lt_prog_compiler_no_builtin_flag_CXX \
14703     export_dynamic_flag_spec_CXX \
14704     thread_safe_flag_spec_CXX \
14705     whole_archive_flag_spec_CXX \
14706     enable_shared_with_static_runtimes_CXX \
14707     old_archive_cmds_CXX \
14708     old_archive_from_new_cmds_CXX \
14709     predep_objects_CXX \
14710     postdep_objects_CXX \
14711     predeps_CXX \
14712     postdeps_CXX \
14713     compiler_lib_search_path_CXX \
14714     archive_cmds_CXX \
14715     archive_expsym_cmds_CXX \
14716     postinstall_cmds_CXX \
14717     postuninstall_cmds_CXX \
14718     old_archive_from_expsyms_cmds_CXX \
14719     allow_undefined_flag_CXX \
14720     no_undefined_flag_CXX \
14721     export_symbols_cmds_CXX \
14722     hardcode_libdir_flag_spec_CXX \
14723     hardcode_libdir_flag_spec_ld_CXX \
14724     hardcode_libdir_separator_CXX \
14725     hardcode_automatic_CXX \
14726     module_cmds_CXX \
14727     module_expsym_cmds_CXX \
14728     lt_cv_prog_compiler_c_o_CXX \
14729     exclude_expsyms_CXX \
14730     include_expsyms_CXX; do
14731
14732     case $var in
14733     old_archive_cmds_CXX | \
14734     old_archive_from_new_cmds_CXX | \
14735     archive_cmds_CXX | \
14736     archive_expsym_cmds_CXX | \
14737     module_cmds_CXX | \
14738     module_expsym_cmds_CXX | \
14739     old_archive_from_expsyms_cmds_CXX | \
14740     export_symbols_cmds_CXX | \
14741     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14742     postinstall_cmds | postuninstall_cmds | \
14743     old_postinstall_cmds | old_postuninstall_cmds | \
14744     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14745       # Double-quote double-evaled strings.
14746       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14747       ;;
14748     *)
14749       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14750       ;;
14751     esac
14752   done
14753
14754   case $lt_echo in
14755   *'\$0 --fallback-echo"')
14756     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14757     ;;
14758   esac
14759
14760 cfgfile="$ofile"
14761
14762   cat <<__EOF__ >> "$cfgfile"
14763 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14764
14765 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14766
14767 # Shell to use when invoking shell scripts.
14768 SHELL=$lt_SHELL
14769
14770 # Whether or not to build shared libraries.
14771 build_libtool_libs=$enable_shared
14772
14773 # Whether or not to build static libraries.
14774 build_old_libs=$enable_static
14775
14776 # Whether or not to add -lc for building shared libraries.
14777 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14778
14779 # Whether or not to disallow shared libs when runtime libs are static
14780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14781
14782 # Whether or not to optimize for fast installation.
14783 fast_install=$enable_fast_install
14784
14785 # The host system.
14786 host_alias=$host_alias
14787 host=$host
14788
14789 # An echo program that does not interpret backslashes.
14790 echo=$lt_echo
14791
14792 # The archiver.
14793 AR=$lt_AR
14794 AR_FLAGS=$lt_AR_FLAGS
14795
14796 # A C compiler.
14797 LTCC=$lt_LTCC
14798
14799 # A language-specific compiler.
14800 CC=$lt_compiler_CXX
14801
14802 # Is the compiler the GNU C compiler?
14803 with_gcc=$GCC_CXX
14804
14805 # An ERE matcher.
14806 EGREP=$lt_EGREP
14807
14808 # The linker used to build libraries.
14809 LD=$lt_LD_CXX
14810
14811 # Whether we need hard or soft links.
14812 LN_S=$lt_LN_S
14813
14814 # A BSD-compatible nm program.
14815 NM=$lt_NM
14816
14817 # A symbol stripping program
14818 STRIP=$lt_STRIP
14819
14820 # Used to examine libraries when file_magic_cmd begins "file"
14821 MAGIC_CMD=$MAGIC_CMD
14822
14823 # Used on cygwin: DLL creation program.
14824 DLLTOOL="$DLLTOOL"
14825
14826 # Used on cygwin: object dumper.
14827 OBJDUMP="$OBJDUMP"
14828
14829 # Used on cygwin: assembler.
14830 AS="$AS"
14831
14832 # The name of the directory that contains temporary libtool files.
14833 objdir=$objdir
14834
14835 # How to create reloadable object files.
14836 reload_flag=$lt_reload_flag
14837 reload_cmds=$lt_reload_cmds
14838
14839 # How to pass a linker flag through the compiler.
14840 wl=$lt_lt_prog_compiler_wl_CXX
14841
14842 # Object file suffix (normally "o").
14843 objext="$ac_objext"
14844
14845 # Old archive suffix (normally "a").
14846 libext="$libext"
14847
14848 # Shared library suffix (normally ".so").
14849 shrext_cmds='$shrext_cmds'
14850
14851 # Executable file suffix (normally "").
14852 exeext="$exeext"
14853
14854 # Additional compiler flags for building library objects.
14855 pic_flag=$lt_lt_prog_compiler_pic_CXX
14856 pic_mode=$pic_mode
14857
14858 # What is the maximum length of a command?
14859 max_cmd_len=$lt_cv_sys_max_cmd_len
14860
14861 # Does compiler simultaneously support -c and -o options?
14862 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14863
14864 # Must we lock files when doing compilation ?
14865 need_locks=$lt_need_locks
14866
14867 # Do we need the lib prefix for modules?
14868 need_lib_prefix=$need_lib_prefix
14869
14870 # Do we need a version for libraries?
14871 need_version=$need_version
14872
14873 # Whether dlopen is supported.
14874 dlopen_support=$enable_dlopen
14875
14876 # Whether dlopen of programs is supported.
14877 dlopen_self=$enable_dlopen_self
14878
14879 # Whether dlopen of statically linked programs is supported.
14880 dlopen_self_static=$enable_dlopen_self_static
14881
14882 # Compiler flag to prevent dynamic linking.
14883 link_static_flag=$lt_lt_prog_compiler_static_CXX
14884
14885 # Compiler flag to turn off builtin functions.
14886 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14887
14888 # Compiler flag to allow reflexive dlopens.
14889 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14890
14891 # Compiler flag to generate shared objects directly from archives.
14892 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14893
14894 # Compiler flag to generate thread-safe objects.
14895 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14896
14897 # Library versioning type.
14898 version_type=$version_type
14899
14900 # Format of library name prefix.
14901 libname_spec=$lt_libname_spec
14902
14903 # List of archive names.  First name is the real one, the rest are links.
14904 # The last name is the one that the linker finds with -lNAME.
14905 library_names_spec=$lt_library_names_spec
14906
14907 # The coded name of the library, if different from the real name.
14908 soname_spec=$lt_soname_spec
14909
14910 # Commands used to build and install an old-style archive.
14911 RANLIB=$lt_RANLIB
14912 old_archive_cmds=$lt_old_archive_cmds_CXX
14913 old_postinstall_cmds=$lt_old_postinstall_cmds
14914 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14915
14916 # Create an old-style archive from a shared archive.
14917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14918
14919 # Create a temporary old-style archive to link instead of a shared archive.
14920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14921
14922 # Commands used to build and install a shared archive.
14923 archive_cmds=$lt_archive_cmds_CXX
14924 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14925 postinstall_cmds=$lt_postinstall_cmds
14926 postuninstall_cmds=$lt_postuninstall_cmds
14927
14928 # Commands used to build a loadable module (assumed same as above if empty)
14929 module_cmds=$lt_module_cmds_CXX
14930 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14931
14932 # Commands to strip libraries.
14933 old_striplib=$lt_old_striplib
14934 striplib=$lt_striplib
14935
14936 # Dependencies to place before the objects being linked to create a
14937 # shared library.
14938 predep_objects=$lt_predep_objects_CXX
14939
14940 # Dependencies to place after the objects being linked to create a
14941 # shared library.
14942 postdep_objects=$lt_postdep_objects_CXX
14943
14944 # Dependencies to place before the objects being linked to create a
14945 # shared library.
14946 predeps=$lt_predeps_CXX
14947
14948 # Dependencies to place after the objects being linked to create a
14949 # shared library.
14950 postdeps=$lt_postdeps_CXX
14951
14952 # The library search path used internally by the compiler when linking
14953 # a shared library.
14954 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14955
14956 # Method to check whether dependent libraries are shared objects.
14957 deplibs_check_method=$lt_deplibs_check_method
14958
14959 # Command to use when deplibs_check_method == file_magic.
14960 file_magic_cmd=$lt_file_magic_cmd
14961
14962 # Flag that allows shared libraries with undefined symbols to be built.
14963 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14964
14965 # Flag that forces no undefined symbols.
14966 no_undefined_flag=$lt_no_undefined_flag_CXX
14967
14968 # Commands used to finish a libtool library installation in a directory.
14969 finish_cmds=$lt_finish_cmds
14970
14971 # Same as above, but a single script fragment to be evaled but not shown.
14972 finish_eval=$lt_finish_eval
14973
14974 # Take the output of nm and produce a listing of raw symbols and C names.
14975 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14976
14977 # Transform the output of nm in a proper C declaration
14978 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14979
14980 # Transform the output of nm in a C name address pair
14981 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14982
14983 # This is the shared library runtime path variable.
14984 runpath_var=$runpath_var
14985
14986 # This is the shared library path variable.
14987 shlibpath_var=$shlibpath_var
14988
14989 # Is shlibpath searched before the hard-coded library search path?
14990 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14991
14992 # How to hardcode a shared library path into an executable.
14993 hardcode_action=$hardcode_action_CXX
14994
14995 # Whether we should hardcode library paths into libraries.
14996 hardcode_into_libs=$hardcode_into_libs
14997
14998 # Flag to hardcode \$libdir into a binary during linking.
14999 # This must work even if \$libdir does not exist.
15000 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15001
15002 # If ld is used when linking, flag to hardcode \$libdir into
15003 # a binary during linking. This must work even if \$libdir does
15004 # not exist.
15005 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15006
15007 # Whether we need a single -rpath flag with a separated argument.
15008 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15009
15010 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15011 # resulting binary.
15012 hardcode_direct=$hardcode_direct_CXX
15013
15014 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15015 # resulting binary.
15016 hardcode_minus_L=$hardcode_minus_L_CXX
15017
15018 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15019 # the resulting binary.
15020 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15021
15022 # Set to yes if building a shared library automatically hardcodes DIR into the library
15023 # and all subsequent libraries and executables linked against it.
15024 hardcode_automatic=$hardcode_automatic_CXX
15025
15026 # Variables whose values should be saved in libtool wrapper scripts and
15027 # restored at relink time.
15028 variables_saved_for_relink="$variables_saved_for_relink"
15029
15030 # Whether libtool must link a program against all its dependency libraries.
15031 link_all_deplibs=$link_all_deplibs_CXX
15032
15033 # Compile-time system search path for libraries
15034 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15035
15036 # Run-time system search path for libraries
15037 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15038
15039 # Fix the shell variable \$srcfile for the compiler.
15040 fix_srcfile_path="$fix_srcfile_path_CXX"
15041
15042 # Set to yes if exported symbols are required.
15043 always_export_symbols=$always_export_symbols_CXX
15044
15045 # The commands to list exported symbols.
15046 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15047
15048 # The commands to extract the exported symbol list from a shared archive.
15049 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15050
15051 # Symbols that should not be listed in the preloaded symbols.
15052 exclude_expsyms=$lt_exclude_expsyms_CXX
15053
15054 # Symbols that must always be exported.
15055 include_expsyms=$lt_include_expsyms_CXX
15056
15057 # ### END LIBTOOL TAG CONFIG: $tagname
15058
15059 __EOF__
15060
15061
15062 else
15063   # If there is no Makefile yet, we rely on a make rule to execute
15064   # `config.status --recheck' to rerun these tests and create the
15065   # libtool script then.
15066   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15067   if test -f "$ltmain_in"; then
15068     test -f Makefile && make "$ltmain"
15069   fi
15070 fi
15071
15072
15073 ac_ext=c
15074 ac_cpp='$CPP $CPPFLAGS'
15075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15078
15079 CC=$lt_save_CC
15080 LDCXX=$LD
15081 LD=$lt_save_LD
15082 GCC=$lt_save_GCC
15083 with_gnu_ldcxx=$with_gnu_ld
15084 with_gnu_ld=$lt_save_with_gnu_ld
15085 lt_cv_path_LDCXX=$lt_cv_path_LD
15086 lt_cv_path_LD=$lt_save_path_LD
15087 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15088 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15089
15090         else
15091           tagname=""
15092         fi
15093         ;;
15094
15095       F77)
15096         if test -n "$F77" && test "X$F77" != "Xno"; then
15097
15098 ac_ext=f
15099 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15100 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15101 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15102
15103
15104 archive_cmds_need_lc_F77=no
15105 allow_undefined_flag_F77=
15106 always_export_symbols_F77=no
15107 archive_expsym_cmds_F77=
15108 export_dynamic_flag_spec_F77=
15109 hardcode_direct_F77=no
15110 hardcode_libdir_flag_spec_F77=
15111 hardcode_libdir_flag_spec_ld_F77=
15112 hardcode_libdir_separator_F77=
15113 hardcode_minus_L_F77=no
15114 hardcode_automatic_F77=no
15115 module_cmds_F77=
15116 module_expsym_cmds_F77=
15117 link_all_deplibs_F77=unknown
15118 old_archive_cmds_F77=$old_archive_cmds
15119 no_undefined_flag_F77=
15120 whole_archive_flag_spec_F77=
15121 enable_shared_with_static_runtimes_F77=no
15122
15123 # Source file extension for f77 test sources.
15124 ac_ext=f
15125
15126 # Object file extension for compiled f77 test sources.
15127 objext=o
15128 objext_F77=$objext
15129
15130 # Code to be used in simple compile tests
15131 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15132
15133 # Code to be used in simple link tests
15134 lt_simple_link_test_code="      program t\n      end\n"
15135
15136 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15137
15138 # If no C compiler was specified, use CC.
15139 LTCC=${LTCC-"$CC"}
15140
15141 # Allow CC to be a program name with arguments.
15142 compiler=$CC
15143
15144
15145 # Allow CC to be a program name with arguments.
15146 lt_save_CC="$CC"
15147 CC=${F77-"f77"}
15148 compiler=$CC
15149 compiler_F77=$CC
15150 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15151
15152 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15153 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15154 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15155 echo "${ECHO_T}$can_build_shared" >&6
15156
15157 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15158 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15159 test "$can_build_shared" = "no" && enable_shared=no
15160
15161 # On AIX, shared libraries and static libraries use the same namespace, and
15162 # are all built from PIC.
15163 case "$host_os" in
15164 aix3*)
15165   test "$enable_shared" = yes && enable_static=no
15166   if test -n "$RANLIB"; then
15167     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15168     postinstall_cmds='$RANLIB $lib'
15169   fi
15170   ;;
15171 aix4* | aix5*)
15172   test "$enable_shared" = yes && enable_static=no
15173   ;;
15174 esac
15175 echo "$as_me:$LINENO: result: $enable_shared" >&5
15176 echo "${ECHO_T}$enable_shared" >&6
15177
15178 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15179 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15180 # Make sure either enable_shared or enable_static is yes.
15181 test "$enable_shared" = yes || enable_static=yes
15182 echo "$as_me:$LINENO: result: $enable_static" >&5
15183 echo "${ECHO_T}$enable_static" >&6
15184
15185 test "$ld_shlibs_F77" = no && can_build_shared=no
15186
15187 GCC_F77="$G77"
15188 LD_F77="$LD"
15189
15190 lt_prog_compiler_wl_F77=
15191 lt_prog_compiler_pic_F77=
15192 lt_prog_compiler_static_F77=
15193
15194 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15195 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15196
15197   if test "$GCC" = yes; then
15198     lt_prog_compiler_wl_F77='-Wl,'
15199     lt_prog_compiler_static_F77='-static'
15200
15201     case $host_os in
15202       aix*)
15203       # All AIX code is PIC.
15204       if test "$host_cpu" = ia64; then
15205         # AIX 5 now supports IA64 processor
15206         lt_prog_compiler_static_F77='-Bstatic'
15207       fi
15208       ;;
15209
15210     amigaos*)
15211       # FIXME: we need at least 68020 code to build shared libraries, but
15212       # adding the `-m68020' flag to GCC prevents building anything better,
15213       # like `-m68040'.
15214       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15215       ;;
15216
15217     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15218       # PIC is the default for these OSes.
15219       ;;
15220
15221     mingw* | pw32* | os2*)
15222       # This hack is so that the source file can tell whether it is being
15223       # built for inclusion in a dll (and should export symbols for example).
15224       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15225       ;;
15226
15227     darwin* | rhapsody*)
15228       # PIC is the default on this platform
15229       # Common symbols not allowed in MH_DYLIB files
15230       lt_prog_compiler_pic_F77='-fno-common'
15231       ;;
15232
15233     msdosdjgpp*)
15234       # Just because we use GCC doesn't mean we suddenly get shared libraries
15235       # on systems that don't support them.
15236       lt_prog_compiler_can_build_shared_F77=no
15237       enable_shared=no
15238       ;;
15239
15240     sysv4*MP*)
15241       if test -d /usr/nec; then
15242         lt_prog_compiler_pic_F77=-Kconform_pic
15243       fi
15244       ;;
15245
15246     hpux*)
15247       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15248       # not for PA HP-UX.
15249       case "$host_cpu" in
15250       hppa*64*|ia64*)
15251         # +Z the default
15252         ;;
15253       *)
15254         lt_prog_compiler_pic_F77='-fPIC'
15255         ;;
15256       esac
15257       ;;
15258
15259     *)
15260       lt_prog_compiler_pic_F77='-fPIC'
15261       ;;
15262     esac
15263   else
15264     # PORTME Check for flag to pass linker flags through the system compiler.
15265     case $host_os in
15266     aix*)
15267       lt_prog_compiler_wl_F77='-Wl,'
15268       if test "$host_cpu" = ia64; then
15269         # AIX 5 now supports IA64 processor
15270         lt_prog_compiler_static_F77='-Bstatic'
15271       else
15272         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15273       fi
15274       ;;
15275
15276     mingw* | pw32* | os2*)
15277       # This hack is so that the source file can tell whether it is being
15278       # built for inclusion in a dll (and should export symbols for example).
15279       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15280       ;;
15281
15282     hpux9* | hpux10* | hpux11*)
15283       lt_prog_compiler_wl_F77='-Wl,'
15284       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15285       # not for PA HP-UX.
15286       case "$host_cpu" in
15287       hppa*64*|ia64*)
15288         # +Z the default
15289         ;;
15290       *)
15291         lt_prog_compiler_pic_F77='+Z'
15292         ;;
15293       esac
15294       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15295       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15296       ;;
15297
15298     irix5* | irix6* | nonstopux*)
15299       lt_prog_compiler_wl_F77='-Wl,'
15300       # PIC (with -KPIC) is the default.
15301       lt_prog_compiler_static_F77='-non_shared'
15302       ;;
15303
15304     newsos6)
15305       lt_prog_compiler_pic_F77='-KPIC'
15306       lt_prog_compiler_static_F77='-Bstatic'
15307       ;;
15308
15309     linux*)
15310       case $CC in
15311       icc* | ecc*)
15312         lt_prog_compiler_wl_F77='-Wl,'
15313         lt_prog_compiler_pic_F77='-KPIC'
15314         lt_prog_compiler_static_F77='-static'
15315         ;;
15316       ccc*)
15317         lt_prog_compiler_wl_F77='-Wl,'
15318         # All Alpha code is PIC.
15319         lt_prog_compiler_static_F77='-non_shared'
15320         ;;
15321       esac
15322       ;;
15323
15324     osf3* | osf4* | osf5*)
15325       lt_prog_compiler_wl_F77='-Wl,'
15326       # All OSF/1 code is PIC.
15327       lt_prog_compiler_static_F77='-non_shared'
15328       ;;
15329
15330     sco3.2v5*)
15331       lt_prog_compiler_pic_F77='-Kpic'
15332       lt_prog_compiler_static_F77='-dn'
15333       ;;
15334
15335     solaris*)
15336       lt_prog_compiler_wl_F77='-Wl,'
15337       lt_prog_compiler_pic_F77='-KPIC'
15338       lt_prog_compiler_static_F77='-Bstatic'
15339       ;;
15340
15341     sunos4*)
15342       lt_prog_compiler_wl_F77='-Qoption ld '
15343       lt_prog_compiler_pic_F77='-PIC'
15344       lt_prog_compiler_static_F77='-Bstatic'
15345       ;;
15346
15347     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15348       lt_prog_compiler_wl_F77='-Wl,'
15349       lt_prog_compiler_pic_F77='-KPIC'
15350       lt_prog_compiler_static_F77='-Bstatic'
15351       ;;
15352
15353     sysv4*MP*)
15354       if test -d /usr/nec ;then
15355         lt_prog_compiler_pic_F77='-Kconform_pic'
15356         lt_prog_compiler_static_F77='-Bstatic'
15357       fi
15358       ;;
15359
15360     uts4*)
15361       lt_prog_compiler_pic_F77='-pic'
15362       lt_prog_compiler_static_F77='-Bstatic'
15363       ;;
15364
15365     *)
15366       lt_prog_compiler_can_build_shared_F77=no
15367       ;;
15368     esac
15369   fi
15370
15371 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15372 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15373
15374 #
15375 # Check to make sure the PIC flag actually works.
15376 #
15377 if test -n "$lt_prog_compiler_pic_F77"; then
15378
15379 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15380 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15381 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15382   echo $ECHO_N "(cached) $ECHO_C" >&6
15383 else
15384   lt_prog_compiler_pic_works_F77=no
15385   ac_outfile=conftest.$ac_objext
15386    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15387    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15388    # Insert the option either (1) after the last *FLAGS variable, or
15389    # (2) before a word containing "conftest.", or (3) at the end.
15390    # Note that $ac_compile itself does not contain backslashes and begins
15391    # with a dollar sign (not a hyphen), so the echo should work correctly.
15392    # The option is referenced via a variable to avoid confusing sed.
15393    lt_compile=`echo "$ac_compile" | $SED \
15394    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15395    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15396    -e 's:$: $lt_compiler_flag:'`
15397    (eval echo "\"\$as_me:15397: $lt_compile\"" >&5)
15398    (eval "$lt_compile" 2>conftest.err)
15399    ac_status=$?
15400    cat conftest.err >&5
15401    echo "$as_me:15401: \$? = $ac_status" >&5
15402    if (exit $ac_status) && test -s "$ac_outfile"; then
15403      # The compiler can only warn and ignore the option if not recognized
15404      # So say no if there are warnings
15405      if test ! -s conftest.err; then
15406        lt_prog_compiler_pic_works_F77=yes
15407      fi
15408    fi
15409    $rm conftest*
15410
15411 fi
15412 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15413 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15414
15415 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15416     case $lt_prog_compiler_pic_F77 in
15417      "" | " "*) ;;
15418      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15419      esac
15420 else
15421     lt_prog_compiler_pic_F77=
15422      lt_prog_compiler_can_build_shared_F77=no
15423 fi
15424
15425 fi
15426 case "$host_os" in
15427   # For platforms which do not support PIC, -DPIC is meaningless:
15428   *djgpp*)
15429     lt_prog_compiler_pic_F77=
15430     ;;
15431   *)
15432     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15433     ;;
15434 esac
15435
15436 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15437 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15438 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15439   echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441   lt_cv_prog_compiler_c_o_F77=no
15442    $rm -r conftest 2>/dev/null
15443    mkdir conftest
15444    cd conftest
15445    mkdir out
15446    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15447
15448    lt_compiler_flag="-o out/conftest2.$ac_objext"
15449    # Insert the option either (1) after the last *FLAGS variable, or
15450    # (2) before a word containing "conftest.", or (3) at the end.
15451    # Note that $ac_compile itself does not contain backslashes and begins
15452    # with a dollar sign (not a hyphen), so the echo should work correctly.
15453    lt_compile=`echo "$ac_compile" | $SED \
15454    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15455    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15456    -e 's:$: $lt_compiler_flag:'`
15457    (eval echo "\"\$as_me:15457: $lt_compile\"" >&5)
15458    (eval "$lt_compile" 2>out/conftest.err)
15459    ac_status=$?
15460    cat out/conftest.err >&5
15461    echo "$as_me:15461: \$? = $ac_status" >&5
15462    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15463    then
15464      # The compiler can only warn and ignore the option if not recognized
15465      # So say no if there are warnings
15466      if test ! -s out/conftest.err; then
15467        lt_cv_prog_compiler_c_o_F77=yes
15468      fi
15469    fi
15470    chmod u+w .
15471    $rm conftest*
15472    # SGI C++ compiler will create directory out/ii_files/ for
15473    # template instantiation
15474    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15475    $rm out/* && rmdir out
15476    cd ..
15477    rmdir conftest
15478    $rm conftest*
15479
15480 fi
15481 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15482 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15483
15484
15485 hard_links="nottested"
15486 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15487   # do not overwrite the value of need_locks provided by the user
15488   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15489 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15490   hard_links=yes
15491   $rm conftest*
15492   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15493   touch conftest.a
15494   ln conftest.a conftest.b 2>&5 || hard_links=no
15495   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15496   echo "$as_me:$LINENO: result: $hard_links" >&5
15497 echo "${ECHO_T}$hard_links" >&6
15498   if test "$hard_links" = no; then
15499     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15500 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15501     need_locks=warn
15502   fi
15503 else
15504   need_locks=no
15505 fi
15506
15507 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15508 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15509
15510   runpath_var=
15511   allow_undefined_flag_F77=
15512   enable_shared_with_static_runtimes_F77=no
15513   archive_cmds_F77=
15514   archive_expsym_cmds_F77=
15515   old_archive_From_new_cmds_F77=
15516   old_archive_from_expsyms_cmds_F77=
15517   export_dynamic_flag_spec_F77=
15518   whole_archive_flag_spec_F77=
15519   thread_safe_flag_spec_F77=
15520   hardcode_libdir_flag_spec_F77=
15521   hardcode_libdir_flag_spec_ld_F77=
15522   hardcode_libdir_separator_F77=
15523   hardcode_direct_F77=no
15524   hardcode_minus_L_F77=no
15525   hardcode_shlibpath_var_F77=unsupported
15526   link_all_deplibs_F77=unknown
15527   hardcode_automatic_F77=no
15528   module_cmds_F77=
15529   module_expsym_cmds_F77=
15530   always_export_symbols_F77=no
15531   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15532   # include_expsyms should be a list of space-separated symbols to be *always*
15533   # included in the symbol list
15534   include_expsyms_F77=
15535   # exclude_expsyms can be an extended regexp of symbols to exclude
15536   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15537   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15538   # as well as any symbol that contains `d'.
15539   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15540   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15541   # platforms (ab)use it in PIC code, but their linkers get confused if
15542   # the symbol is explicitly referenced.  Since portable code cannot
15543   # rely on this symbol name, it's probably fine to never include it in
15544   # preloaded symbol tables.
15545   extract_expsyms_cmds=
15546
15547   case $host_os in
15548   cygwin* | mingw* | pw32*)
15549     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15550     # When not using gcc, we currently assume that we are using
15551     # Microsoft Visual C++.
15552     if test "$GCC" != yes; then
15553       with_gnu_ld=no
15554     fi
15555     ;;
15556   openbsd*)
15557     with_gnu_ld=no
15558     ;;
15559   esac
15560
15561   ld_shlibs_F77=yes
15562   if test "$with_gnu_ld" = yes; then
15563     # If archive_cmds runs LD, not CC, wlarc should be empty
15564     wlarc='${wl}'
15565
15566     # See if GNU ld supports shared libraries.
15567     case $host_os in
15568     aix3* | aix4* | aix5*)
15569       # On AIX/PPC, the GNU linker is very broken
15570       if test "$host_cpu" != ia64; then
15571         ld_shlibs_F77=no
15572         cat <<EOF 1>&2
15573
15574 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15575 *** to be unable to reliably create shared libraries on AIX.
15576 *** Therefore, libtool is disabling shared libraries support.  If you
15577 *** really care for shared libraries, you may want to modify your PATH
15578 *** so that a non-GNU linker is found, and then restart.
15579
15580 EOF
15581       fi
15582       ;;
15583
15584     amigaos*)
15585       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)'
15586       hardcode_libdir_flag_spec_F77='-L$libdir'
15587       hardcode_minus_L_F77=yes
15588
15589       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15590       # that the semantics of dynamic libraries on AmigaOS, at least up
15591       # to version 4, is to share data among multiple programs linked
15592       # with the same dynamic library.  Since this doesn't match the
15593       # behavior of shared libraries on other platforms, we can't use
15594       # them.
15595       ld_shlibs_F77=no
15596       ;;
15597
15598     beos*)
15599       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15600         allow_undefined_flag_F77=unsupported
15601         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15602         # support --undefined.  This deserves some investigation.  FIXME
15603         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15604       else
15605         ld_shlibs_F77=no
15606       fi
15607       ;;
15608
15609     cygwin* | mingw* | pw32*)
15610       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15611       # as there is no search path for DLLs.
15612       hardcode_libdir_flag_spec_F77='-L$libdir'
15613       allow_undefined_flag_F77=unsupported
15614       always_export_symbols_F77=no
15615       enable_shared_with_static_runtimes_F77=yes
15616       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15617
15618       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15619         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15620         # If the export-symbols file already is a .def file (1st line
15621         # is EXPORTS), use it as is; otherwise, prepend...
15622         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15623           cp $export_symbols $output_objdir/$soname.def;
15624         else
15625           echo EXPORTS > $output_objdir/$soname.def;
15626           cat $export_symbols >> $output_objdir/$soname.def;
15627         fi~
15628         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15629       else
15630         ld_shlibs=no
15631       fi
15632       ;;
15633
15634     netbsd*)
15635       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15636         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15637         wlarc=
15638       else
15639         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15640         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15641       fi
15642       ;;
15643
15644     solaris* | sysv5*)
15645       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15646         ld_shlibs_F77=no
15647         cat <<EOF 1>&2
15648
15649 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15650 *** create shared libraries on Solaris systems.  Therefore, libtool
15651 *** is disabling shared libraries support.  We urge you to upgrade GNU
15652 *** binutils to release 2.9.1 or newer.  Another option is to modify
15653 *** your PATH or compiler configuration so that the native linker is
15654 *** used, and then restart.
15655
15656 EOF
15657       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15658         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15659         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15660       else
15661         ld_shlibs_F77=no
15662       fi
15663       ;;
15664
15665     sunos4*)
15666       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15667       wlarc=
15668       hardcode_direct_F77=yes
15669       hardcode_shlibpath_var_F77=no
15670       ;;
15671
15672   linux*)
15673     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15674         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15675         archive_cmds_F77="$tmp_archive_cmds"
15676       supports_anon_versioning=no
15677       case `$LD -v 2>/dev/null` in
15678         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15679         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15680         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15681         *\ 2.11.*) ;; # other 2.11 versions
15682         *) supports_anon_versioning=yes ;;
15683       esac
15684       if test $supports_anon_versioning = yes; then
15685         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15686 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15687 $echo "local: *; };" >> $output_objdir/$libname.ver~
15688         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15689       else
15690         archive_expsym_cmds_F77="$tmp_archive_cmds"
15691       fi
15692     else
15693       ld_shlibs_F77=no
15694     fi
15695     ;;
15696
15697     *)
15698       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15699         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15700         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15701       else
15702         ld_shlibs_F77=no
15703       fi
15704       ;;
15705     esac
15706
15707     if test "$ld_shlibs_F77" = yes; then
15708       runpath_var=LD_RUN_PATH
15709       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15710       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15711       # ancient GNU ld didn't support --whole-archive et. al.
15712       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15713         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15714       else
15715         whole_archive_flag_spec_F77=
15716       fi
15717     fi
15718   else
15719     # PORTME fill in a description of your system's linker (not GNU ld)
15720     case $host_os in
15721     aix3*)
15722       allow_undefined_flag_F77=unsupported
15723       always_export_symbols_F77=yes
15724       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'
15725       # Note: this linker hardcodes the directories in LIBPATH if there
15726       # are no directories specified by -L.
15727       hardcode_minus_L_F77=yes
15728       if test "$GCC" = yes && test -z "$link_static_flag"; then
15729         # Neither direct hardcoding nor static linking is supported with a
15730         # broken collect2.
15731         hardcode_direct_F77=unsupported
15732       fi
15733       ;;
15734
15735     aix4* | aix5*)
15736       if test "$host_cpu" = ia64; then
15737         # On IA64, the linker does run time linking by default, so we don't
15738         # have to do anything special.
15739         aix_use_runtimelinking=no
15740         exp_sym_flag='-Bexport'
15741         no_entry_flag=""
15742       else
15743         # If we're using GNU nm, then we don't want the "-C" option.
15744         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15745         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15746           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'
15747         else
15748           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'
15749         fi
15750         aix_use_runtimelinking=no
15751
15752         # Test if we are trying to use run time linking or normal
15753         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15754         # need to do runtime linking.
15755         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15756           for ld_flag in $LDFLAGS; do
15757           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15758             aix_use_runtimelinking=yes
15759             break
15760           fi
15761           done
15762         esac
15763
15764         exp_sym_flag='-bexport'
15765         no_entry_flag='-bnoentry'
15766       fi
15767
15768       # When large executables or shared objects are built, AIX ld can
15769       # have problems creating the table of contents.  If linking a library
15770       # or program results in "error TOC overflow" add -mminimal-toc to
15771       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15772       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15773
15774       archive_cmds_F77=''
15775       hardcode_direct_F77=yes
15776       hardcode_libdir_separator_F77=':'
15777       link_all_deplibs_F77=yes
15778
15779       if test "$GCC" = yes; then
15780         case $host_os in aix4.012|aix4.012.*)
15781         # We only want to do this on AIX 4.2 and lower, the check
15782         # below for broken collect2 doesn't work under 4.3+
15783           collect2name=`${CC} -print-prog-name=collect2`
15784           if test -f "$collect2name" && \
15785            strings "$collect2name" | grep resolve_lib_name >/dev/null
15786           then
15787           # We have reworked collect2
15788           hardcode_direct_F77=yes
15789           else
15790           # We have old collect2
15791           hardcode_direct_F77=unsupported
15792           # It fails to find uninstalled libraries when the uninstalled
15793           # path is not listed in the libpath.  Setting hardcode_minus_L
15794           # to unsupported forces relinking
15795           hardcode_minus_L_F77=yes
15796           hardcode_libdir_flag_spec_F77='-L$libdir'
15797           hardcode_libdir_separator_F77=
15798           fi
15799         esac
15800         shared_flag='-shared'
15801       else
15802         # not using gcc
15803         if test "$host_cpu" = ia64; then
15804         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15805         # chokes on -Wl,-G. The following line is correct:
15806           shared_flag='-G'
15807         else
15808         if test "$aix_use_runtimelinking" = yes; then
15809             shared_flag='${wl}-G'
15810           else
15811             shared_flag='${wl}-bM:SRE'
15812         fi
15813         fi
15814       fi
15815
15816       # It seems that -bexpall does not export symbols beginning with
15817       # underscore (_), so it is better to generate a list of symbols to export.
15818       always_export_symbols_F77=yes
15819       if test "$aix_use_runtimelinking" = yes; then
15820         # Warning - without using the other runtime loading flags (-brtl),
15821         # -berok will link without error, but may produce a broken library.
15822         allow_undefined_flag_F77='-berok'
15823        # Determine the default libpath from the value encoded in an empty executable.
15824        cat >conftest.$ac_ext <<_ACEOF
15825       program main
15826
15827       end
15828 _ACEOF
15829 rm -f conftest.$ac_objext conftest$ac_exeext
15830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15831   (eval $ac_link) 2>conftest.er1
15832   ac_status=$?
15833   grep -v '^ *+' conftest.er1 >conftest.err
15834   rm -f conftest.er1
15835   cat conftest.err >&5
15836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); } &&
15838          { ac_try='test -z "$ac_f77_werror_flag"
15839                          || test ! -s conftest.err'
15840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841   (eval $ac_try) 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); }; } &&
15845          { ac_try='test -s conftest$ac_exeext'
15846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847   (eval $ac_try) 2>&5
15848   ac_status=$?
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); }; }; then
15851
15852 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15853 }'`
15854 # Check for a 64-bit object if we didn't find anything.
15855 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; }
15856 }'`; fi
15857 else
15858   echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15860
15861 fi
15862 rm -f conftest.err conftest.$ac_objext \
15863       conftest$ac_exeext conftest.$ac_ext
15864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15865
15866        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15867         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"
15868        else
15869         if test "$host_cpu" = ia64; then
15870           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15871           allow_undefined_flag_F77="-z nodefs"
15872           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"
15873         else
15874          # Determine the default libpath from the value encoded in an empty executable.
15875          cat >conftest.$ac_ext <<_ACEOF
15876       program main
15877
15878       end
15879 _ACEOF
15880 rm -f conftest.$ac_objext conftest$ac_exeext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15882   (eval $ac_link) 2>conftest.er1
15883   ac_status=$?
15884   grep -v '^ *+' conftest.er1 >conftest.err
15885   rm -f conftest.er1
15886   cat conftest.err >&5
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } &&
15889          { ac_try='test -z "$ac_f77_werror_flag"
15890                          || test ! -s conftest.err'
15891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892   (eval $ac_try) 2>&5
15893   ac_status=$?
15894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); }; } &&
15896          { ac_try='test -s conftest$ac_exeext'
15897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898   (eval $ac_try) 2>&5
15899   ac_status=$?
15900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901   (exit $ac_status); }; }; then
15902
15903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15904 }'`
15905 # Check for a 64-bit object if we didn't find anything.
15906 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; }
15907 }'`; fi
15908 else
15909   echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15911
15912 fi
15913 rm -f conftest.err conftest.$ac_objext \
15914       conftest$ac_exeext conftest.$ac_ext
15915 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15916
15917          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15918           # Warning - without using the other run time loading flags,
15919           # -berok will link without error, but may produce a broken library.
15920           no_undefined_flag_F77=' ${wl}-bernotok'
15921           allow_undefined_flag_F77=' ${wl}-berok'
15922           # -bexpall does not export symbols beginning with underscore (_)
15923           always_export_symbols_F77=yes
15924           # Exported symbols can be pulled into shared objects from archives
15925           whole_archive_flag_spec_F77=' '
15926           archive_cmds_need_lc_F77=yes
15927           # This is similar to how AIX traditionally builds it's shared libraries.
15928           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'
15929         fi
15930       fi
15931       ;;
15932
15933     amigaos*)
15934       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)'
15935       hardcode_libdir_flag_spec_F77='-L$libdir'
15936       hardcode_minus_L_F77=yes
15937       # see comment about different semantics on the GNU ld section
15938       ld_shlibs_F77=no
15939       ;;
15940
15941     bsdi4*)
15942       export_dynamic_flag_spec_F77=-rdynamic
15943       ;;
15944
15945     cygwin* | mingw* | pw32*)
15946       # When not using gcc, we currently assume that we are using
15947       # Microsoft Visual C++.
15948       # hardcode_libdir_flag_spec is actually meaningless, as there is
15949       # no search path for DLLs.
15950       hardcode_libdir_flag_spec_F77=' '
15951       allow_undefined_flag_F77=unsupported
15952       # Tell ltmain to make .lib files, not .a files.
15953       libext=lib
15954       # Tell ltmain to make .dll files, not .so files.
15955       shrext_cmds=".dll"
15956       # FIXME: Setting linknames here is a bad hack.
15957       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15958       # The linker will automatically build a .lib file if we build a DLL.
15959       old_archive_From_new_cmds_F77='true'
15960       # FIXME: Should let the user specify the lib program.
15961       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15962       fix_srcfile_path='`cygpath -w "$srcfile"`'
15963       enable_shared_with_static_runtimes_F77=yes
15964       ;;
15965
15966     darwin* | rhapsody*)
15967     if test "$GXX" = yes ; then
15968       archive_cmds_need_lc_F77=no
15969       case "$host_os" in
15970       rhapsody* | darwin1.[012])
15971         allow_undefined_flag_F77='-undefined suppress'
15972         ;;
15973       *) # Darwin 1.3 on
15974       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15975         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15976       else
15977         case ${MACOSX_DEPLOYMENT_TARGET} in
15978           10.[012])
15979             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15980             ;;
15981           10.*)
15982             allow_undefined_flag_F77='-undefined dynamic_lookup'
15983             ;;
15984         esac
15985       fi
15986         ;;
15987       esac
15988         lt_int_apple_cc_single_mod=no
15989         output_verbose_link_cmd='echo'
15990         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15991           lt_int_apple_cc_single_mod=yes
15992         fi
15993         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15994           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15995         else
15996         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'
15997       fi
15998       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15999       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16000         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16001           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}'
16002         else
16003           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}'
16004         fi
16005           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}'
16006       hardcode_direct_F77=no
16007       hardcode_automatic_F77=yes
16008       hardcode_shlibpath_var_F77=unsupported
16009       whole_archive_flag_spec_F77='-all_load $convenience'
16010       link_all_deplibs_F77=yes
16011     else
16012       ld_shlibs_F77=no
16013     fi
16014       ;;
16015
16016     dgux*)
16017       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16018       hardcode_libdir_flag_spec_F77='-L$libdir'
16019       hardcode_shlibpath_var_F77=no
16020       ;;
16021
16022     freebsd1*)
16023       ld_shlibs_F77=no
16024       ;;
16025
16026     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16027     # support.  Future versions do this automatically, but an explicit c++rt0.o
16028     # does not break anything, and helps significantly (at the cost of a little
16029     # extra space).
16030     freebsd2.2*)
16031       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16032       hardcode_libdir_flag_spec_F77='-R$libdir'
16033       hardcode_direct_F77=yes
16034       hardcode_shlibpath_var_F77=no
16035       ;;
16036
16037     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16038     freebsd2*)
16039       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16040       hardcode_direct_F77=yes
16041       hardcode_minus_L_F77=yes
16042       hardcode_shlibpath_var_F77=no
16043       ;;
16044
16045     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16046     freebsd* | kfreebsd*-gnu)
16047       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16048       hardcode_libdir_flag_spec_F77='-R$libdir'
16049       hardcode_direct_F77=yes
16050       hardcode_shlibpath_var_F77=no
16051       ;;
16052
16053     hpux9*)
16054       if test "$GCC" = yes; then
16055         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'
16056       else
16057         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'
16058       fi
16059       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16060       hardcode_libdir_separator_F77=:
16061       hardcode_direct_F77=yes
16062
16063       # hardcode_minus_L: Not really in the search PATH,
16064       # but as the default location of the library.
16065       hardcode_minus_L_F77=yes
16066       export_dynamic_flag_spec_F77='${wl}-E'
16067       ;;
16068
16069     hpux10* | hpux11*)
16070       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16071         case "$host_cpu" in
16072         hppa*64*|ia64*)
16073           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16074           ;;
16075         *)
16076           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16077           ;;
16078         esac
16079       else
16080         case "$host_cpu" in
16081         hppa*64*|ia64*)
16082           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16083           ;;
16084         *)
16085           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16086           ;;
16087         esac
16088       fi
16089       if test "$with_gnu_ld" = no; then
16090         case "$host_cpu" in
16091         hppa*64*)
16092           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16093           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16094           hardcode_libdir_separator_F77=:
16095           hardcode_direct_F77=no
16096           hardcode_shlibpath_var_F77=no
16097           ;;
16098         ia64*)
16099           hardcode_libdir_flag_spec_F77='-L$libdir'
16100           hardcode_direct_F77=no
16101           hardcode_shlibpath_var_F77=no
16102
16103           # hardcode_minus_L: Not really in the search PATH,
16104           # but as the default location of the library.
16105           hardcode_minus_L_F77=yes
16106           ;;
16107         *)
16108           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16109           hardcode_libdir_separator_F77=:
16110           hardcode_direct_F77=yes
16111           export_dynamic_flag_spec_F77='${wl}-E'
16112
16113           # hardcode_minus_L: Not really in the search PATH,
16114           # but as the default location of the library.
16115           hardcode_minus_L_F77=yes
16116           ;;
16117         esac
16118       fi
16119       ;;
16120
16121     irix5* | irix6* | nonstopux*)
16122       if test "$GCC" = yes; then
16123         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'
16124       else
16125         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'
16126         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16127       fi
16128       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16129       hardcode_libdir_separator_F77=:
16130       link_all_deplibs_F77=yes
16131       ;;
16132
16133     netbsd*)
16134       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16135         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16136       else
16137         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16138       fi
16139       hardcode_libdir_flag_spec_F77='-R$libdir'
16140       hardcode_direct_F77=yes
16141       hardcode_shlibpath_var_F77=no
16142       ;;
16143
16144     newsos6)
16145       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16146       hardcode_direct_F77=yes
16147       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16148       hardcode_libdir_separator_F77=:
16149       hardcode_shlibpath_var_F77=no
16150       ;;
16151
16152     openbsd*)
16153       hardcode_direct_F77=yes
16154       hardcode_shlibpath_var_F77=no
16155       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16156         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16157         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16158         export_dynamic_flag_spec_F77='${wl}-E'
16159       else
16160        case $host_os in
16161          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16162            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16163            hardcode_libdir_flag_spec_F77='-R$libdir'
16164            ;;
16165          *)
16166            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16167            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16168            ;;
16169        esac
16170       fi
16171       ;;
16172
16173     os2*)
16174       hardcode_libdir_flag_spec_F77='-L$libdir'
16175       hardcode_minus_L_F77=yes
16176       allow_undefined_flag_F77=unsupported
16177       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'
16178       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16179       ;;
16180
16181     osf3*)
16182       if test "$GCC" = yes; then
16183         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16184         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'
16185       else
16186         allow_undefined_flag_F77=' -expect_unresolved \*'
16187         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'
16188       fi
16189       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16190       hardcode_libdir_separator_F77=:
16191       ;;
16192
16193     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16194       if test "$GCC" = yes; then
16195         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16196         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'
16197         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16198       else
16199         allow_undefined_flag_F77=' -expect_unresolved \*'
16200         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'
16201         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~
16202         $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'
16203
16204         # Both c and cxx compiler support -rpath directly
16205         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16206       fi
16207       hardcode_libdir_separator_F77=:
16208       ;;
16209
16210     sco3.2v5*)
16211       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16212       hardcode_shlibpath_var_F77=no
16213       export_dynamic_flag_spec_F77='${wl}-Bexport'
16214       runpath_var=LD_RUN_PATH
16215       hardcode_runpath_var=yes
16216       ;;
16217
16218     solaris*)
16219       no_undefined_flag_F77=' -z text'
16220       if test "$GCC" = yes; then
16221         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16222         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16223           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16224       else
16225         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16226         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16227         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16228       fi
16229       hardcode_libdir_flag_spec_F77='-R$libdir'
16230       hardcode_shlibpath_var_F77=no
16231       case $host_os in
16232       solaris2.[0-5] | solaris2.[0-5].*) ;;
16233       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16234         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16235       esac
16236       link_all_deplibs_F77=yes
16237       ;;
16238
16239     sunos4*)
16240       if test "x$host_vendor" = xsequent; then
16241         # Use $CC to link under sequent, because it throws in some extra .o
16242         # files that make .init and .fini sections work.
16243         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16244       else
16245         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16246       fi
16247       hardcode_libdir_flag_spec_F77='-L$libdir'
16248       hardcode_direct_F77=yes
16249       hardcode_minus_L_F77=yes
16250       hardcode_shlibpath_var_F77=no
16251       ;;
16252
16253     sysv4)
16254       case $host_vendor in
16255         sni)
16256           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16257           hardcode_direct_F77=yes # is this really true???
16258         ;;
16259         siemens)
16260           ## LD is ld it makes a PLAMLIB
16261           ## CC just makes a GrossModule.
16262           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16263           reload_cmds_F77='$CC -r -o $output$reload_objs'
16264           hardcode_direct_F77=no
16265         ;;
16266         motorola)
16267           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16268           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16269         ;;
16270       esac
16271       runpath_var='LD_RUN_PATH'
16272       hardcode_shlibpath_var_F77=no
16273       ;;
16274
16275     sysv4.3*)
16276       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16277       hardcode_shlibpath_var_F77=no
16278       export_dynamic_flag_spec_F77='-Bexport'
16279       ;;
16280
16281     sysv4*MP*)
16282       if test -d /usr/nec; then
16283         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16284         hardcode_shlibpath_var_F77=no
16285         runpath_var=LD_RUN_PATH
16286         hardcode_runpath_var=yes
16287         ld_shlibs_F77=yes
16288       fi
16289       ;;
16290
16291     sysv4.2uw2*)
16292       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16293       hardcode_direct_F77=yes
16294       hardcode_minus_L_F77=no
16295       hardcode_shlibpath_var_F77=no
16296       hardcode_runpath_var=yes
16297       runpath_var=LD_RUN_PATH
16298       ;;
16299
16300    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16301       no_undefined_flag_F77='${wl}-z ${wl}text'
16302       if test "$GCC" = yes; then
16303         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16304       else
16305         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16306       fi
16307       runpath_var='LD_RUN_PATH'
16308       hardcode_shlibpath_var_F77=no
16309       ;;
16310
16311     sysv5*)
16312       no_undefined_flag_F77=' -z text'
16313       # $CC -shared without GNU ld will not create a library from C++
16314       # object files and a static libstdc++, better avoid it by now
16315       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16316       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16317                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16318       hardcode_libdir_flag_spec_F77=
16319       hardcode_shlibpath_var_F77=no
16320       runpath_var='LD_RUN_PATH'
16321       ;;
16322
16323     uts4*)
16324       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16325       hardcode_libdir_flag_spec_F77='-L$libdir'
16326       hardcode_shlibpath_var_F77=no
16327       ;;
16328
16329     *)
16330       ld_shlibs_F77=no
16331       ;;
16332     esac
16333   fi
16334
16335 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16336 echo "${ECHO_T}$ld_shlibs_F77" >&6
16337 test "$ld_shlibs_F77" = no && can_build_shared=no
16338
16339 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16340 if test "$GCC" = yes; then
16341   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16342 fi
16343
16344 #
16345 # Do we need to explicitly link libc?
16346 #
16347 case "x$archive_cmds_need_lc_F77" in
16348 x|xyes)
16349   # Assume -lc should be added
16350   archive_cmds_need_lc_F77=yes
16351
16352   if test "$enable_shared" = yes && test "$GCC" = yes; then
16353     case $archive_cmds_F77 in
16354     *'~'*)
16355       # FIXME: we may have to deal with multi-command sequences.
16356       ;;
16357     '$CC '*)
16358       # Test whether the compiler implicitly links with -lc since on some
16359       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16360       # to ld, don't add -lc before -lgcc.
16361       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16362 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16363       $rm conftest*
16364       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16365
16366       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16367   (eval $ac_compile) 2>&5
16368   ac_status=$?
16369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370   (exit $ac_status); } 2>conftest.err; then
16371         soname=conftest
16372         lib=conftest
16373         libobjs=conftest.$ac_objext
16374         deplibs=
16375         wl=$lt_prog_compiler_wl_F77
16376         compiler_flags=-v
16377         linker_flags=-v
16378         verstring=
16379         output_objdir=.
16380         libname=conftest
16381         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16382         allow_undefined_flag_F77=
16383         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16384   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16385   ac_status=$?
16386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387   (exit $ac_status); }
16388         then
16389           archive_cmds_need_lc_F77=no
16390         else
16391           archive_cmds_need_lc_F77=yes
16392         fi
16393         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16394       else
16395         cat conftest.err 1>&5
16396       fi
16397       $rm conftest*
16398       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16399 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16400       ;;
16401     esac
16402   fi
16403   ;;
16404 esac
16405
16406 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16407 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16408 library_names_spec=
16409 libname_spec='lib$name'
16410 soname_spec=
16411 shrext_cmds=".so"
16412 postinstall_cmds=
16413 postuninstall_cmds=
16414 finish_cmds=
16415 finish_eval=
16416 shlibpath_var=
16417 shlibpath_overrides_runpath=unknown
16418 version_type=none
16419 dynamic_linker="$host_os ld.so"
16420 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16421 if test "$GCC" = yes; then
16422   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16423   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16424     # if the path contains ";" then we assume it to be the separator
16425     # otherwise default to the standard path separator (i.e. ":") - it is
16426     # assumed that no part of a normal pathname contains ";" but that should
16427     # okay in the real world where ";" in dirpaths is itself problematic.
16428     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16429   else
16430     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16431   fi
16432 else
16433   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16434 fi
16435 need_lib_prefix=unknown
16436 hardcode_into_libs=no
16437
16438 # when you set need_version to no, make sure it does not cause -set_version
16439 # flags to be left without arguments
16440 need_version=unknown
16441
16442 case $host_os in
16443 aix3*)
16444   version_type=linux
16445   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16446   shlibpath_var=LIBPATH
16447
16448   # AIX 3 has no versioning support, so we append a major version to the name.
16449   soname_spec='${libname}${release}${shared_ext}$major'
16450   ;;
16451
16452 aix4* | aix5*)
16453   version_type=linux
16454   need_lib_prefix=no
16455   need_version=no
16456   hardcode_into_libs=yes
16457   if test "$host_cpu" = ia64; then
16458     # AIX 5 supports IA64
16459     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16460     shlibpath_var=LD_LIBRARY_PATH
16461   else
16462     # With GCC up to 2.95.x, collect2 would create an import file
16463     # for dependence libraries.  The import file would start with
16464     # the line `#! .'.  This would cause the generated library to
16465     # depend on `.', always an invalid library.  This was fixed in
16466     # development snapshots of GCC prior to 3.0.
16467     case $host_os in
16468       aix4 | aix4.[01] | aix4.[01].*)
16469       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16470            echo ' yes '
16471            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16472         :
16473       else
16474         can_build_shared=no
16475       fi
16476       ;;
16477     esac
16478     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16479     # soname into executable. Probably we can add versioning support to
16480     # collect2, so additional links can be useful in future.
16481     if test "$aix_use_runtimelinking" = yes; then
16482       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16483       # instead of lib<name>.a to let people know that these are not
16484       # typical AIX shared libraries.
16485       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16486     else
16487       # We preserve .a as extension for shared libraries through AIX4.2
16488       # and later when we are not doing run time linking.
16489       library_names_spec='${libname}${release}.a $libname.a'
16490       soname_spec='${libname}${release}${shared_ext}$major'
16491     fi
16492     shlibpath_var=LIBPATH
16493   fi
16494   ;;
16495
16496 amigaos*)
16497   library_names_spec='$libname.ixlibrary $libname.a'
16498   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16499   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'
16500   ;;
16501
16502 beos*)
16503   library_names_spec='${libname}${shared_ext}'
16504   dynamic_linker="$host_os ld.so"
16505   shlibpath_var=LIBRARY_PATH
16506   ;;
16507
16508 bsdi4*)
16509   version_type=linux
16510   need_version=no
16511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16512   soname_spec='${libname}${release}${shared_ext}$major'
16513   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16514   shlibpath_var=LD_LIBRARY_PATH
16515   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16516   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16517   # the default ld.so.conf also contains /usr/contrib/lib and
16518   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16519   # libtool to hard-code these into programs
16520   ;;
16521
16522 cygwin* | mingw* | pw32*)
16523   version_type=windows
16524   shrext_cmds=".dll"
16525   need_version=no
16526   need_lib_prefix=no
16527
16528   case $GCC,$host_os in
16529   yes,cygwin* | yes,mingw* | yes,pw32*)
16530     library_names_spec='$libname.dll.a'
16531     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16532     postinstall_cmds='base_file=`basename \${file}`~
16533       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16534       dldir=$destdir/`dirname \$dlpath`~
16535       test -d \$dldir || mkdir -p \$dldir~
16536       $install_prog $dir/$dlname \$dldir/$dlname'
16537     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16538       dlpath=$dir/\$dldll~
16539        $rm \$dlpath'
16540     shlibpath_overrides_runpath=yes
16541
16542     case $host_os in
16543     cygwin*)
16544       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16545       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16546       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16547       ;;
16548     mingw*)
16549       # MinGW DLLs use traditional 'lib' prefix
16550       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16551       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16552       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16553         # It is most probably a Windows format PATH printed by
16554         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16555         # path with ; separators, and with drive letters. We can handle the
16556         # drive letters (cygwin fileutils understands them), so leave them,
16557         # especially as we might pass files found there to a mingw objdump,
16558         # which wouldn't understand a cygwinified path. Ahh.
16559         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16560       else
16561         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16562       fi
16563       ;;
16564     pw32*)
16565       # pw32 DLLs use 'pw' prefix rather than 'lib'
16566       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16567       ;;
16568     esac
16569     ;;
16570
16571   *)
16572     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16573     ;;
16574   esac
16575   dynamic_linker='Win32 ld.exe'
16576   # FIXME: first we should search . and the directory the executable is in
16577   shlibpath_var=PATH
16578   ;;
16579
16580 darwin* | rhapsody*)
16581   dynamic_linker="$host_os dyld"
16582   version_type=darwin
16583   need_lib_prefix=no
16584   need_version=no
16585   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16586   soname_spec='${libname}${release}${major}$shared_ext'
16587   shlibpath_overrides_runpath=yes
16588   shlibpath_var=DYLD_LIBRARY_PATH
16589   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16590   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16591   if test "$GCC" = yes; then
16592     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"`
16593   else
16594     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16595   fi
16596   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16597   ;;
16598
16599 dgux*)
16600   version_type=linux
16601   need_lib_prefix=no
16602   need_version=no
16603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16604   soname_spec='${libname}${release}${shared_ext}$major'
16605   shlibpath_var=LD_LIBRARY_PATH
16606   ;;
16607
16608 freebsd1*)
16609   dynamic_linker=no
16610   ;;
16611
16612 kfreebsd*-gnu)
16613   version_type=linux
16614   need_lib_prefix=no
16615   need_version=no
16616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16617   soname_spec='${libname}${release}${shared_ext}$major'
16618   shlibpath_var=LD_LIBRARY_PATH
16619   shlibpath_overrides_runpath=no
16620   hardcode_into_libs=yes
16621   dynamic_linker='GNU ld.so'
16622   ;;
16623
16624 freebsd*)
16625   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16626   version_type=freebsd-$objformat
16627   case $version_type in
16628     freebsd-elf*)
16629       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16630       need_version=no
16631       need_lib_prefix=no
16632       ;;
16633     freebsd-*)
16634       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16635       need_version=yes
16636       ;;
16637   esac
16638   shlibpath_var=LD_LIBRARY_PATH
16639   case $host_os in
16640   freebsd2*)
16641     shlibpath_overrides_runpath=yes
16642     ;;
16643   freebsd3.01* | freebsdelf3.01*)
16644     shlibpath_overrides_runpath=yes
16645     hardcode_into_libs=yes
16646     ;;
16647   *) # from 3.2 on
16648     shlibpath_overrides_runpath=no
16649     hardcode_into_libs=yes
16650     ;;
16651   esac
16652   ;;
16653
16654 gnu*)
16655   version_type=linux
16656   need_lib_prefix=no
16657   need_version=no
16658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16659   soname_spec='${libname}${release}${shared_ext}$major'
16660   shlibpath_var=LD_LIBRARY_PATH
16661   hardcode_into_libs=yes
16662   ;;
16663
16664 hpux9* | hpux10* | hpux11*)
16665   # Give a soname corresponding to the major version so that dld.sl refuses to
16666   # link against other versions.
16667   version_type=sunos
16668   need_lib_prefix=no
16669   need_version=no
16670   case "$host_cpu" in
16671   ia64*)
16672     shrext_cmds='.so'
16673     hardcode_into_libs=yes
16674     dynamic_linker="$host_os dld.so"
16675     shlibpath_var=LD_LIBRARY_PATH
16676     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16677     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16678     soname_spec='${libname}${release}${shared_ext}$major'
16679     if test "X$HPUX_IA64_MODE" = X32; then
16680       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16681     else
16682       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16683     fi
16684     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16685     ;;
16686    hppa*64*)
16687      shrext_cmds='.sl'
16688      hardcode_into_libs=yes
16689      dynamic_linker="$host_os dld.sl"
16690      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16691      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16692      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693      soname_spec='${libname}${release}${shared_ext}$major'
16694      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16695      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16696      ;;
16697    *)
16698     shrext_cmds='.sl'
16699     dynamic_linker="$host_os dld.sl"
16700     shlibpath_var=SHLIB_PATH
16701     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703     soname_spec='${libname}${release}${shared_ext}$major'
16704     ;;
16705   esac
16706   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16707   postinstall_cmds='chmod 555 $lib'
16708   ;;
16709
16710 irix5* | irix6* | nonstopux*)
16711   case $host_os in
16712     nonstopux*) version_type=nonstopux ;;
16713     *)
16714         if test "$lt_cv_prog_gnu_ld" = yes; then
16715                 version_type=linux
16716         else
16717                 version_type=irix
16718         fi ;;
16719   esac
16720   need_lib_prefix=no
16721   need_version=no
16722   soname_spec='${libname}${release}${shared_ext}$major'
16723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16724   case $host_os in
16725   irix5* | nonstopux*)
16726     libsuff= shlibsuff=
16727     ;;
16728   *)
16729     case $LD in # libtool.m4 will add one of these switches to LD
16730     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16731       libsuff= shlibsuff= libmagic=32-bit;;
16732     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16733       libsuff=32 shlibsuff=N32 libmagic=N32;;
16734     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16735       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16736     *) libsuff= shlibsuff= libmagic=never-match;;
16737     esac
16738     ;;
16739   esac
16740   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16741   shlibpath_overrides_runpath=no
16742   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16743   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16744   hardcode_into_libs=yes
16745   ;;
16746
16747 # No shared lib support for Linux oldld, aout, or coff.
16748 linux*oldld* | linux*aout* | linux*coff*)
16749   dynamic_linker=no
16750   ;;
16751
16752 # This must be Linux ELF.
16753 linux*)
16754   version_type=linux
16755   need_lib_prefix=no
16756   need_version=no
16757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16758   soname_spec='${libname}${release}${shared_ext}$major'
16759   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16760   shlibpath_var=LD_LIBRARY_PATH
16761   shlibpath_overrides_runpath=no
16762   # This implies no fast_install, which is unacceptable.
16763   # Some rework will be needed to allow for fast_install
16764   # before this can be enabled.
16765   hardcode_into_libs=yes
16766
16767   # find out which ABI we are using
16768   libsuff=
16769   case "$host_cpu" in
16770   x86_64*|s390x*|powerpc64*)
16771     echo '#line 16771 "configure"' > conftest.$ac_ext
16772     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16773   (eval $ac_compile) 2>&5
16774   ac_status=$?
16775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); }; then
16777       case `/usr/bin/file conftest.$ac_objext` in
16778       *64-bit*)
16779         libsuff=64
16780         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16781         ;;
16782       esac
16783     fi
16784     rm -rf conftest*
16785     ;;
16786   esac
16787
16788   # Append ld.so.conf contents to the search path
16789   if test -f /etc/ld.so.conf; then
16790     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16791     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16792   fi
16793
16794   # We used to test for /lib/ld.so.1 and disable shared libraries on
16795   # powerpc, because MkLinux only supported shared libraries with the
16796   # GNU dynamic linker.  Since this was broken with cross compilers,
16797   # most powerpc-linux boxes support dynamic linking these days and
16798   # people can always --disable-shared, the test was removed, and we
16799   # assume the GNU/Linux dynamic linker is in use.
16800   dynamic_linker='GNU/Linux ld.so'
16801   ;;
16802
16803 knetbsd*-gnu)
16804   version_type=linux
16805   need_lib_prefix=no
16806   need_version=no
16807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16808   soname_spec='${libname}${release}${shared_ext}$major'
16809   shlibpath_var=LD_LIBRARY_PATH
16810   shlibpath_overrides_runpath=no
16811   hardcode_into_libs=yes
16812   dynamic_linker='GNU ld.so'
16813   ;;
16814
16815 netbsd*)
16816   version_type=sunos
16817   need_lib_prefix=no
16818   need_version=no
16819   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16820     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16821     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16822     dynamic_linker='NetBSD (a.out) ld.so'
16823   else
16824     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16825     soname_spec='${libname}${release}${shared_ext}$major'
16826     dynamic_linker='NetBSD ld.elf_so'
16827   fi
16828   shlibpath_var=LD_LIBRARY_PATH
16829   shlibpath_overrides_runpath=yes
16830   hardcode_into_libs=yes
16831   ;;
16832
16833 newsos6)
16834   version_type=linux
16835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836   shlibpath_var=LD_LIBRARY_PATH
16837   shlibpath_overrides_runpath=yes
16838   ;;
16839
16840 nto-qnx*)
16841   version_type=linux
16842   need_lib_prefix=no
16843   need_version=no
16844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16845   soname_spec='${libname}${release}${shared_ext}$major'
16846   shlibpath_var=LD_LIBRARY_PATH
16847   shlibpath_overrides_runpath=yes
16848   ;;
16849
16850 openbsd*)
16851   version_type=sunos
16852   need_lib_prefix=no
16853   need_version=yes
16854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16855   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16856   shlibpath_var=LD_LIBRARY_PATH
16857   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16858     case $host_os in
16859       openbsd2.[89] | openbsd2.[89].*)
16860         shlibpath_overrides_runpath=no
16861         ;;
16862       *)
16863         shlibpath_overrides_runpath=yes
16864         ;;
16865       esac
16866   else
16867     shlibpath_overrides_runpath=yes
16868   fi
16869   ;;
16870
16871 os2*)
16872   libname_spec='$name'
16873   shrext_cmds=".dll"
16874   need_lib_prefix=no
16875   library_names_spec='$libname${shared_ext} $libname.a'
16876   dynamic_linker='OS/2 ld.exe'
16877   shlibpath_var=LIBPATH
16878   ;;
16879
16880 osf3* | osf4* | osf5*)
16881   version_type=osf
16882   need_lib_prefix=no
16883   need_version=no
16884   soname_spec='${libname}${release}${shared_ext}$major'
16885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886   shlibpath_var=LD_LIBRARY_PATH
16887   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16888   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16889   ;;
16890
16891 sco3.2v5*)
16892   version_type=osf
16893   soname_spec='${libname}${release}${shared_ext}$major'
16894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16895   shlibpath_var=LD_LIBRARY_PATH
16896   ;;
16897
16898 solaris*)
16899   version_type=linux
16900   need_lib_prefix=no
16901   need_version=no
16902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903   soname_spec='${libname}${release}${shared_ext}$major'
16904   shlibpath_var=LD_LIBRARY_PATH
16905   shlibpath_overrides_runpath=yes
16906   hardcode_into_libs=yes
16907   # ldd complains unless libraries are executable
16908   postinstall_cmds='chmod +x $lib'
16909   ;;
16910
16911 sunos4*)
16912   version_type=sunos
16913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16914   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16915   shlibpath_var=LD_LIBRARY_PATH
16916   shlibpath_overrides_runpath=yes
16917   if test "$with_gnu_ld" = yes; then
16918     need_lib_prefix=no
16919   fi
16920   need_version=yes
16921   ;;
16922
16923 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16924   version_type=linux
16925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16926   soname_spec='${libname}${release}${shared_ext}$major'
16927   shlibpath_var=LD_LIBRARY_PATH
16928   case $host_vendor in
16929     sni)
16930       shlibpath_overrides_runpath=no
16931       need_lib_prefix=no
16932       export_dynamic_flag_spec='${wl}-Blargedynsym'
16933       runpath_var=LD_RUN_PATH
16934       ;;
16935     siemens)
16936       need_lib_prefix=no
16937       ;;
16938     motorola)
16939       need_lib_prefix=no
16940       need_version=no
16941       shlibpath_overrides_runpath=no
16942       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16943       ;;
16944   esac
16945   ;;
16946
16947 sysv4*MP*)
16948   if test -d /usr/nec ;then
16949     version_type=linux
16950     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16951     soname_spec='$libname${shared_ext}.$major'
16952     shlibpath_var=LD_LIBRARY_PATH
16953   fi
16954   ;;
16955
16956 uts4*)
16957   version_type=linux
16958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16959   soname_spec='${libname}${release}${shared_ext}$major'
16960   shlibpath_var=LD_LIBRARY_PATH
16961   ;;
16962
16963 *)
16964   dynamic_linker=no
16965   ;;
16966 esac
16967 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16968 echo "${ECHO_T}$dynamic_linker" >&6
16969 test "$dynamic_linker" = no && can_build_shared=no
16970
16971 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16972 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16973 hardcode_action_F77=
16974 if test -n "$hardcode_libdir_flag_spec_F77" || \
16975    test -n "$runpath_var F77" || \
16976    test "X$hardcode_automatic_F77"="Xyes" ; then
16977
16978   # We can hardcode non-existant directories.
16979   if test "$hardcode_direct_F77" != no &&
16980      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16981      # have to relink, otherwise we might link with an installed library
16982      # when we should be linking with a yet-to-be-installed one
16983      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16984      test "$hardcode_minus_L_F77" != no; then
16985     # Linking always hardcodes the temporary library directory.
16986     hardcode_action_F77=relink
16987   else
16988     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16989     hardcode_action_F77=immediate
16990   fi
16991 else
16992   # We cannot hardcode anything, or else we can only hardcode existing
16993   # directories.
16994   hardcode_action_F77=unsupported
16995 fi
16996 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16997 echo "${ECHO_T}$hardcode_action_F77" >&6
16998
16999 if test "$hardcode_action_F77" = relink; then
17000   # Fast installation is not supported
17001   enable_fast_install=no
17002 elif test "$shlibpath_overrides_runpath" = yes ||
17003      test "$enable_shared" = no; then
17004   # Fast installation is not necessary
17005   enable_fast_install=needless
17006 fi
17007
17008 striplib=
17009 old_striplib=
17010 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17011 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17012 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17013   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17014   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17015   echo "$as_me:$LINENO: result: yes" >&5
17016 echo "${ECHO_T}yes" >&6
17017 else
17018 # FIXME - insert some real tests, host_os isn't really good enough
17019   case $host_os in
17020    darwin*)
17021        if test -n "$STRIP" ; then
17022          striplib="$STRIP -x"
17023          echo "$as_me:$LINENO: result: yes" >&5
17024 echo "${ECHO_T}yes" >&6
17025        else
17026   echo "$as_me:$LINENO: result: no" >&5
17027 echo "${ECHO_T}no" >&6
17028 fi
17029        ;;
17030    *)
17031   echo "$as_me:$LINENO: result: no" >&5
17032 echo "${ECHO_T}no" >&6
17033     ;;
17034   esac
17035 fi
17036
17037
17038
17039 # The else clause should only fire when bootstrapping the
17040 # libtool distribution, otherwise you forgot to ship ltmain.sh
17041 # with your package, and you will get complaints that there are
17042 # no rules to generate ltmain.sh.
17043 if test -f "$ltmain"; then
17044   # See if we are running on zsh, and set the options which allow our commands through
17045   # without removal of \ escapes.
17046   if test -n "${ZSH_VERSION+set}" ; then
17047     setopt NO_GLOB_SUBST
17048   fi
17049   # Now quote all the things that may contain metacharacters while being
17050   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17051   # variables and quote the copies for generation of the libtool script.
17052   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17053     SED SHELL STRIP \
17054     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17055     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17056     deplibs_check_method reload_flag reload_cmds need_locks \
17057     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17058     lt_cv_sys_global_symbol_to_c_name_address \
17059     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17060     old_postinstall_cmds old_postuninstall_cmds \
17061     compiler_F77 \
17062     CC_F77 \
17063     LD_F77 \
17064     lt_prog_compiler_wl_F77 \
17065     lt_prog_compiler_pic_F77 \
17066     lt_prog_compiler_static_F77 \
17067     lt_prog_compiler_no_builtin_flag_F77 \
17068     export_dynamic_flag_spec_F77 \
17069     thread_safe_flag_spec_F77 \
17070     whole_archive_flag_spec_F77 \
17071     enable_shared_with_static_runtimes_F77 \
17072     old_archive_cmds_F77 \
17073     old_archive_from_new_cmds_F77 \
17074     predep_objects_F77 \
17075     postdep_objects_F77 \
17076     predeps_F77 \
17077     postdeps_F77 \
17078     compiler_lib_search_path_F77 \
17079     archive_cmds_F77 \
17080     archive_expsym_cmds_F77 \
17081     postinstall_cmds_F77 \
17082     postuninstall_cmds_F77 \
17083     old_archive_from_expsyms_cmds_F77 \
17084     allow_undefined_flag_F77 \
17085     no_undefined_flag_F77 \
17086     export_symbols_cmds_F77 \
17087     hardcode_libdir_flag_spec_F77 \
17088     hardcode_libdir_flag_spec_ld_F77 \
17089     hardcode_libdir_separator_F77 \
17090     hardcode_automatic_F77 \
17091     module_cmds_F77 \
17092     module_expsym_cmds_F77 \
17093     lt_cv_prog_compiler_c_o_F77 \
17094     exclude_expsyms_F77 \
17095     include_expsyms_F77; do
17096
17097     case $var in
17098     old_archive_cmds_F77 | \
17099     old_archive_from_new_cmds_F77 | \
17100     archive_cmds_F77 | \
17101     archive_expsym_cmds_F77 | \
17102     module_cmds_F77 | \
17103     module_expsym_cmds_F77 | \
17104     old_archive_from_expsyms_cmds_F77 | \
17105     export_symbols_cmds_F77 | \
17106     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17107     postinstall_cmds | postuninstall_cmds | \
17108     old_postinstall_cmds | old_postuninstall_cmds | \
17109     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17110       # Double-quote double-evaled strings.
17111       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17112       ;;
17113     *)
17114       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17115       ;;
17116     esac
17117   done
17118
17119   case $lt_echo in
17120   *'\$0 --fallback-echo"')
17121     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17122     ;;
17123   esac
17124
17125 cfgfile="$ofile"
17126
17127   cat <<__EOF__ >> "$cfgfile"
17128 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17129
17130 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17131
17132 # Shell to use when invoking shell scripts.
17133 SHELL=$lt_SHELL
17134
17135 # Whether or not to build shared libraries.
17136 build_libtool_libs=$enable_shared
17137
17138 # Whether or not to build static libraries.
17139 build_old_libs=$enable_static
17140
17141 # Whether or not to add -lc for building shared libraries.
17142 build_libtool_need_lc=$archive_cmds_need_lc_F77
17143
17144 # Whether or not to disallow shared libs when runtime libs are static
17145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17146
17147 # Whether or not to optimize for fast installation.
17148 fast_install=$enable_fast_install
17149
17150 # The host system.
17151 host_alias=$host_alias
17152 host=$host
17153
17154 # An echo program that does not interpret backslashes.
17155 echo=$lt_echo
17156
17157 # The archiver.
17158 AR=$lt_AR
17159 AR_FLAGS=$lt_AR_FLAGS
17160
17161 # A C compiler.
17162 LTCC=$lt_LTCC
17163
17164 # A language-specific compiler.
17165 CC=$lt_compiler_F77
17166
17167 # Is the compiler the GNU C compiler?
17168 with_gcc=$GCC_F77
17169
17170 # An ERE matcher.
17171 EGREP=$lt_EGREP
17172
17173 # The linker used to build libraries.
17174 LD=$lt_LD_F77
17175
17176 # Whether we need hard or soft links.
17177 LN_S=$lt_LN_S
17178
17179 # A BSD-compatible nm program.
17180 NM=$lt_NM
17181
17182 # A symbol stripping program
17183 STRIP=$lt_STRIP
17184
17185 # Used to examine libraries when file_magic_cmd begins "file"
17186 MAGIC_CMD=$MAGIC_CMD
17187
17188 # Used on cygwin: DLL creation program.
17189 DLLTOOL="$DLLTOOL"
17190
17191 # Used on cygwin: object dumper.
17192 OBJDUMP="$OBJDUMP"
17193
17194 # Used on cygwin: assembler.
17195 AS="$AS"
17196
17197 # The name of the directory that contains temporary libtool files.
17198 objdir=$objdir
17199
17200 # How to create reloadable object files.
17201 reload_flag=$lt_reload_flag
17202 reload_cmds=$lt_reload_cmds
17203
17204 # How to pass a linker flag through the compiler.
17205 wl=$lt_lt_prog_compiler_wl_F77
17206
17207 # Object file suffix (normally "o").
17208 objext="$ac_objext"
17209
17210 # Old archive suffix (normally "a").
17211 libext="$libext"
17212
17213 # Shared library suffix (normally ".so").
17214 shrext_cmds='$shrext_cmds'
17215
17216 # Executable file suffix (normally "").
17217 exeext="$exeext"
17218
17219 # Additional compiler flags for building library objects.
17220 pic_flag=$lt_lt_prog_compiler_pic_F77
17221 pic_mode=$pic_mode
17222
17223 # What is the maximum length of a command?
17224 max_cmd_len=$lt_cv_sys_max_cmd_len
17225
17226 # Does compiler simultaneously support -c and -o options?
17227 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17228
17229 # Must we lock files when doing compilation ?
17230 need_locks=$lt_need_locks
17231
17232 # Do we need the lib prefix for modules?
17233 need_lib_prefix=$need_lib_prefix
17234
17235 # Do we need a version for libraries?
17236 need_version=$need_version
17237
17238 # Whether dlopen is supported.
17239 dlopen_support=$enable_dlopen
17240
17241 # Whether dlopen of programs is supported.
17242 dlopen_self=$enable_dlopen_self
17243
17244 # Whether dlopen of statically linked programs is supported.
17245 dlopen_self_static=$enable_dlopen_self_static
17246
17247 # Compiler flag to prevent dynamic linking.
17248 link_static_flag=$lt_lt_prog_compiler_static_F77
17249
17250 # Compiler flag to turn off builtin functions.
17251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17252
17253 # Compiler flag to allow reflexive dlopens.
17254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17255
17256 # Compiler flag to generate shared objects directly from archives.
17257 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17258
17259 # Compiler flag to generate thread-safe objects.
17260 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17261
17262 # Library versioning type.
17263 version_type=$version_type
17264
17265 # Format of library name prefix.
17266 libname_spec=$lt_libname_spec
17267
17268 # List of archive names.  First name is the real one, the rest are links.
17269 # The last name is the one that the linker finds with -lNAME.
17270 library_names_spec=$lt_library_names_spec
17271
17272 # The coded name of the library, if different from the real name.
17273 soname_spec=$lt_soname_spec
17274
17275 # Commands used to build and install an old-style archive.
17276 RANLIB=$lt_RANLIB
17277 old_archive_cmds=$lt_old_archive_cmds_F77
17278 old_postinstall_cmds=$lt_old_postinstall_cmds
17279 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17280
17281 # Create an old-style archive from a shared archive.
17282 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17283
17284 # Create a temporary old-style archive to link instead of a shared archive.
17285 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17286
17287 # Commands used to build and install a shared archive.
17288 archive_cmds=$lt_archive_cmds_F77
17289 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17290 postinstall_cmds=$lt_postinstall_cmds
17291 postuninstall_cmds=$lt_postuninstall_cmds
17292
17293 # Commands used to build a loadable module (assumed same as above if empty)
17294 module_cmds=$lt_module_cmds_F77
17295 module_expsym_cmds=$lt_module_expsym_cmds_F77
17296
17297 # Commands to strip libraries.
17298 old_striplib=$lt_old_striplib
17299 striplib=$lt_striplib
17300
17301 # Dependencies to place before the objects being linked to create a
17302 # shared library.
17303 predep_objects=$lt_predep_objects_F77
17304
17305 # Dependencies to place after the objects being linked to create a
17306 # shared library.
17307 postdep_objects=$lt_postdep_objects_F77
17308
17309 # Dependencies to place before the objects being linked to create a
17310 # shared library.
17311 predeps=$lt_predeps_F77
17312
17313 # Dependencies to place after the objects being linked to create a
17314 # shared library.
17315 postdeps=$lt_postdeps_F77
17316
17317 # The library search path used internally by the compiler when linking
17318 # a shared library.
17319 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17320
17321 # Method to check whether dependent libraries are shared objects.
17322 deplibs_check_method=$lt_deplibs_check_method
17323
17324 # Command to use when deplibs_check_method == file_magic.
17325 file_magic_cmd=$lt_file_magic_cmd
17326
17327 # Flag that allows shared libraries with undefined symbols to be built.
17328 allow_undefined_flag=$lt_allow_undefined_flag_F77
17329
17330 # Flag that forces no undefined symbols.
17331 no_undefined_flag=$lt_no_undefined_flag_F77
17332
17333 # Commands used to finish a libtool library installation in a directory.
17334 finish_cmds=$lt_finish_cmds
17335
17336 # Same as above, but a single script fragment to be evaled but not shown.
17337 finish_eval=$lt_finish_eval
17338
17339 # Take the output of nm and produce a listing of raw symbols and C names.
17340 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17341
17342 # Transform the output of nm in a proper C declaration
17343 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17344
17345 # Transform the output of nm in a C name address pair
17346 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17347
17348 # This is the shared library runtime path variable.
17349 runpath_var=$runpath_var
17350
17351 # This is the shared library path variable.
17352 shlibpath_var=$shlibpath_var
17353
17354 # Is shlibpath searched before the hard-coded library search path?
17355 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17356
17357 # How to hardcode a shared library path into an executable.
17358 hardcode_action=$hardcode_action_F77
17359
17360 # Whether we should hardcode library paths into libraries.
17361 hardcode_into_libs=$hardcode_into_libs
17362
17363 # Flag to hardcode \$libdir into a binary during linking.
17364 # This must work even if \$libdir does not exist.
17365 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17366
17367 # If ld is used when linking, flag to hardcode \$libdir into
17368 # a binary during linking. This must work even if \$libdir does
17369 # not exist.
17370 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17371
17372 # Whether we need a single -rpath flag with a separated argument.
17373 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17374
17375 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17376 # resulting binary.
17377 hardcode_direct=$hardcode_direct_F77
17378
17379 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17380 # resulting binary.
17381 hardcode_minus_L=$hardcode_minus_L_F77
17382
17383 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17384 # the resulting binary.
17385 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17386
17387 # Set to yes if building a shared library automatically hardcodes DIR into the library
17388 # and all subsequent libraries and executables linked against it.
17389 hardcode_automatic=$hardcode_automatic_F77
17390
17391 # Variables whose values should be saved in libtool wrapper scripts and
17392 # restored at relink time.
17393 variables_saved_for_relink="$variables_saved_for_relink"
17394
17395 # Whether libtool must link a program against all its dependency libraries.
17396 link_all_deplibs=$link_all_deplibs_F77
17397
17398 # Compile-time system search path for libraries
17399 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17400
17401 # Run-time system search path for libraries
17402 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17403
17404 # Fix the shell variable \$srcfile for the compiler.
17405 fix_srcfile_path="$fix_srcfile_path_F77"
17406
17407 # Set to yes if exported symbols are required.
17408 always_export_symbols=$always_export_symbols_F77
17409
17410 # The commands to list exported symbols.
17411 export_symbols_cmds=$lt_export_symbols_cmds_F77
17412
17413 # The commands to extract the exported symbol list from a shared archive.
17414 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17415
17416 # Symbols that should not be listed in the preloaded symbols.
17417 exclude_expsyms=$lt_exclude_expsyms_F77
17418
17419 # Symbols that must always be exported.
17420 include_expsyms=$lt_include_expsyms_F77
17421
17422 # ### END LIBTOOL TAG CONFIG: $tagname
17423
17424 __EOF__
17425
17426
17427 else
17428   # If there is no Makefile yet, we rely on a make rule to execute
17429   # `config.status --recheck' to rerun these tests and create the
17430   # libtool script then.
17431   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17432   if test -f "$ltmain_in"; then
17433     test -f Makefile && make "$ltmain"
17434   fi
17435 fi
17436
17437
17438 ac_ext=c
17439 ac_cpp='$CPP $CPPFLAGS'
17440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17443
17444 CC="$lt_save_CC"
17445
17446         else
17447           tagname=""
17448         fi
17449         ;;
17450
17451       GCJ)
17452         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17453
17454
17455
17456 # Source file extension for Java test sources.
17457 ac_ext=java
17458
17459 # Object file extension for compiled Java test sources.
17460 objext=o
17461 objext_GCJ=$objext
17462
17463 # Code to be used in simple compile tests
17464 lt_simple_compile_test_code="class foo {}\n"
17465
17466 # Code to be used in simple link tests
17467 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17468
17469 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17470
17471 # If no C compiler was specified, use CC.
17472 LTCC=${LTCC-"$CC"}
17473
17474 # Allow CC to be a program name with arguments.
17475 compiler=$CC
17476
17477
17478 # Allow CC to be a program name with arguments.
17479 lt_save_CC="$CC"
17480 CC=${GCJ-"gcj"}
17481 compiler=$CC
17482 compiler_GCJ=$CC
17483
17484 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17485 archive_cmds_need_lc_GCJ=no
17486
17487 ## CAVEAT EMPTOR:
17488 ## There is no encapsulation within the following macros, do not change
17489 ## the running order or otherwise move them around unless you know exactly
17490 ## what you are doing...
17491
17492 lt_prog_compiler_no_builtin_flag_GCJ=
17493
17494 if test "$GCC" = yes; then
17495   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17496
17497
17498 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17499 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17500 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17501   echo $ECHO_N "(cached) $ECHO_C" >&6
17502 else
17503   lt_cv_prog_compiler_rtti_exceptions=no
17504   ac_outfile=conftest.$ac_objext
17505    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17506    lt_compiler_flag="-fno-rtti -fno-exceptions"
17507    # Insert the option either (1) after the last *FLAGS variable, or
17508    # (2) before a word containing "conftest.", or (3) at the end.
17509    # Note that $ac_compile itself does not contain backslashes and begins
17510    # with a dollar sign (not a hyphen), so the echo should work correctly.
17511    # The option is referenced via a variable to avoid confusing sed.
17512    lt_compile=`echo "$ac_compile" | $SED \
17513    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17514    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17515    -e 's:$: $lt_compiler_flag:'`
17516    (eval echo "\"\$as_me:17516: $lt_compile\"" >&5)
17517    (eval "$lt_compile" 2>conftest.err)
17518    ac_status=$?
17519    cat conftest.err >&5
17520    echo "$as_me:17520: \$? = $ac_status" >&5
17521    if (exit $ac_status) && test -s "$ac_outfile"; then
17522      # The compiler can only warn and ignore the option if not recognized
17523      # So say no if there are warnings
17524      if test ! -s conftest.err; then
17525        lt_cv_prog_compiler_rtti_exceptions=yes
17526      fi
17527    fi
17528    $rm conftest*
17529
17530 fi
17531 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17532 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17533
17534 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17535     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17536 else
17537     :
17538 fi
17539
17540 fi
17541
17542 lt_prog_compiler_wl_GCJ=
17543 lt_prog_compiler_pic_GCJ=
17544 lt_prog_compiler_static_GCJ=
17545
17546 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17547 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17548
17549   if test "$GCC" = yes; then
17550     lt_prog_compiler_wl_GCJ='-Wl,'
17551     lt_prog_compiler_static_GCJ='-static'
17552
17553     case $host_os in
17554       aix*)
17555       # All AIX code is PIC.
17556       if test "$host_cpu" = ia64; then
17557         # AIX 5 now supports IA64 processor
17558         lt_prog_compiler_static_GCJ='-Bstatic'
17559       fi
17560       ;;
17561
17562     amigaos*)
17563       # FIXME: we need at least 68020 code to build shared libraries, but
17564       # adding the `-m68020' flag to GCC prevents building anything better,
17565       # like `-m68040'.
17566       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17567       ;;
17568
17569     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17570       # PIC is the default for these OSes.
17571       ;;
17572
17573     mingw* | pw32* | os2*)
17574       # This hack is so that the source file can tell whether it is being
17575       # built for inclusion in a dll (and should export symbols for example).
17576       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17577       ;;
17578
17579     darwin* | rhapsody*)
17580       # PIC is the default on this platform
17581       # Common symbols not allowed in MH_DYLIB files
17582       lt_prog_compiler_pic_GCJ='-fno-common'
17583       ;;
17584
17585     msdosdjgpp*)
17586       # Just because we use GCC doesn't mean we suddenly get shared libraries
17587       # on systems that don't support them.
17588       lt_prog_compiler_can_build_shared_GCJ=no
17589       enable_shared=no
17590       ;;
17591
17592     sysv4*MP*)
17593       if test -d /usr/nec; then
17594         lt_prog_compiler_pic_GCJ=-Kconform_pic
17595       fi
17596       ;;
17597
17598     hpux*)
17599       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17600       # not for PA HP-UX.
17601       case "$host_cpu" in
17602       hppa*64*|ia64*)
17603         # +Z the default
17604         ;;
17605       *)
17606         lt_prog_compiler_pic_GCJ='-fPIC'
17607         ;;
17608       esac
17609       ;;
17610
17611     *)
17612       lt_prog_compiler_pic_GCJ='-fPIC'
17613       ;;
17614     esac
17615   else
17616     # PORTME Check for flag to pass linker flags through the system compiler.
17617     case $host_os in
17618     aix*)
17619       lt_prog_compiler_wl_GCJ='-Wl,'
17620       if test "$host_cpu" = ia64; then
17621         # AIX 5 now supports IA64 processor
17622         lt_prog_compiler_static_GCJ='-Bstatic'
17623       else
17624         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17625       fi
17626       ;;
17627
17628     mingw* | pw32* | os2*)
17629       # This hack is so that the source file can tell whether it is being
17630       # built for inclusion in a dll (and should export symbols for example).
17631       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17632       ;;
17633
17634     hpux9* | hpux10* | hpux11*)
17635       lt_prog_compiler_wl_GCJ='-Wl,'
17636       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17637       # not for PA HP-UX.
17638       case "$host_cpu" in
17639       hppa*64*|ia64*)
17640         # +Z the default
17641         ;;
17642       *)
17643         lt_prog_compiler_pic_GCJ='+Z'
17644         ;;
17645       esac
17646       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17647       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17648       ;;
17649
17650     irix5* | irix6* | nonstopux*)
17651       lt_prog_compiler_wl_GCJ='-Wl,'
17652       # PIC (with -KPIC) is the default.
17653       lt_prog_compiler_static_GCJ='-non_shared'
17654       ;;
17655
17656     newsos6)
17657       lt_prog_compiler_pic_GCJ='-KPIC'
17658       lt_prog_compiler_static_GCJ='-Bstatic'
17659       ;;
17660
17661     linux*)
17662       case $CC in
17663       icc* | ecc*)
17664         lt_prog_compiler_wl_GCJ='-Wl,'
17665         lt_prog_compiler_pic_GCJ='-KPIC'
17666         lt_prog_compiler_static_GCJ='-static'
17667         ;;
17668       ccc*)
17669         lt_prog_compiler_wl_GCJ='-Wl,'
17670         # All Alpha code is PIC.
17671         lt_prog_compiler_static_GCJ='-non_shared'
17672         ;;
17673       esac
17674       ;;
17675
17676     osf3* | osf4* | osf5*)
17677       lt_prog_compiler_wl_GCJ='-Wl,'
17678       # All OSF/1 code is PIC.
17679       lt_prog_compiler_static_GCJ='-non_shared'
17680       ;;
17681
17682     sco3.2v5*)
17683       lt_prog_compiler_pic_GCJ='-Kpic'
17684       lt_prog_compiler_static_GCJ='-dn'
17685       ;;
17686
17687     solaris*)
17688       lt_prog_compiler_wl_GCJ='-Wl,'
17689       lt_prog_compiler_pic_GCJ='-KPIC'
17690       lt_prog_compiler_static_GCJ='-Bstatic'
17691       ;;
17692
17693     sunos4*)
17694       lt_prog_compiler_wl_GCJ='-Qoption ld '
17695       lt_prog_compiler_pic_GCJ='-PIC'
17696       lt_prog_compiler_static_GCJ='-Bstatic'
17697       ;;
17698
17699     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17700       lt_prog_compiler_wl_GCJ='-Wl,'
17701       lt_prog_compiler_pic_GCJ='-KPIC'
17702       lt_prog_compiler_static_GCJ='-Bstatic'
17703       ;;
17704
17705     sysv4*MP*)
17706       if test -d /usr/nec ;then
17707         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17708         lt_prog_compiler_static_GCJ='-Bstatic'
17709       fi
17710       ;;
17711
17712     uts4*)
17713       lt_prog_compiler_pic_GCJ='-pic'
17714       lt_prog_compiler_static_GCJ='-Bstatic'
17715       ;;
17716
17717     *)
17718       lt_prog_compiler_can_build_shared_GCJ=no
17719       ;;
17720     esac
17721   fi
17722
17723 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17724 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17725
17726 #
17727 # Check to make sure the PIC flag actually works.
17728 #
17729 if test -n "$lt_prog_compiler_pic_GCJ"; then
17730
17731 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17732 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17733 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17734   echo $ECHO_N "(cached) $ECHO_C" >&6
17735 else
17736   lt_prog_compiler_pic_works_GCJ=no
17737   ac_outfile=conftest.$ac_objext
17738    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17739    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17740    # Insert the option either (1) after the last *FLAGS variable, or
17741    # (2) before a word containing "conftest.", or (3) at the end.
17742    # Note that $ac_compile itself does not contain backslashes and begins
17743    # with a dollar sign (not a hyphen), so the echo should work correctly.
17744    # The option is referenced via a variable to avoid confusing sed.
17745    lt_compile=`echo "$ac_compile" | $SED \
17746    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17747    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17748    -e 's:$: $lt_compiler_flag:'`
17749    (eval echo "\"\$as_me:17749: $lt_compile\"" >&5)
17750    (eval "$lt_compile" 2>conftest.err)
17751    ac_status=$?
17752    cat conftest.err >&5
17753    echo "$as_me:17753: \$? = $ac_status" >&5
17754    if (exit $ac_status) && test -s "$ac_outfile"; then
17755      # The compiler can only warn and ignore the option if not recognized
17756      # So say no if there are warnings
17757      if test ! -s conftest.err; then
17758        lt_prog_compiler_pic_works_GCJ=yes
17759      fi
17760    fi
17761    $rm conftest*
17762
17763 fi
17764 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17765 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17766
17767 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17768     case $lt_prog_compiler_pic_GCJ in
17769      "" | " "*) ;;
17770      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17771      esac
17772 else
17773     lt_prog_compiler_pic_GCJ=
17774      lt_prog_compiler_can_build_shared_GCJ=no
17775 fi
17776
17777 fi
17778 case "$host_os" in
17779   # For platforms which do not support PIC, -DPIC is meaningless:
17780   *djgpp*)
17781     lt_prog_compiler_pic_GCJ=
17782     ;;
17783   *)
17784     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17785     ;;
17786 esac
17787
17788 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17789 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17790 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17791   echo $ECHO_N "(cached) $ECHO_C" >&6
17792 else
17793   lt_cv_prog_compiler_c_o_GCJ=no
17794    $rm -r conftest 2>/dev/null
17795    mkdir conftest
17796    cd conftest
17797    mkdir out
17798    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17799
17800    lt_compiler_flag="-o out/conftest2.$ac_objext"
17801    # Insert the option either (1) after the last *FLAGS variable, or
17802    # (2) before a word containing "conftest.", or (3) at the end.
17803    # Note that $ac_compile itself does not contain backslashes and begins
17804    # with a dollar sign (not a hyphen), so the echo should work correctly.
17805    lt_compile=`echo "$ac_compile" | $SED \
17806    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17807    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17808    -e 's:$: $lt_compiler_flag:'`
17809    (eval echo "\"\$as_me:17809: $lt_compile\"" >&5)
17810    (eval "$lt_compile" 2>out/conftest.err)
17811    ac_status=$?
17812    cat out/conftest.err >&5
17813    echo "$as_me:17813: \$? = $ac_status" >&5
17814    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17815    then
17816      # The compiler can only warn and ignore the option if not recognized
17817      # So say no if there are warnings
17818      if test ! -s out/conftest.err; then
17819        lt_cv_prog_compiler_c_o_GCJ=yes
17820      fi
17821    fi
17822    chmod u+w .
17823    $rm conftest*
17824    # SGI C++ compiler will create directory out/ii_files/ for
17825    # template instantiation
17826    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17827    $rm out/* && rmdir out
17828    cd ..
17829    rmdir conftest
17830    $rm conftest*
17831
17832 fi
17833 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17834 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17835
17836
17837 hard_links="nottested"
17838 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17839   # do not overwrite the value of need_locks provided by the user
17840   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17841 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17842   hard_links=yes
17843   $rm conftest*
17844   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17845   touch conftest.a
17846   ln conftest.a conftest.b 2>&5 || hard_links=no
17847   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17848   echo "$as_me:$LINENO: result: $hard_links" >&5
17849 echo "${ECHO_T}$hard_links" >&6
17850   if test "$hard_links" = no; then
17851     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17852 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17853     need_locks=warn
17854   fi
17855 else
17856   need_locks=no
17857 fi
17858
17859 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17860 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17861
17862   runpath_var=
17863   allow_undefined_flag_GCJ=
17864   enable_shared_with_static_runtimes_GCJ=no
17865   archive_cmds_GCJ=
17866   archive_expsym_cmds_GCJ=
17867   old_archive_From_new_cmds_GCJ=
17868   old_archive_from_expsyms_cmds_GCJ=
17869   export_dynamic_flag_spec_GCJ=
17870   whole_archive_flag_spec_GCJ=
17871   thread_safe_flag_spec_GCJ=
17872   hardcode_libdir_flag_spec_GCJ=
17873   hardcode_libdir_flag_spec_ld_GCJ=
17874   hardcode_libdir_separator_GCJ=
17875   hardcode_direct_GCJ=no
17876   hardcode_minus_L_GCJ=no
17877   hardcode_shlibpath_var_GCJ=unsupported
17878   link_all_deplibs_GCJ=unknown
17879   hardcode_automatic_GCJ=no
17880   module_cmds_GCJ=
17881   module_expsym_cmds_GCJ=
17882   always_export_symbols_GCJ=no
17883   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17884   # include_expsyms should be a list of space-separated symbols to be *always*
17885   # included in the symbol list
17886   include_expsyms_GCJ=
17887   # exclude_expsyms can be an extended regexp of symbols to exclude
17888   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17889   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17890   # as well as any symbol that contains `d'.
17891   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17892   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17893   # platforms (ab)use it in PIC code, but their linkers get confused if
17894   # the symbol is explicitly referenced.  Since portable code cannot
17895   # rely on this symbol name, it's probably fine to never include it in
17896   # preloaded symbol tables.
17897   extract_expsyms_cmds=
17898
17899   case $host_os in
17900   cygwin* | mingw* | pw32*)
17901     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17902     # When not using gcc, we currently assume that we are using
17903     # Microsoft Visual C++.
17904     if test "$GCC" != yes; then
17905       with_gnu_ld=no
17906     fi
17907     ;;
17908   openbsd*)
17909     with_gnu_ld=no
17910     ;;
17911   esac
17912
17913   ld_shlibs_GCJ=yes
17914   if test "$with_gnu_ld" = yes; then
17915     # If archive_cmds runs LD, not CC, wlarc should be empty
17916     wlarc='${wl}'
17917
17918     # See if GNU ld supports shared libraries.
17919     case $host_os in
17920     aix3* | aix4* | aix5*)
17921       # On AIX/PPC, the GNU linker is very broken
17922       if test "$host_cpu" != ia64; then
17923         ld_shlibs_GCJ=no
17924         cat <<EOF 1>&2
17925
17926 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17927 *** to be unable to reliably create shared libraries on AIX.
17928 *** Therefore, libtool is disabling shared libraries support.  If you
17929 *** really care for shared libraries, you may want to modify your PATH
17930 *** so that a non-GNU linker is found, and then restart.
17931
17932 EOF
17933       fi
17934       ;;
17935
17936     amigaos*)
17937       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)'
17938       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17939       hardcode_minus_L_GCJ=yes
17940
17941       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17942       # that the semantics of dynamic libraries on AmigaOS, at least up
17943       # to version 4, is to share data among multiple programs linked
17944       # with the same dynamic library.  Since this doesn't match the
17945       # behavior of shared libraries on other platforms, we can't use
17946       # them.
17947       ld_shlibs_GCJ=no
17948       ;;
17949
17950     beos*)
17951       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17952         allow_undefined_flag_GCJ=unsupported
17953         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17954         # support --undefined.  This deserves some investigation.  FIXME
17955         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17956       else
17957         ld_shlibs_GCJ=no
17958       fi
17959       ;;
17960
17961     cygwin* | mingw* | pw32*)
17962       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17963       # as there is no search path for DLLs.
17964       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17965       allow_undefined_flag_GCJ=unsupported
17966       always_export_symbols_GCJ=no
17967       enable_shared_with_static_runtimes_GCJ=yes
17968       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17969
17970       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17971         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17972         # If the export-symbols file already is a .def file (1st line
17973         # is EXPORTS), use it as is; otherwise, prepend...
17974         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17975           cp $export_symbols $output_objdir/$soname.def;
17976         else
17977           echo EXPORTS > $output_objdir/$soname.def;
17978           cat $export_symbols >> $output_objdir/$soname.def;
17979         fi~
17980         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17981       else
17982         ld_shlibs=no
17983       fi
17984       ;;
17985
17986     netbsd*)
17987       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17988         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17989         wlarc=
17990       else
17991         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17992         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17993       fi
17994       ;;
17995
17996     solaris* | sysv5*)
17997       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17998         ld_shlibs_GCJ=no
17999         cat <<EOF 1>&2
18000
18001 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18002 *** create shared libraries on Solaris systems.  Therefore, libtool
18003 *** is disabling shared libraries support.  We urge you to upgrade GNU
18004 *** binutils to release 2.9.1 or newer.  Another option is to modify
18005 *** your PATH or compiler configuration so that the native linker is
18006 *** used, and then restart.
18007
18008 EOF
18009       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18010         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18011         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18012       else
18013         ld_shlibs_GCJ=no
18014       fi
18015       ;;
18016
18017     sunos4*)
18018       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18019       wlarc=
18020       hardcode_direct_GCJ=yes
18021       hardcode_shlibpath_var_GCJ=no
18022       ;;
18023
18024   linux*)
18025     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18026         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18027         archive_cmds_GCJ="$tmp_archive_cmds"
18028       supports_anon_versioning=no
18029       case `$LD -v 2>/dev/null` in
18030         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18031         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18032         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18033         *\ 2.11.*) ;; # other 2.11 versions
18034         *) supports_anon_versioning=yes ;;
18035       esac
18036       if test $supports_anon_versioning = yes; then
18037         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18038 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18039 $echo "local: *; };" >> $output_objdir/$libname.ver~
18040         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18041       else
18042         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
18043       fi
18044     else
18045       ld_shlibs_GCJ=no
18046     fi
18047     ;;
18048
18049     *)
18050       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18051         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18052         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18053       else
18054         ld_shlibs_GCJ=no
18055       fi
18056       ;;
18057     esac
18058
18059     if test "$ld_shlibs_GCJ" = yes; then
18060       runpath_var=LD_RUN_PATH
18061       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18062       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18063       # ancient GNU ld didn't support --whole-archive et. al.
18064       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18065         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18066       else
18067         whole_archive_flag_spec_GCJ=
18068       fi
18069     fi
18070   else
18071     # PORTME fill in a description of your system's linker (not GNU ld)
18072     case $host_os in
18073     aix3*)
18074       allow_undefined_flag_GCJ=unsupported
18075       always_export_symbols_GCJ=yes
18076       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'
18077       # Note: this linker hardcodes the directories in LIBPATH if there
18078       # are no directories specified by -L.
18079       hardcode_minus_L_GCJ=yes
18080       if test "$GCC" = yes && test -z "$link_static_flag"; then
18081         # Neither direct hardcoding nor static linking is supported with a
18082         # broken collect2.
18083         hardcode_direct_GCJ=unsupported
18084       fi
18085       ;;
18086
18087     aix4* | aix5*)
18088       if test "$host_cpu" = ia64; then
18089         # On IA64, the linker does run time linking by default, so we don't
18090         # have to do anything special.
18091         aix_use_runtimelinking=no
18092         exp_sym_flag='-Bexport'
18093         no_entry_flag=""
18094       else
18095         # If we're using GNU nm, then we don't want the "-C" option.
18096         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18097         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18098           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'
18099         else
18100           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'
18101         fi
18102         aix_use_runtimelinking=no
18103
18104         # Test if we are trying to use run time linking or normal
18105         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18106         # need to do runtime linking.
18107         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18108           for ld_flag in $LDFLAGS; do
18109           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18110             aix_use_runtimelinking=yes
18111             break
18112           fi
18113           done
18114         esac
18115
18116         exp_sym_flag='-bexport'
18117         no_entry_flag='-bnoentry'
18118       fi
18119
18120       # When large executables or shared objects are built, AIX ld can
18121       # have problems creating the table of contents.  If linking a library
18122       # or program results in "error TOC overflow" add -mminimal-toc to
18123       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18124       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18125
18126       archive_cmds_GCJ=''
18127       hardcode_direct_GCJ=yes
18128       hardcode_libdir_separator_GCJ=':'
18129       link_all_deplibs_GCJ=yes
18130
18131       if test "$GCC" = yes; then
18132         case $host_os in aix4.012|aix4.012.*)
18133         # We only want to do this on AIX 4.2 and lower, the check
18134         # below for broken collect2 doesn't work under 4.3+
18135           collect2name=`${CC} -print-prog-name=collect2`
18136           if test -f "$collect2name" && \
18137            strings "$collect2name" | grep resolve_lib_name >/dev/null
18138           then
18139           # We have reworked collect2
18140           hardcode_direct_GCJ=yes
18141           else
18142           # We have old collect2
18143           hardcode_direct_GCJ=unsupported
18144           # It fails to find uninstalled libraries when the uninstalled
18145           # path is not listed in the libpath.  Setting hardcode_minus_L
18146           # to unsupported forces relinking
18147           hardcode_minus_L_GCJ=yes
18148           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18149           hardcode_libdir_separator_GCJ=
18150           fi
18151         esac
18152         shared_flag='-shared'
18153       else
18154         # not using gcc
18155         if test "$host_cpu" = ia64; then
18156         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18157         # chokes on -Wl,-G. The following line is correct:
18158           shared_flag='-G'
18159         else
18160         if test "$aix_use_runtimelinking" = yes; then
18161             shared_flag='${wl}-G'
18162           else
18163             shared_flag='${wl}-bM:SRE'
18164         fi
18165         fi
18166       fi
18167
18168       # It seems that -bexpall does not export symbols beginning with
18169       # underscore (_), so it is better to generate a list of symbols to export.
18170       always_export_symbols_GCJ=yes
18171       if test "$aix_use_runtimelinking" = yes; then
18172         # Warning - without using the other runtime loading flags (-brtl),
18173         # -berok will link without error, but may produce a broken library.
18174         allow_undefined_flag_GCJ='-berok'
18175        # Determine the default libpath from the value encoded in an empty executable.
18176        cat >conftest.$ac_ext <<_ACEOF
18177 /* confdefs.h.  */
18178 _ACEOF
18179 cat confdefs.h >>conftest.$ac_ext
18180 cat >>conftest.$ac_ext <<_ACEOF
18181 /* end confdefs.h.  */
18182
18183 int
18184 main ()
18185 {
18186
18187   ;
18188   return 0;
18189 }
18190 _ACEOF
18191 rm -f conftest.$ac_objext conftest$ac_exeext
18192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18193   (eval $ac_link) 2>conftest.er1
18194   ac_status=$?
18195   grep -v '^ *+' conftest.er1 >conftest.err
18196   rm -f conftest.er1
18197   cat conftest.err >&5
18198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199   (exit $ac_status); } &&
18200          { ac_try='test -z "$ac_c_werror_flag"
18201                          || test ! -s conftest.err'
18202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203   (eval $ac_try) 2>&5
18204   ac_status=$?
18205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); }; } &&
18207          { ac_try='test -s conftest$ac_exeext'
18208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209   (eval $ac_try) 2>&5
18210   ac_status=$?
18211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212   (exit $ac_status); }; }; then
18213
18214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18215 }'`
18216 # Check for a 64-bit object if we didn't find anything.
18217 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; }
18218 }'`; fi
18219 else
18220   echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18222
18223 fi
18224 rm -f conftest.err conftest.$ac_objext \
18225       conftest$ac_exeext conftest.$ac_ext
18226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18227
18228        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18229         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"
18230        else
18231         if test "$host_cpu" = ia64; then
18232           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18233           allow_undefined_flag_GCJ="-z nodefs"
18234           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"
18235         else
18236          # Determine the default libpath from the value encoded in an empty executable.
18237          cat >conftest.$ac_ext <<_ACEOF
18238 /* confdefs.h.  */
18239 _ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h.  */
18243
18244 int
18245 main ()
18246 {
18247
18248   ;
18249   return 0;
18250 }
18251 _ACEOF
18252 rm -f conftest.$ac_objext conftest$ac_exeext
18253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18254   (eval $ac_link) 2>conftest.er1
18255   ac_status=$?
18256   grep -v '^ *+' conftest.er1 >conftest.err
18257   rm -f conftest.er1
18258   cat conftest.err >&5
18259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260   (exit $ac_status); } &&
18261          { ac_try='test -z "$ac_c_werror_flag"
18262                          || test ! -s conftest.err'
18263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264   (eval $ac_try) 2>&5
18265   ac_status=$?
18266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267   (exit $ac_status); }; } &&
18268          { ac_try='test -s conftest$ac_exeext'
18269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270   (eval $ac_try) 2>&5
18271   ac_status=$?
18272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273   (exit $ac_status); }; }; then
18274
18275 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18276 }'`
18277 # Check for a 64-bit object if we didn't find anything.
18278 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; }
18279 }'`; fi
18280 else
18281   echo "$as_me: failed program was:" >&5
18282 sed 's/^/| /' conftest.$ac_ext >&5
18283
18284 fi
18285 rm -f conftest.err conftest.$ac_objext \
18286       conftest$ac_exeext conftest.$ac_ext
18287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18288
18289          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18290           # Warning - without using the other run time loading flags,
18291           # -berok will link without error, but may produce a broken library.
18292           no_undefined_flag_GCJ=' ${wl}-bernotok'
18293           allow_undefined_flag_GCJ=' ${wl}-berok'
18294           # -bexpall does not export symbols beginning with underscore (_)
18295           always_export_symbols_GCJ=yes
18296           # Exported symbols can be pulled into shared objects from archives
18297           whole_archive_flag_spec_GCJ=' '
18298           archive_cmds_need_lc_GCJ=yes
18299           # This is similar to how AIX traditionally builds it's shared libraries.
18300           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'
18301         fi
18302       fi
18303       ;;
18304
18305     amigaos*)
18306       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)'
18307       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18308       hardcode_minus_L_GCJ=yes
18309       # see comment about different semantics on the GNU ld section
18310       ld_shlibs_GCJ=no
18311       ;;
18312
18313     bsdi4*)
18314       export_dynamic_flag_spec_GCJ=-rdynamic
18315       ;;
18316
18317     cygwin* | mingw* | pw32*)
18318       # When not using gcc, we currently assume that we are using
18319       # Microsoft Visual C++.
18320       # hardcode_libdir_flag_spec is actually meaningless, as there is
18321       # no search path for DLLs.
18322       hardcode_libdir_flag_spec_GCJ=' '
18323       allow_undefined_flag_GCJ=unsupported
18324       # Tell ltmain to make .lib files, not .a files.
18325       libext=lib
18326       # Tell ltmain to make .dll files, not .so files.
18327       shrext_cmds=".dll"
18328       # FIXME: Setting linknames here is a bad hack.
18329       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18330       # The linker will automatically build a .lib file if we build a DLL.
18331       old_archive_From_new_cmds_GCJ='true'
18332       # FIXME: Should let the user specify the lib program.
18333       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18334       fix_srcfile_path='`cygpath -w "$srcfile"`'
18335       enable_shared_with_static_runtimes_GCJ=yes
18336       ;;
18337
18338     darwin* | rhapsody*)
18339     if test "$GXX" = yes ; then
18340       archive_cmds_need_lc_GCJ=no
18341       case "$host_os" in
18342       rhapsody* | darwin1.[012])
18343         allow_undefined_flag_GCJ='-undefined suppress'
18344         ;;
18345       *) # Darwin 1.3 on
18346       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18347         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18348       else
18349         case ${MACOSX_DEPLOYMENT_TARGET} in
18350           10.[012])
18351             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18352             ;;
18353           10.*)
18354             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
18355             ;;
18356         esac
18357       fi
18358         ;;
18359       esac
18360         lt_int_apple_cc_single_mod=no
18361         output_verbose_link_cmd='echo'
18362         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18363           lt_int_apple_cc_single_mod=yes
18364         fi
18365         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18366           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18367         else
18368         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'
18369       fi
18370       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18371       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18372         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18373           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}'
18374         else
18375           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}'
18376         fi
18377           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}'
18378       hardcode_direct_GCJ=no
18379       hardcode_automatic_GCJ=yes
18380       hardcode_shlibpath_var_GCJ=unsupported
18381       whole_archive_flag_spec_GCJ='-all_load $convenience'
18382       link_all_deplibs_GCJ=yes
18383     else
18384       ld_shlibs_GCJ=no
18385     fi
18386       ;;
18387
18388     dgux*)
18389       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18390       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18391       hardcode_shlibpath_var_GCJ=no
18392       ;;
18393
18394     freebsd1*)
18395       ld_shlibs_GCJ=no
18396       ;;
18397
18398     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18399     # support.  Future versions do this automatically, but an explicit c++rt0.o
18400     # does not break anything, and helps significantly (at the cost of a little
18401     # extra space).
18402     freebsd2.2*)
18403       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18404       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18405       hardcode_direct_GCJ=yes
18406       hardcode_shlibpath_var_GCJ=no
18407       ;;
18408
18409     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18410     freebsd2*)
18411       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18412       hardcode_direct_GCJ=yes
18413       hardcode_minus_L_GCJ=yes
18414       hardcode_shlibpath_var_GCJ=no
18415       ;;
18416
18417     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18418     freebsd* | kfreebsd*-gnu)
18419       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18420       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18421       hardcode_direct_GCJ=yes
18422       hardcode_shlibpath_var_GCJ=no
18423       ;;
18424
18425     hpux9*)
18426       if test "$GCC" = yes; then
18427         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'
18428       else
18429         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'
18430       fi
18431       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18432       hardcode_libdir_separator_GCJ=:
18433       hardcode_direct_GCJ=yes
18434
18435       # hardcode_minus_L: Not really in the search PATH,
18436       # but as the default location of the library.
18437       hardcode_minus_L_GCJ=yes
18438       export_dynamic_flag_spec_GCJ='${wl}-E'
18439       ;;
18440
18441     hpux10* | hpux11*)
18442       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18443         case "$host_cpu" in
18444         hppa*64*|ia64*)
18445           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18446           ;;
18447         *)
18448           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18449           ;;
18450         esac
18451       else
18452         case "$host_cpu" in
18453         hppa*64*|ia64*)
18454           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18455           ;;
18456         *)
18457           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18458           ;;
18459         esac
18460       fi
18461       if test "$with_gnu_ld" = no; then
18462         case "$host_cpu" in
18463         hppa*64*)
18464           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18465           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18466           hardcode_libdir_separator_GCJ=:
18467           hardcode_direct_GCJ=no
18468           hardcode_shlibpath_var_GCJ=no
18469           ;;
18470         ia64*)
18471           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18472           hardcode_direct_GCJ=no
18473           hardcode_shlibpath_var_GCJ=no
18474
18475           # hardcode_minus_L: Not really in the search PATH,
18476           # but as the default location of the library.
18477           hardcode_minus_L_GCJ=yes
18478           ;;
18479         *)
18480           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18481           hardcode_libdir_separator_GCJ=:
18482           hardcode_direct_GCJ=yes
18483           export_dynamic_flag_spec_GCJ='${wl}-E'
18484
18485           # hardcode_minus_L: Not really in the search PATH,
18486           # but as the default location of the library.
18487           hardcode_minus_L_GCJ=yes
18488           ;;
18489         esac
18490       fi
18491       ;;
18492
18493     irix5* | irix6* | nonstopux*)
18494       if test "$GCC" = yes; then
18495         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'
18496       else
18497         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'
18498         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18499       fi
18500       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18501       hardcode_libdir_separator_GCJ=:
18502       link_all_deplibs_GCJ=yes
18503       ;;
18504
18505     netbsd*)
18506       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18507         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18508       else
18509         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18510       fi
18511       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18512       hardcode_direct_GCJ=yes
18513       hardcode_shlibpath_var_GCJ=no
18514       ;;
18515
18516     newsos6)
18517       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18518       hardcode_direct_GCJ=yes
18519       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18520       hardcode_libdir_separator_GCJ=:
18521       hardcode_shlibpath_var_GCJ=no
18522       ;;
18523
18524     openbsd*)
18525       hardcode_direct_GCJ=yes
18526       hardcode_shlibpath_var_GCJ=no
18527       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18528         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18529         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18530         export_dynamic_flag_spec_GCJ='${wl}-E'
18531       else
18532        case $host_os in
18533          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18534            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18535            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18536            ;;
18537          *)
18538            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18539            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18540            ;;
18541        esac
18542       fi
18543       ;;
18544
18545     os2*)
18546       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18547       hardcode_minus_L_GCJ=yes
18548       allow_undefined_flag_GCJ=unsupported
18549       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'
18550       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18551       ;;
18552
18553     osf3*)
18554       if test "$GCC" = yes; then
18555         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18556         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'
18557       else
18558         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18559         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'
18560       fi
18561       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18562       hardcode_libdir_separator_GCJ=:
18563       ;;
18564
18565     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18566       if test "$GCC" = yes; then
18567         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18568         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'
18569         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18570       else
18571         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18572         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'
18573         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~
18574         $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'
18575
18576         # Both c and cxx compiler support -rpath directly
18577         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18578       fi
18579       hardcode_libdir_separator_GCJ=:
18580       ;;
18581
18582     sco3.2v5*)
18583       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18584       hardcode_shlibpath_var_GCJ=no
18585       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18586       runpath_var=LD_RUN_PATH
18587       hardcode_runpath_var=yes
18588       ;;
18589
18590     solaris*)
18591       no_undefined_flag_GCJ=' -z text'
18592       if test "$GCC" = yes; then
18593         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18594         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18595           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18596       else
18597         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18598         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18599         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18600       fi
18601       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18602       hardcode_shlibpath_var_GCJ=no
18603       case $host_os in
18604       solaris2.[0-5] | solaris2.[0-5].*) ;;
18605       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18606         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18607       esac
18608       link_all_deplibs_GCJ=yes
18609       ;;
18610
18611     sunos4*)
18612       if test "x$host_vendor" = xsequent; then
18613         # Use $CC to link under sequent, because it throws in some extra .o
18614         # files that make .init and .fini sections work.
18615         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18616       else
18617         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18618       fi
18619       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18620       hardcode_direct_GCJ=yes
18621       hardcode_minus_L_GCJ=yes
18622       hardcode_shlibpath_var_GCJ=no
18623       ;;
18624
18625     sysv4)
18626       case $host_vendor in
18627         sni)
18628           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18629           hardcode_direct_GCJ=yes # is this really true???
18630         ;;
18631         siemens)
18632           ## LD is ld it makes a PLAMLIB
18633           ## CC just makes a GrossModule.
18634           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18635           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18636           hardcode_direct_GCJ=no
18637         ;;
18638         motorola)
18639           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18640           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18641         ;;
18642       esac
18643       runpath_var='LD_RUN_PATH'
18644       hardcode_shlibpath_var_GCJ=no
18645       ;;
18646
18647     sysv4.3*)
18648       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18649       hardcode_shlibpath_var_GCJ=no
18650       export_dynamic_flag_spec_GCJ='-Bexport'
18651       ;;
18652
18653     sysv4*MP*)
18654       if test -d /usr/nec; then
18655         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18656         hardcode_shlibpath_var_GCJ=no
18657         runpath_var=LD_RUN_PATH
18658         hardcode_runpath_var=yes
18659         ld_shlibs_GCJ=yes
18660       fi
18661       ;;
18662
18663     sysv4.2uw2*)
18664       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18665       hardcode_direct_GCJ=yes
18666       hardcode_minus_L_GCJ=no
18667       hardcode_shlibpath_var_GCJ=no
18668       hardcode_runpath_var=yes
18669       runpath_var=LD_RUN_PATH
18670       ;;
18671
18672    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18673       no_undefined_flag_GCJ='${wl}-z ${wl}text'
18674       if test "$GCC" = yes; then
18675         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18676       else
18677         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18678       fi
18679       runpath_var='LD_RUN_PATH'
18680       hardcode_shlibpath_var_GCJ=no
18681       ;;
18682
18683     sysv5*)
18684       no_undefined_flag_GCJ=' -z text'
18685       # $CC -shared without GNU ld will not create a library from C++
18686       # object files and a static libstdc++, better avoid it by now
18687       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18688       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18689                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18690       hardcode_libdir_flag_spec_GCJ=
18691       hardcode_shlibpath_var_GCJ=no
18692       runpath_var='LD_RUN_PATH'
18693       ;;
18694
18695     uts4*)
18696       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18697       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18698       hardcode_shlibpath_var_GCJ=no
18699       ;;
18700
18701     *)
18702       ld_shlibs_GCJ=no
18703       ;;
18704     esac
18705   fi
18706
18707 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18708 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18709 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18710
18711 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18712 if test "$GCC" = yes; then
18713   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18714 fi
18715
18716 #
18717 # Do we need to explicitly link libc?
18718 #
18719 case "x$archive_cmds_need_lc_GCJ" in
18720 x|xyes)
18721   # Assume -lc should be added
18722   archive_cmds_need_lc_GCJ=yes
18723
18724   if test "$enable_shared" = yes && test "$GCC" = yes; then
18725     case $archive_cmds_GCJ in
18726     *'~'*)
18727       # FIXME: we may have to deal with multi-command sequences.
18728       ;;
18729     '$CC '*)
18730       # Test whether the compiler implicitly links with -lc since on some
18731       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18732       # to ld, don't add -lc before -lgcc.
18733       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18734 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18735       $rm conftest*
18736       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18737
18738       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18739   (eval $ac_compile) 2>&5
18740   ac_status=$?
18741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742   (exit $ac_status); } 2>conftest.err; then
18743         soname=conftest
18744         lib=conftest
18745         libobjs=conftest.$ac_objext
18746         deplibs=
18747         wl=$lt_prog_compiler_wl_GCJ
18748         compiler_flags=-v
18749         linker_flags=-v
18750         verstring=
18751         output_objdir=.
18752         libname=conftest
18753         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18754         allow_undefined_flag_GCJ=
18755         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18756   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18757   ac_status=$?
18758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759   (exit $ac_status); }
18760         then
18761           archive_cmds_need_lc_GCJ=no
18762         else
18763           archive_cmds_need_lc_GCJ=yes
18764         fi
18765         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18766       else
18767         cat conftest.err 1>&5
18768       fi
18769       $rm conftest*
18770       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18771 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18772       ;;
18773     esac
18774   fi
18775   ;;
18776 esac
18777
18778 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18779 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18780 library_names_spec=
18781 libname_spec='lib$name'
18782 soname_spec=
18783 shrext_cmds=".so"
18784 postinstall_cmds=
18785 postuninstall_cmds=
18786 finish_cmds=
18787 finish_eval=
18788 shlibpath_var=
18789 shlibpath_overrides_runpath=unknown
18790 version_type=none
18791 dynamic_linker="$host_os ld.so"
18792 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18793 if test "$GCC" = yes; then
18794   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18795   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18796     # if the path contains ";" then we assume it to be the separator
18797     # otherwise default to the standard path separator (i.e. ":") - it is
18798     # assumed that no part of a normal pathname contains ";" but that should
18799     # okay in the real world where ";" in dirpaths is itself problematic.
18800     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18801   else
18802     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18803   fi
18804 else
18805   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18806 fi
18807 need_lib_prefix=unknown
18808 hardcode_into_libs=no
18809
18810 # when you set need_version to no, make sure it does not cause -set_version
18811 # flags to be left without arguments
18812 need_version=unknown
18813
18814 case $host_os in
18815 aix3*)
18816   version_type=linux
18817   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18818   shlibpath_var=LIBPATH
18819
18820   # AIX 3 has no versioning support, so we append a major version to the name.
18821   soname_spec='${libname}${release}${shared_ext}$major'
18822   ;;
18823
18824 aix4* | aix5*)
18825   version_type=linux
18826   need_lib_prefix=no
18827   need_version=no
18828   hardcode_into_libs=yes
18829   if test "$host_cpu" = ia64; then
18830     # AIX 5 supports IA64
18831     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18832     shlibpath_var=LD_LIBRARY_PATH
18833   else
18834     # With GCC up to 2.95.x, collect2 would create an import file
18835     # for dependence libraries.  The import file would start with
18836     # the line `#! .'.  This would cause the generated library to
18837     # depend on `.', always an invalid library.  This was fixed in
18838     # development snapshots of GCC prior to 3.0.
18839     case $host_os in
18840       aix4 | aix4.[01] | aix4.[01].*)
18841       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18842            echo ' yes '
18843            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18844         :
18845       else
18846         can_build_shared=no
18847       fi
18848       ;;
18849     esac
18850     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18851     # soname into executable. Probably we can add versioning support to
18852     # collect2, so additional links can be useful in future.
18853     if test "$aix_use_runtimelinking" = yes; then
18854       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18855       # instead of lib<name>.a to let people know that these are not
18856       # typical AIX shared libraries.
18857       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18858     else
18859       # We preserve .a as extension for shared libraries through AIX4.2
18860       # and later when we are not doing run time linking.
18861       library_names_spec='${libname}${release}.a $libname.a'
18862       soname_spec='${libname}${release}${shared_ext}$major'
18863     fi
18864     shlibpath_var=LIBPATH
18865   fi
18866   ;;
18867
18868 amigaos*)
18869   library_names_spec='$libname.ixlibrary $libname.a'
18870   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18871   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'
18872   ;;
18873
18874 beos*)
18875   library_names_spec='${libname}${shared_ext}'
18876   dynamic_linker="$host_os ld.so"
18877   shlibpath_var=LIBRARY_PATH
18878   ;;
18879
18880 bsdi4*)
18881   version_type=linux
18882   need_version=no
18883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18884   soname_spec='${libname}${release}${shared_ext}$major'
18885   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18886   shlibpath_var=LD_LIBRARY_PATH
18887   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18888   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18889   # the default ld.so.conf also contains /usr/contrib/lib and
18890   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18891   # libtool to hard-code these into programs
18892   ;;
18893
18894 cygwin* | mingw* | pw32*)
18895   version_type=windows
18896   shrext_cmds=".dll"
18897   need_version=no
18898   need_lib_prefix=no
18899
18900   case $GCC,$host_os in
18901   yes,cygwin* | yes,mingw* | yes,pw32*)
18902     library_names_spec='$libname.dll.a'
18903     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18904     postinstall_cmds='base_file=`basename \${file}`~
18905       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18906       dldir=$destdir/`dirname \$dlpath`~
18907       test -d \$dldir || mkdir -p \$dldir~
18908       $install_prog $dir/$dlname \$dldir/$dlname'
18909     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18910       dlpath=$dir/\$dldll~
18911        $rm \$dlpath'
18912     shlibpath_overrides_runpath=yes
18913
18914     case $host_os in
18915     cygwin*)
18916       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18917       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18918       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18919       ;;
18920     mingw*)
18921       # MinGW DLLs use traditional 'lib' prefix
18922       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18923       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18924       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18925         # It is most probably a Windows format PATH printed by
18926         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18927         # path with ; separators, and with drive letters. We can handle the
18928         # drive letters (cygwin fileutils understands them), so leave them,
18929         # especially as we might pass files found there to a mingw objdump,
18930         # which wouldn't understand a cygwinified path. Ahh.
18931         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18932       else
18933         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18934       fi
18935       ;;
18936     pw32*)
18937       # pw32 DLLs use 'pw' prefix rather than 'lib'
18938       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18939       ;;
18940     esac
18941     ;;
18942
18943   *)
18944     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18945     ;;
18946   esac
18947   dynamic_linker='Win32 ld.exe'
18948   # FIXME: first we should search . and the directory the executable is in
18949   shlibpath_var=PATH
18950   ;;
18951
18952 darwin* | rhapsody*)
18953   dynamic_linker="$host_os dyld"
18954   version_type=darwin
18955   need_lib_prefix=no
18956   need_version=no
18957   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18958   soname_spec='${libname}${release}${major}$shared_ext'
18959   shlibpath_overrides_runpath=yes
18960   shlibpath_var=DYLD_LIBRARY_PATH
18961   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18962   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18963   if test "$GCC" = yes; then
18964     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"`
18965   else
18966     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18967   fi
18968   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18969   ;;
18970
18971 dgux*)
18972   version_type=linux
18973   need_lib_prefix=no
18974   need_version=no
18975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18976   soname_spec='${libname}${release}${shared_ext}$major'
18977   shlibpath_var=LD_LIBRARY_PATH
18978   ;;
18979
18980 freebsd1*)
18981   dynamic_linker=no
18982   ;;
18983
18984 kfreebsd*-gnu)
18985   version_type=linux
18986   need_lib_prefix=no
18987   need_version=no
18988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18989   soname_spec='${libname}${release}${shared_ext}$major'
18990   shlibpath_var=LD_LIBRARY_PATH
18991   shlibpath_overrides_runpath=no
18992   hardcode_into_libs=yes
18993   dynamic_linker='GNU ld.so'
18994   ;;
18995
18996 freebsd*)
18997   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18998   version_type=freebsd-$objformat
18999   case $version_type in
19000     freebsd-elf*)
19001       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19002       need_version=no
19003       need_lib_prefix=no
19004       ;;
19005     freebsd-*)
19006       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19007       need_version=yes
19008       ;;
19009   esac
19010   shlibpath_var=LD_LIBRARY_PATH
19011   case $host_os in
19012   freebsd2*)
19013     shlibpath_overrides_runpath=yes
19014     ;;
19015   freebsd3.01* | freebsdelf3.01*)
19016     shlibpath_overrides_runpath=yes
19017     hardcode_into_libs=yes
19018     ;;
19019   *) # from 3.2 on
19020     shlibpath_overrides_runpath=no
19021     hardcode_into_libs=yes
19022     ;;
19023   esac
19024   ;;
19025
19026 gnu*)
19027   version_type=linux
19028   need_lib_prefix=no
19029   need_version=no
19030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19031   soname_spec='${libname}${release}${shared_ext}$major'
19032   shlibpath_var=LD_LIBRARY_PATH
19033   hardcode_into_libs=yes
19034   ;;
19035
19036 hpux9* | hpux10* | hpux11*)
19037   # Give a soname corresponding to the major version so that dld.sl refuses to
19038   # link against other versions.
19039   version_type=sunos
19040   need_lib_prefix=no
19041   need_version=no
19042   case "$host_cpu" in
19043   ia64*)
19044     shrext_cmds='.so'
19045     hardcode_into_libs=yes
19046     dynamic_linker="$host_os dld.so"
19047     shlibpath_var=LD_LIBRARY_PATH
19048     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19050     soname_spec='${libname}${release}${shared_ext}$major'
19051     if test "X$HPUX_IA64_MODE" = X32; then
19052       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19053     else
19054       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19055     fi
19056     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19057     ;;
19058    hppa*64*)
19059      shrext_cmds='.sl'
19060      hardcode_into_libs=yes
19061      dynamic_linker="$host_os dld.sl"
19062      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19063      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19064      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19065      soname_spec='${libname}${release}${shared_ext}$major'
19066      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19067      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19068      ;;
19069    *)
19070     shrext_cmds='.sl'
19071     dynamic_linker="$host_os dld.sl"
19072     shlibpath_var=SHLIB_PATH
19073     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19074     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19075     soname_spec='${libname}${release}${shared_ext}$major'
19076     ;;
19077   esac
19078   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19079   postinstall_cmds='chmod 555 $lib'
19080   ;;
19081
19082 irix5* | irix6* | nonstopux*)
19083   case $host_os in
19084     nonstopux*) version_type=nonstopux ;;
19085     *)
19086         if test "$lt_cv_prog_gnu_ld" = yes; then
19087                 version_type=linux
19088         else
19089                 version_type=irix
19090         fi ;;
19091   esac
19092   need_lib_prefix=no
19093   need_version=no
19094   soname_spec='${libname}${release}${shared_ext}$major'
19095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19096   case $host_os in
19097   irix5* | nonstopux*)
19098     libsuff= shlibsuff=
19099     ;;
19100   *)
19101     case $LD in # libtool.m4 will add one of these switches to LD
19102     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19103       libsuff= shlibsuff= libmagic=32-bit;;
19104     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19105       libsuff=32 shlibsuff=N32 libmagic=N32;;
19106     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19107       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19108     *) libsuff= shlibsuff= libmagic=never-match;;
19109     esac
19110     ;;
19111   esac
19112   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19113   shlibpath_overrides_runpath=no
19114   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19115   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19116   hardcode_into_libs=yes
19117   ;;
19118
19119 # No shared lib support for Linux oldld, aout, or coff.
19120 linux*oldld* | linux*aout* | linux*coff*)
19121   dynamic_linker=no
19122   ;;
19123
19124 # This must be Linux ELF.
19125 linux*)
19126   version_type=linux
19127   need_lib_prefix=no
19128   need_version=no
19129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19130   soname_spec='${libname}${release}${shared_ext}$major'
19131   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19132   shlibpath_var=LD_LIBRARY_PATH
19133   shlibpath_overrides_runpath=no
19134   # This implies no fast_install, which is unacceptable.
19135   # Some rework will be needed to allow for fast_install
19136   # before this can be enabled.
19137   hardcode_into_libs=yes
19138
19139   # find out which ABI we are using
19140   libsuff=
19141   case "$host_cpu" in
19142   x86_64*|s390x*|powerpc64*)
19143     echo '#line 19143 "configure"' > conftest.$ac_ext
19144     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19145   (eval $ac_compile) 2>&5
19146   ac_status=$?
19147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148   (exit $ac_status); }; then
19149       case `/usr/bin/file conftest.$ac_objext` in
19150       *64-bit*)
19151         libsuff=64
19152         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19153         ;;
19154       esac
19155     fi
19156     rm -rf conftest*
19157     ;;
19158   esac
19159
19160   # Append ld.so.conf contents to the search path
19161   if test -f /etc/ld.so.conf; then
19162     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
19163     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19164   fi
19165
19166   # We used to test for /lib/ld.so.1 and disable shared libraries on
19167   # powerpc, because MkLinux only supported shared libraries with the
19168   # GNU dynamic linker.  Since this was broken with cross compilers,
19169   # most powerpc-linux boxes support dynamic linking these days and
19170   # people can always --disable-shared, the test was removed, and we
19171   # assume the GNU/Linux dynamic linker is in use.
19172   dynamic_linker='GNU/Linux ld.so'
19173   ;;
19174
19175 knetbsd*-gnu)
19176   version_type=linux
19177   need_lib_prefix=no
19178   need_version=no
19179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19180   soname_spec='${libname}${release}${shared_ext}$major'
19181   shlibpath_var=LD_LIBRARY_PATH
19182   shlibpath_overrides_runpath=no
19183   hardcode_into_libs=yes
19184   dynamic_linker='GNU ld.so'
19185   ;;
19186
19187 netbsd*)
19188   version_type=sunos
19189   need_lib_prefix=no
19190   need_version=no
19191   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19192     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19193     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19194     dynamic_linker='NetBSD (a.out) ld.so'
19195   else
19196     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19197     soname_spec='${libname}${release}${shared_ext}$major'
19198     dynamic_linker='NetBSD ld.elf_so'
19199   fi
19200   shlibpath_var=LD_LIBRARY_PATH
19201   shlibpath_overrides_runpath=yes
19202   hardcode_into_libs=yes
19203   ;;
19204
19205 newsos6)
19206   version_type=linux
19207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19208   shlibpath_var=LD_LIBRARY_PATH
19209   shlibpath_overrides_runpath=yes
19210   ;;
19211
19212 nto-qnx*)
19213   version_type=linux
19214   need_lib_prefix=no
19215   need_version=no
19216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19217   soname_spec='${libname}${release}${shared_ext}$major'
19218   shlibpath_var=LD_LIBRARY_PATH
19219   shlibpath_overrides_runpath=yes
19220   ;;
19221
19222 openbsd*)
19223   version_type=sunos
19224   need_lib_prefix=no
19225   need_version=yes
19226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19227   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19228   shlibpath_var=LD_LIBRARY_PATH
19229   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19230     case $host_os in
19231       openbsd2.[89] | openbsd2.[89].*)
19232         shlibpath_overrides_runpath=no
19233         ;;
19234       *)
19235         shlibpath_overrides_runpath=yes
19236         ;;
19237       esac
19238   else
19239     shlibpath_overrides_runpath=yes
19240   fi
19241   ;;
19242
19243 os2*)
19244   libname_spec='$name'
19245   shrext_cmds=".dll"
19246   need_lib_prefix=no
19247   library_names_spec='$libname${shared_ext} $libname.a'
19248   dynamic_linker='OS/2 ld.exe'
19249   shlibpath_var=LIBPATH
19250   ;;
19251
19252 osf3* | osf4* | osf5*)
19253   version_type=osf
19254   need_lib_prefix=no
19255   need_version=no
19256   soname_spec='${libname}${release}${shared_ext}$major'
19257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19258   shlibpath_var=LD_LIBRARY_PATH
19259   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19260   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19261   ;;
19262
19263 sco3.2v5*)
19264   version_type=osf
19265   soname_spec='${libname}${release}${shared_ext}$major'
19266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19267   shlibpath_var=LD_LIBRARY_PATH
19268   ;;
19269
19270 solaris*)
19271   version_type=linux
19272   need_lib_prefix=no
19273   need_version=no
19274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19275   soname_spec='${libname}${release}${shared_ext}$major'
19276   shlibpath_var=LD_LIBRARY_PATH
19277   shlibpath_overrides_runpath=yes
19278   hardcode_into_libs=yes
19279   # ldd complains unless libraries are executable
19280   postinstall_cmds='chmod +x $lib'
19281   ;;
19282
19283 sunos4*)
19284   version_type=sunos
19285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19286   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19287   shlibpath_var=LD_LIBRARY_PATH
19288   shlibpath_overrides_runpath=yes
19289   if test "$with_gnu_ld" = yes; then
19290     need_lib_prefix=no
19291   fi
19292   need_version=yes
19293   ;;
19294
19295 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19296   version_type=linux
19297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19298   soname_spec='${libname}${release}${shared_ext}$major'
19299   shlibpath_var=LD_LIBRARY_PATH
19300   case $host_vendor in
19301     sni)
19302       shlibpath_overrides_runpath=no
19303       need_lib_prefix=no
19304       export_dynamic_flag_spec='${wl}-Blargedynsym'
19305       runpath_var=LD_RUN_PATH
19306       ;;
19307     siemens)
19308       need_lib_prefix=no
19309       ;;
19310     motorola)
19311       need_lib_prefix=no
19312       need_version=no
19313       shlibpath_overrides_runpath=no
19314       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19315       ;;
19316   esac
19317   ;;
19318
19319 sysv4*MP*)
19320   if test -d /usr/nec ;then
19321     version_type=linux
19322     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19323     soname_spec='$libname${shared_ext}.$major'
19324     shlibpath_var=LD_LIBRARY_PATH
19325   fi
19326   ;;
19327
19328 uts4*)
19329   version_type=linux
19330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19331   soname_spec='${libname}${release}${shared_ext}$major'
19332   shlibpath_var=LD_LIBRARY_PATH
19333   ;;
19334
19335 *)
19336   dynamic_linker=no
19337   ;;
19338 esac
19339 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19340 echo "${ECHO_T}$dynamic_linker" >&6
19341 test "$dynamic_linker" = no && can_build_shared=no
19342
19343 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19344 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19345 hardcode_action_GCJ=
19346 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19347    test -n "$runpath_var GCJ" || \
19348    test "X$hardcode_automatic_GCJ"="Xyes" ; then
19349
19350   # We can hardcode non-existant directories.
19351   if test "$hardcode_direct_GCJ" != no &&
19352      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19353      # have to relink, otherwise we might link with an installed library
19354      # when we should be linking with a yet-to-be-installed one
19355      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19356      test "$hardcode_minus_L_GCJ" != no; then
19357     # Linking always hardcodes the temporary library directory.
19358     hardcode_action_GCJ=relink
19359   else
19360     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19361     hardcode_action_GCJ=immediate
19362   fi
19363 else
19364   # We cannot hardcode anything, or else we can only hardcode existing
19365   # directories.
19366   hardcode_action_GCJ=unsupported
19367 fi
19368 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19369 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19370
19371 if test "$hardcode_action_GCJ" = relink; then
19372   # Fast installation is not supported
19373   enable_fast_install=no
19374 elif test "$shlibpath_overrides_runpath" = yes ||
19375      test "$enable_shared" = no; then
19376   # Fast installation is not necessary
19377   enable_fast_install=needless
19378 fi
19379
19380 striplib=
19381 old_striplib=
19382 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19383 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19384 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19385   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19386   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19387   echo "$as_me:$LINENO: result: yes" >&5
19388 echo "${ECHO_T}yes" >&6
19389 else
19390 # FIXME - insert some real tests, host_os isn't really good enough
19391   case $host_os in
19392    darwin*)
19393        if test -n "$STRIP" ; then
19394          striplib="$STRIP -x"
19395          echo "$as_me:$LINENO: result: yes" >&5
19396 echo "${ECHO_T}yes" >&6
19397        else
19398   echo "$as_me:$LINENO: result: no" >&5
19399 echo "${ECHO_T}no" >&6
19400 fi
19401        ;;
19402    *)
19403   echo "$as_me:$LINENO: result: no" >&5
19404 echo "${ECHO_T}no" >&6
19405     ;;
19406   esac
19407 fi
19408
19409 if test "x$enable_dlopen" != xyes; then
19410   enable_dlopen=unknown
19411   enable_dlopen_self=unknown
19412   enable_dlopen_self_static=unknown
19413 else
19414   lt_cv_dlopen=no
19415   lt_cv_dlopen_libs=
19416
19417   case $host_os in
19418   beos*)
19419     lt_cv_dlopen="load_add_on"
19420     lt_cv_dlopen_libs=
19421     lt_cv_dlopen_self=yes
19422     ;;
19423
19424   mingw* | pw32*)
19425     lt_cv_dlopen="LoadLibrary"
19426     lt_cv_dlopen_libs=
19427    ;;
19428
19429   cygwin*)
19430     lt_cv_dlopen="dlopen"
19431     lt_cv_dlopen_libs=
19432    ;;
19433
19434   darwin*)
19435   # if libdl is installed we need to link against it
19436     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19437 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19438 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19439   echo $ECHO_N "(cached) $ECHO_C" >&6
19440 else
19441   ac_check_lib_save_LIBS=$LIBS
19442 LIBS="-ldl  $LIBS"
19443 cat >conftest.$ac_ext <<_ACEOF
19444 /* confdefs.h.  */
19445 _ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h.  */
19449
19450 /* Override any gcc2 internal prototype to avoid an error.  */
19451 #ifdef __cplusplus
19452 extern "C"
19453 #endif
19454 /* We use char because int might match the return type of a gcc2
19455    builtin and then its argument prototype would still apply.  */
19456 char dlopen ();
19457 int
19458 main ()
19459 {
19460 dlopen ();
19461   ;
19462   return 0;
19463 }
19464 _ACEOF
19465 rm -f conftest.$ac_objext conftest$ac_exeext
19466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19467   (eval $ac_link) 2>conftest.er1
19468   ac_status=$?
19469   grep -v '^ *+' conftest.er1 >conftest.err
19470   rm -f conftest.er1
19471   cat conftest.err >&5
19472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473   (exit $ac_status); } &&
19474          { ac_try='test -z "$ac_c_werror_flag"
19475                          || test ! -s conftest.err'
19476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477   (eval $ac_try) 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; } &&
19481          { ac_try='test -s conftest$ac_exeext'
19482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483   (eval $ac_try) 2>&5
19484   ac_status=$?
19485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486   (exit $ac_status); }; }; then
19487   ac_cv_lib_dl_dlopen=yes
19488 else
19489   echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19491
19492 ac_cv_lib_dl_dlopen=no
19493 fi
19494 rm -f conftest.err conftest.$ac_objext \
19495       conftest$ac_exeext conftest.$ac_ext
19496 LIBS=$ac_check_lib_save_LIBS
19497 fi
19498 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19499 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19500 if test $ac_cv_lib_dl_dlopen = yes; then
19501   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19502 else
19503
19504     lt_cv_dlopen="dyld"
19505     lt_cv_dlopen_libs=
19506     lt_cv_dlopen_self=yes
19507
19508 fi
19509
19510    ;;
19511
19512   *)
19513     echo "$as_me:$LINENO: checking for shl_load" >&5
19514 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19515 if test "${ac_cv_func_shl_load+set}" = set; then
19516   echo $ECHO_N "(cached) $ECHO_C" >&6
19517 else
19518   cat >conftest.$ac_ext <<_ACEOF
19519 /* confdefs.h.  */
19520 _ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h.  */
19524 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19526 #define shl_load innocuous_shl_load
19527
19528 /* System header to define __stub macros and hopefully few prototypes,
19529     which can conflict with char shl_load (); below.
19530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19531     <limits.h> exists even on freestanding compilers.  */
19532
19533 #ifdef __STDC__
19534 # include <limits.h>
19535 #else
19536 # include <assert.h>
19537 #endif
19538
19539 #undef shl_load
19540
19541 /* Override any gcc2 internal prototype to avoid an error.  */
19542 #ifdef __cplusplus
19543 extern "C"
19544 {
19545 #endif
19546 /* We use char because int might match the return type of a gcc2
19547    builtin and then its argument prototype would still apply.  */
19548 char shl_load ();
19549 /* The GNU C library defines this for functions which it implements
19550     to always fail with ENOSYS.  Some functions are actually named
19551     something starting with __ and the normal name is an alias.  */
19552 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19553 choke me
19554 #else
19555 char (*f) () = shl_load;
19556 #endif
19557 #ifdef __cplusplus
19558 }
19559 #endif
19560
19561 int
19562 main ()
19563 {
19564 return f != shl_load;
19565   ;
19566   return 0;
19567 }
19568 _ACEOF
19569 rm -f conftest.$ac_objext conftest$ac_exeext
19570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19571   (eval $ac_link) 2>conftest.er1
19572   ac_status=$?
19573   grep -v '^ *+' conftest.er1 >conftest.err
19574   rm -f conftest.er1
19575   cat conftest.err >&5
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); } &&
19578          { ac_try='test -z "$ac_c_werror_flag"
19579                          || test ! -s conftest.err'
19580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581   (eval $ac_try) 2>&5
19582   ac_status=$?
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); }; } &&
19585          { ac_try='test -s conftest$ac_exeext'
19586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587   (eval $ac_try) 2>&5
19588   ac_status=$?
19589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); }; }; then
19591   ac_cv_func_shl_load=yes
19592 else
19593   echo "$as_me: failed program was:" >&5
19594 sed 's/^/| /' conftest.$ac_ext >&5
19595
19596 ac_cv_func_shl_load=no
19597 fi
19598 rm -f conftest.err conftest.$ac_objext \
19599       conftest$ac_exeext conftest.$ac_ext
19600 fi
19601 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19602 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19603 if test $ac_cv_func_shl_load = yes; then
19604   lt_cv_dlopen="shl_load"
19605 else
19606   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19607 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19608 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19609   echo $ECHO_N "(cached) $ECHO_C" >&6
19610 else
19611   ac_check_lib_save_LIBS=$LIBS
19612 LIBS="-ldld  $LIBS"
19613 cat >conftest.$ac_ext <<_ACEOF
19614 /* confdefs.h.  */
19615 _ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h.  */
19619
19620 /* Override any gcc2 internal prototype to avoid an error.  */
19621 #ifdef __cplusplus
19622 extern "C"
19623 #endif
19624 /* We use char because int might match the return type of a gcc2
19625    builtin and then its argument prototype would still apply.  */
19626 char shl_load ();
19627 int
19628 main ()
19629 {
19630 shl_load ();
19631   ;
19632   return 0;
19633 }
19634 _ACEOF
19635 rm -f conftest.$ac_objext conftest$ac_exeext
19636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19637   (eval $ac_link) 2>conftest.er1
19638   ac_status=$?
19639   grep -v '^ *+' conftest.er1 >conftest.err
19640   rm -f conftest.er1
19641   cat conftest.err >&5
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); } &&
19644          { ac_try='test -z "$ac_c_werror_flag"
19645                          || test ! -s conftest.err'
19646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647   (eval $ac_try) 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); }; } &&
19651          { ac_try='test -s conftest$ac_exeext'
19652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653   (eval $ac_try) 2>&5
19654   ac_status=$?
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); }; }; then
19657   ac_cv_lib_dld_shl_load=yes
19658 else
19659   echo "$as_me: failed program was:" >&5
19660 sed 's/^/| /' conftest.$ac_ext >&5
19661
19662 ac_cv_lib_dld_shl_load=no
19663 fi
19664 rm -f conftest.err conftest.$ac_objext \
19665       conftest$ac_exeext conftest.$ac_ext
19666 LIBS=$ac_check_lib_save_LIBS
19667 fi
19668 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19669 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19670 if test $ac_cv_lib_dld_shl_load = yes; then
19671   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19672 else
19673   echo "$as_me:$LINENO: checking for dlopen" >&5
19674 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19675 if test "${ac_cv_func_dlopen+set}" = set; then
19676   echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678   cat >conftest.$ac_ext <<_ACEOF
19679 /* confdefs.h.  */
19680 _ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h.  */
19684 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19686 #define dlopen innocuous_dlopen
19687
19688 /* System header to define __stub macros and hopefully few prototypes,
19689     which can conflict with char dlopen (); below.
19690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19691     <limits.h> exists even on freestanding compilers.  */
19692
19693 #ifdef __STDC__
19694 # include <limits.h>
19695 #else
19696 # include <assert.h>
19697 #endif
19698
19699 #undef dlopen
19700
19701 /* Override any gcc2 internal prototype to avoid an error.  */
19702 #ifdef __cplusplus
19703 extern "C"
19704 {
19705 #endif
19706 /* We use char because int might match the return type of a gcc2
19707    builtin and then its argument prototype would still apply.  */
19708 char dlopen ();
19709 /* The GNU C library defines this for functions which it implements
19710     to always fail with ENOSYS.  Some functions are actually named
19711     something starting with __ and the normal name is an alias.  */
19712 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19713 choke me
19714 #else
19715 char (*f) () = dlopen;
19716 #endif
19717 #ifdef __cplusplus
19718 }
19719 #endif
19720
19721 int
19722 main ()
19723 {
19724 return f != dlopen;
19725   ;
19726   return 0;
19727 }
19728 _ACEOF
19729 rm -f conftest.$ac_objext conftest$ac_exeext
19730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19731   (eval $ac_link) 2>conftest.er1
19732   ac_status=$?
19733   grep -v '^ *+' conftest.er1 >conftest.err
19734   rm -f conftest.er1
19735   cat conftest.err >&5
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); } &&
19738          { ac_try='test -z "$ac_c_werror_flag"
19739                          || test ! -s conftest.err'
19740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741   (eval $ac_try) 2>&5
19742   ac_status=$?
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); }; } &&
19745          { ac_try='test -s conftest$ac_exeext'
19746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747   (eval $ac_try) 2>&5
19748   ac_status=$?
19749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750   (exit $ac_status); }; }; then
19751   ac_cv_func_dlopen=yes
19752 else
19753   echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19755
19756 ac_cv_func_dlopen=no
19757 fi
19758 rm -f conftest.err conftest.$ac_objext \
19759       conftest$ac_exeext conftest.$ac_ext
19760 fi
19761 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19762 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19763 if test $ac_cv_func_dlopen = yes; then
19764   lt_cv_dlopen="dlopen"
19765 else
19766   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19767 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19768 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19769   echo $ECHO_N "(cached) $ECHO_C" >&6
19770 else
19771   ac_check_lib_save_LIBS=$LIBS
19772 LIBS="-ldl  $LIBS"
19773 cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h.  */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h.  */
19779
19780 /* Override any gcc2 internal prototype to avoid an error.  */
19781 #ifdef __cplusplus
19782 extern "C"
19783 #endif
19784 /* We use char because int might match the return type of a gcc2
19785    builtin and then its argument prototype would still apply.  */
19786 char dlopen ();
19787 int
19788 main ()
19789 {
19790 dlopen ();
19791   ;
19792   return 0;
19793 }
19794 _ACEOF
19795 rm -f conftest.$ac_objext conftest$ac_exeext
19796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19797   (eval $ac_link) 2>conftest.er1
19798   ac_status=$?
19799   grep -v '^ *+' conftest.er1 >conftest.err
19800   rm -f conftest.er1
19801   cat conftest.err >&5
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); } &&
19804          { ac_try='test -z "$ac_c_werror_flag"
19805                          || test ! -s conftest.err'
19806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807   (eval $ac_try) 2>&5
19808   ac_status=$?
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); }; } &&
19811          { ac_try='test -s conftest$ac_exeext'
19812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813   (eval $ac_try) 2>&5
19814   ac_status=$?
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); }; }; then
19817   ac_cv_lib_dl_dlopen=yes
19818 else
19819   echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19821
19822 ac_cv_lib_dl_dlopen=no
19823 fi
19824 rm -f conftest.err conftest.$ac_objext \
19825       conftest$ac_exeext conftest.$ac_ext
19826 LIBS=$ac_check_lib_save_LIBS
19827 fi
19828 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19829 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19830 if test $ac_cv_lib_dl_dlopen = yes; then
19831   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19832 else
19833   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19834 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19835 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19836   echo $ECHO_N "(cached) $ECHO_C" >&6
19837 else
19838   ac_check_lib_save_LIBS=$LIBS
19839 LIBS="-lsvld  $LIBS"
19840 cat >conftest.$ac_ext <<_ACEOF
19841 /* confdefs.h.  */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h.  */
19846
19847 /* Override any gcc2 internal prototype to avoid an error.  */
19848 #ifdef __cplusplus
19849 extern "C"
19850 #endif
19851 /* We use char because int might match the return type of a gcc2
19852    builtin and then its argument prototype would still apply.  */
19853 char dlopen ();
19854 int
19855 main ()
19856 {
19857 dlopen ();
19858   ;
19859   return 0;
19860 }
19861 _ACEOF
19862 rm -f conftest.$ac_objext conftest$ac_exeext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19864   (eval $ac_link) 2>conftest.er1
19865   ac_status=$?
19866   grep -v '^ *+' conftest.er1 >conftest.err
19867   rm -f conftest.er1
19868   cat conftest.err >&5
19869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870   (exit $ac_status); } &&
19871          { ac_try='test -z "$ac_c_werror_flag"
19872                          || test ! -s conftest.err'
19873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874   (eval $ac_try) 2>&5
19875   ac_status=$?
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); }; } &&
19878          { ac_try='test -s conftest$ac_exeext'
19879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880   (eval $ac_try) 2>&5
19881   ac_status=$?
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); }; }; then
19884   ac_cv_lib_svld_dlopen=yes
19885 else
19886   echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 ac_cv_lib_svld_dlopen=no
19890 fi
19891 rm -f conftest.err conftest.$ac_objext \
19892       conftest$ac_exeext conftest.$ac_ext
19893 LIBS=$ac_check_lib_save_LIBS
19894 fi
19895 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19896 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19897 if test $ac_cv_lib_svld_dlopen = yes; then
19898   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19899 else
19900   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19901 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19902 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19903   echo $ECHO_N "(cached) $ECHO_C" >&6
19904 else
19905   ac_check_lib_save_LIBS=$LIBS
19906 LIBS="-ldld  $LIBS"
19907 cat >conftest.$ac_ext <<_ACEOF
19908 /* confdefs.h.  */
19909 _ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h.  */
19913
19914 /* Override any gcc2 internal prototype to avoid an error.  */
19915 #ifdef __cplusplus
19916 extern "C"
19917 #endif
19918 /* We use char because int might match the return type of a gcc2
19919    builtin and then its argument prototype would still apply.  */
19920 char dld_link ();
19921 int
19922 main ()
19923 {
19924 dld_link ();
19925   ;
19926   return 0;
19927 }
19928 _ACEOF
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19931   (eval $ac_link) 2>conftest.er1
19932   ac_status=$?
19933   grep -v '^ *+' conftest.er1 >conftest.err
19934   rm -f conftest.er1
19935   cat conftest.err >&5
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); } &&
19938          { ac_try='test -z "$ac_c_werror_flag"
19939                          || test ! -s conftest.err'
19940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941   (eval $ac_try) 2>&5
19942   ac_status=$?
19943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); }; } &&
19945          { ac_try='test -s conftest$ac_exeext'
19946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947   (eval $ac_try) 2>&5
19948   ac_status=$?
19949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950   (exit $ac_status); }; }; then
19951   ac_cv_lib_dld_dld_link=yes
19952 else
19953   echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19955
19956 ac_cv_lib_dld_dld_link=no
19957 fi
19958 rm -f conftest.err conftest.$ac_objext \
19959       conftest$ac_exeext conftest.$ac_ext
19960 LIBS=$ac_check_lib_save_LIBS
19961 fi
19962 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19963 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19964 if test $ac_cv_lib_dld_dld_link = yes; then
19965   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19966 fi
19967
19968
19969 fi
19970
19971
19972 fi
19973
19974
19975 fi
19976
19977
19978 fi
19979
19980
19981 fi
19982
19983     ;;
19984   esac
19985
19986   if test "x$lt_cv_dlopen" != xno; then
19987     enable_dlopen=yes
19988   else
19989     enable_dlopen=no
19990   fi
19991
19992   case $lt_cv_dlopen in
19993   dlopen)
19994     save_CPPFLAGS="$CPPFLAGS"
19995     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19996
19997     save_LDFLAGS="$LDFLAGS"
19998     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19999
20000     save_LIBS="$LIBS"
20001     LIBS="$lt_cv_dlopen_libs $LIBS"
20002
20003     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20004 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20005 if test "${lt_cv_dlopen_self+set}" = set; then
20006   echo $ECHO_N "(cached) $ECHO_C" >&6
20007 else
20008           if test "$cross_compiling" = yes; then :
20009   lt_cv_dlopen_self=cross
20010 else
20011   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20012   lt_status=$lt_dlunknown
20013   cat > conftest.$ac_ext <<EOF
20014 #line 20014 "configure"
20015 #include "confdefs.h"
20016
20017 #if HAVE_DLFCN_H
20018 #include <dlfcn.h>
20019 #endif
20020
20021 #include <stdio.h>
20022
20023 #ifdef RTLD_GLOBAL
20024 #  define LT_DLGLOBAL           RTLD_GLOBAL
20025 #else
20026 #  ifdef DL_GLOBAL
20027 #    define LT_DLGLOBAL         DL_GLOBAL
20028 #  else
20029 #    define LT_DLGLOBAL         0
20030 #  endif
20031 #endif
20032
20033 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20034    find out it does not work in some platform. */
20035 #ifndef LT_DLLAZY_OR_NOW
20036 #  ifdef RTLD_LAZY
20037 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20038 #  else
20039 #    ifdef DL_LAZY
20040 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20041 #    else
20042 #      ifdef RTLD_NOW
20043 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20044 #      else
20045 #        ifdef DL_NOW
20046 #          define LT_DLLAZY_OR_NOW      DL_NOW
20047 #        else
20048 #          define LT_DLLAZY_OR_NOW      0
20049 #        endif
20050 #      endif
20051 #    endif
20052 #  endif
20053 #endif
20054
20055 #ifdef __cplusplus
20056 extern "C" void exit (int);
20057 #endif
20058
20059 void fnord() { int i=42;}
20060 int main ()
20061 {
20062   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20063   int status = $lt_dlunknown;
20064
20065   if (self)
20066     {
20067       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20068       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20069       /* dlclose (self); */
20070     }
20071
20072     exit (status);
20073 }
20074 EOF
20075   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20076   (eval $ac_link) 2>&5
20077   ac_status=$?
20078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20080     (./conftest; exit; ) 2>/dev/null
20081     lt_status=$?
20082     case x$lt_status in
20083       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20084       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20085       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20086     esac
20087   else :
20088     # compilation failed
20089     lt_cv_dlopen_self=no
20090   fi
20091 fi
20092 rm -fr conftest*
20093
20094
20095 fi
20096 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20097 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20098
20099     if test "x$lt_cv_dlopen_self" = xyes; then
20100       LDFLAGS="$LDFLAGS $link_static_flag"
20101       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20102 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20103 if test "${lt_cv_dlopen_self_static+set}" = set; then
20104   echo $ECHO_N "(cached) $ECHO_C" >&6
20105 else
20106           if test "$cross_compiling" = yes; then :
20107   lt_cv_dlopen_self_static=cross
20108 else
20109   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20110   lt_status=$lt_dlunknown
20111   cat > conftest.$ac_ext <<EOF
20112 #line 20112 "configure"
20113 #include "confdefs.h"
20114
20115 #if HAVE_DLFCN_H
20116 #include <dlfcn.h>
20117 #endif
20118
20119 #include <stdio.h>
20120
20121 #ifdef RTLD_GLOBAL
20122 #  define LT_DLGLOBAL           RTLD_GLOBAL
20123 #else
20124 #  ifdef DL_GLOBAL
20125 #    define LT_DLGLOBAL         DL_GLOBAL
20126 #  else
20127 #    define LT_DLGLOBAL         0
20128 #  endif
20129 #endif
20130
20131 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20132    find out it does not work in some platform. */
20133 #ifndef LT_DLLAZY_OR_NOW
20134 #  ifdef RTLD_LAZY
20135 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20136 #  else
20137 #    ifdef DL_LAZY
20138 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20139 #    else
20140 #      ifdef RTLD_NOW
20141 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20142 #      else
20143 #        ifdef DL_NOW
20144 #          define LT_DLLAZY_OR_NOW      DL_NOW
20145 #        else
20146 #          define LT_DLLAZY_OR_NOW      0
20147 #        endif
20148 #      endif
20149 #    endif
20150 #  endif
20151 #endif
20152
20153 #ifdef __cplusplus
20154 extern "C" void exit (int);
20155 #endif
20156
20157 void fnord() { int i=42;}
20158 int main ()
20159 {
20160   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20161   int status = $lt_dlunknown;
20162
20163   if (self)
20164     {
20165       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20166       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20167       /* dlclose (self); */
20168     }
20169
20170     exit (status);
20171 }
20172 EOF
20173   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20174   (eval $ac_link) 2>&5
20175   ac_status=$?
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20178     (./conftest; exit; ) 2>/dev/null
20179     lt_status=$?
20180     case x$lt_status in
20181       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20182       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20183       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20184     esac
20185   else :
20186     # compilation failed
20187     lt_cv_dlopen_self_static=no
20188   fi
20189 fi
20190 rm -fr conftest*
20191
20192
20193 fi
20194 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20195 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20196     fi
20197
20198     CPPFLAGS="$save_CPPFLAGS"
20199     LDFLAGS="$save_LDFLAGS"
20200     LIBS="$save_LIBS"
20201     ;;
20202   esac
20203
20204   case $lt_cv_dlopen_self in
20205   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20206   *) enable_dlopen_self=unknown ;;
20207   esac
20208
20209   case $lt_cv_dlopen_self_static in
20210   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20211   *) enable_dlopen_self_static=unknown ;;
20212   esac
20213 fi
20214
20215
20216 # The else clause should only fire when bootstrapping the
20217 # libtool distribution, otherwise you forgot to ship ltmain.sh
20218 # with your package, and you will get complaints that there are
20219 # no rules to generate ltmain.sh.
20220 if test -f "$ltmain"; then
20221   # See if we are running on zsh, and set the options which allow our commands through
20222   # without removal of \ escapes.
20223   if test -n "${ZSH_VERSION+set}" ; then
20224     setopt NO_GLOB_SUBST
20225   fi
20226   # Now quote all the things that may contain metacharacters while being
20227   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20228   # variables and quote the copies for generation of the libtool script.
20229   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20230     SED SHELL STRIP \
20231     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20232     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20233     deplibs_check_method reload_flag reload_cmds need_locks \
20234     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20235     lt_cv_sys_global_symbol_to_c_name_address \
20236     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20237     old_postinstall_cmds old_postuninstall_cmds \
20238     compiler_GCJ \
20239     CC_GCJ \
20240     LD_GCJ \
20241     lt_prog_compiler_wl_GCJ \
20242     lt_prog_compiler_pic_GCJ \
20243     lt_prog_compiler_static_GCJ \
20244     lt_prog_compiler_no_builtin_flag_GCJ \
20245     export_dynamic_flag_spec_GCJ \
20246     thread_safe_flag_spec_GCJ \
20247     whole_archive_flag_spec_GCJ \
20248     enable_shared_with_static_runtimes_GCJ \
20249     old_archive_cmds_GCJ \
20250     old_archive_from_new_cmds_GCJ \
20251     predep_objects_GCJ \
20252     postdep_objects_GCJ \
20253     predeps_GCJ \
20254     postdeps_GCJ \
20255     compiler_lib_search_path_GCJ \
20256     archive_cmds_GCJ \
20257     archive_expsym_cmds_GCJ \
20258     postinstall_cmds_GCJ \
20259     postuninstall_cmds_GCJ \
20260     old_archive_from_expsyms_cmds_GCJ \
20261     allow_undefined_flag_GCJ \
20262     no_undefined_flag_GCJ \
20263     export_symbols_cmds_GCJ \
20264     hardcode_libdir_flag_spec_GCJ \
20265     hardcode_libdir_flag_spec_ld_GCJ \
20266     hardcode_libdir_separator_GCJ \
20267     hardcode_automatic_GCJ \
20268     module_cmds_GCJ \
20269     module_expsym_cmds_GCJ \
20270     lt_cv_prog_compiler_c_o_GCJ \
20271     exclude_expsyms_GCJ \
20272     include_expsyms_GCJ; do
20273
20274     case $var in
20275     old_archive_cmds_GCJ | \
20276     old_archive_from_new_cmds_GCJ | \
20277     archive_cmds_GCJ | \
20278     archive_expsym_cmds_GCJ | \
20279     module_cmds_GCJ | \
20280     module_expsym_cmds_GCJ | \
20281     old_archive_from_expsyms_cmds_GCJ | \
20282     export_symbols_cmds_GCJ | \
20283     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20284     postinstall_cmds | postuninstall_cmds | \
20285     old_postinstall_cmds | old_postuninstall_cmds | \
20286     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20287       # Double-quote double-evaled strings.
20288       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20289       ;;
20290     *)
20291       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20292       ;;
20293     esac
20294   done
20295
20296   case $lt_echo in
20297   *'\$0 --fallback-echo"')
20298     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20299     ;;
20300   esac
20301
20302 cfgfile="$ofile"
20303
20304   cat <<__EOF__ >> "$cfgfile"
20305 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20306
20307 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20308
20309 # Shell to use when invoking shell scripts.
20310 SHELL=$lt_SHELL
20311
20312 # Whether or not to build shared libraries.
20313 build_libtool_libs=$enable_shared
20314
20315 # Whether or not to build static libraries.
20316 build_old_libs=$enable_static
20317
20318 # Whether or not to add -lc for building shared libraries.
20319 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20320
20321 # Whether or not to disallow shared libs when runtime libs are static
20322 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20323
20324 # Whether or not to optimize for fast installation.
20325 fast_install=$enable_fast_install
20326
20327 # The host system.
20328 host_alias=$host_alias
20329 host=$host
20330
20331 # An echo program that does not interpret backslashes.
20332 echo=$lt_echo
20333
20334 # The archiver.
20335 AR=$lt_AR
20336 AR_FLAGS=$lt_AR_FLAGS
20337
20338 # A C compiler.
20339 LTCC=$lt_LTCC
20340
20341 # A language-specific compiler.
20342 CC=$lt_compiler_GCJ
20343
20344 # Is the compiler the GNU C compiler?
20345 with_gcc=$GCC_GCJ
20346
20347 # An ERE matcher.
20348 EGREP=$lt_EGREP
20349
20350 # The linker used to build libraries.
20351 LD=$lt_LD_GCJ
20352
20353 # Whether we need hard or soft links.
20354 LN_S=$lt_LN_S
20355
20356 # A BSD-compatible nm program.
20357 NM=$lt_NM
20358
20359 # A symbol stripping program
20360 STRIP=$lt_STRIP
20361
20362 # Used to examine libraries when file_magic_cmd begins "file"
20363 MAGIC_CMD=$MAGIC_CMD
20364
20365 # Used on cygwin: DLL creation program.
20366 DLLTOOL="$DLLTOOL"
20367
20368 # Used on cygwin: object dumper.
20369 OBJDUMP="$OBJDUMP"
20370
20371 # Used on cygwin: assembler.
20372 AS="$AS"
20373
20374 # The name of the directory that contains temporary libtool files.
20375 objdir=$objdir
20376
20377 # How to create reloadable object files.
20378 reload_flag=$lt_reload_flag
20379 reload_cmds=$lt_reload_cmds
20380
20381 # How to pass a linker flag through the compiler.
20382 wl=$lt_lt_prog_compiler_wl_GCJ
20383
20384 # Object file suffix (normally "o").
20385 objext="$ac_objext"
20386
20387 # Old archive suffix (normally "a").
20388 libext="$libext"
20389
20390 # Shared library suffix (normally ".so").
20391 shrext_cmds='$shrext_cmds'
20392
20393 # Executable file suffix (normally "").
20394 exeext="$exeext"
20395
20396 # Additional compiler flags for building library objects.
20397 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20398 pic_mode=$pic_mode
20399
20400 # What is the maximum length of a command?
20401 max_cmd_len=$lt_cv_sys_max_cmd_len
20402
20403 # Does compiler simultaneously support -c and -o options?
20404 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20405
20406 # Must we lock files when doing compilation ?
20407 need_locks=$lt_need_locks
20408
20409 # Do we need the lib prefix for modules?
20410 need_lib_prefix=$need_lib_prefix
20411
20412 # Do we need a version for libraries?
20413 need_version=$need_version
20414
20415 # Whether dlopen is supported.
20416 dlopen_support=$enable_dlopen
20417
20418 # Whether dlopen of programs is supported.
20419 dlopen_self=$enable_dlopen_self
20420
20421 # Whether dlopen of statically linked programs is supported.
20422 dlopen_self_static=$enable_dlopen_self_static
20423
20424 # Compiler flag to prevent dynamic linking.
20425 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20426
20427 # Compiler flag to turn off builtin functions.
20428 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20429
20430 # Compiler flag to allow reflexive dlopens.
20431 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20432
20433 # Compiler flag to generate shared objects directly from archives.
20434 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20435
20436 # Compiler flag to generate thread-safe objects.
20437 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20438
20439 # Library versioning type.
20440 version_type=$version_type
20441
20442 # Format of library name prefix.
20443 libname_spec=$lt_libname_spec
20444
20445 # List of archive names.  First name is the real one, the rest are links.
20446 # The last name is the one that the linker finds with -lNAME.
20447 library_names_spec=$lt_library_names_spec
20448
20449 # The coded name of the library, if different from the real name.
20450 soname_spec=$lt_soname_spec
20451
20452 # Commands used to build and install an old-style archive.
20453 RANLIB=$lt_RANLIB
20454 old_archive_cmds=$lt_old_archive_cmds_GCJ
20455 old_postinstall_cmds=$lt_old_postinstall_cmds
20456 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20457
20458 # Create an old-style archive from a shared archive.
20459 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20460
20461 # Create a temporary old-style archive to link instead of a shared archive.
20462 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20463
20464 # Commands used to build and install a shared archive.
20465 archive_cmds=$lt_archive_cmds_GCJ
20466 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20467 postinstall_cmds=$lt_postinstall_cmds
20468 postuninstall_cmds=$lt_postuninstall_cmds
20469
20470 # Commands used to build a loadable module (assumed same as above if empty)
20471 module_cmds=$lt_module_cmds_GCJ
20472 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20473
20474 # Commands to strip libraries.
20475 old_striplib=$lt_old_striplib
20476 striplib=$lt_striplib
20477
20478 # Dependencies to place before the objects being linked to create a
20479 # shared library.
20480 predep_objects=$lt_predep_objects_GCJ
20481
20482 # Dependencies to place after the objects being linked to create a
20483 # shared library.
20484 postdep_objects=$lt_postdep_objects_GCJ
20485
20486 # Dependencies to place before the objects being linked to create a
20487 # shared library.
20488 predeps=$lt_predeps_GCJ
20489
20490 # Dependencies to place after the objects being linked to create a
20491 # shared library.
20492 postdeps=$lt_postdeps_GCJ
20493
20494 # The library search path used internally by the compiler when linking
20495 # a shared library.
20496 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20497
20498 # Method to check whether dependent libraries are shared objects.
20499 deplibs_check_method=$lt_deplibs_check_method
20500
20501 # Command to use when deplibs_check_method == file_magic.
20502 file_magic_cmd=$lt_file_magic_cmd
20503
20504 # Flag that allows shared libraries with undefined symbols to be built.
20505 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20506
20507 # Flag that forces no undefined symbols.
20508 no_undefined_flag=$lt_no_undefined_flag_GCJ
20509
20510 # Commands used to finish a libtool library installation in a directory.
20511 finish_cmds=$lt_finish_cmds
20512
20513 # Same as above, but a single script fragment to be evaled but not shown.
20514 finish_eval=$lt_finish_eval
20515
20516 # Take the output of nm and produce a listing of raw symbols and C names.
20517 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20518
20519 # Transform the output of nm in a proper C declaration
20520 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20521
20522 # Transform the output of nm in a C name address pair
20523 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20524
20525 # This is the shared library runtime path variable.
20526 runpath_var=$runpath_var
20527
20528 # This is the shared library path variable.
20529 shlibpath_var=$shlibpath_var
20530
20531 # Is shlibpath searched before the hard-coded library search path?
20532 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20533
20534 # How to hardcode a shared library path into an executable.
20535 hardcode_action=$hardcode_action_GCJ
20536
20537 # Whether we should hardcode library paths into libraries.
20538 hardcode_into_libs=$hardcode_into_libs
20539
20540 # Flag to hardcode \$libdir into a binary during linking.
20541 # This must work even if \$libdir does not exist.
20542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20543
20544 # If ld is used when linking, flag to hardcode \$libdir into
20545 # a binary during linking. This must work even if \$libdir does
20546 # not exist.
20547 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20548
20549 # Whether we need a single -rpath flag with a separated argument.
20550 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20551
20552 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20553 # resulting binary.
20554 hardcode_direct=$hardcode_direct_GCJ
20555
20556 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20557 # resulting binary.
20558 hardcode_minus_L=$hardcode_minus_L_GCJ
20559
20560 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20561 # the resulting binary.
20562 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20563
20564 # Set to yes if building a shared library automatically hardcodes DIR into the library
20565 # and all subsequent libraries and executables linked against it.
20566 hardcode_automatic=$hardcode_automatic_GCJ
20567
20568 # Variables whose values should be saved in libtool wrapper scripts and
20569 # restored at relink time.
20570 variables_saved_for_relink="$variables_saved_for_relink"
20571
20572 # Whether libtool must link a program against all its dependency libraries.
20573 link_all_deplibs=$link_all_deplibs_GCJ
20574
20575 # Compile-time system search path for libraries
20576 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20577
20578 # Run-time system search path for libraries
20579 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20580
20581 # Fix the shell variable \$srcfile for the compiler.
20582 fix_srcfile_path="$fix_srcfile_path_GCJ"
20583
20584 # Set to yes if exported symbols are required.
20585 always_export_symbols=$always_export_symbols_GCJ
20586
20587 # The commands to list exported symbols.
20588 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20589
20590 # The commands to extract the exported symbol list from a shared archive.
20591 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20592
20593 # Symbols that should not be listed in the preloaded symbols.
20594 exclude_expsyms=$lt_exclude_expsyms_GCJ
20595
20596 # Symbols that must always be exported.
20597 include_expsyms=$lt_include_expsyms_GCJ
20598
20599 # ### END LIBTOOL TAG CONFIG: $tagname
20600
20601 __EOF__
20602
20603
20604 else
20605   # If there is no Makefile yet, we rely on a make rule to execute
20606   # `config.status --recheck' to rerun these tests and create the
20607   # libtool script then.
20608   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20609   if test -f "$ltmain_in"; then
20610     test -f Makefile && make "$ltmain"
20611   fi
20612 fi
20613
20614
20615 ac_ext=c
20616 ac_cpp='$CPP $CPPFLAGS'
20617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20620
20621 CC="$lt_save_CC"
20622
20623         else
20624           tagname=""
20625         fi
20626         ;;
20627
20628       RC)
20629
20630
20631
20632 # Source file extension for RC test sources.
20633 ac_ext=rc
20634
20635 # Object file extension for compiled RC test sources.
20636 objext=o
20637 objext_RC=$objext
20638
20639 # Code to be used in simple compile tests
20640 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20641
20642 # Code to be used in simple link tests
20643 lt_simple_link_test_code="$lt_simple_compile_test_code"
20644
20645 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20646
20647 # If no C compiler was specified, use CC.
20648 LTCC=${LTCC-"$CC"}
20649
20650 # Allow CC to be a program name with arguments.
20651 compiler=$CC
20652
20653
20654 # Allow CC to be a program name with arguments.
20655 lt_save_CC="$CC"
20656 CC=${RC-"windres"}
20657 compiler=$CC
20658 compiler_RC=$CC
20659 lt_cv_prog_compiler_c_o_RC=yes
20660
20661 # The else clause should only fire when bootstrapping the
20662 # libtool distribution, otherwise you forgot to ship ltmain.sh
20663 # with your package, and you will get complaints that there are
20664 # no rules to generate ltmain.sh.
20665 if test -f "$ltmain"; then
20666   # See if we are running on zsh, and set the options which allow our commands through
20667   # without removal of \ escapes.
20668   if test -n "${ZSH_VERSION+set}" ; then
20669     setopt NO_GLOB_SUBST
20670   fi
20671   # Now quote all the things that may contain metacharacters while being
20672   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20673   # variables and quote the copies for generation of the libtool script.
20674   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20675     SED SHELL STRIP \
20676     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20677     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20678     deplibs_check_method reload_flag reload_cmds need_locks \
20679     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20680     lt_cv_sys_global_symbol_to_c_name_address \
20681     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20682     old_postinstall_cmds old_postuninstall_cmds \
20683     compiler_RC \
20684     CC_RC \
20685     LD_RC \
20686     lt_prog_compiler_wl_RC \
20687     lt_prog_compiler_pic_RC \
20688     lt_prog_compiler_static_RC \
20689     lt_prog_compiler_no_builtin_flag_RC \
20690     export_dynamic_flag_spec_RC \
20691     thread_safe_flag_spec_RC \
20692     whole_archive_flag_spec_RC \
20693     enable_shared_with_static_runtimes_RC \
20694     old_archive_cmds_RC \
20695     old_archive_from_new_cmds_RC \
20696     predep_objects_RC \
20697     postdep_objects_RC \
20698     predeps_RC \
20699     postdeps_RC \
20700     compiler_lib_search_path_RC \
20701     archive_cmds_RC \
20702     archive_expsym_cmds_RC \
20703     postinstall_cmds_RC \
20704     postuninstall_cmds_RC \
20705     old_archive_from_expsyms_cmds_RC \
20706     allow_undefined_flag_RC \
20707     no_undefined_flag_RC \
20708     export_symbols_cmds_RC \
20709     hardcode_libdir_flag_spec_RC \
20710     hardcode_libdir_flag_spec_ld_RC \
20711     hardcode_libdir_separator_RC \
20712     hardcode_automatic_RC \
20713     module_cmds_RC \
20714     module_expsym_cmds_RC \
20715     lt_cv_prog_compiler_c_o_RC \
20716     exclude_expsyms_RC \
20717     include_expsyms_RC; do
20718
20719     case $var in
20720     old_archive_cmds_RC | \
20721     old_archive_from_new_cmds_RC | \
20722     archive_cmds_RC | \
20723     archive_expsym_cmds_RC | \
20724     module_cmds_RC | \
20725     module_expsym_cmds_RC | \
20726     old_archive_from_expsyms_cmds_RC | \
20727     export_symbols_cmds_RC | \
20728     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20729     postinstall_cmds | postuninstall_cmds | \
20730     old_postinstall_cmds | old_postuninstall_cmds | \
20731     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20732       # Double-quote double-evaled strings.
20733       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20734       ;;
20735     *)
20736       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20737       ;;
20738     esac
20739   done
20740
20741   case $lt_echo in
20742   *'\$0 --fallback-echo"')
20743     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20744     ;;
20745   esac
20746
20747 cfgfile="$ofile"
20748
20749   cat <<__EOF__ >> "$cfgfile"
20750 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20751
20752 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20753
20754 # Shell to use when invoking shell scripts.
20755 SHELL=$lt_SHELL
20756
20757 # Whether or not to build shared libraries.
20758 build_libtool_libs=$enable_shared
20759
20760 # Whether or not to build static libraries.
20761 build_old_libs=$enable_static
20762
20763 # Whether or not to add -lc for building shared libraries.
20764 build_libtool_need_lc=$archive_cmds_need_lc_RC
20765
20766 # Whether or not to disallow shared libs when runtime libs are static
20767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20768
20769 # Whether or not to optimize for fast installation.
20770 fast_install=$enable_fast_install
20771
20772 # The host system.
20773 host_alias=$host_alias
20774 host=$host
20775
20776 # An echo program that does not interpret backslashes.
20777 echo=$lt_echo
20778
20779 # The archiver.
20780 AR=$lt_AR
20781 AR_FLAGS=$lt_AR_FLAGS
20782
20783 # A C compiler.
20784 LTCC=$lt_LTCC
20785
20786 # A language-specific compiler.
20787 CC=$lt_compiler_RC
20788
20789 # Is the compiler the GNU C compiler?
20790 with_gcc=$GCC_RC
20791
20792 # An ERE matcher.
20793 EGREP=$lt_EGREP
20794
20795 # The linker used to build libraries.
20796 LD=$lt_LD_RC
20797
20798 # Whether we need hard or soft links.
20799 LN_S=$lt_LN_S
20800
20801 # A BSD-compatible nm program.
20802 NM=$lt_NM
20803
20804 # A symbol stripping program
20805 STRIP=$lt_STRIP
20806
20807 # Used to examine libraries when file_magic_cmd begins "file"
20808 MAGIC_CMD=$MAGIC_CMD
20809
20810 # Used on cygwin: DLL creation program.
20811 DLLTOOL="$DLLTOOL"
20812
20813 # Used on cygwin: object dumper.
20814 OBJDUMP="$OBJDUMP"
20815
20816 # Used on cygwin: assembler.
20817 AS="$AS"
20818
20819 # The name of the directory that contains temporary libtool files.
20820 objdir=$objdir
20821
20822 # How to create reloadable object files.
20823 reload_flag=$lt_reload_flag
20824 reload_cmds=$lt_reload_cmds
20825
20826 # How to pass a linker flag through the compiler.
20827 wl=$lt_lt_prog_compiler_wl_RC
20828
20829 # Object file suffix (normally "o").
20830 objext="$ac_objext"
20831
20832 # Old archive suffix (normally "a").
20833 libext="$libext"
20834
20835 # Shared library suffix (normally ".so").
20836 shrext_cmds='$shrext_cmds'
20837
20838 # Executable file suffix (normally "").
20839 exeext="$exeext"
20840
20841 # Additional compiler flags for building library objects.
20842 pic_flag=$lt_lt_prog_compiler_pic_RC
20843 pic_mode=$pic_mode
20844
20845 # What is the maximum length of a command?
20846 max_cmd_len=$lt_cv_sys_max_cmd_len
20847
20848 # Does compiler simultaneously support -c and -o options?
20849 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20850
20851 # Must we lock files when doing compilation ?
20852 need_locks=$lt_need_locks
20853
20854 # Do we need the lib prefix for modules?
20855 need_lib_prefix=$need_lib_prefix
20856
20857 # Do we need a version for libraries?
20858 need_version=$need_version
20859
20860 # Whether dlopen is supported.
20861 dlopen_support=$enable_dlopen
20862
20863 # Whether dlopen of programs is supported.
20864 dlopen_self=$enable_dlopen_self
20865
20866 # Whether dlopen of statically linked programs is supported.
20867 dlopen_self_static=$enable_dlopen_self_static
20868
20869 # Compiler flag to prevent dynamic linking.
20870 link_static_flag=$lt_lt_prog_compiler_static_RC
20871
20872 # Compiler flag to turn off builtin functions.
20873 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20874
20875 # Compiler flag to allow reflexive dlopens.
20876 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20877
20878 # Compiler flag to generate shared objects directly from archives.
20879 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20880
20881 # Compiler flag to generate thread-safe objects.
20882 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20883
20884 # Library versioning type.
20885 version_type=$version_type
20886
20887 # Format of library name prefix.
20888 libname_spec=$lt_libname_spec
20889
20890 # List of archive names.  First name is the real one, the rest are links.
20891 # The last name is the one that the linker finds with -lNAME.
20892 library_names_spec=$lt_library_names_spec
20893
20894 # The coded name of the library, if different from the real name.
20895 soname_spec=$lt_soname_spec
20896
20897 # Commands used to build and install an old-style archive.
20898 RANLIB=$lt_RANLIB
20899 old_archive_cmds=$lt_old_archive_cmds_RC
20900 old_postinstall_cmds=$lt_old_postinstall_cmds
20901 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20902
20903 # Create an old-style archive from a shared archive.
20904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20905
20906 # Create a temporary old-style archive to link instead of a shared archive.
20907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20908
20909 # Commands used to build and install a shared archive.
20910 archive_cmds=$lt_archive_cmds_RC
20911 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20912 postinstall_cmds=$lt_postinstall_cmds
20913 postuninstall_cmds=$lt_postuninstall_cmds
20914
20915 # Commands used to build a loadable module (assumed same as above if empty)
20916 module_cmds=$lt_module_cmds_RC
20917 module_expsym_cmds=$lt_module_expsym_cmds_RC
20918
20919 # Commands to strip libraries.
20920 old_striplib=$lt_old_striplib
20921 striplib=$lt_striplib
20922
20923 # Dependencies to place before the objects being linked to create a
20924 # shared library.
20925 predep_objects=$lt_predep_objects_RC
20926
20927 # Dependencies to place after the objects being linked to create a
20928 # shared library.
20929 postdep_objects=$lt_postdep_objects_RC
20930
20931 # Dependencies to place before the objects being linked to create a
20932 # shared library.
20933 predeps=$lt_predeps_RC
20934
20935 # Dependencies to place after the objects being linked to create a
20936 # shared library.
20937 postdeps=$lt_postdeps_RC
20938
20939 # The library search path used internally by the compiler when linking
20940 # a shared library.
20941 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20942
20943 # Method to check whether dependent libraries are shared objects.
20944 deplibs_check_method=$lt_deplibs_check_method
20945
20946 # Command to use when deplibs_check_method == file_magic.
20947 file_magic_cmd=$lt_file_magic_cmd
20948
20949 # Flag that allows shared libraries with undefined symbols to be built.
20950 allow_undefined_flag=$lt_allow_undefined_flag_RC
20951
20952 # Flag that forces no undefined symbols.
20953 no_undefined_flag=$lt_no_undefined_flag_RC
20954
20955 # Commands used to finish a libtool library installation in a directory.
20956 finish_cmds=$lt_finish_cmds
20957
20958 # Same as above, but a single script fragment to be evaled but not shown.
20959 finish_eval=$lt_finish_eval
20960
20961 # Take the output of nm and produce a listing of raw symbols and C names.
20962 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20963
20964 # Transform the output of nm in a proper C declaration
20965 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20966
20967 # Transform the output of nm in a C name address pair
20968 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20969
20970 # This is the shared library runtime path variable.
20971 runpath_var=$runpath_var
20972
20973 # This is the shared library path variable.
20974 shlibpath_var=$shlibpath_var
20975
20976 # Is shlibpath searched before the hard-coded library search path?
20977 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20978
20979 # How to hardcode a shared library path into an executable.
20980 hardcode_action=$hardcode_action_RC
20981
20982 # Whether we should hardcode library paths into libraries.
20983 hardcode_into_libs=$hardcode_into_libs
20984
20985 # Flag to hardcode \$libdir into a binary during linking.
20986 # This must work even if \$libdir does not exist.
20987 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20988
20989 # If ld is used when linking, flag to hardcode \$libdir into
20990 # a binary during linking. This must work even if \$libdir does
20991 # not exist.
20992 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20993
20994 # Whether we need a single -rpath flag with a separated argument.
20995 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20996
20997 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20998 # resulting binary.
20999 hardcode_direct=$hardcode_direct_RC
21000
21001 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21002 # resulting binary.
21003 hardcode_minus_L=$hardcode_minus_L_RC
21004
21005 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21006 # the resulting binary.
21007 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21008
21009 # Set to yes if building a shared library automatically hardcodes DIR into the library
21010 # and all subsequent libraries and executables linked against it.
21011 hardcode_automatic=$hardcode_automatic_RC
21012
21013 # Variables whose values should be saved in libtool wrapper scripts and
21014 # restored at relink time.
21015 variables_saved_for_relink="$variables_saved_for_relink"
21016
21017 # Whether libtool must link a program against all its dependency libraries.
21018 link_all_deplibs=$link_all_deplibs_RC
21019
21020 # Compile-time system search path for libraries
21021 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21022
21023 # Run-time system search path for libraries
21024 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21025
21026 # Fix the shell variable \$srcfile for the compiler.
21027 fix_srcfile_path="$fix_srcfile_path_RC"
21028
21029 # Set to yes if exported symbols are required.
21030 always_export_symbols=$always_export_symbols_RC
21031
21032 # The commands to list exported symbols.
21033 export_symbols_cmds=$lt_export_symbols_cmds_RC
21034
21035 # The commands to extract the exported symbol list from a shared archive.
21036 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21037
21038 # Symbols that should not be listed in the preloaded symbols.
21039 exclude_expsyms=$lt_exclude_expsyms_RC
21040
21041 # Symbols that must always be exported.
21042 include_expsyms=$lt_include_expsyms_RC
21043
21044 # ### END LIBTOOL TAG CONFIG: $tagname
21045
21046 __EOF__
21047
21048
21049 else
21050   # If there is no Makefile yet, we rely on a make rule to execute
21051   # `config.status --recheck' to rerun these tests and create the
21052   # libtool script then.
21053   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21054   if test -f "$ltmain_in"; then
21055     test -f Makefile && make "$ltmain"
21056   fi
21057 fi
21058
21059
21060 ac_ext=c
21061 ac_cpp='$CPP $CPPFLAGS'
21062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21065
21066 CC="$lt_save_CC"
21067
21068         ;;
21069
21070       *)
21071         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21072 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21073    { (exit 1); exit 1; }; }
21074         ;;
21075       esac
21076
21077       # Append the new tag name to the list of available tags.
21078       if test -n "$tagname" ; then
21079       available_tags="$available_tags $tagname"
21080     fi
21081     fi
21082   done
21083   IFS="$lt_save_ifs"
21084
21085   # Now substitute the updated list of available tags.
21086   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21087     mv "${ofile}T" "$ofile"
21088     chmod +x "$ofile"
21089   else
21090     rm -f "${ofile}T"
21091     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21092 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21093    { (exit 1); exit 1; }; }
21094   fi
21095 fi
21096
21097
21098
21099 # This can be used to rebuild libtool when needed
21100 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21101
21102 # Always use our own libtool.
21103 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21104
21105 # Prevent multiple expansion
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127 ac_ext=c
21128 ac_cpp='$CPP $CPPFLAGS'
21129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21132
21133
21134 # Checks for typedefs, structures, and compiler characteristics.
21135 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21136 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21137 if test "${ac_cv_c_const+set}" = set; then
21138   echo $ECHO_N "(cached) $ECHO_C" >&6
21139 else
21140   cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h.  */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h.  */
21146
21147 int
21148 main ()
21149 {
21150 /* FIXME: Include the comments suggested by Paul. */
21151 #ifndef __cplusplus
21152   /* Ultrix mips cc rejects this.  */
21153   typedef int charset[2];
21154   const charset x;
21155   /* SunOS 4.1.1 cc rejects this.  */
21156   char const *const *ccp;
21157   char **p;
21158   /* NEC SVR4.0.2 mips cc rejects this.  */
21159   struct point {int x, y;};
21160   static struct point const zero = {0,0};
21161   /* AIX XL C 1.02.0.0 rejects this.
21162      It does not let you subtract one const X* pointer from another in
21163      an arm of an if-expression whose if-part is not a constant
21164      expression */
21165   const char *g = "string";
21166   ccp = &g + (g ? g-g : 0);
21167   /* HPUX 7.0 cc rejects these. */
21168   ++ccp;
21169   p = (char**) ccp;
21170   ccp = (char const *const *) p;
21171   { /* SCO 3.2v4 cc rejects this.  */
21172     char *t;
21173     char const *s = 0 ? (char *) 0 : (char const *) 0;
21174
21175     *t++ = 0;
21176   }
21177   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21178     int x[] = {25, 17};
21179     const int *foo = &x[0];
21180     ++foo;
21181   }
21182   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21183     typedef const int *iptr;
21184     iptr p = 0;
21185     ++p;
21186   }
21187   { /* AIX XL C 1.02.0.0 rejects this saying
21188        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21189     struct s { int j; const int *ap[3]; };
21190     struct s *b; b->j = 5;
21191   }
21192   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21193     const int foo = 10;
21194   }
21195 #endif
21196
21197   ;
21198   return 0;
21199 }
21200 _ACEOF
21201 rm -f conftest.$ac_objext
21202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21203   (eval $ac_compile) 2>conftest.er1
21204   ac_status=$?
21205   grep -v '^ *+' conftest.er1 >conftest.err
21206   rm -f conftest.er1
21207   cat conftest.err >&5
21208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209   (exit $ac_status); } &&
21210          { ac_try='test -z "$ac_c_werror_flag"
21211                          || test ! -s conftest.err'
21212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213   (eval $ac_try) 2>&5
21214   ac_status=$?
21215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216   (exit $ac_status); }; } &&
21217          { ac_try='test -s conftest.$ac_objext'
21218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219   (eval $ac_try) 2>&5
21220   ac_status=$?
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); }; }; then
21223   ac_cv_c_const=yes
21224 else
21225   echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21227
21228 ac_cv_c_const=no
21229 fi
21230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21231 fi
21232 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21233 echo "${ECHO_T}$ac_cv_c_const" >&6
21234 if test $ac_cv_c_const = no; then
21235
21236 cat >>confdefs.h <<\_ACEOF
21237 #define const
21238 _ACEOF
21239
21240 fi
21241
21242 echo "$as_me:$LINENO: checking for size_t" >&5
21243 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21244 if test "${ac_cv_type_size_t+set}" = set; then
21245   echo $ECHO_N "(cached) $ECHO_C" >&6
21246 else
21247   cat >conftest.$ac_ext <<_ACEOF
21248 /* confdefs.h.  */
21249 _ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h.  */
21253 $ac_includes_default
21254 int
21255 main ()
21256 {
21257 if ((size_t *) 0)
21258   return 0;
21259 if (sizeof (size_t))
21260   return 0;
21261   ;
21262   return 0;
21263 }
21264 _ACEOF
21265 rm -f conftest.$ac_objext
21266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21267   (eval $ac_compile) 2>conftest.er1
21268   ac_status=$?
21269   grep -v '^ *+' conftest.er1 >conftest.err
21270   rm -f conftest.er1
21271   cat conftest.err >&5
21272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273   (exit $ac_status); } &&
21274          { ac_try='test -z "$ac_c_werror_flag"
21275                          || test ! -s conftest.err'
21276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277   (eval $ac_try) 2>&5
21278   ac_status=$?
21279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); }; } &&
21281          { ac_try='test -s conftest.$ac_objext'
21282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283   (eval $ac_try) 2>&5
21284   ac_status=$?
21285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286   (exit $ac_status); }; }; then
21287   ac_cv_type_size_t=yes
21288 else
21289   echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21291
21292 ac_cv_type_size_t=no
21293 fi
21294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21295 fi
21296 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21297 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21298 if test $ac_cv_type_size_t = yes; then
21299   :
21300 else
21301
21302 cat >>confdefs.h <<_ACEOF
21303 #define size_t unsigned
21304 _ACEOF
21305
21306 fi
21307
21308 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21309 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21310 if test "${ac_cv_struct_tm+set}" = set; then
21311   echo $ECHO_N "(cached) $ECHO_C" >&6
21312 else
21313   cat >conftest.$ac_ext <<_ACEOF
21314 /* confdefs.h.  */
21315 _ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h.  */
21319 #include <sys/types.h>
21320 #include <time.h>
21321
21322 int
21323 main ()
21324 {
21325 struct tm *tp; tp->tm_sec;
21326   ;
21327   return 0;
21328 }
21329 _ACEOF
21330 rm -f conftest.$ac_objext
21331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21332   (eval $ac_compile) 2>conftest.er1
21333   ac_status=$?
21334   grep -v '^ *+' conftest.er1 >conftest.err
21335   rm -f conftest.er1
21336   cat conftest.err >&5
21337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338   (exit $ac_status); } &&
21339          { ac_try='test -z "$ac_c_werror_flag"
21340                          || test ! -s conftest.err'
21341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342   (eval $ac_try) 2>&5
21343   ac_status=$?
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); }; } &&
21346          { ac_try='test -s conftest.$ac_objext'
21347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348   (eval $ac_try) 2>&5
21349   ac_status=$?
21350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351   (exit $ac_status); }; }; then
21352   ac_cv_struct_tm=time.h
21353 else
21354   echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21356
21357 ac_cv_struct_tm=sys/time.h
21358 fi
21359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21360 fi
21361 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21362 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21363 if test $ac_cv_struct_tm = sys/time.h; then
21364
21365 cat >>confdefs.h <<\_ACEOF
21366 #define TM_IN_SYS_TIME 1
21367 _ACEOF
21368
21369 fi
21370
21371
21372 # Checks for library functions.
21373
21374 for ac_func in strftime
21375 do
21376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21377 echo "$as_me:$LINENO: checking for $ac_func" >&5
21378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21379 if eval "test \"\${$as_ac_var+set}\" = set"; then
21380   echo $ECHO_N "(cached) $ECHO_C" >&6
21381 else
21382   cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h.  */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h.  */
21388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21390 #define $ac_func innocuous_$ac_func
21391
21392 /* System header to define __stub macros and hopefully few prototypes,
21393     which can conflict with char $ac_func (); below.
21394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21395     <limits.h> exists even on freestanding compilers.  */
21396
21397 #ifdef __STDC__
21398 # include <limits.h>
21399 #else
21400 # include <assert.h>
21401 #endif
21402
21403 #undef $ac_func
21404
21405 /* Override any gcc2 internal prototype to avoid an error.  */
21406 #ifdef __cplusplus
21407 extern "C"
21408 {
21409 #endif
21410 /* We use char because int might match the return type of a gcc2
21411    builtin and then its argument prototype would still apply.  */
21412 char $ac_func ();
21413 /* The GNU C library defines this for functions which it implements
21414     to always fail with ENOSYS.  Some functions are actually named
21415     something starting with __ and the normal name is an alias.  */
21416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21417 choke me
21418 #else
21419 char (*f) () = $ac_func;
21420 #endif
21421 #ifdef __cplusplus
21422 }
21423 #endif
21424
21425 int
21426 main ()
21427 {
21428 return f != $ac_func;
21429   ;
21430   return 0;
21431 }
21432 _ACEOF
21433 rm -f conftest.$ac_objext conftest$ac_exeext
21434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21435   (eval $ac_link) 2>conftest.er1
21436   ac_status=$?
21437   grep -v '^ *+' conftest.er1 >conftest.err
21438   rm -f conftest.er1
21439   cat conftest.err >&5
21440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); } &&
21442          { ac_try='test -z "$ac_c_werror_flag"
21443                          || test ! -s conftest.err'
21444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445   (eval $ac_try) 2>&5
21446   ac_status=$?
21447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448   (exit $ac_status); }; } &&
21449          { ac_try='test -s conftest$ac_exeext'
21450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451   (eval $ac_try) 2>&5
21452   ac_status=$?
21453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454   (exit $ac_status); }; }; then
21455   eval "$as_ac_var=yes"
21456 else
21457   echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21459
21460 eval "$as_ac_var=no"
21461 fi
21462 rm -f conftest.err conftest.$ac_objext \
21463       conftest$ac_exeext conftest.$ac_ext
21464 fi
21465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21467 if test `eval echo '${'$as_ac_var'}'` = yes; then
21468   cat >>confdefs.h <<_ACEOF
21469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21470 _ACEOF
21471
21472 else
21473   # strftime is in -lintl on SCO UNIX.
21474 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21475 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21476 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21477   echo $ECHO_N "(cached) $ECHO_C" >&6
21478 else
21479   ac_check_lib_save_LIBS=$LIBS
21480 LIBS="-lintl  $LIBS"
21481 cat >conftest.$ac_ext <<_ACEOF
21482 /* confdefs.h.  */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h.  */
21487
21488 /* Override any gcc2 internal prototype to avoid an error.  */
21489 #ifdef __cplusplus
21490 extern "C"
21491 #endif
21492 /* We use char because int might match the return type of a gcc2
21493    builtin and then its argument prototype would still apply.  */
21494 char strftime ();
21495 int
21496 main ()
21497 {
21498 strftime ();
21499   ;
21500   return 0;
21501 }
21502 _ACEOF
21503 rm -f conftest.$ac_objext conftest$ac_exeext
21504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21505   (eval $ac_link) 2>conftest.er1
21506   ac_status=$?
21507   grep -v '^ *+' conftest.er1 >conftest.err
21508   rm -f conftest.er1
21509   cat conftest.err >&5
21510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511   (exit $ac_status); } &&
21512          { ac_try='test -z "$ac_c_werror_flag"
21513                          || test ! -s conftest.err'
21514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21515   (eval $ac_try) 2>&5
21516   ac_status=$?
21517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518   (exit $ac_status); }; } &&
21519          { ac_try='test -s conftest$ac_exeext'
21520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521   (eval $ac_try) 2>&5
21522   ac_status=$?
21523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524   (exit $ac_status); }; }; then
21525   ac_cv_lib_intl_strftime=yes
21526 else
21527   echo "$as_me: failed program was:" >&5
21528 sed 's/^/| /' conftest.$ac_ext >&5
21529
21530 ac_cv_lib_intl_strftime=no
21531 fi
21532 rm -f conftest.err conftest.$ac_objext \
21533       conftest$ac_exeext conftest.$ac_ext
21534 LIBS=$ac_check_lib_save_LIBS
21535 fi
21536 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21537 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21538 if test $ac_cv_lib_intl_strftime = yes; then
21539   cat >>confdefs.h <<\_ACEOF
21540 #define HAVE_STRFTIME 1
21541 _ACEOF
21542
21543 LIBS="-lintl $LIBS"
21544 fi
21545
21546 fi
21547 done
21548
21549 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
21550 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
21551 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
21552   echo $ECHO_N "(cached) $ECHO_C" >&6
21553 else
21554   cat >conftest.$ac_ext <<_ACEOF
21555 /* confdefs.h.  */
21556 _ACEOF
21557 cat confdefs.h >>conftest.$ac_ext
21558 cat >>conftest.$ac_ext <<_ACEOF
21559 /* end confdefs.h.  */
21560 $ac_includes_default
21561 int
21562 main ()
21563 {
21564 #ifndef strerror_r
21565   char *p = (char *) strerror_r;
21566 #endif
21567
21568   ;
21569   return 0;
21570 }
21571 _ACEOF
21572 rm -f conftest.$ac_objext
21573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21574   (eval $ac_compile) 2>conftest.er1
21575   ac_status=$?
21576   grep -v '^ *+' conftest.er1 >conftest.err
21577   rm -f conftest.er1
21578   cat conftest.err >&5
21579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580   (exit $ac_status); } &&
21581          { ac_try='test -z "$ac_c_werror_flag"
21582                          || test ! -s conftest.err'
21583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584   (eval $ac_try) 2>&5
21585   ac_status=$?
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); }; } &&
21588          { ac_try='test -s conftest.$ac_objext'
21589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590   (eval $ac_try) 2>&5
21591   ac_status=$?
21592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593   (exit $ac_status); }; }; then
21594   ac_cv_have_decl_strerror_r=yes
21595 else
21596   echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21598
21599 ac_cv_have_decl_strerror_r=no
21600 fi
21601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21602 fi
21603 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
21604 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
21605 if test $ac_cv_have_decl_strerror_r = yes; then
21606
21607 cat >>confdefs.h <<_ACEOF
21608 #define HAVE_DECL_STRERROR_R 1
21609 _ACEOF
21610
21611
21612 else
21613   cat >>confdefs.h <<_ACEOF
21614 #define HAVE_DECL_STRERROR_R 0
21615 _ACEOF
21616
21617
21618 fi
21619
21620
21621
21622 for ac_func in strerror_r
21623 do
21624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21625 echo "$as_me:$LINENO: checking for $ac_func" >&5
21626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21627 if eval "test \"\${$as_ac_var+set}\" = set"; then
21628   echo $ECHO_N "(cached) $ECHO_C" >&6
21629 else
21630   cat >conftest.$ac_ext <<_ACEOF
21631 /* confdefs.h.  */
21632 _ACEOF
21633 cat confdefs.h >>conftest.$ac_ext
21634 cat >>conftest.$ac_ext <<_ACEOF
21635 /* end confdefs.h.  */
21636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21638 #define $ac_func innocuous_$ac_func
21639
21640 /* System header to define __stub macros and hopefully few prototypes,
21641     which can conflict with char $ac_func (); below.
21642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21643     <limits.h> exists even on freestanding compilers.  */
21644
21645 #ifdef __STDC__
21646 # include <limits.h>
21647 #else
21648 # include <assert.h>
21649 #endif
21650
21651 #undef $ac_func
21652
21653 /* Override any gcc2 internal prototype to avoid an error.  */
21654 #ifdef __cplusplus
21655 extern "C"
21656 {
21657 #endif
21658 /* We use char because int might match the return type of a gcc2
21659    builtin and then its argument prototype would still apply.  */
21660 char $ac_func ();
21661 /* The GNU C library defines this for functions which it implements
21662     to always fail with ENOSYS.  Some functions are actually named
21663     something starting with __ and the normal name is an alias.  */
21664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21665 choke me
21666 #else
21667 char (*f) () = $ac_func;
21668 #endif
21669 #ifdef __cplusplus
21670 }
21671 #endif
21672
21673 int
21674 main ()
21675 {
21676 return f != $ac_func;
21677   ;
21678   return 0;
21679 }
21680 _ACEOF
21681 rm -f conftest.$ac_objext conftest$ac_exeext
21682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21683   (eval $ac_link) 2>conftest.er1
21684   ac_status=$?
21685   grep -v '^ *+' conftest.er1 >conftest.err
21686   rm -f conftest.er1
21687   cat conftest.err >&5
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); } &&
21690          { ac_try='test -z "$ac_c_werror_flag"
21691                          || test ! -s conftest.err'
21692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693   (eval $ac_try) 2>&5
21694   ac_status=$?
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); }; } &&
21697          { ac_try='test -s conftest$ac_exeext'
21698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699   (eval $ac_try) 2>&5
21700   ac_status=$?
21701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702   (exit $ac_status); }; }; then
21703   eval "$as_ac_var=yes"
21704 else
21705   echo "$as_me: failed program was:" >&5
21706 sed 's/^/| /' conftest.$ac_ext >&5
21707
21708 eval "$as_ac_var=no"
21709 fi
21710 rm -f conftest.err conftest.$ac_objext \
21711       conftest$ac_exeext conftest.$ac_ext
21712 fi
21713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21715 if test `eval echo '${'$as_ac_var'}'` = yes; then
21716   cat >>confdefs.h <<_ACEOF
21717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21718 _ACEOF
21719
21720 fi
21721 done
21722
21723 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
21724 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
21725 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
21726   echo $ECHO_N "(cached) $ECHO_C" >&6
21727 else
21728
21729     ac_cv_func_strerror_r_char_p=no
21730     if test $ac_cv_have_decl_strerror_r = yes; then
21731       cat >conftest.$ac_ext <<_ACEOF
21732 /* confdefs.h.  */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h.  */
21737 $ac_includes_default
21738 int
21739 main ()
21740 {
21741
21742           char buf[100];
21743           char x = *strerror_r (0, buf, sizeof buf);
21744           char *p = strerror_r (0, buf, sizeof buf);
21745
21746   ;
21747   return 0;
21748 }
21749 _ACEOF
21750 rm -f conftest.$ac_objext
21751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21752   (eval $ac_compile) 2>conftest.er1
21753   ac_status=$?
21754   grep -v '^ *+' conftest.er1 >conftest.err
21755   rm -f conftest.er1
21756   cat conftest.err >&5
21757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758   (exit $ac_status); } &&
21759          { ac_try='test -z "$ac_c_werror_flag"
21760                          || test ! -s conftest.err'
21761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21762   (eval $ac_try) 2>&5
21763   ac_status=$?
21764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765   (exit $ac_status); }; } &&
21766          { ac_try='test -s conftest.$ac_objext'
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_func_strerror_r_char_p=yes
21773 else
21774   echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21776
21777 fi
21778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21779     else
21780       # strerror_r is not declared.  Choose between
21781       # systems that have relatively inaccessible declarations for the
21782       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
21783       # former has a strerror_r that returns char*, while the latter
21784       # has a strerror_r that returns `int'.
21785       # This test should segfault on the DEC system.
21786       if test "$cross_compiling" = yes; then
21787   :
21788 else
21789   cat >conftest.$ac_ext <<_ACEOF
21790 /* confdefs.h.  */
21791 _ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h.  */
21795 $ac_includes_default
21796         extern char *strerror_r ();
21797 int
21798 main ()
21799 {
21800 char buf[100];
21801           char x = *strerror_r (0, buf, sizeof buf);
21802           exit (!isalpha (x));
21803   ;
21804   return 0;
21805 }
21806 _ACEOF
21807 rm -f conftest$ac_exeext
21808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21809   (eval $ac_link) 2>&5
21810   ac_status=$?
21811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21814   (eval $ac_try) 2>&5
21815   ac_status=$?
21816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817   (exit $ac_status); }; }; then
21818   ac_cv_func_strerror_r_char_p=yes
21819 else
21820   echo "$as_me: program exited with status $ac_status" >&5
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21823
21824 fi
21825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21826 fi
21827     fi
21828
21829 fi
21830 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
21831 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
21832 if test $ac_cv_func_strerror_r_char_p = yes; then
21833
21834 cat >>confdefs.h <<\_ACEOF
21835 #define STRERROR_R_CHAR_P 1
21836 _ACEOF
21837
21838 fi
21839
21840
21841
21842
21843
21844
21845
21846
21847 for ac_func in strchr strdup strstr timegm gmtime_r strtok_r strcasecmp
21848 do
21849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21850 echo "$as_me:$LINENO: checking for $ac_func" >&5
21851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21852 if eval "test \"\${$as_ac_var+set}\" = set"; then
21853   echo $ECHO_N "(cached) $ECHO_C" >&6
21854 else
21855   cat >conftest.$ac_ext <<_ACEOF
21856 /* confdefs.h.  */
21857 _ACEOF
21858 cat confdefs.h >>conftest.$ac_ext
21859 cat >>conftest.$ac_ext <<_ACEOF
21860 /* end confdefs.h.  */
21861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21863 #define $ac_func innocuous_$ac_func
21864
21865 /* System header to define __stub macros and hopefully few prototypes,
21866     which can conflict with char $ac_func (); below.
21867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21868     <limits.h> exists even on freestanding compilers.  */
21869
21870 #ifdef __STDC__
21871 # include <limits.h>
21872 #else
21873 # include <assert.h>
21874 #endif
21875
21876 #undef $ac_func
21877
21878 /* Override any gcc2 internal prototype to avoid an error.  */
21879 #ifdef __cplusplus
21880 extern "C"
21881 {
21882 #endif
21883 /* We use char because int might match the return type of a gcc2
21884    builtin and then its argument prototype would still apply.  */
21885 char $ac_func ();
21886 /* The GNU C library defines this for functions which it implements
21887     to always fail with ENOSYS.  Some functions are actually named
21888     something starting with __ and the normal name is an alias.  */
21889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21890 choke me
21891 #else
21892 char (*f) () = $ac_func;
21893 #endif
21894 #ifdef __cplusplus
21895 }
21896 #endif
21897
21898 int
21899 main ()
21900 {
21901 return f != $ac_func;
21902   ;
21903   return 0;
21904 }
21905 _ACEOF
21906 rm -f conftest.$ac_objext conftest$ac_exeext
21907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21908   (eval $ac_link) 2>conftest.er1
21909   ac_status=$?
21910   grep -v '^ *+' conftest.er1 >conftest.err
21911   rm -f conftest.er1
21912   cat conftest.err >&5
21913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914   (exit $ac_status); } &&
21915          { ac_try='test -z "$ac_c_werror_flag"
21916                          || test ! -s conftest.err'
21917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918   (eval $ac_try) 2>&5
21919   ac_status=$?
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); }; } &&
21922          { ac_try='test -s conftest$ac_exeext'
21923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924   (eval $ac_try) 2>&5
21925   ac_status=$?
21926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927   (exit $ac_status); }; }; then
21928   eval "$as_ac_var=yes"
21929 else
21930   echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21932
21933 eval "$as_ac_var=no"
21934 fi
21935 rm -f conftest.err conftest.$ac_objext \
21936       conftest$ac_exeext conftest.$ac_ext
21937 fi
21938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21939 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21940 if test `eval echo '${'$as_ac_var'}'` = yes; then
21941   cat >>confdefs.h <<_ACEOF
21942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21943 _ACEOF
21944
21945 fi
21946 done
21947
21948
21949 # checks for pthreads
21950
21951
21952
21953
21954 ac_ext=c
21955 ac_cpp='$CPP $CPPFLAGS'
21956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21959
21960 acx_pthread_ok=no
21961
21962 # We used to check for pthread.h first, but this fails if pthread.h
21963 # requires special compiler flags (e.g. on True64 or Sequent).
21964 # It gets checked for in the link test anyway.
21965
21966 # First of all, check if the user has set any of the PTHREAD_LIBS,
21967 # etcetera environment variables, and if threads linking works using
21968 # them:
21969 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21970         save_CFLAGS="$CFLAGS"
21971         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21972         save_LIBS="$LIBS"
21973         LIBS="$PTHREAD_LIBS $LIBS"
21974         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21975 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
21976         cat >conftest.$ac_ext <<_ACEOF
21977 /* confdefs.h.  */
21978 _ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h.  */
21982
21983 /* Override any gcc2 internal prototype to avoid an error.  */
21984 #ifdef __cplusplus
21985 extern "C"
21986 #endif
21987 /* We use char because int might match the return type of a gcc2
21988    builtin and then its argument prototype would still apply.  */
21989 char pthread_join ();
21990 int
21991 main ()
21992 {
21993 pthread_join ();
21994   ;
21995   return 0;
21996 }
21997 _ACEOF
21998 rm -f conftest.$ac_objext conftest$ac_exeext
21999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22000   (eval $ac_link) 2>conftest.er1
22001   ac_status=$?
22002   grep -v '^ *+' conftest.er1 >conftest.err
22003   rm -f conftest.er1
22004   cat conftest.err >&5
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); } &&
22007          { ac_try='test -z "$ac_c_werror_flag"
22008                          || test ! -s conftest.err'
22009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010   (eval $ac_try) 2>&5
22011   ac_status=$?
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); }; } &&
22014          { ac_try='test -s conftest$ac_exeext'
22015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016   (eval $ac_try) 2>&5
22017   ac_status=$?
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); }; }; then
22020   acx_pthread_ok=yes
22021 else
22022   echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22024
22025 fi
22026 rm -f conftest.err conftest.$ac_objext \
22027       conftest$ac_exeext conftest.$ac_ext
22028         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22029 echo "${ECHO_T}$acx_pthread_ok" >&6
22030         if test x"$acx_pthread_ok" = xno; then
22031                 PTHREAD_LIBS=""
22032                 PTHREAD_CFLAGS=""
22033         fi
22034         LIBS="$save_LIBS"
22035         CFLAGS="$save_CFLAGS"
22036 fi
22037
22038 # We must check for the threads library under a number of different
22039 # names; the ordering is very important because some systems
22040 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22041 # libraries is broken (non-POSIX).
22042
22043 # Create a list of thread flags to try.  Items starting with a "-" are
22044 # C compiler flags, and other items are library names, except for "none"
22045 # which indicates that we try without any flags at all, and "pthread-config"
22046 # which is a program returning the flags for the Pth emulation library.
22047
22048 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
22049
22050 # The ordering *is* (sometimes) important.  Some notes on the
22051 # individual items follow:
22052
22053 # pthreads: AIX (must check this before -lpthread)
22054 # none: in case threads are in libc; should be tried before -Kthread and
22055 #       other compiler flags to prevent continual compiler warnings
22056 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22057 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22058 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22059 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22060 # -pthreads: Solaris/gcc
22061 # -mthreads: Mingw32/gcc, Lynx/gcc
22062 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22063 #      doesn't hurt to check since this sometimes defines pthreads too;
22064 #      also defines -D_REENTRANT)
22065 #      ... -mt is also the pthreads flag for HP/aCC
22066 # pthread: Linux, etcetera
22067 # --thread-safe: KAI C++
22068 # pthread-config: use pthread-config program (for GNU Pth library)
22069
22070 case "${host_cpu}-${host_os}" in
22071         *solaris*)
22072
22073         # On Solaris (at least, for some versions), libc contains stubbed
22074         # (non-functional) versions of the pthreads routines, so link-based
22075         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
22076         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22077         # a function called by this macro, so we could check for that, but
22078         # who knows whether they'll stub that too in a future libc.)  So,
22079         # we'll just look for -pthreads and -lpthread first:
22080
22081         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
22082         ;;
22083 esac
22084
22085 if test x"$acx_pthread_ok" = xno; then
22086 for flag in $acx_pthread_flags; do
22087
22088         case $flag in
22089                 none)
22090                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22091 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
22092                 ;;
22093
22094                 -*)
22095                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22096 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
22097                 PTHREAD_CFLAGS="$flag"
22098                 ;;
22099
22100                 pthread-config)
22101                 # Extract the first word of "pthread-config", so it can be a program name with args.
22102 set dummy pthread-config; ac_word=$2
22103 echo "$as_me:$LINENO: checking for $ac_word" >&5
22104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22105 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22106   echo $ECHO_N "(cached) $ECHO_C" >&6
22107 else
22108   if test -n "$acx_pthread_config"; then
22109   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22110 else
22111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22112 for as_dir in $PATH
22113 do
22114   IFS=$as_save_IFS
22115   test -z "$as_dir" && as_dir=.
22116   for ac_exec_ext in '' $ac_executable_extensions; do
22117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22118     ac_cv_prog_acx_pthread_config="yes"
22119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22120     break 2
22121   fi
22122 done
22123 done
22124
22125   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22126 fi
22127 fi
22128 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22129 if test -n "$acx_pthread_config"; then
22130   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22131 echo "${ECHO_T}$acx_pthread_config" >&6
22132 else
22133   echo "$as_me:$LINENO: result: no" >&5
22134 echo "${ECHO_T}no" >&6
22135 fi
22136
22137                 if test x"$acx_pthread_config" = xno; then continue; fi
22138                 PTHREAD_CFLAGS="`pthread-config --cflags`"
22139                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22140                 ;;
22141
22142                 *)
22143                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22144 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
22145                 PTHREAD_LIBS="-l$flag"
22146                 ;;
22147         esac
22148
22149         save_LIBS="$LIBS"
22150         save_CFLAGS="$CFLAGS"
22151         LIBS="$PTHREAD_LIBS $LIBS"
22152         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22153
22154         # Check for various functions.  We must include pthread.h,
22155         # since some functions may be macros.  (On the Sequent, we
22156         # need a special flag -Kthread to make this header compile.)
22157         # We check for pthread_join because it is in -lpthread on IRIX
22158         # while pthread_create is in libc.  We check for pthread_attr_init
22159         # due to DEC craziness with -lpthreads.  We check for
22160         # pthread_cleanup_push because it is one of the few pthread
22161         # functions on Solaris that doesn't have a non-functional libc stub.
22162         # We try pthread_create on general principles.
22163         cat >conftest.$ac_ext <<_ACEOF
22164 /* confdefs.h.  */
22165 _ACEOF
22166 cat confdefs.h >>conftest.$ac_ext
22167 cat >>conftest.$ac_ext <<_ACEOF
22168 /* end confdefs.h.  */
22169 #include <pthread.h>
22170 int
22171 main ()
22172 {
22173 pthread_t th; pthread_join(th, 0);
22174                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22175                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22176   ;
22177   return 0;
22178 }
22179 _ACEOF
22180 rm -f conftest.$ac_objext conftest$ac_exeext
22181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22182   (eval $ac_link) 2>conftest.er1
22183   ac_status=$?
22184   grep -v '^ *+' conftest.er1 >conftest.err
22185   rm -f conftest.er1
22186   cat conftest.err >&5
22187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188   (exit $ac_status); } &&
22189          { ac_try='test -z "$ac_c_werror_flag"
22190                          || test ! -s conftest.err'
22191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22192   (eval $ac_try) 2>&5
22193   ac_status=$?
22194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195   (exit $ac_status); }; } &&
22196          { ac_try='test -s conftest$ac_exeext'
22197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198   (eval $ac_try) 2>&5
22199   ac_status=$?
22200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201   (exit $ac_status); }; }; then
22202   acx_pthread_ok=yes
22203 else
22204   echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22206
22207 fi
22208 rm -f conftest.err conftest.$ac_objext \
22209       conftest$ac_exeext conftest.$ac_ext
22210
22211         LIBS="$save_LIBS"
22212         CFLAGS="$save_CFLAGS"
22213
22214         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22215 echo "${ECHO_T}$acx_pthread_ok" >&6
22216         if test "x$acx_pthread_ok" = xyes; then
22217                 break;
22218         fi
22219
22220         PTHREAD_LIBS=""
22221         PTHREAD_CFLAGS=""
22222 done
22223 fi
22224
22225 # Various other checks:
22226 if test "x$acx_pthread_ok" = xyes; then
22227         save_LIBS="$LIBS"
22228         LIBS="$PTHREAD_LIBS $LIBS"
22229         save_CFLAGS="$CFLAGS"
22230         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22231
22232         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22233         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22234 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
22235         attr_name=unknown
22236         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22237             cat >conftest.$ac_ext <<_ACEOF
22238 /* confdefs.h.  */
22239 _ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h.  */
22243 #include <pthread.h>
22244 int
22245 main ()
22246 {
22247 int attr=$attr; return attr;
22248   ;
22249   return 0;
22250 }
22251 _ACEOF
22252 rm -f conftest.$ac_objext conftest$ac_exeext
22253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22254   (eval $ac_link) 2>conftest.er1
22255   ac_status=$?
22256   grep -v '^ *+' conftest.er1 >conftest.err
22257   rm -f conftest.er1
22258   cat conftest.err >&5
22259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260   (exit $ac_status); } &&
22261          { ac_try='test -z "$ac_c_werror_flag"
22262                          || test ! -s conftest.err'
22263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264   (eval $ac_try) 2>&5
22265   ac_status=$?
22266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267   (exit $ac_status); }; } &&
22268          { ac_try='test -s conftest$ac_exeext'
22269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22270   (eval $ac_try) 2>&5
22271   ac_status=$?
22272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273   (exit $ac_status); }; }; then
22274   attr_name=$attr; break
22275 else
22276   echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22278
22279 fi
22280 rm -f conftest.err conftest.$ac_objext \
22281       conftest$ac_exeext conftest.$ac_ext
22282         done
22283         echo "$as_me:$LINENO: result: $attr_name" >&5
22284 echo "${ECHO_T}$attr_name" >&6
22285         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22286
22287 cat >>confdefs.h <<_ACEOF
22288 #define PTHREAD_CREATE_JOINABLE $attr_name
22289 _ACEOF
22290
22291         fi
22292
22293         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22294 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
22295         flag=no
22296         case "${host_cpu}-${host_os}" in
22297                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
22298                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
22299                 *solaris*)
22300                 if test "$GCC" = "yes"; then
22301                     flag="-D_REENTRANT"
22302                 else
22303                     flag="-mt -D_REENTRANT"
22304                 fi
22305                 ;;
22306         esac
22307         echo "$as_me:$LINENO: result: ${flag}" >&5
22308 echo "${ECHO_T}${flag}" >&6
22309         if test "x$flag" != xno; then
22310             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22311         fi
22312
22313         LIBS="$save_LIBS"
22314         CFLAGS="$save_CFLAGS"
22315
22316         # More AIX lossage: must compile with xlc_r or cc_r
22317         if test x"$GCC" != xyes; then
22318           for ac_prog in xlc_r cc_r
22319 do
22320   # Extract the first word of "$ac_prog", so it can be a program name with args.
22321 set dummy $ac_prog; ac_word=$2
22322 echo "$as_me:$LINENO: checking for $ac_word" >&5
22323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22324 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22325   echo $ECHO_N "(cached) $ECHO_C" >&6
22326 else
22327   if test -n "$PTHREAD_CC"; then
22328   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22329 else
22330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22331 for as_dir in $PATH
22332 do
22333   IFS=$as_save_IFS
22334   test -z "$as_dir" && as_dir=.
22335   for ac_exec_ext in '' $ac_executable_extensions; do
22336   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22337     ac_cv_prog_PTHREAD_CC="$ac_prog"
22338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22339     break 2
22340   fi
22341 done
22342 done
22343
22344 fi
22345 fi
22346 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22347 if test -n "$PTHREAD_CC"; then
22348   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22349 echo "${ECHO_T}$PTHREAD_CC" >&6
22350 else
22351   echo "$as_me:$LINENO: result: no" >&5
22352 echo "${ECHO_T}no" >&6
22353 fi
22354
22355   test -n "$PTHREAD_CC" && break
22356 done
22357 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
22358
22359         else
22360           PTHREAD_CC=$CC
22361         fi
22362 else
22363         PTHREAD_CC="$CC"
22364 fi
22365
22366
22367
22368
22369
22370 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22371 if test x"$acx_pthread_ok" = xyes; then
22372         enable_threads="pthread"
22373         :
22374 else
22375         acx_pthread_ok=no
22376         enable_threads="no"
22377 fi
22378 ac_ext=c
22379 ac_cpp='$CPP $CPPFLAGS'
22380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22383
22384
22385 if test $enable_threads != "pthread"; then
22386     { { echo "$as_me:$LINENO: error: unable to find pthreads, currently this is required" >&5
22387 echo "$as_me: error: unable to find pthreads, currently this is required" >&2;}
22388    { (exit 1); exit 1; }; }
22389 else
22390
22391 cat >>confdefs.h <<\_ACEOF
22392 #define HAVE_PTHREAD 1
22393 _ACEOF
22394
22395     LIBS="$PTHREAD_LIBS $LIBS"
22396     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
22397     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
22398 fi
22399
22400 # OpenSSL settings
22401
22402 # Check whether --with-openssl or --without-openssl was given.
22403 if test "${with_openssl+set}" = set; then
22404   withval="$with_openssl"
22405   if test x_$with_openssl != x_/usr; then
22406         SSLFLAGS="-I${with_openssl}/include"
22407     fi
22408 fi;
22409
22410 if test "x$SSLFLAGS" = "x" ; then
22411     # Extract the first word of "pkg-config", so it can be a program name with args.
22412 set dummy pkg-config; ac_word=$2
22413 echo "$as_me:$LINENO: checking for $ac_word" >&5
22414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22415 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22416   echo $ECHO_N "(cached) $ECHO_C" >&6
22417 else
22418   case $PKG_CONFIG in
22419   [\\/]* | ?:[\\/]*)
22420   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22421   ;;
22422   *)
22423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22424 for as_dir in $PATH
22425 do
22426   IFS=$as_save_IFS
22427   test -z "$as_dir" && as_dir=.
22428   for ac_exec_ext in '' $ac_executable_extensions; do
22429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22430     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22432     break 2
22433   fi
22434 done
22435 done
22436
22437   ;;
22438 esac
22439 fi
22440 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22441
22442 if test -n "$PKG_CONFIG"; then
22443   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22444 echo "${ECHO_T}$PKG_CONFIG" >&6
22445 else
22446   echo "$as_me:$LINENO: result: no" >&5
22447 echo "${ECHO_T}no" >&6
22448 fi
22449
22450     if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
22451         if pkg-config openssl ; then
22452             SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
22453         else
22454             { { echo "$as_me:$LINENO: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
22455 echo "$as_me: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
22456    { (exit 1); exit 1; }; }
22457         fi
22458     fi
22459 fi
22460
22461 echo "$as_me:$LINENO: checking for OpenSSL cflags" >&5
22462 echo $ECHO_N "checking for OpenSSL cflags... $ECHO_C" >&6
22463 echo "$as_me:$LINENO: result: $SSLFLAGS" >&5
22464 echo "${ECHO_T}$SSLFLAGS" >&6
22465 CPPFLAGS="$SSLFLAGS $CPPFLAGS"
22466
22467 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22468   echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22469 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22470 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22471   echo $ECHO_N "(cached) $ECHO_C" >&6
22472 fi
22473 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22474 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22475 else
22476   # Is the header compilable?
22477 echo "$as_me:$LINENO: checking openssl/x509.h usability" >&5
22478 echo $ECHO_N "checking openssl/x509.h usability... $ECHO_C" >&6
22479 cat >conftest.$ac_ext <<_ACEOF
22480 /* confdefs.h.  */
22481 _ACEOF
22482 cat confdefs.h >>conftest.$ac_ext
22483 cat >>conftest.$ac_ext <<_ACEOF
22484 /* end confdefs.h.  */
22485 $ac_includes_default
22486 #include <openssl/x509.h>
22487 _ACEOF
22488 rm -f conftest.$ac_objext
22489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22490   (eval $ac_compile) 2>conftest.er1
22491   ac_status=$?
22492   grep -v '^ *+' conftest.er1 >conftest.err
22493   rm -f conftest.er1
22494   cat conftest.err >&5
22495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496   (exit $ac_status); } &&
22497          { ac_try='test -z "$ac_c_werror_flag"
22498                          || test ! -s conftest.err'
22499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22500   (eval $ac_try) 2>&5
22501   ac_status=$?
22502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503   (exit $ac_status); }; } &&
22504          { ac_try='test -s conftest.$ac_objext'
22505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22506   (eval $ac_try) 2>&5
22507   ac_status=$?
22508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509   (exit $ac_status); }; }; then
22510   ac_header_compiler=yes
22511 else
22512   echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22514
22515 ac_header_compiler=no
22516 fi
22517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22519 echo "${ECHO_T}$ac_header_compiler" >&6
22520
22521 # Is the header present?
22522 echo "$as_me:$LINENO: checking openssl/x509.h presence" >&5
22523 echo $ECHO_N "checking openssl/x509.h presence... $ECHO_C" >&6
22524 cat >conftest.$ac_ext <<_ACEOF
22525 /* confdefs.h.  */
22526 _ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h.  */
22530 #include <openssl/x509.h>
22531 _ACEOF
22532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22534   ac_status=$?
22535   grep -v '^ *+' conftest.er1 >conftest.err
22536   rm -f conftest.er1
22537   cat conftest.err >&5
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); } >/dev/null; then
22540   if test -s conftest.err; then
22541     ac_cpp_err=$ac_c_preproc_warn_flag
22542     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22543   else
22544     ac_cpp_err=
22545   fi
22546 else
22547   ac_cpp_err=yes
22548 fi
22549 if test -z "$ac_cpp_err"; then
22550   ac_header_preproc=yes
22551 else
22552   echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22554
22555   ac_header_preproc=no
22556 fi
22557 rm -f conftest.err conftest.$ac_ext
22558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22559 echo "${ECHO_T}$ac_header_preproc" >&6
22560
22561 # So?  What about this header?
22562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22563   yes:no: )
22564     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&5
22565 echo "$as_me: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22566     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the compiler's result" >&5
22567 echo "$as_me: WARNING: openssl/x509.h: proceeding with the compiler's result" >&2;}
22568     ac_header_preproc=yes
22569     ;;
22570   no:yes:* )
22571     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: present but cannot be compiled" >&5
22572 echo "$as_me: WARNING: openssl/x509.h: present but cannot be compiled" >&2;}
22573     { echo "$as_me:$LINENO: WARNING: openssl/x509.h:     check for missing prerequisite headers?" >&5
22574 echo "$as_me: WARNING: openssl/x509.h:     check for missing prerequisite headers?" >&2;}
22575     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: see the Autoconf documentation" >&5
22576 echo "$as_me: WARNING: openssl/x509.h: see the Autoconf documentation" >&2;}
22577     { echo "$as_me:$LINENO: WARNING: openssl/x509.h:     section \"Present But Cannot Be Compiled\"" >&5
22578 echo "$as_me: WARNING: openssl/x509.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22579     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&5
22580 echo "$as_me: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&2;}
22581     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&5
22582 echo "$as_me: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&2;}
22583     (
22584       cat <<\_ASBOX
22585 ## --------------------------------------------- ##
22586 ## Report this to shibboleth-users@internet2.edu ##
22587 ## --------------------------------------------- ##
22588 _ASBOX
22589     ) |
22590       sed "s/^/$as_me: WARNING:     /" >&2
22591     ;;
22592 esac
22593 echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22594 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22595 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22596   echo $ECHO_N "(cached) $ECHO_C" >&6
22597 else
22598   ac_cv_header_openssl_x509_h=$ac_header_preproc
22599 fi
22600 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22601 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22602
22603 fi
22604 if test $ac_cv_header_openssl_x509_h = yes; then
22605   :
22606 else
22607   { { echo "$as_me:$LINENO: error: unable to find openssl header files" >&5
22608 echo "$as_me: error: unable to find openssl header files" >&2;}
22609    { (exit 1); exit 1; }; }
22610 fi
22611
22612
22613
22614 ac_ext=cc
22615 ac_cpp='$CXXCPP $CPPFLAGS'
22616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22619
22620
22621 # C++ requirements
22622 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22623 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22624 if test "${ac_cv_cxx_namespaces+set}" = set; then
22625   echo $ECHO_N "(cached) $ECHO_C" >&6
22626 else
22627
22628
22629  ac_ext=cc
22630 ac_cpp='$CXXCPP $CPPFLAGS'
22631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22634
22635  cat >conftest.$ac_ext <<_ACEOF
22636 /* confdefs.h.  */
22637 _ACEOF
22638 cat confdefs.h >>conftest.$ac_ext
22639 cat >>conftest.$ac_ext <<_ACEOF
22640 /* end confdefs.h.  */
22641 namespace Outer { namespace Inner { int i = 0; }}
22642 int
22643 main ()
22644 {
22645 using namespace Outer::Inner; return i;
22646   ;
22647   return 0;
22648 }
22649 _ACEOF
22650 rm -f conftest.$ac_objext
22651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22652   (eval $ac_compile) 2>conftest.er1
22653   ac_status=$?
22654   grep -v '^ *+' conftest.er1 >conftest.err
22655   rm -f conftest.er1
22656   cat conftest.err >&5
22657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658   (exit $ac_status); } &&
22659          { ac_try='test -z "$ac_cxx_werror_flag"
22660                          || test ! -s conftest.err'
22661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22662   (eval $ac_try) 2>&5
22663   ac_status=$?
22664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665   (exit $ac_status); }; } &&
22666          { ac_try='test -s conftest.$ac_objext'
22667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22668   (eval $ac_try) 2>&5
22669   ac_status=$?
22670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671   (exit $ac_status); }; }; then
22672   ac_cv_cxx_namespaces=yes
22673 else
22674   echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22676
22677 ac_cv_cxx_namespaces=no
22678 fi
22679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22680  ac_ext=cc
22681 ac_cpp='$CXXCPP $CPPFLAGS'
22682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22685
22686
22687 fi
22688 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22689 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22690 if test "$ac_cv_cxx_namespaces" = yes; then
22691
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_NAMESPACES 1
22694 _ACEOF
22695
22696 fi
22697
22698 echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
22699 echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6
22700 if test "${ac_cv_cxx_have_stl+set}" = set; then
22701   echo $ECHO_N "(cached) $ECHO_C" >&6
22702 else
22703
22704
22705
22706  ac_ext=cc
22707 ac_cpp='$CXXCPP $CPPFLAGS'
22708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22711
22712  cat >conftest.$ac_ext <<_ACEOF
22713 /* confdefs.h.  */
22714 _ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h.  */
22718 #include <list>
22719 #include <deque>
22720 #ifdef HAVE_NAMESPACES
22721 using namespace std;
22722 #endif
22723 int
22724 main ()
22725 {
22726 list<int> x; x.push_back(5);
22727 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
22728   ;
22729   return 0;
22730 }
22731 _ACEOF
22732 rm -f conftest.$ac_objext
22733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22734   (eval $ac_compile) 2>conftest.er1
22735   ac_status=$?
22736   grep -v '^ *+' conftest.er1 >conftest.err
22737   rm -f conftest.er1
22738   cat conftest.err >&5
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); } &&
22741          { ac_try='test -z "$ac_cxx_werror_flag"
22742                          || test ! -s conftest.err'
22743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744   (eval $ac_try) 2>&5
22745   ac_status=$?
22746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747   (exit $ac_status); }; } &&
22748          { ac_try='test -s conftest.$ac_objext'
22749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750   (eval $ac_try) 2>&5
22751   ac_status=$?
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); }; }; then
22754   ac_cv_cxx_have_stl=yes
22755 else
22756   echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22758
22759 ac_cv_cxx_have_stl=no
22760 fi
22761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22762  ac_ext=cc
22763 ac_cpp='$CXXCPP $CPPFLAGS'
22764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22767
22768
22769 fi
22770 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
22771 echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6
22772 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
22773   { { echo "$as_me:$LINENO: error: C++ Standard Template Libary unsupported" >&5
22774 echo "$as_me: error: C++ Standard Template Libary unsupported" >&2;}
22775    { (exit 1); exit 1; }; }
22776 fi
22777
22778 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22779 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22780 if test "${ac_cv_cxx_namespaces+set}" = set; then
22781   echo $ECHO_N "(cached) $ECHO_C" >&6
22782 else
22783
22784
22785  ac_ext=cc
22786 ac_cpp='$CXXCPP $CPPFLAGS'
22787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22790
22791  cat >conftest.$ac_ext <<_ACEOF
22792 /* confdefs.h.  */
22793 _ACEOF
22794 cat confdefs.h >>conftest.$ac_ext
22795 cat >>conftest.$ac_ext <<_ACEOF
22796 /* end confdefs.h.  */
22797 namespace Outer { namespace Inner { int i = 0; }}
22798 int
22799 main ()
22800 {
22801 using namespace Outer::Inner; return i;
22802   ;
22803   return 0;
22804 }
22805 _ACEOF
22806 rm -f conftest.$ac_objext
22807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22808   (eval $ac_compile) 2>conftest.er1
22809   ac_status=$?
22810   grep -v '^ *+' conftest.er1 >conftest.err
22811   rm -f conftest.er1
22812   cat conftest.err >&5
22813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814   (exit $ac_status); } &&
22815          { ac_try='test -z "$ac_cxx_werror_flag"
22816                          || test ! -s conftest.err'
22817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22818   (eval $ac_try) 2>&5
22819   ac_status=$?
22820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821   (exit $ac_status); }; } &&
22822          { ac_try='test -s conftest.$ac_objext'
22823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824   (eval $ac_try) 2>&5
22825   ac_status=$?
22826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827   (exit $ac_status); }; }; then
22828   ac_cv_cxx_namespaces=yes
22829 else
22830   echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22832
22833 ac_cv_cxx_namespaces=no
22834 fi
22835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22836  ac_ext=cc
22837 ac_cpp='$CXXCPP $CPPFLAGS'
22838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22841
22842
22843 fi
22844 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22845 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22846 if test "$ac_cv_cxx_namespaces" = yes; then
22847
22848 cat >>confdefs.h <<\_ACEOF
22849 #define HAVE_NAMESPACES 1
22850 _ACEOF
22851
22852 fi
22853
22854
22855 # Thank you Solaris, really.
22856 echo "$as_me:$LINENO: checking for ctime_r" >&5
22857 echo $ECHO_N "checking for ctime_r... $ECHO_C" >&6
22858  if test -z "$ac_cv_ctime_args"; then
22859      cat >conftest.$ac_ext <<_ACEOF
22860 /* confdefs.h.  */
22861 _ACEOF
22862 cat confdefs.h >>conftest.$ac_ext
22863 cat >>conftest.$ac_ext <<_ACEOF
22864 /* end confdefs.h.  */
22865 #include <time.h>
22866 int
22867 main ()
22868 {
22869
22870          time_t clock;
22871          char buf[26];
22872          ctime_r(&clock, buf);
22873
22874   ;
22875   return 0;
22876 }
22877 _ACEOF
22878 rm -f conftest.$ac_objext
22879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22880   (eval $ac_compile) 2>conftest.er1
22881   ac_status=$?
22882   grep -v '^ *+' conftest.er1 >conftest.err
22883   rm -f conftest.er1
22884   cat conftest.err >&5
22885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886   (exit $ac_status); } &&
22887          { ac_try='test -z "$ac_cxx_werror_flag"
22888                          || test ! -s conftest.err'
22889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22890   (eval $ac_try) 2>&5
22891   ac_status=$?
22892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893   (exit $ac_status); }; } &&
22894          { ac_try='test -s conftest.$ac_objext'
22895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22896   (eval $ac_try) 2>&5
22897   ac_status=$?
22898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899   (exit $ac_status); }; }; then
22900   ac_cv_ctime_args=2
22901 else
22902   echo "$as_me: failed program was:" >&5
22903 sed 's/^/| /' conftest.$ac_ext >&5
22904
22905 fi
22906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22907
22908      cat >conftest.$ac_ext <<_ACEOF
22909 /* confdefs.h.  */
22910 _ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h.  */
22914 #include <time.h>
22915 int
22916 main ()
22917 {
22918
22919          time_t clock;
22920          char buf[26];
22921          ctime_r(&clock, buf, 26);
22922
22923   ;
22924   return 0;
22925 }
22926 _ACEOF
22927 rm -f conftest.$ac_objext
22928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22929   (eval $ac_compile) 2>conftest.er1
22930   ac_status=$?
22931   grep -v '^ *+' conftest.er1 >conftest.err
22932   rm -f conftest.er1
22933   cat conftest.err >&5
22934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935   (exit $ac_status); } &&
22936          { ac_try='test -z "$ac_cxx_werror_flag"
22937                          || test ! -s conftest.err'
22938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22939   (eval $ac_try) 2>&5
22940   ac_status=$?
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); }; } &&
22943          { ac_try='test -s conftest.$ac_objext'
22944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945   (eval $ac_try) 2>&5
22946   ac_status=$?
22947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948   (exit $ac_status); }; }; then
22949   ac_cv_ctime_args=3
22950 else
22951   echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22953
22954 fi
22955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22956  fi
22957  if test -z "$ac_cv_ctime_args"; then
22958      echo "$as_me:$LINENO: result: no" >&5
22959 echo "${ECHO_T}no" >&6
22960  else
22961      if test "$ac_cv_ctime_args" = 2; then
22962
22963 cat >>confdefs.h <<\_ACEOF
22964 #define HAVE_CTIME_R_2 1
22965 _ACEOF
22966
22967      elif test "$ac_cv_ctime_args" = 3; then
22968
22969 cat >>confdefs.h <<\_ACEOF
22970 #define HAVE_CTIME_R_3 1
22971 _ACEOF
22972
22973      fi
22974      echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_ctime_args arguments" >&5
22975 echo "${ECHO_T}yes, and it takes $ac_cv_ctime_args arguments" >&6
22976  fi
22977
22978 # log4shib settings (favor this version over the log4cpp code)
22979 # Extract the first word of "log4shib-config", so it can be a program name with args.
22980 set dummy log4shib-config; ac_word=$2
22981 echo "$as_me:$LINENO: checking for $ac_word" >&5
22982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22983 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then
22984   echo $ECHO_N "(cached) $ECHO_C" >&6
22985 else
22986   case $LOG4SHIB_CONFIG in
22987   [\\/]* | ?:[\\/]*)
22988   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
22989   ;;
22990   *)
22991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22992 for as_dir in $PATH
22993 do
22994   IFS=$as_save_IFS
22995   test -z "$as_dir" && as_dir=.
22996   for ac_exec_ext in '' $ac_executable_extensions; do
22997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22998     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23000     break 2
23001   fi
23002 done
23003 done
23004
23005   ;;
23006 esac
23007 fi
23008 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
23009
23010 if test -n "$LOG4SHIB_CONFIG"; then
23011   echo "$as_me:$LINENO: result: $LOG4SHIB_CONFIG" >&5
23012 echo "${ECHO_T}$LOG4SHIB_CONFIG" >&6
23013 else
23014   echo "$as_me:$LINENO: result: no" >&5
23015 echo "${ECHO_T}no" >&6
23016 fi
23017
23018
23019 # Check whether --with-log4shib or --without-log4shib was given.
23020 if test "${with_log4shib+set}" = set; then
23021   withval="$with_log4shib"
23022
23023     LOG4SHIB_CONFIG="${with_log4shib}"
23024     if ! test -f "${LOG4SHIB_CONFIG}" ; then
23025         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
23026     fi
23027
23028 fi;
23029 if test -f "${LOG4SHIB_CONFIG}"; then
23030     LDFLAGS="`${LOG4SHIB_CONFIG} --libs` $LDFLAGS"
23031     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
23032
23033 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23034   echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23035 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23036 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23037   echo $ECHO_N "(cached) $ECHO_C" >&6
23038 fi
23039 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23040 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23041 else
23042   # Is the header compilable?
23043 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh usability" >&5
23044 echo $ECHO_N "checking log4shib/CategoryStream.hh usability... $ECHO_C" >&6
23045 cat >conftest.$ac_ext <<_ACEOF
23046 /* confdefs.h.  */
23047 _ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h.  */
23051 $ac_includes_default
23052 #include <log4shib/CategoryStream.hh>
23053 _ACEOF
23054 rm -f conftest.$ac_objext
23055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23056   (eval $ac_compile) 2>conftest.er1
23057   ac_status=$?
23058   grep -v '^ *+' conftest.er1 >conftest.err
23059   rm -f conftest.er1
23060   cat conftest.err >&5
23061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062   (exit $ac_status); } &&
23063          { ac_try='test -z "$ac_cxx_werror_flag"
23064                          || test ! -s conftest.err'
23065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23066   (eval $ac_try) 2>&5
23067   ac_status=$?
23068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069   (exit $ac_status); }; } &&
23070          { ac_try='test -s conftest.$ac_objext'
23071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23072   (eval $ac_try) 2>&5
23073   ac_status=$?
23074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075   (exit $ac_status); }; }; then
23076   ac_header_compiler=yes
23077 else
23078   echo "$as_me: failed program was:" >&5
23079 sed 's/^/| /' conftest.$ac_ext >&5
23080
23081 ac_header_compiler=no
23082 fi
23083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23085 echo "${ECHO_T}$ac_header_compiler" >&6
23086
23087 # Is the header present?
23088 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh presence" >&5
23089 echo $ECHO_N "checking log4shib/CategoryStream.hh presence... $ECHO_C" >&6
23090 cat >conftest.$ac_ext <<_ACEOF
23091 /* confdefs.h.  */
23092 _ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h.  */
23096 #include <log4shib/CategoryStream.hh>
23097 _ACEOF
23098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23099   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23100   ac_status=$?
23101   grep -v '^ *+' conftest.er1 >conftest.err
23102   rm -f conftest.er1
23103   cat conftest.err >&5
23104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105   (exit $ac_status); } >/dev/null; then
23106   if test -s conftest.err; then
23107     ac_cpp_err=$ac_cxx_preproc_warn_flag
23108     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23109   else
23110     ac_cpp_err=
23111   fi
23112 else
23113   ac_cpp_err=yes
23114 fi
23115 if test -z "$ac_cpp_err"; then
23116   ac_header_preproc=yes
23117 else
23118   echo "$as_me: failed program was:" >&5
23119 sed 's/^/| /' conftest.$ac_ext >&5
23120
23121   ac_header_preproc=no
23122 fi
23123 rm -f conftest.err conftest.$ac_ext
23124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23125 echo "${ECHO_T}$ac_header_preproc" >&6
23126
23127 # So?  What about this header?
23128 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23129   yes:no: )
23130     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23131 echo "$as_me: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23132     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&5
23133 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23134     ac_header_preproc=yes
23135     ;;
23136   no:yes:* )
23137     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&5
23138 echo "$as_me: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&2;}
23139     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh:     check for missing prerequisite headers?" >&5
23140 echo "$as_me: WARNING: log4shib/CategoryStream.hh:     check for missing prerequisite headers?" >&2;}
23141     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&5
23142 echo "$as_me: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&2;}
23143     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&5
23144 echo "$as_me: WARNING: log4shib/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&2;}
23145     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23146 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23147     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23148 echo "$as_me: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23149     (
23150       cat <<\_ASBOX
23151 ## --------------------------------------------- ##
23152 ## Report this to shibboleth-users@internet2.edu ##
23153 ## --------------------------------------------- ##
23154 _ASBOX
23155     ) |
23156       sed "s/^/$as_me: WARNING:     /" >&2
23157     ;;
23158 esac
23159 echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23160 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23161 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23162   echo $ECHO_N "(cached) $ECHO_C" >&6
23163 else
23164   ac_cv_header_log4shib_CategoryStream_hh=$ac_header_preproc
23165 fi
23166 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23167 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23168
23169 fi
23170 if test $ac_cv_header_log4shib_CategoryStream_hh = yes; then
23171   :
23172 else
23173   { { echo "$as_me:$LINENO: error: unable to find log4shib header files" >&5
23174 echo "$as_me: error: unable to find log4shib header files" >&2;}
23175    { (exit 1); exit 1; }; }
23176 fi
23177
23178
23179         cat >conftest.$ac_ext <<_ACEOF
23180 /* confdefs.h.  */
23181 _ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h.  */
23185 #include <log4shib/Category.hh>
23186 #include <log4shib/CategoryStream.hh>
23187 int
23188 main ()
23189 {
23190 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
23191   ;
23192   return 0;
23193 }
23194 _ACEOF
23195 rm -f conftest.$ac_objext conftest$ac_exeext
23196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23197   (eval $ac_link) 2>conftest.er1
23198   ac_status=$?
23199   grep -v '^ *+' conftest.er1 >conftest.err
23200   rm -f conftest.er1
23201   cat conftest.err >&5
23202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203   (exit $ac_status); } &&
23204          { ac_try='test -z "$ac_cxx_werror_flag"
23205                          || test ! -s conftest.err'
23206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207   (eval $ac_try) 2>&5
23208   ac_status=$?
23209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210   (exit $ac_status); }; } &&
23211          { ac_try='test -s conftest$ac_exeext'
23212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213   (eval $ac_try) 2>&5
23214   ac_status=$?
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); }; }; then
23217
23218 cat >>confdefs.h <<\_ACEOF
23219 #define SHIBSP_LOG4SHIB 1
23220 _ACEOF
23221
23222 else
23223   echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23225
23226 { { echo "$as_me:$LINENO: error: unable to link with log4shib" >&5
23227 echo "$as_me: error: unable to link with log4shib" >&2;}
23228    { (exit 1); exit 1; }; }
23229 fi
23230 rm -f conftest.err conftest.$ac_objext \
23231       conftest$ac_exeext conftest.$ac_ext
23232 else
23233     { echo "$as_me:$LINENO: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
23234 echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
23235     { echo "$as_me:$LINENO: WARNING: will look for original log4cpp library" >&5
23236 echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
23237
23238         # log4cpp settings
23239         # Extract the first word of "log4cpp-config", so it can be a program name with args.
23240 set dummy log4cpp-config; ac_word=$2
23241 echo "$as_me:$LINENO: checking for $ac_word" >&5
23242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23243 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then
23244   echo $ECHO_N "(cached) $ECHO_C" >&6
23245 else
23246   case $LOG4CPP_CONFIG in
23247   [\\/]* | ?:[\\/]*)
23248   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
23249   ;;
23250   *)
23251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23252 for as_dir in $PATH
23253 do
23254   IFS=$as_save_IFS
23255   test -z "$as_dir" && as_dir=.
23256   for ac_exec_ext in '' $ac_executable_extensions; do
23257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23258     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23260     break 2
23261   fi
23262 done
23263 done
23264
23265   ;;
23266 esac
23267 fi
23268 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
23269
23270 if test -n "$LOG4CPP_CONFIG"; then
23271   echo "$as_me:$LINENO: result: $LOG4CPP_CONFIG" >&5
23272 echo "${ECHO_T}$LOG4CPP_CONFIG" >&6
23273 else
23274   echo "$as_me:$LINENO: result: no" >&5
23275 echo "${ECHO_T}no" >&6
23276 fi
23277
23278
23279 # Check whether --with-log4cpp or --without-log4cpp was given.
23280 if test "${with_log4cpp+set}" = set; then
23281   withval="$with_log4cpp"
23282
23283             LOG4CPP_CONFIG="${with_log4cpp}"
23284             if ! test -f "${LOG4CPP_CONFIG}" ; then
23285                 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
23286             fi
23287
23288 fi;
23289         if test -f "${LOG4CPP_CONFIG}"; then
23290                 { echo "$as_me:$LINENO: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&5
23291 echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
23292             LDFLAGS="`${LOG4CPP_CONFIG} --libs` $LDFLAGS"
23293             CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
23294                 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23295   echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23296 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23297 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23298   echo $ECHO_N "(cached) $ECHO_C" >&6
23299 fi
23300 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23301 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23302 else
23303   # Is the header compilable?
23304 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh usability" >&5
23305 echo $ECHO_N "checking log4cpp/CategoryStream.hh usability... $ECHO_C" >&6
23306 cat >conftest.$ac_ext <<_ACEOF
23307 /* confdefs.h.  */
23308 _ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h.  */
23312 $ac_includes_default
23313 #include <log4cpp/CategoryStream.hh>
23314 _ACEOF
23315 rm -f conftest.$ac_objext
23316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23317   (eval $ac_compile) 2>conftest.er1
23318   ac_status=$?
23319   grep -v '^ *+' conftest.er1 >conftest.err
23320   rm -f conftest.er1
23321   cat conftest.err >&5
23322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323   (exit $ac_status); } &&
23324          { ac_try='test -z "$ac_cxx_werror_flag"
23325                          || test ! -s conftest.err'
23326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23327   (eval $ac_try) 2>&5
23328   ac_status=$?
23329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330   (exit $ac_status); }; } &&
23331          { ac_try='test -s conftest.$ac_objext'
23332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23333   (eval $ac_try) 2>&5
23334   ac_status=$?
23335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336   (exit $ac_status); }; }; then
23337   ac_header_compiler=yes
23338 else
23339   echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23341
23342 ac_header_compiler=no
23343 fi
23344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23346 echo "${ECHO_T}$ac_header_compiler" >&6
23347
23348 # Is the header present?
23349 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh presence" >&5
23350 echo $ECHO_N "checking log4cpp/CategoryStream.hh presence... $ECHO_C" >&6
23351 cat >conftest.$ac_ext <<_ACEOF
23352 /* confdefs.h.  */
23353 _ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h.  */
23357 #include <log4cpp/CategoryStream.hh>
23358 _ACEOF
23359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23360   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23361   ac_status=$?
23362   grep -v '^ *+' conftest.er1 >conftest.err
23363   rm -f conftest.er1
23364   cat conftest.err >&5
23365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366   (exit $ac_status); } >/dev/null; then
23367   if test -s conftest.err; then
23368     ac_cpp_err=$ac_cxx_preproc_warn_flag
23369     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23370   else
23371     ac_cpp_err=
23372   fi
23373 else
23374   ac_cpp_err=yes
23375 fi
23376 if test -z "$ac_cpp_err"; then
23377   ac_header_preproc=yes
23378 else
23379   echo "$as_me: failed program was:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23381
23382   ac_header_preproc=no
23383 fi
23384 rm -f conftest.err conftest.$ac_ext
23385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23386 echo "${ECHO_T}$ac_header_preproc" >&6
23387
23388 # So?  What about this header?
23389 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23390   yes:no: )
23391     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23392 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23393     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&5
23394 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23395     ac_header_preproc=yes
23396     ;;
23397   no:yes:* )
23398     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&5
23399 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&2;}
23400     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh:     check for missing prerequisite headers?" >&5
23401 echo "$as_me: WARNING: log4cpp/CategoryStream.hh:     check for missing prerequisite headers?" >&2;}
23402     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&5
23403 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&2;}
23404     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&5
23405 echo "$as_me: WARNING: log4cpp/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&2;}
23406     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23407 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23408     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23409 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23410     (
23411       cat <<\_ASBOX
23412 ## --------------------------------------------- ##
23413 ## Report this to shibboleth-users@internet2.edu ##
23414 ## --------------------------------------------- ##
23415 _ASBOX
23416     ) |
23417       sed "s/^/$as_me: WARNING:     /" >&2
23418     ;;
23419 esac
23420 echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23421 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23422 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23423   echo $ECHO_N "(cached) $ECHO_C" >&6
23424 else
23425   ac_cv_header_log4cpp_CategoryStream_hh=$ac_header_preproc
23426 fi
23427 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23428 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23429
23430 fi
23431 if test $ac_cv_header_log4cpp_CategoryStream_hh = yes; then
23432   :
23433 else
23434   { { echo "$as_me:$LINENO: error: unable to find log4cpp header files" >&5
23435 echo "$as_me: error: unable to find log4cpp header files" >&2;}
23436    { (exit 1); exit 1; }; }
23437 fi
23438
23439
23440                 cat >conftest.$ac_ext <<_ACEOF
23441 /* confdefs.h.  */
23442 _ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h.  */
23446 #include <log4cpp/Category.hh>
23447 #include <log4cpp/CategoryStream.hh>
23448 int
23449 main ()
23450 {
23451 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
23452   ;
23453   return 0;
23454 }
23455 _ACEOF
23456 rm -f conftest.$ac_objext conftest$ac_exeext
23457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23458   (eval $ac_link) 2>conftest.er1
23459   ac_status=$?
23460   grep -v '^ *+' conftest.er1 >conftest.err
23461   rm -f conftest.er1
23462   cat conftest.err >&5
23463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464   (exit $ac_status); } &&
23465          { ac_try='test -z "$ac_cxx_werror_flag"
23466                          || test ! -s conftest.err'
23467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23468   (eval $ac_try) 2>&5
23469   ac_status=$?
23470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471   (exit $ac_status); }; } &&
23472          { ac_try='test -s conftest$ac_exeext'
23473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23474   (eval $ac_try) 2>&5
23475   ac_status=$?
23476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477   (exit $ac_status); }; }; then
23478
23479 cat >>confdefs.h <<\_ACEOF
23480 #define SHIBSP_LOG4CPP 1
23481 _ACEOF
23482
23483 else
23484   echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23486
23487 { { echo "$as_me:$LINENO: error: unable to link with log4cpp, need version 1.0 or later" >&5
23488 echo "$as_me: error: unable to link with log4cpp, need version 1.0 or later" >&2;}
23489    { (exit 1); exit 1; }; }
23490 fi
23491 rm -f conftest.err conftest.$ac_objext \
23492       conftest$ac_exeext conftest.$ac_ext
23493         else
23494             { { echo "$as_me:$LINENO: error: log4cpp-config not found, may need to use --with-log4cpp option" >&5
23495 echo "$as_me: error: log4cpp-config not found, may need to use --with-log4cpp option" >&2;}
23496    { (exit 1); exit 1; }; }
23497         fi
23498 fi
23499
23500 # Xerces settings
23501
23502 # Check whether --with-xerces or --without-xerces was given.
23503 if test "${with_xerces+set}" = set; then
23504   withval="$with_xerces"
23505   if test x_$with_xerces != x_/usr; then
23506                 LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
23507                 CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
23508             fi
23509 fi;
23510 LIBS="-lxerces-c $LIBS"
23511 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23512   echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23513 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23514 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23515   echo $ECHO_N "(cached) $ECHO_C" >&6
23516 fi
23517 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23518 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23519 else
23520   # Is the header compilable?
23521 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp usability" >&5
23522 echo $ECHO_N "checking xercesc/dom/DOM.hpp usability... $ECHO_C" >&6
23523 cat >conftest.$ac_ext <<_ACEOF
23524 /* confdefs.h.  */
23525 _ACEOF
23526 cat confdefs.h >>conftest.$ac_ext
23527 cat >>conftest.$ac_ext <<_ACEOF
23528 /* end confdefs.h.  */
23529 $ac_includes_default
23530 #include <xercesc/dom/DOM.hpp>
23531 _ACEOF
23532 rm -f conftest.$ac_objext
23533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23534   (eval $ac_compile) 2>conftest.er1
23535   ac_status=$?
23536   grep -v '^ *+' conftest.er1 >conftest.err
23537   rm -f conftest.er1
23538   cat conftest.err >&5
23539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540   (exit $ac_status); } &&
23541          { ac_try='test -z "$ac_cxx_werror_flag"
23542                          || test ! -s conftest.err'
23543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23544   (eval $ac_try) 2>&5
23545   ac_status=$?
23546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547   (exit $ac_status); }; } &&
23548          { ac_try='test -s conftest.$ac_objext'
23549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23550   (eval $ac_try) 2>&5
23551   ac_status=$?
23552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553   (exit $ac_status); }; }; then
23554   ac_header_compiler=yes
23555 else
23556   echo "$as_me: failed program was:" >&5
23557 sed 's/^/| /' conftest.$ac_ext >&5
23558
23559 ac_header_compiler=no
23560 fi
23561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23563 echo "${ECHO_T}$ac_header_compiler" >&6
23564
23565 # Is the header present?
23566 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp presence" >&5
23567 echo $ECHO_N "checking xercesc/dom/DOM.hpp presence... $ECHO_C" >&6
23568 cat >conftest.$ac_ext <<_ACEOF
23569 /* confdefs.h.  */
23570 _ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h.  */
23574 #include <xercesc/dom/DOM.hpp>
23575 _ACEOF
23576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23577   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23578   ac_status=$?
23579   grep -v '^ *+' conftest.er1 >conftest.err
23580   rm -f conftest.er1
23581   cat conftest.err >&5
23582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583   (exit $ac_status); } >/dev/null; then
23584   if test -s conftest.err; then
23585     ac_cpp_err=$ac_cxx_preproc_warn_flag
23586     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23587   else
23588     ac_cpp_err=
23589   fi
23590 else
23591   ac_cpp_err=yes
23592 fi
23593 if test -z "$ac_cpp_err"; then
23594   ac_header_preproc=yes
23595 else
23596   echo "$as_me: failed program was:" >&5
23597 sed 's/^/| /' conftest.$ac_ext >&5
23598
23599   ac_header_preproc=no
23600 fi
23601 rm -f conftest.err conftest.$ac_ext
23602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23603 echo "${ECHO_T}$ac_header_preproc" >&6
23604
23605 # So?  What about this header?
23606 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23607   yes:no: )
23608     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
23609 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
23610     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&5
23611 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&2;}
23612     ac_header_preproc=yes
23613     ;;
23614   no:yes:* )
23615     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&5
23616 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&2;}
23617     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp:     check for missing prerequisite headers?" >&5
23618 echo "$as_me: WARNING: xercesc/dom/DOM.hpp:     check for missing prerequisite headers?" >&2;}
23619     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&5
23620 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&2;}
23621     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp:     section \"Present But Cannot Be Compiled\"" >&5
23622 echo "$as_me: WARNING: xercesc/dom/DOM.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
23623     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&5
23624 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&2;}
23625     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&5
23626 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&2;}
23627     (
23628       cat <<\_ASBOX
23629 ## --------------------------------------------- ##
23630 ## Report this to shibboleth-users@internet2.edu ##
23631 ## --------------------------------------------- ##
23632 _ASBOX
23633     ) |
23634       sed "s/^/$as_me: WARNING:     /" >&2
23635     ;;
23636 esac
23637 echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23638 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23639 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23640   echo $ECHO_N "(cached) $ECHO_C" >&6
23641 else
23642   ac_cv_header_xercesc_dom_DOM_hpp=$ac_header_preproc
23643 fi
23644 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23645 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23646
23647 fi
23648 if test $ac_cv_header_xercesc_dom_DOM_hpp = yes; then
23649   :
23650 else
23651   { { echo "$as_me:$LINENO: error: unable to find xerces header files" >&5
23652 echo "$as_me: error: unable to find xerces header files" >&2;}
23653    { (exit 1); exit 1; }; }
23654 fi
23655
23656
23657 echo "$as_me:$LINENO: checking Xerces version" >&5
23658 echo $ECHO_N "checking Xerces version... $ECHO_C" >&6
23659 cat >conftest.$ac_ext <<_ACEOF
23660 /* confdefs.h.  */
23661 _ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h.  */
23665 #include <xercesc/util/XercesVersion.hpp>
23666 int
23667 main ()
23668 {
23669 #if  _XERCES_VERSION != 20600
23670 int i = 0;
23671 #else
23672 #error cannot use version 2.6.0
23673 #endif
23674   ;
23675   return 0;
23676 }
23677 _ACEOF
23678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23679   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23680   ac_status=$?
23681   grep -v '^ *+' conftest.er1 >conftest.err
23682   rm -f conftest.er1
23683   cat conftest.err >&5
23684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685   (exit $ac_status); } >/dev/null; then
23686   if test -s conftest.err; then
23687     ac_cpp_err=$ac_cxx_preproc_warn_flag
23688     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23689   else
23690     ac_cpp_err=
23691   fi
23692 else
23693   ac_cpp_err=yes
23694 fi
23695 if test -z "$ac_cpp_err"; then
23696   echo "$as_me:$LINENO: result: OK" >&5
23697 echo "${ECHO_T}OK" >&6
23698 else
23699   echo "$as_me: failed program was:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23701
23702   { { echo "$as_me:$LINENO: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
23703 See \`config.log' for more details." >&5
23704 echo "$as_me: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
23705 See \`config.log' for more details." >&2;}
23706    { (exit 1); exit 1; }; }
23707 fi
23708 rm -f conftest.err conftest.$ac_ext
23709 cat >conftest.$ac_ext <<_ACEOF
23710 /* confdefs.h.  */
23711 _ACEOF
23712 cat confdefs.h >>conftest.$ac_ext
23713 cat >>conftest.$ac_ext <<_ACEOF
23714 /* end confdefs.h.  */
23715 #include <xercesc/util/PlatformUtils.hpp>
23716 int
23717 main ()
23718 {
23719 xercesc::XMLPlatformUtils::Initialize()
23720   ;
23721   return 0;
23722 }
23723 _ACEOF
23724 rm -f conftest.$ac_objext conftest$ac_exeext
23725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23726   (eval $ac_link) 2>conftest.er1
23727   ac_status=$?
23728   grep -v '^ *+' conftest.er1 >conftest.err
23729   rm -f conftest.er1
23730   cat conftest.err >&5
23731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732   (exit $ac_status); } &&
23733          { ac_try='test -z "$ac_cxx_werror_flag"
23734                          || test ! -s conftest.err'
23735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736   (eval $ac_try) 2>&5
23737   ac_status=$?
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); }; } &&
23740          { ac_try='test -s conftest$ac_exeext'
23741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742   (eval $ac_try) 2>&5
23743   ac_status=$?
23744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745   (exit $ac_status); }; }; then
23746
23747 cat >>confdefs.h <<\_ACEOF
23748 #define HAVE_LIBXERCESC 1
23749 _ACEOF
23750
23751 else
23752   echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23754
23755 { { echo "$as_me:$LINENO: error: unable to link with Xerces" >&5
23756 echo "$as_me: error: unable to link with Xerces" >&2;}
23757    { (exit 1); exit 1; }; }
23758 fi
23759 rm -f conftest.err conftest.$ac_objext \
23760       conftest$ac_exeext conftest.$ac_ext
23761
23762 echo "$as_me:$LINENO: checking whether Xerces XMLString::release(XMLByte**) exists" >&5
23763 echo $ECHO_N "checking whether Xerces XMLString::release(XMLByte**) exists... $ECHO_C" >&6
23764 cat >conftest.$ac_ext <<_ACEOF
23765 /* confdefs.h.  */
23766 _ACEOF
23767 cat confdefs.h >>conftest.$ac_ext
23768 cat >>conftest.$ac_ext <<_ACEOF
23769 /* end confdefs.h.  */
23770 #include <xercesc/util/XMLString.hpp>
23771 int
23772 main ()
23773 {
23774 using namespace XERCES_CPP_NAMESPACE;
23775       XMLByte* buf=NULL;
23776       XMLString::release(&buf);
23777
23778   ;
23779   return 0;
23780 }
23781 _ACEOF
23782 rm -f conftest.$ac_objext
23783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23784   (eval $ac_compile) 2>conftest.er1
23785   ac_status=$?
23786   grep -v '^ *+' conftest.er1 >conftest.err
23787   rm -f conftest.er1
23788   cat conftest.err >&5
23789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790   (exit $ac_status); } &&
23791          { ac_try='test -z "$ac_cxx_werror_flag"
23792                          || test ! -s conftest.err'
23793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23794   (eval $ac_try) 2>&5
23795   ac_status=$?
23796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797   (exit $ac_status); }; } &&
23798          { ac_try='test -s conftest.$ac_objext'
23799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23800   (eval $ac_try) 2>&5
23801   ac_status=$?
23802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803   (exit $ac_status); }; }; then
23804   echo "$as_me:$LINENO: result: yes" >&5
23805 echo "${ECHO_T}yes" >&6
23806
23807 cat >>confdefs.h <<\_ACEOF
23808 #define SHIBSP_XERCESC_HAS_XMLBYTE_RELEASE 1
23809 _ACEOF
23810
23811 else
23812   echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23814
23815 echo "$as_me:$LINENO: result: no" >&5
23816 echo "${ECHO_T}no" >&6
23817 fi
23818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23819
23820 echo "$as_me:$LINENO: checking whether Xerces DOMNodeFilter API returns a short" >&5
23821 echo $ECHO_N "checking whether Xerces DOMNodeFilter API returns a short... $ECHO_C" >&6
23822 cat >conftest.$ac_ext <<_ACEOF
23823 /* confdefs.h.  */
23824 _ACEOF
23825 cat confdefs.h >>conftest.$ac_ext
23826 cat >>conftest.$ac_ext <<_ACEOF
23827 /* end confdefs.h.  */
23828 #include <xercesc/dom/DOM.hpp>
23829 int
23830 main ()
23831 {
23832 using namespace XERCES_CPP_NAMESPACE;
23833       class Blocker : public DOMNodeFilter {
23834       public:
23835         short acceptNode(const DOMNode* node) const {
23836             return FILTER_REJECT;
23837         }
23838       };
23839       static Blocker g_Blocker;
23840
23841   ;
23842   return 0;
23843 }
23844 _ACEOF
23845 rm -f conftest.$ac_objext
23846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23847   (eval $ac_compile) 2>conftest.er1
23848   ac_status=$?
23849   grep -v '^ *+' conftest.er1 >conftest.err
23850   rm -f conftest.er1
23851   cat conftest.err >&5
23852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853   (exit $ac_status); } &&
23854          { ac_try='test -z "$ac_cxx_werror_flag"
23855                          || test ! -s conftest.err'
23856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857   (eval $ac_try) 2>&5
23858   ac_status=$?
23859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860   (exit $ac_status); }; } &&
23861          { ac_try='test -s conftest.$ac_objext'
23862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863   (eval $ac_try) 2>&5
23864   ac_status=$?
23865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866   (exit $ac_status); }; }; then
23867   echo "$as_me:$LINENO: result: yes" >&5
23868 echo "${ECHO_T}yes" >&6
23869
23870 cat >>confdefs.h <<\_ACEOF
23871 #define SHIBSP_XERCESC_SHORT_ACCEPTNODE 1
23872 _ACEOF
23873
23874 else
23875   echo "$as_me: failed program was:" >&5
23876 sed 's/^/| /' conftest.$ac_ext >&5
23877
23878 echo "$as_me:$LINENO: result: no" >&5
23879 echo "${ECHO_T}no" >&6
23880 fi
23881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23882
23883 #XML-Tooling settings
23884
23885 # Check whether --with-xmltooling or --without-xmltooling was given.
23886 if test "${with_xmltooling+set}" = set; then
23887   withval="$with_xmltooling"
23888   if test x_$with_xmltooling != x_/usr; then
23889                 LDFLAGS="-L${with_xmltooling}/lib $LDFLAGS"
23890                 CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
23891             fi
23892 fi;
23893 LITE_LIBS="-lxmltooling-lite"
23894 XMLSEC_LIBS="-lxmltooling"
23895 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23896   echo "$as_me:$LINENO: checking for xmltooling/base.h" >&5
23897 echo $ECHO_N "checking for xmltooling/base.h... $ECHO_C" >&6
23898 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23899   echo $ECHO_N "(cached) $ECHO_C" >&6
23900 fi
23901 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_base_h" >&5
23902 echo "${ECHO_T}$ac_cv_header_xmltooling_base_h" >&6
23903 else
23904   # Is the header compilable?
23905 echo "$as_me:$LINENO: checking xmltooling/base.h usability" >&5
23906 echo $ECHO_N "checking xmltooling/base.h usability... $ECHO_C" >&6
23907 cat >conftest.$ac_ext <<_ACEOF
23908 /* confdefs.h.  */
23909 _ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h.  */
23913 $ac_includes_default
23914 #include <xmltooling/base.h>
23915 _ACEOF
23916 rm -f conftest.$ac_objext
23917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23918   (eval $ac_compile) 2>conftest.er1
23919   ac_status=$?
23920   grep -v '^ *+' conftest.er1 >conftest.err
23921   rm -f conftest.er1
23922   cat conftest.err >&5
23923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924   (exit $ac_status); } &&
23925          { ac_try='test -z "$ac_cxx_werror_flag"
23926                          || test ! -s conftest.err'
23927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928   (eval $ac_try) 2>&5
23929   ac_status=$?
23930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931   (exit $ac_status); }; } &&
23932          { ac_try='test -s conftest.$ac_objext'
23933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934   (eval $ac_try) 2>&5
23935   ac_status=$?
23936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937   (exit $ac_status); }; }; then
23938   ac_header_compiler=yes
23939 else
23940   echo "$as_me: failed program was:" >&5
23941 sed 's/^/| /' conftest.$ac_ext >&5
23942
23943 ac_header_compiler=no
23944 fi
23945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23947 echo "${ECHO_T}$ac_header_compiler" >&6
23948
23949 # Is the header present?
23950 echo "$as_me:$LINENO: checking xmltooling/base.h presence" >&5
23951 echo $ECHO_N "checking xmltooling/base.h presence... $ECHO_C" >&6
23952 cat >conftest.$ac_ext <<_ACEOF
23953 /* confdefs.h.  */
23954 _ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h.  */
23958 #include <xmltooling/base.h>
23959 _ACEOF
23960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23962   ac_status=$?
23963   grep -v '^ *+' conftest.er1 >conftest.err
23964   rm -f conftest.er1
23965   cat conftest.err >&5
23966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967   (exit $ac_status); } >/dev/null; then
23968   if test -s conftest.err; then
23969     ac_cpp_err=$ac_cxx_preproc_warn_flag
23970     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23971   else
23972     ac_cpp_err=
23973   fi
23974 else
23975   ac_cpp_err=yes
23976 fi
23977 if test -z "$ac_cpp_err"; then
23978   ac_header_preproc=yes
23979 else
23980   echo "$as_me: failed program was:" >&5
23981 sed 's/^/| /' conftest.$ac_ext >&5
23982
23983   ac_header_preproc=no
23984 fi
23985 rm -f conftest.err conftest.$ac_ext
23986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23987 echo "${ECHO_T}$ac_header_preproc" >&6
23988
23989 # So?  What about this header?
23990 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23991   yes:no: )
23992     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: accepted by the compiler, rejected by the preprocessor!" >&5
23993 echo "$as_me: WARNING: xmltooling/base.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23994     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: proceeding with the compiler's result" >&5
23995 echo "$as_me: WARNING: xmltooling/base.h: proceeding with the compiler's result" >&2;}
23996     ac_header_preproc=yes
23997     ;;
23998   no:yes:* )
23999     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: present but cannot be compiled" >&5
24000 echo "$as_me: WARNING: xmltooling/base.h: present but cannot be compiled" >&2;}
24001     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h:     check for missing prerequisite headers?" >&5
24002 echo "$as_me: WARNING: xmltooling/base.h:     check for missing prerequisite headers?" >&2;}
24003     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: see the Autoconf documentation" >&5
24004 echo "$as_me: WARNING: xmltooling/base.h: see the Autoconf documentation" >&2;}
24005     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h:     section \"Present But Cannot Be Compiled\"" >&5
24006 echo "$as_me: WARNING: xmltooling/base.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24007     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: proceeding with the preprocessor's result" >&5
24008 echo "$as_me: WARNING: xmltooling/base.h: proceeding with the preprocessor's result" >&2;}
24009     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: in the future, the compiler will take precedence" >&5
24010 echo "$as_me: WARNING: xmltooling/base.h: in the future, the compiler will take precedence" >&2;}
24011     (
24012       cat <<\_ASBOX
24013 ## --------------------------------------------- ##
24014 ## Report this to shibboleth-users@internet2.edu ##
24015 ## --------------------------------------------- ##
24016 _ASBOX
24017     ) |
24018       sed "s/^/$as_me: WARNING:     /" >&2
24019     ;;
24020 esac
24021 echo "$as_me:$LINENO: checking for xmltooling/base.h" >&5
24022 echo $ECHO_N "checking for xmltooling/base.h... $ECHO_C" >&6
24023 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
24024   echo $ECHO_N "(cached) $ECHO_C" >&6
24025 else
24026   ac_cv_header_xmltooling_base_h=$ac_header_preproc
24027 fi
24028 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_base_h" >&5
24029 echo "${ECHO_T}$ac_cv_header_xmltooling_base_h" >&6
24030
24031 fi
24032 if test $ac_cv_header_xmltooling_base_h = yes; then
24033   :
24034 else
24035   { { echo "$as_me:$LINENO: error: unable to find xmltooling header files" >&5
24036 echo "$as_me: error: unable to find xmltooling header files" >&2;}
24037    { (exit 1); exit 1; }; }
24038 fi
24039
24040
24041
24042
24043 # save and append master libs
24044 save_LIBS="$LIBS"
24045 LIBS="$XMLSEC_LIBS $LIBS"
24046
24047 cat >conftest.$ac_ext <<_ACEOF
24048 /* confdefs.h.  */
24049 _ACEOF
24050 cat confdefs.h >>conftest.$ac_ext
24051 cat >>conftest.$ac_ext <<_ACEOF
24052 /* end confdefs.h.  */
24053 #include <xmltooling/io/HTTPResponse.h>
24054 int
24055 main ()
24056 {
24057 xmltooling::HTTPResponse::sanitizeURL("http://test")
24058   ;
24059   return 0;
24060 }
24061 _ACEOF
24062 rm -f conftest.$ac_objext conftest$ac_exeext
24063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24064   (eval $ac_link) 2>conftest.er1
24065   ac_status=$?
24066   grep -v '^ *+' conftest.er1 >conftest.err
24067   rm -f conftest.er1
24068   cat conftest.err >&5
24069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070   (exit $ac_status); } &&
24071          { ac_try='test -z "$ac_cxx_werror_flag"
24072                          || test ! -s conftest.err'
24073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24074   (eval $ac_try) 2>&5
24075   ac_status=$?
24076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077   (exit $ac_status); }; } &&
24078          { ac_try='test -s conftest$ac_exeext'
24079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24080   (eval $ac_try) 2>&5
24081   ac_status=$?
24082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083   (exit $ac_status); }; }; then
24084
24085 cat >>confdefs.h <<\_ACEOF
24086 #define HAVE_XMLTOOLING 1
24087 _ACEOF
24088
24089 else
24090   echo "$as_me: failed program was:" >&5
24091 sed 's/^/| /' conftest.$ac_ext >&5
24092
24093 { { echo "$as_me:$LINENO: error: unable to link with XMLTooling, or version was too old" >&5
24094 echo "$as_me: error: unable to link with XMLTooling, or version was too old" >&2;}
24095    { (exit 1); exit 1; }; }
24096 fi
24097 rm -f conftest.err conftest.$ac_objext \
24098       conftest$ac_exeext conftest.$ac_ext
24099
24100 # restore master libs
24101 LIBS="$save_LIBS"
24102
24103 # Establish location of xmltooling catalog.
24104 XMLTOOLINGXMLDIR=""
24105 if test "x$with_xmltooling" = "x" ; then
24106    with_xmltooling="/usr"
24107 fi
24108 if test -f $with_xmltooling/share/xml/xmltooling/catalog.xml ; then
24109     XMLTOOLINGXMLDIR="$with_xmltooling"
24110 elif test -f $with_xerces/share/xml/xmltooling/catalog.xml ; then
24111     XMLTOOLINGXMLDIR="$with_xerces"
24112 elif test -f $with_log4shib/share/xml/xmltooling/catalog.xml ; then
24113     XMLTOOLINGXMLDIR="$with_log4shib"
24114 fi
24115 if test "x$XMLTOOLINGXMLDIR" = "x" ; then
24116     { { echo "$as_me:$LINENO: error: xmltooling XML catalog not found, may need to use --with-xmltooling option" >&5
24117 echo "$as_me: error: xmltooling XML catalog not found, may need to use --with-xmltooling option" >&2;}
24118    { (exit 1); exit 1; }; }
24119 fi
24120 XMLTOOLINGXMLDIR="$XMLTOOLINGXMLDIR/share/xml/xmltooling"
24121
24122
24123 # XML-Security settings
24124
24125 # Check whether --with-xmlsec or --without-xmlsec was given.
24126 if test "${with_xmlsec+set}" = set; then
24127   withval="$with_xmlsec"
24128
24129 else
24130   with_xmlsec=/usr
24131 fi;
24132
24133 if test x_$with_xmlsec != x_/usr; then
24134     LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
24135     CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
24136 fi
24137 XMLSEC_LIBS="-lxml-security-c $XMLSEC_LIBS"
24138
24139 # save and append master libs
24140 save_LIBS="$LIBS"
24141 LIBS="$XMLSEC_LIBS $LIBS"
24142
24143 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24144   echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
24145 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
24146 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24147   echo $ECHO_N "(cached) $ECHO_C" >&6
24148 fi
24149 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
24150 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
24151 else
24152   # Is the header compilable?
24153 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp usability" >&5
24154 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp usability... $ECHO_C" >&6
24155 cat >conftest.$ac_ext <<_ACEOF
24156 /* confdefs.h.  */
24157 _ACEOF
24158 cat confdefs.h >>conftest.$ac_ext
24159 cat >>conftest.$ac_ext <<_ACEOF
24160 /* end confdefs.h.  */
24161 $ac_includes_default
24162 #include <xsec/utils/XSECPlatformUtils.hpp>
24163 _ACEOF
24164 rm -f conftest.$ac_objext
24165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24166   (eval $ac_compile) 2>conftest.er1
24167   ac_status=$?
24168   grep -v '^ *+' conftest.er1 >conftest.err
24169   rm -f conftest.er1
24170   cat conftest.err >&5
24171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172   (exit $ac_status); } &&
24173          { ac_try='test -z "$ac_cxx_werror_flag"
24174                          || test ! -s conftest.err'
24175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24176   (eval $ac_try) 2>&5
24177   ac_status=$?
24178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179   (exit $ac_status); }; } &&
24180          { ac_try='test -s conftest.$ac_objext'
24181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24182   (eval $ac_try) 2>&5
24183   ac_status=$?
24184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185   (exit $ac_status); }; }; then
24186   ac_header_compiler=yes
24187 else
24188   echo "$as_me: failed program was:" >&5
24189 sed 's/^/| /' conftest.$ac_ext >&5
24190
24191 ac_header_compiler=no
24192 fi
24193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24195 echo "${ECHO_T}$ac_header_compiler" >&6
24196
24197 # Is the header present?
24198 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp presence" >&5
24199 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp presence... $ECHO_C" >&6
24200 cat >conftest.$ac_ext <<_ACEOF
24201 /* confdefs.h.  */
24202 _ACEOF
24203 cat confdefs.h >>conftest.$ac_ext
24204 cat >>conftest.$ac_ext <<_ACEOF
24205 /* end confdefs.h.  */
24206 #include <xsec/utils/XSECPlatformUtils.hpp>
24207 _ACEOF
24208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24209   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24210   ac_status=$?
24211   grep -v '^ *+' conftest.er1 >conftest.err
24212   rm -f conftest.er1
24213   cat conftest.err >&5
24214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215   (exit $ac_status); } >/dev/null; then
24216   if test -s conftest.err; then
24217     ac_cpp_err=$ac_cxx_preproc_warn_flag
24218     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24219   else
24220     ac_cpp_err=
24221   fi
24222 else
24223   ac_cpp_err=yes
24224 fi
24225 if test -z "$ac_cpp_err"; then
24226   ac_header_preproc=yes
24227 else
24228   echo "$as_me: failed program was:" >&5
24229 sed 's/^/| /' conftest.$ac_ext >&5
24230
24231   ac_header_preproc=no
24232 fi
24233 rm -f conftest.err conftest.$ac_ext
24234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24235 echo "${ECHO_T}$ac_header_preproc" >&6
24236
24237 # So?  What about this header?
24238 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24239   yes:no: )
24240     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
24241 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
24242     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&5
24243 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&2;}
24244     ac_header_preproc=yes
24245     ;;
24246   no:yes:* )
24247     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&5
24248 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&2;}
24249     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp:     check for missing prerequisite headers?" >&5
24250 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp:     check for missing prerequisite headers?" >&2;}
24251     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&5
24252 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&2;}
24253     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp:     section \"Present But Cannot Be Compiled\"" >&5
24254 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
24255     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&5
24256 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&2;}
24257     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&5
24258 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&2;}
24259     (
24260       cat <<\_ASBOX
24261 ## --------------------------------------------- ##
24262 ## Report this to shibboleth-users@internet2.edu ##
24263 ## --------------------------------------------- ##
24264 _ASBOX
24265     ) |
24266       sed "s/^/$as_me: WARNING:     /" >&2
24267     ;;
24268 esac
24269 echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
24270 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
24271 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24272   echo $ECHO_N "(cached) $ECHO_C" >&6
24273 else
24274   ac_cv_header_xsec_utils_XSECPlatformUtils_hpp=$ac_header_preproc
24275 fi
24276 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
24277 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
24278
24279 fi
24280 if test $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp = yes; then
24281   :
24282 else
24283   { { echo "$as_me:$LINENO: error: unable to find XML-Security header files" >&5
24284 echo "$as_me: error: unable to find XML-Security header files" >&2;}
24285    { (exit 1); exit 1; }; }
24286 fi
24287
24288
24289 echo "$as_me:$LINENO: checking XML-Security version" >&5
24290 echo $ECHO_N "checking XML-Security version... $ECHO_C" >&6
24291 cat >conftest.$ac_ext <<_ACEOF
24292 /* confdefs.h.  */
24293 _ACEOF
24294 cat confdefs.h >>conftest.$ac_ext
24295 cat >>conftest.$ac_ext <<_ACEOF
24296 /* end confdefs.h.  */
24297 #include <xsec/utils/XSECPlatformUtils.hpp>
24298 int
24299 main ()
24300 {
24301 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
24302 int i = 0;
24303 #else
24304 #error need version 1.4.0 or later
24305 #endif
24306   ;
24307   return 0;
24308 }
24309 _ACEOF
24310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24312   ac_status=$?
24313   grep -v '^ *+' conftest.er1 >conftest.err
24314   rm -f conftest.er1
24315   cat conftest.err >&5
24316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317   (exit $ac_status); } >/dev/null; then
24318   if test -s conftest.err; then
24319     ac_cpp_err=$ac_cxx_preproc_warn_flag
24320     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24321   else
24322     ac_cpp_err=
24323   fi
24324 else
24325   ac_cpp_err=yes
24326 fi
24327 if test -z "$ac_cpp_err"; then
24328   echo "$as_me:$LINENO: result: OK" >&5
24329 echo "${ECHO_T}OK" >&6
24330 else
24331   echo "$as_me: failed program was:" >&5
24332 sed 's/^/| /' conftest.$ac_ext >&5
24333
24334   { { echo "$as_me:$LINENO: error: XML-Security version 1.4.0 or greater is required.
24335 See \`config.log' for more details." >&5
24336 echo "$as_me: error: XML-Security version 1.4.0 or greater is required.
24337 See \`config.log' for more details." >&2;}
24338    { (exit 1); exit 1; }; }
24339 fi
24340 rm -f conftest.err conftest.$ac_ext
24341 cat >conftest.$ac_ext <<_ACEOF
24342 /* confdefs.h.  */
24343 _ACEOF
24344 cat confdefs.h >>conftest.$ac_ext
24345 cat >>conftest.$ac_ext <<_ACEOF
24346 /* end confdefs.h.  */
24347 #include <xsec/utils/XSECPlatformUtils.hpp>
24348 int
24349 main ()
24350 {
24351 XSECPlatformUtils::Initialise()
24352   ;
24353   return 0;
24354 }
24355 _ACEOF
24356 rm -f conftest.$ac_objext conftest$ac_exeext
24357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24358   (eval $ac_link) 2>conftest.er1
24359   ac_status=$?
24360   grep -v '^ *+' conftest.er1 >conftest.err
24361   rm -f conftest.er1
24362   cat conftest.err >&5
24363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364   (exit $ac_status); } &&
24365          { ac_try='test -z "$ac_cxx_werror_flag"
24366                          || test ! -s conftest.err'
24367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24368   (eval $ac_try) 2>&5
24369   ac_status=$?
24370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371   (exit $ac_status); }; } &&
24372          { ac_try='test -s conftest$ac_exeext'
24373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24374   (eval $ac_try) 2>&5
24375   ac_status=$?
24376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377   (exit $ac_status); }; }; then
24378   :
24379 else
24380   echo "$as_me: failed program was:" >&5
24381 sed 's/^/| /' conftest.$ac_ext >&5
24382
24383 { { echo "$as_me:$LINENO: error: unable to link with XML-Security" >&5
24384 echo "$as_me: error: unable to link with XML-Security" >&2;}
24385    { (exit 1); exit 1; }; }
24386 fi
24387 rm -f conftest.err conftest.$ac_objext \
24388       conftest$ac_exeext conftest.$ac_ext
24389
24390 # restore master libs
24391 LIBS="$save_LIBS"
24392
24393 # OpenSAML settings
24394
24395 # Check whether --with-saml or --without-saml was given.
24396 if test "${with_saml+set}" = set; then
24397   withval="$with_saml"
24398   if test x_$with_saml != x_/usr; then
24399         LDFLAGS="-L${with_saml}/lib $LDFLAGS"
24400         CPPFLAGS="-I${with_saml}/include $CPPFLAGS"
24401     fi
24402 fi;
24403 XMLSEC_LIBS="-lsaml $XMLSEC_LIBS"
24404
24405 # save and append master libs
24406 save_LIBS="$LIBS"
24407 LIBS="$XMLSEC_LIBS $LIBS"
24408
24409 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24410   echo "$as_me:$LINENO: checking for saml/saml2/metadata/Metadata.h" >&5
24411 echo $ECHO_N "checking for saml/saml2/metadata/Metadata.h... $ECHO_C" >&6
24412 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24413   echo $ECHO_N "(cached) $ECHO_C" >&6
24414 fi
24415 echo "$as_me:$LINENO: result: $ac_cv_header_saml_saml2_metadata_Metadata_h" >&5
24416 echo "${ECHO_T}$ac_cv_header_saml_saml2_metadata_Metadata_h" >&6
24417 else
24418   # Is the header compilable?
24419 echo "$as_me:$LINENO: checking saml/saml2/metadata/Metadata.h usability" >&5
24420 echo $ECHO_N "checking saml/saml2/metadata/Metadata.h usability... $ECHO_C" >&6
24421 cat >conftest.$ac_ext <<_ACEOF
24422 /* confdefs.h.  */
24423 _ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h.  */
24427 $ac_includes_default
24428 #include <saml/saml2/metadata/Metadata.h>
24429 _ACEOF
24430 rm -f conftest.$ac_objext
24431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24432   (eval $ac_compile) 2>conftest.er1
24433   ac_status=$?
24434   grep -v '^ *+' conftest.er1 >conftest.err
24435   rm -f conftest.er1
24436   cat conftest.err >&5
24437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438   (exit $ac_status); } &&
24439          { ac_try='test -z "$ac_cxx_werror_flag"
24440                          || test ! -s conftest.err'
24441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24442   (eval $ac_try) 2>&5
24443   ac_status=$?
24444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445   (exit $ac_status); }; } &&
24446          { ac_try='test -s conftest.$ac_objext'
24447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24448   (eval $ac_try) 2>&5
24449   ac_status=$?
24450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451   (exit $ac_status); }; }; then
24452   ac_header_compiler=yes
24453 else
24454   echo "$as_me: failed program was:" >&5
24455 sed 's/^/| /' conftest.$ac_ext >&5
24456
24457 ac_header_compiler=no
24458 fi
24459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24461 echo "${ECHO_T}$ac_header_compiler" >&6
24462
24463 # Is the header present?
24464 echo "$as_me:$LINENO: checking saml/saml2/metadata/Metadata.h presence" >&5
24465 echo $ECHO_N "checking saml/saml2/metadata/Metadata.h presence... $ECHO_C" >&6
24466 cat >conftest.$ac_ext <<_ACEOF
24467 /* confdefs.h.  */
24468 _ACEOF
24469 cat confdefs.h >>conftest.$ac_ext
24470 cat >>conftest.$ac_ext <<_ACEOF
24471 /* end confdefs.h.  */
24472 #include <saml/saml2/metadata/Metadata.h>
24473 _ACEOF
24474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24475   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24476   ac_status=$?
24477   grep -v '^ *+' conftest.er1 >conftest.err
24478   rm -f conftest.er1
24479   cat conftest.err >&5
24480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481   (exit $ac_status); } >/dev/null; then
24482   if test -s conftest.err; then
24483     ac_cpp_err=$ac_cxx_preproc_warn_flag
24484     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24485   else
24486     ac_cpp_err=
24487   fi
24488 else
24489   ac_cpp_err=yes
24490 fi
24491 if test -z "$ac_cpp_err"; then
24492   ac_header_preproc=yes
24493 else
24494   echo "$as_me: failed program was:" >&5
24495 sed 's/^/| /' conftest.$ac_ext >&5
24496
24497   ac_header_preproc=no
24498 fi
24499 rm -f conftest.err conftest.$ac_ext
24500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24501 echo "${ECHO_T}$ac_header_preproc" >&6
24502
24503 # So?  What about this header?
24504 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24505   yes:no: )
24506     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: accepted by the compiler, rejected by the preprocessor!" >&5
24507 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24508     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the compiler's result" >&5
24509 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the compiler's result" >&2;}
24510     ac_header_preproc=yes
24511     ;;
24512   no:yes:* )
24513     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: present but cannot be compiled" >&5
24514 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: present but cannot be compiled" >&2;}
24515     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h:     check for missing prerequisite headers?" >&5
24516 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h:     check for missing prerequisite headers?" >&2;}
24517     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: see the Autoconf documentation" >&5
24518 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: see the Autoconf documentation" >&2;}
24519     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h:     section \"Present But Cannot Be Compiled\"" >&5
24520 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24521     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the preprocessor's result" >&5
24522 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the preprocessor's result" >&2;}
24523     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: in the future, the compiler will take precedence" >&5
24524 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: in the future, the compiler will take precedence" >&2;}
24525     (
24526       cat <<\_ASBOX
24527 ## --------------------------------------------- ##
24528 ## Report this to shibboleth-users@internet2.edu ##
24529 ## --------------------------------------------- ##
24530 _ASBOX
24531     ) |
24532       sed "s/^/$as_me: WARNING:     /" >&2
24533     ;;
24534 esac
24535 echo "$as_me:$LINENO: checking for saml/saml2/metadata/Metadata.h" >&5
24536 echo $ECHO_N "checking for saml/saml2/metadata/Metadata.h... $ECHO_C" >&6
24537 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24538   echo $ECHO_N "(cached) $ECHO_C" >&6
24539 else
24540   ac_cv_header_saml_saml2_metadata_Metadata_h=$ac_header_preproc
24541 fi
24542 echo "$as_me:$LINENO: result: $ac_cv_header_saml_saml2_metadata_Metadata_h" >&5
24543 echo "${ECHO_T}$ac_cv_header_saml_saml2_metadata_Metadata_h" >&6
24544
24545 fi
24546 if test $ac_cv_header_saml_saml2_metadata_Metadata_h = yes; then
24547   :
24548 else
24549   { { echo "$as_me:$LINENO: error: unable to find OpenSAML header files" >&5
24550 echo "$as_me: error: unable to find OpenSAML header files" >&2;}
24551    { (exit 1); exit 1; }; }
24552 fi
24553
24554
24555 cat >conftest.$ac_ext <<_ACEOF
24556 /* confdefs.h.  */
24557 _ACEOF
24558 cat confdefs.h >>conftest.$ac_ext
24559 cat >>conftest.$ac_ext <<_ACEOF
24560 /* end confdefs.h.  */
24561 #include <saml/SAMLConfig.h>
24562 #include <saml/version.h>
24563 int
24564 main ()
24565 {
24566 #if _OPENSAML_VERSION >= 20200
24567 opensaml::SAMLConfig::getConfig();
24568 #else
24569 #error Need OpenSAML version 2.2 or higher
24570 #endif
24571   ;
24572   return 0;
24573 }
24574 _ACEOF
24575 rm -f conftest.$ac_objext conftest$ac_exeext
24576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24577   (eval $ac_link) 2>conftest.er1
24578   ac_status=$?
24579   grep -v '^ *+' conftest.er1 >conftest.err
24580   rm -f conftest.er1
24581   cat conftest.err >&5
24582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583   (exit $ac_status); } &&
24584          { ac_try='test -z "$ac_cxx_werror_flag"
24585                          || test ! -s conftest.err'
24586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24587   (eval $ac_try) 2>&5
24588   ac_status=$?
24589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590   (exit $ac_status); }; } &&
24591          { ac_try='test -s conftest$ac_exeext'
24592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24593   (eval $ac_try) 2>&5
24594   ac_status=$?
24595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596   (exit $ac_status); }; }; then
24597
24598 cat >>confdefs.h <<\_ACEOF
24599 #define HAVE_SAML 1
24600 _ACEOF
24601
24602 else
24603   echo "$as_me: failed program was:" >&5
24604 sed 's/^/| /' conftest.$ac_ext >&5
24605
24606 { { echo "$as_me:$LINENO: error: unable to link with OpenSAML, or version was too old" >&5
24607 echo "$as_me: error: unable to link with OpenSAML, or version was too old" >&2;}
24608    { (exit 1); exit 1; }; }
24609 fi
24610 rm -f conftest.err conftest.$ac_objext \
24611       conftest$ac_exeext conftest.$ac_ext
24612
24613 # restore master libs
24614 LIBS="$save_LIBS"
24615
24616 # Establish location of opensaml catalogs.
24617 OPENSAMLXMLDIR=""
24618 if test "x$with_saml" = "x" ; then
24619     with_saml="/usr"
24620 fi
24621 if test -f $with_saml/share/xml/opensaml/saml20-catalog.xml ; then
24622     OPENSAMLXMLDIR="$with_saml"
24623 elif test -f $with_xmltooling/share/xml/opensaml/saml20-catalog.xml ; then
24624     OPENSAMLXMLDIR="$with_xmltooling"
24625 elif test -f $with_xerces/share/xml/opensaml/saml20-catalog.xml ; then
24626     OPENSAMLXMLDIR="$with_xerces"
24627 elif test -f $with_log4shib/share/xml/opensaml/saml20-catalog.xml ; then
24628     OPENSAMLXMLDIR="$with_log4shib"
24629 fi
24630 if test "x$OPENSAMLXMLDIR" = "x" ; then
24631     { { echo "$as_me:$LINENO: error: opensaml XML catalogs not found, may need to use --with-saml option" >&5
24632 echo "$as_me: error: opensaml XML catalogs not found, may need to use --with-saml option" >&2;}
24633    { (exit 1); exit 1; }; }
24634 fi
24635 OPENSAMLXMLDIR="$OPENSAMLXMLDIR/share/xml/opensaml"
24636
24637
24638
24639
24640
24641                               ac_config_files="$ac_config_files shibboleth.spec pkginfo Portfile"
24642
24643
24644 # output the underlying makefiles
24645 WANT_SUBDIRS="doc schemas configs shibsp shibd util"
24646                                                                                 ac_config_files="$ac_config_files Makefile doc/Makefile schemas/Makefile configs/Makefile shibsp/Makefile shibd/Makefile util/Makefile selinux/Makefile"
24647
24648
24649 ## ADFS?
24650           ac_config_files="$ac_config_files adfs/Makefile"
24651
24652 # Check whether --enable-adfs or --disable-adfs was given.
24653 if test "${enable_adfs+set}" = set; then
24654   enableval="$enable_adfs"
24655   adfs_enabled=$enableval
24656 else
24657   adfs_enabled=yes
24658 fi;
24659 if test "x$adfs_enabled" = "x" ; then
24660    adfs_enabled=yes
24661 fi
24662 echo "$as_me:$LINENO: checking whether to build the ADFS module" >&5
24663 echo $ECHO_N "checking whether to build the ADFS module... $ECHO_C" >&6
24664 if test "$adfs_enabled" = "no" ; then
24665    echo "$as_me:$LINENO: result: no" >&5
24666 echo "${ECHO_T}no" >&6
24667 else
24668    echo "$as_me:$LINENO: result: yes" >&5
24669 echo "${ECHO_T}yes" >&6
24670    WANT_SUBDIRS="$WANT_SUBDIRS adfs"
24671 fi
24672
24673
24674 #
24675 # Build NSAPI module?
24676 #
24677 echo "$as_me:$LINENO: checking for NSAPI module option" >&5
24678 echo $ECHO_N "checking for NSAPI module option... $ECHO_C" >&6
24679
24680 # Check whether --with-nsapi or --without-nsapi was given.
24681 if test "${with_nsapi+set}" = set; then
24682   withval="$with_nsapi"
24683   WANT_NSAPI=$withval
24684 else
24685   WANT_NSAPI=no
24686 fi;
24687 echo "$as_me:$LINENO: result: $WANT_NSAPI" >&5
24688 echo "${ECHO_T}$WANT_NSAPI" >&6
24689
24690 if test "$WANT_NSAPI" != "no"; then
24691   if test ! -d $WANT_NSAPI/bin ; then
24692     { { echo "$as_me:$LINENO: error: Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" >&5
24693 echo "$as_me: error: Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" >&2;}
24694    { (exit 1); exit 1; }; }
24695   fi
24696   echo "$as_me:$LINENO: checking for NSAPI include files" >&5
24697 echo $ECHO_N "checking for NSAPI include files... $ECHO_C" >&6
24698   if test -d $WANT_NSAPI/include ; then
24699     NSAPI_INCLUDE=$WANT_NSAPI/include
24700     echo "$as_me:$LINENO: result: Netscape-Enterprise 3.x style" >&5
24701 echo "${ECHO_T}Netscape-Enterprise 3.x style" >&6
24702
24703 for ac_header in $NSAPI_INCLUDE/nsapi.h
24704 do
24705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24706 echo "$as_me:$LINENO: checking for $ac_header" >&5
24707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24709   echo $ECHO_N "(cached) $ECHO_C" >&6
24710 else
24711   cat >conftest.$ac_ext <<_ACEOF
24712 /* confdefs.h.  */
24713 _ACEOF
24714 cat confdefs.h >>conftest.$ac_ext
24715 cat >>conftest.$ac_ext <<_ACEOF
24716 /* end confdefs.h.  */
24717 #define XP_UNIX
24718
24719 #include <$ac_header>
24720 _ACEOF
24721 rm -f conftest.$ac_objext
24722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24723   (eval $ac_compile) 2>conftest.er1
24724   ac_status=$?
24725   grep -v '^ *+' conftest.er1 >conftest.err
24726   rm -f conftest.er1
24727   cat conftest.err >&5
24728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729   (exit $ac_status); } &&
24730          { ac_try='test -z "$ac_cxx_werror_flag"
24731                          || test ! -s conftest.err'
24732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24733   (eval $ac_try) 2>&5
24734   ac_status=$?
24735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736   (exit $ac_status); }; } &&
24737          { ac_try='test -s conftest.$ac_objext'
24738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24739   (eval $ac_try) 2>&5
24740   ac_status=$?
24741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742   (exit $ac_status); }; }; then
24743   eval "$as_ac_Header=yes"
24744 else
24745   echo "$as_me: failed program was:" >&5
24746 sed 's/^/| /' conftest.$ac_ext >&5
24747
24748 eval "$as_ac_Header=no"
24749 fi
24750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24751 fi
24752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24755   cat >>confdefs.h <<_ACEOF
24756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24757 _ACEOF
24758
24759 fi
24760
24761 done
24762
24763     NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
24764   fi
24765   if test -d $WANT_NSAPI/plugins/include ; then
24766     test -n "$NSAPI_INCLUDE" && NSAPI_INC_DIR="-I$NSAPI_INCLUDE"
24767     NSAPI_INCLUDE="$WANT_NSAPI/plugins/include"
24768     echo "$as_me:$LINENO: result: iPlanet 4.x / SunONE 6.x style" >&5
24769 echo "${ECHO_T}iPlanet 4.x / SunONE 6.x style" >&6
24770
24771 for ac_header in $NSAPI_INCLUDE/nsapi.h
24772 do
24773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24774 echo "$as_me:$LINENO: checking for $ac_header" >&5
24775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24777   echo $ECHO_N "(cached) $ECHO_C" >&6
24778 else
24779   cat >conftest.$ac_ext <<_ACEOF
24780 /* confdefs.h.  */
24781 _ACEOF
24782 cat confdefs.h >>conftest.$ac_ext
24783 cat >>conftest.$ac_ext <<_ACEOF
24784 /* end confdefs.h.  */
24785 #define XP_UNIX
24786
24787 #include <$ac_header>
24788 _ACEOF
24789 rm -f conftest.$ac_objext
24790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24791   (eval $ac_compile) 2>conftest.er1
24792   ac_status=$?
24793   grep -v '^ *+' conftest.er1 >conftest.err
24794   rm -f conftest.er1
24795   cat conftest.err >&5
24796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797   (exit $ac_status); } &&
24798          { ac_try='test -z "$ac_cxx_werror_flag"
24799                          || test ! -s conftest.err'
24800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24801   (eval $ac_try) 2>&5
24802   ac_status=$?
24803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804   (exit $ac_status); }; } &&
24805          { ac_try='test -s conftest.$ac_objext'
24806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24807   (eval $ac_try) 2>&5
24808   ac_status=$?
24809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810   (exit $ac_status); }; }; then
24811   eval "$as_ac_Header=yes"
24812 else
24813   echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24815
24816 eval "$as_ac_Header=no"
24817 fi
24818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24819 fi
24820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24823   cat >>confdefs.h <<_ACEOF
24824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24825 _ACEOF
24826
24827 fi
24828
24829 done
24830
24831     NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
24832   fi
24833   if test "$NSAPI_INCLUDE" = ""; then
24834     { { echo "$as_me:$LINENO: error: Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" >&5
24835 echo "$as_me: error: Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" >&2;}
24836    { (exit 1); exit 1; }; }
24837   fi
24838 fi
24839
24840
24841
24842 # always output the Makefile, even if you don't use it
24843           ac_config_files="$ac_config_files nsapi_shib/Makefile"
24844
24845
24846
24847 if test ! "$WANT_NSAPI" = "no"; then
24848   BUILD_NSAPI_TRUE=
24849   BUILD_NSAPI_FALSE='#'
24850 else
24851   BUILD_NSAPI_TRUE='#'
24852   BUILD_NSAPI_FALSE=
24853 fi
24854
24855
24856 # add the NSAPI module to the list of wanted subdirs..
24857 if test ! "$WANT_NSAPI" = "no" ; then
24858     WANT_SUBDIRS="$WANT_SUBDIRS nsapi_shib"
24859 fi
24860
24861
24862 #
24863 # Build FastCGI support?
24864 #
24865 echo "$as_me:$LINENO: checking for FastCGI support" >&5
24866 echo $ECHO_N "checking for FastCGI support... $ECHO_C" >&6
24867
24868 # Check whether --with-fastcgi or --without-fastcgi was given.
24869 if test "${with_fastcgi+set}" = set; then
24870   withval="$with_fastcgi"
24871   WANT_FASTCGI=$withval
24872 else
24873   WANT_FASTCGI=no
24874 fi;
24875 echo "$as_me:$LINENO: result: $WANT_FASTCGI" >&5
24876 echo "${ECHO_T}$WANT_FASTCGI" >&6
24877
24878 if test "$WANT_FASTCGI" != "no"; then
24879     if test "$WANT_FASTCGI" != "yes"; then
24880         if test x_$WANT_FASTCGI != x_/usr; then
24881             FASTCGI_INCLUDE="-I$WANT_FASTCGI/include"
24882             FASTCGI_LDFLAGS="-L$WANT_FASTCGI/lib"
24883         fi
24884     fi
24885     if test "${ac_cv_header_fcgio_h+set}" = set; then
24886   echo "$as_me:$LINENO: checking for fcgio.h" >&5
24887 echo $ECHO_N "checking for fcgio.h... $ECHO_C" >&6
24888 if test "${ac_cv_header_fcgio_h+set}" = set; then
24889   echo $ECHO_N "(cached) $ECHO_C" >&6
24890 fi
24891 echo "$as_me:$LINENO: result: $ac_cv_header_fcgio_h" >&5
24892 echo "${ECHO_T}$ac_cv_header_fcgio_h" >&6
24893 else
24894   # Is the header compilable?
24895 echo "$as_me:$LINENO: checking fcgio.h usability" >&5
24896 echo $ECHO_N "checking fcgio.h usability... $ECHO_C" >&6
24897 cat >conftest.$ac_ext <<_ACEOF
24898 /* confdefs.h.  */
24899 _ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h.  */
24903 $ac_includes_default
24904 #include <fcgio.h>
24905 _ACEOF
24906 rm -f conftest.$ac_objext
24907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24908   (eval $ac_compile) 2>conftest.er1
24909   ac_status=$?
24910   grep -v '^ *+' conftest.er1 >conftest.err
24911   rm -f conftest.er1
24912   cat conftest.err >&5
24913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914   (exit $ac_status); } &&
24915          { ac_try='test -z "$ac_cxx_werror_flag"
24916                          || test ! -s conftest.err'
24917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918   (eval $ac_try) 2>&5
24919   ac_status=$?
24920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921   (exit $ac_status); }; } &&
24922          { ac_try='test -s conftest.$ac_objext'
24923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24924   (eval $ac_try) 2>&5
24925   ac_status=$?
24926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927   (exit $ac_status); }; }; then
24928   ac_header_compiler=yes
24929 else
24930   echo "$as_me: failed program was:" >&5
24931 sed 's/^/| /' conftest.$ac_ext >&5
24932
24933 ac_header_compiler=no
24934 fi
24935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24937 echo "${ECHO_T}$ac_header_compiler" >&6
24938
24939 # Is the header present?
24940 echo "$as_me:$LINENO: checking fcgio.h presence" >&5
24941 echo $ECHO_N "checking fcgio.h presence... $ECHO_C" >&6
24942 cat >conftest.$ac_ext <<_ACEOF
24943 /* confdefs.h.  */
24944 _ACEOF
24945 cat confdefs.h >>conftest.$ac_ext
24946 cat >>conftest.$ac_ext <<_ACEOF
24947 /* end confdefs.h.  */
24948 #include <fcgio.h>
24949 _ACEOF
24950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24952   ac_status=$?
24953   grep -v '^ *+' conftest.er1 >conftest.err
24954   rm -f conftest.er1
24955   cat conftest.err >&5
24956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957   (exit $ac_status); } >/dev/null; then
24958   if test -s conftest.err; then
24959     ac_cpp_err=$ac_cxx_preproc_warn_flag
24960     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24961   else
24962     ac_cpp_err=
24963   fi
24964 else
24965   ac_cpp_err=yes
24966 fi
24967 if test -z "$ac_cpp_err"; then
24968   ac_header_preproc=yes
24969 else
24970   echo "$as_me: failed program was:" >&5
24971 sed 's/^/| /' conftest.$ac_ext >&5
24972
24973   ac_header_preproc=no
24974 fi
24975 rm -f conftest.err conftest.$ac_ext
24976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24977 echo "${ECHO_T}$ac_header_preproc" >&6
24978
24979 # So?  What about this header?
24980 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24981   yes:no: )
24982     { echo "$as_me:$LINENO: WARNING: fcgio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24983 echo "$as_me: WARNING: fcgio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24984     { echo "$as_me:$LINENO: WARNING: fcgio.h: proceeding with the compiler's result" >&5
24985 echo "$as_me: WARNING: fcgio.h: proceeding with the compiler's result" >&2;}
24986     ac_header_preproc=yes
24987     ;;
24988   no:yes:* )
24989     { echo "$as_me:$LINENO: WARNING: fcgio.h: present but cannot be compiled" >&5
24990 echo "$as_me: WARNING: fcgio.h: present but cannot be compiled" >&2;}
24991     { echo "$as_me:$LINENO: WARNING: fcgio.h:     check for missing prerequisite headers?" >&5
24992 echo "$as_me: WARNING: fcgio.h:     check for missing prerequisite headers?" >&2;}
24993     { echo "$as_me:$LINENO: WARNING: fcgio.h: see the Autoconf documentation" >&5
24994 echo "$as_me: WARNING: fcgio.h: see the Autoconf documentation" >&2;}
24995     { echo "$as_me:$LINENO: WARNING: fcgio.h:     section \"Present But Cannot Be Compiled\"" >&5
24996 echo "$as_me: WARNING: fcgio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24997     { echo "$as_me:$LINENO: WARNING: fcgio.h: proceeding with the preprocessor's result" >&5
24998 echo "$as_me: WARNING: fcgio.h: proceeding with the preprocessor's result" >&2;}
24999     { echo "$as_me:$LINENO: WARNING: fcgio.h: in the future, the compiler will take precedence" >&5
25000 echo "$as_me: WARNING: fcgio.h: in the future, the compiler will take precedence" >&2;}
25001     (
25002       cat <<\_ASBOX
25003 ## --------------------------------------------- ##
25004 ## Report this to shibboleth-users@internet2.edu ##
25005 ## --------------------------------------------- ##
25006 _ASBOX
25007     ) |
25008       sed "s/^/$as_me: WARNING:     /" >&2
25009     ;;
25010 esac
25011 echo "$as_me:$LINENO: checking for fcgio.h" >&5
25012 echo $ECHO_N "checking for fcgio.h... $ECHO_C" >&6
25013 if test "${ac_cv_header_fcgio_h+set}" = set; then
25014   echo $ECHO_N "(cached) $ECHO_C" >&6
25015 else
25016   ac_cv_header_fcgio_h=$ac_header_preproc
25017 fi
25018 echo "$as_me:$LINENO: result: $ac_cv_header_fcgio_h" >&5
25019 echo "${ECHO_T}$ac_cv_header_fcgio_h" >&6
25020
25021 fi
25022 if test $ac_cv_header_fcgio_h = yes; then
25023   :
25024 else
25025   { { echo "$as_me:$LINENO: error: unable to find FastCGI header files" >&5
25026 echo "$as_me: error: unable to find FastCGI header files" >&2;}
25027    { (exit 1); exit 1; }; }
25028 fi
25029
25030
25031     FASTCGI_LIBS="-lfcgi -lfcgi++"
25032 fi
25033
25034
25035
25036
25037
25038 # always output the Makefile, even if you don't use it
25039           ac_config_files="$ac_config_files fastcgi/Makefile"
25040
25041
25042
25043 if test ! "$WANT_FASTCGI" = "no"; then
25044   BUILD_FASTCGI_TRUE=
25045   BUILD_FASTCGI_FALSE='#'
25046 else
25047   BUILD_FASTCGI_TRUE='#'
25048   BUILD_FASTCGI_FALSE=
25049 fi
25050
25051
25052 if test ! "$WANT_FASTCGI" = "no" ; then
25053     WANT_SUBDIRS="$WANT_SUBDIRS fastcgi"
25054 fi
25055
25056 #
25057 # Build Memcached support?
25058 #
25059 echo "$as_me:$LINENO: checking for Memcached support" >&5
25060 echo $ECHO_N "checking for Memcached support... $ECHO_C" >&6
25061
25062 # Check whether --with-memcached or --without-memcached was given.
25063 if test "${with_memcached+set}" = set; then
25064   withval="$with_memcached"
25065   WANT_MEMCACHED=$withval
25066 else
25067   WANT_MEMCACHED=no
25068 fi;
25069 echo "$as_me:$LINENO: result: $WANT_MEMCACHED" >&5
25070 echo "${ECHO_T}$WANT_MEMCACHED" >&6
25071
25072 if test "$WANT_MEMCACHED" != "no"; then
25073     if test "$WANT_MEMCACHED" != "yes"; then
25074         if test x_$WANT_MEMCACHED != x_/usr; then
25075             MEMCACHED_INCLUDE="-I$WANT_MEMCACHED/include"
25076             MEMCACHED_LDFLAGS="-L$WANT_MEMCACHED/lib"
25077         fi
25078     fi
25079     if test "${ac_cv_header_libmemcached_memcached_h+set}" = set; then
25080   echo "$as_me:$LINENO: checking for libmemcached/memcached.h" >&5
25081 echo $ECHO_N "checking for libmemcached/memcached.h... $ECHO_C" >&6
25082 if test "${ac_cv_header_libmemcached_memcached_h+set}" = set; then
25083   echo $ECHO_N "(cached) $ECHO_C" >&6
25084 fi
25085 echo "$as_me:$LINENO: result: $ac_cv_header_libmemcached_memcached_h" >&5
25086 echo "${ECHO_T}$ac_cv_header_libmemcached_memcached_h" >&6
25087 else
25088   # Is the header compilable?
25089 echo "$as_me:$LINENO: checking libmemcached/memcached.h usability" >&5
25090 echo $ECHO_N "checking libmemcached/memcached.h usability... $ECHO_C" >&6
25091 cat >conftest.$ac_ext <<_ACEOF
25092 /* confdefs.h.  */
25093 _ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h.  */
25097 $ac_includes_default
25098 #include <libmemcached/memcached.h>
25099 _ACEOF
25100 rm -f conftest.$ac_objext
25101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25102   (eval $ac_compile) 2>conftest.er1
25103   ac_status=$?
25104   grep -v '^ *+' conftest.er1 >conftest.err
25105   rm -f conftest.er1
25106   cat conftest.err >&5
25107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108   (exit $ac_status); } &&
25109          { ac_try='test -z "$ac_cxx_werror_flag"
25110                          || test ! -s conftest.err'
25111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25112   (eval $ac_try) 2>&5
25113   ac_status=$?
25114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115   (exit $ac_status); }; } &&
25116          { ac_try='test -s conftest.$ac_objext'
25117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25118   (eval $ac_try) 2>&5
25119   ac_status=$?
25120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121   (exit $ac_status); }; }; then
25122   ac_header_compiler=yes
25123 else
25124   echo "$as_me: failed program was:" >&5
25125 sed 's/^/| /' conftest.$ac_ext >&5
25126
25127 ac_header_compiler=no
25128 fi
25129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25131 echo "${ECHO_T}$ac_header_compiler" >&6
25132
25133 # Is the header present?
25134 echo "$as_me:$LINENO: checking libmemcached/memcached.h presence" >&5
25135 echo $ECHO_N "checking libmemcached/memcached.h presence... $ECHO_C" >&6
25136 cat >conftest.$ac_ext <<_ACEOF
25137 /* confdefs.h.  */
25138 _ACEOF
25139 cat confdefs.h >>conftest.$ac_ext
25140 cat >>conftest.$ac_ext <<_ACEOF
25141 /* end confdefs.h.  */
25142 #include <libmemcached/memcached.h>
25143 _ACEOF
25144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25146   ac_status=$?
25147   grep -v '^ *+' conftest.er1 >conftest.err
25148   rm -f conftest.er1
25149   cat conftest.err >&5
25150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151   (exit $ac_status); } >/dev/null; then
25152   if test -s conftest.err; then
25153     ac_cpp_err=$ac_cxx_preproc_warn_flag
25154     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25155   else
25156     ac_cpp_err=
25157   fi
25158 else
25159   ac_cpp_err=yes
25160 fi
25161 if test -z "$ac_cpp_err"; then
25162   ac_header_preproc=yes
25163 else
25164   echo "$as_me: failed program was:" >&5
25165 sed 's/^/| /' conftest.$ac_ext >&5
25166
25167   ac_header_preproc=no
25168 fi
25169 rm -f conftest.err conftest.$ac_ext
25170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25171 echo "${ECHO_T}$ac_header_preproc" >&6
25172
25173 # So?  What about this header?
25174 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25175   yes:no: )
25176     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: accepted by the compiler, rejected by the preprocessor!" >&5
25177 echo "$as_me: WARNING: libmemcached/memcached.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25178     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: proceeding with the compiler's result" >&5
25179 echo "$as_me: WARNING: libmemcached/memcached.h: proceeding with the compiler's result" >&2;}
25180     ac_header_preproc=yes
25181     ;;
25182   no:yes:* )
25183     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: present but cannot be compiled" >&5
25184 echo "$as_me: WARNING: libmemcached/memcached.h: present but cannot be compiled" >&2;}
25185     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h:     check for missing prerequisite headers?" >&5
25186 echo "$as_me: WARNING: libmemcached/memcached.h:     check for missing prerequisite headers?" >&2;}
25187     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: see the Autoconf documentation" >&5
25188 echo "$as_me: WARNING: libmemcached/memcached.h: see the Autoconf documentation" >&2;}
25189     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h:     section \"Present But Cannot Be Compiled\"" >&5
25190 echo "$as_me: WARNING: libmemcached/memcached.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25191     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: proceeding with the preprocessor's result" >&5
25192 echo "$as_me: WARNING: libmemcached/memcached.h: proceeding with the preprocessor's result" >&2;}
25193     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: in the future, the compiler will take precedence" >&5
25194 echo "$as_me: WARNING: libmemcached/memcached.h: in the future, the compiler will take precedence" >&2;}
25195     (
25196       cat <<\_ASBOX
25197 ## --------------------------------------------- ##
25198 ## Report this to shibboleth-users@internet2.edu ##
25199 ## --------------------------------------------- ##
25200 _ASBOX
25201     ) |
25202       sed "s/^/$as_me: WARNING:     /" >&2
25203     ;;
25204 esac
25205 echo "$as_me:$LINENO: checking for libmemcached/memcached.h" >&5
25206 echo $ECHO_N "checking for libmemcached/memcached.h... $ECHO_C" >&6
25207 if test "${ac_cv_header_libmemcached_memcached_h+set}" = set; then
25208   echo $ECHO_N "(cached) $ECHO_C" >&6
25209 else
25210   ac_cv_header_libmemcached_memcached_h=$ac_header_preproc
25211 fi
25212 echo "$as_me:$LINENO: result: $ac_cv_header_libmemcached_memcached_h" >&5
25213 echo "${ECHO_T}$ac_cv_header_libmemcached_memcached_h" >&6
25214
25215 fi
25216 if test $ac_cv_header_libmemcached_memcached_h = yes; then
25217   :
25218 else
25219   { { echo "$as_me:$LINENO: error: unable to find Memcached header files" >&5
25220 echo "$as_me: error: unable to find Memcached header files" >&2;}
25221    { (exit 1); exit 1; }; }
25222 fi
25223
25224
25225     MEMCACHED_LIBS="-lmemcached"
25226 fi
25227
25228
25229
25230
25231
25232 # always output the Makefile, even if you don't use it
25233           ac_config_files="$ac_config_files memcache-store/Makefile"
25234
25235
25236
25237 if test ! "$WANT_MEMCACHED" = "no"; then
25238   BUILD_MEMCACHED_TRUE=
25239   BUILD_MEMCACHED_FALSE='#'
25240 else
25241   BUILD_MEMCACHED_TRUE='#'
25242   BUILD_MEMCACHED_FALSE=
25243 fi
25244
25245
25246 if test ! "$WANT_MEMCACHED" = "no" ; then
25247     WANT_SUBDIRS="$WANT_SUBDIRS memcache-store"
25248 fi
25249
25250
25251 #
25252 # If no --enable-apache-xx specified
25253 # find a default and fake the specific parameters
25254 #
25255
25256 # simple macro to peek at an enable or a with
25257
25258
25259 echo "$as_me:$LINENO: checking if default apache needed" >&5
25260 echo $ECHO_N "checking if default apache needed... $ECHO_C" >&6
25261 need_default=yes
25262 if test "${enable_apache_13+set}" = set; then
25263   peekval="${enable_apache_13}"
25264   need_default=no
25265 fi;
25266 if test "${enable_apache_20+set}" = set; then
25267   peekval="${enable_apache_20}"
25268   need_default=no
25269 fi;
25270 if test "${enable_apache_22+set}" = set; then
25271   peekval="${enable_apache_22}"
25272   need_default=no
25273 fi;
25274 echo "$as_me:$LINENO: result: $need_default" >&5
25275 echo "${ECHO_T}$need_default" >&6
25276
25277 if test "$need_default" = "yes"; then
25278   # find an apxs, then the httpd
25279   xs=
25280   if test "${with_apxs+set}" = set; then
25281   peekval="${with_apxs}"
25282   xs="$peekval"
25283 fi;
25284   if test "${with_apxs2+set}" = set; then
25285   peekval="${with_apxs2}"
25286   xs="$peekval"
25287 fi;
25288   if test "${with_apxs22+set}" = set; then
25289   peekval="${with_apxs22}"
25290   xs="$peekval"
25291 fi;
25292   if test "x$xs" = "x"; then
25293      for ac_prog in apxs2 apxs
25294 do
25295   # Extract the first word of "$ac_prog", so it can be a program name with args.
25296 set dummy $ac_prog; ac_word=$2
25297 echo "$as_me:$LINENO: checking for $ac_word" >&5
25298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25299 if test "${ac_cv_path_xs+set}" = set; then
25300   echo $ECHO_N "(cached) $ECHO_C" >&6
25301 else
25302   case $xs in
25303   [\\/]* | ?:[\\/]*)
25304   ac_cv_path_xs="$xs" # Let the user override the test with a path.
25305   ;;
25306   *)
25307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25308 as_dummy="/usr/local/apache2/bin:/usr/local/apache/bin:/usr/sbin:$PATH"
25309 for as_dir in $as_dummy
25310 do
25311   IFS=$as_save_IFS
25312   test -z "$as_dir" && as_dir=.
25313   for ac_exec_ext in '' $ac_executable_extensions; do
25314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25315     ac_cv_path_xs="$as_dir/$ac_word$ac_exec_ext"
25316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25317     break 2
25318   fi
25319 done
25320 done
25321
25322   ;;
25323 esac
25324 fi
25325 xs=$ac_cv_path_xs
25326
25327 if test -n "$xs"; then
25328   echo "$as_me:$LINENO: result: $xs" >&5
25329 echo "${ECHO_T}$xs" >&6
25330 else
25331   echo "$as_me:$LINENO: result: no" >&5
25332 echo "${ECHO_T}no" >&6
25333 fi
25334
25335   test -n "$xs" && break
25336 done
25337 test -n "$xs" || xs="{ { echo "$as_me:$LINENO: error: No apxs" >&5
25338 echo "$as_me: error: No apxs" >&2;}
25339    { (exit no apache found.  Try --with-apxs); exit no apache found.  Try --with-apxs; }; }"
25340
25341   fi
25342   # ask the daemon for the version and set parameters
25343   echo "$as_me:$LINENO: checking default apache version" >&5
25344 echo $ECHO_N "checking default apache version... $ECHO_C" >&6
25345   httpd="`$xs -q SBINDIR`/`$xs -q TARGET`"
25346   if test "x$httpd" != "x" && test -f $httpd ; then
25347      v=`$httpd -v|$SED -n -e 's/.*Apache\/\.*//p'`
25348      case $v in
25349        1.3*)   enable_apache_13=yes
25350                with_apxs=$xs
25351                echo "$as_me:$LINENO: result: 1.3" >&5
25352 echo "${ECHO_T}1.3" >&6
25353                ;;
25354        2.0*)   enable_apache_20=yes
25355                with_apxs2=$xs
25356                echo "$as_me:$LINENO: result: 2.0" >&5
25357 echo "${ECHO_T}2.0" >&6
25358                ;;
25359        2.2*)   enable_apache_22=yes
25360                with_apxs22=$xs
25361                echo "$as_me:$LINENO: result: 2.2" >&5
25362 echo "${ECHO_T}2.2" >&6
25363                ;;
25364        *)      { { echo "$as_me:$LINENO: error: unusable apache versions: $v. Try setting --with-apxs" >&5
25365 echo "$as_me: error: unusable apache versions: $v. Try setting --with-apxs" >&2;}
25366    { (exit 1); exit 1; }; }
25367      esac
25368   else
25369      echo "$as_me:$LINENO: result: cannot determine version.  Try setting --with-apxs" >&5
25370 echo "${ECHO_T}cannot determine version.  Try setting --with-apxs" >&6
25371   fi
25372 fi
25373
25374 # Apache 1.3 (mod_shib_13)
25375 #   --enable-apache-13
25376 #   --with-apxs      (DSO build, the normal way, uses apxs to derive build flags)
25377
25378 # Check whether --enable-apache-13 or --disable-apache-13 was given.
25379 if test "${enable_apache_13+set}" = set; then
25380   enableval="$enable_apache_13"
25381    if test "x$enableval" = "x" ; then
25382               WANT_APACHE_13=yes
25383           else
25384               WANT_APACHE_13="$enableval"
25385           fi
25386
25387 else
25388    WANT_APACHE_13=no
25389 fi;
25390 echo "$as_me:$LINENO: checking whether to build Apache 1.3 module" >&5
25391 echo $ECHO_N "checking whether to build Apache 1.3 module... $ECHO_C" >&6
25392 if test "$WANT_APACHE_13" != yes && test "$WANT_APACHE_13" != no ; then
25393    WANT_APACHE_13=yes
25394 fi
25395 echo "$as_me:$LINENO: result: $WANT_APACHE_13" >&5
25396 echo "${ECHO_T}$WANT_APACHE_13" >&6
25397
25398 if test "$WANT_APACHE_13" = "yes" ; then
25399
25400 # Check whether --with-apxs or --without-apxs was given.
25401 if test "${with_apxs+set}" = set; then
25402   withval="$with_apxs"
25403
25404         echo "$as_me:$LINENO: checking for user-specified apxs name/location" >&5
25405 echo $ECHO_N "checking for user-specified apxs name/location... $ECHO_C" >&6
25406         if test "$withval" != "no" ; then
25407           if test "$withval" != "yes"; then
25408             APXS=$withval
25409             echo "$as_me:$LINENO: result: \"$withval\"" >&5
25410 echo "${ECHO_T}\"$withval\"" >&6
25411           fi
25412         fi
25413
25414 else
25415
25416         # Extract the first word of "apxs", so it can be a program name with args.
25417 set dummy apxs; ac_word=$2
25418 echo "$as_me:$LINENO: checking for $ac_word" >&5
25419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25420 if test "${ac_cv_path_APXS+set}" = set; then
25421   echo $ECHO_N "(cached) $ECHO_C" >&6
25422 else
25423   case $APXS in
25424   [\\/]* | ?:[\\/]*)
25425   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
25426   ;;
25427   *)
25428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25429 for as_dir in $PATH
25430 do
25431   IFS=$as_save_IFS
25432   test -z "$as_dir" && as_dir=.
25433   for ac_exec_ext in '' $ac_executable_extensions; do
25434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25435     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
25436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25437     break 2
25438   fi
25439 done
25440 done
25441
25442   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
25443   ;;
25444 esac
25445 fi
25446 APXS=$ac_cv_path_APXS
25447
25448 if test -n "$APXS"; then
25449   echo "$as_me:$LINENO: result: $APXS" >&5
25450 echo "${ECHO_T}$APXS" >&6
25451 else
25452   echo "$as_me:$LINENO: result: no" >&5
25453 echo "${ECHO_T}no" >&6
25454 fi
25455
25456         if test "$APXS" = "no" ; then
25457           for i in /usr/sbin /usr/local/apache/bin ; do
25458             if test "$APXS" = "no" && test -f "$i/apxs"; then
25459               APXS="$i/apxs"
25460             fi
25461           done
25462         fi
25463
25464 fi;
25465
25466     echo "$as_me:$LINENO: checking to see if apxs was located" >&5
25467 echo $ECHO_N "checking to see if apxs was located... $ECHO_C" >&6
25468     if test ! -f "$APXS" ; then
25469         echo "$as_me:$LINENO: result: no" >&5
25470 echo "${ECHO_T}no" >&6
25471         { { echo "$as_me:$LINENO: error: Unable to locate apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs option." >&5
25472 echo "$as_me: error: Unable to locate apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs option." >&2;}
25473    { (exit 1); exit 1; }; }
25474     fi
25475     echo "$as_me:$LINENO: result: $APXS" >&5
25476 echo "${ECHO_T}$APXS" >&6
25477
25478
25479     # extract settings we need from APXS -q
25480     APXS_CC="`$APXS -q CC`"
25481     APXS_CFLAGS="`$APXS -q CFLAGS` `$APXS -q CFLAGS_SHLIB`"
25482     APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
25483 fi
25484
25485
25486
25487
25488
25489 # Apache 2.0 (mod_shib_20)
25490 #   --enable-apache-20
25491 #   --with-apxs2      (DSO build, the normal way, uses apxs to derive build flags)
25492 #       --with-apr        (DSO build, APR development package installed separately)
25493 #   --with-apu        (DSO build, APR-UTIL development package installed separately)
25494
25495 # Check whether --enable-apache-20 or --disable-apache-20 was given.
25496 if test "${enable_apache_20+set}" = set; then
25497   enableval="$enable_apache_20"
25498    if test "x$enableval" = "x" ; then
25499               WANT_APACHE_20=yes
25500           else
25501               WANT_APACHE_20="$enableval"
25502           fi
25503
25504 else
25505    WANT_APACHE_20=no
25506 fi;
25507 echo "$as_me:$LINENO: checking whether to build Apache 2.0 module" >&5
25508 echo $ECHO_N "checking whether to build Apache 2.0 module... $ECHO_C" >&6
25509 if test "$WANT_APACHE_20" != yes && test "$WANT_APACHE_20" != no ; then
25510    WANT_APACHE_20=yes
25511 fi
25512 echo "$as_me:$LINENO: result: $WANT_APACHE_20" >&5
25513 echo "${ECHO_T}$WANT_APACHE_20" >&6
25514
25515 if test "$WANT_APACHE_20" = "yes" ; then
25516
25517 # Check whether --with-apxs2 or --without-apxs2 was given.
25518 if test "${with_apxs2+set}" = set; then
25519   withval="$with_apxs2"
25520
25521         echo "$as_me:$LINENO: checking for user-specified Apache2 apxs name/location" >&5
25522 echo $ECHO_N "checking for user-specified Apache2 apxs name/location... $ECHO_C" >&6
25523         if test "$withval" != "no" ; then
25524           if test "$withval" != "yes"; then
25525             APXS2=$withval
25526             echo "$as_me:$LINENO: result: \"$withval\"" >&5
25527 echo "${ECHO_T}\"$withval\"" >&6
25528           fi
25529         fi
25530
25531 else
25532
25533         # Extract the first word of "apxs2", so it can be a program name with args.
25534 set dummy apxs2; ac_word=$2
25535 echo "$as_me:$LINENO: checking for $ac_word" >&5
25536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25537 if test "${ac_cv_path_APXS2+set}" = set; then
25538   echo $ECHO_N "(cached) $ECHO_C" >&6
25539 else
25540   case $APXS2 in
25541   [\\/]* | ?:[\\/]*)
25542   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
25543   ;;
25544   *)
25545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25546 for as_dir in $PATH
25547 do
25548   IFS=$as_save_IFS
25549   test -z "$as_dir" && as_dir=.
25550   for ac_exec_ext in '' $ac_executable_extensions; do
25551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25552     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
25553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25554     break 2
25555   fi
25556 done
25557 done
25558
25559   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
25560   ;;
25561 esac
25562 fi
25563 APXS2=$ac_cv_path_APXS2
25564
25565 if test -n "$APXS2"; then
25566   echo "$as_me:$LINENO: result: $APXS2" >&5
25567 echo "${ECHO_T}$APXS2" >&6
25568 else
25569   echo "$as_me:$LINENO: result: no" >&5
25570 echo "${ECHO_T}no" >&6
25571 fi
25572
25573         if test "$APXS2" = "no" ; then
25574             # Extract the first word of "apxs", so it can be a program name with args.
25575 set dummy apxs; ac_word=$2
25576 echo "$as_me:$LINENO: checking for $ac_word" >&5
25577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25578 if test "${ac_cv_path_APXS2+set}" = set; then
25579   echo $ECHO_N "(cached) $ECHO_C" >&6
25580 else
25581   case $APXS2 in
25582   [\\/]* | ?:[\\/]*)
25583   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
25584   ;;
25585   *)
25586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25587 for as_dir in $PATH
25588 do
25589   IFS=$as_save_IFS
25590   test -z "$as_dir" && as_dir=.
25591   for ac_exec_ext in '' $ac_executable_extensions; do
25592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25593     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
25594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25595     break 2
25596   fi
25597 done
25598 done
25599
25600   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
25601   ;;
25602 esac
25603 fi
25604 APXS2=$ac_cv_path_APXS2
25605
25606 if test -n "$APXS2"; then
25607   echo "$as_me:$LINENO: result: $APXS2" >&5
25608 echo "${ECHO_T}$APXS2" >&6
25609 else
25610   echo "$as_me:$LINENO: result: no" >&5
25611 echo "${ECHO_T}no" >&6
25612 fi
25613
25614         fi
25615         if test "$APXS2" = "no" ; then
25616           for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25617             if test "$APXS2" = "no" && test -f "$i/apxs2" ; then
25618               APXS2="$i/apxs2"
25619             fi
25620           done
25621           if test "$APXS2" = "no" ; then
25622             for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25623               if test "$APXS2" = "no" && test -f "$i/apxs" ; then
25624                 APXS2="$i/apxs"
25625               fi
25626             done
25627           fi
25628         fi
25629
25630 fi;
25631
25632     echo "$as_me:$LINENO: checking to see if Apache2 apxs was located" >&5
25633 echo $ECHO_N "checking to see if Apache2 apxs was located... $ECHO_C" >&6
25634     if test ! -f "$APXS2" ; then
25635         echo "$as_me:$LINENO: result: no" >&5
25636 echo "${ECHO_T}no" >&6
25637         { { echo "$as_me:$LINENO: error: Unable to locate Apache2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs2 option." >&5
25638 echo "$as_me: error: Unable to locate Apache2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs2 option." >&2;}
25639    { (exit 1); exit 1; }; }
25640     fi
25641     echo "$as_me:$LINENO: result: $APXS2" >&5
25642 echo "${ECHO_T}$APXS2" >&6
25643
25644
25645     # APR settings
25646
25647 # Check whether --with-apr or --without-apr was given.
25648 if test "${with_apr+set}" = set; then
25649   withval="$with_apr"
25650
25651         echo "$as_me:$LINENO: checking for user-specified apr-config name/location" >&5
25652 echo $ECHO_N "checking for user-specified apr-config name/location... $ECHO_C" >&6
25653         if test "$withval" != "no" ; then
25654             if test "$withval" != "yes"; then
25655                 APR_CONFIG=$withval
25656                 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25657 echo "${ECHO_T}\"$withval\"" >&6
25658             fi
25659         fi
25660
25661 else
25662
25663         # Extract the first word of "apr-config", so it can be a program name with args.
25664 set dummy apr-config; ac_word=$2
25665 echo "$as_me:$LINENO: checking for $ac_word" >&5
25666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25667 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
25668   echo $ECHO_N "(cached) $ECHO_C" >&6
25669 else
25670   case $APR_CONFIG in
25671   [\\/]* | ?:[\\/]*)
25672   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
25673   ;;
25674   *)
25675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25676 as_dummy="`$APXS2 -q SBINDIR`:$PATH"
25677 for as_dir in $as_dummy
25678 do
25679   IFS=$as_save_IFS
25680   test -z "$as_dir" && as_dir=.
25681   for ac_exec_ext in '' $ac_executable_extensions; do
25682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25683     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25685     break 2
25686   fi
25687 done
25688 done
25689
25690   ;;
25691 esac
25692 fi
25693 APR_CONFIG=$ac_cv_path_APR_CONFIG
25694
25695 if test -n "$APR_CONFIG"; then
25696   echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
25697 echo "${ECHO_T}$APR_CONFIG" >&6
25698 else
25699   echo "$as_me:$LINENO: result: no" >&5
25700 echo "${ECHO_T}no" >&6
25701 fi
25702
25703
25704 fi;
25705         if test -f "${APR_CONFIG}"; then
25706         APR_CFLAGS="`${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags` `${APR_CONFIG} --includes`"
25707     else
25708         { { echo "$as_me:$LINENO: error: Unable to locate apr-config, may need --with-apr option." >&5
25709 echo "$as_me: error: Unable to locate apr-config, may need --with-apr option." >&2;}
25710    { (exit 1); exit 1; }; }
25711     fi
25712
25713     # APU settings
25714
25715 # Check whether --with-apu or --without-apu was given.
25716 if test "${with_apu+set}" = set; then
25717   withval="$with_apu"
25718
25719         echo "$as_me:$LINENO: checking for user-specified apu-config name/location" >&5
25720 echo $ECHO_N "checking for user-specified apu-config name/location... $ECHO_C" >&6
25721         if test "$withval" != "no" ; then
25722             if test "$withval" != "yes"; then
25723                 APR_CONFIG=$withval
25724                 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25725 echo "${ECHO_T}\"$withval\"" >&6
25726             fi
25727         fi
25728
25729 else
25730
25731         # Extract the first word of "apu-config", so it can be a program name with args.
25732 set dummy apu-config; ac_word=$2
25733 echo "$as_me:$LINENO: checking for $ac_word" >&5
25734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25735 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
25736   echo $ECHO_N "(cached) $ECHO_C" >&6
25737 else
25738   case $APU_CONFIG in
25739   [\\/]* | ?:[\\/]*)
25740   ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
25741   ;;
25742   *)
25743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25744 as_dummy="`$APXS2 -q SBINDIR`:$PATH"
25745 for as_dir in $as_dummy
25746 do
25747   IFS=$as_save_IFS
25748   test -z "$as_dir" && as_dir=.
25749   for ac_exec_ext in '' $ac_executable_extensions; do
25750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25751     ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25753     break 2
25754   fi
25755 done
25756 done
25757
25758   ;;
25759 esac
25760 fi
25761 APU_CONFIG=$ac_cv_path_APU_CONFIG
25762
25763 if test -n "$APU_CONFIG"; then
25764   echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
25765 echo "${ECHO_T}$APU_CONFIG" >&6
25766 else
25767   echo "$as_me:$LINENO: result: no" >&5
25768 echo "${ECHO_T}no" >&6
25769 fi
25770
25771
25772 fi;
25773     if test -f "${APU_CONFIG}"; then
25774         APU_CFLAGS="`${APU_CONFIG} --includes`"
25775     else
25776         { { echo "$as_me:$LINENO: error: Unable to locate apu-config, may need --with-apu option." >&5
25777 echo "$as_me: error: Unable to locate apu-config, may need --with-apu option." >&2;}
25778    { (exit 1); exit 1; }; }
25779     fi
25780
25781     # extract settings we need from APXS2 -q
25782     APXS2_CC="`$APXS2 -q CC`"
25783     APXS2_CFLAGS="`$APXS2 -q CPPFLAGS` `$APXS2 -q CFLAGS` $APU_CFLAGS"
25784     APXS2_INCLUDE="`$APXS2 -q INCLUDEDIR`"
25785 fi
25786
25787
25788
25789
25790
25791 # Apache 2.2 (mod_shib_22)
25792 #   --enable-apache-22
25793 #   --with-apxs22     (DSO build, the normal way, uses apxs to derive build flags)
25794 #       --with-apr1       (DSO build, APR development package installed separately)
25795 #   --with-apu1       (DSO build, APR-UTIL development package installed separately)
25796
25797 # Check whether --enable-apache-22 or --disable-apache-22 was given.
25798 if test "${enable_apache_22+set}" = set; then
25799   enableval="$enable_apache_22"
25800    if test "x$enableval" = "x" ; then
25801               WANT_APACHE_22=yes
25802           else
25803               WANT_APACHE_22="$enableval"
25804           fi
25805
25806 else
25807    WANT_APACHE_22=no
25808 fi;
25809 echo "$as_me:$LINENO: checking whether to build Apache 2.2 module" >&5
25810 echo $ECHO_N "checking whether to build Apache 2.2 module... $ECHO_C" >&6
25811 if test "$WANT_APACHE_22" != yes && test "$WANT_APACHE_22" != no ; then
25812    WANT_APACHE_22=yes
25813 fi
25814 echo "$as_me:$LINENO: result: $WANT_APACHE_22" >&5
25815 echo "${ECHO_T}$WANT_APACHE_22" >&6
25816
25817 if test "$WANT_APACHE_22" = "yes" ; then
25818
25819 # Check whether --with-apxs22 or --without-apxs22 was given.
25820 if test "${with_apxs22+set}" = set; then
25821   withval="$with_apxs22"
25822
25823         echo "$as_me:$LINENO: checking for user-specified Apache2.2 apxs name/location" >&5
25824 echo $ECHO_N "checking for user-specified Apache2.2 apxs name/location... $ECHO_C" >&6
25825         if test "$withval" != "no" ; then
25826           if test "$withval" != "yes"; then
25827             APXS22=$withval
25828             echo "$as_me:$LINENO: result: \"$withval\"" >&5
25829 echo "${ECHO_T}\"$withval\"" >&6
25830           fi
25831         fi
25832
25833 else
25834
25835         # Extract the first word of "apxs2", so it can be a program name with args.
25836 set dummy apxs2; ac_word=$2
25837 echo "$as_me:$LINENO: checking for $ac_word" >&5
25838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25839 if test "${ac_cv_path_APXS22+set}" = set; then
25840   echo $ECHO_N "(cached) $ECHO_C" >&6
25841 else
25842   case $APXS22 in
25843   [\\/]* | ?:[\\/]*)
25844   ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
25845   ;;
25846   *)
25847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25848 for as_dir in $PATH
25849 do
25850   IFS=$as_save_IFS
25851   test -z "$as_dir" && as_dir=.
25852   for ac_exec_ext in '' $ac_executable_extensions; do
25853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25854     ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
25855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25856     break 2
25857   fi
25858 done
25859 done
25860
25861   test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
25862   ;;
25863 esac
25864 fi
25865 APXS22=$ac_cv_path_APXS22
25866
25867 if test -n "$APXS22"; then
25868   echo "$as_me:$LINENO: result: $APXS22" >&5
25869 echo "${ECHO_T}$APXS22" >&6
25870 else
25871   echo "$as_me:$LINENO: result: no" >&5
25872 echo "${ECHO_T}no" >&6
25873 fi
25874
25875         if test "$APXS22" = "no" ; then
25876             # Extract the first word of "apxs", so it can be a program name with args.
25877 set dummy apxs; ac_word=$2
25878 echo "$as_me:$LINENO: checking for $ac_word" >&5
25879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25880 if test "${ac_cv_path_APXS22+set}" = set; then
25881   echo $ECHO_N "(cached) $ECHO_C" >&6
25882 else
25883   case $APXS22 in
25884   [\\/]* | ?:[\\/]*)
25885   ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
25886   ;;
25887   *)
25888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25889 for as_dir in $PATH
25890 do
25891   IFS=$as_save_IFS
25892   test -z "$as_dir" && as_dir=.
25893   for ac_exec_ext in '' $ac_executable_extensions; do
25894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25895     ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
25896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25897     break 2
25898   fi
25899 done
25900 done
25901
25902   test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
25903   ;;
25904 esac
25905 fi
25906 APXS22=$ac_cv_path_APXS22
25907
25908 if test -n "$APXS22"; then
25909   echo "$as_me:$LINENO: result: $APXS22" >&5
25910 echo "${ECHO_T}$APXS22" >&6
25911 else
25912   echo "$as_me:$LINENO: result: no" >&5
25913 echo "${ECHO_T}no" >&6
25914 fi
25915
25916         fi
25917         if test "$APXS22" = "no" ; then
25918           for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25919             if test "$APXS22" = "no" && test -f "$i/apxs2" ; then
25920               APXS22="$i/apxs2"
25921             fi
25922           done
25923           if test "$APXS22" = "no" ; then
25924             for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25925               if test "$APXS22" = "no" && test -f "$i/apxs" ; then
25926                 APXS22="$i/apxs"
25927               fi
25928             done
25929           fi
25930         fi
25931
25932 fi;
25933
25934     echo "$as_me:$LINENO: checking to see if Apache2.2 apxs was located" >&5
25935 echo $ECHO_N "checking to see if Apache2.2 apxs was located... $ECHO_C" >&6
25936     if test ! -f "$APXS22" ; then
25937         echo "$as_me:$LINENO: result: no" >&5
25938 echo "${ECHO_T}no" >&6
25939         { { echo "$as_me:$LINENO: error: Unable to locate Apache2.2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs22 option." >&5
25940 echo "$as_me: error: Unable to locate Apache2.2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs22 option." >&2;}
25941    { (exit 1); exit 1; }; }
25942     fi
25943     echo "$as_me:$LINENO: result: $APXS22" >&5
25944 echo "${ECHO_T}$APXS22" >&6
25945
25946
25947     # APR1 settings
25948
25949 # Check whether --with-apr1 or --without-apr1 was given.
25950 if test "${with_apr1+set}" = set; then
25951   withval="$with_apr1"
25952
25953         echo "$as_me:$LINENO: checking for user-specified apr-1-config name/location" >&5
25954 echo $ECHO_N "checking for user-specified apr-1-config name/location... $ECHO_C" >&6
25955         if test "$withval" != "no" ; then
25956             if test "$withval" != "yes"; then
25957                 APR1_CONFIG=$withval
25958                 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25959 echo "${ECHO_T}\"$withval\"" >&6
25960             fi
25961         fi
25962
25963 else
25964
25965         # Extract the first word of "apr-1-config", so it can be a program name with args.
25966 set dummy apr-1-config; ac_word=$2
25967 echo "$as_me:$LINENO: checking for $ac_word" >&5
25968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25969 if test "${ac_cv_path_APR1_CONFIG+set}" = set; then
25970   echo $ECHO_N "(cached) $ECHO_C" >&6
25971 else
25972   case $APR1_CONFIG in
25973   [\\/]* | ?:[\\/]*)
25974   ac_cv_path_APR1_CONFIG="$APR1_CONFIG" # Let the user override the test with a path.
25975   ;;
25976   *)
25977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25978 as_dummy="`$APXS22 -q SBINDIR`:$PATH"
25979 for as_dir in $as_dummy
25980 do
25981   IFS=$as_save_IFS
25982   test -z "$as_dir" && as_dir=.
25983   for ac_exec_ext in '' $ac_executable_extensions; do
25984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25985     ac_cv_path_APR1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25987     break 2
25988   fi
25989 done
25990 done
25991
25992   ;;
25993 esac
25994 fi
25995 APR1_CONFIG=$ac_cv_path_APR1_CONFIG
25996
25997 if test -n "$APR1_CONFIG"; then
25998   echo "$as_me:$LINENO: result: $APR1_CONFIG" >&5
25999 echo "${ECHO_T}$APR1_CONFIG" >&6
26000 else
26001   echo "$as_me:$LINENO: result: no" >&5
26002 echo "${ECHO_T}no" >&6
26003 fi
26004
26005
26006 fi;
26007         if test -f "${APR1_CONFIG}"; then
26008         APR1_CFLAGS="`${APR1_CONFIG} --cflags` `${APR1_CONFIG} --cppflags` `${APR1_CONFIG} --includes`"
26009     else
26010         { { echo "$as_me:$LINENO: error: Unable to locate apr-1-config, may need --with-apr1 option." >&5
26011 echo "$as_me: error: Unable to locate apr-1-config, may need --with-apr1 option." >&2;}
26012    { (exit 1); exit 1; }; }
26013     fi
26014
26015     # APU1 settings
26016
26017 # Check whether --with-apu1 or --without-apu1 was given.
26018 if test "${with_apu1+set}" = set; then
26019   withval="$with_apu1"
26020
26021         echo "$as_me:$LINENO: checking for user-specified apu-1-config name/location" >&5
26022 echo $ECHO_N "checking for user-specified apu-1-config name/location... $ECHO_C" >&6
26023         if test "$withval" != "no" ; then
26024             if test "$withval" != "yes"; then
26025                 APR1_CONFIG=$withval
26026                 echo "$as_me:$LINENO: result: \"$withval\"" >&5
26027 echo "${ECHO_T}\"$withval\"" >&6
26028             fi
26029         fi
26030
26031 else
26032
26033         # Extract the first word of "apu-1-config", so it can be a program name with args.
26034 set dummy apu-1-config; ac_word=$2
26035 echo "$as_me:$LINENO: checking for $ac_word" >&5
26036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26037 if test "${ac_cv_path_APU1_CONFIG+set}" = set; then
26038   echo $ECHO_N "(cached) $ECHO_C" >&6
26039 else
26040   case $APU1_CONFIG in
26041   [\\/]* | ?:[\\/]*)
26042   ac_cv_path_APU1_CONFIG="$APU1_CONFIG" # Let the user override the test with a path.
26043   ;;
26044   *)
26045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26046 as_dummy="`$APXS22 -q SBINDIR`:$PATH"
26047 for as_dir in $as_dummy
26048 do
26049   IFS=$as_save_IFS
26050   test -z "$as_dir" && as_dir=.
26051   for ac_exec_ext in '' $ac_executable_extensions; do
26052   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26053     ac_cv_path_APU1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26055     break 2
26056   fi
26057 done
26058 done
26059
26060   ;;
26061 esac
26062 fi
26063 APU1_CONFIG=$ac_cv_path_APU1_CONFIG
26064
26065 if test -n "$APU1_CONFIG"; then
26066   echo "$as_me:$LINENO: result: $APU1_CONFIG" >&5
26067 echo "${ECHO_T}$APU1_CONFIG" >&6
26068 else
26069   echo "$as_me:$LINENO: result: no" >&5
26070 echo "${ECHO_T}no" >&6
26071 fi
26072
26073
26074 fi;
26075     if test -f "${APU1_CONFIG}"; then
26076         APU1_CFLAGS="`${APU1_CONFIG} --includes`"
26077     else
26078         { { echo "$as_me:$LINENO: error: Unable to locate apu-1-config, may need --with-apu1 option." >&5
26079 echo "$as_me: error: Unable to locate apu-1-config, may need --with-apu1 option." >&2;}
26080    { (exit 1); exit 1; }; }
26081     fi
26082
26083     # extract settings we need from APXS22 -q
26084     APXS22_CC="`$APXS22 -q CC`"
26085     APXS22_CFLAGS="`$APXS22 -q CPPFLAGS` `$APXS22 -q CFLAGS` $APR1_CFLAGS $APU1_CFLAGS"
26086     APXS22_INCLUDE="`$APXS22 -q INCLUDEDIR`"
26087 fi
26088
26089
26090
26091
26092 # always output the Makefile, even if you don't use it
26093           ac_config_files="$ac_config_files apache/Makefile"
26094
26095
26096
26097 if test "$WANT_APACHE_13" = "yes"; then
26098   BUILD_AP13_TRUE=
26099   BUILD_AP13_FALSE='#'
26100 else
26101   BUILD_AP13_TRUE='#'
26102   BUILD_AP13_FALSE=
26103 fi
26104
26105
26106
26107 if test "$WANT_APACHE_20" = "yes"; then
26108   BUILD_AP20_TRUE=
26109   BUILD_AP20_FALSE='#'
26110 else
26111   BUILD_AP20_TRUE='#'
26112   BUILD_AP20_FALSE=
26113 fi
26114
26115
26116
26117 if test "$WANT_APACHE_22" = "yes"; then
26118   BUILD_AP22_TRUE=
26119   BUILD_AP22_FALSE='#'
26120 else
26121   BUILD_AP22_TRUE='#'
26122   BUILD_AP22_FALSE=
26123 fi
26124
26125
26126 # add the apache module to the list of wanted subdirs..
26127 if test "$WANT_APACHE_13" = "yes" || test "$WANT_APACHE_20" = "yes" || test "$WANT_APACHE_22" = "yes" ; then
26128     WANT_SUBDIRS="$WANT_SUBDIRS apache"
26129 fi
26130
26131
26132 #
26133 # Implement the checks of the ODBC Storage Service
26134 #
26135 # 1) Assume the user wants ODBC; if it's not found then just continue without
26136 # 2) If the user specifically requested odbc, look for it and ERROR if not found
26137 # 3) If the user specifically requested no odbc, don't build it.
26138 #
26139
26140           ac_config_files="$ac_config_files odbc-store/Makefile"
26141
26142
26143 # determine whether we should enable the odbc ccache
26144 # Check whether --enable-odbc or --disable-odbc was given.
26145 if test "${enable_odbc+set}" = set; then
26146   enableval="$enable_odbc"
26147   odbc_enabled=$enableval
26148 else
26149   odbc_enabled=default
26150 fi;
26151
26152 if test "x$odbc_enabled" = "x" ; then
26153    odbc_enabled=yes
26154 fi
26155
26156 # Are we trying to build ODBC?
26157 echo "$as_me:$LINENO: checking whether to build the ODBC storage service" >&5
26158 echo $ECHO_N "checking whether to build the ODBC storage service... $ECHO_C" >&6
26159 if test "$odbc_enabled" = "yes" ; then
26160    build_odbc=yes
26161    echo "$as_me:$LINENO: result: yes" >&5
26162 echo "${ECHO_T}yes" >&6
26163 elif test "$odbc_enabled" = "default" ; then
26164    build_odbc=yes
26165    echo "$as_me:$LINENO: result: yes, if it can be found" >&5
26166 echo "${ECHO_T}yes, if it can be found" >&6
26167 else
26168    build_odbc=no
26169    echo "$as_me:$LINENO: result: no" >&5
26170 echo "${ECHO_T}no" >&6
26171 fi
26172
26173 # If we're trying to build ODBC, try to find the odbc_config program.
26174 if test "$build_odbc" = "yes" ; then
26175    odbc_dir=""
26176
26177 # Check whether --with-odbc or --without-odbc was given.
26178 if test "${with_odbc+set}" = set; then
26179   withval="$with_odbc"
26180   if test "$with_odbc" = no ; then
26181                { { echo "$as_me:$LINENO: error: Try running --disable-odbc instead." >&5
26182 echo "$as_me: error: Try running --disable-odbc instead." >&2;}
26183    { (exit 1); exit 1; }; }
26184              elif test "$with_odbc" != yes ; then
26185                odbc_dir="$with_odbc/bin"
26186                if test "$with_odbc" != /usr ; then
26187                  ODBC_CFLAGS="-I$with_odbc/include"
26188                  ODBC_LIBS="-L$with_odbc/lib"
26189                fi
26190              fi
26191 fi;
26192
26193    # Extract the first word of "odbc_config", so it can be a program name with args.
26194 set dummy odbc_config; ac_word=$2
26195 echo "$as_me:$LINENO: checking for $ac_word" >&5
26196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26197 if test "${ac_cv_path_ODBC_CONFIG+set}" = set; then
26198   echo $ECHO_N "(cached) $ECHO_C" >&6
26199 else
26200   case $ODBC_CONFIG in
26201   [\\/]* | ?:[\\/]*)
26202   ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path.
26203   ;;
26204   *)
26205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26206 for as_dir in $odbc_dir $PATH
26207 do
26208   IFS=$as_save_IFS
26209   test -z "$as_dir" && as_dir=.
26210   for ac_exec_ext in '' $ac_executable_extensions; do
26211   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26212     ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26214     break 2
26215   fi
26216 done
26217 done
26218
26219   test -z "$ac_cv_path_ODBC_CONFIG" && ac_cv_path_ODBC_CONFIG="no"
26220   ;;
26221 esac
26222 fi
26223 ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG
26224
26225 if test -n "$ODBC_CONFIG"; then
26226   echo "$as_me:$LINENO: result: $ODBC_CONFIG" >&5
26227 echo "${ECHO_T}$ODBC_CONFIG" >&6
26228 else
26229   echo "$as_me:$LINENO: result: no" >&5
26230 echo "${ECHO_T}no" >&6
26231 fi
26232
26233    if test "$ODBC_CONFIG" = no ; then
26234       { echo "$as_me:$LINENO: WARNING: Cannot find odbc_config, will try to guess settings." >&5
26235 echo "$as_me: WARNING: Cannot find odbc_config, will try to guess settings." >&2;}
26236       ODBC_LIBS="$ODBC_LIBS -lodbc"
26237    else
26238       ODBC_CFLAGS=`$ODBC_CONFIG --cflags`
26239       ODBC_LIBS=`$ODBC_CONFIG --libs`
26240    fi
26241
26242    save_CPPFLAGS="$CPPFLAGS"
26243    CPPFLAGS="$CPPFLAGS $ODBC_CFLAGS"
26244
26245    if test "${ac_cv_header_sql_h+set}" = set; then
26246   echo "$as_me:$LINENO: checking for sql.h" >&5
26247 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26248 if test "${ac_cv_header_sql_h+set}" = set; then
26249   echo $ECHO_N "(cached) $ECHO_C" >&6
26250 fi
26251 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26252 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26253 else
26254   # Is the header compilable?
26255 echo "$as_me:$LINENO: checking sql.h usability" >&5
26256 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26257 cat >conftest.$ac_ext <<_ACEOF
26258 /* confdefs.h.  */
26259 _ACEOF
26260 cat confdefs.h >>conftest.$ac_ext
26261 cat >>conftest.$ac_ext <<_ACEOF
26262 /* end confdefs.h.  */
26263 $ac_includes_default
26264 #include <sql.h>
26265 _ACEOF
26266 rm -f conftest.$ac_objext
26267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26268   (eval $ac_compile) 2>conftest.er1
26269   ac_status=$?
26270   grep -v '^ *+' conftest.er1 >conftest.err
26271   rm -f conftest.er1
26272   cat conftest.err >&5
26273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274   (exit $ac_status); } &&
26275          { ac_try='test -z "$ac_cxx_werror_flag"
26276                          || test ! -s conftest.err'
26277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26278   (eval $ac_try) 2>&5
26279   ac_status=$?
26280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281   (exit $ac_status); }; } &&
26282          { ac_try='test -s conftest.$ac_objext'
26283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26284   (eval $ac_try) 2>&5
26285   ac_status=$?
26286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287   (exit $ac_status); }; }; then
26288   ac_header_compiler=yes
26289 else
26290   echo "$as_me: failed program was:" >&5
26291 sed 's/^/| /' conftest.$ac_ext >&5
26292
26293 ac_header_compiler=no
26294 fi
26295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26297 echo "${ECHO_T}$ac_header_compiler" >&6
26298
26299 # Is the header present?
26300 echo "$as_me:$LINENO: checking sql.h presence" >&5
26301 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26302 cat >conftest.$ac_ext <<_ACEOF
26303 /* confdefs.h.  */
26304 _ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h.  */
26308 #include <sql.h>
26309 _ACEOF
26310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26312   ac_status=$?
26313   grep -v '^ *+' conftest.er1 >conftest.err
26314   rm -f conftest.er1
26315   cat conftest.err >&5
26316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317   (exit $ac_status); } >/dev/null; then
26318   if test -s conftest.err; then
26319     ac_cpp_err=$ac_cxx_preproc_warn_flag
26320     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26321   else
26322     ac_cpp_err=
26323   fi
26324 else
26325   ac_cpp_err=yes
26326 fi
26327 if test -z "$ac_cpp_err"; then
26328   ac_header_preproc=yes
26329 else
26330   echo "$as_me: failed program was:" >&5
26331 sed 's/^/| /' conftest.$ac_ext >&5
26332
26333   ac_header_preproc=no
26334 fi
26335 rm -f conftest.err conftest.$ac_ext
26336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26337 echo "${ECHO_T}$ac_header_preproc" >&6
26338
26339 # So?  What about this header?
26340 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26341   yes:no: )
26342     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26343 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26344     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26345 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26346     ac_header_preproc=yes
26347     ;;
26348   no:yes:* )
26349     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26350 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
26351     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
26352 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
26353     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26354 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26355     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
26356 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26357     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26358 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
26359     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26360 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
26361     (
26362       cat <<\_ASBOX
26363 ## --------------------------------------------- ##
26364 ## Report this to shibboleth-users@internet2.edu ##
26365 ## --------------------------------------------- ##
26366 _ASBOX
26367     ) |
26368       sed "s/^/$as_me: WARNING:     /" >&2
26369     ;;
26370 esac
26371 echo "$as_me:$LINENO: checking for sql.h" >&5
26372 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26373 if test "${ac_cv_header_sql_h+set}" = set; then
26374   echo $ECHO_N "(cached) $ECHO_C" >&6
26375 else
26376   ac_cv_header_sql_h=$ac_header_preproc
26377 fi
26378 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26379 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26380
26381 fi
26382 if test $ac_cv_header_sql_h = yes; then
26383   have_sql_h=yes
26384 else
26385   have_sql_h=no
26386 fi
26387
26388
26389    if test "$have_sql_h" = no -a "$odbc_enabled" = "yes" ; then
26390      { { echo "$as_me:$LINENO: error: unable to find ODBC header files" >&5
26391 echo "$as_me: error: unable to find ODBC header files" >&2;}
26392    { (exit 1); exit 1; }; }
26393    fi
26394
26395    if test "$have_sql_h" = yes ; then
26396       save_LIBS="$LIBS"
26397       LIBS="$LIBS $ODBC_LIBS"
26398       echo "$as_me:$LINENO: checking if we can link againt ODBC" >&5
26399 echo $ECHO_N "checking if we can link againt ODBC... $ECHO_C" >&6
26400       cat >conftest.$ac_ext <<_ACEOF
26401 /* confdefs.h.  */
26402 _ACEOF
26403 cat confdefs.h >>conftest.$ac_ext
26404 cat >>conftest.$ac_ext <<_ACEOF
26405 /* end confdefs.h.  */
26406 #include <sql.h>
26407          #include <sqlext.h>
26408          #include <stdio.h>
26409 int
26410 main ()
26411 {
26412 SQLSetEnvAttr(SQL_NULL_HANDLE, SQL_ATTR_CONNECTION_POOLING, (void*)SQL_CP_ONE_PER_HENV, 0)
26413   ;
26414   return 0;
26415 }
26416 _ACEOF
26417 rm -f conftest.$ac_objext conftest$ac_exeext
26418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26419   (eval $ac_link) 2>conftest.er1
26420   ac_status=$?
26421   grep -v '^ *+' conftest.er1 >conftest.err
26422   rm -f conftest.er1
26423   cat conftest.err >&5
26424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425   (exit $ac_status); } &&
26426          { ac_try='test -z "$ac_cxx_werror_flag"
26427                          || test ! -s conftest.err'
26428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26429   (eval $ac_try) 2>&5
26430   ac_status=$?
26431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432   (exit $ac_status); }; } &&
26433          { ac_try='test -s conftest$ac_exeext'
26434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26435   (eval $ac_try) 2>&5
26436   ac_status=$?
26437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438   (exit $ac_status); }; }; then
26439   have_odbc_libs=yes
26440 else
26441   echo "$as_me: failed program was:" >&5
26442 sed 's/^/| /' conftest.$ac_ext >&5
26443
26444 have_odbc_libs=no
26445 fi
26446 rm -f conftest.err conftest.$ac_objext \
26447       conftest$ac_exeext conftest.$ac_ext
26448       LIBS="$save_LIBS"
26449
26450       if test "$have_odbc_libs" = no ; then
26451          if test "$odbc_enabled" = "yes" ; then
26452             { { echo "$as_me:$LINENO: error: unable to link with ODBC Library" >&5
26453 echo "$as_me: error: unable to link with ODBC Library" >&2;}
26454    { (exit 1); exit 1; }; }
26455          else
26456             echo "$as_me:$LINENO: result: no" >&5
26457 echo "${ECHO_T}no" >&6
26458          fi
26459       fi
26460    fi
26461
26462    CPPFLAGS="$save_CPPFLAGS"
26463 fi
26464
26465 # if have_odbc_libs=yes then go ahead with building ODBC
26466 if test "$have_odbc_libs" = yes ; then
26467    # this AC_MSG_RESULT is from above!
26468    echo "$as_me:$LINENO: result: yes" >&5
26469 echo "${ECHO_T}yes" >&6
26470    WANT_SUBDIRS="$WANT_SUBDIRS odbc-store"
26471
26472
26473 fi
26474
26475
26476
26477
26478 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
26479   echo "=================================================================="
26480   echo "WARNING: You have chosen to compile Apache-1.3 modules with a different"
26481   echo "         compiler than the one used to compile Apache."
26482   echo ""
26483   echo "    Current compiler:      $CC"
26484   echo "   Apache's compiler:      $APXS_CC"
26485   echo ""
26486   echo "This could cause problems."
26487   echo "=================================================================="
26488 fi
26489
26490 if test -n "$APXS2_CC" && test "$APXS2_CC" != "$CC" ; then
26491   echo "=================================================================="
26492   echo "WARNING: You have chosen to compile Apache-2.0 modules with a different"
26493   echo "         compiler than the one used to compile Apache."
26494   echo ""
26495   echo "    Current compiler:      $CC"
26496   echo "   Apache's compiler:      $APXS2_CC"
26497   echo ""
26498   echo "This could cause problems."
26499   echo "=================================================================="
26500 fi
26501
26502 if test -n "$APXS22_CC" && test "$APXS22_CC" != "$CC" ; then
26503   echo "=================================================================="
26504   echo "WARNING: You have chosen to compile Apache-2.2 modules with a different"
26505   echo "         compiler than the one used to compile Apache."
26506   echo ""
26507   echo "    Current compiler:      $CC"
26508   echo "   Apache's compiler:      $APXS22_CC"
26509   echo ""
26510   echo "This could cause problems."
26511   echo "=================================================================="
26512 fi
26513
26514 LIBTOOL="$LIBTOOL --silent"
26515
26516 cat >confcache <<\_ACEOF
26517 # This file is a shell script that caches the results of configure
26518 # tests run on this system so they can be shared between configure
26519 # scripts and configure runs, see configure's option --config-cache.
26520 # It is not useful on other systems.  If it contains results you don't
26521 # want to keep, you may remove or edit it.
26522 #
26523 # config.status only pays attention to the cache file if you give it
26524 # the --recheck option to rerun configure.
26525 #
26526 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26527 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26528 # following values.
26529
26530 _ACEOF
26531
26532 # The following way of writing the cache mishandles newlines in values,
26533 # but we know of no workaround that is simple, portable, and efficient.
26534 # So, don't put newlines in cache variables' values.
26535 # Ultrix sh set writes to stderr and can't be redirected directly,
26536 # and sets the high bit in the cache file unless we assign to the vars.
26537 {
26538   (set) 2>&1 |
26539     case `(ac_space=' '; set | grep ac_space) 2>&1` in
26540     *ac_space=\ *)
26541       # `set' does not quote correctly, so add quotes (double-quote
26542       # substitution turns \\\\ into \\, and sed turns \\ into \).
26543       sed -n \
26544         "s/'/'\\\\''/g;
26545           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26546       ;;
26547     *)
26548       # `set' quotes correctly as required by POSIX, so do not add quotes.
26549       sed -n \
26550         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26551       ;;
26552     esac;
26553 } |
26554   sed '
26555      t clear
26556      : clear
26557      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26558      t end
26559      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26560      : end' >>confcache
26561 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26562   if test -w $cache_file; then
26563     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26564     cat confcache >$cache_file
26565   else
26566     echo "not updating unwritable cache $cache_file"
26567   fi
26568 fi
26569 rm -f confcache
26570
26571 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26572 # Let make expand exec_prefix.
26573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26574
26575 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26576 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26577 # trailing colons and then remove the whole line if VPATH becomes empty
26578 # (actually we leave an empty line to preserve line numbers).
26579 if test "x$srcdir" = x.; then
26580   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26581 s/:*\$(srcdir):*/:/;
26582 s/:*\${srcdir}:*/:/;
26583 s/:*@srcdir@:*/:/;
26584 s/^\([^=]*=[     ]*\):*/\1/;
26585 s/:*$//;
26586 s/^[^=]*=[       ]*$//;
26587 }'
26588 fi
26589
26590 DEFS=-DHAVE_CONFIG_H
26591
26592 ac_libobjs=
26593 ac_ltlibobjs=
26594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26595   # 1. Remove the extension, and $U if already installed.
26596   ac_i=`echo "$ac_i" |
26597          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26598   # 2. Add them.
26599   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26600   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26601 done
26602 LIBOBJS=$ac_libobjs
26603
26604 LTLIBOBJS=$ac_ltlibobjs
26605
26606
26607 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
26608   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
26609 Usually this means the macro was only invoked conditionally." >&5
26610 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
26611 Usually this means the macro was only invoked conditionally." >&2;}
26612    { (exit 1); exit 1; }; }
26613 fi
26614 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
26615   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
26616 Usually this means the macro was only invoked conditionally." >&5
26617 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
26618 Usually this means the macro was only invoked conditionally." >&2;}
26619    { (exit 1); exit 1; }; }
26620 fi
26621 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
26622   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
26623 Usually this means the macro was only invoked conditionally." >&5
26624 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
26625 Usually this means the macro was only invoked conditionally." >&2;}
26626    { (exit 1); exit 1; }; }
26627 fi
26628 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
26629   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
26630 Usually this means the macro was only invoked conditionally." >&5
26631 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
26632 Usually this means the macro was only invoked conditionally." >&2;}
26633    { (exit 1); exit 1; }; }
26634 fi
26635 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
26636   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
26637 Usually this means the macro was only invoked conditionally." >&5
26638 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
26639 Usually this means the macro was only invoked conditionally." >&2;}
26640    { (exit 1); exit 1; }; }
26641 fi
26642 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
26643   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
26644 Usually this means the macro was only invoked conditionally." >&5
26645 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
26646 Usually this means the macro was only invoked conditionally." >&2;}
26647    { (exit 1); exit 1; }; }
26648 fi
26649 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
26650   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
26651 Usually this means the macro was only invoked conditionally." >&5
26652 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
26653 Usually this means the macro was only invoked conditionally." >&2;}
26654    { (exit 1); exit 1; }; }
26655 fi
26656 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
26657   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
26658 Usually this means the macro was only invoked conditionally." >&5
26659 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
26660 Usually this means the macro was only invoked conditionally." >&2;}
26661    { (exit 1); exit 1; }; }
26662 fi
26663 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
26664   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
26665 Usually this means the macro was only invoked conditionally." >&5
26666 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
26667 Usually this means the macro was only invoked conditionally." >&2;}
26668    { (exit 1); exit 1; }; }
26669 fi
26670 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
26671   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
26672 Usually this means the macro was only invoked conditionally." >&5
26673 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
26674 Usually this means the macro was only invoked conditionally." >&2;}
26675    { (exit 1); exit 1; }; }
26676 fi
26677 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
26678   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
26679 Usually this means the macro was only invoked conditionally." >&5
26680 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
26681 Usually this means the macro was only invoked conditionally." >&2;}
26682    { (exit 1); exit 1; }; }
26683 fi
26684 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
26685   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
26686 Usually this means the macro was only invoked conditionally." >&5
26687 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
26688 Usually this means the macro was only invoked conditionally." >&2;}
26689    { (exit 1); exit 1; }; }
26690 fi
26691 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
26692   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
26693 Usually this means the macro was only invoked conditionally." >&5
26694 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
26695 Usually this means the macro was only invoked conditionally." >&2;}
26696    { (exit 1); exit 1; }; }
26697 fi
26698 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
26699   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
26700 Usually this means the macro was only invoked conditionally." >&5
26701 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
26702 Usually this means the macro was only invoked conditionally." >&2;}
26703    { (exit 1); exit 1; }; }
26704 fi
26705 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
26706   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
26707 Usually this means the macro was only invoked conditionally." >&5
26708 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
26709 Usually this means the macro was only invoked conditionally." >&2;}
26710    { (exit 1); exit 1; }; }
26711 fi
26712 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
26713   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
26714 Usually this means the macro was only invoked conditionally." >&5
26715 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
26716 Usually this means the macro was only invoked conditionally." >&2;}
26717    { (exit 1); exit 1; }; }
26718 fi
26719 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
26720   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
26721 Usually this means the macro was only invoked conditionally." >&5
26722 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
26723 Usually this means the macro was only invoked conditionally." >&2;}
26724    { (exit 1); exit 1; }; }
26725 fi
26726 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
26727   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
26728 Usually this means the macro was only invoked conditionally." >&5
26729 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
26730 Usually this means the macro was only invoked conditionally." >&2;}
26731    { (exit 1); exit 1; }; }
26732 fi
26733 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
26734   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
26735 Usually this means the macro was only invoked conditionally." >&5
26736 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
26737 Usually this means the macro was only invoked conditionally." >&2;}
26738    { (exit 1); exit 1; }; }
26739 fi
26740 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
26741   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
26742 Usually this means the macro was only invoked conditionally." >&5
26743 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
26744 Usually this means the macro was only invoked conditionally." >&2;}
26745    { (exit 1); exit 1; }; }
26746 fi
26747 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
26748   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
26749 Usually this means the macro was only invoked conditionally." >&5
26750 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
26751 Usually this means the macro was only invoked conditionally." >&2;}
26752    { (exit 1); exit 1; }; }
26753 fi
26754 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
26755   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
26756 Usually this means the macro was only invoked conditionally." >&5
26757 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
26758 Usually this means the macro was only invoked conditionally." >&2;}
26759    { (exit 1); exit 1; }; }
26760 fi
26761 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26762   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26763 Usually this means the macro was only invoked conditionally." >&5
26764 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26765 Usually this means the macro was only invoked conditionally." >&2;}
26766    { (exit 1); exit 1; }; }
26767 fi
26768 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26769   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26770 Usually this means the macro was only invoked conditionally." >&5
26771 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26772 Usually this means the macro was only invoked conditionally." >&2;}
26773    { (exit 1); exit 1; }; }
26774 fi
26775 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26776   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26777 Usually this means the macro was only invoked conditionally." >&5
26778 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26779 Usually this means the macro was only invoked conditionally." >&2;}
26780    { (exit 1); exit 1; }; }
26781 fi
26782 if test -z "${BUILD_NSAPI_TRUE}" && test -z "${BUILD_NSAPI_FALSE}"; then
26783   { { echo "$as_me:$LINENO: error: conditional \"BUILD_NSAPI\" was never defined.
26784 Usually this means the macro was only invoked conditionally." >&5
26785 echo "$as_me: error: conditional \"BUILD_NSAPI\" was never defined.
26786 Usually this means the macro was only invoked conditionally." >&2;}
26787    { (exit 1); exit 1; }; }
26788 fi
26789 if test -z "${BUILD_FASTCGI_TRUE}" && test -z "${BUILD_FASTCGI_FALSE}"; then
26790   { { echo "$as_me:$LINENO: error: conditional \"BUILD_FASTCGI\" was never defined.
26791 Usually this means the macro was only invoked conditionally." >&5
26792 echo "$as_me: error: conditional \"BUILD_FASTCGI\" was never defined.
26793 Usually this means the macro was only invoked conditionally." >&2;}
26794    { (exit 1); exit 1; }; }
26795 fi
26796 if test -z "${BUILD_MEMCACHED_TRUE}" && test -z "${BUILD_MEMCACHED_FALSE}"; then
26797   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MEMCACHED\" was never defined.
26798 Usually this means the macro was only invoked conditionally." >&5
26799 echo "$as_me: error: conditional \"BUILD_MEMCACHED\" was never defined.
26800 Usually this means the macro was only invoked conditionally." >&2;}
26801    { (exit 1); exit 1; }; }
26802 fi
26803 if test -z "${BUILD_AP13_TRUE}" && test -z "${BUILD_AP13_FALSE}"; then
26804   { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP13\" was never defined.
26805 Usually this means the macro was only invoked conditionally." >&5
26806 echo "$as_me: error: conditional \"BUILD_AP13\" was never defined.
26807 Usually this means the macro was only invoked conditionally." >&2;}
26808    { (exit 1); exit 1; }; }
26809 fi
26810 if test -z "${BUILD_AP20_TRUE}" && test -z "${BUILD_AP20_FALSE}"; then
26811   { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP20\" was never defined.
26812 Usually this means the macro was only invoked conditionally." >&5
26813 echo "$as_me: error: conditional \"BUILD_AP20\" was never defined.
26814 Usually this means the macro was only invoked conditionally." >&2;}
26815    { (exit 1); exit 1; }; }
26816 fi
26817 if test -z "${BUILD_AP22_TRUE}" && test -z "${BUILD_AP22_FALSE}"; then
26818   { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP22\" was never defined.
26819 Usually this means the macro was only invoked conditionally." >&5
26820 echo "$as_me: error: conditional \"BUILD_AP22\" was never defined.
26821 Usually this means the macro was only invoked conditionally." >&2;}
26822    { (exit 1); exit 1; }; }
26823 fi
26824
26825 : ${CONFIG_STATUS=./config.status}
26826 ac_clean_files_save=$ac_clean_files
26827 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26828 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26829 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26830 cat >$CONFIG_STATUS <<_ACEOF
26831 #! $SHELL
26832 # Generated by $as_me.
26833 # Run this file to recreate the current configuration.
26834 # Compiler output produced by configure, useful for debugging
26835 # configure, is in config.log if it exists.
26836
26837 debug=false
26838 ac_cs_recheck=false
26839 ac_cs_silent=false
26840 SHELL=\${CONFIG_SHELL-$SHELL}
26841 _ACEOF
26842
26843 cat >>$CONFIG_STATUS <<\_ACEOF
26844 ## --------------------- ##
26845 ## M4sh Initialization.  ##
26846 ## --------------------- ##
26847
26848 # Be Bourne compatible
26849 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26850   emulate sh
26851   NULLCMD=:
26852   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26853   # is contrary to our usage.  Disable this feature.
26854   alias -g '${1+"$@"}'='"$@"'
26855 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26856   set -o posix
26857 fi
26858 DUALCASE=1; export DUALCASE # for MKS sh
26859
26860 # Support unset when possible.
26861 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26862   as_unset=unset
26863 else
26864   as_unset=false
26865 fi
26866
26867
26868 # Work around bugs in pre-3.0 UWIN ksh.
26869 $as_unset ENV MAIL MAILPATH
26870 PS1='$ '
26871 PS2='> '
26872 PS4='+ '
26873
26874 # NLS nuisances.
26875 for as_var in \
26876   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26877   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26878   LC_TELEPHONE LC_TIME
26879 do
26880   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26881     eval $as_var=C; export $as_var
26882   else
26883     $as_unset $as_var
26884   fi
26885 done
26886
26887 # Required to use basename.
26888 if expr a : '\(a\)' >/dev/null 2>&1; then
26889   as_expr=expr
26890 else
26891   as_expr=false
26892 fi
26893
26894 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26895   as_basename=basename
26896 else
26897   as_basename=false
26898 fi
26899
26900
26901 # Name of the executable.
26902 as_me=`$as_basename "$0" ||
26903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26904          X"$0" : 'X\(//\)$' \| \
26905          X"$0" : 'X\(/\)$' \| \
26906          .     : '\(.\)' 2>/dev/null ||
26907 echo X/"$0" |
26908     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26909           /^X\/\(\/\/\)$/{ s//\1/; q; }
26910           /^X\/\(\/\).*/{ s//\1/; q; }
26911           s/.*/./; q'`
26912
26913
26914 # PATH needs CR, and LINENO needs CR and PATH.
26915 # Avoid depending upon Character Ranges.
26916 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26917 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26918 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26919 as_cr_digits='0123456789'
26920 as_cr_alnum=$as_cr_Letters$as_cr_digits
26921
26922 # The user is always right.
26923 if test "${PATH_SEPARATOR+set}" != set; then
26924   echo "#! /bin/sh" >conf$$.sh
26925   echo  "exit 0"   >>conf$$.sh
26926   chmod +x conf$$.sh
26927   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26928     PATH_SEPARATOR=';'
26929   else
26930     PATH_SEPARATOR=:
26931   fi
26932   rm -f conf$$.sh
26933 fi
26934
26935
26936   as_lineno_1=$LINENO
26937   as_lineno_2=$LINENO
26938   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26939   test "x$as_lineno_1" != "x$as_lineno_2" &&
26940   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26941   # Find who we are.  Look in the path if we contain no path at all
26942   # relative or not.
26943   case $0 in
26944     *[\\/]* ) as_myself=$0 ;;
26945     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26946 for as_dir in $PATH
26947 do
26948   IFS=$as_save_IFS
26949   test -z "$as_dir" && as_dir=.
26950   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26951 done
26952
26953        ;;
26954   esac
26955   # We did not find ourselves, most probably we were run as `sh COMMAND'
26956   # in which case we are not to be found in the path.
26957   if test "x$as_myself" = x; then
26958     as_myself=$0
26959   fi
26960   if test ! -f "$as_myself"; then
26961     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26962 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26963    { (exit 1); exit 1; }; }
26964   fi
26965   case $CONFIG_SHELL in
26966   '')
26967     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26968 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26969 do
26970   IFS=$as_save_IFS
26971   test -z "$as_dir" && as_dir=.
26972   for as_base in sh bash ksh sh5; do
26973          case $as_dir in
26974          /*)
26975            if ("$as_dir/$as_base" -c '
26976   as_lineno_1=$LINENO
26977   as_lineno_2=$LINENO
26978   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26979   test "x$as_lineno_1" != "x$as_lineno_2" &&
26980   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26981              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26982              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26983              CONFIG_SHELL=$as_dir/$as_base
26984              export CONFIG_SHELL
26985              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26986            fi;;
26987          esac
26988        done
26989 done
26990 ;;
26991   esac
26992
26993   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26994   # uniformly replaced by the line number.  The first 'sed' inserts a
26995   # line-number line before each line; the second 'sed' does the real
26996   # work.  The second script uses 'N' to pair each line-number line
26997   # with the numbered line, and appends trailing '-' during
26998   # substitution so that $LINENO is not a special case at line end.
26999   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27000   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
27001   sed '=' <$as_myself |
27002     sed '
27003       N
27004       s,$,-,
27005       : loop
27006       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27007       t loop
27008       s,-$,,
27009       s,^['$as_cr_digits']*\n,,
27010     ' >$as_me.lineno &&
27011   chmod +x $as_me.lineno ||
27012     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27013 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27014    { (exit 1); exit 1; }; }
27015
27016   # Don't try to exec as it changes $[0], causing all sort of problems
27017   # (the dirname of $[0] is not the place where we might find the
27018   # original and so on.  Autoconf is especially sensible to this).
27019   . ./$as_me.lineno
27020   # Exit status is that of the last command.
27021   exit
27022 }
27023
27024
27025 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27026   *c*,-n*) ECHO_N= ECHO_C='
27027 ' ECHO_T='      ' ;;
27028   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27029   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
27030 esac
27031
27032 if expr a : '\(a\)' >/dev/null 2>&1; then
27033   as_expr=expr
27034 else
27035   as_expr=false
27036 fi
27037
27038 rm -f conf$$ conf$$.exe conf$$.file
27039 echo >conf$$.file
27040 if ln -s conf$$.file conf$$ 2>/dev/null; then
27041   # We could just check for DJGPP; but this test a) works b) is more generic
27042   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27043   if test -f conf$$.exe; then
27044     # Don't use ln at all; we don't have any links
27045     as_ln_s='cp -p'
27046   else
27047     as_ln_s='ln -s'
27048   fi
27049 elif ln conf$$.file conf$$ 2>/dev/null; then
27050   as_ln_s=ln
27051 else
27052   as_ln_s='cp -p'
27053 fi
27054 rm -f conf$$ conf$$.exe conf$$.file
27055
27056 if mkdir -p . 2>/dev/null; then
27057   as_mkdir_p=:
27058 else
27059   test -d ./-p && rmdir ./-p
27060   as_mkdir_p=false
27061 fi
27062
27063 as_executable_p="test -f"
27064
27065 # Sed expression to map a string onto a valid CPP name.
27066 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27067
27068 # Sed expression to map a string onto a valid variable name.
27069 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27070
27071
27072 # IFS
27073 # We need space, tab and new line, in precisely that order.
27074 as_nl='
27075 '
27076 IFS="   $as_nl"
27077
27078 # CDPATH.
27079 $as_unset CDPATH
27080
27081 exec 6>&1
27082
27083 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27084 # report actual input values of CONFIG_FILES etc. instead of their
27085 # values after options handling.  Logging --version etc. is OK.
27086 exec 5>>config.log
27087 {
27088   echo
27089   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27090 ## Running $as_me. ##
27091 _ASBOX
27092 } >&5
27093 cat >&5 <<_CSEOF
27094
27095 This file was extended by shibboleth $as_me 2.3.1, which was
27096 generated by GNU Autoconf 2.59.  Invocation command line was
27097
27098   CONFIG_FILES    = $CONFIG_FILES
27099   CONFIG_HEADERS  = $CONFIG_HEADERS
27100   CONFIG_LINKS    = $CONFIG_LINKS
27101   CONFIG_COMMANDS = $CONFIG_COMMANDS
27102   $ $0 $@
27103
27104 _CSEOF
27105 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27106 echo >&5
27107 _ACEOF
27108
27109 # Files that config.status was made for.
27110 if test -n "$ac_config_files"; then
27111   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27112 fi
27113
27114 if test -n "$ac_config_headers"; then
27115   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27116 fi
27117
27118 if test -n "$ac_config_links"; then
27119   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27120 fi
27121
27122 if test -n "$ac_config_commands"; then
27123   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27124 fi
27125
27126 cat >>$CONFIG_STATUS <<\_ACEOF
27127
27128 ac_cs_usage="\
27129 \`$as_me' instantiates files from templates according to the
27130 current configuration.
27131
27132 Usage: $0 [OPTIONS] [FILE]...
27133
27134   -h, --help       print this help, then exit
27135   -V, --version    print version number, then exit
27136   -q, --quiet      do not print progress messages
27137   -d, --debug      don't remove temporary files
27138       --recheck    update $as_me by reconfiguring in the same conditions
27139   --file=FILE[:TEMPLATE]
27140                    instantiate the configuration file FILE
27141   --header=FILE[:TEMPLATE]
27142                    instantiate the configuration header FILE
27143
27144 Configuration files:
27145 $config_files
27146
27147 Configuration headers:
27148 $config_headers
27149
27150 Configuration commands:
27151 $config_commands
27152
27153 Report bugs to <bug-autoconf@gnu.org>."
27154 _ACEOF
27155
27156 cat >>$CONFIG_STATUS <<_ACEOF
27157 ac_cs_version="\\
27158 shibboleth config.status 2.3.1
27159 configured by $0, generated by GNU Autoconf 2.59,
27160   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27161
27162 Copyright (C) 2003 Free Software Foundation, Inc.
27163 This config.status script is free software; the Free Software Foundation
27164 gives unlimited permission to copy, distribute and modify it."
27165 srcdir=$srcdir
27166 INSTALL="$INSTALL"
27167 _ACEOF
27168
27169 cat >>$CONFIG_STATUS <<\_ACEOF
27170 # If no file are specified by the user, then we need to provide default
27171 # value.  By we need to know if files were specified by the user.
27172 ac_need_defaults=:
27173 while test $# != 0
27174 do
27175   case $1 in
27176   --*=*)
27177     ac_option=`expr "x$1" : 'x\([^=]*\)='`
27178     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27179     ac_shift=:
27180     ;;
27181   -*)
27182     ac_option=$1
27183     ac_optarg=$2
27184     ac_shift=shift
27185     ;;
27186   *) # This is not an option, so the user has probably given explicit
27187      # arguments.
27188      ac_option=$1
27189      ac_need_defaults=false;;
27190   esac
27191
27192   case $ac_option in
27193   # Handling of the options.
27194 _ACEOF
27195 cat >>$CONFIG_STATUS <<\_ACEOF
27196   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27197     ac_cs_recheck=: ;;
27198   --version | --vers* | -V )
27199     echo "$ac_cs_version"; exit 0 ;;
27200   --he | --h)
27201     # Conflict between --help and --header
27202     { { echo "$as_me:$LINENO: error: ambiguous option: $1
27203 Try \`$0 --help' for more information." >&5
27204 echo "$as_me: error: ambiguous option: $1
27205 Try \`$0 --help' for more information." >&2;}
27206    { (exit 1); exit 1; }; };;
27207   --help | --hel | -h )
27208     echo "$ac_cs_usage"; exit 0 ;;
27209   --debug | --d* | -d )
27210     debug=: ;;
27211   --file | --fil | --fi | --f )
27212     $ac_shift
27213     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27214     ac_need_defaults=false;;
27215   --header | --heade | --head | --hea )
27216     $ac_shift
27217     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27218     ac_need_defaults=false;;
27219   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27220   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27221     ac_cs_silent=: ;;
27222
27223   # This is an error.
27224   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27225 Try \`$0 --help' for more information." >&5
27226 echo "$as_me: error: unrecognized option: $1
27227 Try \`$0 --help' for more information." >&2;}
27228    { (exit 1); exit 1; }; } ;;
27229
27230   *) ac_config_targets="$ac_config_targets $1" ;;
27231
27232   esac
27233   shift
27234 done
27235
27236 ac_configure_extra_args=
27237
27238 if $ac_cs_silent; then
27239   exec 6>/dev/null
27240   ac_configure_extra_args="$ac_configure_extra_args --silent"
27241 fi
27242
27243 _ACEOF
27244 cat >>$CONFIG_STATUS <<_ACEOF
27245 if \$ac_cs_recheck; then
27246   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27247   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27248 fi
27249
27250 _ACEOF
27251
27252 cat >>$CONFIG_STATUS <<_ACEOF
27253 #
27254 # INIT-COMMANDS section.
27255 #
27256
27257 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27258
27259 _ACEOF
27260
27261
27262
27263 cat >>$CONFIG_STATUS <<\_ACEOF
27264 for ac_config_target in $ac_config_targets
27265 do
27266   case "$ac_config_target" in
27267   # Handling of arguments.
27268   "shibboleth.spec" ) CONFIG_FILES="$CONFIG_FILES shibboleth.spec" ;;
27269   "pkginfo" ) CONFIG_FILES="$CONFIG_FILES pkginfo" ;;
27270   "Portfile" ) CONFIG_FILES="$CONFIG_FILES Portfile" ;;
27271   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27272   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27273   "schemas/Makefile" ) CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
27274   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
27275   "shibsp/Makefile" ) CONFIG_FILES="$CONFIG_FILES shibsp/Makefile" ;;
27276   "shibd/Makefile" ) CONFIG_FILES="$CONFIG_FILES shibd/Makefile" ;;
27277   "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
27278   "selinux/Makefile" ) CONFIG_FILES="$CONFIG_FILES selinux/Makefile" ;;
27279   "adfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES adfs/Makefile" ;;
27280   "nsapi_shib/Makefile" ) CONFIG_FILES="$CONFIG_FILES nsapi_shib/Makefile" ;;
27281   "fastcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES fastcgi/Makefile" ;;
27282   "memcache-store/Makefile" ) CONFIG_FILES="$CONFIG_FILES memcache-store/Makefile" ;;
27283   "apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES apache/Makefile" ;;
27284   "odbc-store/Makefile" ) CONFIG_FILES="$CONFIG_FILES odbc-store/Makefile" ;;
27285   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27286   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27287   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27288 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27289    { (exit 1); exit 1; }; };;
27290   esac
27291 done
27292
27293 # If the user did not use the arguments to specify the items to instantiate,
27294 # then the envvar interface is used.  Set only those that are not.
27295 # We use the long form for the default assignment because of an extremely
27296 # bizarre bug on SunOS 4.1.3.
27297 if $ac_need_defaults; then
27298   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27299   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27300   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27301 fi
27302
27303 # Have a temporary directory for convenience.  Make it in the build tree
27304 # simply because there is no reason to put it here, and in addition,
27305 # creating and moving files from /tmp can sometimes cause problems.
27306 # Create a temporary directory, and hook for its removal unless debugging.
27307 $debug ||
27308 {
27309   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27310   trap '{ (exit 1); exit 1; }' 1 2 13 15
27311 }
27312
27313 # Create a (secure) tmp directory for tmp files.
27314
27315 {
27316   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27317   test -n "$tmp" && test -d "$tmp"
27318 }  ||
27319 {
27320   tmp=./confstat$$-$RANDOM
27321   (umask 077 && mkdir $tmp)
27322 } ||
27323 {
27324    echo "$me: cannot create a temporary directory in ." >&2
27325    { (exit 1); exit 1; }
27326 }
27327
27328 _ACEOF
27329
27330 cat >>$CONFIG_STATUS <<_ACEOF
27331
27332 #
27333 # CONFIG_FILES section.
27334 #
27335
27336 # No need to generate the scripts if there are no CONFIG_FILES.
27337 # This happens for instance when ./config.status config.h
27338 if test -n "\$CONFIG_FILES"; then
27339   # Protect against being on the right side of a sed subst in config.status.
27340   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27341    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27342 s,@SHELL@,$SHELL,;t t
27343 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27344 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27345 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27346 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27347 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27348 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27349 s,@exec_prefix@,$exec_prefix,;t t
27350 s,@prefix@,$prefix,;t t
27351 s,@program_transform_name@,$program_transform_name,;t t
27352 s,@bindir@,$bindir,;t t
27353 s,@sbindir@,$sbindir,;t t
27354 s,@libexecdir@,$libexecdir,;t t
27355 s,@datadir@,$datadir,;t t
27356 s,@sysconfdir@,$sysconfdir,;t t
27357 s,@sharedstatedir@,$sharedstatedir,;t t
27358 s,@localstatedir@,$localstatedir,;t t
27359 s,@libdir@,$libdir,;t t
27360 s,@includedir@,$includedir,;t t
27361 s,@oldincludedir@,$oldincludedir,;t t
27362 s,@infodir@,$infodir,;t t
27363 s,@mandir@,$mandir,;t t
27364 s,@build_alias@,$build_alias,;t t
27365 s,@host_alias@,$host_alias,;t t
27366 s,@target_alias@,$target_alias,;t t
27367 s,@DEFS@,$DEFS,;t t
27368 s,@ECHO_C@,$ECHO_C,;t t
27369 s,@ECHO_N@,$ECHO_N,;t t
27370 s,@ECHO_T@,$ECHO_T,;t t
27371 s,@LIBS@,$LIBS,;t t
27372 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27373 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27374 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27375 s,@CYGPATH_W@,$CYGPATH_W,;t t
27376 s,@PACKAGE@,$PACKAGE,;t t
27377 s,@VERSION@,$VERSION,;t t
27378 s,@ACLOCAL@,$ACLOCAL,;t t
27379 s,@AUTOCONF@,$AUTOCONF,;t t
27380 s,@AUTOMAKE@,$AUTOMAKE,;t t
27381 s,@AUTOHEADER@,$AUTOHEADER,;t t
27382 s,@MAKEINFO@,$MAKEINFO,;t t
27383 s,@install_sh@,$install_sh,;t t
27384 s,@STRIP@,$STRIP,;t t
27385 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27386 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27387 s,@mkdir_p@,$mkdir_p,;t t
27388 s,@AWK@,$AWK,;t t
27389 s,@SET_MAKE@,$SET_MAKE,;t t
27390 s,@am__leading_dot@,$am__leading_dot,;t t
27391 s,@AMTAR@,$AMTAR,;t t
27392 s,@am__tar@,$am__tar,;t t
27393 s,@am__untar@,$am__untar,;t t
27394 s,@DX_PROJECT@,$DX_PROJECT,;t t
27395 s,@DX_CONFIG@,$DX_CONFIG,;t t
27396 s,@DX_DOCDIR@,$DX_DOCDIR,;t t
27397 s,@DX_ENV@,$DX_ENV,;t t
27398 s,@DX_FLAG_doc@,$DX_FLAG_doc,;t t
27399 s,@DX_DOXYGEN@,$DX_DOXYGEN,;t t
27400 s,@ac_pt_DX_DOXYGEN@,$ac_pt_DX_DOXYGEN,;t t
27401 s,@DX_PERL@,$DX_PERL,;t t
27402 s,@ac_pt_DX_PERL@,$ac_pt_DX_PERL,;t t
27403 s,@DX_COND_doc_TRUE@,$DX_COND_doc_TRUE,;t t
27404 s,@DX_COND_doc_FALSE@,$DX_COND_doc_FALSE,;t t
27405 s,@DX_FLAG_dot@,$DX_FLAG_dot,;t t
27406 s,@DX_DOT@,$DX_DOT,;t t
27407 s,@ac_pt_DX_DOT@,$ac_pt_DX_DOT,;t t
27408 s,@DX_COND_dot_TRUE@,$DX_COND_dot_TRUE,;t t
27409 s,@DX_COND_dot_FALSE@,$DX_COND_dot_FALSE,;t t
27410 s,@DX_FLAG_man@,$DX_FLAG_man,;t t
27411 s,@DX_COND_man_TRUE@,$DX_COND_man_TRUE,;t t
27412 s,@DX_COND_man_FALSE@,$DX_COND_man_FALSE,;t t
27413 s,@DX_FLAG_rtf@,$DX_FLAG_rtf,;t t
27414 s,@DX_COND_rtf_TRUE@,$DX_COND_rtf_TRUE,;t t
27415 s,@DX_COND_rtf_FALSE@,$DX_COND_rtf_FALSE,;t t
27416 s,@DX_FLAG_xml@,$DX_FLAG_xml,;t t
27417 s,@DX_COND_xml_TRUE@,$DX_COND_xml_TRUE,;t t
27418 s,@DX_COND_xml_FALSE@,$DX_COND_xml_FALSE,;t t
27419 s,@DX_FLAG_chm@,$DX_FLAG_chm,;t t
27420 s,@DX_HHC@,$DX_HHC,;t t
27421 s,@ac_pt_DX_HHC@,$ac_pt_DX_HHC,;t t
27422 s,@DX_COND_chm_TRUE@,$DX_COND_chm_TRUE,;t t
27423 s,@DX_COND_chm_FALSE@,$DX_COND_chm_FALSE,;t t
27424 s,@DX_FLAG_chi@,$DX_FLAG_chi,;t t
27425 s,@DX_COND_chi_TRUE@,$DX_COND_chi_TRUE,;t t
27426 s,@DX_COND_chi_FALSE@,$DX_COND_chi_FALSE,;t t
27427 s,@DX_FLAG_html@,$DX_FLAG_html,;t t
27428 s,@DX_COND_html_TRUE@,$DX_COND_html_TRUE,;t t
27429 s,@DX_COND_html_FALSE@,$DX_COND_html_FALSE,;t t
27430 s,@DX_FLAG_ps@,$DX_FLAG_ps,;t t
27431 s,@DX_LATEX@,$DX_LATEX,;t t
27432 s,@ac_pt_DX_LATEX@,$ac_pt_DX_LATEX,;t t
27433 s,@DX_MAKEINDEX@,$DX_MAKEINDEX,;t t
27434 s,@ac_pt_DX_MAKEINDEX@,$ac_pt_DX_MAKEINDEX,;t t
27435 s,@DX_DVIPS@,$DX_DVIPS,;t t
27436 s,@ac_pt_DX_DVIPS@,$ac_pt_DX_DVIPS,;t t
27437 s,@DX_EGREP@,$DX_EGREP,;t t
27438 s,@ac_pt_DX_EGREP@,$ac_pt_DX_EGREP,;t t
27439 s,@DX_COND_ps_TRUE@,$DX_COND_ps_TRUE,;t t
27440 s,@DX_COND_ps_FALSE@,$DX_COND_ps_FALSE,;t t
27441 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27442 s,@DX_PDFLATEX@,$DX_PDFLATEX,;t t
27443 s,@ac_pt_DX_PDFLATEX@,$ac_pt_DX_PDFLATEX,;t t
27444 s,@DX_COND_pdf_TRUE@,$DX_COND_pdf_TRUE,;t t
27445 s,@DX_COND_pdf_FALSE@,$DX_COND_pdf_FALSE,;t t
27446 s,@DX_COND_latex_TRUE@,$DX_COND_latex_TRUE,;t t
27447 s,@DX_COND_latex_FALSE@,$DX_COND_latex_FALSE,;t t
27448 s,@DOXYGEN_PAPER_SIZE@,$DOXYGEN_PAPER_SIZE,;t t
27449 s,@CC@,$CC,;t t
27450 s,@CFLAGS@,$CFLAGS,;t t
27451 s,@LDFLAGS@,$LDFLAGS,;t t
27452 s,@CPPFLAGS@,$CPPFLAGS,;t t
27453 s,@ac_ct_CC@,$ac_ct_CC,;t t
27454 s,@EXEEXT@,$EXEEXT,;t t
27455 s,@OBJEXT@,$OBJEXT,;t t
27456 s,@DEPDIR@,$DEPDIR,;t t
27457 s,@am__include@,$am__include,;t t
27458 s,@am__quote@,$am__quote,;t t
27459 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27460 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27461 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27462 s,@CCDEPMODE@,$CCDEPMODE,;t t
27463 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27464 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27465 s,@CXX@,$CXX,;t t
27466 s,@CXXFLAGS@,$CXXFLAGS,;t t
27467 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27468 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27469 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27470 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27471 s,@build@,$build,;t t
27472 s,@build_cpu@,$build_cpu,;t t
27473 s,@build_vendor@,$build_vendor,;t t
27474 s,@build_os@,$build_os,;t t
27475 s,@host@,$host,;t t
27476 s,@host_cpu@,$host_cpu,;t t
27477 s,@host_vendor@,$host_vendor,;t t
27478 s,@host_os@,$host_os,;t t
27479 s,@EGREP@,$EGREP,;t t
27480 s,@LN_S@,$LN_S,;t t
27481 s,@ECHO@,$ECHO,;t t
27482 s,@AR@,$AR,;t t
27483 s,@ac_ct_AR@,$ac_ct_AR,;t t
27484 s,@RANLIB@,$RANLIB,;t t
27485 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27486 s,@CPP@,$CPP,;t t
27487 s,@CXXCPP@,$CXXCPP,;t t
27488 s,@F77@,$F77,;t t
27489 s,@FFLAGS@,$FFLAGS,;t t
27490 s,@ac_ct_F77@,$ac_ct_F77,;t t
27491 s,@LIBTOOL@,$LIBTOOL,;t t
27492 s,@acx_pthread_config@,$acx_pthread_config,;t t
27493 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
27494 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
27495 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
27496 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
27497 s,@LOG4SHIB_CONFIG@,$LOG4SHIB_CONFIG,;t t
27498 s,@LOG4CPP_CONFIG@,$LOG4CPP_CONFIG,;t t
27499 s,@XMLTOOLINGXMLDIR@,$XMLTOOLINGXMLDIR,;t t
27500 s,@OPENSAMLXMLDIR@,$OPENSAMLXMLDIR,;t t
27501 s,@LITE_LIBS@,$LITE_LIBS,;t t
27502 s,@XMLSEC_LIBS@,$XMLSEC_LIBS,;t t
27503 s,@NSAPI_INCLUDE@,$NSAPI_INCLUDE,;t t
27504 s,@BUILD_NSAPI_TRUE@,$BUILD_NSAPI_TRUE,;t t
27505 s,@BUILD_NSAPI_FALSE@,$BUILD_NSAPI_FALSE,;t t
27506 s,@FASTCGI_INCLUDE@,$FASTCGI_INCLUDE,;t t
27507 s,@FASTCGI_LDFLAGS@,$FASTCGI_LDFLAGS,;t t
27508 s,@FASTCGI_LIBS@,$FASTCGI_LIBS,;t t
27509 s,@BUILD_FASTCGI_TRUE@,$BUILD_FASTCGI_TRUE,;t t
27510 s,@BUILD_FASTCGI_FALSE@,$BUILD_FASTCGI_FALSE,;t t
27511 s,@MEMCACHED_INCLUDE@,$MEMCACHED_INCLUDE,;t t
27512 s,@MEMCACHED_LDFLAGS@,$MEMCACHED_LDFLAGS,;t t
27513 s,@MEMCACHED_LIBS@,$MEMCACHED_LIBS,;t t
27514 s,@BUILD_MEMCACHED_TRUE@,$BUILD_MEMCACHED_TRUE,;t t
27515 s,@BUILD_MEMCACHED_FALSE@,$BUILD_MEMCACHED_FALSE,;t t
27516 s,@xs@,$xs,;t t
27517 s,@APXS@,$APXS,;t t
27518 s,@APXS_CFLAGS@,$APXS_CFLAGS,;t t
27519 s,@APXS_INCLUDE@,$APXS_INCLUDE,;t t
27520 s,@APXS2@,$APXS2,;t t
27521 s,@APR_CONFIG@,$APR_CONFIG,;t t
27522 s,@APU_CONFIG@,$APU_CONFIG,;t t
27523 s,@APXS2_CFLAGS@,$APXS2_CFLAGS,;t t
27524 s,@APXS2_INCLUDE@,$APXS2_INCLUDE,;t t
27525 s,@APXS22@,$APXS22,;t t
27526 s,@APR1_CONFIG@,$APR1_CONFIG,;t t
27527 s,@APU1_CONFIG@,$APU1_CONFIG,;t t
27528 s,@APXS22_CFLAGS@,$APXS22_CFLAGS,;t t
27529 s,@APXS22_INCLUDE@,$APXS22_INCLUDE,;t t
27530 s,@BUILD_AP13_TRUE@,$BUILD_AP13_TRUE,;t t
27531 s,@BUILD_AP13_FALSE@,$BUILD_AP13_FALSE,;t t
27532 s,@BUILD_AP20_TRUE@,$BUILD_AP20_TRUE,;t t
27533 s,@BUILD_AP20_FALSE@,$BUILD_AP20_FALSE,;t t
27534 s,@BUILD_AP22_TRUE@,$BUILD_AP22_TRUE,;t t
27535 s,@BUILD_AP22_FALSE@,$BUILD_AP22_FALSE,;t t
27536 s,@ODBC_CONFIG@,$ODBC_CONFIG,;t t
27537 s,@ODBC_CFLAGS@,$ODBC_CFLAGS,;t t
27538 s,@ODBC_LIBS@,$ODBC_LIBS,;t t
27539 s,@WANT_SUBDIRS@,$WANT_SUBDIRS,;t t
27540 s,@LIBOBJS@,$LIBOBJS,;t t
27541 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27542 CEOF
27543
27544 _ACEOF
27545
27546   cat >>$CONFIG_STATUS <<\_ACEOF
27547   # Split the substitutions into bite-sized pieces for seds with
27548   # small command number limits, like on Digital OSF/1 and HP-UX.
27549   ac_max_sed_lines=48
27550   ac_sed_frag=1 # Number of current file.
27551   ac_beg=1 # First line for current file.
27552   ac_end=$ac_max_sed_lines # Line after last line for current file.
27553   ac_more_lines=:
27554   ac_sed_cmds=
27555   while $ac_more_lines; do
27556     if test $ac_beg -gt 1; then
27557       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27558     else
27559       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27560     fi
27561     if test ! -s $tmp/subs.frag; then
27562       ac_more_lines=false
27563     else
27564       # The purpose of the label and of the branching condition is to
27565       # speed up the sed processing (if there are no `@' at all, there
27566       # is no need to browse any of the substitutions).
27567       # These are the two extra sed commands mentioned above.
27568       (echo ':t
27569   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27570       if test -z "$ac_sed_cmds"; then
27571         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27572       else
27573         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27574       fi
27575       ac_sed_frag=`expr $ac_sed_frag + 1`
27576       ac_beg=$ac_end
27577       ac_end=`expr $ac_end + $ac_max_sed_lines`
27578     fi
27579   done
27580   if test -z "$ac_sed_cmds"; then
27581     ac_sed_cmds=cat
27582   fi
27583 fi # test -n "$CONFIG_FILES"
27584
27585 _ACEOF
27586 cat >>$CONFIG_STATUS <<\_ACEOF
27587 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27588   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27589   case $ac_file in
27590   - | *:- | *:-:* ) # input from stdin
27591         cat >$tmp/stdin
27592         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27593         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27594   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27595         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27596   * )   ac_file_in=$ac_file.in ;;
27597   esac
27598
27599   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27600   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27602          X"$ac_file" : 'X\(//\)[^/]' \| \
27603          X"$ac_file" : 'X\(//\)$' \| \
27604          X"$ac_file" : 'X\(/\)' \| \
27605          .     : '\(.\)' 2>/dev/null ||
27606 echo X"$ac_file" |
27607     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27608           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27609           /^X\(\/\/\)$/{ s//\1/; q; }
27610           /^X\(\/\).*/{ s//\1/; q; }
27611           s/.*/./; q'`
27612   { if $as_mkdir_p; then
27613     mkdir -p "$ac_dir"
27614   else
27615     as_dir="$ac_dir"
27616     as_dirs=
27617     while test ! -d "$as_dir"; do
27618       as_dirs="$as_dir $as_dirs"
27619       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27620 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27621          X"$as_dir" : 'X\(//\)[^/]' \| \
27622          X"$as_dir" : 'X\(//\)$' \| \
27623          X"$as_dir" : 'X\(/\)' \| \
27624          .     : '\(.\)' 2>/dev/null ||
27625 echo X"$as_dir" |
27626     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27627           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27628           /^X\(\/\/\)$/{ s//\1/; q; }
27629           /^X\(\/\).*/{ s//\1/; q; }
27630           s/.*/./; q'`
27631     done
27632     test ! -n "$as_dirs" || mkdir $as_dirs
27633   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27634 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27635    { (exit 1); exit 1; }; }; }
27636
27637   ac_builddir=.
27638
27639 if test "$ac_dir" != .; then
27640   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27641   # A "../" for each directory in $ac_dir_suffix.
27642   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27643 else
27644   ac_dir_suffix= ac_top_builddir=
27645 fi
27646
27647 case $srcdir in
27648   .)  # No --srcdir option.  We are building in place.
27649     ac_srcdir=.
27650     if test -z "$ac_top_builddir"; then
27651        ac_top_srcdir=.
27652     else
27653        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27654     fi ;;
27655   [\\/]* | ?:[\\/]* )  # Absolute path.
27656     ac_srcdir=$srcdir$ac_dir_suffix;
27657     ac_top_srcdir=$srcdir ;;
27658   *) # Relative path.
27659     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27660     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27661 esac
27662
27663 # Do not use `cd foo && pwd` to compute absolute paths, because
27664 # the directories may not exist.
27665 case `pwd` in
27666 .) ac_abs_builddir="$ac_dir";;
27667 *)
27668   case "$ac_dir" in
27669   .) ac_abs_builddir=`pwd`;;
27670   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27671   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27672   esac;;
27673 esac
27674 case $ac_abs_builddir in
27675 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27676 *)
27677   case ${ac_top_builddir}. in
27678   .) ac_abs_top_builddir=$ac_abs_builddir;;
27679   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27680   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27681   esac;;
27682 esac
27683 case $ac_abs_builddir in
27684 .) ac_abs_srcdir=$ac_srcdir;;
27685 *)
27686   case $ac_srcdir in
27687   .) ac_abs_srcdir=$ac_abs_builddir;;
27688   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27689   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27690   esac;;
27691 esac
27692 case $ac_abs_builddir in
27693 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27694 *)
27695   case $ac_top_srcdir in
27696   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27697   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27698   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27699   esac;;
27700 esac
27701
27702
27703   case $INSTALL in
27704   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27705   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27706   esac
27707
27708   if test x"$ac_file" != x-; then
27709     { echo "$as_me:$LINENO: creating $ac_file" >&5
27710 echo "$as_me: creating $ac_file" >&6;}
27711     rm -f "$ac_file"
27712   fi
27713   # Let's still pretend it is `configure' which instantiates (i.e., don't
27714   # use $as_me), people would be surprised to read:
27715   #    /* config.h.  Generated by config.status.  */
27716   if test x"$ac_file" = x-; then
27717     configure_input=
27718   else
27719     configure_input="$ac_file.  "
27720   fi
27721   configure_input=$configure_input"Generated from `echo $ac_file_in |
27722                                      sed 's,.*/,,'` by configure."
27723
27724   # First look for the input files in the build tree, otherwise in the
27725   # src tree.
27726   ac_file_inputs=`IFS=:
27727     for f in $ac_file_in; do
27728       case $f in
27729       -) echo $tmp/stdin ;;
27730       [\\/$]*)
27731          # Absolute (can't be DOS-style, as IFS=:)
27732          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27733 echo "$as_me: error: cannot find input file: $f" >&2;}
27734    { (exit 1); exit 1; }; }
27735          echo "$f";;
27736       *) # Relative
27737          if test -f "$f"; then
27738            # Build tree
27739            echo "$f"
27740          elif test -f "$srcdir/$f"; then
27741            # Source tree
27742            echo "$srcdir/$f"
27743          else
27744            # /dev/null tree
27745            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27746 echo "$as_me: error: cannot find input file: $f" >&2;}
27747    { (exit 1); exit 1; }; }
27748          fi;;
27749       esac
27750     done` || { (exit 1); exit 1; }
27751 _ACEOF
27752 cat >>$CONFIG_STATUS <<_ACEOF
27753   sed "$ac_vpsub
27754 $extrasub
27755 _ACEOF
27756 cat >>$CONFIG_STATUS <<\_ACEOF
27757 :t
27758 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27759 s,@configure_input@,$configure_input,;t t
27760 s,@srcdir@,$ac_srcdir,;t t
27761 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27762 s,@top_srcdir@,$ac_top_srcdir,;t t
27763 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27764 s,@builddir@,$ac_builddir,;t t
27765 s,@abs_builddir@,$ac_abs_builddir,;t t
27766 s,@top_builddir@,$ac_top_builddir,;t t
27767 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27768 s,@INSTALL@,$ac_INSTALL,;t t
27769 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27770   rm -f $tmp/stdin
27771   if test x"$ac_file" != x-; then
27772     mv $tmp/out $ac_file
27773   else
27774     cat $tmp/out
27775     rm -f $tmp/out
27776   fi
27777
27778 done
27779 _ACEOF
27780 cat >>$CONFIG_STATUS <<\_ACEOF
27781
27782 #
27783 # CONFIG_HEADER section.
27784 #
27785
27786 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27787 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27788 #
27789 # ac_d sets the value in "#define NAME VALUE" lines.
27790 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27791 ac_dB='[         ].*$,\1#\2'
27792 ac_dC=' '
27793 ac_dD=',;t'
27794 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27795 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27796 ac_uB='$,\1#\2define\3'
27797 ac_uC=' '
27798 ac_uD=',;t'
27799
27800 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27801   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27802   case $ac_file in
27803   - | *:- | *:-:* ) # input from stdin
27804         cat >$tmp/stdin
27805         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27806         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27807   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27808         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27809   * )   ac_file_in=$ac_file.in ;;
27810   esac
27811
27812   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27813 echo "$as_me: creating $ac_file" >&6;}
27814
27815   # First look for the input files in the build tree, otherwise in the
27816   # src tree.
27817   ac_file_inputs=`IFS=:
27818     for f in $ac_file_in; do
27819       case $f in
27820       -) echo $tmp/stdin ;;
27821       [\\/$]*)
27822          # Absolute (can't be DOS-style, as IFS=:)
27823          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27824 echo "$as_me: error: cannot find input file: $f" >&2;}
27825    { (exit 1); exit 1; }; }
27826          # Do quote $f, to prevent DOS paths from being IFS'd.
27827          echo "$f";;
27828       *) # Relative
27829          if test -f "$f"; then
27830            # Build tree
27831            echo "$f"
27832          elif test -f "$srcdir/$f"; then
27833            # Source tree
27834            echo "$srcdir/$f"
27835          else
27836            # /dev/null tree
27837            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27838 echo "$as_me: error: cannot find input file: $f" >&2;}
27839    { (exit 1); exit 1; }; }
27840          fi;;
27841       esac
27842     done` || { (exit 1); exit 1; }
27843   # Remove the trailing spaces.
27844   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27845
27846 _ACEOF
27847
27848 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27849 # `conftest.undefs', that substitutes the proper values into
27850 # config.h.in to produce config.h.  The first handles `#define'
27851 # templates, and the second `#undef' templates.
27852 # And first: Protect against being on the right side of a sed subst in
27853 # config.status.  Protect against being in an unquoted here document
27854 # in config.status.
27855 rm -f conftest.defines conftest.undefs
27856 # Using a here document instead of a string reduces the quoting nightmare.
27857 # Putting comments in sed scripts is not portable.
27858 #
27859 # `end' is used to avoid that the second main sed command (meant for
27860 # 0-ary CPP macros) applies to n-ary macro definitions.
27861 # See the Autoconf documentation for `clear'.
27862 cat >confdef2sed.sed <<\_ACEOF
27863 s/[\\&,]/\\&/g
27864 s,[\\$`],\\&,g
27865 t clear
27866 : clear
27867 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27868 t end
27869 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27870 : end
27871 _ACEOF
27872 # If some macros were called several times there might be several times
27873 # the same #defines, which is useless.  Nevertheless, we may not want to
27874 # sort them, since we want the *last* AC-DEFINE to be honored.
27875 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27876 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27877 rm -f confdef2sed.sed
27878
27879 # This sed command replaces #undef with comments.  This is necessary, for
27880 # example, in the case of _POSIX_SOURCE, which is predefined and required
27881 # on some systems where configure will not decide to define it.
27882 cat >>conftest.undefs <<\_ACEOF
27883 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27884 _ACEOF
27885
27886 # Break up conftest.defines because some shells have a limit on the size
27887 # of here documents, and old seds have small limits too (100 cmds).
27888 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27889 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27890 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27891 echo '  :' >>$CONFIG_STATUS
27892 rm -f conftest.tail
27893 while grep . conftest.defines >/dev/null
27894 do
27895   # Write a limited-size here document to $tmp/defines.sed.
27896   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27897   # Speed up: don't consider the non `#define' lines.
27898   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27899   # Work around the forget-to-reset-the-flag bug.
27900   echo 't clr' >>$CONFIG_STATUS
27901   echo ': clr' >>$CONFIG_STATUS
27902   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27903   echo 'CEOF
27904   sed -f $tmp/defines.sed $tmp/in >$tmp/out
27905   rm -f $tmp/in
27906   mv $tmp/out $tmp/in
27907 ' >>$CONFIG_STATUS
27908   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27909   rm -f conftest.defines
27910   mv conftest.tail conftest.defines
27911 done
27912 rm -f conftest.defines
27913 echo '  fi # grep' >>$CONFIG_STATUS
27914 echo >>$CONFIG_STATUS
27915
27916 # Break up conftest.undefs because some shells have a limit on the size
27917 # of here documents, and old seds have small limits too (100 cmds).
27918 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27919 rm -f conftest.tail
27920 while grep . conftest.undefs >/dev/null
27921 do
27922   # Write a limited-size here document to $tmp/undefs.sed.
27923   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27924   # Speed up: don't consider the non `#undef'
27925   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27926   # Work around the forget-to-reset-the-flag bug.
27927   echo 't clr' >>$CONFIG_STATUS
27928   echo ': clr' >>$CONFIG_STATUS
27929   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27930   echo 'CEOF
27931   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27932   rm -f $tmp/in
27933   mv $tmp/out $tmp/in
27934 ' >>$CONFIG_STATUS
27935   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27936   rm -f conftest.undefs
27937   mv conftest.tail conftest.undefs
27938 done
27939 rm -f conftest.undefs
27940
27941 cat >>$CONFIG_STATUS <<\_ACEOF
27942   # Let's still pretend it is `configure' which instantiates (i.e., don't
27943   # use $as_me), people would be surprised to read:
27944   #    /* config.h.  Generated by config.status.  */
27945   if test x"$ac_file" = x-; then
27946     echo "/* Generated by configure.  */" >$tmp/config.h
27947   else
27948     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27949   fi
27950   cat $tmp/in >>$tmp/config.h
27951   rm -f $tmp/in
27952   if test x"$ac_file" != x-; then
27953     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27954       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27955 echo "$as_me: $ac_file is unchanged" >&6;}
27956     else
27957       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27958 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27959          X"$ac_file" : 'X\(//\)[^/]' \| \
27960          X"$ac_file" : 'X\(//\)$' \| \
27961          X"$ac_file" : 'X\(/\)' \| \
27962          .     : '\(.\)' 2>/dev/null ||
27963 echo X"$ac_file" |
27964     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27965           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27966           /^X\(\/\/\)$/{ s//\1/; q; }
27967           /^X\(\/\).*/{ s//\1/; q; }
27968           s/.*/./; q'`
27969       { if $as_mkdir_p; then
27970     mkdir -p "$ac_dir"
27971   else
27972     as_dir="$ac_dir"
27973     as_dirs=
27974     while test ! -d "$as_dir"; do
27975       as_dirs="$as_dir $as_dirs"
27976       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27977 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27978          X"$as_dir" : 'X\(//\)[^/]' \| \
27979          X"$as_dir" : 'X\(//\)$' \| \
27980          X"$as_dir" : 'X\(/\)' \| \
27981          .     : '\(.\)' 2>/dev/null ||
27982 echo X"$as_dir" |
27983     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27984           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27985           /^X\(\/\/\)$/{ s//\1/; q; }
27986           /^X\(\/\).*/{ s//\1/; q; }
27987           s/.*/./; q'`
27988     done
27989     test ! -n "$as_dirs" || mkdir $as_dirs
27990   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27991 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27992    { (exit 1); exit 1; }; }; }
27993
27994       rm -f $ac_file
27995       mv $tmp/config.h $ac_file
27996     fi
27997   else
27998     cat $tmp/config.h
27999     rm -f $tmp/config.h
28000   fi
28001 # Compute $ac_file's index in $config_headers.
28002 _am_stamp_count=1
28003 for _am_header in $config_headers :; do
28004   case $_am_header in
28005     $ac_file | $ac_file:* )
28006       break ;;
28007     * )
28008       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28009   esac
28010 done
28011 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28012 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28013          X$ac_file : 'X\(//\)[^/]' \| \
28014          X$ac_file : 'X\(//\)$' \| \
28015          X$ac_file : 'X\(/\)' \| \
28016          .     : '\(.\)' 2>/dev/null ||
28017 echo X$ac_file |
28018     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28019           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28020           /^X\(\/\/\)$/{ s//\1/; q; }
28021           /^X\(\/\).*/{ s//\1/; q; }
28022           s/.*/./; q'`/stamp-h$_am_stamp_count
28023 done
28024 _ACEOF
28025 cat >>$CONFIG_STATUS <<\_ACEOF
28026
28027 #
28028 # CONFIG_COMMANDS section.
28029 #
28030 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28031   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28032   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28033   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28034 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28035          X"$ac_dest" : 'X\(//\)[^/]' \| \
28036          X"$ac_dest" : 'X\(//\)$' \| \
28037          X"$ac_dest" : 'X\(/\)' \| \
28038          .     : '\(.\)' 2>/dev/null ||
28039 echo X"$ac_dest" |
28040     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28041           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28042           /^X\(\/\/\)$/{ s//\1/; q; }
28043           /^X\(\/\).*/{ s//\1/; q; }
28044           s/.*/./; q'`
28045   { if $as_mkdir_p; then
28046     mkdir -p "$ac_dir"
28047   else
28048     as_dir="$ac_dir"
28049     as_dirs=
28050     while test ! -d "$as_dir"; do
28051       as_dirs="$as_dir $as_dirs"
28052       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28053 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28054          X"$as_dir" : 'X\(//\)[^/]' \| \
28055          X"$as_dir" : 'X\(//\)$' \| \
28056          X"$as_dir" : 'X\(/\)' \| \
28057          .     : '\(.\)' 2>/dev/null ||
28058 echo X"$as_dir" |
28059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28060           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28061           /^X\(\/\/\)$/{ s//\1/; q; }
28062           /^X\(\/\).*/{ s//\1/; q; }
28063           s/.*/./; q'`
28064     done
28065     test ! -n "$as_dirs" || mkdir $as_dirs
28066   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28067 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28068    { (exit 1); exit 1; }; }; }
28069
28070   ac_builddir=.
28071
28072 if test "$ac_dir" != .; then
28073   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28074   # A "../" for each directory in $ac_dir_suffix.
28075   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28076 else
28077   ac_dir_suffix= ac_top_builddir=
28078 fi
28079
28080 case $srcdir in
28081   .)  # No --srcdir option.  We are building in place.
28082     ac_srcdir=.
28083     if test -z "$ac_top_builddir"; then
28084        ac_top_srcdir=.
28085     else
28086        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28087     fi ;;
28088   [\\/]* | ?:[\\/]* )  # Absolute path.
28089     ac_srcdir=$srcdir$ac_dir_suffix;
28090     ac_top_srcdir=$srcdir ;;
28091   *) # Relative path.
28092     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28093     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28094 esac
28095
28096 # Do not use `cd foo && pwd` to compute absolute paths, because
28097 # the directories may not exist.
28098 case `pwd` in
28099 .) ac_abs_builddir="$ac_dir";;
28100 *)
28101   case "$ac_dir" in
28102   .) ac_abs_builddir=`pwd`;;
28103   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28104   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28105   esac;;
28106 esac
28107 case $ac_abs_builddir in
28108 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28109 *)
28110   case ${ac_top_builddir}. in
28111   .) ac_abs_top_builddir=$ac_abs_builddir;;
28112   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28113   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28114   esac;;
28115 esac
28116 case $ac_abs_builddir in
28117 .) ac_abs_srcdir=$ac_srcdir;;
28118 *)
28119   case $ac_srcdir in
28120   .) ac_abs_srcdir=$ac_abs_builddir;;
28121   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28122   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28123   esac;;
28124 esac
28125 case $ac_abs_builddir in
28126 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28127 *)
28128   case $ac_top_srcdir in
28129   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28130   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28131   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28132   esac;;
28133 esac
28134
28135
28136   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28137 echo "$as_me: executing $ac_dest commands" >&6;}
28138   case $ac_dest in
28139     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28140   # Strip MF so we end up with the name of the file.
28141   mf=`echo "$mf" | sed -e 's/:.*$//'`
28142   # Check whether this is an Automake generated Makefile or not.
28143   # We used to match only the files named `Makefile.in', but
28144   # some people rename them; so instead we look at the file content.
28145   # Grep'ing the first line is not enough: some people post-process
28146   # each Makefile.in and add a new line on top of each file to say so.
28147   # So let's grep whole file.
28148   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28149     dirpart=`(dirname "$mf") 2>/dev/null ||
28150 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28151          X"$mf" : 'X\(//\)[^/]' \| \
28152          X"$mf" : 'X\(//\)$' \| \
28153          X"$mf" : 'X\(/\)' \| \
28154          .     : '\(.\)' 2>/dev/null ||
28155 echo X"$mf" |
28156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28157           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28158           /^X\(\/\/\)$/{ s//\1/; q; }
28159           /^X\(\/\).*/{ s//\1/; q; }
28160           s/.*/./; q'`
28161   else
28162     continue
28163   fi
28164   # Extract the definition of DEPDIR, am__include, and am__quote
28165   # from the Makefile without running `make'.
28166   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28167   test -z "$DEPDIR" && continue
28168   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28169   test -z "am__include" && continue
28170   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28171   # When using ansi2knr, U may be empty or an underscore; expand it
28172   U=`sed -n 's/^U = //p' < "$mf"`
28173   # Find all dependency output files, they are included files with
28174   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28175   # simplest approach to changing $(DEPDIR) to its actual value in the
28176   # expansion.
28177   for file in `sed -n "
28178     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28179        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28180     # Make sure the directory exists.
28181     test -f "$dirpart/$file" && continue
28182     fdir=`(dirname "$file") 2>/dev/null ||
28183 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28184          X"$file" : 'X\(//\)[^/]' \| \
28185          X"$file" : 'X\(//\)$' \| \
28186          X"$file" : 'X\(/\)' \| \
28187          .     : '\(.\)' 2>/dev/null ||
28188 echo X"$file" |
28189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28190           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28191           /^X\(\/\/\)$/{ s//\1/; q; }
28192           /^X\(\/\).*/{ s//\1/; q; }
28193           s/.*/./; q'`
28194     { if $as_mkdir_p; then
28195     mkdir -p $dirpart/$fdir
28196   else
28197     as_dir=$dirpart/$fdir
28198     as_dirs=
28199     while test ! -d "$as_dir"; do
28200       as_dirs="$as_dir $as_dirs"
28201       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28203          X"$as_dir" : 'X\(//\)[^/]' \| \
28204          X"$as_dir" : 'X\(//\)$' \| \
28205          X"$as_dir" : 'X\(/\)' \| \
28206          .     : '\(.\)' 2>/dev/null ||
28207 echo X"$as_dir" |
28208     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28209           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28210           /^X\(\/\/\)$/{ s//\1/; q; }
28211           /^X\(\/\).*/{ s//\1/; q; }
28212           s/.*/./; q'`
28213     done
28214     test ! -n "$as_dirs" || mkdir $as_dirs
28215   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28216 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28217    { (exit 1); exit 1; }; }; }
28218
28219     # echo "creating $dirpart/$file"
28220     echo '# dummy' > "$dirpart/$file"
28221   done
28222 done
28223  ;;
28224   esac
28225 done
28226 _ACEOF
28227
28228 cat >>$CONFIG_STATUS <<\_ACEOF
28229
28230 { (exit 0); exit 0; }
28231 _ACEOF
28232 chmod +x $CONFIG_STATUS
28233 ac_clean_files=$ac_clean_files_save
28234
28235
28236 # configure is writing to config.log, and then calls config.status.
28237 # config.status does its own redirection, appending to config.log.
28238 # Unfortunately, on DOS this fails, as config.log is still kept open
28239 # by configure, so config.status won't be able to write to it; its
28240 # output is simply discarded.  So we exec the FD to /dev/null,
28241 # effectively closing config.log, so it can be properly (re)opened and
28242 # appended to by config.status.  When coming back to configure, we
28243 # need to make the FD available again.
28244 if test "$no_create" != yes; then
28245   ac_cs_success=:
28246   ac_config_status_args=
28247   test "$silent" = yes &&
28248     ac_config_status_args="$ac_config_status_args --quiet"
28249   exec 5>/dev/null
28250   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28251   exec 5>>config.log
28252   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28253   # would make configure fail if this is the last instruction.
28254   $ac_cs_success || { (exit 1); exit 1; }
28255 fi
28256