Upstream no longer install plugin .la files, so don't remove them
[shibboleth/sp.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for shibboleth 2.5.
4 #
5 # Report bugs to <https://issues.shibboleth.net/>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     PATH=/empty FPATH=/empty; export PATH FPATH
182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185   if (eval "$as_required") 2>/dev/null; then :
186   as_have_required=yes
187 else
188   as_have_required=no
189 fi
190   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192 else
193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 as_found=false
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 do
197   IFS=$as_save_IFS
198   test -z "$as_dir" && as_dir=.
199   as_found=:
200   case $as_dir in #(
201          /*)
202            for as_base in sh bash ksh sh5; do
203              # Try only shells that exist, to save several forks.
204              as_shell=$as_dir/$as_base
205              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207   CONFIG_SHELL=$as_shell as_have_required=yes
208                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209   break 2
210 fi
211 fi
212            done;;
213        esac
214   as_found=false
215 done
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218   CONFIG_SHELL=$SHELL as_have_required=yes
219 fi; }
220 IFS=$as_save_IFS
221
222
223       if test "x$CONFIG_SHELL" != x; then :
224   # We cannot yet assume a decent shell, so we have to provide a
225         # neutralization value for shells without unset; and this also
226         # works around shells that cannot unset nonexistent variables.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: https://issues.shibboleth.net/ about your system,
243 $0: including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541
542 test -n "$DJDIR" || exec 7<&0 </dev/null
543 exec 6>&1
544
545 # Name of the host.
546 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
547 # so uname gets run too.
548 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549
550 #
551 # Initializations.
552 #
553 ac_default_prefix=/usr/local
554 ac_clean_files=
555 ac_config_libobj_dir=.
556 LIBOBJS=
557 cross_compiling=no
558 subdirs=
559 MFLAGS=
560 MAKEFLAGS=
561
562 # Identity of this package.
563 PACKAGE_NAME='shibboleth'
564 PACKAGE_TARNAME='shibboleth'
565 PACKAGE_VERSION='2.5'
566 PACKAGE_STRING='shibboleth 2.5'
567 PACKAGE_BUGREPORT='https://issues.shibboleth.net/'
568 PACKAGE_URL=''
569
570 ac_unique_file="shibsp"
571 # Factoring default headers for most tests.
572 ac_includes_default="\
573 #include <stdio.h>
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
576 #endif
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
579 #endif
580 #ifdef STDC_HEADERS
581 # include <stdlib.h>
582 # include <stddef.h>
583 #else
584 # ifdef HAVE_STDLIB_H
585 #  include <stdlib.h>
586 # endif
587 #endif
588 #ifdef HAVE_STRING_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 #  include <memory.h>
591 # endif
592 # include <string.h>
593 #endif
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
596 #endif
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
599 #endif
600 #ifdef HAVE_STDINT_H
601 # include <stdint.h>
602 #endif
603 #ifdef HAVE_UNISTD_H
604 # include <unistd.h>
605 #endif"
606
607 ac_subst_vars='am__EXEEXT_FALSE
608 am__EXEEXT_TRUE
609 LTLIBOBJS
610 LIBOBJS
611 WANT_SUBDIRS
612 ODBC_LIBS
613 ODBC_CFLAGS
614 ODBC_CONFIG
615 BUILD_AP22_FALSE
616 BUILD_AP22_TRUE
617 BUILD_AP20_FALSE
618 BUILD_AP20_TRUE
619 BUILD_AP13_FALSE
620 BUILD_AP13_TRUE
621 APXS22_INCLUDE
622 APXS22_CFLAGS
623 APU1_CONFIG
624 APR1_CONFIG
625 APXS22
626 APXS2_INCLUDE
627 APXS2_CFLAGS
628 APU_CONFIG
629 APR_CONFIG
630 APXS2
631 APXS_INCLUDE
632 APXS_CFLAGS
633 APXS
634 xs
635 BUILD_MEMCACHED_FALSE
636 BUILD_MEMCACHED_TRUE
637 MEMCACHED_LIBS
638 MEMCACHED_LDFLAGS
639 MEMCACHED_INCLUDE
640 BUILD_FASTCGI_FALSE
641 BUILD_FASTCGI_TRUE
642 FASTCGI_LIBS
643 FASTCGI_LDFLAGS
644 FASTCGI_INCLUDE
645 BUILD_NSAPI_FALSE
646 BUILD_NSAPI_TRUE
647 NSAPI_INCLUDE
648 XMLSEC_LIBS
649 LITE_LIBS
650 OPENSAMLXMLDIR
651 XMLTOOLINGXMLDIR
652 LOG4CPP_CONFIG
653 LOG4SHIB_CONFIG
654 PKG_CONFIG
655 PTHREAD_CFLAGS
656 PTHREAD_LIBS
657 PTHREAD_CC
658 acx_pthread_config
659 CXXCPP
660 am__fastdepCXX_FALSE
661 am__fastdepCXX_TRUE
662 CXXDEPMODE
663 ac_ct_CXX
664 CXXFLAGS
665 CXX
666 DOXYGEN_PAPER_SIZE
667 DX_COND_latex_FALSE
668 DX_COND_latex_TRUE
669 DX_COND_pdf_FALSE
670 DX_COND_pdf_TRUE
671 DX_PDFLATEX
672 DX_FLAG_pdf
673 DX_COND_ps_FALSE
674 DX_COND_ps_TRUE
675 DX_EGREP
676 DX_DVIPS
677 DX_MAKEINDEX
678 DX_LATEX
679 DX_FLAG_ps
680 DX_COND_html_FALSE
681 DX_COND_html_TRUE
682 DX_FLAG_html
683 DX_COND_chi_FALSE
684 DX_COND_chi_TRUE
685 DX_FLAG_chi
686 DX_COND_chm_FALSE
687 DX_COND_chm_TRUE
688 DX_HHC
689 DX_FLAG_chm
690 DX_COND_xml_FALSE
691 DX_COND_xml_TRUE
692 DX_FLAG_xml
693 DX_COND_rtf_FALSE
694 DX_COND_rtf_TRUE
695 DX_FLAG_rtf
696 DX_COND_man_FALSE
697 DX_COND_man_TRUE
698 DX_FLAG_man
699 DX_COND_dot_FALSE
700 DX_COND_dot_TRUE
701 DX_DOT
702 DX_FLAG_dot
703 DX_COND_doc_FALSE
704 DX_COND_doc_TRUE
705 DX_PERL
706 DX_DOXYGEN
707 DX_FLAG_doc
708 DX_ENV
709 DX_DOCDIR
710 DX_CONFIG
711 DX_PROJECT
712 CPP
713 OTOOL64
714 OTOOL
715 LIPO
716 NMEDIT
717 DSYMUTIL
718 MANIFEST_TOOL
719 RANLIB
720 ac_ct_AR
721 AR
722 DLLTOOL
723 OBJDUMP
724 LN_S
725 NM
726 ac_ct_DUMPBIN
727 DUMPBIN
728 LD
729 FGREP
730 EGREP
731 GREP
732 SED
733 am__fastdepCC_FALSE
734 am__fastdepCC_TRUE
735 CCDEPMODE
736 AMDEPBACKSLASH
737 AMDEP_FALSE
738 AMDEP_TRUE
739 am__quote
740 am__include
741 DEPDIR
742 OBJEXT
743 EXEEXT
744 ac_ct_CC
745 CPPFLAGS
746 LDFLAGS
747 CFLAGS
748 CC
749 host_os
750 host_vendor
751 host_cpu
752 host
753 build_os
754 build_vendor
755 build_cpu
756 build
757 LIBTOOL
758 am__untar
759 am__tar
760 AMTAR
761 am__leading_dot
762 SET_MAKE
763 AWK
764 mkdir_p
765 MKDIR_P
766 INSTALL_STRIP_PROGRAM
767 STRIP
768 install_sh
769 MAKEINFO
770 AUTOHEADER
771 AUTOMAKE
772 AUTOCONF
773 ACLOCAL
774 VERSION
775 PACKAGE
776 CYGPATH_W
777 am__isrc
778 INSTALL_DATA
779 INSTALL_SCRIPT
780 INSTALL_PROGRAM
781 target_alias
782 host_alias
783 build_alias
784 LIBS
785 ECHO_T
786 ECHO_N
787 ECHO_C
788 DEFS
789 mandir
790 localedir
791 libdir
792 psdir
793 pdfdir
794 dvidir
795 htmldir
796 infodir
797 docdir
798 oldincludedir
799 includedir
800 localstatedir
801 sharedstatedir
802 sysconfdir
803 datadir
804 datarootdir
805 libexecdir
806 sbindir
807 bindir
808 program_transform_name
809 prefix
810 exec_prefix
811 PACKAGE_URL
812 PACKAGE_BUGREPORT
813 PACKAGE_STRING
814 PACKAGE_VERSION
815 PACKAGE_TARNAME
816 PACKAGE_NAME
817 PATH_SEPARATOR
818 SHELL'
819 ac_subst_files=''
820 ac_user_opts='
821 enable_option_checking
822 enable_static
823 enable_shared
824 with_pic
825 enable_fast_install
826 enable_dependency_tracking
827 with_gnu_ld
828 with_sysroot
829 enable_libtool_lock
830 enable_doxygen_doc
831 enable_doxygen_dot
832 enable_doxygen_man
833 enable_doxygen_rtf
834 enable_doxygen_xml
835 enable_doxygen_chm
836 enable_doxygen_chi
837 enable_doxygen_html
838 enable_doxygen_ps
839 enable_doxygen_pdf
840 enable_debug
841 with_openssl
842 with_log4shib
843 with_log4cpp
844 with_xerces
845 with_xmlsec
846 with_xmltooling
847 with_saml
848 enable_adfs
849 with_nsapi
850 with_fastcgi
851 with_memcached
852 enable_apache_13
853 with_apxs
854 enable_apache_20
855 with_apxs2
856 with_apr
857 with_apu
858 enable_apache_22
859 with_apxs22
860 with_apr1
861 with_apu1
862 enable_odbc
863 with_odbc
864 with_gssapi_includes
865 with_gssapi_libs
866 with_gssapi
867 '
868       ac_precious_vars='build_alias
869 host_alias
870 target_alias
871 CC
872 CFLAGS
873 LDFLAGS
874 LIBS
875 CPPFLAGS
876 CPP
877 DOXYGEN_PAPER_SIZE
878 CXX
879 CXXFLAGS
880 CCC
881 CXXCPP'
882
883
884 # Initialize some variables set by options.
885 ac_init_help=
886 ac_init_version=false
887 ac_unrecognized_opts=
888 ac_unrecognized_sep=
889 # The variables have the same names as the options, with
890 # dashes changed to underlines.
891 cache_file=/dev/null
892 exec_prefix=NONE
893 no_create=
894 no_recursion=
895 prefix=NONE
896 program_prefix=NONE
897 program_suffix=NONE
898 program_transform_name=s,x,x,
899 silent=
900 site=
901 srcdir=
902 verbose=
903 x_includes=NONE
904 x_libraries=NONE
905
906 # Installation directory options.
907 # These are left unexpanded so users can "make install exec_prefix=/foo"
908 # and all the variables that are supposed to be based on exec_prefix
909 # by default will actually change.
910 # Use braces instead of parens because sh, perl, etc. also accept them.
911 # (The list follows the same order as the GNU Coding Standards.)
912 bindir='${exec_prefix}/bin'
913 sbindir='${exec_prefix}/sbin'
914 libexecdir='${exec_prefix}/libexec'
915 datarootdir='${prefix}/share'
916 datadir='${datarootdir}'
917 sysconfdir='${prefix}/etc'
918 sharedstatedir='${prefix}/com'
919 localstatedir='${prefix}/var'
920 includedir='${prefix}/include'
921 oldincludedir='/usr/include'
922 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
923 infodir='${datarootdir}/info'
924 htmldir='${docdir}'
925 dvidir='${docdir}'
926 pdfdir='${docdir}'
927 psdir='${docdir}'
928 libdir='${exec_prefix}/lib'
929 localedir='${datarootdir}/locale'
930 mandir='${datarootdir}/man'
931
932 ac_prev=
933 ac_dashdash=
934 for ac_option
935 do
936   # If the previous option needs an argument, assign it.
937   if test -n "$ac_prev"; then
938     eval $ac_prev=\$ac_option
939     ac_prev=
940     continue
941   fi
942
943   case $ac_option in
944   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945   *=)   ac_optarg= ;;
946   *)    ac_optarg=yes ;;
947   esac
948
949   # Accept the important Cygnus configure options, so we can diagnose typos.
950
951   case $ac_dashdash$ac_option in
952   --)
953     ac_dashdash=yes ;;
954
955   -bindir | --bindir | --bindi | --bind | --bin | --bi)
956     ac_prev=bindir ;;
957   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
958     bindir=$ac_optarg ;;
959
960   -build | --build | --buil | --bui | --bu)
961     ac_prev=build_alias ;;
962   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963     build_alias=$ac_optarg ;;
964
965   -cache-file | --cache-file | --cache-fil | --cache-fi \
966   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967     ac_prev=cache_file ;;
968   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970     cache_file=$ac_optarg ;;
971
972   --config-cache | -C)
973     cache_file=config.cache ;;
974
975   -datadir | --datadir | --datadi | --datad)
976     ac_prev=datadir ;;
977   -datadir=* | --datadir=* | --datadi=* | --datad=*)
978     datadir=$ac_optarg ;;
979
980   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981   | --dataroo | --dataro | --datar)
982     ac_prev=datarootdir ;;
983   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985     datarootdir=$ac_optarg ;;
986
987   -disable-* | --disable-*)
988     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989     # Reject names that are not valid shell variable names.
990     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991       as_fn_error $? "invalid feature name: $ac_useropt"
992     ac_useropt_orig=$ac_useropt
993     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994     case $ac_user_opts in
995       *"
996 "enable_$ac_useropt"
997 "*) ;;
998       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999          ac_unrecognized_sep=', ';;
1000     esac
1001     eval enable_$ac_useropt=no ;;
1002
1003   -docdir | --docdir | --docdi | --doc | --do)
1004     ac_prev=docdir ;;
1005   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006     docdir=$ac_optarg ;;
1007
1008   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009     ac_prev=dvidir ;;
1010   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011     dvidir=$ac_optarg ;;
1012
1013   -enable-* | --enable-*)
1014     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015     # Reject names that are not valid shell variable names.
1016     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017       as_fn_error $? "invalid feature name: $ac_useropt"
1018     ac_useropt_orig=$ac_useropt
1019     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020     case $ac_user_opts in
1021       *"
1022 "enable_$ac_useropt"
1023 "*) ;;
1024       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025          ac_unrecognized_sep=', ';;
1026     esac
1027     eval enable_$ac_useropt=\$ac_optarg ;;
1028
1029   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031   | --exec | --exe | --ex)
1032     ac_prev=exec_prefix ;;
1033   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035   | --exec=* | --exe=* | --ex=*)
1036     exec_prefix=$ac_optarg ;;
1037
1038   -gas | --gas | --ga | --g)
1039     # Obsolete; use --with-gas.
1040     with_gas=yes ;;
1041
1042   -help | --help | --hel | --he | -h)
1043     ac_init_help=long ;;
1044   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045     ac_init_help=recursive ;;
1046   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047     ac_init_help=short ;;
1048
1049   -host | --host | --hos | --ho)
1050     ac_prev=host_alias ;;
1051   -host=* | --host=* | --hos=* | --ho=*)
1052     host_alias=$ac_optarg ;;
1053
1054   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055     ac_prev=htmldir ;;
1056   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057   | --ht=*)
1058     htmldir=$ac_optarg ;;
1059
1060   -includedir | --includedir | --includedi | --included | --include \
1061   | --includ | --inclu | --incl | --inc)
1062     ac_prev=includedir ;;
1063   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064   | --includ=* | --inclu=* | --incl=* | --inc=*)
1065     includedir=$ac_optarg ;;
1066
1067   -infodir | --infodir | --infodi | --infod | --info | --inf)
1068     ac_prev=infodir ;;
1069   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070     infodir=$ac_optarg ;;
1071
1072   -libdir | --libdir | --libdi | --libd)
1073     ac_prev=libdir ;;
1074   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075     libdir=$ac_optarg ;;
1076
1077   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078   | --libexe | --libex | --libe)
1079     ac_prev=libexecdir ;;
1080   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081   | --libexe=* | --libex=* | --libe=*)
1082     libexecdir=$ac_optarg ;;
1083
1084   -localedir | --localedir | --localedi | --localed | --locale)
1085     ac_prev=localedir ;;
1086   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087     localedir=$ac_optarg ;;
1088
1089   -localstatedir | --localstatedir | --localstatedi | --localstated \
1090   | --localstate | --localstat | --localsta | --localst | --locals)
1091     ac_prev=localstatedir ;;
1092   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094     localstatedir=$ac_optarg ;;
1095
1096   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097     ac_prev=mandir ;;
1098   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099     mandir=$ac_optarg ;;
1100
1101   -nfp | --nfp | --nf)
1102     # Obsolete; use --without-fp.
1103     with_fp=no ;;
1104
1105   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106   | --no-cr | --no-c | -n)
1107     no_create=yes ;;
1108
1109   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111     no_recursion=yes ;;
1112
1113   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115   | --oldin | --oldi | --old | --ol | --o)
1116     ac_prev=oldincludedir ;;
1117   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120     oldincludedir=$ac_optarg ;;
1121
1122   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123     ac_prev=prefix ;;
1124   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125     prefix=$ac_optarg ;;
1126
1127   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128   | --program-pre | --program-pr | --program-p)
1129     ac_prev=program_prefix ;;
1130   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132     program_prefix=$ac_optarg ;;
1133
1134   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135   | --program-suf | --program-su | --program-s)
1136     ac_prev=program_suffix ;;
1137   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139     program_suffix=$ac_optarg ;;
1140
1141   -program-transform-name | --program-transform-name \
1142   | --program-transform-nam | --program-transform-na \
1143   | --program-transform-n | --program-transform- \
1144   | --program-transform | --program-transfor \
1145   | --program-transfo | --program-transf \
1146   | --program-trans | --program-tran \
1147   | --progr-tra | --program-tr | --program-t)
1148     ac_prev=program_transform_name ;;
1149   -program-transform-name=* | --program-transform-name=* \
1150   | --program-transform-nam=* | --program-transform-na=* \
1151   | --program-transform-n=* | --program-transform-=* \
1152   | --program-transform=* | --program-transfor=* \
1153   | --program-transfo=* | --program-transf=* \
1154   | --program-trans=* | --program-tran=* \
1155   | --progr-tra=* | --program-tr=* | --program-t=*)
1156     program_transform_name=$ac_optarg ;;
1157
1158   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159     ac_prev=pdfdir ;;
1160   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161     pdfdir=$ac_optarg ;;
1162
1163   -psdir | --psdir | --psdi | --psd | --ps)
1164     ac_prev=psdir ;;
1165   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166     psdir=$ac_optarg ;;
1167
1168   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169   | -silent | --silent | --silen | --sile | --sil)
1170     silent=yes ;;
1171
1172   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173     ac_prev=sbindir ;;
1174   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175   | --sbi=* | --sb=*)
1176     sbindir=$ac_optarg ;;
1177
1178   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180   | --sharedst | --shareds | --shared | --share | --shar \
1181   | --sha | --sh)
1182     ac_prev=sharedstatedir ;;
1183   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186   | --sha=* | --sh=*)
1187     sharedstatedir=$ac_optarg ;;
1188
1189   -site | --site | --sit)
1190     ac_prev=site ;;
1191   -site=* | --site=* | --sit=*)
1192     site=$ac_optarg ;;
1193
1194   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195     ac_prev=srcdir ;;
1196   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197     srcdir=$ac_optarg ;;
1198
1199   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200   | --syscon | --sysco | --sysc | --sys | --sy)
1201     ac_prev=sysconfdir ;;
1202   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204     sysconfdir=$ac_optarg ;;
1205
1206   -target | --target | --targe | --targ | --tar | --ta | --t)
1207     ac_prev=target_alias ;;
1208   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209     target_alias=$ac_optarg ;;
1210
1211   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212     verbose=yes ;;
1213
1214   -version | --version | --versio | --versi | --vers | -V)
1215     ac_init_version=: ;;
1216
1217   -with-* | --with-*)
1218     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219     # Reject names that are not valid shell variable names.
1220     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221       as_fn_error $? "invalid package name: $ac_useropt"
1222     ac_useropt_orig=$ac_useropt
1223     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224     case $ac_user_opts in
1225       *"
1226 "with_$ac_useropt"
1227 "*) ;;
1228       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229          ac_unrecognized_sep=', ';;
1230     esac
1231     eval with_$ac_useropt=\$ac_optarg ;;
1232
1233   -without-* | --without-*)
1234     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235     # Reject names that are not valid shell variable names.
1236     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237       as_fn_error $? "invalid package name: $ac_useropt"
1238     ac_useropt_orig=$ac_useropt
1239     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240     case $ac_user_opts in
1241       *"
1242 "with_$ac_useropt"
1243 "*) ;;
1244       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245          ac_unrecognized_sep=', ';;
1246     esac
1247     eval with_$ac_useropt=no ;;
1248
1249   --x)
1250     # Obsolete; use --with-x.
1251     with_x=yes ;;
1252
1253   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254   | --x-incl | --x-inc | --x-in | --x-i)
1255     ac_prev=x_includes ;;
1256   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258     x_includes=$ac_optarg ;;
1259
1260   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262     ac_prev=x_libraries ;;
1263   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265     x_libraries=$ac_optarg ;;
1266
1267   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1268 Try \`$0 --help' for more information"
1269     ;;
1270
1271   *=*)
1272     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273     # Reject names that are not valid shell variable names.
1274     case $ac_envvar in #(
1275       '' | [0-9]* | *[!_$as_cr_alnum]* )
1276       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1277     esac
1278     eval $ac_envvar=\$ac_optarg
1279     export $ac_envvar ;;
1280
1281   *)
1282     # FIXME: should be removed in autoconf 3.0.
1283     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287     ;;
1288
1289   esac
1290 done
1291
1292 if test -n "$ac_prev"; then
1293   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294   as_fn_error $? "missing argument to $ac_option"
1295 fi
1296
1297 if test -n "$ac_unrecognized_opts"; then
1298   case $enable_option_checking in
1299     no) ;;
1300     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1301     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302   esac
1303 fi
1304
1305 # Check all directory arguments for consistency.
1306 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307                 datadir sysconfdir sharedstatedir localstatedir includedir \
1308                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309                 libdir localedir mandir
1310 do
1311   eval ac_val=\$$ac_var
1312   # Remove trailing slashes.
1313   case $ac_val in
1314     */ )
1315       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316       eval $ac_var=\$ac_val;;
1317   esac
1318   # Be sure to have absolute directory names.
1319   case $ac_val in
1320     [\\/$]* | ?:[\\/]* )  continue;;
1321     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322   esac
1323   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1324 done
1325
1326 # There might be people who depend on the old broken behavior: `$host'
1327 # used to hold the argument of --host etc.
1328 # FIXME: To remove some day.
1329 build=$build_alias
1330 host=$host_alias
1331 target=$target_alias
1332
1333 # FIXME: To remove some day.
1334 if test "x$host_alias" != x; then
1335   if test "x$build_alias" = x; then
1336     cross_compiling=maybe
1337     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1338     If a cross compiler is detected then cross compile mode will be used" >&2
1339   elif test "x$build_alias" != "x$host_alias"; then
1340     cross_compiling=yes
1341   fi
1342 fi
1343
1344 ac_tool_prefix=
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347 test "$silent" = yes && exec 6>/dev/null
1348
1349
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353   as_fn_error $? "working directory cannot be determined"
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355   as_fn_error $? "pwd does not report name of working directory"
1356
1357
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360   ac_srcdir_defaulted=yes
1361   # Try the directory containing this script, then the parent directory.
1362   ac_confdir=`$as_dirname -- "$as_myself" ||
1363 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364          X"$as_myself" : 'X\(//\)[^/]' \| \
1365          X"$as_myself" : 'X\(//\)$' \| \
1366          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367 $as_echo X"$as_myself" |
1368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\/\)[^/].*/{
1373             s//\1/
1374             q
1375           }
1376           /^X\(\/\/\)$/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\).*/{
1381             s//\1/
1382             q
1383           }
1384           s/.*/./; q'`
1385   srcdir=$ac_confdir
1386   if test ! -r "$srcdir/$ac_unique_file"; then
1387     srcdir=..
1388   fi
1389 else
1390   ac_srcdir_defaulted=no
1391 fi
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1395 fi
1396 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 ac_abs_confdir=`(
1398         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1399         pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402   srcdir=.
1403 fi
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 for ac_var in $ac_precious_vars; do
1411   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412   eval ac_env_${ac_var}_value=\$${ac_var}
1413   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
1416
1417 #
1418 # Report the --help message.
1419 #
1420 if test "$ac_init_help" = "long"; then
1421   # Omit some internal or obsolete options to make the list less imposing.
1422   # This message is too long to be a string in the A/UX 3.1 sh.
1423   cat <<_ACEOF
1424 \`configure' configures shibboleth 2.5 to adapt to many kinds of systems.
1425
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE.  See below for descriptions of some of the useful variables.
1430
1431 Defaults for the options are specified in brackets.
1432
1433 Configuration:
1434   -h, --help              display this help and exit
1435       --help=short        display options specific to this package
1436       --help=recursive    display the short help of all the included packages
1437   -V, --version           display version information and exit
1438   -q, --quiet, --silent   do not print \`checking ...' messages
1439       --cache-file=FILE   cache test results in FILE [disabled]
1440   -C, --config-cache      alias for \`--cache-file=config.cache'
1441   -n, --no-create         do not create output files
1442       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1443
1444 Installation directories:
1445   --prefix=PREFIX         install architecture-independent files in PREFIX
1446                           [$ac_default_prefix]
1447   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1448                           [PREFIX]
1449
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1454
1455 For better control, use the options below.
1456
1457 Fine tuning of the installation directories:
1458   --bindir=DIR            user executables [EPREFIX/bin]
1459   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1460   --libexecdir=DIR        program executables [EPREFIX/libexec]
1461   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1462   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1463   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1464   --libdir=DIR            object code libraries [EPREFIX/lib]
1465   --includedir=DIR        C header files [PREFIX/include]
1466   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1467   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1468   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1469   --infodir=DIR           info documentation [DATAROOTDIR/info]
1470   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1471   --mandir=DIR            man documentation [DATAROOTDIR/man]
1472   --docdir=DIR            documentation root [DATAROOTDIR/doc/shibboleth]
1473   --htmldir=DIR           html documentation [DOCDIR]
1474   --dvidir=DIR            dvi documentation [DOCDIR]
1475   --pdfdir=DIR            pdf documentation [DOCDIR]
1476   --psdir=DIR             ps documentation [DOCDIR]
1477 _ACEOF
1478
1479   cat <<\_ACEOF
1480
1481 Program names:
1482   --program-prefix=PREFIX            prepend PREFIX to installed program names
1483   --program-suffix=SUFFIX            append SUFFIX to installed program names
1484   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1485
1486 System types:
1487   --build=BUILD     configure for building on BUILD [guessed]
1488   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1489 _ACEOF
1490 fi
1491
1492 if test -n "$ac_init_help"; then
1493   case $ac_init_help in
1494      short | recursive ) echo "Configuration of shibboleth 2.5:";;
1495    esac
1496   cat <<\_ACEOF
1497
1498 Optional Features:
1499   --disable-option-checking  ignore unrecognized --enable/--with options
1500   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1501   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1502   --enable-static[=PKGS]  build static libraries [default=no]
1503   --enable-shared[=PKGS]  build shared libraries [default=yes]
1504   --enable-fast-install[=PKGS]
1505                           optimize for fast installation [default=yes]
1506   --disable-dependency-tracking  speeds up one-time build
1507   --enable-dependency-tracking   do not reject slow dependency extractors
1508   --disable-libtool-lock  avoid locking (might break parallel builds)
1509   --disable-doxygen-doc   don't generate any doxygen documentation
1510   --enable-doxygen-dot    generate graphics for doxygen documentation
1511   --enable-doxygen-man    generate doxygen manual pages
1512   --enable-doxygen-rtf    generate doxygen RTF documentation
1513   --enable-doxygen-xml    generate doxygen XML documentation
1514   --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1515   --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1516                           file
1517   --disable-doxygen-html  don't generate doxygen plain HTML documentation
1518   --enable-doxygen-ps     generate doxygen PostScript documentation
1519   --enable-doxygen-pdf    generate doxygen PDF documentation
1520   --enable-debug          Have GCC compile with symbols (Default = no)
1521   --disable-adfs          don't build the ADFS module
1522   --enable-apache-13      enable the Apache 1.3 module
1523   --enable-apache-20      enable the Apache 2.0 module
1524   --enable-apache-22      enable the Apache 2.2 module
1525   --disable-odbc          disable the ODBC Storage Service
1526
1527 Optional Packages:
1528   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1529   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1530   --with-pic              try to use only PIC/non-PIC objects [default=use
1531                           both]
1532   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1533   --with-sysroot=DIR Search for dependent libraries within DIR
1534                         (or the compiler's sysroot if not specified).
1535   --with-openssl=PATH     where openssl is installed
1536   --with-log4shib=PATH    where log4shib-config is installed
1537   --with-log4cpp=PATH     where log4cpp-config is installed
1538   --with-xerces=PATH      where xerces-c is installed
1539   --with-xmlsec=PATH      where xmlsec is installed
1540   --with-xmltooling=PATH  where xmltooling is installed
1541   --with-saml=PATH        where saml is installed
1542   --with-nsapi=DIR        Build NSAPI module for Netscape/iPlanet/SunONE
1543   --with-fastcgi=DIR      Build FastCGI support
1544   --with-memcached=DIR    Build Memcached support
1545   --with-apxs=FILE        Specifies where to find the Apache 1.3 apxs script.
1546   --with-apxs2=FILE       Specifies where to find the Apache 2.0 apxs script.
1547   --with-apr=PATH         where apr-config is installed
1548   --with-apu=PATH         where apu-config is installed
1549   --with-apxs22=FILE      Specifies where to find the Apache 2.2 apxs script.
1550   --with-apr1=PATH        where apr-1-config is installed
1551   --with-apu1=PATH        where apu-1-config is installed
1552   --with-odbc=PATH        directory where odbc is installed
1553   --with-gssapi-includes=DIR
1554                           Specify location of GSSAPI header
1555   --with-gssapi-libs=DIR  Specify location of GSSAPI libs
1556   --with-gssapi=DIR       Where to look for GSSAPI
1557
1558 Some influential environment variables:
1559   CC          C compiler command
1560   CFLAGS      C compiler flags
1561   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1562               nonstandard directory <lib dir>
1563   LIBS        libraries to pass to the linker, e.g. -l<library>
1564   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1565               you have headers in a nonstandard directory <include dir>
1566   CPP         C preprocessor
1567   DOXYGEN_PAPER_SIZE
1568               a4wide (default), a4, letter, legal or executive
1569   CXX         C++ compiler command
1570   CXXFLAGS    C++ compiler flags
1571   CXXCPP      C++ preprocessor
1572
1573 Use these variables to override the choices made by `configure' or to help
1574 it to find libraries and programs with nonstandard names/locations.
1575
1576 Report bugs to <https://issues.shibboleth.net/>.
1577 _ACEOF
1578 ac_status=$?
1579 fi
1580
1581 if test "$ac_init_help" = "recursive"; then
1582   # If there are subdirs, report their specific --help.
1583   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1584     test -d "$ac_dir" ||
1585       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1586       continue
1587     ac_builddir=.
1588
1589 case "$ac_dir" in
1590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 *)
1592   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1593   # A ".." for each directory in $ac_dir_suffix.
1594   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1595   case $ac_top_builddir_sub in
1596   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1598   esac ;;
1599 esac
1600 ac_abs_top_builddir=$ac_pwd
1601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1602 # for backward compatibility:
1603 ac_top_builddir=$ac_top_build_prefix
1604
1605 case $srcdir in
1606   .)  # We are building in place.
1607     ac_srcdir=.
1608     ac_top_srcdir=$ac_top_builddir_sub
1609     ac_abs_top_srcdir=$ac_pwd ;;
1610   [\\/]* | ?:[\\/]* )  # Absolute name.
1611     ac_srcdir=$srcdir$ac_dir_suffix;
1612     ac_top_srcdir=$srcdir
1613     ac_abs_top_srcdir=$srcdir ;;
1614   *) # Relative name.
1615     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1616     ac_top_srcdir=$ac_top_build_prefix$srcdir
1617     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1618 esac
1619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1620
1621     cd "$ac_dir" || { ac_status=$?; continue; }
1622     # Check for guested configure.
1623     if test -f "$ac_srcdir/configure.gnu"; then
1624       echo &&
1625       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1626     elif test -f "$ac_srcdir/configure"; then
1627       echo &&
1628       $SHELL "$ac_srcdir/configure" --help=recursive
1629     else
1630       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1631     fi || ac_status=$?
1632     cd "$ac_pwd" || { ac_status=$?; break; }
1633   done
1634 fi
1635
1636 test -n "$ac_init_help" && exit $ac_status
1637 if $ac_init_version; then
1638   cat <<\_ACEOF
1639 shibboleth configure 2.5
1640 generated by GNU Autoconf 2.67
1641
1642 Copyright (C) 2010 Free Software Foundation, Inc.
1643 This configure script is free software; the Free Software Foundation
1644 gives unlimited permission to copy, distribute and modify it.
1645 _ACEOF
1646   exit
1647 fi
1648
1649 ## ------------------------ ##
1650 ## Autoconf initialization. ##
1651 ## ------------------------ ##
1652
1653 # ac_fn_c_try_compile LINENO
1654 # --------------------------
1655 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_compile ()
1657 {
1658   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659   rm -f conftest.$ac_objext
1660   if { { ac_try="$ac_compile"
1661 case "(($ac_try" in
1662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663   *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667   (eval "$ac_compile") 2>conftest.err
1668   ac_status=$?
1669   if test -s conftest.err; then
1670     grep -v '^ *+' conftest.err >conftest.er1
1671     cat conftest.er1 >&5
1672     mv -f conftest.er1 conftest.err
1673   fi
1674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675   test $ac_status = 0; } && {
1676          test -z "$ac_c_werror_flag" ||
1677          test ! -s conftest.err
1678        } && test -s conftest.$ac_objext; then :
1679   ac_retval=0
1680 else
1681   $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684         ac_retval=1
1685 fi
1686   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687   as_fn_set_status $ac_retval
1688
1689 } # ac_fn_c_try_compile
1690
1691 # ac_fn_c_try_link LINENO
1692 # -----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_link ()
1695 {
1696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697   rm -f conftest.$ac_objext conftest$ac_exeext
1698   if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701   *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705   (eval "$ac_link") 2>conftest.err
1706   ac_status=$?
1707   if test -s conftest.err; then
1708     grep -v '^ *+' conftest.err >conftest.er1
1709     cat conftest.er1 >&5
1710     mv -f conftest.er1 conftest.err
1711   fi
1712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713   test $ac_status = 0; } && {
1714          test -z "$ac_c_werror_flag" ||
1715          test ! -s conftest.err
1716        } && test -s conftest$ac_exeext && {
1717          test "$cross_compiling" = yes ||
1718          $as_test_x conftest$ac_exeext
1719        }; then :
1720   ac_retval=0
1721 else
1722   $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725         ac_retval=1
1726 fi
1727   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729   # interfere with the next link command; also delete a directory that is
1730   # left behind by Apple's compiler.  We do this before executing the actions.
1731   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733   as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_link
1736
1737 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists and can be compiled using the include files in
1740 # INCLUDES, setting the cache variable VAR accordingly.
1741 ac_fn_c_check_header_compile ()
1742 {
1743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval "test \"\${$3+set}\"" = set; then :
1747   $as_echo_n "(cached) " >&6
1748 else
1749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h.  */
1751 $4
1752 #include <$2>
1753 _ACEOF
1754 if ac_fn_c_try_compile "$LINENO"; then :
1755   eval "$3=yes"
1756 else
1757   eval "$3=no"
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 fi
1761 eval ac_res=\$$3
1762                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765
1766 } # ac_fn_c_check_header_compile
1767
1768 # ac_fn_c_try_cpp LINENO
1769 # ----------------------
1770 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_cpp ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   if { { ac_try="$ac_cpp conftest.$ac_ext"
1775 case "(($ac_try" in
1776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777   *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1782   ac_status=$?
1783   if test -s conftest.err; then
1784     grep -v '^ *+' conftest.err >conftest.er1
1785     cat conftest.er1 >&5
1786     mv -f conftest.er1 conftest.err
1787   fi
1788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789   test $ac_status = 0; } > conftest.i && {
1790          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1791          test ! -s conftest.err
1792        }; then :
1793   ac_retval=0
1794 else
1795   $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798     ac_retval=1
1799 fi
1800   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801   as_fn_set_status $ac_retval
1802
1803 } # ac_fn_c_try_cpp
1804
1805 # ac_fn_c_try_run LINENO
1806 # ----------------------
1807 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1808 # that executables *can* be run.
1809 ac_fn_c_try_run ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   if { { ac_try="$ac_link"
1813 case "(($ac_try" in
1814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815   *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819   (eval "$ac_link") 2>&5
1820   ac_status=$?
1821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1823   { { case "(($ac_try" in
1824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825   *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829   (eval "$ac_try") 2>&5
1830   ac_status=$?
1831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832   test $ac_status = 0; }; }; then :
1833   ac_retval=0
1834 else
1835   $as_echo "$as_me: program exited with status $ac_status" >&5
1836        $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1838
1839        ac_retval=$ac_status
1840 fi
1841   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1842   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843   as_fn_set_status $ac_retval
1844
1845 } # ac_fn_c_try_run
1846
1847 # ac_fn_c_check_func LINENO FUNC VAR
1848 # ----------------------------------
1849 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1850 ac_fn_c_check_func ()
1851 {
1852   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval "test \"\${$3+set}\"" = set; then :
1856   $as_echo_n "(cached) " >&6
1857 else
1858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h.  */
1860 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1862 #define $2 innocuous_$2
1863
1864 /* System header to define __stub macros and hopefully few prototypes,
1865     which can conflict with char $2 (); below.
1866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1867     <limits.h> exists even on freestanding compilers.  */
1868
1869 #ifdef __STDC__
1870 # include <limits.h>
1871 #else
1872 # include <assert.h>
1873 #endif
1874
1875 #undef $2
1876
1877 /* Override any GCC internal prototype to avoid an error.
1878    Use char because int might match the return type of a GCC
1879    builtin and then its argument prototype would still apply.  */
1880 #ifdef __cplusplus
1881 extern "C"
1882 #endif
1883 char $2 ();
1884 /* The GNU C library defines this for functions which it implements
1885     to always fail with ENOSYS.  Some functions are actually named
1886     something starting with __ and the normal name is an alias.  */
1887 #if defined __stub_$2 || defined __stub___$2
1888 choke me
1889 #endif
1890
1891 int
1892 main ()
1893 {
1894 return $2 ();
1895   ;
1896   return 0;
1897 }
1898 _ACEOF
1899 if ac_fn_c_try_link "$LINENO"; then :
1900   eval "$3=yes"
1901 else
1902   eval "$3=no"
1903 fi
1904 rm -f core conftest.err conftest.$ac_objext \
1905     conftest$ac_exeext conftest.$ac_ext
1906 fi
1907 eval ac_res=\$$3
1908                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911
1912 } # ac_fn_c_check_func
1913
1914 # ac_fn_cxx_try_compile LINENO
1915 # ----------------------------
1916 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1917 ac_fn_cxx_try_compile ()
1918 {
1919   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920   rm -f conftest.$ac_objext
1921   if { { ac_try="$ac_compile"
1922 case "(($ac_try" in
1923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924   *) ac_try_echo=$ac_try;;
1925 esac
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928   (eval "$ac_compile") 2>conftest.err
1929   ac_status=$?
1930   if test -s conftest.err; then
1931     grep -v '^ *+' conftest.err >conftest.er1
1932     cat conftest.er1 >&5
1933     mv -f conftest.er1 conftest.err
1934   fi
1935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936   test $ac_status = 0; } && {
1937          test -z "$ac_cxx_werror_flag" ||
1938          test ! -s conftest.err
1939        } && test -s conftest.$ac_objext; then :
1940   ac_retval=0
1941 else
1942   $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1944
1945         ac_retval=1
1946 fi
1947   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948   as_fn_set_status $ac_retval
1949
1950 } # ac_fn_cxx_try_compile
1951
1952 # ac_fn_cxx_try_cpp LINENO
1953 # ------------------------
1954 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_cxx_try_cpp ()
1956 {
1957   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958   if { { ac_try="$ac_cpp conftest.$ac_ext"
1959 case "(($ac_try" in
1960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961   *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1966   ac_status=$?
1967   if test -s conftest.err; then
1968     grep -v '^ *+' conftest.err >conftest.er1
1969     cat conftest.er1 >&5
1970     mv -f conftest.er1 conftest.err
1971   fi
1972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973   test $ac_status = 0; } > conftest.i && {
1974          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1975          test ! -s conftest.err
1976        }; then :
1977   ac_retval=0
1978 else
1979   $as_echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1981
1982     ac_retval=1
1983 fi
1984   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985   as_fn_set_status $ac_retval
1986
1987 } # ac_fn_cxx_try_cpp
1988
1989 # ac_fn_cxx_try_link LINENO
1990 # -------------------------
1991 # Try to link conftest.$ac_ext, and return whether this succeeded.
1992 ac_fn_cxx_try_link ()
1993 {
1994   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995   rm -f conftest.$ac_objext conftest$ac_exeext
1996   if { { ac_try="$ac_link"
1997 case "(($ac_try" in
1998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999   *) ac_try_echo=$ac_try;;
2000 esac
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003   (eval "$ac_link") 2>conftest.err
2004   ac_status=$?
2005   if test -s conftest.err; then
2006     grep -v '^ *+' conftest.err >conftest.er1
2007     cat conftest.er1 >&5
2008     mv -f conftest.er1 conftest.err
2009   fi
2010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011   test $ac_status = 0; } && {
2012          test -z "$ac_cxx_werror_flag" ||
2013          test ! -s conftest.err
2014        } && test -s conftest$ac_exeext && {
2015          test "$cross_compiling" = yes ||
2016          $as_test_x conftest$ac_exeext
2017        }; then :
2018   ac_retval=0
2019 else
2020   $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2022
2023         ac_retval=1
2024 fi
2025   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2026   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2027   # interfere with the next link command; also delete a directory that is
2028   # left behind by Apple's compiler.  We do this before executing the actions.
2029   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031   as_fn_set_status $ac_retval
2032
2033 } # ac_fn_cxx_try_link
2034
2035 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2036 # -------------------------------------------
2037 # Tests whether TYPE exists after having included INCLUDES, setting cache
2038 # variable VAR accordingly.
2039 ac_fn_c_check_type ()
2040 {
2041   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval "test \"\${$3+set}\"" = set; then :
2045   $as_echo_n "(cached) " >&6
2046 else
2047   eval "$3=no"
2048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h.  */
2050 $4
2051 int
2052 main ()
2053 {
2054 if (sizeof ($2))
2055          return 0;
2056   ;
2057   return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h.  */
2063 $4
2064 int
2065 main ()
2066 {
2067 if (sizeof (($2)))
2068             return 0;
2069   ;
2070   return 0;
2071 }
2072 _ACEOF
2073 if ac_fn_c_try_compile "$LINENO"; then :
2074
2075 else
2076   eval "$3=yes"
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 fi
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 fi
2082 eval ac_res=\$$3
2083                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084 $as_echo "$ac_res" >&6; }
2085   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086
2087 } # ac_fn_c_check_type
2088
2089 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2090 # ---------------------------------------------
2091 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2092 # accordingly.
2093 ac_fn_c_check_decl ()
2094 {
2095   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096   as_decl_name=`echo $2|sed 's/ *(.*//'`
2097   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2099 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2100 if eval "test \"\${$3+set}\"" = set; then :
2101   $as_echo_n "(cached) " >&6
2102 else
2103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h.  */
2105 $4
2106 int
2107 main ()
2108 {
2109 #ifndef $as_decl_name
2110 #ifdef __cplusplus
2111   (void) $as_decl_use;
2112 #else
2113   (void) $as_decl_name;
2114 #endif
2115 #endif
2116
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122   eval "$3=yes"
2123 else
2124   eval "$3=no"
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 fi
2128 eval ac_res=\$$3
2129                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132
2133 } # ac_fn_c_check_decl
2134
2135 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2136 # -------------------------------------------------------
2137 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2138 # the include files in INCLUDES and setting the cache variable VAR
2139 # accordingly.
2140 ac_fn_c_check_header_mongrel ()
2141 {
2142   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143   if eval "test \"\${$3+set}\"" = set; then :
2144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2145 $as_echo_n "checking for $2... " >&6; }
2146 if eval "test \"\${$3+set}\"" = set; then :
2147   $as_echo_n "(cached) " >&6
2148 fi
2149 eval ac_res=\$$3
2150                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151 $as_echo "$ac_res" >&6; }
2152 else
2153   # Is the header compilable?
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2155 $as_echo_n "checking $2 usability... " >&6; }
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h.  */
2158 $4
2159 #include <$2>
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162   ac_header_compiler=yes
2163 else
2164   ac_header_compiler=no
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2168 $as_echo "$ac_header_compiler" >&6; }
2169
2170 # Is the header present?
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2172 $as_echo_n "checking $2 presence... " >&6; }
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h.  */
2175 #include <$2>
2176 _ACEOF
2177 if ac_fn_c_try_cpp "$LINENO"; then :
2178   ac_header_preproc=yes
2179 else
2180   ac_header_preproc=no
2181 fi
2182 rm -f conftest.err conftest.i conftest.$ac_ext
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2184 $as_echo "$ac_header_preproc" >&6; }
2185
2186 # So?  What about this header?
2187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2188   yes:no: )
2189     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2190 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2191     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2192 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2193     ;;
2194   no:yes:* )
2195     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2196 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2197     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2198 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2199     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2200 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2201     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2202 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2203     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2204 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2205 ( $as_echo "## --------------------------------------------- ##
2206 ## Report this to https://issues.shibboleth.net/ ##
2207 ## --------------------------------------------- ##"
2208      ) | sed "s/^/$as_me: WARNING:     /" >&2
2209     ;;
2210 esac
2211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2212 $as_echo_n "checking for $2... " >&6; }
2213 if eval "test \"\${$3+set}\"" = set; then :
2214   $as_echo_n "(cached) " >&6
2215 else
2216   eval "$3=\$ac_header_compiler"
2217 fi
2218 eval ac_res=\$$3
2219                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2220 $as_echo "$ac_res" >&6; }
2221 fi
2222   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223
2224 } # ac_fn_c_check_header_mongrel
2225
2226 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2227 # ---------------------------------------------------------
2228 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2229 # the include files in INCLUDES and setting the cache variable VAR
2230 # accordingly.
2231 ac_fn_cxx_check_header_mongrel ()
2232 {
2233   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234   if eval "test \"\${$3+set}\"" = set; then :
2235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2236 $as_echo_n "checking for $2... " >&6; }
2237 if eval "test \"\${$3+set}\"" = set; then :
2238   $as_echo_n "(cached) " >&6
2239 fi
2240 eval ac_res=\$$3
2241                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 else
2244   # Is the header compilable?
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2246 $as_echo_n "checking $2 usability... " >&6; }
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h.  */
2249 $4
2250 #include <$2>
2251 _ACEOF
2252 if ac_fn_cxx_try_compile "$LINENO"; then :
2253   ac_header_compiler=yes
2254 else
2255   ac_header_compiler=no
2256 fi
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2259 $as_echo "$ac_header_compiler" >&6; }
2260
2261 # Is the header present?
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2263 $as_echo_n "checking $2 presence... " >&6; }
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h.  */
2266 #include <$2>
2267 _ACEOF
2268 if ac_fn_cxx_try_cpp "$LINENO"; then :
2269   ac_header_preproc=yes
2270 else
2271   ac_header_preproc=no
2272 fi
2273 rm -f conftest.err conftest.i conftest.$ac_ext
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2275 $as_echo "$ac_header_preproc" >&6; }
2276
2277 # So?  What about this header?
2278 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2279   yes:no: )
2280     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2281 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2282     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2283 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2284     ;;
2285   no:yes:* )
2286     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2287 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2288     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2289 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2290     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2291 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2292     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2293 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2294     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2295 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2296 ( $as_echo "## --------------------------------------------- ##
2297 ## Report this to https://issues.shibboleth.net/ ##
2298 ## --------------------------------------------- ##"
2299      ) | sed "s/^/$as_me: WARNING:     /" >&2
2300     ;;
2301 esac
2302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2303 $as_echo_n "checking for $2... " >&6; }
2304 if eval "test \"\${$3+set}\"" = set; then :
2305   $as_echo_n "(cached) " >&6
2306 else
2307   eval "$3=\$ac_header_compiler"
2308 fi
2309 eval ac_res=\$$3
2310                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 fi
2313   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2314
2315 } # ac_fn_cxx_check_header_mongrel
2316
2317 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2318 # ---------------------------------------------------------
2319 # Tests whether HEADER exists and can be compiled using the include files in
2320 # INCLUDES, setting the cache variable VAR accordingly.
2321 ac_fn_cxx_check_header_compile ()
2322 {
2323   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2325 $as_echo_n "checking for $2... " >&6; }
2326 if eval "test \"\${$3+set}\"" = set; then :
2327   $as_echo_n "(cached) " >&6
2328 else
2329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h.  */
2331 $4
2332 #include <$2>
2333 _ACEOF
2334 if ac_fn_cxx_try_compile "$LINENO"; then :
2335   eval "$3=yes"
2336 else
2337   eval "$3=no"
2338 fi
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 fi
2341 eval ac_res=\$$3
2342                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2345
2346 } # ac_fn_cxx_check_header_compile
2347 cat >config.log <<_ACEOF
2348 This file contains any messages produced by compilers while
2349 running configure, to aid debugging if configure makes a mistake.
2350
2351 It was created by shibboleth $as_me 2.5, which was
2352 generated by GNU Autoconf 2.67.  Invocation command line was
2353
2354   $ $0 $@
2355
2356 _ACEOF
2357 exec 5>>config.log
2358 {
2359 cat <<_ASUNAME
2360 ## --------- ##
2361 ## Platform. ##
2362 ## --------- ##
2363
2364 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2365 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2366 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2367 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2368 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2369
2370 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2371 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2372
2373 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2374 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2375 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2376 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2377 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2378 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2379 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2380
2381 _ASUNAME
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     $as_echo "PATH: $as_dir"
2389   done
2390 IFS=$as_save_IFS
2391
2392 } >&5
2393
2394 cat >&5 <<_ACEOF
2395
2396
2397 ## ----------- ##
2398 ## Core tests. ##
2399 ## ----------- ##
2400
2401 _ACEOF
2402
2403
2404 # Keep a trace of the command line.
2405 # Strip out --no-create and --no-recursion so they do not pile up.
2406 # Strip out --silent because we don't want to record it for future runs.
2407 # Also quote any args containing shell meta-characters.
2408 # Make two passes to allow for proper duplicate-argument suppression.
2409 ac_configure_args=
2410 ac_configure_args0=
2411 ac_configure_args1=
2412 ac_must_keep_next=false
2413 for ac_pass in 1 2
2414 do
2415   for ac_arg
2416   do
2417     case $ac_arg in
2418     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2419     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2420     | -silent | --silent | --silen | --sile | --sil)
2421       continue ;;
2422     *\'*)
2423       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2424     esac
2425     case $ac_pass in
2426     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2427     2)
2428       as_fn_append ac_configure_args1 " '$ac_arg'"
2429       if test $ac_must_keep_next = true; then
2430         ac_must_keep_next=false # Got value, back to normal.
2431       else
2432         case $ac_arg in
2433           *=* | --config-cache | -C | -disable-* | --disable-* \
2434           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2435           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2436           | -with-* | --with-* | -without-* | --without-* | --x)
2437             case "$ac_configure_args0 " in
2438               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2439             esac
2440             ;;
2441           -* ) ac_must_keep_next=true ;;
2442         esac
2443       fi
2444       as_fn_append ac_configure_args " '$ac_arg'"
2445       ;;
2446     esac
2447   done
2448 done
2449 { ac_configure_args0=; unset ac_configure_args0;}
2450 { ac_configure_args1=; unset ac_configure_args1;}
2451
2452 # When interrupted or exit'd, cleanup temporary files, and complete
2453 # config.log.  We remove comments because anyway the quotes in there
2454 # would cause problems or look ugly.
2455 # WARNING: Use '\'' to represent an apostrophe within the trap.
2456 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2457 trap 'exit_status=$?
2458   # Save into config.log some information that might help in debugging.
2459   {
2460     echo
2461
2462     $as_echo "## ---------------- ##
2463 ## Cache variables. ##
2464 ## ---------------- ##"
2465     echo
2466     # The following way of writing the cache mishandles newlines in values,
2467 (
2468   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2469     eval ac_val=\$$ac_var
2470     case $ac_val in #(
2471     *${as_nl}*)
2472       case $ac_var in #(
2473       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2474 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2475       esac
2476       case $ac_var in #(
2477       _ | IFS | as_nl) ;; #(
2478       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2479       *) { eval $ac_var=; unset $ac_var;} ;;
2480       esac ;;
2481     esac
2482   done
2483   (set) 2>&1 |
2484     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2485     *${as_nl}ac_space=\ *)
2486       sed -n \
2487         "s/'\''/'\''\\\\'\'''\''/g;
2488           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2489       ;; #(
2490     *)
2491       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2492       ;;
2493     esac |
2494     sort
2495 )
2496     echo
2497
2498     $as_echo "## ----------------- ##
2499 ## Output variables. ##
2500 ## ----------------- ##"
2501     echo
2502     for ac_var in $ac_subst_vars
2503     do
2504       eval ac_val=\$$ac_var
2505       case $ac_val in
2506       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507       esac
2508       $as_echo "$ac_var='\''$ac_val'\''"
2509     done | sort
2510     echo
2511
2512     if test -n "$ac_subst_files"; then
2513       $as_echo "## ------------------- ##
2514 ## File substitutions. ##
2515 ## ------------------- ##"
2516       echo
2517       for ac_var in $ac_subst_files
2518       do
2519         eval ac_val=\$$ac_var
2520         case $ac_val in
2521         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2522         esac
2523         $as_echo "$ac_var='\''$ac_val'\''"
2524       done | sort
2525       echo
2526     fi
2527
2528     if test -s confdefs.h; then
2529       $as_echo "## ----------- ##
2530 ## confdefs.h. ##
2531 ## ----------- ##"
2532       echo
2533       cat confdefs.h
2534       echo
2535     fi
2536     test "$ac_signal" != 0 &&
2537       $as_echo "$as_me: caught signal $ac_signal"
2538     $as_echo "$as_me: exit $exit_status"
2539   } >&5
2540   rm -f core *.core core.conftest.* &&
2541     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2542     exit $exit_status
2543 ' 0
2544 for ac_signal in 1 2 13 15; do
2545   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2546 done
2547 ac_signal=0
2548
2549 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2550 rm -f -r conftest* confdefs.h
2551
2552 $as_echo "/* confdefs.h */" > confdefs.h
2553
2554 # Predefined preprocessor variables.
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_NAME "$PACKAGE_NAME"
2558 _ACEOF
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2562 _ACEOF
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2566 _ACEOF
2567
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_STRING "$PACKAGE_STRING"
2570 _ACEOF
2571
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2574 _ACEOF
2575
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_URL "$PACKAGE_URL"
2578 _ACEOF
2579
2580
2581 # Let the site file select an alternate cache file if it wants to.
2582 # Prefer an explicitly selected file to automatically selected ones.
2583 ac_site_file1=NONE
2584 ac_site_file2=NONE
2585 if test -n "$CONFIG_SITE"; then
2586   # We do not want a PATH search for config.site.
2587   case $CONFIG_SITE in #((
2588     -*)  ac_site_file1=./$CONFIG_SITE;;
2589     */*) ac_site_file1=$CONFIG_SITE;;
2590     *)   ac_site_file1=./$CONFIG_SITE;;
2591   esac
2592 elif test "x$prefix" != xNONE; then
2593   ac_site_file1=$prefix/share/config.site
2594   ac_site_file2=$prefix/etc/config.site
2595 else
2596   ac_site_file1=$ac_default_prefix/share/config.site
2597   ac_site_file2=$ac_default_prefix/etc/config.site
2598 fi
2599 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2600 do
2601   test "x$ac_site_file" = xNONE && continue
2602   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2603     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2604 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2605     sed 's/^/| /' "$ac_site_file" >&5
2606     . "$ac_site_file" \
2607       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 as_fn_error $? "failed to load site script $ac_site_file
2610 See \`config.log' for more details" "$LINENO" 5 ; }
2611   fi
2612 done
2613
2614 if test -r "$cache_file"; then
2615   # Some versions of bash will fail to source /dev/null (special files
2616   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2617   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2618     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2619 $as_echo "$as_me: loading cache $cache_file" >&6;}
2620     case $cache_file in
2621       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2622       *)                      . "./$cache_file";;
2623     esac
2624   fi
2625 else
2626   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2627 $as_echo "$as_me: creating cache $cache_file" >&6;}
2628   >$cache_file
2629 fi
2630
2631 # Check that the precious variables saved in the cache have kept the same
2632 # value.
2633 ac_cache_corrupted=false
2634 for ac_var in $ac_precious_vars; do
2635   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2636   eval ac_new_set=\$ac_env_${ac_var}_set
2637   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2638   eval ac_new_val=\$ac_env_${ac_var}_value
2639   case $ac_old_set,$ac_new_set in
2640     set,)
2641       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2642 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2643       ac_cache_corrupted=: ;;
2644     ,set)
2645       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2646 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2647       ac_cache_corrupted=: ;;
2648     ,);;
2649     *)
2650       if test "x$ac_old_val" != "x$ac_new_val"; then
2651         # differences in whitespace do not lead to failure.
2652         ac_old_val_w=`echo x $ac_old_val`
2653         ac_new_val_w=`echo x $ac_new_val`
2654         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2655           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2656 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2657           ac_cache_corrupted=:
2658         else
2659           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2660 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2661           eval $ac_var=\$ac_old_val
2662         fi
2663         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2664 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2665         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2666 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2667       fi;;
2668   esac
2669   # Pass precious variables to config.status.
2670   if test "$ac_new_set" = set; then
2671     case $ac_new_val in
2672     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2673     *) ac_arg=$ac_var=$ac_new_val ;;
2674     esac
2675     case " $ac_configure_args " in
2676       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2677       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2678     esac
2679   fi
2680 done
2681 if $ac_cache_corrupted; then
2682   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2685 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2686   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2687 fi
2688 ## -------------------- ##
2689 ## Main body of script. ##
2690 ## -------------------- ##
2691
2692 ac_ext=c
2693 ac_cpp='$CPP $CPPFLAGS'
2694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2697
2698
2699
2700 ac_aux_dir=
2701 for ac_dir in build-aux "$srcdir"/build-aux; do
2702   if test -f "$ac_dir/install-sh"; then
2703     ac_aux_dir=$ac_dir
2704     ac_install_sh="$ac_aux_dir/install-sh -c"
2705     break
2706   elif test -f "$ac_dir/install.sh"; then
2707     ac_aux_dir=$ac_dir
2708     ac_install_sh="$ac_aux_dir/install.sh -c"
2709     break
2710   elif test -f "$ac_dir/shtool"; then
2711     ac_aux_dir=$ac_dir
2712     ac_install_sh="$ac_aux_dir/shtool install -c"
2713     break
2714   fi
2715 done
2716 if test -z "$ac_aux_dir"; then
2717   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2718 fi
2719
2720 # These three variables are undocumented and unsupported,
2721 # and are intended to be withdrawn in a future Autoconf release.
2722 # They can cause serious problems if a builder's source tree is in a directory
2723 # whose full name contains unusual characters.
2724 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2725 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2726 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2727
2728
2729
2730 am__api_version='1.11'
2731
2732 # Find a good install program.  We prefer a C program (faster),
2733 # so one script is as good as another.  But avoid the broken or
2734 # incompatible versions:
2735 # SysV /etc/install, /usr/sbin/install
2736 # SunOS /usr/etc/install
2737 # IRIX /sbin/install
2738 # AIX /bin/install
2739 # AmigaOS /C/install, which installs bootblocks on floppy discs
2740 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2741 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2742 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2743 # OS/2's system install, which has a completely different semantic
2744 # ./install, which can be erroneously created by make from ./install.sh.
2745 # Reject install programs that cannot install multiple files.
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2747 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2748 if test -z "$INSTALL"; then
2749 if test "${ac_cv_path_install+set}" = set; then :
2750   $as_echo_n "(cached) " >&6
2751 else
2752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755   IFS=$as_save_IFS
2756   test -z "$as_dir" && as_dir=.
2757     # Account for people who put trailing slashes in PATH elements.
2758 case $as_dir/ in #((
2759   ./ | .// | /[cC]/* | \
2760   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2761   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2762   /usr/ucb/* ) ;;
2763   *)
2764     # OSF1 and SCO ODT 3.0 have their own names for install.
2765     # Don't use installbsd from OSF since it installs stuff as root
2766     # by default.
2767     for ac_prog in ginstall scoinst install; do
2768       for ac_exec_ext in '' $ac_executable_extensions; do
2769         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2770           if test $ac_prog = install &&
2771             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2772             # AIX install.  It has an incompatible calling convention.
2773             :
2774           elif test $ac_prog = install &&
2775             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2776             # program-specific install script used by HP pwplus--don't use.
2777             :
2778           else
2779             rm -rf conftest.one conftest.two conftest.dir
2780             echo one > conftest.one
2781             echo two > conftest.two
2782             mkdir conftest.dir
2783             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2784               test -s conftest.one && test -s conftest.two &&
2785               test -s conftest.dir/conftest.one &&
2786               test -s conftest.dir/conftest.two
2787             then
2788               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2789               break 3
2790             fi
2791           fi
2792         fi
2793       done
2794     done
2795     ;;
2796 esac
2797
2798   done
2799 IFS=$as_save_IFS
2800
2801 rm -rf conftest.one conftest.two conftest.dir
2802
2803 fi
2804   if test "${ac_cv_path_install+set}" = set; then
2805     INSTALL=$ac_cv_path_install
2806   else
2807     # As a last resort, use the slow shell script.  Don't cache a
2808     # value for INSTALL within a source directory, because that will
2809     # break other packages using the cache if that directory is
2810     # removed, or if the value is a relative name.
2811     INSTALL=$ac_install_sh
2812   fi
2813 fi
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2815 $as_echo "$INSTALL" >&6; }
2816
2817 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2818 # It thinks the first close brace ends the variable substitution.
2819 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2820
2821 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2822
2823 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2826 $as_echo_n "checking whether build environment is sane... " >&6; }
2827 # Just in case
2828 sleep 1
2829 echo timestamp > conftest.file
2830 # Reject unsafe characters in $srcdir or the absolute working directory
2831 # name.  Accept space and tab only in the latter.
2832 am_lf='
2833 '
2834 case `pwd` in
2835   *[\\\"\#\$\&\'\`$am_lf]*)
2836     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2837 esac
2838 case $srcdir in
2839   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2840     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2841 esac
2842
2843 # Do `set' in a subshell so we don't clobber the current shell's
2844 # arguments.  Must try -L first in case configure is actually a
2845 # symlink; some systems play weird games with the mod time of symlinks
2846 # (eg FreeBSD returns the mod time of the symlink's containing
2847 # directory).
2848 if (
2849    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2850    if test "$*" = "X"; then
2851       # -L didn't work.
2852       set X `ls -t "$srcdir/configure" conftest.file`
2853    fi
2854    rm -f conftest.file
2855    if test "$*" != "X $srcdir/configure conftest.file" \
2856       && test "$*" != "X conftest.file $srcdir/configure"; then
2857
2858       # If neither matched, then we have a broken ls.  This can happen
2859       # if, for instance, CONFIG_SHELL is bash and it inherits a
2860       # broken ls alias from the environment.  This has actually
2861       # happened.  Such a system could not be considered "sane".
2862       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2863 alias in your environment" "$LINENO" 5
2864    fi
2865
2866    test "$2" = conftest.file
2867    )
2868 then
2869    # Ok.
2870    :
2871 else
2872    as_fn_error $? "newly created file is older than distributed files!
2873 Check your system clock" "$LINENO" 5
2874 fi
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2876 $as_echo "yes" >&6; }
2877 test "$program_prefix" != NONE &&
2878   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2879 # Use a double $ so make ignores it.
2880 test "$program_suffix" != NONE &&
2881   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2882 # Double any \ or $.
2883 # By default was `s,x,x', remove it if useless.
2884 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2885 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2886
2887 # expand $ac_aux_dir to an absolute path
2888 am_aux_dir=`cd $ac_aux_dir && pwd`
2889
2890 if test x"${MISSING+set}" != xset; then
2891   case $am_aux_dir in
2892   *\ * | *\     *)
2893     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2894   *)
2895     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2896   esac
2897 fi
2898 # Use eval to expand $SHELL
2899 if eval "$MISSING --run true"; then
2900   am_missing_run="$MISSING --run "
2901 else
2902   am_missing_run=
2903   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2904 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2905 fi
2906
2907 if test x"${install_sh}" != xset; then
2908   case $am_aux_dir in
2909   *\ * | *\     *)
2910     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2911   *)
2912     install_sh="\${SHELL} $am_aux_dir/install-sh"
2913   esac
2914 fi
2915
2916 # Installed binaries are usually stripped using `strip' when the user
2917 # run `make install-strip'.  However `strip' might not be the right
2918 # tool to use in cross-compilation environments, therefore Automake
2919 # will honor the `STRIP' environment variable to overrule this program.
2920 if test "$cross_compiling" != no; then
2921   if test -n "$ac_tool_prefix"; then
2922   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2923 set dummy ${ac_tool_prefix}strip; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if test "${ac_cv_prog_STRIP+set}" = set; then :
2927   $as_echo_n "(cached) " >&6
2928 else
2929   if test -n "$STRIP"; then
2930   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935   IFS=$as_save_IFS
2936   test -z "$as_dir" && as_dir=.
2937     for ac_exec_ext in '' $ac_executable_extensions; do
2938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941     break 2
2942   fi
2943 done
2944   done
2945 IFS=$as_save_IFS
2946
2947 fi
2948 fi
2949 STRIP=$ac_cv_prog_STRIP
2950 if test -n "$STRIP"; then
2951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2952 $as_echo "$STRIP" >&6; }
2953 else
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2956 fi
2957
2958
2959 fi
2960 if test -z "$ac_cv_prog_STRIP"; then
2961   ac_ct_STRIP=$STRIP
2962   # Extract the first word of "strip", so it can be a program name with args.
2963 set dummy strip; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2967   $as_echo_n "(cached) " >&6
2968 else
2969   if test -n "$ac_ct_STRIP"; then
2970   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975   IFS=$as_save_IFS
2976   test -z "$as_dir" && as_dir=.
2977     for ac_exec_ext in '' $ac_executable_extensions; do
2978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979     ac_cv_prog_ac_ct_STRIP="strip"
2980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981     break 2
2982   fi
2983 done
2984   done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2990 if test -n "$ac_ct_STRIP"; then
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2992 $as_echo "$ac_ct_STRIP" >&6; }
2993 else
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 fi
2997
2998   if test "x$ac_ct_STRIP" = x; then
2999     STRIP=":"
3000   else
3001     case $cross_compiling:$ac_tool_warned in
3002 yes:)
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005 ac_tool_warned=yes ;;
3006 esac
3007     STRIP=$ac_ct_STRIP
3008   fi
3009 else
3010   STRIP="$ac_cv_prog_STRIP"
3011 fi
3012
3013 fi
3014 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3015
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3017 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3018 if test -z "$MKDIR_P"; then
3019   if test "${ac_cv_path_mkdir+set}" = set; then :
3020   $as_echo_n "(cached) " >&6
3021 else
3022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3024 do
3025   IFS=$as_save_IFS
3026   test -z "$as_dir" && as_dir=.
3027     for ac_prog in mkdir gmkdir; do
3028          for ac_exec_ext in '' $ac_executable_extensions; do
3029            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3030            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3031              'mkdir (GNU coreutils) '* | \
3032              'mkdir (coreutils) '* | \
3033              'mkdir (fileutils) '4.1*)
3034                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3035                break 3;;
3036            esac
3037          done
3038        done
3039   done
3040 IFS=$as_save_IFS
3041
3042 fi
3043
3044   test -d ./--version && rmdir ./--version
3045   if test "${ac_cv_path_mkdir+set}" = set; then
3046     MKDIR_P="$ac_cv_path_mkdir -p"
3047   else
3048     # As a last resort, use the slow shell script.  Don't cache a
3049     # value for MKDIR_P within a source directory, because that will
3050     # break other packages using the cache if that directory is
3051     # removed, or if the value is a relative name.
3052     MKDIR_P="$ac_install_sh -d"
3053   fi
3054 fi
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3056 $as_echo "$MKDIR_P" >&6; }
3057
3058 mkdir_p="$MKDIR_P"
3059 case $mkdir_p in
3060   [\\/$]* | ?:[\\/]*) ;;
3061   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3062 esac
3063
3064 for ac_prog in gawk mawk nawk awk
3065 do
3066   # Extract the first word of "$ac_prog", so it can be a program name with args.
3067 set dummy $ac_prog; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if test "${ac_cv_prog_AWK+set}" = set; then :
3071   $as_echo_n "(cached) " >&6
3072 else
3073   if test -n "$AWK"; then
3074   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079   IFS=$as_save_IFS
3080   test -z "$as_dir" && as_dir=.
3081     for ac_exec_ext in '' $ac_executable_extensions; do
3082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083     ac_cv_prog_AWK="$ac_prog"
3084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085     break 2
3086   fi
3087 done
3088   done
3089 IFS=$as_save_IFS
3090
3091 fi
3092 fi
3093 AWK=$ac_cv_prog_AWK
3094 if test -n "$AWK"; then
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3096 $as_echo "$AWK" >&6; }
3097 else
3098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 fi
3101
3102
3103   test -n "$AWK" && break
3104 done
3105
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3107 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3108 set x ${MAKE-make}
3109 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3110 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3111   $as_echo_n "(cached) " >&6
3112 else
3113   cat >conftest.make <<\_ACEOF
3114 SHELL = /bin/sh
3115 all:
3116         @echo '@@@%%%=$(MAKE)=@@@%%%'
3117 _ACEOF
3118 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3119 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3120   *@@@%%%=?*=@@@%%%*)
3121     eval ac_cv_prog_make_${ac_make}_set=yes;;
3122   *)
3123     eval ac_cv_prog_make_${ac_make}_set=no;;
3124 esac
3125 rm -f conftest.make
3126 fi
3127 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3129 $as_echo "yes" >&6; }
3130   SET_MAKE=
3131 else
3132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3134   SET_MAKE="MAKE=${MAKE-make}"
3135 fi
3136
3137 rm -rf .tst 2>/dev/null
3138 mkdir .tst 2>/dev/null
3139 if test -d .tst; then
3140   am__leading_dot=.
3141 else
3142   am__leading_dot=_
3143 fi
3144 rmdir .tst 2>/dev/null
3145
3146 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3147   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3148   # is not polluted with repeated "-I."
3149   am__isrc=' -I$(srcdir)'
3150   # test to see if srcdir already configured
3151   if test -f $srcdir/config.status; then
3152     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3153   fi
3154 fi
3155
3156 # test whether we have cygpath
3157 if test -z "$CYGPATH_W"; then
3158   if (cygpath --version) >/dev/null 2>/dev/null; then
3159     CYGPATH_W='cygpath -w'
3160   else
3161     CYGPATH_W=echo
3162   fi
3163 fi
3164
3165
3166 # Define the identity of the package.
3167  PACKAGE='shibboleth'
3168  VERSION='2.5'
3169
3170
3171 cat >>confdefs.h <<_ACEOF
3172 #define PACKAGE "$PACKAGE"
3173 _ACEOF
3174
3175
3176 cat >>confdefs.h <<_ACEOF
3177 #define VERSION "$VERSION"
3178 _ACEOF
3179
3180 # Some tools Automake needs.
3181
3182 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3183
3184
3185 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3186
3187
3188 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3189
3190
3191 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3192
3193
3194 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3195
3196 # We need awk for the "check" target.  The system "awk" is bad on
3197 # some platforms.
3198 # Always define AMTAR for backward compatibility.
3199
3200 AMTAR=${AMTAR-"${am_missing_run}tar"}
3201
3202 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3203
3204
3205
3206
3207
3208 # Check whether --enable-static was given.
3209 if test "${enable_static+set}" = set; then :
3210   enableval=$enable_static; p=${PACKAGE-default}
3211     case $enableval in
3212     yes) enable_static=yes ;;
3213     no) enable_static=no ;;
3214     *)
3215      enable_static=no
3216       # Look at the argument we got.  We use all the common list separators.
3217       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3218       for pkg in $enableval; do
3219         IFS="$lt_save_ifs"
3220         if test "X$pkg" = "X$p"; then
3221           enable_static=yes
3222         fi
3223       done
3224       IFS="$lt_save_ifs"
3225       ;;
3226     esac
3227 else
3228   enable_static=no
3229 fi
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239 case `pwd` in
3240   *\ * | *\     *)
3241     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3242 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3243 esac
3244
3245
3246
3247 macro_version='2.4'
3248 macro_revision='1.3293'
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262 ltmain="$ac_aux_dir/ltmain.sh"
3263
3264 # Make sure we can run config.sub.
3265 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3266   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3267
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3269 $as_echo_n "checking build system type... " >&6; }
3270 if test "${ac_cv_build+set}" = set; then :
3271   $as_echo_n "(cached) " >&6
3272 else
3273   ac_build_alias=$build_alias
3274 test "x$ac_build_alias" = x &&
3275   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3276 test "x$ac_build_alias" = x &&
3277   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3278 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3279   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3280
3281 fi
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3283 $as_echo "$ac_cv_build" >&6; }
3284 case $ac_cv_build in
3285 *-*-*) ;;
3286 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3287 esac
3288 build=$ac_cv_build
3289 ac_save_IFS=$IFS; IFS='-'
3290 set x $ac_cv_build
3291 shift
3292 build_cpu=$1
3293 build_vendor=$2
3294 shift; shift
3295 # Remember, the first character of IFS is used to create $*,
3296 # except with old shells:
3297 build_os=$*
3298 IFS=$ac_save_IFS
3299 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3300
3301
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3303 $as_echo_n "checking host system type... " >&6; }
3304 if test "${ac_cv_host+set}" = set; then :
3305   $as_echo_n "(cached) " >&6
3306 else
3307   if test "x$host_alias" = x; then
3308   ac_cv_host=$ac_cv_build
3309 else
3310   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3311     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3312 fi
3313
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3316 $as_echo "$ac_cv_host" >&6; }
3317 case $ac_cv_host in
3318 *-*-*) ;;
3319 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3320 esac
3321 host=$ac_cv_host
3322 ac_save_IFS=$IFS; IFS='-'
3323 set x $ac_cv_host
3324 shift
3325 host_cpu=$1
3326 host_vendor=$2
3327 shift; shift
3328 # Remember, the first character of IFS is used to create $*,
3329 # except with old shells:
3330 host_os=$*
3331 IFS=$ac_save_IFS
3332 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3333
3334
3335 # Backslashify metacharacters that are still active within
3336 # double-quoted strings.
3337 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3338
3339 # Same as above, but do not quote variable references.
3340 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3341
3342 # Sed substitution to delay expansion of an escaped shell variable in a
3343 # double_quote_subst'ed string.
3344 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3345
3346 # Sed substitution to delay expansion of an escaped single quote.
3347 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3348
3349 # Sed substitution to avoid accidental globbing in evaled expressions
3350 no_glob_subst='s/\*/\\\*/g'
3351
3352 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3353 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3354 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3355
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3357 $as_echo_n "checking how to print strings... " >&6; }
3358 # Test print first, because it will be a builtin if present.
3359 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3360    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3361   ECHO='print -r --'
3362 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3363   ECHO='printf %s\n'
3364 else
3365   # Use this function as a fallback that always works.
3366   func_fallback_echo ()
3367   {
3368     eval 'cat <<_LTECHO_EOF
3369 $1
3370 _LTECHO_EOF'
3371   }
3372   ECHO='func_fallback_echo'
3373 fi
3374
3375 # func_echo_all arg...
3376 # Invoke $ECHO with all args, space-separated.
3377 func_echo_all ()
3378 {
3379     $ECHO ""
3380 }
3381
3382 case "$ECHO" in
3383   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3384 $as_echo "printf" >&6; } ;;
3385   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3386 $as_echo "print -r" >&6; } ;;
3387   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3388 $as_echo "cat" >&6; } ;;
3389 esac
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404 DEPDIR="${am__leading_dot}deps"
3405
3406 ac_config_commands="$ac_config_commands depfiles"
3407
3408
3409 am_make=${MAKE-make}
3410 cat > confinc << 'END'
3411 am__doit:
3412         @echo this is the am__doit target
3413 .PHONY: am__doit
3414 END
3415 # If we don't find an include directive, just comment out the code.
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3417 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3418 am__include="#"
3419 am__quote=
3420 _am_result=none
3421 # First try GNU make style include.
3422 echo "include confinc" > confmf
3423 # Ignore all kinds of additional output from `make'.
3424 case `$am_make -s -f confmf 2> /dev/null` in #(
3425 *the\ am__doit\ target*)
3426   am__include=include
3427   am__quote=
3428   _am_result=GNU
3429   ;;
3430 esac
3431 # Now try BSD make style include.
3432 if test "$am__include" = "#"; then
3433    echo '.include "confinc"' > confmf
3434    case `$am_make -s -f confmf 2> /dev/null` in #(
3435    *the\ am__doit\ target*)
3436      am__include=.include
3437      am__quote="\""
3438      _am_result=BSD
3439      ;;
3440    esac
3441 fi
3442
3443
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3445 $as_echo "$_am_result" >&6; }
3446 rm -f confinc confmf
3447
3448 # Check whether --enable-dependency-tracking was given.
3449 if test "${enable_dependency_tracking+set}" = set; then :
3450   enableval=$enable_dependency_tracking;
3451 fi
3452
3453 if test "x$enable_dependency_tracking" != xno; then
3454   am_depcomp="$ac_aux_dir/depcomp"
3455   AMDEPBACKSLASH='\'
3456 fi
3457  if test "x$enable_dependency_tracking" != xno; then
3458   AMDEP_TRUE=
3459   AMDEP_FALSE='#'
3460 else
3461   AMDEP_TRUE='#'
3462   AMDEP_FALSE=
3463 fi
3464
3465
3466 ac_ext=c
3467 ac_cpp='$CPP $CPPFLAGS'
3468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471 if test -n "$ac_tool_prefix"; then
3472   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3473 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if test "${ac_cv_prog_CC+set}" = set; then :
3477   $as_echo_n "(cached) " >&6
3478 else
3479   if test -n "$CC"; then
3480   ac_cv_prog_CC="$CC" # Let the user override the test.
3481 else
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3484 do
3485   IFS=$as_save_IFS
3486   test -z "$as_dir" && as_dir=.
3487     for ac_exec_ext in '' $ac_executable_extensions; do
3488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491     break 2
3492   fi
3493 done
3494   done
3495 IFS=$as_save_IFS
3496
3497 fi
3498 fi
3499 CC=$ac_cv_prog_CC
3500 if test -n "$CC"; then
3501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3502 $as_echo "$CC" >&6; }
3503 else
3504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3506 fi
3507
3508
3509 fi
3510 if test -z "$ac_cv_prog_CC"; then
3511   ac_ct_CC=$CC
3512   # Extract the first word of "gcc", so it can be a program name with args.
3513 set dummy gcc; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3517   $as_echo_n "(cached) " >&6
3518 else
3519   if test -n "$ac_ct_CC"; then
3520   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525   IFS=$as_save_IFS
3526   test -z "$as_dir" && as_dir=.
3527     for ac_exec_ext in '' $ac_executable_extensions; do
3528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529     ac_cv_prog_ac_ct_CC="gcc"
3530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531     break 2
3532   fi
3533 done
3534   done
3535 IFS=$as_save_IFS
3536
3537 fi
3538 fi
3539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3540 if test -n "$ac_ct_CC"; then
3541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3542 $as_echo "$ac_ct_CC" >&6; }
3543 else
3544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3546 fi
3547
3548   if test "x$ac_ct_CC" = x; then
3549     CC=""
3550   else
3551     case $cross_compiling:$ac_tool_warned in
3552 yes:)
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3555 ac_tool_warned=yes ;;
3556 esac
3557     CC=$ac_ct_CC
3558   fi
3559 else
3560   CC="$ac_cv_prog_CC"
3561 fi
3562
3563 if test -z "$CC"; then
3564           if test -n "$ac_tool_prefix"; then
3565     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3566 set dummy ${ac_tool_prefix}cc; ac_word=$2
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 $as_echo_n "checking for $ac_word... " >&6; }
3569 if test "${ac_cv_prog_CC+set}" = set; then :
3570   $as_echo_n "(cached) " >&6
3571 else
3572   if test -n "$CC"; then
3573   ac_cv_prog_CC="$CC" # Let the user override the test.
3574 else
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3577 do
3578   IFS=$as_save_IFS
3579   test -z "$as_dir" && as_dir=.
3580     for ac_exec_ext in '' $ac_executable_extensions; do
3581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3582     ac_cv_prog_CC="${ac_tool_prefix}cc"
3583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584     break 2
3585   fi
3586 done
3587   done
3588 IFS=$as_save_IFS
3589
3590 fi
3591 fi
3592 CC=$ac_cv_prog_CC
3593 if test -n "$CC"; then
3594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3595 $as_echo "$CC" >&6; }
3596 else
3597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3599 fi
3600
3601
3602   fi
3603 fi
3604 if test -z "$CC"; then
3605   # Extract the first word of "cc", so it can be a program name with args.
3606 set dummy cc; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_CC+set}" = set; then :
3610   $as_echo_n "(cached) " >&6
3611 else
3612   if test -n "$CC"; then
3613   ac_cv_prog_CC="$CC" # Let the user override the test.
3614 else
3615   ac_prog_rejected=no
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3618 do
3619   IFS=$as_save_IFS
3620   test -z "$as_dir" && as_dir=.
3621     for ac_exec_ext in '' $ac_executable_extensions; do
3622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3623     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3624        ac_prog_rejected=yes
3625        continue
3626      fi
3627     ac_cv_prog_CC="cc"
3628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3629     break 2
3630   fi
3631 done
3632   done
3633 IFS=$as_save_IFS
3634
3635 if test $ac_prog_rejected = yes; then
3636   # We found a bogon in the path, so make sure we never use it.
3637   set dummy $ac_cv_prog_CC
3638   shift
3639   if test $# != 0; then
3640     # We chose a different compiler from the bogus one.
3641     # However, it has the same basename, so the bogon will be chosen
3642     # first if we set CC to just the basename; use the full file name.
3643     shift
3644     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3645   fi
3646 fi
3647 fi
3648 fi
3649 CC=$ac_cv_prog_CC
3650 if test -n "$CC"; then
3651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3652 $as_echo "$CC" >&6; }
3653 else
3654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3656 fi
3657
3658
3659 fi
3660 if test -z "$CC"; then
3661   if test -n "$ac_tool_prefix"; then
3662   for ac_prog in cl.exe
3663   do
3664     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_CC+set}" = set; then :
3669   $as_echo_n "(cached) " >&6
3670 else
3671   if test -n "$CC"; then
3672   ac_cv_prog_CC="$CC" # Let the user override the test.
3673 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3676 do
3677   IFS=$as_save_IFS
3678   test -z "$as_dir" && as_dir=.
3679     for ac_exec_ext in '' $ac_executable_extensions; do
3680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3683     break 2
3684   fi
3685 done
3686   done
3687 IFS=$as_save_IFS
3688
3689 fi
3690 fi
3691 CC=$ac_cv_prog_CC
3692 if test -n "$CC"; then
3693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3694 $as_echo "$CC" >&6; }
3695 else
3696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3698 fi
3699
3700
3701     test -n "$CC" && break
3702   done
3703 fi
3704 if test -z "$CC"; then
3705   ac_ct_CC=$CC
3706   for ac_prog in cl.exe
3707 do
3708   # Extract the first word of "$ac_prog", so it can be a program name with args.
3709 set dummy $ac_prog; ac_word=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3713   $as_echo_n "(cached) " >&6
3714 else
3715   if test -n "$ac_ct_CC"; then
3716   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3717 else
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3720 do
3721   IFS=$as_save_IFS
3722   test -z "$as_dir" && as_dir=.
3723     for ac_exec_ext in '' $ac_executable_extensions; do
3724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3725     ac_cv_prog_ac_ct_CC="$ac_prog"
3726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3727     break 2
3728   fi
3729 done
3730   done
3731 IFS=$as_save_IFS
3732
3733 fi
3734 fi
3735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3736 if test -n "$ac_ct_CC"; then
3737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3738 $as_echo "$ac_ct_CC" >&6; }
3739 else
3740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3742 fi
3743
3744
3745   test -n "$ac_ct_CC" && break
3746 done
3747
3748   if test "x$ac_ct_CC" = x; then
3749     CC=""
3750   else
3751     case $cross_compiling:$ac_tool_warned in
3752 yes:)
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3755 ac_tool_warned=yes ;;
3756 esac
3757     CC=$ac_ct_CC
3758   fi
3759 fi
3760
3761 fi
3762
3763
3764 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766 as_fn_error $? "no acceptable C compiler found in \$PATH
3767 See \`config.log' for more details" "$LINENO" 5 ; }
3768
3769 # Provide some information about the compiler.
3770 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3771 set X $ac_compile
3772 ac_compiler=$2
3773 for ac_option in --version -v -V -qversion; do
3774   { { ac_try="$ac_compiler $ac_option >&5"
3775 case "(($ac_try" in
3776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777   *) ac_try_echo=$ac_try;;
3778 esac
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3782   ac_status=$?
3783   if test -s conftest.err; then
3784     sed '10a\
3785 ... rest of stderr output deleted ...
3786          10q' conftest.err >conftest.er1
3787     cat conftest.er1 >&5
3788   fi
3789   rm -f conftest.er1 conftest.err
3790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791   test $ac_status = 0; }
3792 done
3793
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h.  */
3796
3797 int
3798 main ()
3799 {
3800
3801   ;
3802   return 0;
3803 }
3804 _ACEOF
3805 ac_clean_files_save=$ac_clean_files
3806 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3807 # Try to create an executable without -o first, disregard a.out.
3808 # It will help us diagnose broken compilers, and finding out an intuition
3809 # of exeext.
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3811 $as_echo_n "checking whether the C compiler works... " >&6; }
3812 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3813
3814 # The possible output files:
3815 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3816
3817 ac_rmfiles=
3818 for ac_file in $ac_files
3819 do
3820   case $ac_file in
3821     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3822     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3823   esac
3824 done
3825 rm -f $ac_rmfiles
3826
3827 if { { ac_try="$ac_link_default"
3828 case "(($ac_try" in
3829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830   *) ac_try_echo=$ac_try;;
3831 esac
3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 $as_echo "$ac_try_echo"; } >&5
3834   (eval "$ac_link_default") 2>&5
3835   ac_status=$?
3836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837   test $ac_status = 0; }; then :
3838   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3839 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3840 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3841 # so that the user can short-circuit this test for compilers unknown to
3842 # Autoconf.
3843 for ac_file in $ac_files ''
3844 do
3845   test -f "$ac_file" || continue
3846   case $ac_file in
3847     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3848         ;;
3849     [ab].out )
3850         # We found the default executable, but exeext='' is most
3851         # certainly right.
3852         break;;
3853     *.* )
3854         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3855         then :; else
3856            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3857         fi
3858         # We set ac_cv_exeext here because the later test for it is not
3859         # safe: cross compilers may not add the suffix if given an `-o'
3860         # argument, so we may need to know it at that point already.
3861         # Even if this section looks crufty: it has the advantage of
3862         # actually working.
3863         break;;
3864     * )
3865         break;;
3866   esac
3867 done
3868 test "$ac_cv_exeext" = no && ac_cv_exeext=
3869
3870 else
3871   ac_file=''
3872 fi
3873 if test -z "$ac_file"; then :
3874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3876 $as_echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3878
3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3881 as_fn_error 77 "C compiler cannot create executables
3882 See \`config.log' for more details" "$LINENO" 5 ; }
3883 else
3884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3885 $as_echo "yes" >&6; }
3886 fi
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3888 $as_echo_n "checking for C compiler default output file name... " >&6; }
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3890 $as_echo "$ac_file" >&6; }
3891 ac_exeext=$ac_cv_exeext
3892
3893 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3894 ac_clean_files=$ac_clean_files_save
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3896 $as_echo_n "checking for suffix of executables... " >&6; }
3897 if { { ac_try="$ac_link"
3898 case "(($ac_try" in
3899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900   *) ac_try_echo=$ac_try;;
3901 esac
3902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903 $as_echo "$ac_try_echo"; } >&5
3904   (eval "$ac_link") 2>&5
3905   ac_status=$?
3906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907   test $ac_status = 0; }; then :
3908   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3909 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3910 # work properly (i.e., refer to `conftest.exe'), while it won't with
3911 # `rm'.
3912 for ac_file in conftest.exe conftest conftest.*; do
3913   test -f "$ac_file" || continue
3914   case $ac_file in
3915     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3916     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3917           break;;
3918     * ) break;;
3919   esac
3920 done
3921 else
3922   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3924 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3925 See \`config.log' for more details" "$LINENO" 5 ; }
3926 fi
3927 rm -f conftest conftest$ac_cv_exeext
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3929 $as_echo "$ac_cv_exeext" >&6; }
3930
3931 rm -f conftest.$ac_ext
3932 EXEEXT=$ac_cv_exeext
3933 ac_exeext=$EXEEXT
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h.  */
3936 #include <stdio.h>
3937 int
3938 main ()
3939 {
3940 FILE *f = fopen ("conftest.out", "w");
3941  return ferror (f) || fclose (f) != 0;
3942
3943   ;
3944   return 0;
3945 }
3946 _ACEOF
3947 ac_clean_files="$ac_clean_files conftest.out"
3948 # Check that the compiler produces executables we can run.  If not, either
3949 # the compiler is broken, or we cross compile.
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3951 $as_echo_n "checking whether we are cross compiling... " >&6; }
3952 if test "$cross_compiling" != yes; then
3953   { { ac_try="$ac_link"
3954 case "(($ac_try" in
3955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956   *) ac_try_echo=$ac_try;;
3957 esac
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960   (eval "$ac_link") 2>&5
3961   ac_status=$?
3962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963   test $ac_status = 0; }
3964   if { ac_try='./conftest$ac_cv_exeext'
3965   { { case "(($ac_try" in
3966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967   *) ac_try_echo=$ac_try;;
3968 esac
3969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3970 $as_echo "$ac_try_echo"; } >&5
3971   (eval "$ac_try") 2>&5
3972   ac_status=$?
3973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3974   test $ac_status = 0; }; }; then
3975     cross_compiling=no
3976   else
3977     if test "$cross_compiling" = maybe; then
3978         cross_compiling=yes
3979     else
3980         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982 as_fn_error $? "cannot run C compiled programs.
3983 If you meant to cross compile, use \`--host'.
3984 See \`config.log' for more details" "$LINENO" 5 ; }
3985     fi
3986   fi
3987 fi
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3989 $as_echo "$cross_compiling" >&6; }
3990
3991 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3992 ac_clean_files=$ac_clean_files_save
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3994 $as_echo_n "checking for suffix of object files... " >&6; }
3995 if test "${ac_cv_objext+set}" = set; then :
3996   $as_echo_n "(cached) " >&6
3997 else
3998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h.  */
4000
4001 int
4002 main ()
4003 {
4004
4005   ;
4006   return 0;
4007 }
4008 _ACEOF
4009 rm -f conftest.o conftest.obj
4010 if { { ac_try="$ac_compile"
4011 case "(($ac_try" in
4012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013   *) ac_try_echo=$ac_try;;
4014 esac
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 $as_echo "$ac_try_echo"; } >&5
4017   (eval "$ac_compile") 2>&5
4018   ac_status=$?
4019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020   test $ac_status = 0; }; then :
4021   for ac_file in conftest.o conftest.obj conftest.*; do
4022   test -f "$ac_file" || continue;
4023   case $ac_file in
4024     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4025     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4026        break;;
4027   esac
4028 done
4029 else
4030   $as_echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4035 as_fn_error $? "cannot compute suffix of object files: cannot compile
4036 See \`config.log' for more details" "$LINENO" 5 ; }
4037 fi
4038 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4041 $as_echo "$ac_cv_objext" >&6; }
4042 OBJEXT=$ac_cv_objext
4043 ac_objext=$OBJEXT
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4045 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4046 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4047   $as_echo_n "(cached) " >&6
4048 else
4049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h.  */
4051
4052 int
4053 main ()
4054 {
4055 #ifndef __GNUC__
4056        choke me
4057 #endif
4058
4059   ;
4060   return 0;
4061 }
4062 _ACEOF
4063 if ac_fn_c_try_compile "$LINENO"; then :
4064   ac_compiler_gnu=yes
4065 else
4066   ac_compiler_gnu=no
4067 fi
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4070
4071 fi
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4073 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4074 if test $ac_compiler_gnu = yes; then
4075   GCC=yes
4076 else
4077   GCC=
4078 fi
4079 ac_test_CFLAGS=${CFLAGS+set}
4080 ac_save_CFLAGS=$CFLAGS
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4082 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4083 if test "${ac_cv_prog_cc_g+set}" = set; then :
4084   $as_echo_n "(cached) " >&6
4085 else
4086   ac_save_c_werror_flag=$ac_c_werror_flag
4087    ac_c_werror_flag=yes
4088    ac_cv_prog_cc_g=no
4089    CFLAGS="-g"
4090    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h.  */
4092
4093 int
4094 main ()
4095 {
4096
4097   ;
4098   return 0;
4099 }
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102   ac_cv_prog_cc_g=yes
4103 else
4104   CFLAGS=""
4105       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h.  */
4107
4108 int
4109 main ()
4110 {
4111
4112   ;
4113   return 0;
4114 }
4115 _ACEOF
4116 if ac_fn_c_try_compile "$LINENO"; then :
4117
4118 else
4119   ac_c_werror_flag=$ac_save_c_werror_flag
4120          CFLAGS="-g"
4121          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h.  */
4123
4124 int
4125 main ()
4126 {
4127
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 if ac_fn_c_try_compile "$LINENO"; then :
4133   ac_cv_prog_cc_g=yes
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 fi
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140    ac_c_werror_flag=$ac_save_c_werror_flag
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4143 $as_echo "$ac_cv_prog_cc_g" >&6; }
4144 if test "$ac_test_CFLAGS" = set; then
4145   CFLAGS=$ac_save_CFLAGS
4146 elif test $ac_cv_prog_cc_g = yes; then
4147   if test "$GCC" = yes; then
4148     CFLAGS="-g -O2"
4149   else
4150     CFLAGS="-g"
4151   fi
4152 else
4153   if test "$GCC" = yes; then
4154     CFLAGS="-O2"
4155   else
4156     CFLAGS=
4157   fi
4158 fi
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4160 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4161 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4162   $as_echo_n "(cached) " >&6
4163 else
4164   ac_cv_prog_cc_c89=no
4165 ac_save_CC=$CC
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h.  */
4168 #include <stdarg.h>
4169 #include <stdio.h>
4170 #include <sys/types.h>
4171 #include <sys/stat.h>
4172 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4173 struct buf { int x; };
4174 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4175 static char *e (p, i)
4176      char **p;
4177      int i;
4178 {
4179   return p[i];
4180 }
4181 static char *f (char * (*g) (char **, int), char **p, ...)
4182 {
4183   char *s;
4184   va_list v;
4185   va_start (v,p);
4186   s = g (p, va_arg (v,int));
4187   va_end (v);
4188   return s;
4189 }
4190
4191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4192    function prototypes and stuff, but not '\xHH' hex character constants.
4193    These don't provoke an error unfortunately, instead are silently treated
4194    as 'x'.  The following induces an error, until -std is added to get
4195    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4196    array size at least.  It's necessary to write '\x00'==0 to get something
4197    that's true only with -std.  */
4198 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4199
4200 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4201    inside strings and character constants.  */
4202 #define FOO(x) 'x'
4203 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4204
4205 int test (int i, double x);
4206 struct s1 {int (*f) (int a);};
4207 struct s2 {int (*f) (double a);};
4208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4209 int argc;
4210 char **argv;
4211 int
4212 main ()
4213 {
4214 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4215   ;
4216   return 0;
4217 }
4218 _ACEOF
4219 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4220         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4221 do
4222   CC="$ac_save_CC $ac_arg"
4223   if ac_fn_c_try_compile "$LINENO"; then :
4224   ac_cv_prog_cc_c89=$ac_arg
4225 fi
4226 rm -f core conftest.err conftest.$ac_objext
4227   test "x$ac_cv_prog_cc_c89" != "xno" && break
4228 done
4229 rm -f conftest.$ac_ext
4230 CC=$ac_save_CC
4231
4232 fi
4233 # AC_CACHE_VAL
4234 case "x$ac_cv_prog_cc_c89" in
4235   x)
4236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4237 $as_echo "none needed" >&6; } ;;
4238   xno)
4239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4240 $as_echo "unsupported" >&6; } ;;
4241   *)
4242     CC="$CC $ac_cv_prog_cc_c89"
4243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4244 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4245 esac
4246 if test "x$ac_cv_prog_cc_c89" != xno; then :
4247
4248 fi
4249
4250 ac_ext=c
4251 ac_cpp='$CPP $CPPFLAGS'
4252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255
4256 depcc="$CC"   am_compiler_list=
4257
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4259 $as_echo_n "checking dependency style of $depcc... " >&6; }
4260 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4261   $as_echo_n "(cached) " >&6
4262 else
4263   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4264   # We make a subdir and do the tests there.  Otherwise we can end up
4265   # making bogus files that we don't know about and never remove.  For
4266   # instance it was reported that on HP-UX the gcc test will end up
4267   # making a dummy file named `D' -- because `-MD' means `put the output
4268   # in D'.
4269   mkdir conftest.dir
4270   # Copy depcomp to subdir because otherwise we won't find it if we're
4271   # using a relative directory.
4272   cp "$am_depcomp" conftest.dir
4273   cd conftest.dir
4274   # We will build objects and dependencies in a subdirectory because
4275   # it helps to detect inapplicable dependency modes.  For instance
4276   # both Tru64's cc and ICC support -MD to output dependencies as a
4277   # side effect of compilation, but ICC will put the dependencies in
4278   # the current directory while Tru64 will put them in the object
4279   # directory.
4280   mkdir sub
4281
4282   am_cv_CC_dependencies_compiler_type=none
4283   if test "$am_compiler_list" = ""; then
4284      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4285   fi
4286   am__universal=false
4287   case " $depcc " in #(
4288      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4289      esac
4290
4291   for depmode in $am_compiler_list; do
4292     # Setup a source with many dependencies, because some compilers
4293     # like to wrap large dependency lists on column 80 (with \), and
4294     # we should not choose a depcomp mode which is confused by this.
4295     #
4296     # We need to recreate these files for each test, as the compiler may
4297     # overwrite some of them when testing with obscure command lines.
4298     # This happens at least with the AIX C compiler.
4299     : > sub/conftest.c
4300     for i in 1 2 3 4 5 6; do
4301       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4302       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4303       # Solaris 8's {/usr,}/bin/sh.
4304       touch sub/conftst$i.h
4305     done
4306     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4307
4308     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4309     # mode.  It turns out that the SunPro C++ compiler does not properly
4310     # handle `-M -o', and we need to detect this.  Also, some Intel
4311     # versions had trouble with output in subdirs
4312     am__obj=sub/conftest.${OBJEXT-o}
4313     am__minus_obj="-o $am__obj"
4314     case $depmode in
4315     gcc)
4316       # This depmode causes a compiler race in universal mode.
4317       test "$am__universal" = false || continue
4318       ;;
4319     nosideeffect)
4320       # after this tag, mechanisms are not by side-effect, so they'll
4321       # only be used when explicitly requested
4322       if test "x$enable_dependency_tracking" = xyes; then
4323         continue
4324       else
4325         break
4326       fi
4327       ;;
4328     msvisualcpp | msvcmsys)
4329       # This compiler won't grok `-c -o', but also, the minuso test has
4330       # not run yet.  These depmodes are late enough in the game, and
4331       # so weak that their functioning should not be impacted.
4332       am__obj=conftest.${OBJEXT-o}
4333       am__minus_obj=
4334       ;;
4335     none) break ;;
4336     esac
4337     if depmode=$depmode \
4338        source=sub/conftest.c object=$am__obj \
4339        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4340        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4341          >/dev/null 2>conftest.err &&
4342        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4343        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4344        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4345        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4346       # icc doesn't choke on unknown options, it will just issue warnings
4347       # or remarks (even with -Werror).  So we grep stderr for any message
4348       # that says an option was ignored or not supported.
4349       # When given -MP, icc 7.0 and 7.1 complain thusly:
4350       #   icc: Command line warning: ignoring option '-M'; no argument required
4351       # The diagnosis changed in icc 8.0:
4352       #   icc: Command line remark: option '-MP' not supported
4353       if (grep 'ignoring option' conftest.err ||
4354           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4355         am_cv_CC_dependencies_compiler_type=$depmode
4356         break
4357       fi
4358     fi
4359   done
4360
4361   cd ..
4362   rm -rf conftest.dir
4363 else
4364   am_cv_CC_dependencies_compiler_type=none
4365 fi
4366
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4369 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4370 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4371
4372  if
4373   test "x$enable_dependency_tracking" != xno \
4374   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4375   am__fastdepCC_TRUE=
4376   am__fastdepCC_FALSE='#'
4377 else
4378   am__fastdepCC_TRUE='#'
4379   am__fastdepCC_FALSE=
4380 fi
4381
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4384 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4385 if test "${ac_cv_path_SED+set}" = set; then :
4386   $as_echo_n "(cached) " >&6
4387 else
4388             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4389      for ac_i in 1 2 3 4 5 6 7; do
4390        ac_script="$ac_script$as_nl$ac_script"
4391      done
4392      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4393      { ac_script=; unset ac_script;}
4394      if test -z "$SED"; then
4395   ac_path_SED_found=false
4396   # Loop through the user's path and test for each of PROGNAME-LIST
4397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400   IFS=$as_save_IFS
4401   test -z "$as_dir" && as_dir=.
4402     for ac_prog in sed gsed; do
4403     for ac_exec_ext in '' $ac_executable_extensions; do
4404       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4405       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4406 # Check for GNU ac_path_SED and select it if it is found.
4407   # Check for GNU $ac_path_SED
4408 case `"$ac_path_SED" --version 2>&1` in
4409 *GNU*)
4410   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4411 *)
4412   ac_count=0
4413   $as_echo_n 0123456789 >"conftest.in"
4414   while :
4415   do
4416     cat "conftest.in" "conftest.in" >"conftest.tmp"
4417     mv "conftest.tmp" "conftest.in"
4418     cp "conftest.in" "conftest.nl"
4419     $as_echo '' >> "conftest.nl"
4420     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4421     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4422     as_fn_arith $ac_count + 1 && ac_count=$as_val
4423     if test $ac_count -gt ${ac_path_SED_max-0}; then
4424       # Best one so far, save it but keep looking for a better one
4425       ac_cv_path_SED="$ac_path_SED"
4426       ac_path_SED_max=$ac_count
4427     fi
4428     # 10*(2^10) chars as input seems more than enough
4429     test $ac_count -gt 10 && break
4430   done
4431   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4432 esac
4433
4434       $ac_path_SED_found && break 3
4435     done
4436   done
4437   done
4438 IFS=$as_save_IFS
4439   if test -z "$ac_cv_path_SED"; then
4440     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4441   fi
4442 else
4443   ac_cv_path_SED=$SED
4444 fi
4445
4446 fi
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4448 $as_echo "$ac_cv_path_SED" >&6; }
4449  SED="$ac_cv_path_SED"
4450   rm -f conftest.sed
4451
4452 test -z "$SED" && SED=sed
4453 Xsed="$SED -e 1s/^X//"
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4466 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4467 if test "${ac_cv_path_GREP+set}" = set; then :
4468   $as_echo_n "(cached) " >&6
4469 else
4470   if test -z "$GREP"; then
4471   ac_path_GREP_found=false
4472   # Loop through the user's path and test for each of PROGNAME-LIST
4473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4475 do
4476   IFS=$as_save_IFS
4477   test -z "$as_dir" && as_dir=.
4478     for ac_prog in grep ggrep; do
4479     for ac_exec_ext in '' $ac_executable_extensions; do
4480       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4481       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4482 # Check for GNU ac_path_GREP and select it if it is found.
4483   # Check for GNU $ac_path_GREP
4484 case `"$ac_path_GREP" --version 2>&1` in
4485 *GNU*)
4486   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4487 *)
4488   ac_count=0
4489   $as_echo_n 0123456789 >"conftest.in"
4490   while :
4491   do
4492     cat "conftest.in" "conftest.in" >"conftest.tmp"
4493     mv "conftest.tmp" "conftest.in"
4494     cp "conftest.in" "conftest.nl"
4495     $as_echo 'GREP' >> "conftest.nl"
4496     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4497     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4498     as_fn_arith $ac_count + 1 && ac_count=$as_val
4499     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4500       # Best one so far, save it but keep looking for a better one
4501       ac_cv_path_GREP="$ac_path_GREP"
4502       ac_path_GREP_max=$ac_count
4503     fi
4504     # 10*(2^10) chars as input seems more than enough
4505     test $ac_count -gt 10 && break
4506   done
4507   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4508 esac
4509
4510       $ac_path_GREP_found && break 3
4511     done
4512   done
4513   done
4514 IFS=$as_save_IFS
4515   if test -z "$ac_cv_path_GREP"; then
4516     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4517   fi
4518 else
4519   ac_cv_path_GREP=$GREP
4520 fi
4521
4522 fi
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4524 $as_echo "$ac_cv_path_GREP" >&6; }
4525  GREP="$ac_cv_path_GREP"
4526
4527
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4529 $as_echo_n "checking for egrep... " >&6; }
4530 if test "${ac_cv_path_EGREP+set}" = set; then :
4531   $as_echo_n "(cached) " >&6
4532 else
4533   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4534    then ac_cv_path_EGREP="$GREP -E"
4535    else
4536      if test -z "$EGREP"; then
4537   ac_path_EGREP_found=false
4538   # Loop through the user's path and test for each of PROGNAME-LIST
4539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4541 do
4542   IFS=$as_save_IFS
4543   test -z "$as_dir" && as_dir=.
4544     for ac_prog in egrep; do
4545     for ac_exec_ext in '' $ac_executable_extensions; do
4546       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4547       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4548 # Check for GNU ac_path_EGREP and select it if it is found.
4549   # Check for GNU $ac_path_EGREP
4550 case `"$ac_path_EGREP" --version 2>&1` in
4551 *GNU*)
4552   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4553 *)
4554   ac_count=0
4555   $as_echo_n 0123456789 >"conftest.in"
4556   while :
4557   do
4558     cat "conftest.in" "conftest.in" >"conftest.tmp"
4559     mv "conftest.tmp" "conftest.in"
4560     cp "conftest.in" "conftest.nl"
4561     $as_echo 'EGREP' >> "conftest.nl"
4562     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4563     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4564     as_fn_arith $ac_count + 1 && ac_count=$as_val
4565     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4566       # Best one so far, save it but keep looking for a better one
4567       ac_cv_path_EGREP="$ac_path_EGREP"
4568       ac_path_EGREP_max=$ac_count
4569     fi
4570     # 10*(2^10) chars as input seems more than enough
4571     test $ac_count -gt 10 && break
4572   done
4573   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4574 esac
4575
4576       $ac_path_EGREP_found && break 3
4577     done
4578   done
4579   done
4580 IFS=$as_save_IFS
4581   if test -z "$ac_cv_path_EGREP"; then
4582     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4583   fi
4584 else
4585   ac_cv_path_EGREP=$EGREP
4586 fi
4587
4588    fi
4589 fi
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4591 $as_echo "$ac_cv_path_EGREP" >&6; }
4592  EGREP="$ac_cv_path_EGREP"
4593
4594
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4596 $as_echo_n "checking for fgrep... " >&6; }
4597 if test "${ac_cv_path_FGREP+set}" = set; then :
4598   $as_echo_n "(cached) " >&6
4599 else
4600   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4601    then ac_cv_path_FGREP="$GREP -F"
4602    else
4603      if test -z "$FGREP"; then
4604   ac_path_FGREP_found=false
4605   # Loop through the user's path and test for each of PROGNAME-LIST
4606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4608 do
4609   IFS=$as_save_IFS
4610   test -z "$as_dir" && as_dir=.
4611     for ac_prog in fgrep; do
4612     for ac_exec_ext in '' $ac_executable_extensions; do
4613       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4614       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4615 # Check for GNU ac_path_FGREP and select it if it is found.
4616   # Check for GNU $ac_path_FGREP
4617 case `"$ac_path_FGREP" --version 2>&1` in
4618 *GNU*)
4619   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4620 *)
4621   ac_count=0
4622   $as_echo_n 0123456789 >"conftest.in"
4623   while :
4624   do
4625     cat "conftest.in" "conftest.in" >"conftest.tmp"
4626     mv "conftest.tmp" "conftest.in"
4627     cp "conftest.in" "conftest.nl"
4628     $as_echo 'FGREP' >> "conftest.nl"
4629     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4630     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4631     as_fn_arith $ac_count + 1 && ac_count=$as_val
4632     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4633       # Best one so far, save it but keep looking for a better one
4634       ac_cv_path_FGREP="$ac_path_FGREP"
4635       ac_path_FGREP_max=$ac_count
4636     fi
4637     # 10*(2^10) chars as input seems more than enough
4638     test $ac_count -gt 10 && break
4639   done
4640   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4641 esac
4642
4643       $ac_path_FGREP_found && break 3
4644     done
4645   done
4646   done
4647 IFS=$as_save_IFS
4648   if test -z "$ac_cv_path_FGREP"; then
4649     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4650   fi
4651 else
4652   ac_cv_path_FGREP=$FGREP
4653 fi
4654
4655    fi
4656 fi
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4658 $as_echo "$ac_cv_path_FGREP" >&6; }
4659  FGREP="$ac_cv_path_FGREP"
4660
4661
4662 test -z "$GREP" && GREP=grep
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682 # Check whether --with-gnu-ld was given.
4683 if test "${with_gnu_ld+set}" = set; then :
4684   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4685 else
4686   with_gnu_ld=no
4687 fi
4688
4689 ac_prog=ld
4690 if test "$GCC" = yes; then
4691   # Check if gcc -print-prog-name=ld gives a path.
4692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4693 $as_echo_n "checking for ld used by $CC... " >&6; }
4694   case $host in
4695   *-*-mingw*)
4696     # gcc leaves a trailing carriage return which upsets mingw
4697     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4698   *)
4699     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4700   esac
4701   case $ac_prog in
4702     # Accept absolute paths.
4703     [\\/]* | ?:[\\/]*)
4704       re_direlt='/[^/][^/]*/\.\./'
4705       # Canonicalize the pathname of ld
4706       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4707       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4708         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4709       done
4710       test -z "$LD" && LD="$ac_prog"
4711       ;;
4712   "")
4713     # If it fails, then pretend we aren't using GCC.
4714     ac_prog=ld
4715     ;;
4716   *)
4717     # If it is relative, then search for the first ld in PATH.
4718     with_gnu_ld=unknown
4719     ;;
4720   esac
4721 elif test "$with_gnu_ld" = yes; then
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4723 $as_echo_n "checking for GNU ld... " >&6; }
4724 else
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4726 $as_echo_n "checking for non-GNU ld... " >&6; }
4727 fi
4728 if test "${lt_cv_path_LD+set}" = set; then :
4729   $as_echo_n "(cached) " >&6
4730 else
4731   if test -z "$LD"; then
4732   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4733   for ac_dir in $PATH; do
4734     IFS="$lt_save_ifs"
4735     test -z "$ac_dir" && ac_dir=.
4736     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4737       lt_cv_path_LD="$ac_dir/$ac_prog"
4738       # Check to see if the program is GNU ld.  I'd rather use --version,
4739       # but apparently some variants of GNU ld only accept -v.
4740       # Break only if it was the GNU/non-GNU ld that we prefer.
4741       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4742       *GNU* | *'with BFD'*)
4743         test "$with_gnu_ld" != no && break
4744         ;;
4745       *)
4746         test "$with_gnu_ld" != yes && break
4747         ;;
4748       esac
4749     fi
4750   done
4751   IFS="$lt_save_ifs"
4752 else
4753   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4754 fi
4755 fi
4756
4757 LD="$lt_cv_path_LD"
4758 if test -n "$LD"; then
4759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4760 $as_echo "$LD" >&6; }
4761 else
4762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4764 fi
4765 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4767 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4768 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4769   $as_echo_n "(cached) " >&6
4770 else
4771   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4772 case `$LD -v 2>&1 </dev/null` in
4773 *GNU* | *'with BFD'*)
4774   lt_cv_prog_gnu_ld=yes
4775   ;;
4776 *)
4777   lt_cv_prog_gnu_ld=no
4778   ;;
4779 esac
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4782 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4783 with_gnu_ld=$lt_cv_prog_gnu_ld
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4794 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4795 if test "${lt_cv_path_NM+set}" = set; then :
4796   $as_echo_n "(cached) " >&6
4797 else
4798   if test -n "$NM"; then
4799   # Let the user override the test.
4800   lt_cv_path_NM="$NM"
4801 else
4802   lt_nm_to_check="${ac_tool_prefix}nm"
4803   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4804     lt_nm_to_check="$lt_nm_to_check nm"
4805   fi
4806   for lt_tmp_nm in $lt_nm_to_check; do
4807     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4808     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4809       IFS="$lt_save_ifs"
4810       test -z "$ac_dir" && ac_dir=.
4811       tmp_nm="$ac_dir/$lt_tmp_nm"
4812       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4813         # Check to see if the nm accepts a BSD-compat flag.
4814         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4815         #   nm: unknown option "B" ignored
4816         # Tru64's nm complains that /dev/null is an invalid object file
4817         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4818         */dev/null* | *'Invalid file or object type'*)
4819           lt_cv_path_NM="$tmp_nm -B"
4820           break
4821           ;;
4822         *)
4823           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4824           */dev/null*)
4825             lt_cv_path_NM="$tmp_nm -p"
4826             break
4827             ;;
4828           *)
4829             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4830             continue # so that we can try to find one that supports BSD flags
4831             ;;
4832           esac
4833           ;;
4834         esac
4835       fi
4836     done
4837     IFS="$lt_save_ifs"
4838   done
4839   : ${lt_cv_path_NM=no}
4840 fi
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4843 $as_echo "$lt_cv_path_NM" >&6; }
4844 if test "$lt_cv_path_NM" != "no"; then
4845   NM="$lt_cv_path_NM"
4846 else
4847   # Didn't find any BSD compatible name lister, look for dumpbin.
4848   if test -n "$DUMPBIN"; then :
4849     # Let the user override the test.
4850   else
4851     if test -n "$ac_tool_prefix"; then
4852   for ac_prog in dumpbin "link -dump"
4853   do
4854     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4855 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4859   $as_echo_n "(cached) " >&6
4860 else
4861   if test -n "$DUMPBIN"; then
4862   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867   IFS=$as_save_IFS
4868   test -z "$as_dir" && as_dir=.
4869     for ac_exec_ext in '' $ac_executable_extensions; do
4870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873     break 2
4874   fi
4875 done
4876   done
4877 IFS=$as_save_IFS
4878
4879 fi
4880 fi
4881 DUMPBIN=$ac_cv_prog_DUMPBIN
4882 if test -n "$DUMPBIN"; then
4883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4884 $as_echo "$DUMPBIN" >&6; }
4885 else
4886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 fi
4889
4890
4891     test -n "$DUMPBIN" && break
4892   done
4893 fi
4894 if test -z "$DUMPBIN"; then
4895   ac_ct_DUMPBIN=$DUMPBIN
4896   for ac_prog in dumpbin "link -dump"
4897 do
4898   # Extract the first word of "$ac_prog", so it can be a program name with args.
4899 set dummy $ac_prog; ac_word=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4903   $as_echo_n "(cached) " >&6
4904 else
4905   if test -n "$ac_ct_DUMPBIN"; then
4906   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4907 else
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911   IFS=$as_save_IFS
4912   test -z "$as_dir" && as_dir=.
4913     for ac_exec_ext in '' $ac_executable_extensions; do
4914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917     break 2
4918   fi
4919 done
4920   done
4921 IFS=$as_save_IFS
4922
4923 fi
4924 fi
4925 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4926 if test -n "$ac_ct_DUMPBIN"; then
4927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4928 $as_echo "$ac_ct_DUMPBIN" >&6; }
4929 else
4930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 $as_echo "no" >&6; }
4932 fi
4933
4934
4935   test -n "$ac_ct_DUMPBIN" && break
4936 done
4937
4938   if test "x$ac_ct_DUMPBIN" = x; then
4939     DUMPBIN=":"
4940   else
4941     case $cross_compiling:$ac_tool_warned in
4942 yes:)
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4945 ac_tool_warned=yes ;;
4946 esac
4947     DUMPBIN=$ac_ct_DUMPBIN
4948   fi
4949 fi
4950
4951     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4952     *COFF*)
4953       DUMPBIN="$DUMPBIN -symbols"
4954       ;;
4955     *)
4956       DUMPBIN=:
4957       ;;
4958     esac
4959   fi
4960
4961   if test "$DUMPBIN" != ":"; then
4962     NM="$DUMPBIN"
4963   fi
4964 fi
4965 test -z "$NM" && NM=nm
4966
4967
4968
4969
4970
4971
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4973 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4974 if test "${lt_cv_nm_interface+set}" = set; then :
4975   $as_echo_n "(cached) " >&6
4976 else
4977   lt_cv_nm_interface="BSD nm"
4978   echo "int some_variable = 0;" > conftest.$ac_ext
4979   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4980   (eval "$ac_compile" 2>conftest.err)
4981   cat conftest.err >&5
4982   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4983   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4984   cat conftest.err >&5
4985   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4986   cat conftest.out >&5
4987   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4988     lt_cv_nm_interface="MS dumpbin"
4989   fi
4990   rm -f conftest*
4991 fi
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4993 $as_echo "$lt_cv_nm_interface" >&6; }
4994
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4996 $as_echo_n "checking whether ln -s works... " >&6; }
4997 LN_S=$as_ln_s
4998 if test "$LN_S" = "ln -s"; then
4999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5000 $as_echo "yes" >&6; }
5001 else
5002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5003 $as_echo "no, using $LN_S" >&6; }
5004 fi
5005
5006 # find the maximum length of command line arguments
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5008 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5009 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5010   $as_echo_n "(cached) " >&6
5011 else
5012     i=0
5013   teststring="ABCD"
5014
5015   case $build_os in
5016   msdosdjgpp*)
5017     # On DJGPP, this test can blow up pretty badly due to problems in libc
5018     # (any single argument exceeding 2000 bytes causes a buffer overrun
5019     # during glob expansion).  Even if it were fixed, the result of this
5020     # check would be larger than it should be.
5021     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5022     ;;
5023
5024   gnu*)
5025     # Under GNU Hurd, this test is not required because there is
5026     # no limit to the length of command line arguments.
5027     # Libtool will interpret -1 as no limit whatsoever
5028     lt_cv_sys_max_cmd_len=-1;
5029     ;;
5030
5031   cygwin* | mingw* | cegcc*)
5032     # On Win9x/ME, this test blows up -- it succeeds, but takes
5033     # about 5 minutes as the teststring grows exponentially.
5034     # Worse, since 9x/ME are not pre-emptively multitasking,
5035     # you end up with a "frozen" computer, even though with patience
5036     # the test eventually succeeds (with a max line length of 256k).
5037     # Instead, let's just punt: use the minimum linelength reported by
5038     # all of the supported platforms: 8192 (on NT/2K/XP).
5039     lt_cv_sys_max_cmd_len=8192;
5040     ;;
5041
5042   mint*)
5043     # On MiNT this can take a long time and run out of memory.
5044     lt_cv_sys_max_cmd_len=8192;
5045     ;;
5046
5047   amigaos*)
5048     # On AmigaOS with pdksh, this test takes hours, literally.
5049     # So we just punt and use a minimum line length of 8192.
5050     lt_cv_sys_max_cmd_len=8192;
5051     ;;
5052
5053   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5054     # This has been around since 386BSD, at least.  Likely further.
5055     if test -x /sbin/sysctl; then
5056       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5057     elif test -x /usr/sbin/sysctl; then
5058       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5059     else
5060       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5061     fi
5062     # And add a safety zone
5063     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5064     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5065     ;;
5066
5067   interix*)
5068     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5069     lt_cv_sys_max_cmd_len=196608
5070     ;;
5071
5072   osf*)
5073     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5074     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5075     # nice to cause kernel panics so lets avoid the loop below.
5076     # First set a reasonable default.
5077     lt_cv_sys_max_cmd_len=16384
5078     #
5079     if test -x /sbin/sysconfig; then
5080       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5081         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5082       esac
5083     fi
5084     ;;
5085   sco3.2v5*)
5086     lt_cv_sys_max_cmd_len=102400
5087     ;;
5088   sysv5* | sco5v6* | sysv4.2uw2*)
5089     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5090     if test -n "$kargmax"; then
5091       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5092     else
5093       lt_cv_sys_max_cmd_len=32768
5094     fi
5095     ;;
5096   *)
5097     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5098     if test -n "$lt_cv_sys_max_cmd_len"; then
5099       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5100       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5101     else
5102       # Make teststring a little bigger before we do anything with it.
5103       # a 1K string should be a reasonable start.
5104       for i in 1 2 3 4 5 6 7 8 ; do
5105         teststring=$teststring$teststring
5106       done
5107       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5108       # If test is not a shell built-in, we'll probably end up computing a
5109       # maximum length that is only half of the actual maximum length, but
5110       # we can't tell.
5111       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5112                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5113               test $i != 17 # 1/2 MB should be enough
5114       do
5115         i=`expr $i + 1`
5116         teststring=$teststring$teststring
5117       done
5118       # Only check the string length outside the loop.
5119       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5120       teststring=
5121       # Add a significant safety factor because C++ compilers can tack on
5122       # massive amounts of additional arguments before passing them to the
5123       # linker.  It appears as though 1/2 is a usable value.
5124       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5125     fi
5126     ;;
5127   esac
5128
5129 fi
5130
5131 if test -n $lt_cv_sys_max_cmd_len ; then
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5133 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5134 else
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5136 $as_echo "none" >&6; }
5137 fi
5138 max_cmd_len=$lt_cv_sys_max_cmd_len
5139
5140
5141
5142
5143
5144
5145 : ${CP="cp -f"}
5146 : ${MV="mv -f"}
5147 : ${RM="rm -f"}
5148
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5150 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5151 # Try some XSI features
5152 xsi_shell=no
5153 ( _lt_dummy="a/b/c"
5154   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5155       = c,a/b,b/c, \
5156     && eval 'test $(( 1 + 1 )) -eq 2 \
5157     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5158   && xsi_shell=yes
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5160 $as_echo "$xsi_shell" >&6; }
5161
5162
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5164 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5165 lt_shell_append=no
5166 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5167     >/dev/null 2>&1 \
5168   && lt_shell_append=yes
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5170 $as_echo "$lt_shell_append" >&6; }
5171
5172
5173 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5174   lt_unset=unset
5175 else
5176   lt_unset=false
5177 fi
5178
5179
5180
5181
5182
5183 # test EBCDIC or ASCII
5184 case `echo X|tr X '\101'` in
5185  A) # ASCII based system
5186     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5187   lt_SP2NL='tr \040 \012'
5188   lt_NL2SP='tr \015\012 \040\040'
5189   ;;
5190  *) # EBCDIC based system
5191   lt_SP2NL='tr \100 \n'
5192   lt_NL2SP='tr \r\n \100\100'
5193   ;;
5194 esac
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5205 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5206 if test "${lt_cv_to_host_file_cmd+set}" = set; then :
5207   $as_echo_n "(cached) " >&6
5208 else
5209   case $host in
5210   *-*-mingw* )
5211     case $build in
5212       *-*-mingw* ) # actually msys
5213         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5214         ;;
5215       *-*-cygwin* )
5216         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5217         ;;
5218       * ) # otherwise, assume *nix
5219         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5220         ;;
5221     esac
5222     ;;
5223   *-*-cygwin* )
5224     case $build in
5225       *-*-mingw* ) # actually msys
5226         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5227         ;;
5228       *-*-cygwin* )
5229         lt_cv_to_host_file_cmd=func_convert_file_noop
5230         ;;
5231       * ) # otherwise, assume *nix
5232         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5233         ;;
5234     esac
5235     ;;
5236   * ) # unhandled hosts (and "normal" native builds)
5237     lt_cv_to_host_file_cmd=func_convert_file_noop
5238     ;;
5239 esac
5240
5241 fi
5242
5243 to_host_file_cmd=$lt_cv_to_host_file_cmd
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5245 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5246
5247
5248
5249
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5252 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5253 if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
5254   $as_echo_n "(cached) " >&6
5255 else
5256   #assume ordinary cross tools, or native build.
5257 lt_cv_to_tool_file_cmd=func_convert_file_noop
5258 case $host in
5259   *-*-mingw* )
5260     case $build in
5261       *-*-mingw* ) # actually msys
5262         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5263         ;;
5264     esac
5265     ;;
5266 esac
5267
5268 fi
5269
5270 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5272 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5273
5274
5275
5276
5277
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5279 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5280 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5281   $as_echo_n "(cached) " >&6
5282 else
5283   lt_cv_ld_reload_flag='-r'
5284 fi
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5286 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5287 reload_flag=$lt_cv_ld_reload_flag
5288 case $reload_flag in
5289 "" | " "*) ;;
5290 *) reload_flag=" $reload_flag" ;;
5291 esac
5292 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5293 case $host_os in
5294   cygwin* | mingw* | pw32* | cegcc*)
5295     if test "$GCC" != yes; then
5296       reload_cmds=false
5297     fi
5298     ;;
5299   darwin*)
5300     if test "$GCC" = yes; then
5301       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5302     else
5303       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5304     fi
5305     ;;
5306 esac
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316 if test -n "$ac_tool_prefix"; then
5317   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5318 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5322   $as_echo_n "(cached) " >&6
5323 else
5324   if test -n "$OBJDUMP"; then
5325   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5329 do
5330   IFS=$as_save_IFS
5331   test -z "$as_dir" && as_dir=.
5332     for ac_exec_ext in '' $ac_executable_extensions; do
5333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336     break 2
5337   fi
5338 done
5339   done
5340 IFS=$as_save_IFS
5341
5342 fi
5343 fi
5344 OBJDUMP=$ac_cv_prog_OBJDUMP
5345 if test -n "$OBJDUMP"; then
5346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5347 $as_echo "$OBJDUMP" >&6; }
5348 else
5349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5351 fi
5352
5353
5354 fi
5355 if test -z "$ac_cv_prog_OBJDUMP"; then
5356   ac_ct_OBJDUMP=$OBJDUMP
5357   # Extract the first word of "objdump", so it can be a program name with args.
5358 set dummy objdump; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5362   $as_echo_n "(cached) " >&6
5363 else
5364   if test -n "$ac_ct_OBJDUMP"; then
5365   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5369 do
5370   IFS=$as_save_IFS
5371   test -z "$as_dir" && as_dir=.
5372     for ac_exec_ext in '' $ac_executable_extensions; do
5373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376     break 2
5377   fi
5378 done
5379   done
5380 IFS=$as_save_IFS
5381
5382 fi
5383 fi
5384 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5385 if test -n "$ac_ct_OBJDUMP"; then
5386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5387 $as_echo "$ac_ct_OBJDUMP" >&6; }
5388 else
5389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5391 fi
5392
5393   if test "x$ac_ct_OBJDUMP" = x; then
5394     OBJDUMP="false"
5395   else
5396     case $cross_compiling:$ac_tool_warned in
5397 yes:)
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5400 ac_tool_warned=yes ;;
5401 esac
5402     OBJDUMP=$ac_ct_OBJDUMP
5403   fi
5404 else
5405   OBJDUMP="$ac_cv_prog_OBJDUMP"
5406 fi
5407
5408 test -z "$OBJDUMP" && OBJDUMP=objdump
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5419 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5420 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5421   $as_echo_n "(cached) " >&6
5422 else
5423   lt_cv_file_magic_cmd='$MAGIC_CMD'
5424 lt_cv_file_magic_test_file=
5425 lt_cv_deplibs_check_method='unknown'
5426 # Need to set the preceding variable on all platforms that support
5427 # interlibrary dependencies.
5428 # 'none' -- dependencies not supported.
5429 # `unknown' -- same as none, but documents that we really don't know.
5430 # 'pass_all' -- all dependencies passed with no checks.
5431 # 'test_compile' -- check by making test program.
5432 # 'file_magic [[regex]]' -- check by looking for files in library path
5433 # which responds to the $file_magic_cmd with a given extended regex.
5434 # If you have `file' or equivalent on your system and you're not sure
5435 # whether `pass_all' will *always* work, you probably want this one.
5436
5437 case $host_os in
5438 aix[4-9]*)
5439   lt_cv_deplibs_check_method=pass_all
5440   ;;
5441
5442 beos*)
5443   lt_cv_deplibs_check_method=pass_all
5444   ;;
5445
5446 bsdi[45]*)
5447   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5448   lt_cv_file_magic_cmd='/usr/bin/file -L'
5449   lt_cv_file_magic_test_file=/shlib/libc.so
5450   ;;
5451
5452 cygwin*)
5453   # func_win32_libid is a shell function defined in ltmain.sh
5454   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5455   lt_cv_file_magic_cmd='func_win32_libid'
5456   ;;
5457
5458 mingw* | pw32*)
5459   # Base MSYS/MinGW do not provide the 'file' command needed by
5460   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5461   # unless we find 'file', for example because we are cross-compiling.
5462   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5463   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5464     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5465     lt_cv_file_magic_cmd='func_win32_libid'
5466   else
5467     # Keep this pattern in sync with the one in func_win32_libid.
5468     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5469     lt_cv_file_magic_cmd='$OBJDUMP -f'
5470   fi
5471   ;;
5472
5473 cegcc*)
5474   # use the weaker test based on 'objdump'. See mingw*.
5475   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5476   lt_cv_file_magic_cmd='$OBJDUMP -f'
5477   ;;
5478
5479 darwin* | rhapsody*)
5480   lt_cv_deplibs_check_method=pass_all
5481   ;;
5482
5483 freebsd* | dragonfly*)
5484   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5485     case $host_cpu in
5486     i*86 )
5487       # Not sure whether the presence of OpenBSD here was a mistake.
5488       # Let's accept both of them until this is cleared up.
5489       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5490       lt_cv_file_magic_cmd=/usr/bin/file
5491       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5492       ;;
5493     esac
5494   else
5495     lt_cv_deplibs_check_method=pass_all
5496   fi
5497   ;;
5498
5499 gnu*)
5500   lt_cv_deplibs_check_method=pass_all
5501   ;;
5502
5503 haiku*)
5504   lt_cv_deplibs_check_method=pass_all
5505   ;;
5506
5507 hpux10.20* | hpux11*)
5508   lt_cv_file_magic_cmd=/usr/bin/file
5509   case $host_cpu in
5510   ia64*)
5511     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5512     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5513     ;;
5514   hppa*64*)
5515     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5516     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5517     ;;
5518   *)
5519     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5520     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5521     ;;
5522   esac
5523   ;;
5524
5525 interix[3-9]*)
5526   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5527   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5528   ;;
5529
5530 irix5* | irix6* | nonstopux*)
5531   case $LD in
5532   *-32|*"-32 ") libmagic=32-bit;;
5533   *-n32|*"-n32 ") libmagic=N32;;
5534   *-64|*"-64 ") libmagic=64-bit;;
5535   *) libmagic=never-match;;
5536   esac
5537   lt_cv_deplibs_check_method=pass_all
5538   ;;
5539
5540 # This must be Linux ELF.
5541 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5542   lt_cv_deplibs_check_method=pass_all
5543   ;;
5544
5545 netbsd*)
5546   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5547     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5548   else
5549     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5550   fi
5551   ;;
5552
5553 newos6*)
5554   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5555   lt_cv_file_magic_cmd=/usr/bin/file
5556   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5557   ;;
5558
5559 *nto* | *qnx*)
5560   lt_cv_deplibs_check_method=pass_all
5561   ;;
5562
5563 openbsd*)
5564   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5565     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5566   else
5567     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5568   fi
5569   ;;
5570
5571 osf3* | osf4* | osf5*)
5572   lt_cv_deplibs_check_method=pass_all
5573   ;;
5574
5575 rdos*)
5576   lt_cv_deplibs_check_method=pass_all
5577   ;;
5578
5579 solaris*)
5580   lt_cv_deplibs_check_method=pass_all
5581   ;;
5582
5583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5584   lt_cv_deplibs_check_method=pass_all
5585   ;;
5586
5587 sysv4 | sysv4.3*)
5588   case $host_vendor in
5589   motorola)
5590     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]'
5591     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5592     ;;
5593   ncr)
5594     lt_cv_deplibs_check_method=pass_all
5595     ;;
5596   sequent)
5597     lt_cv_file_magic_cmd='/bin/file'
5598     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5599     ;;
5600   sni)
5601     lt_cv_file_magic_cmd='/bin/file'
5602     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5603     lt_cv_file_magic_test_file=/lib/libc.so
5604     ;;
5605   siemens)
5606     lt_cv_deplibs_check_method=pass_all
5607     ;;
5608   pc)
5609     lt_cv_deplibs_check_method=pass_all
5610     ;;
5611   esac
5612   ;;
5613
5614 tpf*)
5615   lt_cv_deplibs_check_method=pass_all
5616   ;;
5617 esac
5618
5619 fi
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5621 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5622
5623 file_magic_glob=
5624 want_nocaseglob=no
5625 if test "$build" = "$host"; then
5626   case $host_os in
5627   mingw* | pw32*)
5628     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5629       want_nocaseglob=yes
5630     else
5631       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5632     fi
5633     ;;
5634   esac
5635 fi
5636
5637 file_magic_cmd=$lt_cv_file_magic_cmd
5638 deplibs_check_method=$lt_cv_deplibs_check_method
5639 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662 if test -n "$ac_tool_prefix"; then
5663   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5664 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5668   $as_echo_n "(cached) " >&6
5669 else
5670   if test -n "$DLLTOOL"; then
5671   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676   IFS=$as_save_IFS
5677   test -z "$as_dir" && as_dir=.
5678     for ac_exec_ext in '' $ac_executable_extensions; do
5679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5680     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682     break 2
5683   fi
5684 done
5685   done
5686 IFS=$as_save_IFS
5687
5688 fi
5689 fi
5690 DLLTOOL=$ac_cv_prog_DLLTOOL
5691 if test -n "$DLLTOOL"; then
5692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5693 $as_echo "$DLLTOOL" >&6; }
5694 else
5695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5697 fi
5698
5699
5700 fi
5701 if test -z "$ac_cv_prog_DLLTOOL"; then
5702   ac_ct_DLLTOOL=$DLLTOOL
5703   # Extract the first word of "dlltool", so it can be a program name with args.
5704 set dummy dlltool; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5708   $as_echo_n "(cached) " >&6
5709 else
5710   if test -n "$ac_ct_DLLTOOL"; then
5711   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5715 do
5716   IFS=$as_save_IFS
5717   test -z "$as_dir" && as_dir=.
5718     for ac_exec_ext in '' $ac_executable_extensions; do
5719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5720     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722     break 2
5723   fi
5724 done
5725   done
5726 IFS=$as_save_IFS
5727
5728 fi
5729 fi
5730 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5731 if test -n "$ac_ct_DLLTOOL"; then
5732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5733 $as_echo "$ac_ct_DLLTOOL" >&6; }
5734 else
5735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5737 fi
5738
5739   if test "x$ac_ct_DLLTOOL" = x; then
5740     DLLTOOL="false"
5741   else
5742     case $cross_compiling:$ac_tool_warned in
5743 yes:)
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5746 ac_tool_warned=yes ;;
5747 esac
5748     DLLTOOL=$ac_ct_DLLTOOL
5749   fi
5750 else
5751   DLLTOOL="$ac_cv_prog_DLLTOOL"
5752 fi
5753
5754 test -z "$DLLTOOL" && DLLTOOL=dlltool
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5766 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5767 if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
5768   $as_echo_n "(cached) " >&6
5769 else
5770   lt_cv_sharedlib_from_linklib_cmd='unknown'
5771
5772 case $host_os in
5773 cygwin* | mingw* | pw32* | cegcc*)
5774   # two different shell functions defined in ltmain.sh
5775   # decide which to use based on capabilities of $DLLTOOL
5776   case `$DLLTOOL --help 2>&1` in
5777   *--identify-strict*)
5778     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5779     ;;
5780   *)
5781     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5782     ;;
5783   esac
5784   ;;
5785 *)
5786   # fallback: assume linklib IS sharedlib
5787   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5788   ;;
5789 esac
5790
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5793 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5794 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5795 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5796
5797
5798
5799
5800
5801
5802
5803
5804 if test -n "$ac_tool_prefix"; then
5805   for ac_prog in ar
5806   do
5807     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if test "${ac_cv_prog_AR+set}" = set; then :
5812   $as_echo_n "(cached) " >&6
5813 else
5814   if test -n "$AR"; then
5815   ac_cv_prog_AR="$AR" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820   IFS=$as_save_IFS
5821   test -z "$as_dir" && as_dir=.
5822     for ac_exec_ext in '' $ac_executable_extensions; do
5823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826     break 2
5827   fi
5828 done
5829   done
5830 IFS=$as_save_IFS
5831
5832 fi
5833 fi
5834 AR=$ac_cv_prog_AR
5835 if test -n "$AR"; then
5836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5837 $as_echo "$AR" >&6; }
5838 else
5839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5841 fi
5842
5843
5844     test -n "$AR" && break
5845   done
5846 fi
5847 if test -z "$AR"; then
5848   ac_ct_AR=$AR
5849   for ac_prog in ar
5850 do
5851   # Extract the first word of "$ac_prog", so it can be a program name with args.
5852 set dummy $ac_prog; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5856   $as_echo_n "(cached) " >&6
5857 else
5858   if test -n "$ac_ct_AR"; then
5859   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864   IFS=$as_save_IFS
5865   test -z "$as_dir" && as_dir=.
5866     for ac_exec_ext in '' $ac_executable_extensions; do
5867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868     ac_cv_prog_ac_ct_AR="$ac_prog"
5869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870     break 2
5871   fi
5872 done
5873   done
5874 IFS=$as_save_IFS
5875
5876 fi
5877 fi
5878 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5879 if test -n "$ac_ct_AR"; then
5880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5881 $as_echo "$ac_ct_AR" >&6; }
5882 else
5883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 fi
5886
5887
5888   test -n "$ac_ct_AR" && break
5889 done
5890
5891   if test "x$ac_ct_AR" = x; then
5892     AR="false"
5893   else
5894     case $cross_compiling:$ac_tool_warned in
5895 yes:)
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5899 esac
5900     AR=$ac_ct_AR
5901   fi
5902 fi
5903
5904 : ${AR=ar}
5905 : ${AR_FLAGS=cru}
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5918 $as_echo_n "checking for archiver @FILE support... " >&6; }
5919 if test "${lt_cv_ar_at_file+set}" = set; then :
5920   $as_echo_n "(cached) " >&6
5921 else
5922   lt_cv_ar_at_file=no
5923    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h.  */
5925
5926 int
5927 main ()
5928 {
5929
5930   ;
5931   return 0;
5932 }
5933 _ACEOF
5934 if ac_fn_c_try_compile "$LINENO"; then :
5935   echo conftest.$ac_objext > conftest.lst
5936       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5937       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5938   (eval $lt_ar_try) 2>&5
5939   ac_status=$?
5940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5941   test $ac_status = 0; }
5942       if test "$ac_status" -eq 0; then
5943         # Ensure the archiver fails upon bogus file names.
5944         rm -f conftest.$ac_objext libconftest.a
5945         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5946   (eval $lt_ar_try) 2>&5
5947   ac_status=$?
5948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5949   test $ac_status = 0; }
5950         if test "$ac_status" -ne 0; then
5951           lt_cv_ar_at_file=@
5952         fi
5953       fi
5954       rm -f conftest.* libconftest.a
5955
5956 fi
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958
5959 fi
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5961 $as_echo "$lt_cv_ar_at_file" >&6; }
5962
5963 if test "x$lt_cv_ar_at_file" = xno; then
5964   archiver_list_spec=
5965 else
5966   archiver_list_spec=$lt_cv_ar_at_file
5967 fi
5968
5969
5970
5971
5972
5973
5974
5975 if test -n "$ac_tool_prefix"; then
5976   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5977 set dummy ${ac_tool_prefix}strip; ac_word=$2
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979 $as_echo_n "checking for $ac_word... " >&6; }
5980 if test "${ac_cv_prog_STRIP+set}" = set; then :
5981   $as_echo_n "(cached) " >&6
5982 else
5983   if test -n "$STRIP"; then
5984   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5985 else
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH
5988 do
5989   IFS=$as_save_IFS
5990   test -z "$as_dir" && as_dir=.
5991     for ac_exec_ext in '' $ac_executable_extensions; do
5992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5993     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5995     break 2
5996   fi
5997 done
5998   done
5999 IFS=$as_save_IFS
6000
6001 fi
6002 fi
6003 STRIP=$ac_cv_prog_STRIP
6004 if test -n "$STRIP"; then
6005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6006 $as_echo "$STRIP" >&6; }
6007 else
6008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6010 fi
6011
6012
6013 fi
6014 if test -z "$ac_cv_prog_STRIP"; then
6015   ac_ct_STRIP=$STRIP
6016   # Extract the first word of "strip", so it can be a program name with args.
6017 set dummy strip; ac_word=$2
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019 $as_echo_n "checking for $ac_word... " >&6; }
6020 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6021   $as_echo_n "(cached) " >&6
6022 else
6023   if test -n "$ac_ct_STRIP"; then
6024   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6025 else
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6028 do
6029   IFS=$as_save_IFS
6030   test -z "$as_dir" && as_dir=.
6031     for ac_exec_ext in '' $ac_executable_extensions; do
6032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6033     ac_cv_prog_ac_ct_STRIP="strip"
6034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035     break 2
6036   fi
6037 done
6038   done
6039 IFS=$as_save_IFS
6040
6041 fi
6042 fi
6043 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6044 if test -n "$ac_ct_STRIP"; then
6045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6046 $as_echo "$ac_ct_STRIP" >&6; }
6047 else
6048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 $as_echo "no" >&6; }
6050 fi
6051
6052   if test "x$ac_ct_STRIP" = x; then
6053     STRIP=":"
6054   else
6055     case $cross_compiling:$ac_tool_warned in
6056 yes:)
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6059 ac_tool_warned=yes ;;
6060 esac
6061     STRIP=$ac_ct_STRIP
6062   fi
6063 else
6064   STRIP="$ac_cv_prog_STRIP"
6065 fi
6066
6067 test -z "$STRIP" && STRIP=:
6068
6069
6070
6071
6072
6073
6074 if test -n "$ac_tool_prefix"; then
6075   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6080   $as_echo_n "(cached) " >&6
6081 else
6082   if test -n "$RANLIB"; then
6083   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088   IFS=$as_save_IFS
6089   test -z "$as_dir" && as_dir=.
6090     for ac_exec_ext in '' $ac_executable_extensions; do
6091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094     break 2
6095   fi
6096 done
6097   done
6098 IFS=$as_save_IFS
6099
6100 fi
6101 fi
6102 RANLIB=$ac_cv_prog_RANLIB
6103 if test -n "$RANLIB"; then
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6105 $as_echo "$RANLIB" >&6; }
6106 else
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6109 fi
6110
6111
6112 fi
6113 if test -z "$ac_cv_prog_RANLIB"; then
6114   ac_ct_RANLIB=$RANLIB
6115   # Extract the first word of "ranlib", so it can be a program name with args.
6116 set dummy ranlib; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6120   $as_echo_n "(cached) " >&6
6121 else
6122   if test -n "$ac_ct_RANLIB"; then
6123   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6127 do
6128   IFS=$as_save_IFS
6129   test -z "$as_dir" && as_dir=.
6130     for ac_exec_ext in '' $ac_executable_extensions; do
6131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6132     ac_cv_prog_ac_ct_RANLIB="ranlib"
6133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134     break 2
6135   fi
6136 done
6137   done
6138 IFS=$as_save_IFS
6139
6140 fi
6141 fi
6142 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6143 if test -n "$ac_ct_RANLIB"; then
6144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6145 $as_echo "$ac_ct_RANLIB" >&6; }
6146 else
6147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 $as_echo "no" >&6; }
6149 fi
6150
6151   if test "x$ac_ct_RANLIB" = x; then
6152     RANLIB=":"
6153   else
6154     case $cross_compiling:$ac_tool_warned in
6155 yes:)
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6158 ac_tool_warned=yes ;;
6159 esac
6160     RANLIB=$ac_ct_RANLIB
6161   fi
6162 else
6163   RANLIB="$ac_cv_prog_RANLIB"
6164 fi
6165
6166 test -z "$RANLIB" && RANLIB=:
6167
6168
6169
6170
6171
6172
6173 # Determine commands to create old-style static archives.
6174 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6175 old_postinstall_cmds='chmod 644 $oldlib'
6176 old_postuninstall_cmds=
6177
6178 if test -n "$RANLIB"; then
6179   case $host_os in
6180   openbsd*)
6181     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6182     ;;
6183   *)
6184     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6185     ;;
6186   esac
6187   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6188 fi
6189
6190 case $host_os in
6191   darwin*)
6192     lock_old_archive_extraction=yes ;;
6193   *)
6194     lock_old_archive_extraction=no ;;
6195 esac
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235 # If no C compiler was specified, use CC.
6236 LTCC=${LTCC-"$CC"}
6237
6238 # If no C compiler flags were specified, use CFLAGS.
6239 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6240
6241 # Allow CC to be a program name with arguments.
6242 compiler=$CC
6243
6244
6245 # Check for command to grab the raw symbol name followed by C symbol from nm.
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6247 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6248 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6249   $as_echo_n "(cached) " >&6
6250 else
6251
6252 # These are sane defaults that work on at least a few old systems.
6253 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6254
6255 # Character class describing NM global symbol codes.
6256 symcode='[BCDEGRST]'
6257
6258 # Regexp to match symbols that can be accessed directly from C.
6259 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6260
6261 # Define system-specific variables.
6262 case $host_os in
6263 aix*)
6264   symcode='[BCDT]'
6265   ;;
6266 cygwin* | mingw* | pw32* | cegcc*)
6267   symcode='[ABCDGISTW]'
6268   ;;
6269 hpux*)
6270   if test "$host_cpu" = ia64; then
6271     symcode='[ABCDEGRST]'
6272   fi
6273   ;;
6274 irix* | nonstopux*)
6275   symcode='[BCDEGRST]'
6276   ;;
6277 osf*)
6278   symcode='[BCDEGQRST]'
6279   ;;
6280 solaris*)
6281   symcode='[BDRT]'
6282   ;;
6283 sco3.2v5*)
6284   symcode='[DT]'
6285   ;;
6286 sysv4.2uw2*)
6287   symcode='[DT]'
6288   ;;
6289 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6290   symcode='[ABDT]'
6291   ;;
6292 sysv4)
6293   symcode='[DFNSTU]'
6294   ;;
6295 esac
6296
6297 # If we're using GNU nm, then use its standard symbol codes.
6298 case `$NM -V 2>&1` in
6299 *GNU* | *'with BFD'*)
6300   symcode='[ABCDGIRSTW]' ;;
6301 esac
6302
6303 # Transform an extracted symbol line into a proper C declaration.
6304 # Some systems (esp. on ia64) link data and code symbols differently,
6305 # so use this general approach.
6306 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6307
6308 # Transform an extracted symbol line into symbol name and symbol address
6309 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6310 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6311
6312 # Handle CRLF in mingw tool chain
6313 opt_cr=
6314 case $build_os in
6315 mingw*)
6316   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6317   ;;
6318 esac
6319
6320 # Try without a prefix underscore, then with it.
6321 for ac_symprfx in "" "_"; do
6322
6323   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6324   symxfrm="\\1 $ac_symprfx\\2 \\2"
6325
6326   # Write the raw and C identifiers.
6327   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6328     # Fake it for dumpbin and say T for any non-static function
6329     # and D for any global variable.
6330     # Also find C++ and __fastcall symbols from MSVC++,
6331     # which start with @ or ?.
6332     lt_cv_sys_global_symbol_pipe="$AWK '"\
6333 "     {last_section=section; section=\$ 3};"\
6334 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6335 "     \$ 0!~/External *\|/{next};"\
6336 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6337 "     {if(hide[section]) next};"\
6338 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6339 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6340 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6341 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6342 "     ' prfx=^$ac_symprfx"
6343   else
6344     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6345   fi
6346   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6347
6348   # Check to see that the pipe works correctly.
6349   pipe_works=no
6350
6351   rm -f conftest*
6352   cat > conftest.$ac_ext <<_LT_EOF
6353 #ifdef __cplusplus
6354 extern "C" {
6355 #endif
6356 char nm_test_var;
6357 void nm_test_func(void);
6358 void nm_test_func(void){}
6359 #ifdef __cplusplus
6360 }
6361 #endif
6362 int main(){nm_test_var='a';nm_test_func();return(0);}
6363 _LT_EOF
6364
6365   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6366   (eval $ac_compile) 2>&5
6367   ac_status=$?
6368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6369   test $ac_status = 0; }; then
6370     # Now try to grab the symbols.
6371     nlist=conftest.nm
6372     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6373   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6374   ac_status=$?
6375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376   test $ac_status = 0; } && test -s "$nlist"; then
6377       # Try sorting and uniquifying the output.
6378       if sort "$nlist" | uniq > "$nlist"T; then
6379         mv -f "$nlist"T "$nlist"
6380       else
6381         rm -f "$nlist"T
6382       fi
6383
6384       # Make sure that we snagged all the symbols we need.
6385       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6386         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6387           cat <<_LT_EOF > conftest.$ac_ext
6388 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6389 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6390 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6391    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6392 # define LT_DLSYM_CONST
6393 #elif defined(__osf__)
6394 /* This system does not cope well with relocations in const data.  */
6395 # define LT_DLSYM_CONST
6396 #else
6397 # define LT_DLSYM_CONST const
6398 #endif
6399
6400 #ifdef __cplusplus
6401 extern "C" {
6402 #endif
6403
6404 _LT_EOF
6405           # Now generate the symbol file.
6406           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6407
6408           cat <<_LT_EOF >> conftest.$ac_ext
6409
6410 /* The mapping between symbol names and symbols.  */
6411 LT_DLSYM_CONST struct {
6412   const char *name;
6413   void       *address;
6414 }
6415 lt__PROGRAM__LTX_preloaded_symbols[] =
6416 {
6417   { "@PROGRAM@", (void *) 0 },
6418 _LT_EOF
6419           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6420           cat <<\_LT_EOF >> conftest.$ac_ext
6421   {0, (void *) 0}
6422 };
6423
6424 /* This works around a problem in FreeBSD linker */
6425 #ifdef FREEBSD_WORKAROUND
6426 static const void *lt_preloaded_setup() {
6427   return lt__PROGRAM__LTX_preloaded_symbols;
6428 }
6429 #endif
6430
6431 #ifdef __cplusplus
6432 }
6433 #endif
6434 _LT_EOF
6435           # Now try linking the two files.
6436           mv conftest.$ac_objext conftstm.$ac_objext
6437           lt_globsym_save_LIBS=$LIBS
6438           lt_globsym_save_CFLAGS=$CFLAGS
6439           LIBS="conftstm.$ac_objext"
6440           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6441           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6442   (eval $ac_link) 2>&5
6443   ac_status=$?
6444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6445   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6446             pipe_works=yes
6447           fi
6448           LIBS=$lt_globsym_save_LIBS
6449           CFLAGS=$lt_globsym_save_CFLAGS
6450         else
6451           echo "cannot find nm_test_func in $nlist" >&5
6452         fi
6453       else
6454         echo "cannot find nm_test_var in $nlist" >&5
6455       fi
6456     else
6457       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6458     fi
6459   else
6460     echo "$progname: failed program was:" >&5
6461     cat conftest.$ac_ext >&5
6462   fi
6463   rm -rf conftest* conftst*
6464
6465   # Do not use the global_symbol_pipe unless it works.
6466   if test "$pipe_works" = yes; then
6467     break
6468   else
6469     lt_cv_sys_global_symbol_pipe=
6470   fi
6471 done
6472
6473 fi
6474
6475 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6476   lt_cv_sys_global_symbol_to_cdecl=
6477 fi
6478 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6480 $as_echo "failed" >&6; }
6481 else
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6483 $as_echo "ok" >&6; }
6484 fi
6485
6486 # Response file support.
6487 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6488   nm_file_list_spec='@'
6489 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6490   nm_file_list_spec='@'
6491 fi
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6520 $as_echo_n "checking for sysroot... " >&6; }
6521
6522 # Check whether --with-sysroot was given.
6523 if test "${with_sysroot+set}" = set; then :
6524   withval=$with_sysroot;
6525 else
6526   with_sysroot=no
6527 fi
6528
6529
6530 lt_sysroot=
6531 case ${with_sysroot} in #(
6532  yes)
6533    if test "$GCC" = yes; then
6534      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6535    fi
6536    ;; #(
6537  /*)
6538    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6539    ;; #(
6540  no|'')
6541    ;; #(
6542  *)
6543    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6544 $as_echo "${with_sysroot}" >&6; }
6545    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6546    ;;
6547 esac
6548
6549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6550 $as_echo "${lt_sysroot:-no}" >&6; }
6551
6552
6553
6554
6555
6556 # Check whether --enable-libtool-lock was given.
6557 if test "${enable_libtool_lock+set}" = set; then :
6558   enableval=$enable_libtool_lock;
6559 fi
6560
6561 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6562
6563 # Some flags need to be propagated to the compiler or linker for good
6564 # libtool support.
6565 case $host in
6566 ia64-*-hpux*)
6567   # Find out which ABI we are using.
6568   echo 'int i;' > conftest.$ac_ext
6569   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6570   (eval $ac_compile) 2>&5
6571   ac_status=$?
6572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573   test $ac_status = 0; }; then
6574     case `/usr/bin/file conftest.$ac_objext` in
6575       *ELF-32*)
6576         HPUX_IA64_MODE="32"
6577         ;;
6578       *ELF-64*)
6579         HPUX_IA64_MODE="64"
6580         ;;
6581     esac
6582   fi
6583   rm -rf conftest*
6584   ;;
6585 *-*-irix6*)
6586   # Find out which ABI we are using.
6587   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6588   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6589   (eval $ac_compile) 2>&5
6590   ac_status=$?
6591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6592   test $ac_status = 0; }; then
6593     if test "$lt_cv_prog_gnu_ld" = yes; then
6594       case `/usr/bin/file conftest.$ac_objext` in
6595         *32-bit*)
6596           LD="${LD-ld} -melf32bsmip"
6597           ;;
6598         *N32*)
6599           LD="${LD-ld} -melf32bmipn32"
6600           ;;
6601         *64-bit*)
6602           LD="${LD-ld} -melf64bmip"
6603         ;;
6604       esac
6605     else
6606       case `/usr/bin/file conftest.$ac_objext` in
6607         *32-bit*)
6608           LD="${LD-ld} -32"
6609           ;;
6610         *N32*)
6611           LD="${LD-ld} -n32"
6612           ;;
6613         *64-bit*)
6614           LD="${LD-ld} -64"
6615           ;;
6616       esac
6617     fi
6618   fi
6619   rm -rf conftest*
6620   ;;
6621
6622 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6623 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6624   # Find out which ABI we are using.
6625   echo 'int i;' > conftest.$ac_ext
6626   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6627   (eval $ac_compile) 2>&5
6628   ac_status=$?
6629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6630   test $ac_status = 0; }; then
6631     case `/usr/bin/file conftest.o` in
6632       *32-bit*)
6633         case $host in
6634           x86_64-*kfreebsd*-gnu)
6635             LD="${LD-ld} -m elf_i386_fbsd"
6636             ;;
6637           x86_64-*linux*)
6638             LD="${LD-ld} -m elf_i386"
6639             ;;
6640           ppc64-*linux*|powerpc64-*linux*)
6641             LD="${LD-ld} -m elf32ppclinux"
6642             ;;
6643           s390x-*linux*)
6644             LD="${LD-ld} -m elf_s390"
6645             ;;
6646           sparc64-*linux*)
6647             LD="${LD-ld} -m elf32_sparc"
6648             ;;
6649         esac
6650         ;;
6651       *64-bit*)
6652         case $host in
6653           x86_64-*kfreebsd*-gnu)
6654             LD="${LD-ld} -m elf_x86_64_fbsd"
6655             ;;
6656           x86_64-*linux*)
6657             LD="${LD-ld} -m elf_x86_64"
6658             ;;
6659           ppc*-*linux*|powerpc*-*linux*)
6660             LD="${LD-ld} -m elf64ppc"
6661             ;;
6662           s390*-*linux*|s390*-*tpf*)
6663             LD="${LD-ld} -m elf64_s390"
6664             ;;
6665           sparc*-*linux*)
6666             LD="${LD-ld} -m elf64_sparc"
6667             ;;
6668         esac
6669         ;;
6670     esac
6671   fi
6672   rm -rf conftest*
6673   ;;
6674
6675 *-*-sco3.2v5*)
6676   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6677   SAVE_CFLAGS="$CFLAGS"
6678   CFLAGS="$CFLAGS -belf"
6679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6680 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6681 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6682   $as_echo_n "(cached) " >&6
6683 else
6684   ac_ext=c
6685 ac_cpp='$CPP $CPPFLAGS'
6686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6689
6690      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h.  */
6692
6693 int
6694 main ()
6695 {
6696
6697   ;
6698   return 0;
6699 }
6700 _ACEOF
6701 if ac_fn_c_try_link "$LINENO"; then :
6702   lt_cv_cc_needs_belf=yes
6703 else
6704   lt_cv_cc_needs_belf=no
6705 fi
6706 rm -f core conftest.err conftest.$ac_objext \
6707     conftest$ac_exeext conftest.$ac_ext
6708      ac_ext=c
6709 ac_cpp='$CPP $CPPFLAGS'
6710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6713
6714 fi
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6716 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6717   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6718     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6719     CFLAGS="$SAVE_CFLAGS"
6720   fi
6721   ;;
6722 sparc*-*solaris*)
6723   # Find out which ABI we are using.
6724   echo 'int i;' > conftest.$ac_ext
6725   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6726   (eval $ac_compile) 2>&5
6727   ac_status=$?
6728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6729   test $ac_status = 0; }; then
6730     case `/usr/bin/file conftest.o` in
6731     *64-bit*)
6732       case $lt_cv_prog_gnu_ld in
6733       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6734       *)
6735         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6736           LD="${LD-ld} -64"
6737         fi
6738         ;;
6739       esac
6740       ;;
6741     esac
6742   fi
6743   rm -rf conftest*
6744   ;;
6745 esac
6746
6747 need_locks="$enable_libtool_lock"
6748
6749 if test -n "$ac_tool_prefix"; then
6750   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6751 set dummy ${ac_tool_prefix}mt; ac_word=$2
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753 $as_echo_n "checking for $ac_word... " >&6; }
6754 if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
6755   $as_echo_n "(cached) " >&6
6756 else
6757   if test -n "$MANIFEST_TOOL"; then
6758   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6759 else
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763   IFS=$as_save_IFS
6764   test -z "$as_dir" && as_dir=.
6765     for ac_exec_ext in '' $ac_executable_extensions; do
6766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6767     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769     break 2
6770   fi
6771 done
6772   done
6773 IFS=$as_save_IFS
6774
6775 fi
6776 fi
6777 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6778 if test -n "$MANIFEST_TOOL"; then
6779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6780 $as_echo "$MANIFEST_TOOL" >&6; }
6781 else
6782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783 $as_echo "no" >&6; }
6784 fi
6785
6786
6787 fi
6788 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6789   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6790   # Extract the first word of "mt", so it can be a program name with args.
6791 set dummy mt; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
6795   $as_echo_n "(cached) " >&6
6796 else
6797   if test -n "$ac_ct_MANIFEST_TOOL"; then
6798   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803   IFS=$as_save_IFS
6804   test -z "$as_dir" && as_dir=.
6805     for ac_exec_ext in '' $ac_executable_extensions; do
6806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809     break 2
6810   fi
6811 done
6812   done
6813 IFS=$as_save_IFS
6814
6815 fi
6816 fi
6817 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6818 if test -n "$ac_ct_MANIFEST_TOOL"; then
6819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6820 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6821 else
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6824 fi
6825
6826   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6827     MANIFEST_TOOL=":"
6828   else
6829     case $cross_compiling:$ac_tool_warned in
6830 yes:)
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6833 ac_tool_warned=yes ;;
6834 esac
6835     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6836   fi
6837 else
6838   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6839 fi
6840
6841 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6843 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6844 if test "${lt_cv_path_mainfest_tool+set}" = set; then :
6845   $as_echo_n "(cached) " >&6
6846 else
6847   lt_cv_path_mainfest_tool=no
6848   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6849   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6850   cat conftest.err >&5
6851   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6852     lt_cv_path_mainfest_tool=yes
6853   fi
6854   rm -f conftest*
6855 fi
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6857 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6858 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6859   MANIFEST_TOOL=:
6860 fi
6861
6862
6863
6864
6865
6866
6867   case $host_os in
6868     rhapsody* | darwin*)
6869     if test -n "$ac_tool_prefix"; then
6870   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6871 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6875   $as_echo_n "(cached) " >&6
6876 else
6877   if test -n "$DSYMUTIL"; then
6878   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883   IFS=$as_save_IFS
6884   test -z "$as_dir" && as_dir=.
6885     for ac_exec_ext in '' $ac_executable_extensions; do
6886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889     break 2
6890   fi
6891 done
6892   done
6893 IFS=$as_save_IFS
6894
6895 fi
6896 fi
6897 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6898 if test -n "$DSYMUTIL"; then
6899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6900 $as_echo "$DSYMUTIL" >&6; }
6901 else
6902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6904 fi
6905
6906
6907 fi
6908 if test -z "$ac_cv_prog_DSYMUTIL"; then
6909   ac_ct_DSYMUTIL=$DSYMUTIL
6910   # Extract the first word of "dsymutil", so it can be a program name with args.
6911 set dummy dsymutil; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6915   $as_echo_n "(cached) " >&6
6916 else
6917   if test -n "$ac_ct_DSYMUTIL"; then
6918   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923   IFS=$as_save_IFS
6924   test -z "$as_dir" && as_dir=.
6925     for ac_exec_ext in '' $ac_executable_extensions; do
6926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929     break 2
6930   fi
6931 done
6932   done
6933 IFS=$as_save_IFS
6934
6935 fi
6936 fi
6937 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6938 if test -n "$ac_ct_DSYMUTIL"; then
6939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6940 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6941 else
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6944 fi
6945
6946   if test "x$ac_ct_DSYMUTIL" = x; then
6947     DSYMUTIL=":"
6948   else
6949     case $cross_compiling:$ac_tool_warned in
6950 yes:)
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953 ac_tool_warned=yes ;;
6954 esac
6955     DSYMUTIL=$ac_ct_DSYMUTIL
6956   fi
6957 else
6958   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6959 fi
6960
6961     if test -n "$ac_tool_prefix"; then
6962   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6963 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6967   $as_echo_n "(cached) " >&6
6968 else
6969   if test -n "$NMEDIT"; then
6970   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6971 else
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6974 do
6975   IFS=$as_save_IFS
6976   test -z "$as_dir" && as_dir=.
6977     for ac_exec_ext in '' $ac_executable_extensions; do
6978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981     break 2
6982   fi
6983 done
6984   done
6985 IFS=$as_save_IFS
6986
6987 fi
6988 fi
6989 NMEDIT=$ac_cv_prog_NMEDIT
6990 if test -n "$NMEDIT"; then
6991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6992 $as_echo "$NMEDIT" >&6; }
6993 else
6994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6996 fi
6997
6998
6999 fi
7000 if test -z "$ac_cv_prog_NMEDIT"; then
7001   ac_ct_NMEDIT=$NMEDIT
7002   # Extract the first word of "nmedit", so it can be a program name with args.
7003 set dummy nmedit; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7007   $as_echo_n "(cached) " >&6
7008 else
7009   if test -n "$ac_ct_NMEDIT"; then
7010   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015   IFS=$as_save_IFS
7016   test -z "$as_dir" && as_dir=.
7017     for ac_exec_ext in '' $ac_executable_extensions; do
7018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021     break 2
7022   fi
7023 done
7024   done
7025 IFS=$as_save_IFS
7026
7027 fi
7028 fi
7029 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7030 if test -n "$ac_ct_NMEDIT"; then
7031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7032 $as_echo "$ac_ct_NMEDIT" >&6; }
7033 else
7034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7036 fi
7037
7038   if test "x$ac_ct_NMEDIT" = x; then
7039     NMEDIT=":"
7040   else
7041     case $cross_compiling:$ac_tool_warned in
7042 yes:)
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7045 ac_tool_warned=yes ;;
7046 esac
7047     NMEDIT=$ac_ct_NMEDIT
7048   fi
7049 else
7050   NMEDIT="$ac_cv_prog_NMEDIT"
7051 fi
7052
7053     if test -n "$ac_tool_prefix"; then
7054   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7055 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if test "${ac_cv_prog_LIPO+set}" = set; then :
7059   $as_echo_n "(cached) " >&6
7060 else
7061   if test -n "$LIPO"; then
7062   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067   IFS=$as_save_IFS
7068   test -z "$as_dir" && as_dir=.
7069     for ac_exec_ext in '' $ac_executable_extensions; do
7070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073     break 2
7074   fi
7075 done
7076   done
7077 IFS=$as_save_IFS
7078
7079 fi
7080 fi
7081 LIPO=$ac_cv_prog_LIPO
7082 if test -n "$LIPO"; then
7083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7084 $as_echo "$LIPO" >&6; }
7085 else
7086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 $as_echo "no" >&6; }
7088 fi
7089
7090
7091 fi
7092 if test -z "$ac_cv_prog_LIPO"; then
7093   ac_ct_LIPO=$LIPO
7094   # Extract the first word of "lipo", so it can be a program name with args.
7095 set dummy lipo; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7099   $as_echo_n "(cached) " >&6
7100 else
7101   if test -n "$ac_ct_LIPO"; then
7102   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107   IFS=$as_save_IFS
7108   test -z "$as_dir" && as_dir=.
7109     for ac_exec_ext in '' $ac_executable_extensions; do
7110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111     ac_cv_prog_ac_ct_LIPO="lipo"
7112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113     break 2
7114   fi
7115 done
7116   done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7122 if test -n "$ac_ct_LIPO"; then
7123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7124 $as_echo "$ac_ct_LIPO" >&6; }
7125 else
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7128 fi
7129
7130   if test "x$ac_ct_LIPO" = x; then
7131     LIPO=":"
7132   else
7133     case $cross_compiling:$ac_tool_warned in
7134 yes:)
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7137 ac_tool_warned=yes ;;
7138 esac
7139     LIPO=$ac_ct_LIPO
7140   fi
7141 else
7142   LIPO="$ac_cv_prog_LIPO"
7143 fi
7144
7145     if test -n "$ac_tool_prefix"; then
7146   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7147 set dummy ${ac_tool_prefix}otool; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7151   $as_echo_n "(cached) " >&6
7152 else
7153   if test -n "$OTOOL"; then
7154   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159   IFS=$as_save_IFS
7160   test -z "$as_dir" && as_dir=.
7161     for ac_exec_ext in '' $ac_executable_extensions; do
7162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165     break 2
7166   fi
7167 done
7168   done
7169 IFS=$as_save_IFS
7170
7171 fi
7172 fi
7173 OTOOL=$ac_cv_prog_OTOOL
7174 if test -n "$OTOOL"; then
7175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7176 $as_echo "$OTOOL" >&6; }
7177 else
7178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 fi
7181
7182
7183 fi
7184 if test -z "$ac_cv_prog_OTOOL"; then
7185   ac_ct_OTOOL=$OTOOL
7186   # Extract the first word of "otool", so it can be a program name with args.
7187 set dummy otool; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7191   $as_echo_n "(cached) " >&6
7192 else
7193   if test -n "$ac_ct_OTOOL"; then
7194   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199   IFS=$as_save_IFS
7200   test -z "$as_dir" && as_dir=.
7201     for ac_exec_ext in '' $ac_executable_extensions; do
7202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203     ac_cv_prog_ac_ct_OTOOL="otool"
7204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205     break 2
7206   fi
7207 done
7208   done
7209 IFS=$as_save_IFS
7210
7211 fi
7212 fi
7213 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7214 if test -n "$ac_ct_OTOOL"; then
7215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7216 $as_echo "$ac_ct_OTOOL" >&6; }
7217 else
7218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7220 fi
7221
7222   if test "x$ac_ct_OTOOL" = x; then
7223     OTOOL=":"
7224   else
7225     case $cross_compiling:$ac_tool_warned in
7226 yes:)
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7229 ac_tool_warned=yes ;;
7230 esac
7231     OTOOL=$ac_ct_OTOOL
7232   fi
7233 else
7234   OTOOL="$ac_cv_prog_OTOOL"
7235 fi
7236
7237     if test -n "$ac_tool_prefix"; then
7238   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7243   $as_echo_n "(cached) " >&6
7244 else
7245   if test -n "$OTOOL64"; then
7246   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251   IFS=$as_save_IFS
7252   test -z "$as_dir" && as_dir=.
7253     for ac_exec_ext in '' $ac_executable_extensions; do
7254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7255     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257     break 2
7258   fi
7259 done
7260   done
7261 IFS=$as_save_IFS
7262
7263 fi
7264 fi
7265 OTOOL64=$ac_cv_prog_OTOOL64
7266 if test -n "$OTOOL64"; then
7267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7268 $as_echo "$OTOOL64" >&6; }
7269 else
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7272 fi
7273
7274
7275 fi
7276 if test -z "$ac_cv_prog_OTOOL64"; then
7277   ac_ct_OTOOL64=$OTOOL64
7278   # Extract the first word of "otool64", so it can be a program name with args.
7279 set dummy otool64; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7283   $as_echo_n "(cached) " >&6
7284 else
7285   if test -n "$ac_ct_OTOOL64"; then
7286   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291   IFS=$as_save_IFS
7292   test -z "$as_dir" && as_dir=.
7293     for ac_exec_ext in '' $ac_executable_extensions; do
7294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295     ac_cv_prog_ac_ct_OTOOL64="otool64"
7296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297     break 2
7298   fi
7299 done
7300   done
7301 IFS=$as_save_IFS
7302
7303 fi
7304 fi
7305 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7306 if test -n "$ac_ct_OTOOL64"; then
7307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7308 $as_echo "$ac_ct_OTOOL64" >&6; }
7309 else
7310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7312 fi
7313
7314   if test "x$ac_ct_OTOOL64" = x; then
7315     OTOOL64=":"
7316   else
7317     case $cross_compiling:$ac_tool_warned in
7318 yes:)
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321 ac_tool_warned=yes ;;
7322 esac
7323     OTOOL64=$ac_ct_OTOOL64
7324   fi
7325 else
7326   OTOOL64="$ac_cv_prog_OTOOL64"
7327 fi
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7356 $as_echo_n "checking for -single_module linker flag... " >&6; }
7357 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7358   $as_echo_n "(cached) " >&6
7359 else
7360   lt_cv_apple_cc_single_mod=no
7361       if test -z "${LT_MULTI_MODULE}"; then
7362         # By default we will add the -single_module flag. You can override
7363         # by either setting the environment variable LT_MULTI_MODULE
7364         # non-empty at configure time, or by adding -multi_module to the
7365         # link flags.
7366         rm -rf libconftest.dylib*
7367         echo "int foo(void){return 1;}" > conftest.c
7368         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7369 -dynamiclib -Wl,-single_module conftest.c" >&5
7370         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7371           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7372         _lt_result=$?
7373         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7374           lt_cv_apple_cc_single_mod=yes
7375         else
7376           cat conftest.err >&5
7377         fi
7378         rm -rf libconftest.dylib*
7379         rm -f conftest.*
7380       fi
7381 fi
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7383 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7385 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7386 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7387   $as_echo_n "(cached) " >&6
7388 else
7389   lt_cv_ld_exported_symbols_list=no
7390       save_LDFLAGS=$LDFLAGS
7391       echo "_main" > conftest.sym
7392       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7393       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h.  */
7395
7396 int
7397 main ()
7398 {
7399
7400   ;
7401   return 0;
7402 }
7403 _ACEOF
7404 if ac_fn_c_try_link "$LINENO"; then :
7405   lt_cv_ld_exported_symbols_list=yes
7406 else
7407   lt_cv_ld_exported_symbols_list=no
7408 fi
7409 rm -f core conftest.err conftest.$ac_objext \
7410     conftest$ac_exeext conftest.$ac_ext
7411         LDFLAGS="$save_LDFLAGS"
7412
7413 fi
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7415 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7417 $as_echo_n "checking for -force_load linker flag... " >&6; }
7418 if test "${lt_cv_ld_force_load+set}" = set; then :
7419   $as_echo_n "(cached) " >&6
7420 else
7421   lt_cv_ld_force_load=no
7422       cat > conftest.c << _LT_EOF
7423 int forced_loaded() { return 2;}
7424 _LT_EOF
7425       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7426       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7427       echo "$AR cru libconftest.a conftest.o" >&5
7428       $AR cru libconftest.a conftest.o 2>&5
7429       echo "$RANLIB libconftest.a" >&5
7430       $RANLIB libconftest.a 2>&5
7431       cat > conftest.c << _LT_EOF
7432 int main() { return 0;}
7433 _LT_EOF
7434       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7435       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7436       _lt_result=$?
7437       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7438         lt_cv_ld_force_load=yes
7439       else
7440         cat conftest.err >&5
7441       fi
7442         rm -f conftest.err libconftest.a conftest conftest.c
7443         rm -rf conftest.dSYM
7444
7445 fi
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7447 $as_echo "$lt_cv_ld_force_load" >&6; }
7448     case $host_os in
7449     rhapsody* | darwin1.[012])
7450       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7451     darwin1.*)
7452       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7453     darwin*) # darwin 5.x on
7454       # if running on 10.5 or later, the deployment target defaults
7455       # to the OS version, if on x86, and 10.4, the deployment
7456       # target defaults to 10.4. Don't you love it?
7457       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7458         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7459           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7460         10.[012]*)
7461           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7462         10.*)
7463           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7464       esac
7465     ;;
7466   esac
7467     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7468       _lt_dar_single_mod='$single_module'
7469     fi
7470     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7471       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7472     else
7473       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7474     fi
7475     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7476       _lt_dsymutil='~$DSYMUTIL $lib || :'
7477     else
7478       _lt_dsymutil=
7479     fi
7480     ;;
7481   esac
7482
7483 ac_ext=c
7484 ac_cpp='$CPP $CPPFLAGS'
7485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7489 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7490 # On Suns, sometimes $CPP names a directory.
7491 if test -n "$CPP" && test -d "$CPP"; then
7492   CPP=
7493 fi
7494 if test -z "$CPP"; then
7495   if test "${ac_cv_prog_CPP+set}" = set; then :
7496   $as_echo_n "(cached) " >&6
7497 else
7498       # Double quotes because CPP needs to be expanded
7499     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7500     do
7501       ac_preproc_ok=false
7502 for ac_c_preproc_warn_flag in '' yes
7503 do
7504   # Use a header file that comes with gcc, so configuring glibc
7505   # with a fresh cross-compiler works.
7506   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7507   # <limits.h> exists even on freestanding compilers.
7508   # On the NeXT, cc -E runs the code through the compiler's parser,
7509   # not just through cpp. "Syntax error" is here to catch this case.
7510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h.  */
7512 #ifdef __STDC__
7513 # include <limits.h>
7514 #else
7515 # include <assert.h>
7516 #endif
7517                      Syntax error
7518 _ACEOF
7519 if ac_fn_c_try_cpp "$LINENO"; then :
7520
7521 else
7522   # Broken: fails on valid input.
7523 continue
7524 fi
7525 rm -f conftest.err conftest.i conftest.$ac_ext
7526
7527   # OK, works on sane cases.  Now check whether nonexistent headers
7528   # can be detected and how.
7529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h.  */
7531 #include <ac_nonexistent.h>
7532 _ACEOF
7533 if ac_fn_c_try_cpp "$LINENO"; then :
7534   # Broken: success on invalid input.
7535 continue
7536 else
7537   # Passes both tests.
7538 ac_preproc_ok=:
7539 break
7540 fi
7541 rm -f conftest.err conftest.i conftest.$ac_ext
7542
7543 done
7544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7545 rm -f conftest.i conftest.err conftest.$ac_ext
7546 if $ac_preproc_ok; then :
7547   break
7548 fi
7549
7550     done
7551     ac_cv_prog_CPP=$CPP
7552
7553 fi
7554   CPP=$ac_cv_prog_CPP
7555 else
7556   ac_cv_prog_CPP=$CPP
7557 fi
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7559 $as_echo "$CPP" >&6; }
7560 ac_preproc_ok=false
7561 for ac_c_preproc_warn_flag in '' yes
7562 do
7563   # Use a header file that comes with gcc, so configuring glibc
7564   # with a fresh cross-compiler works.
7565   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7566   # <limits.h> exists even on freestanding compilers.
7567   # On the NeXT, cc -E runs the code through the compiler's parser,
7568   # not just through cpp. "Syntax error" is here to catch this case.
7569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h.  */
7571 #ifdef __STDC__
7572 # include <limits.h>
7573 #else
7574 # include <assert.h>
7575 #endif
7576                      Syntax error
7577 _ACEOF
7578 if ac_fn_c_try_cpp "$LINENO"; then :
7579
7580 else
7581   # Broken: fails on valid input.
7582 continue
7583 fi
7584 rm -f conftest.err conftest.i conftest.$ac_ext
7585
7586   # OK, works on sane cases.  Now check whether nonexistent headers
7587   # can be detected and how.
7588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h.  */
7590 #include <ac_nonexistent.h>
7591 _ACEOF
7592 if ac_fn_c_try_cpp "$LINENO"; then :
7593   # Broken: success on invalid input.
7594 continue
7595 else
7596   # Passes both tests.
7597 ac_preproc_ok=:
7598 break
7599 fi
7600 rm -f conftest.err conftest.i conftest.$ac_ext
7601
7602 done
7603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7604 rm -f conftest.i conftest.err conftest.$ac_ext
7605 if $ac_preproc_ok; then :
7606
7607 else
7608   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7610 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7611 See \`config.log' for more details" "$LINENO" 5 ; }
7612 fi
7613
7614 ac_ext=c
7615 ac_cpp='$CPP $CPPFLAGS'
7616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7619
7620
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7622 $as_echo_n "checking for ANSI C header files... " >&6; }
7623 if test "${ac_cv_header_stdc+set}" = set; then :
7624   $as_echo_n "(cached) " >&6
7625 else
7626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h.  */
7628 #include <stdlib.h>
7629 #include <stdarg.h>
7630 #include <string.h>
7631 #include <float.h>
7632
7633 int
7634 main ()
7635 {
7636
7637   ;
7638   return 0;
7639 }
7640 _ACEOF
7641 if ac_fn_c_try_compile "$LINENO"; then :
7642   ac_cv_header_stdc=yes
7643 else
7644   ac_cv_header_stdc=no
7645 fi
7646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7647
7648 if test $ac_cv_header_stdc = yes; then
7649   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h.  */
7652 #include <string.h>
7653
7654 _ACEOF
7655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7656   $EGREP "memchr" >/dev/null 2>&1; then :
7657
7658 else
7659   ac_cv_header_stdc=no
7660 fi
7661 rm -f conftest*
7662
7663 fi
7664
7665 if test $ac_cv_header_stdc = yes; then
7666   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h.  */
7669 #include <stdlib.h>
7670
7671 _ACEOF
7672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7673   $EGREP "free" >/dev/null 2>&1; then :
7674
7675 else
7676   ac_cv_header_stdc=no
7677 fi
7678 rm -f conftest*
7679
7680 fi
7681
7682 if test $ac_cv_header_stdc = yes; then
7683   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7684   if test "$cross_compiling" = yes; then :
7685   :
7686 else
7687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h.  */
7689 #include <ctype.h>
7690 #include <stdlib.h>
7691 #if ((' ' & 0x0FF) == 0x020)
7692 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7693 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7694 #else
7695 # define ISLOWER(c) \
7696                    (('a' <= (c) && (c) <= 'i') \
7697                      || ('j' <= (c) && (c) <= 'r') \
7698                      || ('s' <= (c) && (c) <= 'z'))
7699 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7700 #endif
7701
7702 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7703 int
7704 main ()
7705 {
7706   int i;
7707   for (i = 0; i < 256; i++)
7708     if (XOR (islower (i), ISLOWER (i))
7709         || toupper (i) != TOUPPER (i))
7710       return 2;
7711   return 0;
7712 }
7713 _ACEOF
7714 if ac_fn_c_try_run "$LINENO"; then :
7715
7716 else
7717   ac_cv_header_stdc=no
7718 fi
7719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7720   conftest.$ac_objext conftest.beam conftest.$ac_ext
7721 fi
7722
7723 fi
7724 fi
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7726 $as_echo "$ac_cv_header_stdc" >&6; }
7727 if test $ac_cv_header_stdc = yes; then
7728
7729 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7730
7731 fi
7732
7733 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7734 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7735                   inttypes.h stdint.h unistd.h
7736 do :
7737   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7738 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7739 "
7740 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7741   cat >>confdefs.h <<_ACEOF
7742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7743 _ACEOF
7744
7745 fi
7746
7747 done
7748
7749
7750 for ac_header in dlfcn.h
7751 do :
7752   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7753 "
7754 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7755   cat >>confdefs.h <<_ACEOF
7756 #define HAVE_DLFCN_H 1
7757 _ACEOF
7758
7759 fi
7760
7761 done
7762
7763
7764
7765
7766
7767 # Set options
7768
7769
7770
7771         enable_dlopen=no
7772
7773
7774   enable_win32_dll=no
7775
7776
7777             # Check whether --enable-shared was given.
7778 if test "${enable_shared+set}" = set; then :
7779   enableval=$enable_shared; p=${PACKAGE-default}
7780     case $enableval in
7781     yes) enable_shared=yes ;;
7782     no) enable_shared=no ;;
7783     *)
7784       enable_shared=no
7785       # Look at the argument we got.  We use all the common list separators.
7786       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7787       for pkg in $enableval; do
7788         IFS="$lt_save_ifs"
7789         if test "X$pkg" = "X$p"; then
7790           enable_shared=yes
7791         fi
7792       done
7793       IFS="$lt_save_ifs"
7794       ;;
7795     esac
7796 else
7797   enable_shared=yes
7798 fi
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810 # Check whether --with-pic was given.
7811 if test "${with_pic+set}" = set; then :
7812   withval=$with_pic; pic_mode="$withval"
7813 else
7814   pic_mode=default
7815 fi
7816
7817
7818 test -z "$pic_mode" && pic_mode=default
7819
7820
7821
7822
7823
7824
7825
7826   # Check whether --enable-fast-install was given.
7827 if test "${enable_fast_install+set}" = set; then :
7828   enableval=$enable_fast_install; p=${PACKAGE-default}
7829     case $enableval in
7830     yes) enable_fast_install=yes ;;
7831     no) enable_fast_install=no ;;
7832     *)
7833       enable_fast_install=no
7834       # Look at the argument we got.  We use all the common list separators.
7835       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7836       for pkg in $enableval; do
7837         IFS="$lt_save_ifs"
7838         if test "X$pkg" = "X$p"; then
7839           enable_fast_install=yes
7840         fi
7841       done
7842       IFS="$lt_save_ifs"
7843       ;;
7844     esac
7845 else
7846   enable_fast_install=yes
7847 fi
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859 # This can be used to rebuild libtool when needed
7860 LIBTOOL_DEPS="$ltmain"
7861
7862 # Always use our own libtool.
7863 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890 test -z "$LN_S" && LN_S="ln -s"
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905 if test -n "${ZSH_VERSION+set}" ; then
7906    setopt NO_GLOB_SUBST
7907 fi
7908
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7910 $as_echo_n "checking for objdir... " >&6; }
7911 if test "${lt_cv_objdir+set}" = set; then :
7912   $as_echo_n "(cached) " >&6
7913 else
7914   rm -f .libs 2>/dev/null
7915 mkdir .libs 2>/dev/null
7916 if test -d .libs; then
7917   lt_cv_objdir=.libs
7918 else
7919   # MS-DOS does not allow filenames that begin with a dot.
7920   lt_cv_objdir=_libs
7921 fi
7922 rmdir .libs 2>/dev/null
7923 fi
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7925 $as_echo "$lt_cv_objdir" >&6; }
7926 objdir=$lt_cv_objdir
7927
7928
7929
7930
7931
7932 cat >>confdefs.h <<_ACEOF
7933 #define LT_OBJDIR "$lt_cv_objdir/"
7934 _ACEOF
7935
7936
7937
7938
7939 case $host_os in
7940 aix3*)
7941   # AIX sometimes has problems with the GCC collect2 program.  For some
7942   # reason, if we set the COLLECT_NAMES environment variable, the problems
7943   # vanish in a puff of smoke.
7944   if test "X${COLLECT_NAMES+set}" != Xset; then
7945     COLLECT_NAMES=
7946     export COLLECT_NAMES
7947   fi
7948   ;;
7949 esac
7950
7951 # Global variables:
7952 ofile=libtool
7953 can_build_shared=yes
7954
7955 # All known linkers require a `.a' archive for static linking (except MSVC,
7956 # which needs '.lib').
7957 libext=a
7958
7959 with_gnu_ld="$lt_cv_prog_gnu_ld"
7960
7961 old_CC="$CC"
7962 old_CFLAGS="$CFLAGS"
7963
7964 # Set sane defaults for various variables
7965 test -z "$CC" && CC=cc
7966 test -z "$LTCC" && LTCC=$CC
7967 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7968 test -z "$LD" && LD=ld
7969 test -z "$ac_objext" && ac_objext=o
7970
7971 for cc_temp in $compiler""; do
7972   case $cc_temp in
7973     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7974     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7975     \-*) ;;
7976     *) break;;
7977   esac
7978 done
7979 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7980
7981
7982 # Only perform the check for file, if the check method requires it
7983 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7984 case $deplibs_check_method in
7985 file_magic*)
7986   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7988 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7989 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7990   $as_echo_n "(cached) " >&6
7991 else
7992   case $MAGIC_CMD in
7993 [\\/*] |  ?:[\\/]*)
7994   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7995   ;;
7996 *)
7997   lt_save_MAGIC_CMD="$MAGIC_CMD"
7998   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7999   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8000   for ac_dir in $ac_dummy; do
8001     IFS="$lt_save_ifs"
8002     test -z "$ac_dir" && ac_dir=.
8003     if test -f $ac_dir/${ac_tool_prefix}file; then
8004       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8005       if test -n "$file_magic_test_file"; then
8006         case $deplibs_check_method in
8007         "file_magic "*)
8008           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8009           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8010           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8011             $EGREP "$file_magic_regex" > /dev/null; then
8012             :
8013           else
8014             cat <<_LT_EOF 1>&2
8015
8016 *** Warning: the command libtool uses to detect shared libraries,
8017 *** $file_magic_cmd, produces output that libtool cannot recognize.
8018 *** The result is that libtool may fail to recognize shared libraries
8019 *** as such.  This will affect the creation of libtool libraries that
8020 *** depend on shared libraries, but programs linked with such libtool
8021 *** libraries will work regardless of this problem.  Nevertheless, you
8022 *** may want to report the problem to your system manager and/or to
8023 *** bug-libtool@gnu.org
8024
8025 _LT_EOF
8026           fi ;;
8027         esac
8028       fi
8029       break
8030     fi
8031   done
8032   IFS="$lt_save_ifs"
8033   MAGIC_CMD="$lt_save_MAGIC_CMD"
8034   ;;
8035 esac
8036 fi
8037
8038 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8039 if test -n "$MAGIC_CMD"; then
8040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8041 $as_echo "$MAGIC_CMD" >&6; }
8042 else
8043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8045 fi
8046
8047
8048
8049
8050
8051 if test -z "$lt_cv_path_MAGIC_CMD"; then
8052   if test -n "$ac_tool_prefix"; then
8053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8054 $as_echo_n "checking for file... " >&6; }
8055 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8056   $as_echo_n "(cached) " >&6
8057 else
8058   case $MAGIC_CMD in
8059 [\\/*] |  ?:[\\/]*)
8060   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8061   ;;
8062 *)
8063   lt_save_MAGIC_CMD="$MAGIC_CMD"
8064   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8065   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8066   for ac_dir in $ac_dummy; do
8067     IFS="$lt_save_ifs"
8068     test -z "$ac_dir" && ac_dir=.
8069     if test -f $ac_dir/file; then
8070       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8071       if test -n "$file_magic_test_file"; then
8072         case $deplibs_check_method in
8073         "file_magic "*)
8074           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8075           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8076           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8077             $EGREP "$file_magic_regex" > /dev/null; then
8078             :
8079           else
8080             cat <<_LT_EOF 1>&2
8081
8082 *** Warning: the command libtool uses to detect shared libraries,
8083 *** $file_magic_cmd, produces output that libtool cannot recognize.
8084 *** The result is that libtool may fail to recognize shared libraries
8085 *** as such.  This will affect the creation of libtool libraries that
8086 *** depend on shared libraries, but programs linked with such libtool
8087 *** libraries will work regardless of this problem.  Nevertheless, you
8088 *** may want to report the problem to your system manager and/or to
8089 *** bug-libtool@gnu.org
8090
8091 _LT_EOF
8092           fi ;;
8093         esac
8094       fi
8095       break
8096     fi
8097   done
8098   IFS="$lt_save_ifs"
8099   MAGIC_CMD="$lt_save_MAGIC_CMD"
8100   ;;
8101 esac
8102 fi
8103
8104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8105 if test -n "$MAGIC_CMD"; then
8106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8107 $as_echo "$MAGIC_CMD" >&6; }
8108 else
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8111 fi
8112
8113
8114   else
8115     MAGIC_CMD=:
8116   fi
8117 fi
8118
8119   fi
8120   ;;
8121 esac
8122
8123 # Use C for the default configuration in the libtool script
8124
8125 lt_save_CC="$CC"
8126 ac_ext=c
8127 ac_cpp='$CPP $CPPFLAGS'
8128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8131
8132
8133 # Source file extension for C test sources.
8134 ac_ext=c
8135
8136 # Object file extension for compiled C test sources.
8137 objext=o
8138 objext=$objext
8139
8140 # Code to be used in simple compile tests
8141 lt_simple_compile_test_code="int some_variable = 0;"
8142
8143 # Code to be used in simple link tests
8144 lt_simple_link_test_code='int main(){return(0);}'
8145
8146
8147
8148
8149
8150
8151
8152 # If no C compiler was specified, use CC.
8153 LTCC=${LTCC-"$CC"}
8154
8155 # If no C compiler flags were specified, use CFLAGS.
8156 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8157
8158 # Allow CC to be a program name with arguments.
8159 compiler=$CC
8160
8161 # Save the default compiler, since it gets overwritten when the other
8162 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8163 compiler_DEFAULT=$CC
8164
8165 # save warnings/boilerplate of simple test code
8166 ac_outfile=conftest.$ac_objext
8167 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8168 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8169 _lt_compiler_boilerplate=`cat conftest.err`
8170 $RM conftest*
8171
8172 ac_outfile=conftest.$ac_objext
8173 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8174 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8175 _lt_linker_boilerplate=`cat conftest.err`
8176 $RM -r conftest*
8177
8178
8179 ## CAVEAT EMPTOR:
8180 ## There is no encapsulation within the following macros, do not change
8181 ## the running order or otherwise move them around unless you know exactly
8182 ## what you are doing...
8183 if test -n "$compiler"; then
8184
8185 lt_prog_compiler_no_builtin_flag=
8186
8187 if test "$GCC" = yes; then
8188   case $cc_basename in
8189   nvcc*)
8190     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8191   *)
8192     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8193   esac
8194
8195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8196 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8197 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8198   $as_echo_n "(cached) " >&6
8199 else
8200   lt_cv_prog_compiler_rtti_exceptions=no
8201    ac_outfile=conftest.$ac_objext
8202    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8203    lt_compiler_flag="-fno-rtti -fno-exceptions"
8204    # Insert the option either (1) after the last *FLAGS variable, or
8205    # (2) before a word containing "conftest.", or (3) at the end.
8206    # Note that $ac_compile itself does not contain backslashes and begins
8207    # with a dollar sign (not a hyphen), so the echo should work correctly.
8208    # The option is referenced via a variable to avoid confusing sed.
8209    lt_compile=`echo "$ac_compile" | $SED \
8210    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8211    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8212    -e 's:$: $lt_compiler_flag:'`
8213    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8214    (eval "$lt_compile" 2>conftest.err)
8215    ac_status=$?
8216    cat conftest.err >&5
8217    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218    if (exit $ac_status) && test -s "$ac_outfile"; then
8219      # The compiler can only warn and ignore the option if not recognized
8220      # So say no if there are warnings other than the usual output.
8221      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8222      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8223      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8224        lt_cv_prog_compiler_rtti_exceptions=yes
8225      fi
8226    fi
8227    $RM conftest*
8228
8229 fi
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8231 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8232
8233 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8234     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8235 else
8236     :
8237 fi
8238
8239 fi
8240
8241
8242
8243
8244
8245
8246   lt_prog_compiler_wl=
8247 lt_prog_compiler_pic=
8248 lt_prog_compiler_static=
8249
8250
8251   if test "$GCC" = yes; then
8252     lt_prog_compiler_wl='-Wl,'
8253     lt_prog_compiler_static='-static'
8254
8255     case $host_os in
8256       aix*)
8257       # All AIX code is PIC.
8258       if test "$host_cpu" = ia64; then
8259         # AIX 5 now supports IA64 processor
8260         lt_prog_compiler_static='-Bstatic'
8261       fi
8262       ;;
8263
8264     amigaos*)
8265       case $host_cpu in
8266       powerpc)
8267             # see comment about AmigaOS4 .so support
8268             lt_prog_compiler_pic='-fPIC'
8269         ;;
8270       m68k)
8271             # FIXME: we need at least 68020 code to build shared libraries, but
8272             # adding the `-m68020' flag to GCC prevents building anything better,
8273             # like `-m68040'.
8274             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8275         ;;
8276       esac
8277       ;;
8278
8279     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8280       # PIC is the default for these OSes.
8281       ;;
8282
8283     mingw* | cygwin* | pw32* | os2* | cegcc*)
8284       # This hack is so that the source file can tell whether it is being
8285       # built for inclusion in a dll (and should export symbols for example).
8286       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8287       # (--disable-auto-import) libraries
8288       lt_prog_compiler_pic='-DDLL_EXPORT'
8289       ;;
8290
8291     darwin* | rhapsody*)
8292       # PIC is the default on this platform
8293       # Common symbols not allowed in MH_DYLIB files
8294       lt_prog_compiler_pic='-fno-common'
8295       ;;
8296
8297     haiku*)
8298       # PIC is the default for Haiku.
8299       # The "-static" flag exists, but is broken.
8300       lt_prog_compiler_static=
8301       ;;
8302
8303     hpux*)
8304       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8305       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8306       # sets the default TLS model and affects inlining.
8307       case $host_cpu in
8308       hppa*64*)
8309         # +Z the default
8310         ;;
8311       *)
8312         lt_prog_compiler_pic='-fPIC'
8313         ;;
8314       esac
8315       ;;
8316
8317     interix[3-9]*)
8318       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8319       # Instead, we relocate shared libraries at runtime.
8320       ;;
8321
8322     msdosdjgpp*)
8323       # Just because we use GCC doesn't mean we suddenly get shared libraries
8324       # on systems that don't support them.
8325       lt_prog_compiler_can_build_shared=no
8326       enable_shared=no
8327       ;;
8328
8329     *nto* | *qnx*)
8330       # QNX uses GNU C++, but need to define -shared option too, otherwise
8331       # it will coredump.
8332       lt_prog_compiler_pic='-fPIC -shared'
8333       ;;
8334
8335     sysv4*MP*)
8336       if test -d /usr/nec; then
8337         lt_prog_compiler_pic=-Kconform_pic
8338       fi
8339       ;;
8340
8341     *)
8342       lt_prog_compiler_pic='-fPIC'
8343       ;;
8344     esac
8345
8346     case $cc_basename in
8347     nvcc*) # Cuda Compiler Driver 2.2
8348       lt_prog_compiler_wl='-Xlinker '
8349       lt_prog_compiler_pic='-Xcompiler -fPIC'
8350       ;;
8351     esac
8352   else
8353     # PORTME Check for flag to pass linker flags through the system compiler.
8354     case $host_os in
8355     aix*)
8356       lt_prog_compiler_wl='-Wl,'
8357       if test "$host_cpu" = ia64; then
8358         # AIX 5 now supports IA64 processor
8359         lt_prog_compiler_static='-Bstatic'
8360       else
8361         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8362       fi
8363       ;;
8364
8365     mingw* | cygwin* | pw32* | os2* | cegcc*)
8366       # This hack is so that the source file can tell whether it is being
8367       # built for inclusion in a dll (and should export symbols for example).
8368       lt_prog_compiler_pic='-DDLL_EXPORT'
8369       ;;
8370
8371     hpux9* | hpux10* | hpux11*)
8372       lt_prog_compiler_wl='-Wl,'
8373       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8374       # not for PA HP-UX.
8375       case $host_cpu in
8376       hppa*64*|ia64*)
8377         # +Z the default
8378         ;;
8379       *)
8380         lt_prog_compiler_pic='+Z'
8381         ;;
8382       esac
8383       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8384       lt_prog_compiler_static='${wl}-a ${wl}archive'
8385       ;;
8386
8387     irix5* | irix6* | nonstopux*)
8388       lt_prog_compiler_wl='-Wl,'
8389       # PIC (with -KPIC) is the default.
8390       lt_prog_compiler_static='-non_shared'
8391       ;;
8392
8393     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8394       case $cc_basename in
8395       # old Intel for x86_64 which still supported -KPIC.
8396       ecc*)
8397         lt_prog_compiler_wl='-Wl,'
8398         lt_prog_compiler_pic='-KPIC'
8399         lt_prog_compiler_static='-static'
8400         ;;
8401       # icc used to be incompatible with GCC.
8402       # ICC 10 doesn't accept -KPIC any more.
8403       icc* | ifort*)
8404         lt_prog_compiler_wl='-Wl,'
8405         lt_prog_compiler_pic='-fPIC'
8406         lt_prog_compiler_static='-static'
8407         ;;
8408       # Lahey Fortran 8.1.
8409       lf95*)
8410         lt_prog_compiler_wl='-Wl,'
8411         lt_prog_compiler_pic='--shared'
8412         lt_prog_compiler_static='--static'
8413         ;;
8414       nagfor*)
8415         # NAG Fortran compiler
8416         lt_prog_compiler_wl='-Wl,-Wl,,'
8417         lt_prog_compiler_pic='-PIC'
8418         lt_prog_compiler_static='-Bstatic'
8419         ;;
8420       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8421         # Portland Group compilers (*not* the Pentium gcc compiler,
8422         # which looks to be a dead project)
8423         lt_prog_compiler_wl='-Wl,'
8424         lt_prog_compiler_pic='-fpic'
8425         lt_prog_compiler_static='-Bstatic'
8426         ;;
8427       ccc*)
8428         lt_prog_compiler_wl='-Wl,'
8429         # All Alpha code is PIC.
8430         lt_prog_compiler_static='-non_shared'
8431         ;;
8432       xl* | bgxl* | bgf* | mpixl*)
8433         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8434         lt_prog_compiler_wl='-Wl,'
8435         lt_prog_compiler_pic='-qpic'
8436         lt_prog_compiler_static='-qstaticlink'
8437         ;;
8438       *)
8439         case `$CC -V 2>&1 | sed 5q` in
8440         *Sun\ F* | *Sun*Fortran*)
8441           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8442           lt_prog_compiler_pic='-KPIC'
8443           lt_prog_compiler_static='-Bstatic'
8444           lt_prog_compiler_wl=''
8445           ;;
8446         *Sun\ C*)
8447           # Sun C 5.9
8448           lt_prog_compiler_pic='-KPIC'
8449           lt_prog_compiler_static='-Bstatic'
8450           lt_prog_compiler_wl='-Wl,'
8451           ;;
8452         esac
8453         ;;
8454       esac
8455       ;;
8456
8457     newsos6)
8458       lt_prog_compiler_pic='-KPIC'
8459       lt_prog_compiler_static='-Bstatic'
8460       ;;
8461
8462     *nto* | *qnx*)
8463       # QNX uses GNU C++, but need to define -shared option too, otherwise
8464       # it will coredump.
8465       lt_prog_compiler_pic='-fPIC -shared'
8466       ;;
8467
8468     osf3* | osf4* | osf5*)
8469       lt_prog_compiler_wl='-Wl,'
8470       # All OSF/1 code is PIC.
8471       lt_prog_compiler_static='-non_shared'
8472       ;;
8473
8474     rdos*)
8475       lt_prog_compiler_static='-non_shared'
8476       ;;
8477
8478     solaris*)
8479       lt_prog_compiler_pic='-KPIC'
8480       lt_prog_compiler_static='-Bstatic'
8481       case $cc_basename in
8482       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8483         lt_prog_compiler_wl='-Qoption ld ';;
8484       *)
8485         lt_prog_compiler_wl='-Wl,';;
8486       esac
8487       ;;
8488
8489     sunos4*)
8490       lt_prog_compiler_wl='-Qoption ld '
8491       lt_prog_compiler_pic='-PIC'
8492       lt_prog_compiler_static='-Bstatic'
8493       ;;
8494
8495     sysv4 | sysv4.2uw2* | sysv4.3*)
8496       lt_prog_compiler_wl='-Wl,'
8497       lt_prog_compiler_pic='-KPIC'
8498       lt_prog_compiler_static='-Bstatic'
8499       ;;
8500
8501     sysv4*MP*)
8502       if test -d /usr/nec ;then
8503         lt_prog_compiler_pic='-Kconform_pic'
8504         lt_prog_compiler_static='-Bstatic'
8505       fi
8506       ;;
8507
8508     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8509       lt_prog_compiler_wl='-Wl,'
8510       lt_prog_compiler_pic='-KPIC'
8511       lt_prog_compiler_static='-Bstatic'
8512       ;;
8513
8514     unicos*)
8515       lt_prog_compiler_wl='-Wl,'
8516       lt_prog_compiler_can_build_shared=no
8517       ;;
8518
8519     uts4*)
8520       lt_prog_compiler_pic='-pic'
8521       lt_prog_compiler_static='-Bstatic'
8522       ;;
8523
8524     *)
8525       lt_prog_compiler_can_build_shared=no
8526       ;;
8527     esac
8528   fi
8529
8530 case $host_os in
8531   # For platforms which do not support PIC, -DPIC is meaningless:
8532   *djgpp*)
8533     lt_prog_compiler_pic=
8534     ;;
8535   *)
8536     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8537     ;;
8538 esac
8539
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8541 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8542 if test "${lt_cv_prog_compiler_pic+set}" = set; then :
8543   $as_echo_n "(cached) " >&6
8544 else
8545   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8546 fi
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8548 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8549 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8550
8551 #
8552 # Check to make sure the PIC flag actually works.
8553 #
8554 if test -n "$lt_prog_compiler_pic"; then
8555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8556 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8557 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8558   $as_echo_n "(cached) " >&6
8559 else
8560   lt_cv_prog_compiler_pic_works=no
8561    ac_outfile=conftest.$ac_objext
8562    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8563    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8564    # Insert the option either (1) after the last *FLAGS variable, or
8565    # (2) before a word containing "conftest.", or (3) at the end.
8566    # Note that $ac_compile itself does not contain backslashes and begins
8567    # with a dollar sign (not a hyphen), so the echo should work correctly.
8568    # The option is referenced via a variable to avoid confusing sed.
8569    lt_compile=`echo "$ac_compile" | $SED \
8570    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8571    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8572    -e 's:$: $lt_compiler_flag:'`
8573    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8574    (eval "$lt_compile" 2>conftest.err)
8575    ac_status=$?
8576    cat conftest.err >&5
8577    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578    if (exit $ac_status) && test -s "$ac_outfile"; then
8579      # The compiler can only warn and ignore the option if not recognized
8580      # So say no if there are warnings other than the usual output.
8581      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8582      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8583      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8584        lt_cv_prog_compiler_pic_works=yes
8585      fi
8586    fi
8587    $RM conftest*
8588
8589 fi
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8591 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8592
8593 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8594     case $lt_prog_compiler_pic in
8595      "" | " "*) ;;
8596      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8597      esac
8598 else
8599     lt_prog_compiler_pic=
8600      lt_prog_compiler_can_build_shared=no
8601 fi
8602
8603 fi
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615 #
8616 # Check to make sure the static flag actually works.
8617 #
8618 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8620 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8621 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8622   $as_echo_n "(cached) " >&6
8623 else
8624   lt_cv_prog_compiler_static_works=no
8625    save_LDFLAGS="$LDFLAGS"
8626    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8627    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8628    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8629      # The linker can only warn and ignore the option if not recognized
8630      # So say no if there are warnings
8631      if test -s conftest.err; then
8632        # Append any errors to the config.log.
8633        cat conftest.err 1>&5
8634        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8635        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8636        if diff conftest.exp conftest.er2 >/dev/null; then
8637          lt_cv_prog_compiler_static_works=yes
8638        fi
8639      else
8640        lt_cv_prog_compiler_static_works=yes
8641      fi
8642    fi
8643    $RM -r conftest*
8644    LDFLAGS="$save_LDFLAGS"
8645
8646 fi
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8648 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8649
8650 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8651     :
8652 else
8653     lt_prog_compiler_static=
8654 fi
8655
8656
8657
8658
8659
8660
8661
8662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8663 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8664 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8665   $as_echo_n "(cached) " >&6
8666 else
8667   lt_cv_prog_compiler_c_o=no
8668    $RM -r conftest 2>/dev/null
8669    mkdir conftest
8670    cd conftest
8671    mkdir out
8672    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8673
8674    lt_compiler_flag="-o out/conftest2.$ac_objext"
8675    # Insert the option either (1) after the last *FLAGS variable, or
8676    # (2) before a word containing "conftest.", or (3) at the end.
8677    # Note that $ac_compile itself does not contain backslashes and begins
8678    # with a dollar sign (not a hyphen), so the echo should work correctly.
8679    lt_compile=`echo "$ac_compile" | $SED \
8680    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8681    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8682    -e 's:$: $lt_compiler_flag:'`
8683    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8684    (eval "$lt_compile" 2>out/conftest.err)
8685    ac_status=$?
8686    cat out/conftest.err >&5
8687    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8689    then
8690      # The compiler can only warn and ignore the option if not recognized
8691      # So say no if there are warnings
8692      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8693      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8694      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8695        lt_cv_prog_compiler_c_o=yes
8696      fi
8697    fi
8698    chmod u+w . 2>&5
8699    $RM conftest*
8700    # SGI C++ compiler will create directory out/ii_files/ for
8701    # template instantiation
8702    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8703    $RM out/* && rmdir out
8704    cd ..
8705    $RM -r conftest
8706    $RM conftest*
8707
8708 fi
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8710 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8711
8712
8713
8714
8715
8716
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8718 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8719 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8720   $as_echo_n "(cached) " >&6
8721 else
8722   lt_cv_prog_compiler_c_o=no
8723    $RM -r conftest 2>/dev/null
8724    mkdir conftest
8725    cd conftest
8726    mkdir out
8727    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8728
8729    lt_compiler_flag="-o out/conftest2.$ac_objext"
8730    # Insert the option either (1) after the last *FLAGS variable, or
8731    # (2) before a word containing "conftest.", or (3) at the end.
8732    # Note that $ac_compile itself does not contain backslashes and begins
8733    # with a dollar sign (not a hyphen), so the echo should work correctly.
8734    lt_compile=`echo "$ac_compile" | $SED \
8735    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8736    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8737    -e 's:$: $lt_compiler_flag:'`
8738    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8739    (eval "$lt_compile" 2>out/conftest.err)
8740    ac_status=$?
8741    cat out/conftest.err >&5
8742    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8744    then
8745      # The compiler can only warn and ignore the option if not recognized
8746      # So say no if there are warnings
8747      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8748      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8749      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8750        lt_cv_prog_compiler_c_o=yes
8751      fi
8752    fi
8753    chmod u+w . 2>&5
8754    $RM conftest*
8755    # SGI C++ compiler will create directory out/ii_files/ for
8756    # template instantiation
8757    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8758    $RM out/* && rmdir out
8759    cd ..
8760    $RM -r conftest
8761    $RM conftest*
8762
8763 fi
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8765 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8766
8767
8768
8769
8770 hard_links="nottested"
8771 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8772   # do not overwrite the value of need_locks provided by the user
8773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8774 $as_echo_n "checking if we can lock with hard links... " >&6; }
8775   hard_links=yes
8776   $RM conftest*
8777   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8778   touch conftest.a
8779   ln conftest.a conftest.b 2>&5 || hard_links=no
8780   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8782 $as_echo "$hard_links" >&6; }
8783   if test "$hard_links" = no; then
8784     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8785 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8786     need_locks=warn
8787   fi
8788 else
8789   need_locks=no
8790 fi
8791
8792
8793
8794
8795
8796
8797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8798 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8799
8800   runpath_var=
8801   allow_undefined_flag=
8802   always_export_symbols=no
8803   archive_cmds=
8804   archive_expsym_cmds=
8805   compiler_needs_object=no
8806   enable_shared_with_static_runtimes=no
8807   export_dynamic_flag_spec=
8808   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8809   hardcode_automatic=no
8810   hardcode_direct=no
8811   hardcode_direct_absolute=no
8812   hardcode_libdir_flag_spec=
8813   hardcode_libdir_flag_spec_ld=
8814   hardcode_libdir_separator=
8815   hardcode_minus_L=no
8816   hardcode_shlibpath_var=unsupported
8817   inherit_rpath=no
8818   link_all_deplibs=unknown
8819   module_cmds=
8820   module_expsym_cmds=
8821   old_archive_from_new_cmds=
8822   old_archive_from_expsyms_cmds=
8823   thread_safe_flag_spec=
8824   whole_archive_flag_spec=
8825   # include_expsyms should be a list of space-separated symbols to be *always*
8826   # included in the symbol list
8827   include_expsyms=
8828   # exclude_expsyms can be an extended regexp of symbols to exclude
8829   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8830   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8831   # as well as any symbol that contains `d'.
8832   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8833   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8834   # platforms (ab)use it in PIC code, but their linkers get confused if
8835   # the symbol is explicitly referenced.  Since portable code cannot
8836   # rely on this symbol name, it's probably fine to never include it in
8837   # preloaded symbol tables.
8838   # Exclude shared library initialization/finalization symbols.
8839   extract_expsyms_cmds=
8840
8841   case $host_os in
8842   cygwin* | mingw* | pw32* | cegcc*)
8843     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8844     # When not using gcc, we currently assume that we are using
8845     # Microsoft Visual C++.
8846     if test "$GCC" != yes; then
8847       with_gnu_ld=no
8848     fi
8849     ;;
8850   interix*)
8851     # we just hope/assume this is gcc and not c89 (= MSVC++)
8852     with_gnu_ld=yes
8853     ;;
8854   openbsd*)
8855     with_gnu_ld=no
8856     ;;
8857   esac
8858
8859   ld_shlibs=yes
8860
8861   # On some targets, GNU ld is compatible enough with the native linker
8862   # that we're better off using the native interface for both.
8863   lt_use_gnu_ld_interface=no
8864   if test "$with_gnu_ld" = yes; then
8865     case $host_os in
8866       aix*)
8867         # The AIX port of GNU ld has always aspired to compatibility
8868         # with the native linker.  However, as the warning in the GNU ld
8869         # block says, versions before 2.19.5* couldn't really create working
8870         # shared libraries, regardless of the interface used.
8871         case `$LD -v 2>&1` in
8872           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8873           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8874           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8875           *)
8876             lt_use_gnu_ld_interface=yes
8877             ;;
8878         esac
8879         ;;
8880       *)
8881         lt_use_gnu_ld_interface=yes
8882         ;;
8883     esac
8884   fi
8885
8886   if test "$lt_use_gnu_ld_interface" = yes; then
8887     # If archive_cmds runs LD, not CC, wlarc should be empty
8888     wlarc='${wl}'
8889
8890     # Set some defaults for GNU ld with shared library support. These
8891     # are reset later if shared libraries are not supported. Putting them
8892     # here allows them to be overridden if necessary.
8893     runpath_var=LD_RUN_PATH
8894     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8895     export_dynamic_flag_spec='${wl}--export-dynamic'
8896     # ancient GNU ld didn't support --whole-archive et. al.
8897     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8898       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8899     else
8900       whole_archive_flag_spec=
8901     fi
8902     supports_anon_versioning=no
8903     case `$LD -v 2>&1` in
8904       *GNU\ gold*) supports_anon_versioning=yes ;;
8905       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8906       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8907       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8908       *\ 2.11.*) ;; # other 2.11 versions
8909       *) supports_anon_versioning=yes ;;
8910     esac
8911
8912     # See if GNU ld supports shared libraries.
8913     case $host_os in
8914     aix[3-9]*)
8915       # On AIX/PPC, the GNU linker is very broken
8916       if test "$host_cpu" != ia64; then
8917         ld_shlibs=no
8918         cat <<_LT_EOF 1>&2
8919
8920 *** Warning: the GNU linker, at least up to release 2.19, is reported
8921 *** to be unable to reliably create shared libraries on AIX.
8922 *** Therefore, libtool is disabling shared libraries support.  If you
8923 *** really care for shared libraries, you may want to install binutils
8924 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8925 *** You will then need to restart the configuration process.
8926
8927 _LT_EOF
8928       fi
8929       ;;
8930
8931     amigaos*)
8932       case $host_cpu in
8933       powerpc)
8934             # see comment about AmigaOS4 .so support
8935             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8936             archive_expsym_cmds=''
8937         ;;
8938       m68k)
8939             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)'
8940             hardcode_libdir_flag_spec='-L$libdir'
8941             hardcode_minus_L=yes
8942         ;;
8943       esac
8944       ;;
8945
8946     beos*)
8947       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8948         allow_undefined_flag=unsupported
8949         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8950         # support --undefined.  This deserves some investigation.  FIXME
8951         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8952       else
8953         ld_shlibs=no
8954       fi
8955       ;;
8956
8957     cygwin* | mingw* | pw32* | cegcc*)
8958       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8959       # as there is no search path for DLLs.
8960       hardcode_libdir_flag_spec='-L$libdir'
8961       export_dynamic_flag_spec='${wl}--export-all-symbols'
8962       allow_undefined_flag=unsupported
8963       always_export_symbols=no
8964       enable_shared_with_static_runtimes=yes
8965       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8966       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8967
8968       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8969         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8970         # If the export-symbols file already is a .def file (1st line
8971         # is EXPORTS), use it as is; otherwise, prepend...
8972         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8973           cp $export_symbols $output_objdir/$soname.def;
8974         else
8975           echo EXPORTS > $output_objdir/$soname.def;
8976           cat $export_symbols >> $output_objdir/$soname.def;
8977         fi~
8978         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8979       else
8980         ld_shlibs=no
8981       fi
8982       ;;
8983
8984     haiku*)
8985       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986       link_all_deplibs=yes
8987       ;;
8988
8989     interix[3-9]*)
8990       hardcode_direct=no
8991       hardcode_shlibpath_var=no
8992       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8993       export_dynamic_flag_spec='${wl}-E'
8994       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8995       # Instead, shared libraries are loaded at an image base (0x10000000 by
8996       # default) and relocated if they conflict, which is a slow very memory
8997       # consuming and fragmenting process.  To avoid this, we pick a random,
8998       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8999       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9000       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9001       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9002       ;;
9003
9004     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9005       tmp_diet=no
9006       if test "$host_os" = linux-dietlibc; then
9007         case $cc_basename in
9008           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9009         esac
9010       fi
9011       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9012          && test "$tmp_diet" = no
9013       then
9014         tmp_addflag=' $pic_flag'
9015         tmp_sharedflag='-shared'
9016         case $cc_basename,$host_cpu in
9017         pgcc*)                          # Portland Group C compiler
9018           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9019           tmp_addflag=' $pic_flag'
9020           ;;
9021         pgf77* | pgf90* | pgf95* | pgfortran*)
9022                                         # Portland Group f77 and f90 compilers
9023           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9024           tmp_addflag=' $pic_flag -Mnomain' ;;
9025         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9026           tmp_addflag=' -i_dynamic' ;;
9027         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9028           tmp_addflag=' -i_dynamic -nofor_main' ;;
9029         ifc* | ifort*)                  # Intel Fortran compiler
9030           tmp_addflag=' -nofor_main' ;;
9031         lf95*)                          # Lahey Fortran 8.1
9032           whole_archive_flag_spec=
9033           tmp_sharedflag='--shared' ;;
9034         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9035           tmp_sharedflag='-qmkshrobj'
9036           tmp_addflag= ;;
9037         nvcc*)  # Cuda Compiler Driver 2.2
9038           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9039           compiler_needs_object=yes
9040           ;;
9041         esac
9042         case `$CC -V 2>&1 | sed 5q` in
9043         *Sun\ C*)                       # Sun C 5.9
9044           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9045           compiler_needs_object=yes
9046           tmp_sharedflag='-G' ;;
9047         *Sun\ F*)                       # Sun Fortran 8.3
9048           tmp_sharedflag='-G' ;;
9049         esac
9050         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9051
9052         if test "x$supports_anon_versioning" = xyes; then
9053           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9054             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9055             echo "local: *; };" >> $output_objdir/$libname.ver~
9056             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9057         fi
9058
9059         case $cc_basename in
9060         xlf* | bgf* | bgxlf* | mpixlf*)
9061           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9062           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9063           hardcode_libdir_flag_spec=
9064           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9065           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9066           if test "x$supports_anon_versioning" = xyes; then
9067             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9068               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9069               echo "local: *; };" >> $output_objdir/$libname.ver~
9070               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9071           fi
9072           ;;
9073         esac
9074       else
9075         ld_shlibs=no
9076       fi
9077       ;;
9078
9079     netbsd*)
9080       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9081         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9082         wlarc=
9083       else
9084         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9085         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9086       fi
9087       ;;
9088
9089     solaris*)
9090       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9091         ld_shlibs=no
9092         cat <<_LT_EOF 1>&2
9093
9094 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9095 *** create shared libraries on Solaris systems.  Therefore, libtool
9096 *** is disabling shared libraries support.  We urge you to upgrade GNU
9097 *** binutils to release 2.9.1 or newer.  Another option is to modify
9098 *** your PATH or compiler configuration so that the native linker is
9099 *** used, and then restart.
9100
9101 _LT_EOF
9102       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9103         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9104         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9105       else
9106         ld_shlibs=no
9107       fi
9108       ;;
9109
9110     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9111       case `$LD -v 2>&1` in
9112         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9113         ld_shlibs=no
9114         cat <<_LT_EOF 1>&2
9115
9116 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9117 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9118 *** is disabling shared libraries support.  We urge you to upgrade GNU
9119 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9120 *** your PATH or compiler configuration so that the native linker is
9121 *** used, and then restart.
9122
9123 _LT_EOF
9124         ;;
9125         *)
9126           # For security reasons, it is highly recommended that you always
9127           # use absolute paths for naming shared libraries, and exclude the
9128           # DT_RUNPATH tag from executables and libraries.  But doing so
9129           # requires that you compile everything twice, which is a pain.
9130           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9131             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9132             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9133             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9134           else
9135             ld_shlibs=no
9136           fi
9137         ;;
9138       esac
9139       ;;
9140
9141     sunos4*)
9142       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9143       wlarc=
9144       hardcode_direct=yes
9145       hardcode_shlibpath_var=no
9146       ;;
9147
9148     *)
9149       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9150         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9152       else
9153         ld_shlibs=no
9154       fi
9155       ;;
9156     esac
9157
9158     if test "$ld_shlibs" = no; then
9159       runpath_var=
9160       hardcode_libdir_flag_spec=
9161       export_dynamic_flag_spec=
9162       whole_archive_flag_spec=
9163     fi
9164   else
9165     # PORTME fill in a description of your system's linker (not GNU ld)
9166     case $host_os in
9167     aix3*)
9168       allow_undefined_flag=unsupported
9169       always_export_symbols=yes
9170       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'
9171       # Note: this linker hardcodes the directories in LIBPATH if there
9172       # are no directories specified by -L.
9173       hardcode_minus_L=yes
9174       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9175         # Neither direct hardcoding nor static linking is supported with a
9176         # broken collect2.
9177         hardcode_direct=unsupported
9178       fi
9179       ;;
9180
9181     aix[4-9]*)
9182       if test "$host_cpu" = ia64; then
9183         # On IA64, the linker does run time linking by default, so we don't
9184         # have to do anything special.
9185         aix_use_runtimelinking=no
9186         exp_sym_flag='-Bexport'
9187         no_entry_flag=""
9188       else
9189         # If we're using GNU nm, then we don't want the "-C" option.
9190         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9191         # Also, AIX nm treats weak defined symbols like other global
9192         # defined symbols, whereas GNU nm marks them as "W".
9193         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9194           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9195         else
9196           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'
9197         fi
9198         aix_use_runtimelinking=no
9199
9200         # Test if we are trying to use run time linking or normal
9201         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9202         # need to do runtime linking.
9203         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9204           for ld_flag in $LDFLAGS; do
9205           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9206             aix_use_runtimelinking=yes
9207             break
9208           fi
9209           done
9210           ;;
9211         esac
9212
9213         exp_sym_flag='-bexport'
9214         no_entry_flag='-bnoentry'
9215       fi
9216
9217       # When large executables or shared objects are built, AIX ld can
9218       # have problems creating the table of contents.  If linking a library
9219       # or program results in "error TOC overflow" add -mminimal-toc to
9220       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9221       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9222
9223       archive_cmds=''
9224       hardcode_direct=yes
9225       hardcode_direct_absolute=yes
9226       hardcode_libdir_separator=':'
9227       link_all_deplibs=yes
9228       file_list_spec='${wl}-f,'
9229
9230       if test "$GCC" = yes; then
9231         case $host_os in aix4.[012]|aix4.[012].*)
9232         # We only want to do this on AIX 4.2 and lower, the check
9233         # below for broken collect2 doesn't work under 4.3+
9234           collect2name=`${CC} -print-prog-name=collect2`
9235           if test -f "$collect2name" &&
9236            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9237           then
9238           # We have reworked collect2
9239           :
9240           else
9241           # We have old collect2
9242           hardcode_direct=unsupported
9243           # It fails to find uninstalled libraries when the uninstalled
9244           # path is not listed in the libpath.  Setting hardcode_minus_L
9245           # to unsupported forces relinking
9246           hardcode_minus_L=yes
9247           hardcode_libdir_flag_spec='-L$libdir'
9248           hardcode_libdir_separator=
9249           fi
9250           ;;
9251         esac
9252         shared_flag='-shared'
9253         if test "$aix_use_runtimelinking" = yes; then
9254           shared_flag="$shared_flag "'${wl}-G'
9255         fi
9256       else
9257         # not using gcc
9258         if test "$host_cpu" = ia64; then
9259         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9260         # chokes on -Wl,-G. The following line is correct:
9261           shared_flag='-G'
9262         else
9263           if test "$aix_use_runtimelinking" = yes; then
9264             shared_flag='${wl}-G'
9265           else
9266             shared_flag='${wl}-bM:SRE'
9267           fi
9268         fi
9269       fi
9270
9271       export_dynamic_flag_spec='${wl}-bexpall'
9272       # It seems that -bexpall does not export symbols beginning with
9273       # underscore (_), so it is better to generate a list of symbols to export.
9274       always_export_symbols=yes
9275       if test "$aix_use_runtimelinking" = yes; then
9276         # Warning - without using the other runtime loading flags (-brtl),
9277         # -berok will link without error, but may produce a broken library.
9278         allow_undefined_flag='-berok'
9279         # Determine the default libpath from the value encoded in an
9280         # empty executable.
9281         if test "${lt_cv_aix_libpath+set}" = set; then
9282   aix_libpath=$lt_cv_aix_libpath
9283 else
9284   if test "${lt_cv_aix_libpath_+set}" = set; then :
9285   $as_echo_n "(cached) " >&6
9286 else
9287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h.  */
9289
9290 int
9291 main ()
9292 {
9293
9294   ;
9295   return 0;
9296 }
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"; then :
9299
9300   lt_aix_libpath_sed='
9301       /Import File Strings/,/^$/ {
9302           /^0/ {
9303               s/^0  *\([^ ]*\) *$/\1/
9304               p
9305           }
9306       }'
9307   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9308   # Check for a 64-bit object if we didn't find anything.
9309   if test -z "$lt_cv_aix_libpath_"; then
9310     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9311   fi
9312 fi
9313 rm -f core conftest.err conftest.$ac_objext \
9314     conftest$ac_exeext conftest.$ac_ext
9315   if test -z "$lt_cv_aix_libpath_"; then
9316     lt_cv_aix_libpath_="/usr/lib:/lib"
9317   fi
9318
9319 fi
9320
9321   aix_libpath=$lt_cv_aix_libpath_
9322 fi
9323
9324         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9325         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9326       else
9327         if test "$host_cpu" = ia64; then
9328           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9329           allow_undefined_flag="-z nodefs"
9330           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9331         else
9332          # Determine the default libpath from the value encoded in an
9333          # empty executable.
9334          if test "${lt_cv_aix_libpath+set}" = set; then
9335   aix_libpath=$lt_cv_aix_libpath
9336 else
9337   if test "${lt_cv_aix_libpath_+set}" = set; then :
9338   $as_echo_n "(cached) " >&6
9339 else
9340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h.  */
9342
9343 int
9344 main ()
9345 {
9346
9347   ;
9348   return 0;
9349 }
9350 _ACEOF
9351 if ac_fn_c_try_link "$LINENO"; then :
9352
9353   lt_aix_libpath_sed='
9354       /Import File Strings/,/^$/ {
9355           /^0/ {
9356               s/^0  *\([^ ]*\) *$/\1/
9357               p
9358           }
9359       }'
9360   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9361   # Check for a 64-bit object if we didn't find anything.
9362   if test -z "$lt_cv_aix_libpath_"; then
9363     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9364   fi
9365 fi
9366 rm -f core conftest.err conftest.$ac_objext \
9367     conftest$ac_exeext conftest.$ac_ext
9368   if test -z "$lt_cv_aix_libpath_"; then
9369     lt_cv_aix_libpath_="/usr/lib:/lib"
9370   fi
9371
9372 fi
9373
9374   aix_libpath=$lt_cv_aix_libpath_
9375 fi
9376
9377          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9378           # Warning - without using the other run time loading flags,
9379           # -berok will link without error, but may produce a broken library.
9380           no_undefined_flag=' ${wl}-bernotok'
9381           allow_undefined_flag=' ${wl}-berok'
9382           if test "$with_gnu_ld" = yes; then
9383             # We only use this code for GNU lds that support --whole-archive.
9384             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9385           else
9386             # Exported symbols can be pulled into shared objects from archives
9387             whole_archive_flag_spec='$convenience'
9388           fi
9389           archive_cmds_need_lc=yes
9390           # This is similar to how AIX traditionally builds its shared libraries.
9391           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9392         fi
9393       fi
9394       ;;
9395
9396     amigaos*)
9397       case $host_cpu in
9398       powerpc)
9399             # see comment about AmigaOS4 .so support
9400             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9401             archive_expsym_cmds=''
9402         ;;
9403       m68k)
9404             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)'
9405             hardcode_libdir_flag_spec='-L$libdir'
9406             hardcode_minus_L=yes
9407         ;;
9408       esac
9409       ;;
9410
9411     bsdi[45]*)
9412       export_dynamic_flag_spec=-rdynamic
9413       ;;
9414
9415     cygwin* | mingw* | pw32* | cegcc*)
9416       # When not using gcc, we currently assume that we are using
9417       # Microsoft Visual C++.
9418       # hardcode_libdir_flag_spec is actually meaningless, as there is
9419       # no search path for DLLs.
9420       case $cc_basename in
9421       cl*)
9422         # Native MSVC
9423         hardcode_libdir_flag_spec=' '
9424         allow_undefined_flag=unsupported
9425         always_export_symbols=yes
9426         file_list_spec='@'
9427         # Tell ltmain to make .lib files, not .a files.
9428         libext=lib
9429         # Tell ltmain to make .dll files, not .so files.
9430         shrext_cmds=".dll"
9431         # FIXME: Setting linknames here is a bad hack.
9432         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9433         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9434             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9435           else
9436             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9437           fi~
9438           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9439           linknames='
9440         # The linker will not automatically build a static lib if we build a DLL.
9441         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9442         enable_shared_with_static_runtimes=yes
9443         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9444         # Don't use ranlib
9445         old_postinstall_cmds='chmod 644 $oldlib'
9446         postlink_cmds='lt_outputfile="@OUTPUT@"~
9447           lt_tool_outputfile="@TOOL_OUTPUT@"~
9448           case $lt_outputfile in
9449             *.exe|*.EXE) ;;
9450             *)
9451               lt_outputfile="$lt_outputfile.exe"
9452               lt_tool_outputfile="$lt_tool_outputfile.exe"
9453               ;;
9454           esac~
9455           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9456             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9457             $RM "$lt_outputfile.manifest";
9458           fi'
9459         ;;
9460       *)
9461         # Assume MSVC wrapper
9462         hardcode_libdir_flag_spec=' '
9463         allow_undefined_flag=unsupported
9464         # Tell ltmain to make .lib files, not .a files.
9465         libext=lib
9466         # Tell ltmain to make .dll files, not .so files.
9467         shrext_cmds=".dll"
9468         # FIXME: Setting linknames here is a bad hack.
9469         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9470         # The linker will automatically build a .lib file if we build a DLL.
9471         old_archive_from_new_cmds='true'
9472         # FIXME: Should let the user specify the lib program.
9473         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9474         enable_shared_with_static_runtimes=yes
9475         ;;
9476       esac
9477       ;;
9478
9479     darwin* | rhapsody*)
9480
9481
9482   archive_cmds_need_lc=no
9483   hardcode_direct=no
9484   hardcode_automatic=yes
9485   hardcode_shlibpath_var=unsupported
9486   if test "$lt_cv_ld_force_load" = "yes"; then
9487     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9488   else
9489     whole_archive_flag_spec=''
9490   fi
9491   link_all_deplibs=yes
9492   allow_undefined_flag="$_lt_dar_allow_undefined"
9493   case $cc_basename in
9494      ifort*) _lt_dar_can_shared=yes ;;
9495      *) _lt_dar_can_shared=$GCC ;;
9496   esac
9497   if test "$_lt_dar_can_shared" = "yes"; then
9498     output_verbose_link_cmd=func_echo_all
9499     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9500     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9501     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9502     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9503
9504   else
9505   ld_shlibs=no
9506   fi
9507
9508       ;;
9509
9510     dgux*)
9511       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9512       hardcode_libdir_flag_spec='-L$libdir'
9513       hardcode_shlibpath_var=no
9514       ;;
9515
9516     freebsd1*)
9517       ld_shlibs=no
9518       ;;
9519
9520     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9521     # support.  Future versions do this automatically, but an explicit c++rt0.o
9522     # does not break anything, and helps significantly (at the cost of a little
9523     # extra space).
9524     freebsd2.2*)
9525       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9526       hardcode_libdir_flag_spec='-R$libdir'
9527       hardcode_direct=yes
9528       hardcode_shlibpath_var=no
9529       ;;
9530
9531     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9532     freebsd2*)
9533       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9534       hardcode_direct=yes
9535       hardcode_minus_L=yes
9536       hardcode_shlibpath_var=no
9537       ;;
9538
9539     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9540     freebsd* | dragonfly*)
9541       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9542       hardcode_libdir_flag_spec='-R$libdir'
9543       hardcode_direct=yes
9544       hardcode_shlibpath_var=no
9545       ;;
9546
9547     hpux9*)
9548       if test "$GCC" = yes; then
9549         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9550       else
9551         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'
9552       fi
9553       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9554       hardcode_libdir_separator=:
9555       hardcode_direct=yes
9556
9557       # hardcode_minus_L: Not really in the search PATH,
9558       # but as the default location of the library.
9559       hardcode_minus_L=yes
9560       export_dynamic_flag_spec='${wl}-E'
9561       ;;
9562
9563     hpux10*)
9564       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9565         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9566       else
9567         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9568       fi
9569       if test "$with_gnu_ld" = no; then
9570         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9571         hardcode_libdir_flag_spec_ld='+b $libdir'
9572         hardcode_libdir_separator=:
9573         hardcode_direct=yes
9574         hardcode_direct_absolute=yes
9575         export_dynamic_flag_spec='${wl}-E'
9576         # hardcode_minus_L: Not really in the search PATH,
9577         # but as the default location of the library.
9578         hardcode_minus_L=yes
9579       fi
9580       ;;
9581
9582     hpux11*)
9583       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9584         case $host_cpu in
9585         hppa*64*)
9586           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9587           ;;
9588         ia64*)
9589           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9590           ;;
9591         *)
9592           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9593           ;;
9594         esac
9595       else
9596         case $host_cpu in
9597         hppa*64*)
9598           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9599           ;;
9600         ia64*)
9601           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9602           ;;
9603         *)
9604
9605           # Older versions of the 11.00 compiler do not understand -b yet
9606           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9607           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9608 $as_echo_n "checking if $CC understands -b... " >&6; }
9609 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9610   $as_echo_n "(cached) " >&6
9611 else
9612   lt_cv_prog_compiler__b=no
9613    save_LDFLAGS="$LDFLAGS"
9614    LDFLAGS="$LDFLAGS -b"
9615    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9616    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9617      # The linker can only warn and ignore the option if not recognized
9618      # So say no if there are warnings
9619      if test -s conftest.err; then
9620        # Append any errors to the config.log.
9621        cat conftest.err 1>&5
9622        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9623        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9624        if diff conftest.exp conftest.er2 >/dev/null; then
9625          lt_cv_prog_compiler__b=yes
9626        fi
9627      else
9628        lt_cv_prog_compiler__b=yes
9629      fi
9630    fi
9631    $RM -r conftest*
9632    LDFLAGS="$save_LDFLAGS"
9633
9634 fi
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9636 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9637
9638 if test x"$lt_cv_prog_compiler__b" = xyes; then
9639     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9640 else
9641     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9642 fi
9643
9644           ;;
9645         esac
9646       fi
9647       if test "$with_gnu_ld" = no; then
9648         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9649         hardcode_libdir_separator=:
9650
9651         case $host_cpu in
9652         hppa*64*|ia64*)
9653           hardcode_direct=no
9654           hardcode_shlibpath_var=no
9655           ;;
9656         *)
9657           hardcode_direct=yes
9658           hardcode_direct_absolute=yes
9659           export_dynamic_flag_spec='${wl}-E'
9660
9661           # hardcode_minus_L: Not really in the search PATH,
9662           # but as the default location of the library.
9663           hardcode_minus_L=yes
9664           ;;
9665         esac
9666       fi
9667       ;;
9668
9669     irix5* | irix6* | nonstopux*)
9670       if test "$GCC" = yes; then
9671         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9672         # Try to use the -exported_symbol ld option, if it does not
9673         # work, assume that -exports_file does not work either and
9674         # implicitly export all symbols.
9675         # This should be the same for all languages, so no per-tag cache variable.
9676         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9677 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9678 if test "${lt_cv_irix_exported_symbol+set}" = set; then :
9679   $as_echo_n "(cached) " >&6
9680 else
9681   save_LDFLAGS="$LDFLAGS"
9682            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9683            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h.  */
9685 int foo (void) { return 0; }
9686 _ACEOF
9687 if ac_fn_c_try_link "$LINENO"; then :
9688   lt_cv_irix_exported_symbol=yes
9689 else
9690   lt_cv_irix_exported_symbol=no
9691 fi
9692 rm -f core conftest.err conftest.$ac_objext \
9693     conftest$ac_exeext conftest.$ac_ext
9694            LDFLAGS="$save_LDFLAGS"
9695 fi
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9697 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9698         if test "$lt_cv_irix_exported_symbol" = yes; then
9699           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9700         fi
9701       else
9702         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9703         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9704       fi
9705       archive_cmds_need_lc='no'
9706       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9707       hardcode_libdir_separator=:
9708       inherit_rpath=yes
9709       link_all_deplibs=yes
9710       ;;
9711
9712     netbsd*)
9713       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9714         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9715       else
9716         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9717       fi
9718       hardcode_libdir_flag_spec='-R$libdir'
9719       hardcode_direct=yes
9720       hardcode_shlibpath_var=no
9721       ;;
9722
9723     newsos6)
9724       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725       hardcode_direct=yes
9726       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9727       hardcode_libdir_separator=:
9728       hardcode_shlibpath_var=no
9729       ;;
9730
9731     *nto* | *qnx*)
9732       ;;
9733
9734     openbsd*)
9735       if test -f /usr/libexec/ld.so; then
9736         hardcode_direct=yes
9737         hardcode_shlibpath_var=no
9738         hardcode_direct_absolute=yes
9739         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9740           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9741           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9742           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9743           export_dynamic_flag_spec='${wl}-E'
9744         else
9745           case $host_os in
9746            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9747              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9748              hardcode_libdir_flag_spec='-R$libdir'
9749              ;;
9750            *)
9751              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9752              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9753              ;;
9754           esac
9755         fi
9756       else
9757         ld_shlibs=no
9758       fi
9759       ;;
9760
9761     os2*)
9762       hardcode_libdir_flag_spec='-L$libdir'
9763       hardcode_minus_L=yes
9764       allow_undefined_flag=unsupported
9765       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'
9766       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9767       ;;
9768
9769     osf3*)
9770       if test "$GCC" = yes; then
9771         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9772         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9773       else
9774         allow_undefined_flag=' -expect_unresolved \*'
9775         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9776       fi
9777       archive_cmds_need_lc='no'
9778       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9779       hardcode_libdir_separator=:
9780       ;;
9781
9782     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9783       if test "$GCC" = yes; then
9784         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9785         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9786         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9787       else
9788         allow_undefined_flag=' -expect_unresolved \*'
9789         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9790         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9791         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9792
9793         # Both c and cxx compiler support -rpath directly
9794         hardcode_libdir_flag_spec='-rpath $libdir'
9795       fi
9796       archive_cmds_need_lc='no'
9797       hardcode_libdir_separator=:
9798       ;;
9799
9800     solaris*)
9801       no_undefined_flag=' -z defs'
9802       if test "$GCC" = yes; then
9803         wlarc='${wl}'
9804         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9805         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9806           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9807       else
9808         case `$CC -V 2>&1` in
9809         *"Compilers 5.0"*)
9810           wlarc=''
9811           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9813           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9814           ;;
9815         *)
9816           wlarc='${wl}'
9817           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9818           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9819           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9820           ;;
9821         esac
9822       fi
9823       hardcode_libdir_flag_spec='-R$libdir'
9824       hardcode_shlibpath_var=no
9825       case $host_os in
9826       solaris2.[0-5] | solaris2.[0-5].*) ;;
9827       *)
9828         # The compiler driver will combine and reorder linker options,
9829         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9830         # but is careful enough not to reorder.
9831         # Supported since Solaris 2.6 (maybe 2.5.1?)
9832         if test "$GCC" = yes; then
9833           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9834         else
9835           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9836         fi
9837         ;;
9838       esac
9839       link_all_deplibs=yes
9840       ;;
9841
9842     sunos4*)
9843       if test "x$host_vendor" = xsequent; then
9844         # Use $CC to link under sequent, because it throws in some extra .o
9845         # files that make .init and .fini sections work.
9846         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9847       else
9848         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9849       fi
9850       hardcode_libdir_flag_spec='-L$libdir'
9851       hardcode_direct=yes
9852       hardcode_minus_L=yes
9853       hardcode_shlibpath_var=no
9854       ;;
9855
9856     sysv4)
9857       case $host_vendor in
9858         sni)
9859           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9860           hardcode_direct=yes # is this really true???
9861         ;;
9862         siemens)
9863           ## LD is ld it makes a PLAMLIB
9864           ## CC just makes a GrossModule.
9865           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9866           reload_cmds='$CC -r -o $output$reload_objs'
9867           hardcode_direct=no
9868         ;;
9869         motorola)
9870           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9871           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9872         ;;
9873       esac
9874       runpath_var='LD_RUN_PATH'
9875       hardcode_shlibpath_var=no
9876       ;;
9877
9878     sysv4.3*)
9879       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9880       hardcode_shlibpath_var=no
9881       export_dynamic_flag_spec='-Bexport'
9882       ;;
9883
9884     sysv4*MP*)
9885       if test -d /usr/nec; then
9886         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887         hardcode_shlibpath_var=no
9888         runpath_var=LD_RUN_PATH
9889         hardcode_runpath_var=yes
9890         ld_shlibs=yes
9891       fi
9892       ;;
9893
9894     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9895       no_undefined_flag='${wl}-z,text'
9896       archive_cmds_need_lc=no
9897       hardcode_shlibpath_var=no
9898       runpath_var='LD_RUN_PATH'
9899
9900       if test "$GCC" = yes; then
9901         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9902         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9903       else
9904         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9905         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9906       fi
9907       ;;
9908
9909     sysv5* | sco3.2v5* | sco5v6*)
9910       # Note: We can NOT use -z defs as we might desire, because we do not
9911       # link with -lc, and that would cause any symbols used from libc to
9912       # always be unresolved, which means just about no library would
9913       # ever link correctly.  If we're not using GNU ld we use -z text
9914       # though, which does catch some bad symbols but isn't as heavy-handed
9915       # as -z defs.
9916       no_undefined_flag='${wl}-z,text'
9917       allow_undefined_flag='${wl}-z,nodefs'
9918       archive_cmds_need_lc=no
9919       hardcode_shlibpath_var=no
9920       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9921       hardcode_libdir_separator=':'
9922       link_all_deplibs=yes
9923       export_dynamic_flag_spec='${wl}-Bexport'
9924       runpath_var='LD_RUN_PATH'
9925
9926       if test "$GCC" = yes; then
9927         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9928         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9929       else
9930         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9931         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9932       fi
9933       ;;
9934
9935     uts4*)
9936       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937       hardcode_libdir_flag_spec='-L$libdir'
9938       hardcode_shlibpath_var=no
9939       ;;
9940
9941     *)
9942       ld_shlibs=no
9943       ;;
9944     esac
9945
9946     if test x$host_vendor = xsni; then
9947       case $host in
9948       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9949         export_dynamic_flag_spec='${wl}-Blargedynsym'
9950         ;;
9951       esac
9952     fi
9953   fi
9954
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9956 $as_echo "$ld_shlibs" >&6; }
9957 test "$ld_shlibs" = no && can_build_shared=no
9958
9959 with_gnu_ld=$with_gnu_ld
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975 #
9976 # Do we need to explicitly link libc?
9977 #
9978 case "x$archive_cmds_need_lc" in
9979 x|xyes)
9980   # Assume -lc should be added
9981   archive_cmds_need_lc=yes
9982
9983   if test "$enable_shared" = yes && test "$GCC" = yes; then
9984     case $archive_cmds in
9985     *'~'*)
9986       # FIXME: we may have to deal with multi-command sequences.
9987       ;;
9988     '$CC '*)
9989       # Test whether the compiler implicitly links with -lc since on some
9990       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9991       # to ld, don't add -lc before -lgcc.
9992       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9993 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9994 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9995   $as_echo_n "(cached) " >&6
9996 else
9997   $RM conftest*
9998         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9999
10000         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10001   (eval $ac_compile) 2>&5
10002   ac_status=$?
10003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10004   test $ac_status = 0; } 2>conftest.err; then
10005           soname=conftest
10006           lib=conftest
10007           libobjs=conftest.$ac_objext
10008           deplibs=
10009           wl=$lt_prog_compiler_wl
10010           pic_flag=$lt_prog_compiler_pic
10011           compiler_flags=-v
10012           linker_flags=-v
10013           verstring=
10014           output_objdir=.
10015           libname=conftest
10016           lt_save_allow_undefined_flag=$allow_undefined_flag
10017           allow_undefined_flag=
10018           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10019   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10020   ac_status=$?
10021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10022   test $ac_status = 0; }
10023           then
10024             lt_cv_archive_cmds_need_lc=no
10025           else
10026             lt_cv_archive_cmds_need_lc=yes
10027           fi
10028           allow_undefined_flag=$lt_save_allow_undefined_flag
10029         else
10030           cat conftest.err 1>&5
10031         fi
10032         $RM conftest*
10033
10034 fi
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10036 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10037       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10038       ;;
10039     esac
10040   fi
10041   ;;
10042 esac
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10201 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10202
10203 if test "$GCC" = yes; then
10204   case $host_os in
10205     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10206     *) lt_awk_arg="/^libraries:/" ;;
10207   esac
10208   case $host_os in
10209     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10210     *) lt_sed_strip_eq="s,=/,/,g" ;;
10211   esac
10212   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10213   case $lt_search_path_spec in
10214   *\;*)
10215     # if the path contains ";" then we assume it to be the separator
10216     # otherwise default to the standard path separator (i.e. ":") - it is
10217     # assumed that no part of a normal pathname contains ";" but that should
10218     # okay in the real world where ";" in dirpaths is itself problematic.
10219     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10220     ;;
10221   *)
10222     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10223     ;;
10224   esac
10225   # Ok, now we have the path, separated by spaces, we can step through it
10226   # and add multilib dir if necessary.
10227   lt_tmp_lt_search_path_spec=
10228   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10229   for lt_sys_path in $lt_search_path_spec; do
10230     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10231       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10232     else
10233       test -d "$lt_sys_path" && \
10234         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10235     fi
10236   done
10237   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10238 BEGIN {RS=" "; FS="/|\n";} {
10239   lt_foo="";
10240   lt_count=0;
10241   for (lt_i = NF; lt_i > 0; lt_i--) {
10242     if ($lt_i != "" && $lt_i != ".") {
10243       if ($lt_i == "..") {
10244         lt_count++;
10245       } else {
10246         if (lt_count == 0) {
10247           lt_foo="/" $lt_i lt_foo;
10248         } else {
10249           lt_count--;
10250         }
10251       }
10252     }
10253   }
10254   if (lt_foo != "") { lt_freq[lt_foo]++; }
10255   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10256 }'`
10257   # AWK program above erroneously prepends '/' to C:/dos/paths
10258   # for these hosts.
10259   case $host_os in
10260     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10261       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10262   esac
10263   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10264 else
10265   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10266 fi
10267 library_names_spec=
10268 libname_spec='lib$name'
10269 soname_spec=
10270 shrext_cmds=".so"
10271 postinstall_cmds=
10272 postuninstall_cmds=
10273 finish_cmds=
10274 finish_eval=
10275 shlibpath_var=
10276 shlibpath_overrides_runpath=unknown
10277 version_type=none
10278 dynamic_linker="$host_os ld.so"
10279 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10280 need_lib_prefix=unknown
10281 hardcode_into_libs=no
10282
10283 # when you set need_version to no, make sure it does not cause -set_version
10284 # flags to be left without arguments
10285 need_version=unknown
10286
10287 case $host_os in
10288 aix3*)
10289   version_type=linux
10290   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10291   shlibpath_var=LIBPATH
10292
10293   # AIX 3 has no versioning support, so we append a major version to the name.
10294   soname_spec='${libname}${release}${shared_ext}$major'
10295   ;;
10296
10297 aix[4-9]*)
10298   version_type=linux
10299   need_lib_prefix=no
10300   need_version=no
10301   hardcode_into_libs=yes
10302   if test "$host_cpu" = ia64; then
10303     # AIX 5 supports IA64
10304     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10305     shlibpath_var=LD_LIBRARY_PATH
10306   else
10307     # With GCC up to 2.95.x, collect2 would create an import file
10308     # for dependence libraries.  The import file would start with
10309     # the line `#! .'.  This would cause the generated library to
10310     # depend on `.', always an invalid library.  This was fixed in
10311     # development snapshots of GCC prior to 3.0.
10312     case $host_os in
10313       aix4 | aix4.[01] | aix4.[01].*)
10314       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10315            echo ' yes '
10316            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10317         :
10318       else
10319         can_build_shared=no
10320       fi
10321       ;;
10322     esac
10323     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10324     # soname into executable. Probably we can add versioning support to
10325     # collect2, so additional links can be useful in future.
10326     if test "$aix_use_runtimelinking" = yes; then
10327       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10328       # instead of lib<name>.a to let people know that these are not
10329       # typical AIX shared libraries.
10330       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331     else
10332       # We preserve .a as extension for shared libraries through AIX4.2
10333       # and later when we are not doing run time linking.
10334       library_names_spec='${libname}${release}.a $libname.a'
10335       soname_spec='${libname}${release}${shared_ext}$major'
10336     fi
10337     shlibpath_var=LIBPATH
10338   fi
10339   ;;
10340
10341 amigaos*)
10342   case $host_cpu in
10343   powerpc)
10344     # Since July 2007 AmigaOS4 officially supports .so libraries.
10345     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347     ;;
10348   m68k)
10349     library_names_spec='$libname.ixlibrary $libname.a'
10350     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10351     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10352     ;;
10353   esac
10354   ;;
10355
10356 beos*)
10357   library_names_spec='${libname}${shared_ext}'
10358   dynamic_linker="$host_os ld.so"
10359   shlibpath_var=LIBRARY_PATH
10360   ;;
10361
10362 bsdi[45]*)
10363   version_type=linux
10364   need_version=no
10365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366   soname_spec='${libname}${release}${shared_ext}$major'
10367   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10368   shlibpath_var=LD_LIBRARY_PATH
10369   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10370   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10371   # the default ld.so.conf also contains /usr/contrib/lib and
10372   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10373   # libtool to hard-code these into programs
10374   ;;
10375
10376 cygwin* | mingw* | pw32* | cegcc*)
10377   version_type=windows
10378   shrext_cmds=".dll"
10379   need_version=no
10380   need_lib_prefix=no
10381
10382   case $GCC,$cc_basename in
10383   yes,*)
10384     # gcc
10385     library_names_spec='$libname.dll.a'
10386     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10387     postinstall_cmds='base_file=`basename \${file}`~
10388       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10389       dldir=$destdir/`dirname \$dlpath`~
10390       test -d \$dldir || mkdir -p \$dldir~
10391       $install_prog $dir/$dlname \$dldir/$dlname~
10392       chmod a+x \$dldir/$dlname~
10393       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10394         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10395       fi'
10396     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10397       dlpath=$dir/\$dldll~
10398        $RM \$dlpath'
10399     shlibpath_overrides_runpath=yes
10400
10401     case $host_os in
10402     cygwin*)
10403       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10404       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10405
10406       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10407       ;;
10408     mingw* | cegcc*)
10409       # MinGW DLLs use traditional 'lib' prefix
10410       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10411       ;;
10412     pw32*)
10413       # pw32 DLLs use 'pw' prefix rather than 'lib'
10414       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10415       ;;
10416     esac
10417     dynamic_linker='Win32 ld.exe'
10418     ;;
10419
10420   *,cl*)
10421     # Native MSVC
10422     libname_spec='$name'
10423     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10424     library_names_spec='${libname}.dll.lib'
10425
10426     case $build_os in
10427     mingw*)
10428       sys_lib_search_path_spec=
10429       lt_save_ifs=$IFS
10430       IFS=';'
10431       for lt_path in $LIB
10432       do
10433         IFS=$lt_save_ifs
10434         # Let DOS variable expansion print the short 8.3 style file name.
10435         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10436         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10437       done
10438       IFS=$lt_save_ifs
10439       # Convert to MSYS style.
10440       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10441       ;;
10442     cygwin*)
10443       # Convert to unix form, then to dos form, then back to unix form
10444       # but this time dos style (no spaces!) so that the unix form looks
10445       # like /cygdrive/c/PROGRA~1:/cygdr...
10446       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10447       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10448       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10449       ;;
10450     *)
10451       sys_lib_search_path_spec="$LIB"
10452       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10453         # It is most probably a Windows format PATH.
10454         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10455       else
10456         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10457       fi
10458       # FIXME: find the short name or the path components, as spaces are
10459       # common. (e.g. "Program Files" -> "PROGRA~1")
10460       ;;
10461     esac
10462
10463     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10464     postinstall_cmds='base_file=`basename \${file}`~
10465       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10466       dldir=$destdir/`dirname \$dlpath`~
10467       test -d \$dldir || mkdir -p \$dldir~
10468       $install_prog $dir/$dlname \$dldir/$dlname'
10469     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10470       dlpath=$dir/\$dldll~
10471        $RM \$dlpath'
10472     shlibpath_overrides_runpath=yes
10473     dynamic_linker='Win32 link.exe'
10474     ;;
10475
10476   *)
10477     # Assume MSVC wrapper
10478     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10479     dynamic_linker='Win32 ld.exe'
10480     ;;
10481   esac
10482   # FIXME: first we should search . and the directory the executable is in
10483   shlibpath_var=PATH
10484   ;;
10485
10486 darwin* | rhapsody*)
10487   dynamic_linker="$host_os dyld"
10488   version_type=darwin
10489   need_lib_prefix=no
10490   need_version=no
10491   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10492   soname_spec='${libname}${release}${major}$shared_ext'
10493   shlibpath_overrides_runpath=yes
10494   shlibpath_var=DYLD_LIBRARY_PATH
10495   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10496
10497   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10498   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10499   ;;
10500
10501 dgux*)
10502   version_type=linux
10503   need_lib_prefix=no
10504   need_version=no
10505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10506   soname_spec='${libname}${release}${shared_ext}$major'
10507   shlibpath_var=LD_LIBRARY_PATH
10508   ;;
10509
10510 freebsd1*)
10511   dynamic_linker=no
10512   ;;
10513
10514 freebsd* | dragonfly*)
10515   # DragonFly does not have aout.  When/if they implement a new
10516   # versioning mechanism, adjust this.
10517   if test -x /usr/bin/objformat; then
10518     objformat=`/usr/bin/objformat`
10519   else
10520     case $host_os in
10521     freebsd[123]*) objformat=aout ;;
10522     *) objformat=elf ;;
10523     esac
10524   fi
10525   version_type=freebsd-$objformat
10526   case $version_type in
10527     freebsd-elf*)
10528       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10529       need_version=no
10530       need_lib_prefix=no
10531       ;;
10532     freebsd-*)
10533       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10534       need_version=yes
10535       ;;
10536   esac
10537   shlibpath_var=LD_LIBRARY_PATH
10538   case $host_os in
10539   freebsd2*)
10540     shlibpath_overrides_runpath=yes
10541     ;;
10542   freebsd3.[01]* | freebsdelf3.[01]*)
10543     shlibpath_overrides_runpath=yes
10544     hardcode_into_libs=yes
10545     ;;
10546   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10547   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10548     shlibpath_overrides_runpath=no
10549     hardcode_into_libs=yes
10550     ;;
10551   *) # from 4.6 on, and DragonFly
10552     shlibpath_overrides_runpath=yes
10553     hardcode_into_libs=yes
10554     ;;
10555   esac
10556   ;;
10557
10558 gnu*)
10559   version_type=linux
10560   need_lib_prefix=no
10561   need_version=no
10562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10563   soname_spec='${libname}${release}${shared_ext}$major'
10564   shlibpath_var=LD_LIBRARY_PATH
10565   hardcode_into_libs=yes
10566   ;;
10567
10568 haiku*)
10569   version_type=linux
10570   need_lib_prefix=no
10571   need_version=no
10572   dynamic_linker="$host_os runtime_loader"
10573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10574   soname_spec='${libname}${release}${shared_ext}$major'
10575   shlibpath_var=LIBRARY_PATH
10576   shlibpath_overrides_runpath=yes
10577   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10578   hardcode_into_libs=yes
10579   ;;
10580
10581 hpux9* | hpux10* | hpux11*)
10582   # Give a soname corresponding to the major version so that dld.sl refuses to
10583   # link against other versions.
10584   version_type=sunos
10585   need_lib_prefix=no
10586   need_version=no
10587   case $host_cpu in
10588   ia64*)
10589     shrext_cmds='.so'
10590     hardcode_into_libs=yes
10591     dynamic_linker="$host_os dld.so"
10592     shlibpath_var=LD_LIBRARY_PATH
10593     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10594     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595     soname_spec='${libname}${release}${shared_ext}$major'
10596     if test "X$HPUX_IA64_MODE" = X32; then
10597       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10598     else
10599       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10600     fi
10601     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10602     ;;
10603   hppa*64*)
10604     shrext_cmds='.sl'
10605     hardcode_into_libs=yes
10606     dynamic_linker="$host_os dld.sl"
10607     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10608     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10609     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10610     soname_spec='${libname}${release}${shared_ext}$major'
10611     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10612     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10613     ;;
10614   *)
10615     shrext_cmds='.sl'
10616     dynamic_linker="$host_os dld.sl"
10617     shlibpath_var=SHLIB_PATH
10618     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10619     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620     soname_spec='${libname}${release}${shared_ext}$major'
10621     ;;
10622   esac
10623   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10624   postinstall_cmds='chmod 555 $lib'
10625   # or fails outright, so override atomically:
10626   install_override_mode=555
10627   ;;
10628
10629 interix[3-9]*)
10630   version_type=linux
10631   need_lib_prefix=no
10632   need_version=no
10633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10634   soname_spec='${libname}${release}${shared_ext}$major'
10635   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10636   shlibpath_var=LD_LIBRARY_PATH
10637   shlibpath_overrides_runpath=no
10638   hardcode_into_libs=yes
10639   ;;
10640
10641 irix5* | irix6* | nonstopux*)
10642   case $host_os in
10643     nonstopux*) version_type=nonstopux ;;
10644     *)
10645         if test "$lt_cv_prog_gnu_ld" = yes; then
10646                 version_type=linux
10647         else
10648                 version_type=irix
10649         fi ;;
10650   esac
10651   need_lib_prefix=no
10652   need_version=no
10653   soname_spec='${libname}${release}${shared_ext}$major'
10654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10655   case $host_os in
10656   irix5* | nonstopux*)
10657     libsuff= shlibsuff=
10658     ;;
10659   *)
10660     case $LD in # libtool.m4 will add one of these switches to LD
10661     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10662       libsuff= shlibsuff= libmagic=32-bit;;
10663     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10664       libsuff=32 shlibsuff=N32 libmagic=N32;;
10665     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10666       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10667     *) libsuff= shlibsuff= libmagic=never-match;;
10668     esac
10669     ;;
10670   esac
10671   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10672   shlibpath_overrides_runpath=no
10673   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10674   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10675   hardcode_into_libs=yes
10676   ;;
10677
10678 # No shared lib support for Linux oldld, aout, or coff.
10679 linux*oldld* | linux*aout* | linux*coff*)
10680   dynamic_linker=no
10681   ;;
10682
10683 # This must be Linux ELF.
10684 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10685   version_type=linux
10686   need_lib_prefix=no
10687   need_version=no
10688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689   soname_spec='${libname}${release}${shared_ext}$major'
10690   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10691   shlibpath_var=LD_LIBRARY_PATH
10692   shlibpath_overrides_runpath=no
10693
10694   # Some binutils ld are patched to set DT_RUNPATH
10695   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10696   $as_echo_n "(cached) " >&6
10697 else
10698   lt_cv_shlibpath_overrides_runpath=no
10699     save_LDFLAGS=$LDFLAGS
10700     save_libdir=$libdir
10701     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10702          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10703     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h.  */
10705
10706 int
10707 main ()
10708 {
10709
10710   ;
10711   return 0;
10712 }
10713 _ACEOF
10714 if ac_fn_c_try_link "$LINENO"; then :
10715   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10716   lt_cv_shlibpath_overrides_runpath=yes
10717 fi
10718 fi
10719 rm -f core conftest.err conftest.$ac_objext \
10720     conftest$ac_exeext conftest.$ac_ext
10721     LDFLAGS=$save_LDFLAGS
10722     libdir=$save_libdir
10723
10724 fi
10725
10726   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10727
10728   # This implies no fast_install, which is unacceptable.
10729   # Some rework will be needed to allow for fast_install
10730   # before this can be enabled.
10731   hardcode_into_libs=yes
10732
10733   # Append ld.so.conf contents to the search path
10734   if test -f /etc/ld.so.conf; then
10735     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10736     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10737   fi
10738
10739   # We used to test for /lib/ld.so.1 and disable shared libraries on
10740   # powerpc, because MkLinux only supported shared libraries with the
10741   # GNU dynamic linker.  Since this was broken with cross compilers,
10742   # most powerpc-linux boxes support dynamic linking these days and
10743   # people can always --disable-shared, the test was removed, and we
10744   # assume the GNU/Linux dynamic linker is in use.
10745   dynamic_linker='GNU/Linux ld.so'
10746   ;;
10747
10748 netbsd*)
10749   version_type=sunos
10750   need_lib_prefix=no
10751   need_version=no
10752   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10753     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10754     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10755     dynamic_linker='NetBSD (a.out) ld.so'
10756   else
10757     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10758     soname_spec='${libname}${release}${shared_ext}$major'
10759     dynamic_linker='NetBSD ld.elf_so'
10760   fi
10761   shlibpath_var=LD_LIBRARY_PATH
10762   shlibpath_overrides_runpath=yes
10763   hardcode_into_libs=yes
10764   ;;
10765
10766 newsos6)
10767   version_type=linux
10768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769   shlibpath_var=LD_LIBRARY_PATH
10770   shlibpath_overrides_runpath=yes
10771   ;;
10772
10773 *nto* | *qnx*)
10774   version_type=qnx
10775   need_lib_prefix=no
10776   need_version=no
10777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10778   soname_spec='${libname}${release}${shared_ext}$major'
10779   shlibpath_var=LD_LIBRARY_PATH
10780   shlibpath_overrides_runpath=no
10781   hardcode_into_libs=yes
10782   dynamic_linker='ldqnx.so'
10783   ;;
10784
10785 openbsd*)
10786   version_type=sunos
10787   sys_lib_dlsearch_path_spec="/usr/lib"
10788   need_lib_prefix=no
10789   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10790   case $host_os in
10791     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10792     *)                          need_version=no  ;;
10793   esac
10794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10795   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10796   shlibpath_var=LD_LIBRARY_PATH
10797   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10798     case $host_os in
10799       openbsd2.[89] | openbsd2.[89].*)
10800         shlibpath_overrides_runpath=no
10801         ;;
10802       *)
10803         shlibpath_overrides_runpath=yes
10804         ;;
10805       esac
10806   else
10807     shlibpath_overrides_runpath=yes
10808   fi
10809   ;;
10810
10811 os2*)
10812   libname_spec='$name'
10813   shrext_cmds=".dll"
10814   need_lib_prefix=no
10815   library_names_spec='$libname${shared_ext} $libname.a'
10816   dynamic_linker='OS/2 ld.exe'
10817   shlibpath_var=LIBPATH
10818   ;;
10819
10820 osf3* | osf4* | osf5*)
10821   version_type=osf
10822   need_lib_prefix=no
10823   need_version=no
10824   soname_spec='${libname}${release}${shared_ext}$major'
10825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10826   shlibpath_var=LD_LIBRARY_PATH
10827   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10828   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10829   ;;
10830
10831 rdos*)
10832   dynamic_linker=no
10833   ;;
10834
10835 solaris*)
10836   version_type=linux
10837   need_lib_prefix=no
10838   need_version=no
10839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840   soname_spec='${libname}${release}${shared_ext}$major'
10841   shlibpath_var=LD_LIBRARY_PATH
10842   shlibpath_overrides_runpath=yes
10843   hardcode_into_libs=yes
10844   # ldd complains unless libraries are executable
10845   postinstall_cmds='chmod +x $lib'
10846   ;;
10847
10848 sunos4*)
10849   version_type=sunos
10850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10851   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10852   shlibpath_var=LD_LIBRARY_PATH
10853   shlibpath_overrides_runpath=yes
10854   if test "$with_gnu_ld" = yes; then
10855     need_lib_prefix=no
10856   fi
10857   need_version=yes
10858   ;;
10859
10860 sysv4 | sysv4.3*)
10861   version_type=linux
10862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10863   soname_spec='${libname}${release}${shared_ext}$major'
10864   shlibpath_var=LD_LIBRARY_PATH
10865   case $host_vendor in
10866     sni)
10867       shlibpath_overrides_runpath=no
10868       need_lib_prefix=no
10869       runpath_var=LD_RUN_PATH
10870       ;;
10871     siemens)
10872       need_lib_prefix=no
10873       ;;
10874     motorola)
10875       need_lib_prefix=no
10876       need_version=no
10877       shlibpath_overrides_runpath=no
10878       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10879       ;;
10880   esac
10881   ;;
10882
10883 sysv4*MP*)
10884   if test -d /usr/nec ;then
10885     version_type=linux
10886     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10887     soname_spec='$libname${shared_ext}.$major'
10888     shlibpath_var=LD_LIBRARY_PATH
10889   fi
10890   ;;
10891
10892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10893   version_type=freebsd-elf
10894   need_lib_prefix=no
10895   need_version=no
10896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10897   soname_spec='${libname}${release}${shared_ext}$major'
10898   shlibpath_var=LD_LIBRARY_PATH
10899   shlibpath_overrides_runpath=yes
10900   hardcode_into_libs=yes
10901   if test "$with_gnu_ld" = yes; then
10902     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10903   else
10904     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10905     case $host_os in
10906       sco3.2v5*)
10907         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10908         ;;
10909     esac
10910   fi
10911   sys_lib_dlsearch_path_spec='/usr/lib'
10912   ;;
10913
10914 tpf*)
10915   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10916   version_type=linux
10917   need_lib_prefix=no
10918   need_version=no
10919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10920   shlibpath_var=LD_LIBRARY_PATH
10921   shlibpath_overrides_runpath=no
10922   hardcode_into_libs=yes
10923   ;;
10924
10925 uts4*)
10926   version_type=linux
10927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928   soname_spec='${libname}${release}${shared_ext}$major'
10929   shlibpath_var=LD_LIBRARY_PATH
10930   ;;
10931
10932 *)
10933   dynamic_linker=no
10934   ;;
10935 esac
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10937 $as_echo "$dynamic_linker" >&6; }
10938 test "$dynamic_linker" = no && can_build_shared=no
10939
10940 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10941 if test "$GCC" = yes; then
10942   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10943 fi
10944
10945 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10946   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10947 fi
10948 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10949   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10950 fi
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11044 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11045 hardcode_action=
11046 if test -n "$hardcode_libdir_flag_spec" ||
11047    test -n "$runpath_var" ||
11048    test "X$hardcode_automatic" = "Xyes" ; then
11049
11050   # We can hardcode non-existent directories.
11051   if test "$hardcode_direct" != no &&
11052      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11053      # have to relink, otherwise we might link with an installed library
11054      # when we should be linking with a yet-to-be-installed one
11055      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11056      test "$hardcode_minus_L" != no; then
11057     # Linking always hardcodes the temporary library directory.
11058     hardcode_action=relink
11059   else
11060     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11061     hardcode_action=immediate
11062   fi
11063 else
11064   # We cannot hardcode anything, or else we can only hardcode existing
11065   # directories.
11066   hardcode_action=unsupported
11067 fi
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11069 $as_echo "$hardcode_action" >&6; }
11070
11071 if test "$hardcode_action" = relink ||
11072    test "$inherit_rpath" = yes; then
11073   # Fast installation is not supported
11074   enable_fast_install=no
11075 elif test "$shlibpath_overrides_runpath" = yes ||
11076      test "$enable_shared" = no; then
11077   # Fast installation is not necessary
11078   enable_fast_install=needless
11079 fi
11080
11081
11082
11083
11084
11085
11086   if test "x$enable_dlopen" != xyes; then
11087   enable_dlopen=unknown
11088   enable_dlopen_self=unknown
11089   enable_dlopen_self_static=unknown
11090 else
11091   lt_cv_dlopen=no
11092   lt_cv_dlopen_libs=
11093
11094   case $host_os in
11095   beos*)
11096     lt_cv_dlopen="load_add_on"
11097     lt_cv_dlopen_libs=
11098     lt_cv_dlopen_self=yes
11099     ;;
11100
11101   mingw* | pw32* | cegcc*)
11102     lt_cv_dlopen="LoadLibrary"
11103     lt_cv_dlopen_libs=
11104     ;;
11105
11106   cygwin*)
11107     lt_cv_dlopen="dlopen"
11108     lt_cv_dlopen_libs=
11109     ;;
11110
11111   darwin*)
11112   # if libdl is installed we need to link against it
11113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11114 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11115 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11116   $as_echo_n "(cached) " >&6
11117 else
11118   ac_check_lib_save_LIBS=$LIBS
11119 LIBS="-ldl  $LIBS"
11120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h.  */
11122
11123 /* Override any GCC internal prototype to avoid an error.
11124    Use char because int might match the return type of a GCC
11125    builtin and then its argument prototype would still apply.  */
11126 #ifdef __cplusplus
11127 extern "C"
11128 #endif
11129 char dlopen ();
11130 int
11131 main ()
11132 {
11133 return dlopen ();
11134   ;
11135   return 0;
11136 }
11137 _ACEOF
11138 if ac_fn_c_try_link "$LINENO"; then :
11139   ac_cv_lib_dl_dlopen=yes
11140 else
11141   ac_cv_lib_dl_dlopen=no
11142 fi
11143 rm -f core conftest.err conftest.$ac_objext \
11144     conftest$ac_exeext conftest.$ac_ext
11145 LIBS=$ac_check_lib_save_LIBS
11146 fi
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11148 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11149 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11150   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11151 else
11152
11153     lt_cv_dlopen="dyld"
11154     lt_cv_dlopen_libs=
11155     lt_cv_dlopen_self=yes
11156
11157 fi
11158
11159     ;;
11160
11161   *)
11162     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11163 if test "x$ac_cv_func_shl_load" = x""yes; then :
11164   lt_cv_dlopen="shl_load"
11165 else
11166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11167 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11168 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11169   $as_echo_n "(cached) " >&6
11170 else
11171   ac_check_lib_save_LIBS=$LIBS
11172 LIBS="-ldld  $LIBS"
11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h.  */
11175
11176 /* Override any GCC internal prototype to avoid an error.
11177    Use char because int might match the return type of a GCC
11178    builtin and then its argument prototype would still apply.  */
11179 #ifdef __cplusplus
11180 extern "C"
11181 #endif
11182 char shl_load ();
11183 int
11184 main ()
11185 {
11186 return shl_load ();
11187   ;
11188   return 0;
11189 }
11190 _ACEOF
11191 if ac_fn_c_try_link "$LINENO"; then :
11192   ac_cv_lib_dld_shl_load=yes
11193 else
11194   ac_cv_lib_dld_shl_load=no
11195 fi
11196 rm -f core conftest.err conftest.$ac_objext \
11197     conftest$ac_exeext conftest.$ac_ext
11198 LIBS=$ac_check_lib_save_LIBS
11199 fi
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11201 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11202 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11203   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11204 else
11205   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11206 if test "x$ac_cv_func_dlopen" = x""yes; then :
11207   lt_cv_dlopen="dlopen"
11208 else
11209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11210 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11211 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11212   $as_echo_n "(cached) " >&6
11213 else
11214   ac_check_lib_save_LIBS=$LIBS
11215 LIBS="-ldl  $LIBS"
11216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217 /* end confdefs.h.  */
11218
11219 /* Override any GCC internal prototype to avoid an error.
11220    Use char because int might match the return type of a GCC
11221    builtin and then its argument prototype would still apply.  */
11222 #ifdef __cplusplus
11223 extern "C"
11224 #endif
11225 char dlopen ();
11226 int
11227 main ()
11228 {
11229 return dlopen ();
11230   ;
11231   return 0;
11232 }
11233 _ACEOF
11234 if ac_fn_c_try_link "$LINENO"; then :
11235   ac_cv_lib_dl_dlopen=yes
11236 else
11237   ac_cv_lib_dl_dlopen=no
11238 fi
11239 rm -f core conftest.err conftest.$ac_objext \
11240     conftest$ac_exeext conftest.$ac_ext
11241 LIBS=$ac_check_lib_save_LIBS
11242 fi
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11244 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11245 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11246   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11247 else
11248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11249 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11250 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11251   $as_echo_n "(cached) " >&6
11252 else
11253   ac_check_lib_save_LIBS=$LIBS
11254 LIBS="-lsvld  $LIBS"
11255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256 /* end confdefs.h.  */
11257
11258 /* Override any GCC internal prototype to avoid an error.
11259    Use char because int might match the return type of a GCC
11260    builtin and then its argument prototype would still apply.  */
11261 #ifdef __cplusplus
11262 extern "C"
11263 #endif
11264 char dlopen ();
11265 int
11266 main ()
11267 {
11268 return dlopen ();
11269   ;
11270   return 0;
11271 }
11272 _ACEOF
11273 if ac_fn_c_try_link "$LINENO"; then :
11274   ac_cv_lib_svld_dlopen=yes
11275 else
11276   ac_cv_lib_svld_dlopen=no
11277 fi
11278 rm -f core conftest.err conftest.$ac_objext \
11279     conftest$ac_exeext conftest.$ac_ext
11280 LIBS=$ac_check_lib_save_LIBS
11281 fi
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11283 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11284 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11285   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11286 else
11287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11288 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11289 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11290   $as_echo_n "(cached) " >&6
11291 else
11292   ac_check_lib_save_LIBS=$LIBS
11293 LIBS="-ldld  $LIBS"
11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h.  */
11296
11297 /* Override any GCC internal prototype to avoid an error.
11298    Use char because int might match the return type of a GCC
11299    builtin and then its argument prototype would still apply.  */
11300 #ifdef __cplusplus
11301 extern "C"
11302 #endif
11303 char dld_link ();
11304 int
11305 main ()
11306 {
11307 return dld_link ();
11308   ;
11309   return 0;
11310 }
11311 _ACEOF
11312 if ac_fn_c_try_link "$LINENO"; then :
11313   ac_cv_lib_dld_dld_link=yes
11314 else
11315   ac_cv_lib_dld_dld_link=no
11316 fi
11317 rm -f core conftest.err conftest.$ac_objext \
11318     conftest$ac_exeext conftest.$ac_ext
11319 LIBS=$ac_check_lib_save_LIBS
11320 fi
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11322 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11323 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11324   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11325 fi
11326
11327
11328 fi
11329
11330
11331 fi
11332
11333
11334 fi
11335
11336
11337 fi
11338
11339
11340 fi
11341
11342     ;;
11343   esac
11344
11345   if test "x$lt_cv_dlopen" != xno; then
11346     enable_dlopen=yes
11347   else
11348     enable_dlopen=no
11349   fi
11350
11351   case $lt_cv_dlopen in
11352   dlopen)
11353     save_CPPFLAGS="$CPPFLAGS"
11354     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11355
11356     save_LDFLAGS="$LDFLAGS"
11357     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11358
11359     save_LIBS="$LIBS"
11360     LIBS="$lt_cv_dlopen_libs $LIBS"
11361
11362     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11363 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11364 if test "${lt_cv_dlopen_self+set}" = set; then :
11365   $as_echo_n "(cached) " >&6
11366 else
11367           if test "$cross_compiling" = yes; then :
11368   lt_cv_dlopen_self=cross
11369 else
11370   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11371   lt_status=$lt_dlunknown
11372   cat > conftest.$ac_ext <<_LT_EOF
11373 #line $LINENO "configure"
11374 #include "confdefs.h"
11375
11376 #if HAVE_DLFCN_H
11377 #include <dlfcn.h>
11378 #endif
11379
11380 #include <stdio.h>
11381
11382 #ifdef RTLD_GLOBAL
11383 #  define LT_DLGLOBAL           RTLD_GLOBAL
11384 #else
11385 #  ifdef DL_GLOBAL
11386 #    define LT_DLGLOBAL         DL_GLOBAL
11387 #  else
11388 #    define LT_DLGLOBAL         0
11389 #  endif
11390 #endif
11391
11392 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11393    find out it does not work in some platform. */
11394 #ifndef LT_DLLAZY_OR_NOW
11395 #  ifdef RTLD_LAZY
11396 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11397 #  else
11398 #    ifdef DL_LAZY
11399 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11400 #    else
11401 #      ifdef RTLD_NOW
11402 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11403 #      else
11404 #        ifdef DL_NOW
11405 #          define LT_DLLAZY_OR_NOW      DL_NOW
11406 #        else
11407 #          define LT_DLLAZY_OR_NOW      0
11408 #        endif
11409 #      endif
11410 #    endif
11411 #  endif
11412 #endif
11413
11414 /* When -fvisbility=hidden is used, assume the code has been annotated
11415    correspondingly for the symbols needed.  */
11416 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11417 int fnord () __attribute__((visibility("default")));
11418 #endif
11419
11420 int fnord () { return 42; }
11421 int main ()
11422 {
11423   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11424   int status = $lt_dlunknown;
11425
11426   if (self)
11427     {
11428       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11429       else
11430         {
11431           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11432           else puts (dlerror ());
11433         }
11434       /* dlclose (self); */
11435     }
11436   else
11437     puts (dlerror ());
11438
11439   return status;
11440 }
11441 _LT_EOF
11442   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11443   (eval $ac_link) 2>&5
11444   ac_status=$?
11445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11446   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11447     (./conftest; exit; ) >&5 2>/dev/null
11448     lt_status=$?
11449     case x$lt_status in
11450       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11451       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11452       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11453     esac
11454   else :
11455     # compilation failed
11456     lt_cv_dlopen_self=no
11457   fi
11458 fi
11459 rm -fr conftest*
11460
11461
11462 fi
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11464 $as_echo "$lt_cv_dlopen_self" >&6; }
11465
11466     if test "x$lt_cv_dlopen_self" = xyes; then
11467       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11468       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11469 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11470 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11471   $as_echo_n "(cached) " >&6
11472 else
11473           if test "$cross_compiling" = yes; then :
11474   lt_cv_dlopen_self_static=cross
11475 else
11476   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11477   lt_status=$lt_dlunknown
11478   cat > conftest.$ac_ext <<_LT_EOF
11479 #line $LINENO "configure"
11480 #include "confdefs.h"
11481
11482 #if HAVE_DLFCN_H
11483 #include <dlfcn.h>
11484 #endif
11485
11486 #include <stdio.h>
11487
11488 #ifdef RTLD_GLOBAL
11489 #  define LT_DLGLOBAL           RTLD_GLOBAL
11490 #else
11491 #  ifdef DL_GLOBAL
11492 #    define LT_DLGLOBAL         DL_GLOBAL
11493 #  else
11494 #    define LT_DLGLOBAL         0
11495 #  endif
11496 #endif
11497
11498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11499    find out it does not work in some platform. */
11500 #ifndef LT_DLLAZY_OR_NOW
11501 #  ifdef RTLD_LAZY
11502 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11503 #  else
11504 #    ifdef DL_LAZY
11505 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11506 #    else
11507 #      ifdef RTLD_NOW
11508 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11509 #      else
11510 #        ifdef DL_NOW
11511 #          define LT_DLLAZY_OR_NOW      DL_NOW
11512 #        else
11513 #          define LT_DLLAZY_OR_NOW      0
11514 #        endif
11515 #      endif
11516 #    endif
11517 #  endif
11518 #endif
11519
11520 /* When -fvisbility=hidden is used, assume the code has been annotated
11521    correspondingly for the symbols needed.  */
11522 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11523 int fnord () __attribute__((visibility("default")));
11524 #endif
11525
11526 int fnord () { return 42; }
11527 int main ()
11528 {
11529   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11530   int status = $lt_dlunknown;
11531
11532   if (self)
11533     {
11534       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11535       else
11536         {
11537           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11538           else puts (dlerror ());
11539         }
11540       /* dlclose (self); */
11541     }
11542   else
11543     puts (dlerror ());
11544
11545   return status;
11546 }
11547 _LT_EOF
11548   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11549   (eval $ac_link) 2>&5
11550   ac_status=$?
11551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11552   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11553     (./conftest; exit; ) >&5 2>/dev/null
11554     lt_status=$?
11555     case x$lt_status in
11556       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11557       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11558       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11559     esac
11560   else :
11561     # compilation failed
11562     lt_cv_dlopen_self_static=no
11563   fi
11564 fi
11565 rm -fr conftest*
11566
11567
11568 fi
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11570 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11571     fi
11572
11573     CPPFLAGS="$save_CPPFLAGS"
11574     LDFLAGS="$save_LDFLAGS"
11575     LIBS="$save_LIBS"
11576     ;;
11577   esac
11578
11579   case $lt_cv_dlopen_self in
11580   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11581   *) enable_dlopen_self=unknown ;;
11582   esac
11583
11584   case $lt_cv_dlopen_self_static in
11585   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11586   *) enable_dlopen_self_static=unknown ;;
11587   esac
11588 fi
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606 striplib=
11607 old_striplib=
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11609 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11610 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11611   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11612   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11614 $as_echo "yes" >&6; }
11615 else
11616 # FIXME - insert some real tests, host_os isn't really good enough
11617   case $host_os in
11618   darwin*)
11619     if test -n "$STRIP" ; then
11620       striplib="$STRIP -x"
11621       old_striplib="$STRIP -S"
11622       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623 $as_echo "yes" >&6; }
11624     else
11625       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626 $as_echo "no" >&6; }
11627     fi
11628     ;;
11629   *)
11630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11632     ;;
11633   esac
11634 fi
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647   # Report which library types will actually be built
11648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11649 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11651 $as_echo "$can_build_shared" >&6; }
11652
11653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11654 $as_echo_n "checking whether to build shared libraries... " >&6; }
11655   test "$can_build_shared" = "no" && enable_shared=no
11656
11657   # On AIX, shared libraries and static libraries use the same namespace, and
11658   # are all built from PIC.
11659   case $host_os in
11660   aix3*)
11661     test "$enable_shared" = yes && enable_static=no
11662     if test -n "$RANLIB"; then
11663       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11664       postinstall_cmds='$RANLIB $lib'
11665     fi
11666     ;;
11667
11668   aix[4-9]*)
11669     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11670       test "$enable_shared" = yes && enable_static=no
11671     fi
11672     ;;
11673   esac
11674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11675 $as_echo "$enable_shared" >&6; }
11676
11677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11678 $as_echo_n "checking whether to build static libraries... " >&6; }
11679   # Make sure either enable_shared or enable_static is yes.
11680   test "$enable_shared" = yes || enable_static=yes
11681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11682 $as_echo "$enable_static" >&6; }
11683
11684
11685
11686
11687 fi
11688 ac_ext=c
11689 ac_cpp='$CPP $CPPFLAGS'
11690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11693
11694 CC="$lt_save_CC"
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708         ac_config_commands="$ac_config_commands libtool"
11709
11710
11711
11712
11713 # Only expand once:
11714
11715
11716
11717 # Docygen features
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728 # Files:
11729 DX_PROJECT=shibboleth
11730
11731 DX_CONFIG=doxygen.cfg
11732
11733 DX_DOCDIR=doc/api
11734
11735
11736 # Environment variables used inside doxygen.cfg:
11737 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
11738
11739 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
11740
11741 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
11742
11743 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
11744
11745
11746 # Doxygen itself:
11747
11748
11749
11750     # Check whether --enable-doxygen-doc was given.
11751 if test "${enable_doxygen_doc+set}" = set; then :
11752   enableval=$enable_doxygen_doc;
11753 case "$enableval" in
11754 #(
11755 y|Y|yes|Yes|YES)
11756     DX_FLAG_doc=1
11757
11758
11759 ;; #(
11760 n|N|no|No|NO)
11761     DX_FLAG_doc=0
11762
11763 ;; #(
11764 *)
11765     as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
11766 ;;
11767 esac
11768
11769 else
11770
11771 DX_FLAG_doc=1
11772
11773
11774
11775 fi
11776
11777 if test "$DX_FLAG_doc" = 1; then
11778
11779 if test -n "$ac_tool_prefix"; then
11780   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
11781 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783 $as_echo_n "checking for $ac_word... " >&6; }
11784 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :
11785   $as_echo_n "(cached) " >&6
11786 else
11787   case $DX_DOXYGEN in
11788   [\\/]* | ?:[\\/]*)
11789   ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
11790   ;;
11791   *)
11792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793 for as_dir in $PATH
11794 do
11795   IFS=$as_save_IFS
11796   test -z "$as_dir" && as_dir=.
11797     for ac_exec_ext in '' $ac_executable_extensions; do
11798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11799     ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11801     break 2
11802   fi
11803 done
11804   done
11805 IFS=$as_save_IFS
11806
11807   ;;
11808 esac
11809 fi
11810 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
11811 if test -n "$DX_DOXYGEN"; then
11812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
11813 $as_echo "$DX_DOXYGEN" >&6; }
11814 else
11815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 $as_echo "no" >&6; }
11817 fi
11818
11819
11820 fi
11821 if test -z "$ac_cv_path_DX_DOXYGEN"; then
11822   ac_pt_DX_DOXYGEN=$DX_DOXYGEN
11823   # Extract the first word of "doxygen", so it can be a program name with args.
11824 set dummy doxygen; ac_word=$2
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11826 $as_echo_n "checking for $ac_word... " >&6; }
11827 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :
11828   $as_echo_n "(cached) " >&6
11829 else
11830   case $ac_pt_DX_DOXYGEN in
11831   [\\/]* | ?:[\\/]*)
11832   ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
11833   ;;
11834   *)
11835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836 for as_dir in $PATH
11837 do
11838   IFS=$as_save_IFS
11839   test -z "$as_dir" && as_dir=.
11840     for ac_exec_ext in '' $ac_executable_extensions; do
11841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11842     ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11844     break 2
11845   fi
11846 done
11847   done
11848 IFS=$as_save_IFS
11849
11850   ;;
11851 esac
11852 fi
11853 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
11854 if test -n "$ac_pt_DX_DOXYGEN"; then
11855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
11856 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
11857 else
11858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859 $as_echo "no" >&6; }
11860 fi
11861
11862   if test "x$ac_pt_DX_DOXYGEN" = x; then
11863     DX_DOXYGEN=""
11864   else
11865     case $cross_compiling:$ac_tool_warned in
11866 yes:)
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11869 ac_tool_warned=yes ;;
11870 esac
11871     DX_DOXYGEN=$ac_pt_DX_DOXYGEN
11872   fi
11873 else
11874   DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
11875 fi
11876
11877 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
11878     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
11879 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
11880     DX_FLAG_doc=0
11881
11882 fi
11883
11884
11885 if test -n "$ac_tool_prefix"; then
11886   # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
11887 set dummy ${ac_tool_prefix}perl; ac_word=$2
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889 $as_echo_n "checking for $ac_word... " >&6; }
11890 if test "${ac_cv_path_DX_PERL+set}" = set; then :
11891   $as_echo_n "(cached) " >&6
11892 else
11893   case $DX_PERL in
11894   [\\/]* | ?:[\\/]*)
11895   ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
11896   ;;
11897   *)
11898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899 for as_dir in $PATH
11900 do
11901   IFS=$as_save_IFS
11902   test -z "$as_dir" && as_dir=.
11903     for ac_exec_ext in '' $ac_executable_extensions; do
11904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11905     ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
11906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11907     break 2
11908   fi
11909 done
11910   done
11911 IFS=$as_save_IFS
11912
11913   ;;
11914 esac
11915 fi
11916 DX_PERL=$ac_cv_path_DX_PERL
11917 if test -n "$DX_PERL"; then
11918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
11919 $as_echo "$DX_PERL" >&6; }
11920 else
11921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922 $as_echo "no" >&6; }
11923 fi
11924
11925
11926 fi
11927 if test -z "$ac_cv_path_DX_PERL"; then
11928   ac_pt_DX_PERL=$DX_PERL
11929   # Extract the first word of "perl", so it can be a program name with args.
11930 set dummy perl; ac_word=$2
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11932 $as_echo_n "checking for $ac_word... " >&6; }
11933 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :
11934   $as_echo_n "(cached) " >&6
11935 else
11936   case $ac_pt_DX_PERL in
11937   [\\/]* | ?:[\\/]*)
11938   ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
11939   ;;
11940   *)
11941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11942 for as_dir in $PATH
11943 do
11944   IFS=$as_save_IFS
11945   test -z "$as_dir" && as_dir=.
11946     for ac_exec_ext in '' $ac_executable_extensions; do
11947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11948     ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
11949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11950     break 2
11951   fi
11952 done
11953   done
11954 IFS=$as_save_IFS
11955
11956   ;;
11957 esac
11958 fi
11959 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
11960 if test -n "$ac_pt_DX_PERL"; then
11961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
11962 $as_echo "$ac_pt_DX_PERL" >&6; }
11963 else
11964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965 $as_echo "no" >&6; }
11966 fi
11967
11968   if test "x$ac_pt_DX_PERL" = x; then
11969     DX_PERL=""
11970   else
11971     case $cross_compiling:$ac_tool_warned in
11972 yes:)
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11975 ac_tool_warned=yes ;;
11976 esac
11977     DX_PERL=$ac_pt_DX_PERL
11978   fi
11979 else
11980   DX_PERL="$ac_cv_path_DX_PERL"
11981 fi
11982
11983 if test "$DX_FLAG_doc$DX_PERL" = 1; then
11984     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
11985 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
11986     DX_FLAG_doc=0
11987
11988 fi
11989
11990     :
11991 fi
11992 if test "$DX_FLAG_doc" = 1; then
11993      if :; then
11994   DX_COND_doc_TRUE=
11995   DX_COND_doc_FALSE='#'
11996 else
11997   DX_COND_doc_TRUE='#'
11998   DX_COND_doc_FALSE=
11999 fi
12000
12001     DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
12002
12003     :
12004 else
12005      if false; then
12006   DX_COND_doc_TRUE=
12007   DX_COND_doc_FALSE='#'
12008 else
12009   DX_COND_doc_TRUE='#'
12010   DX_COND_doc_FALSE=
12011 fi
12012
12013
12014     :
12015 fi
12016
12017
12018 # Dot for graphics:
12019
12020
12021
12022     # Check whether --enable-doxygen-dot was given.
12023 if test "${enable_doxygen_dot+set}" = set; then :
12024   enableval=$enable_doxygen_dot;
12025 case "$enableval" in
12026 #(
12027 y|Y|yes|Yes|YES)
12028     DX_FLAG_dot=1
12029
12030
12031 test "$DX_FLAG_doc" = "1" \
12032 || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
12033
12034 ;; #(
12035 n|N|no|No|NO)
12036     DX_FLAG_dot=0
12037
12038 ;; #(
12039 *)
12040     as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
12041 ;;
12042 esac
12043
12044 else
12045
12046 DX_FLAG_dot=0
12047
12048
12049 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
12050
12051
12052
12053 fi
12054
12055 if test "$DX_FLAG_dot" = 1; then
12056
12057 if test -n "$ac_tool_prefix"; then
12058   # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
12059 set dummy ${ac_tool_prefix}dot; ac_word=$2
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061 $as_echo_n "checking for $ac_word... " >&6; }
12062 if test "${ac_cv_path_DX_DOT+set}" = set; then :
12063   $as_echo_n "(cached) " >&6
12064 else
12065   case $DX_DOT in
12066   [\\/]* | ?:[\\/]*)
12067   ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
12068   ;;
12069   *)
12070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $PATH
12072 do
12073   IFS=$as_save_IFS
12074   test -z "$as_dir" && as_dir=.
12075     for ac_exec_ext in '' $ac_executable_extensions; do
12076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12077     ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
12078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12079     break 2
12080   fi
12081 done
12082   done
12083 IFS=$as_save_IFS
12084
12085   ;;
12086 esac
12087 fi
12088 DX_DOT=$ac_cv_path_DX_DOT
12089 if test -n "$DX_DOT"; then
12090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
12091 $as_echo "$DX_DOT" >&6; }
12092 else
12093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094 $as_echo "no" >&6; }
12095 fi
12096
12097
12098 fi
12099 if test -z "$ac_cv_path_DX_DOT"; then
12100   ac_pt_DX_DOT=$DX_DOT
12101   # Extract the first word of "dot", so it can be a program name with args.
12102 set dummy dot; ac_word=$2
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12104 $as_echo_n "checking for $ac_word... " >&6; }
12105 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :
12106   $as_echo_n "(cached) " >&6
12107 else
12108   case $ac_pt_DX_DOT in
12109   [\\/]* | ?:[\\/]*)
12110   ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
12111   ;;
12112   *)
12113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114 for as_dir in $PATH
12115 do
12116   IFS=$as_save_IFS
12117   test -z "$as_dir" && as_dir=.
12118     for ac_exec_ext in '' $ac_executable_extensions; do
12119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12120     ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
12121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12122     break 2
12123   fi
12124 done
12125   done
12126 IFS=$as_save_IFS
12127
12128   ;;
12129 esac
12130 fi
12131 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
12132 if test -n "$ac_pt_DX_DOT"; then
12133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
12134 $as_echo "$ac_pt_DX_DOT" >&6; }
12135 else
12136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12138 fi
12139
12140   if test "x$ac_pt_DX_DOT" = x; then
12141     DX_DOT=""
12142   else
12143     case $cross_compiling:$ac_tool_warned in
12144 yes:)
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12147 ac_tool_warned=yes ;;
12148 esac
12149     DX_DOT=$ac_pt_DX_DOT
12150   fi
12151 else
12152   DX_DOT="$ac_cv_path_DX_DOT"
12153 fi
12154
12155 if test "$DX_FLAG_dot$DX_DOT" = 1; then
12156     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
12157 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
12158     DX_FLAG_dot=0
12159
12160 fi
12161
12162     :
12163 fi
12164 if test "$DX_FLAG_dot" = 1; then
12165      if :; then
12166   DX_COND_dot_TRUE=
12167   DX_COND_dot_FALSE='#'
12168 else
12169   DX_COND_dot_TRUE='#'
12170   DX_COND_dot_FALSE=
12171 fi
12172
12173     DX_ENV="$DX_ENV HAVE_DOT='YES'"
12174
12175              DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
12176
12177     :
12178 else
12179      if false; then
12180   DX_COND_dot_TRUE=
12181   DX_COND_dot_FALSE='#'
12182 else
12183   DX_COND_dot_TRUE='#'
12184   DX_COND_dot_FALSE=
12185 fi
12186
12187     DX_ENV="$DX_ENV HAVE_DOT='NO'"
12188
12189     :
12190 fi
12191
12192
12193 # Man pages generation:
12194
12195
12196
12197     # Check whether --enable-doxygen-man was given.
12198 if test "${enable_doxygen_man+set}" = set; then :
12199   enableval=$enable_doxygen_man;
12200 case "$enableval" in
12201 #(
12202 y|Y|yes|Yes|YES)
12203     DX_FLAG_man=1
12204
12205
12206 test "$DX_FLAG_doc" = "1" \
12207 || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
12208
12209 ;; #(
12210 n|N|no|No|NO)
12211     DX_FLAG_man=0
12212
12213 ;; #(
12214 *)
12215     as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
12216 ;;
12217 esac
12218
12219 else
12220
12221 DX_FLAG_man=0
12222
12223
12224 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
12225
12226
12227
12228 fi
12229
12230 if test "$DX_FLAG_man" = 1; then
12231
12232     :
12233 fi
12234 if test "$DX_FLAG_man" = 1; then
12235      if :; then
12236   DX_COND_man_TRUE=
12237   DX_COND_man_FALSE='#'
12238 else
12239   DX_COND_man_TRUE='#'
12240   DX_COND_man_FALSE=
12241 fi
12242
12243     DX_ENV="$DX_ENV GENERATE_MAN='YES'"
12244
12245     :
12246 else
12247      if false; then
12248   DX_COND_man_TRUE=
12249   DX_COND_man_FALSE='#'
12250 else
12251   DX_COND_man_TRUE='#'
12252   DX_COND_man_FALSE=
12253 fi
12254
12255     DX_ENV="$DX_ENV GENERATE_MAN='NO'"
12256
12257     :
12258 fi
12259
12260
12261 # RTF file generation:
12262
12263
12264
12265     # Check whether --enable-doxygen-rtf was given.
12266 if test "${enable_doxygen_rtf+set}" = set; then :
12267   enableval=$enable_doxygen_rtf;
12268 case "$enableval" in
12269 #(
12270 y|Y|yes|Yes|YES)
12271     DX_FLAG_rtf=1
12272
12273
12274 test "$DX_FLAG_doc" = "1" \
12275 || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
12276
12277 ;; #(
12278 n|N|no|No|NO)
12279     DX_FLAG_rtf=0
12280
12281 ;; #(
12282 *)
12283     as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
12284 ;;
12285 esac
12286
12287 else
12288
12289 DX_FLAG_rtf=0
12290
12291
12292 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
12293
12294
12295
12296 fi
12297
12298 if test "$DX_FLAG_rtf" = 1; then
12299
12300     :
12301 fi
12302 if test "$DX_FLAG_rtf" = 1; then
12303      if :; then
12304   DX_COND_rtf_TRUE=
12305   DX_COND_rtf_FALSE='#'
12306 else
12307   DX_COND_rtf_TRUE='#'
12308   DX_COND_rtf_FALSE=
12309 fi
12310
12311     DX_ENV="$DX_ENV GENERATE_RTF='YES'"
12312
12313     :
12314 else
12315      if false; then
12316   DX_COND_rtf_TRUE=
12317   DX_COND_rtf_FALSE='#'
12318 else
12319   DX_COND_rtf_TRUE='#'
12320   DX_COND_rtf_FALSE=
12321 fi
12322
12323     DX_ENV="$DX_ENV GENERATE_RTF='NO'"
12324
12325     :
12326 fi
12327
12328
12329 # XML file generation:
12330
12331
12332
12333     # Check whether --enable-doxygen-xml was given.
12334 if test "${enable_doxygen_xml+set}" = set; then :
12335   enableval=$enable_doxygen_xml;
12336 case "$enableval" in
12337 #(
12338 y|Y|yes|Yes|YES)
12339     DX_FLAG_xml=1
12340
12341
12342 test "$DX_FLAG_doc" = "1" \
12343 || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
12344
12345 ;; #(
12346 n|N|no|No|NO)
12347     DX_FLAG_xml=0
12348
12349 ;; #(
12350 *)
12351     as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
12352 ;;
12353 esac
12354
12355 else
12356
12357 DX_FLAG_xml=0
12358
12359
12360 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
12361
12362
12363
12364 fi
12365
12366 if test "$DX_FLAG_xml" = 1; then
12367
12368     :
12369 fi
12370 if test "$DX_FLAG_xml" = 1; then
12371      if :; then
12372   DX_COND_xml_TRUE=
12373   DX_COND_xml_FALSE='#'
12374 else
12375   DX_COND_xml_TRUE='#'
12376   DX_COND_xml_FALSE=
12377 fi
12378
12379     DX_ENV="$DX_ENV GENERATE_XML='YES'"
12380
12381     :
12382 else
12383      if false; then
12384   DX_COND_xml_TRUE=
12385   DX_COND_xml_FALSE='#'
12386 else
12387   DX_COND_xml_TRUE='#'
12388   DX_COND_xml_FALSE=
12389 fi
12390
12391     DX_ENV="$DX_ENV GENERATE_XML='NO'"
12392
12393     :
12394 fi
12395
12396
12397 # (Compressed) HTML help generation:
12398
12399
12400
12401     # Check whether --enable-doxygen-chm was given.
12402 if test "${enable_doxygen_chm+set}" = set; then :
12403   enableval=$enable_doxygen_chm;
12404 case "$enableval" in
12405 #(
12406 y|Y|yes|Yes|YES)
12407     DX_FLAG_chm=1
12408
12409
12410 test "$DX_FLAG_doc" = "1" \
12411 || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
12412
12413 ;; #(
12414 n|N|no|No|NO)
12415     DX_FLAG_chm=0
12416
12417 ;; #(
12418 *)
12419     as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
12420 ;;
12421 esac
12422
12423 else
12424
12425 DX_FLAG_chm=0
12426
12427
12428 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
12429
12430
12431
12432 fi
12433
12434 if test "$DX_FLAG_chm" = 1; then
12435
12436 if test -n "$ac_tool_prefix"; then
12437   # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
12438 set dummy ${ac_tool_prefix}hhc; ac_word=$2
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12440 $as_echo_n "checking for $ac_word... " >&6; }
12441 if test "${ac_cv_path_DX_HHC+set}" = set; then :
12442   $as_echo_n "(cached) " >&6
12443 else
12444   case $DX_HHC in
12445   [\\/]* | ?:[\\/]*)
12446   ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
12447   ;;
12448   *)
12449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $PATH
12451 do
12452   IFS=$as_save_IFS
12453   test -z "$as_dir" && as_dir=.
12454     for ac_exec_ext in '' $ac_executable_extensions; do
12455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12456     ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
12457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458     break 2
12459   fi
12460 done
12461   done
12462 IFS=$as_save_IFS
12463
12464   ;;
12465 esac
12466 fi
12467 DX_HHC=$ac_cv_path_DX_HHC
12468 if test -n "$DX_HHC"; then
12469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
12470 $as_echo "$DX_HHC" >&6; }
12471 else
12472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12474 fi
12475
12476
12477 fi
12478 if test -z "$ac_cv_path_DX_HHC"; then
12479   ac_pt_DX_HHC=$DX_HHC
12480   # Extract the first word of "hhc", so it can be a program name with args.
12481 set dummy hhc; ac_word=$2
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :
12485   $as_echo_n "(cached) " >&6
12486 else
12487   case $ac_pt_DX_HHC in
12488   [\\/]* | ?:[\\/]*)
12489   ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
12490   ;;
12491   *)
12492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in $PATH
12494 do
12495   IFS=$as_save_IFS
12496   test -z "$as_dir" && as_dir=.
12497     for ac_exec_ext in '' $ac_executable_extensions; do
12498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12499     ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
12500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501     break 2
12502   fi
12503 done
12504   done
12505 IFS=$as_save_IFS
12506
12507   ;;
12508 esac
12509 fi
12510 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
12511 if test -n "$ac_pt_DX_HHC"; then
12512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
12513 $as_echo "$ac_pt_DX_HHC" >&6; }
12514 else
12515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12517 fi
12518
12519   if test "x$ac_pt_DX_HHC" = x; then
12520     DX_HHC=""
12521   else
12522     case $cross_compiling:$ac_tool_warned in
12523 yes:)
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12526 ac_tool_warned=yes ;;
12527 esac
12528     DX_HHC=$ac_pt_DX_HHC
12529   fi
12530 else
12531   DX_HHC="$ac_cv_path_DX_HHC"
12532 fi
12533
12534 if test "$DX_FLAG_chm$DX_HHC" = 1; then
12535     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
12536 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
12537     DX_FLAG_chm=0
12538
12539 fi
12540
12541     :
12542 fi
12543 if test "$DX_FLAG_chm" = 1; then
12544      if :; then
12545   DX_COND_chm_TRUE=
12546   DX_COND_chm_FALSE='#'
12547 else
12548   DX_COND_chm_TRUE='#'
12549   DX_COND_chm_FALSE=
12550 fi
12551
12552     DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
12553
12554              DX_ENV="$DX_ENV GENERATE_HTML='YES'"
12555
12556              DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
12557
12558     :
12559 else
12560      if false; then
12561   DX_COND_chm_TRUE=
12562   DX_COND_chm_FALSE='#'
12563 else
12564   DX_COND_chm_TRUE='#'
12565   DX_COND_chm_FALSE=
12566 fi
12567
12568     DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
12569
12570     :
12571 fi
12572
12573
12574 # Seperate CHI file generation.
12575
12576
12577
12578     # Check whether --enable-doxygen-chi was given.
12579 if test "${enable_doxygen_chi+set}" = set; then :
12580   enableval=$enable_doxygen_chi;
12581 case "$enableval" in
12582 #(
12583 y|Y|yes|Yes|YES)
12584     DX_FLAG_chi=1
12585
12586
12587 test "$DX_FLAG_chm" = "1" \
12588 || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
12589
12590 ;; #(
12591 n|N|no|No|NO)
12592     DX_FLAG_chi=0
12593
12594 ;; #(
12595 *)
12596     as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
12597 ;;
12598 esac
12599
12600 else
12601
12602 DX_FLAG_chi=0
12603
12604
12605 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
12606
12607
12608
12609 fi
12610
12611 if test "$DX_FLAG_chi" = 1; then
12612
12613     :
12614 fi
12615 if test "$DX_FLAG_chi" = 1; then
12616      if :; then
12617   DX_COND_chi_TRUE=
12618   DX_COND_chi_FALSE='#'
12619 else
12620   DX_COND_chi_TRUE='#'
12621   DX_COND_chi_FALSE=
12622 fi
12623
12624     DX_ENV="$DX_ENV GENERATE_CHI='YES'"
12625
12626     :
12627 else
12628      if false; then
12629   DX_COND_chi_TRUE=
12630   DX_COND_chi_FALSE='#'
12631 else
12632   DX_COND_chi_TRUE='#'
12633   DX_COND_chi_FALSE=
12634 fi
12635
12636     DX_ENV="$DX_ENV GENERATE_CHI='NO'"
12637
12638     :
12639 fi
12640
12641
12642 # Plain HTML pages generation:
12643
12644
12645
12646     # Check whether --enable-doxygen-html was given.
12647 if test "${enable_doxygen_html+set}" = set; then :
12648   enableval=$enable_doxygen_html;
12649 case "$enableval" in
12650 #(
12651 y|Y|yes|Yes|YES)
12652     DX_FLAG_html=1
12653
12654
12655 test "$DX_FLAG_doc" = "1" \
12656 || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
12657
12658 test "$DX_FLAG_chm" = "0" \
12659 || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
12660
12661 ;; #(
12662 n|N|no|No|NO)
12663     DX_FLAG_html=0
12664
12665 ;; #(
12666 *)
12667     as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
12668 ;;
12669 esac
12670
12671 else
12672
12673 DX_FLAG_html=1
12674
12675
12676 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
12677
12678
12679 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
12680
12681
12682
12683 fi
12684
12685 if test "$DX_FLAG_html" = 1; then
12686
12687     :
12688 fi
12689 if test "$DX_FLAG_html" = 1; then
12690      if :; then
12691   DX_COND_html_TRUE=
12692   DX_COND_html_FALSE='#'
12693 else
12694   DX_COND_html_TRUE='#'
12695   DX_COND_html_FALSE=
12696 fi
12697
12698     DX_ENV="$DX_ENV GENERATE_HTML='YES'"
12699
12700     :
12701 else
12702      if false; then
12703   DX_COND_html_TRUE=
12704   DX_COND_html_FALSE='#'
12705 else
12706   DX_COND_html_TRUE='#'
12707   DX_COND_html_FALSE=
12708 fi
12709
12710     test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
12711
12712     :
12713 fi
12714
12715
12716 # PostScript file generation:
12717
12718
12719
12720     # Check whether --enable-doxygen-ps was given.
12721 if test "${enable_doxygen_ps+set}" = set; then :
12722   enableval=$enable_doxygen_ps;
12723 case "$enableval" in
12724 #(
12725 y|Y|yes|Yes|YES)
12726     DX_FLAG_ps=1
12727
12728
12729 test "$DX_FLAG_doc" = "1" \
12730 || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
12731
12732 ;; #(
12733 n|N|no|No|NO)
12734     DX_FLAG_ps=0
12735
12736 ;; #(
12737 *)
12738     as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
12739 ;;
12740 esac
12741
12742 else
12743
12744 DX_FLAG_ps=0
12745
12746
12747 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
12748
12749
12750
12751 fi
12752
12753 if test "$DX_FLAG_ps" = 1; then
12754
12755 if test -n "$ac_tool_prefix"; then
12756   # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
12757 set dummy ${ac_tool_prefix}latex; ac_word=$2
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12759 $as_echo_n "checking for $ac_word... " >&6; }
12760 if test "${ac_cv_path_DX_LATEX+set}" = set; then :
12761   $as_echo_n "(cached) " >&6
12762 else
12763   case $DX_LATEX in
12764   [\\/]* | ?:[\\/]*)
12765   ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
12766   ;;
12767   *)
12768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769 for as_dir in $PATH
12770 do
12771   IFS=$as_save_IFS
12772   test -z "$as_dir" && as_dir=.
12773     for ac_exec_ext in '' $ac_executable_extensions; do
12774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12775     ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12777     break 2
12778   fi
12779 done
12780   done
12781 IFS=$as_save_IFS
12782
12783   ;;
12784 esac
12785 fi
12786 DX_LATEX=$ac_cv_path_DX_LATEX
12787 if test -n "$DX_LATEX"; then
12788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
12789 $as_echo "$DX_LATEX" >&6; }
12790 else
12791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792 $as_echo "no" >&6; }
12793 fi
12794
12795
12796 fi
12797 if test -z "$ac_cv_path_DX_LATEX"; then
12798   ac_pt_DX_LATEX=$DX_LATEX
12799   # Extract the first word of "latex", so it can be a program name with args.
12800 set dummy latex; ac_word=$2
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802 $as_echo_n "checking for $ac_word... " >&6; }
12803 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :
12804   $as_echo_n "(cached) " >&6
12805 else
12806   case $ac_pt_DX_LATEX in
12807   [\\/]* | ?:[\\/]*)
12808   ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
12809   ;;
12810   *)
12811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812 for as_dir in $PATH
12813 do
12814   IFS=$as_save_IFS
12815   test -z "$as_dir" && as_dir=.
12816     for ac_exec_ext in '' $ac_executable_extensions; do
12817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12818     ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12820     break 2
12821   fi
12822 done
12823   done
12824 IFS=$as_save_IFS
12825
12826   ;;
12827 esac
12828 fi
12829 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
12830 if test -n "$ac_pt_DX_LATEX"; then
12831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
12832 $as_echo "$ac_pt_DX_LATEX" >&6; }
12833 else
12834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12836 fi
12837
12838   if test "x$ac_pt_DX_LATEX" = x; then
12839     DX_LATEX=""
12840   else
12841     case $cross_compiling:$ac_tool_warned in
12842 yes:)
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12845 ac_tool_warned=yes ;;
12846 esac
12847     DX_LATEX=$ac_pt_DX_LATEX
12848   fi
12849 else
12850   DX_LATEX="$ac_cv_path_DX_LATEX"
12851 fi
12852
12853 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
12854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
12855 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
12856     DX_FLAG_ps=0
12857
12858 fi
12859
12860
12861 if test -n "$ac_tool_prefix"; then
12862   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
12863 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865 $as_echo_n "checking for $ac_word... " >&6; }
12866 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
12867   $as_echo_n "(cached) " >&6
12868 else
12869   case $DX_MAKEINDEX in
12870   [\\/]* | ?:[\\/]*)
12871   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
12872   ;;
12873   *)
12874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12875 for as_dir in $PATH
12876 do
12877   IFS=$as_save_IFS
12878   test -z "$as_dir" && as_dir=.
12879     for ac_exec_ext in '' $ac_executable_extensions; do
12880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12881     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12883     break 2
12884   fi
12885 done
12886   done
12887 IFS=$as_save_IFS
12888
12889   ;;
12890 esac
12891 fi
12892 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
12893 if test -n "$DX_MAKEINDEX"; then
12894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
12895 $as_echo "$DX_MAKEINDEX" >&6; }
12896 else
12897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898 $as_echo "no" >&6; }
12899 fi
12900
12901
12902 fi
12903 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
12904   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
12905   # Extract the first word of "makeindex", so it can be a program name with args.
12906 set dummy makeindex; ac_word=$2
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12908 $as_echo_n "checking for $ac_word... " >&6; }
12909 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
12910   $as_echo_n "(cached) " >&6
12911 else
12912   case $ac_pt_DX_MAKEINDEX in
12913   [\\/]* | ?:[\\/]*)
12914   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
12915   ;;
12916   *)
12917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12918 for as_dir in $PATH
12919 do
12920   IFS=$as_save_IFS
12921   test -z "$as_dir" && as_dir=.
12922     for ac_exec_ext in '' $ac_executable_extensions; do
12923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12924     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12926     break 2
12927   fi
12928 done
12929   done
12930 IFS=$as_save_IFS
12931
12932   ;;
12933 esac
12934 fi
12935 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
12936 if test -n "$ac_pt_DX_MAKEINDEX"; then
12937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
12938 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
12939 else
12940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12942 fi
12943
12944   if test "x$ac_pt_DX_MAKEINDEX" = x; then
12945     DX_MAKEINDEX=""
12946   else
12947     case $cross_compiling:$ac_tool_warned in
12948 yes:)
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12951 ac_tool_warned=yes ;;
12952 esac
12953     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
12954   fi
12955 else
12956   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
12957 fi
12958
12959 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
12960     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
12961 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
12962     DX_FLAG_ps=0
12963
12964 fi
12965
12966
12967 if test -n "$ac_tool_prefix"; then
12968   # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
12969 set dummy ${ac_tool_prefix}dvips; ac_word=$2
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971 $as_echo_n "checking for $ac_word... " >&6; }
12972 if test "${ac_cv_path_DX_DVIPS+set}" = set; then :
12973   $as_echo_n "(cached) " >&6
12974 else
12975   case $DX_DVIPS in
12976   [\\/]* | ?:[\\/]*)
12977   ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
12978   ;;
12979   *)
12980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12981 for as_dir in $PATH
12982 do
12983   IFS=$as_save_IFS
12984   test -z "$as_dir" && as_dir=.
12985     for ac_exec_ext in '' $ac_executable_extensions; do
12986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12987     ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
12988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12989     break 2
12990   fi
12991 done
12992   done
12993 IFS=$as_save_IFS
12994
12995   ;;
12996 esac
12997 fi
12998 DX_DVIPS=$ac_cv_path_DX_DVIPS
12999 if test -n "$DX_DVIPS"; then
13000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
13001 $as_echo "$DX_DVIPS" >&6; }
13002 else
13003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13004 $as_echo "no" >&6; }
13005 fi
13006
13007
13008 fi
13009 if test -z "$ac_cv_path_DX_DVIPS"; then
13010   ac_pt_DX_DVIPS=$DX_DVIPS
13011   # Extract the first word of "dvips", so it can be a program name with args.
13012 set dummy dvips; ac_word=$2
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13014 $as_echo_n "checking for $ac_word... " >&6; }
13015 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :
13016   $as_echo_n "(cached) " >&6
13017 else
13018   case $ac_pt_DX_DVIPS in
13019   [\\/]* | ?:[\\/]*)
13020   ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
13021   ;;
13022   *)
13023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024 for as_dir in $PATH
13025 do
13026   IFS=$as_save_IFS
13027   test -z "$as_dir" && as_dir=.
13028     for ac_exec_ext in '' $ac_executable_extensions; do
13029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13030     ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
13031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13032     break 2
13033   fi
13034 done
13035   done
13036 IFS=$as_save_IFS
13037
13038   ;;
13039 esac
13040 fi
13041 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
13042 if test -n "$ac_pt_DX_DVIPS"; then
13043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
13044 $as_echo "$ac_pt_DX_DVIPS" >&6; }
13045 else
13046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047 $as_echo "no" >&6; }
13048 fi
13049
13050   if test "x$ac_pt_DX_DVIPS" = x; then
13051     DX_DVIPS=""
13052   else
13053     case $cross_compiling:$ac_tool_warned in
13054 yes:)
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13057 ac_tool_warned=yes ;;
13058 esac
13059     DX_DVIPS=$ac_pt_DX_DVIPS
13060   fi
13061 else
13062   DX_DVIPS="$ac_cv_path_DX_DVIPS"
13063 fi
13064
13065 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
13066     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
13067 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
13068     DX_FLAG_ps=0
13069
13070 fi
13071
13072
13073 if test -n "$ac_tool_prefix"; then
13074   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
13075 set dummy ${ac_tool_prefix}egrep; ac_word=$2
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077 $as_echo_n "checking for $ac_word... " >&6; }
13078 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
13079   $as_echo_n "(cached) " >&6
13080 else
13081   case $DX_EGREP in
13082   [\\/]* | ?:[\\/]*)
13083   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
13084   ;;
13085   *)
13086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13088 do
13089   IFS=$as_save_IFS
13090   test -z "$as_dir" && as_dir=.
13091     for ac_exec_ext in '' $ac_executable_extensions; do
13092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13093     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13095     break 2
13096   fi
13097 done
13098   done
13099 IFS=$as_save_IFS
13100
13101   ;;
13102 esac
13103 fi
13104 DX_EGREP=$ac_cv_path_DX_EGREP
13105 if test -n "$DX_EGREP"; then
13106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
13107 $as_echo "$DX_EGREP" >&6; }
13108 else
13109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13111 fi
13112
13113
13114 fi
13115 if test -z "$ac_cv_path_DX_EGREP"; then
13116   ac_pt_DX_EGREP=$DX_EGREP
13117   # Extract the first word of "egrep", so it can be a program name with args.
13118 set dummy egrep; ac_word=$2
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120 $as_echo_n "checking for $ac_word... " >&6; }
13121 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
13122   $as_echo_n "(cached) " >&6
13123 else
13124   case $ac_pt_DX_EGREP in
13125   [\\/]* | ?:[\\/]*)
13126   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
13127   ;;
13128   *)
13129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130 for as_dir in $PATH
13131 do
13132   IFS=$as_save_IFS
13133   test -z "$as_dir" && as_dir=.
13134     for ac_exec_ext in '' $ac_executable_extensions; do
13135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13136     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138     break 2
13139   fi
13140 done
13141   done
13142 IFS=$as_save_IFS
13143
13144   ;;
13145 esac
13146 fi
13147 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
13148 if test -n "$ac_pt_DX_EGREP"; then
13149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
13150 $as_echo "$ac_pt_DX_EGREP" >&6; }
13151 else
13152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153 $as_echo "no" >&6; }
13154 fi
13155
13156   if test "x$ac_pt_DX_EGREP" = x; then
13157     DX_EGREP=""
13158   else
13159     case $cross_compiling:$ac_tool_warned in
13160 yes:)
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13163 ac_tool_warned=yes ;;
13164 esac
13165     DX_EGREP=$ac_pt_DX_EGREP
13166   fi
13167 else
13168   DX_EGREP="$ac_cv_path_DX_EGREP"
13169 fi
13170
13171 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
13172     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
13173 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
13174     DX_FLAG_ps=0
13175
13176 fi
13177
13178     :
13179 fi
13180 if test "$DX_FLAG_ps" = 1; then
13181      if :; then
13182   DX_COND_ps_TRUE=
13183   DX_COND_ps_FALSE='#'
13184 else
13185   DX_COND_ps_TRUE='#'
13186   DX_COND_ps_FALSE=
13187 fi
13188
13189
13190     :
13191 else
13192      if false; then
13193   DX_COND_ps_TRUE=
13194   DX_COND_ps_FALSE='#'
13195 else
13196   DX_COND_ps_TRUE='#'
13197   DX_COND_ps_FALSE=
13198 fi
13199
13200
13201     :
13202 fi
13203
13204
13205 # PDF file generation:
13206
13207
13208
13209     # Check whether --enable-doxygen-pdf was given.
13210 if test "${enable_doxygen_pdf+set}" = set; then :
13211   enableval=$enable_doxygen_pdf;
13212 case "$enableval" in
13213 #(
13214 y|Y|yes|Yes|YES)
13215     DX_FLAG_pdf=1
13216
13217
13218 test "$DX_FLAG_doc" = "1" \
13219 || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
13220
13221 ;; #(
13222 n|N|no|No|NO)
13223     DX_FLAG_pdf=0
13224
13225 ;; #(
13226 *)
13227     as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
13228 ;;
13229 esac
13230
13231 else
13232
13233 DX_FLAG_pdf=0
13234
13235
13236 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
13237
13238
13239
13240 fi
13241
13242 if test "$DX_FLAG_pdf" = 1; then
13243
13244 if test -n "$ac_tool_prefix"; then
13245   # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
13246 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248 $as_echo_n "checking for $ac_word... " >&6; }
13249 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :
13250   $as_echo_n "(cached) " >&6
13251 else
13252   case $DX_PDFLATEX in
13253   [\\/]* | ?:[\\/]*)
13254   ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
13255   ;;
13256   *)
13257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258 for as_dir in $PATH
13259 do
13260   IFS=$as_save_IFS
13261   test -z "$as_dir" && as_dir=.
13262     for ac_exec_ext in '' $ac_executable_extensions; do
13263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13264     ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
13265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13266     break 2
13267   fi
13268 done
13269   done
13270 IFS=$as_save_IFS
13271
13272   ;;
13273 esac
13274 fi
13275 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
13276 if test -n "$DX_PDFLATEX"; then
13277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
13278 $as_echo "$DX_PDFLATEX" >&6; }
13279 else
13280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13282 fi
13283
13284
13285 fi
13286 if test -z "$ac_cv_path_DX_PDFLATEX"; then
13287   ac_pt_DX_PDFLATEX=$DX_PDFLATEX
13288   # Extract the first word of "pdflatex", so it can be a program name with args.
13289 set dummy pdflatex; ac_word=$2
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13291 $as_echo_n "checking for $ac_word... " >&6; }
13292 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :
13293   $as_echo_n "(cached) " >&6
13294 else
13295   case $ac_pt_DX_PDFLATEX in
13296   [\\/]* | ?:[\\/]*)
13297   ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
13298   ;;
13299   *)
13300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13301 for as_dir in $PATH
13302 do
13303   IFS=$as_save_IFS
13304   test -z "$as_dir" && as_dir=.
13305     for ac_exec_ext in '' $ac_executable_extensions; do
13306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13307     ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
13308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13309     break 2
13310   fi
13311 done
13312   done
13313 IFS=$as_save_IFS
13314
13315   ;;
13316 esac
13317 fi
13318 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
13319 if test -n "$ac_pt_DX_PDFLATEX"; then
13320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
13321 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
13322 else
13323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13325 fi
13326
13327   if test "x$ac_pt_DX_PDFLATEX" = x; then
13328     DX_PDFLATEX=""
13329   else
13330     case $cross_compiling:$ac_tool_warned in
13331 yes:)
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13334 ac_tool_warned=yes ;;
13335 esac
13336     DX_PDFLATEX=$ac_pt_DX_PDFLATEX
13337   fi
13338 else
13339   DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
13340 fi
13341
13342 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
13343     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
13344 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
13345     DX_FLAG_pdf=0
13346
13347 fi
13348
13349
13350 if test -n "$ac_tool_prefix"; then
13351   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
13352 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13354 $as_echo_n "checking for $ac_word... " >&6; }
13355 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
13356   $as_echo_n "(cached) " >&6
13357 else
13358   case $DX_MAKEINDEX in
13359   [\\/]* | ?:[\\/]*)
13360   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
13361   ;;
13362   *)
13363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13364 for as_dir in $PATH
13365 do
13366   IFS=$as_save_IFS
13367   test -z "$as_dir" && as_dir=.
13368     for ac_exec_ext in '' $ac_executable_extensions; do
13369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13370     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
13371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13372     break 2
13373   fi
13374 done
13375   done
13376 IFS=$as_save_IFS
13377
13378   ;;
13379 esac
13380 fi
13381 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
13382 if test -n "$DX_MAKEINDEX"; then
13383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
13384 $as_echo "$DX_MAKEINDEX" >&6; }
13385 else
13386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13388 fi
13389
13390
13391 fi
13392 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
13393   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
13394   # Extract the first word of "makeindex", so it can be a program name with args.
13395 set dummy makeindex; ac_word=$2
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397 $as_echo_n "checking for $ac_word... " >&6; }
13398 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
13399   $as_echo_n "(cached) " >&6
13400 else
13401   case $ac_pt_DX_MAKEINDEX in
13402   [\\/]* | ?:[\\/]*)
13403   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
13404   ;;
13405   *)
13406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407 for as_dir in $PATH
13408 do
13409   IFS=$as_save_IFS
13410   test -z "$as_dir" && as_dir=.
13411     for ac_exec_ext in '' $ac_executable_extensions; do
13412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13413     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
13414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13415     break 2
13416   fi
13417 done
13418   done
13419 IFS=$as_save_IFS
13420
13421   ;;
13422 esac
13423 fi
13424 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
13425 if test -n "$ac_pt_DX_MAKEINDEX"; then
13426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
13427 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
13428 else
13429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430 $as_echo "no" >&6; }
13431 fi
13432
13433   if test "x$ac_pt_DX_MAKEINDEX" = x; then
13434     DX_MAKEINDEX=""
13435   else
13436     case $cross_compiling:$ac_tool_warned in
13437 yes:)
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13440 ac_tool_warned=yes ;;
13441 esac
13442     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
13443   fi
13444 else
13445   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
13446 fi
13447
13448 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
13449     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
13450 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
13451     DX_FLAG_pdf=0
13452
13453 fi
13454
13455
13456 if test -n "$ac_tool_prefix"; then
13457   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
13458 set dummy ${ac_tool_prefix}egrep; ac_word=$2
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13460 $as_echo_n "checking for $ac_word... " >&6; }
13461 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
13462   $as_echo_n "(cached) " >&6
13463 else
13464   case $DX_EGREP in
13465   [\\/]* | ?:[\\/]*)
13466   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
13467   ;;
13468   *)
13469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13470 for as_dir in $PATH
13471 do
13472   IFS=$as_save_IFS
13473   test -z "$as_dir" && as_dir=.
13474     for ac_exec_ext in '' $ac_executable_extensions; do
13475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13476     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13478     break 2
13479   fi
13480 done
13481   done
13482 IFS=$as_save_IFS
13483
13484   ;;
13485 esac
13486 fi
13487 DX_EGREP=$ac_cv_path_DX_EGREP
13488 if test -n "$DX_EGREP"; then
13489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
13490 $as_echo "$DX_EGREP" >&6; }
13491 else
13492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493 $as_echo "no" >&6; }
13494 fi
13495
13496
13497 fi
13498 if test -z "$ac_cv_path_DX_EGREP"; then
13499   ac_pt_DX_EGREP=$DX_EGREP
13500   # Extract the first word of "egrep", so it can be a program name with args.
13501 set dummy egrep; ac_word=$2
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13503 $as_echo_n "checking for $ac_word... " >&6; }
13504 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
13505   $as_echo_n "(cached) " >&6
13506 else
13507   case $ac_pt_DX_EGREP in
13508   [\\/]* | ?:[\\/]*)
13509   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
13510   ;;
13511   *)
13512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13513 for as_dir in $PATH
13514 do
13515   IFS=$as_save_IFS
13516   test -z "$as_dir" && as_dir=.
13517     for ac_exec_ext in '' $ac_executable_extensions; do
13518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13519     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13521     break 2
13522   fi
13523 done
13524   done
13525 IFS=$as_save_IFS
13526
13527   ;;
13528 esac
13529 fi
13530 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
13531 if test -n "$ac_pt_DX_EGREP"; then
13532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
13533 $as_echo "$ac_pt_DX_EGREP" >&6; }
13534 else
13535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13536 $as_echo "no" >&6; }
13537 fi
13538
13539   if test "x$ac_pt_DX_EGREP" = x; then
13540     DX_EGREP=""
13541   else
13542     case $cross_compiling:$ac_tool_warned in
13543 yes:)
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13546 ac_tool_warned=yes ;;
13547 esac
13548     DX_EGREP=$ac_pt_DX_EGREP
13549   fi
13550 else
13551   DX_EGREP="$ac_cv_path_DX_EGREP"
13552 fi
13553
13554 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
13555     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
13556 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
13557     DX_FLAG_pdf=0
13558
13559 fi
13560
13561     :
13562 fi
13563 if test "$DX_FLAG_pdf" = 1; then
13564      if :; then
13565   DX_COND_pdf_TRUE=
13566   DX_COND_pdf_FALSE='#'
13567 else
13568   DX_COND_pdf_TRUE='#'
13569   DX_COND_pdf_FALSE=
13570 fi
13571
13572
13573     :
13574 else
13575      if false; then
13576   DX_COND_pdf_TRUE=
13577   DX_COND_pdf_FALSE='#'
13578 else
13579   DX_COND_pdf_TRUE='#'
13580   DX_COND_pdf_FALSE=
13581 fi
13582
13583
13584     :
13585 fi
13586
13587
13588 # LaTeX generation for PS and/or PDF:
13589 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
13590      if :; then
13591   DX_COND_latex_TRUE=
13592   DX_COND_latex_FALSE='#'
13593 else
13594   DX_COND_latex_TRUE='#'
13595   DX_COND_latex_FALSE=
13596 fi
13597
13598     DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
13599
13600 else
13601      if false; then
13602   DX_COND_latex_TRUE=
13603   DX_COND_latex_FALSE='#'
13604 else
13605   DX_COND_latex_TRUE='#'
13606   DX_COND_latex_FALSE=
13607 fi
13608
13609     DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
13610
13611 fi
13612
13613 # Paper size for PS and/or PDF:
13614
13615 case "$DOXYGEN_PAPER_SIZE" in
13616 #(
13617 "")
13618     DOXYGEN_PAPER_SIZE=""
13619
13620 ;; #(
13621 a4wide|a4|letter|legal|executive)
13622     DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
13623
13624 ;; #(
13625 *)
13626     as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
13627 ;;
13628 esac
13629
13630 #For debugging:
13631 #echo DX_FLAG_doc=$DX_FLAG_doc
13632 #echo DX_FLAG_dot=$DX_FLAG_dot
13633 #echo DX_FLAG_man=$DX_FLAG_man
13634 #echo DX_FLAG_html=$DX_FLAG_html
13635 #echo DX_FLAG_chm=$DX_FLAG_chm
13636 #echo DX_FLAG_chi=$DX_FLAG_chi
13637 #echo DX_FLAG_rtf=$DX_FLAG_rtf
13638 #echo DX_FLAG_xml=$DX_FLAG_xml
13639 #echo DX_FLAG_pdf=$DX_FLAG_pdf
13640 #echo DX_FLAG_ps=$DX_FLAG_ps
13641 #echo DX_ENV=$DX_ENV
13642
13643 DX_INCLUDE=
13644
13645 # Check whether --enable-debug was given.
13646 if test "${enable_debug+set}" = set; then :
13647   enableval=$enable_debug; enable_debug=$enableval
13648 else
13649   enable_debug=no
13650 fi
13651
13652
13653 if test "$enable_debug" = "yes" ; then
13654     GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
13655     GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
13656 else
13657     GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
13658     GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
13659 fi
13660
13661 ac_config_headers="$ac_config_headers config.h shibsp/config_pub.h"
13662
13663 ac_config_files="$ac_config_files shibboleth.spec"
13664
13665
13666 ac_ext=c
13667 ac_cpp='$CPP $CPPFLAGS'
13668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13671 if test -n "$ac_tool_prefix"; then
13672   for ac_prog in gcc gcc3 cc
13673   do
13674     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13677 $as_echo_n "checking for $ac_word... " >&6; }
13678 if test "${ac_cv_prog_CC+set}" = set; then :
13679   $as_echo_n "(cached) " >&6
13680 else
13681   if test -n "$CC"; then
13682   ac_cv_prog_CC="$CC" # Let the user override the test.
13683 else
13684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13685 for as_dir in $PATH
13686 do
13687   IFS=$as_save_IFS
13688   test -z "$as_dir" && as_dir=.
13689     for ac_exec_ext in '' $ac_executable_extensions; do
13690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13691     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13693     break 2
13694   fi
13695 done
13696   done
13697 IFS=$as_save_IFS
13698
13699 fi
13700 fi
13701 CC=$ac_cv_prog_CC
13702 if test -n "$CC"; then
13703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13704 $as_echo "$CC" >&6; }
13705 else
13706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13707 $as_echo "no" >&6; }
13708 fi
13709
13710
13711     test -n "$CC" && break
13712   done
13713 fi
13714 if test -z "$CC"; then
13715   ac_ct_CC=$CC
13716   for ac_prog in gcc gcc3 cc
13717 do
13718   # Extract the first word of "$ac_prog", so it can be a program name with args.
13719 set dummy $ac_prog; ac_word=$2
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13721 $as_echo_n "checking for $ac_word... " >&6; }
13722 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
13723   $as_echo_n "(cached) " >&6
13724 else
13725   if test -n "$ac_ct_CC"; then
13726   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13727 else
13728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13729 for as_dir in $PATH
13730 do
13731   IFS=$as_save_IFS
13732   test -z "$as_dir" && as_dir=.
13733     for ac_exec_ext in '' $ac_executable_extensions; do
13734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13735     ac_cv_prog_ac_ct_CC="$ac_prog"
13736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13737     break 2
13738   fi
13739 done
13740   done
13741 IFS=$as_save_IFS
13742
13743 fi
13744 fi
13745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13746 if test -n "$ac_ct_CC"; then
13747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13748 $as_echo "$ac_ct_CC" >&6; }
13749 else
13750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13751 $as_echo "no" >&6; }
13752 fi
13753
13754
13755   test -n "$ac_ct_CC" && break
13756 done
13757
13758   if test "x$ac_ct_CC" = x; then
13759     CC=""
13760   else
13761     case $cross_compiling:$ac_tool_warned in
13762 yes:)
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13765 ac_tool_warned=yes ;;
13766 esac
13767     CC=$ac_ct_CC
13768   fi
13769 fi
13770
13771
13772 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13774 as_fn_error $? "no acceptable C compiler found in \$PATH
13775 See \`config.log' for more details" "$LINENO" 5 ; }
13776
13777 # Provide some information about the compiler.
13778 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13779 set X $ac_compile
13780 ac_compiler=$2
13781 for ac_option in --version -v -V -qversion; do
13782   { { ac_try="$ac_compiler $ac_option >&5"
13783 case "(($ac_try" in
13784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785   *) ac_try_echo=$ac_try;;
13786 esac
13787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13788 $as_echo "$ac_try_echo"; } >&5
13789   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13790   ac_status=$?
13791   if test -s conftest.err; then
13792     sed '10a\
13793 ... rest of stderr output deleted ...
13794          10q' conftest.err >conftest.er1
13795     cat conftest.er1 >&5
13796   fi
13797   rm -f conftest.er1 conftest.err
13798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13799   test $ac_status = 0; }
13800 done
13801
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13803 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13804 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
13805   $as_echo_n "(cached) " >&6
13806 else
13807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h.  */
13809
13810 int
13811 main ()
13812 {
13813 #ifndef __GNUC__
13814        choke me
13815 #endif
13816
13817   ;
13818   return 0;
13819 }
13820 _ACEOF
13821 if ac_fn_c_try_compile "$LINENO"; then :
13822   ac_compiler_gnu=yes
13823 else
13824   ac_compiler_gnu=no
13825 fi
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13828
13829 fi
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13831 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13832 if test $ac_compiler_gnu = yes; then
13833   GCC=yes
13834 else
13835   GCC=
13836 fi
13837 ac_test_CFLAGS=${CFLAGS+set}
13838 ac_save_CFLAGS=$CFLAGS
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13840 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13841 if test "${ac_cv_prog_cc_g+set}" = set; then :
13842   $as_echo_n "(cached) " >&6
13843 else
13844   ac_save_c_werror_flag=$ac_c_werror_flag
13845    ac_c_werror_flag=yes
13846    ac_cv_prog_cc_g=no
13847    CFLAGS="-g"
13848    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h.  */
13850
13851 int
13852 main ()
13853 {
13854
13855   ;
13856   return 0;
13857 }
13858 _ACEOF
13859 if ac_fn_c_try_compile "$LINENO"; then :
13860   ac_cv_prog_cc_g=yes
13861 else
13862   CFLAGS=""
13863       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h.  */
13865
13866 int
13867 main ()
13868 {
13869
13870   ;
13871   return 0;
13872 }
13873 _ACEOF
13874 if ac_fn_c_try_compile "$LINENO"; then :
13875
13876 else
13877   ac_c_werror_flag=$ac_save_c_werror_flag
13878          CFLAGS="-g"
13879          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h.  */
13881
13882 int
13883 main ()
13884 {
13885
13886   ;
13887   return 0;
13888 }
13889 _ACEOF
13890 if ac_fn_c_try_compile "$LINENO"; then :
13891   ac_cv_prog_cc_g=yes
13892 fi
13893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13894 fi
13895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13896 fi
13897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13898    ac_c_werror_flag=$ac_save_c_werror_flag
13899 fi
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13901 $as_echo "$ac_cv_prog_cc_g" >&6; }
13902 if test "$ac_test_CFLAGS" = set; then
13903   CFLAGS=$ac_save_CFLAGS
13904 elif test $ac_cv_prog_cc_g = yes; then
13905   if test "$GCC" = yes; then
13906     CFLAGS="-g -O2"
13907   else
13908     CFLAGS="-g"
13909   fi
13910 else
13911   if test "$GCC" = yes; then
13912     CFLAGS="-O2"
13913   else
13914     CFLAGS=
13915   fi
13916 fi
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13918 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13919 if test "${ac_cv_prog_cc_c89+set}" = set; then :
13920   $as_echo_n "(cached) " >&6
13921 else
13922   ac_cv_prog_cc_c89=no
13923 ac_save_CC=$CC
13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925 /* end confdefs.h.  */
13926 #include <stdarg.h>
13927 #include <stdio.h>
13928 #include <sys/types.h>
13929 #include <sys/stat.h>
13930 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13931 struct buf { int x; };
13932 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13933 static char *e (p, i)
13934      char **p;
13935      int i;
13936 {
13937   return p[i];
13938 }
13939 static char *f (char * (*g) (char **, int), char **p, ...)
13940 {
13941   char *s;
13942   va_list v;
13943   va_start (v,p);
13944   s = g (p, va_arg (v,int));
13945   va_end (v);
13946   return s;
13947 }
13948
13949 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13950    function prototypes and stuff, but not '\xHH' hex character constants.
13951    These don't provoke an error unfortunately, instead are silently treated
13952    as 'x'.  The following induces an error, until -std is added to get
13953    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13954    array size at least.  It's necessary to write '\x00'==0 to get something
13955    that's true only with -std.  */
13956 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13957
13958 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13959    inside strings and character constants.  */
13960 #define FOO(x) 'x'
13961 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13962
13963 int test (int i, double x);
13964 struct s1 {int (*f) (int a);};
13965 struct s2 {int (*f) (double a);};
13966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13967 int argc;
13968 char **argv;
13969 int
13970 main ()
13971 {
13972 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13973   ;
13974   return 0;
13975 }
13976 _ACEOF
13977 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13978         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13979 do
13980   CC="$ac_save_CC $ac_arg"
13981   if ac_fn_c_try_compile "$LINENO"; then :
13982   ac_cv_prog_cc_c89=$ac_arg
13983 fi
13984 rm -f core conftest.err conftest.$ac_objext
13985   test "x$ac_cv_prog_cc_c89" != "xno" && break
13986 done
13987 rm -f conftest.$ac_ext
13988 CC=$ac_save_CC
13989
13990 fi
13991 # AC_CACHE_VAL
13992 case "x$ac_cv_prog_cc_c89" in
13993   x)
13994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13995 $as_echo "none needed" >&6; } ;;
13996   xno)
13997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13998 $as_echo "unsupported" >&6; } ;;
13999   *)
14000     CC="$CC $ac_cv_prog_cc_c89"
14001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14002 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14003 esac
14004 if test "x$ac_cv_prog_cc_c89" != xno; then :
14005
14006 fi
14007
14008 ac_ext=c
14009 ac_cpp='$CPP $CPPFLAGS'
14010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14013
14014 depcc="$CC"   am_compiler_list=
14015
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14017 $as_echo_n "checking dependency style of $depcc... " >&6; }
14018 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
14019   $as_echo_n "(cached) " >&6
14020 else
14021   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14022   # We make a subdir and do the tests there.  Otherwise we can end up
14023   # making bogus files that we don't know about and never remove.  For
14024   # instance it was reported that on HP-UX the gcc test will end up
14025   # making a dummy file named `D' -- because `-MD' means `put the output
14026   # in D'.
14027   mkdir conftest.dir
14028   # Copy depcomp to subdir because otherwise we won't find it if we're
14029   # using a relative directory.
14030   cp "$am_depcomp" conftest.dir
14031   cd conftest.dir
14032   # We will build objects and dependencies in a subdirectory because
14033   # it helps to detect inapplicable dependency modes.  For instance
14034   # both Tru64's cc and ICC support -MD to output dependencies as a
14035   # side effect of compilation, but ICC will put the dependencies in
14036   # the current directory while Tru64 will put them in the object
14037   # directory.
14038   mkdir sub
14039
14040   am_cv_CC_dependencies_compiler_type=none
14041   if test "$am_compiler_list" = ""; then
14042      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14043   fi
14044   am__universal=false
14045   case " $depcc " in #(
14046      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14047      esac
14048
14049   for depmode in $am_compiler_list; do
14050     # Setup a source with many dependencies, because some compilers
14051     # like to wrap large dependency lists on column 80 (with \), and
14052     # we should not choose a depcomp mode which is confused by this.
14053     #
14054     # We need to recreate these files for each test, as the compiler may
14055     # overwrite some of them when testing with obscure command lines.
14056     # This happens at least with the AIX C compiler.
14057     : > sub/conftest.c
14058     for i in 1 2 3 4 5 6; do
14059       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14060       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14061       # Solaris 8's {/usr,}/bin/sh.
14062       touch sub/conftst$i.h
14063     done
14064     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14065
14066     # We check with `-c' and `-o' for the sake of the "dashmstdout"
14067     # mode.  It turns out that the SunPro C++ compiler does not properly
14068     # handle `-M -o', and we need to detect this.  Also, some Intel
14069     # versions had trouble with output in subdirs
14070     am__obj=sub/conftest.${OBJEXT-o}
14071     am__minus_obj="-o $am__obj"
14072     case $depmode in
14073     gcc)
14074       # This depmode causes a compiler race in universal mode.
14075       test "$am__universal" = false || continue
14076       ;;
14077     nosideeffect)
14078       # after this tag, mechanisms are not by side-effect, so they'll
14079       # only be used when explicitly requested
14080       if test "x$enable_dependency_tracking" = xyes; then
14081         continue
14082       else
14083         break
14084       fi
14085       ;;
14086     msvisualcpp | msvcmsys)
14087       # This compiler won't grok `-c -o', but also, the minuso test has
14088       # not run yet.  These depmodes are late enough in the game, and
14089       # so weak that their functioning should not be impacted.
14090       am__obj=conftest.${OBJEXT-o}
14091       am__minus_obj=
14092       ;;
14093     none) break ;;
14094     esac
14095     if depmode=$depmode \
14096        source=sub/conftest.c object=$am__obj \
14097        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14098        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14099          >/dev/null 2>conftest.err &&
14100        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14101        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14102        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14103        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14104       # icc doesn't choke on unknown options, it will just issue warnings
14105       # or remarks (even with -Werror).  So we grep stderr for any message
14106       # that says an option was ignored or not supported.
14107       # When given -MP, icc 7.0 and 7.1 complain thusly:
14108       #   icc: Command line warning: ignoring option '-M'; no argument required
14109       # The diagnosis changed in icc 8.0:
14110       #   icc: Command line remark: option '-MP' not supported
14111       if (grep 'ignoring option' conftest.err ||
14112           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14113         am_cv_CC_dependencies_compiler_type=$depmode
14114         break
14115       fi
14116     fi
14117   done
14118
14119   cd ..
14120   rm -rf conftest.dir
14121 else
14122   am_cv_CC_dependencies_compiler_type=none
14123 fi
14124
14125 fi
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14127 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14128 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14129
14130  if
14131   test "x$enable_dependency_tracking" != xno \
14132   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14133   am__fastdepCC_TRUE=
14134   am__fastdepCC_FALSE='#'
14135 else
14136   am__fastdepCC_TRUE='#'
14137   am__fastdepCC_FALSE=
14138 fi
14139
14140
14141 ac_ext=cpp
14142 ac_cpp='$CXXCPP $CPPFLAGS'
14143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14146 if test -z "$CXX"; then
14147   if test -n "$CCC"; then
14148     CXX=$CCC
14149   else
14150     if test -n "$ac_tool_prefix"; then
14151   for ac_prog in g++ g++3 c++ CC
14152   do
14153     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14156 $as_echo_n "checking for $ac_word... " >&6; }
14157 if test "${ac_cv_prog_CXX+set}" = set; then :
14158   $as_echo_n "(cached) " >&6
14159 else
14160   if test -n "$CXX"; then
14161   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14162 else
14163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14164 for as_dir in $PATH
14165 do
14166   IFS=$as_save_IFS
14167   test -z "$as_dir" && as_dir=.
14168     for ac_exec_ext in '' $ac_executable_extensions; do
14169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14170     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14172     break 2
14173   fi
14174 done
14175   done
14176 IFS=$as_save_IFS
14177
14178 fi
14179 fi
14180 CXX=$ac_cv_prog_CXX
14181 if test -n "$CXX"; then
14182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14183 $as_echo "$CXX" >&6; }
14184 else
14185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14186 $as_echo "no" >&6; }
14187 fi
14188
14189
14190     test -n "$CXX" && break
14191   done
14192 fi
14193 if test -z "$CXX"; then
14194   ac_ct_CXX=$CXX
14195   for ac_prog in g++ g++3 c++ CC
14196 do
14197   # Extract the first word of "$ac_prog", so it can be a program name with args.
14198 set dummy $ac_prog; ac_word=$2
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14200 $as_echo_n "checking for $ac_word... " >&6; }
14201 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
14202   $as_echo_n "(cached) " >&6
14203 else
14204   if test -n "$ac_ct_CXX"; then
14205   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14206 else
14207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208 for as_dir in $PATH
14209 do
14210   IFS=$as_save_IFS
14211   test -z "$as_dir" && as_dir=.
14212     for ac_exec_ext in '' $ac_executable_extensions; do
14213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14214     ac_cv_prog_ac_ct_CXX="$ac_prog"
14215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14216     break 2
14217   fi
14218 done
14219   done
14220 IFS=$as_save_IFS
14221
14222 fi
14223 fi
14224 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14225 if test -n "$ac_ct_CXX"; then
14226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14227 $as_echo "$ac_ct_CXX" >&6; }
14228 else
14229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14230 $as_echo "no" >&6; }
14231 fi
14232
14233
14234   test -n "$ac_ct_CXX" && break
14235 done
14236
14237   if test "x$ac_ct_CXX" = x; then
14238     CXX="g++"
14239   else
14240     case $cross_compiling:$ac_tool_warned in
14241 yes:)
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14244 ac_tool_warned=yes ;;
14245 esac
14246     CXX=$ac_ct_CXX
14247   fi
14248 fi
14249
14250   fi
14251 fi
14252 # Provide some information about the compiler.
14253 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14254 set X $ac_compile
14255 ac_compiler=$2
14256 for ac_option in --version -v -V -qversion; do
14257   { { ac_try="$ac_compiler $ac_option >&5"
14258 case "(($ac_try" in
14259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14260   *) ac_try_echo=$ac_try;;
14261 esac
14262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14263 $as_echo "$ac_try_echo"; } >&5
14264   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14265   ac_status=$?
14266   if test -s conftest.err; then
14267     sed '10a\
14268 ... rest of stderr output deleted ...
14269          10q' conftest.err >conftest.er1
14270     cat conftest.er1 >&5
14271   fi
14272   rm -f conftest.er1 conftest.err
14273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14274   test $ac_status = 0; }
14275 done
14276
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14278 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14279 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
14280   $as_echo_n "(cached) " >&6
14281 else
14282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h.  */
14284
14285 int
14286 main ()
14287 {
14288 #ifndef __GNUC__
14289        choke me
14290 #endif
14291
14292   ;
14293   return 0;
14294 }
14295 _ACEOF
14296 if ac_fn_cxx_try_compile "$LINENO"; then :
14297   ac_compiler_gnu=yes
14298 else
14299   ac_compiler_gnu=no
14300 fi
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14303
14304 fi
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14306 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14307 if test $ac_compiler_gnu = yes; then
14308   GXX=yes
14309 else
14310   GXX=
14311 fi
14312 ac_test_CXXFLAGS=${CXXFLAGS+set}
14313 ac_save_CXXFLAGS=$CXXFLAGS
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14315 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14316 if test "${ac_cv_prog_cxx_g+set}" = set; then :
14317   $as_echo_n "(cached) " >&6
14318 else
14319   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14320    ac_cxx_werror_flag=yes
14321    ac_cv_prog_cxx_g=no
14322    CXXFLAGS="-g"
14323    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h.  */
14325
14326 int
14327 main ()
14328 {
14329
14330   ;
14331   return 0;
14332 }
14333 _ACEOF
14334 if ac_fn_cxx_try_compile "$LINENO"; then :
14335   ac_cv_prog_cxx_g=yes
14336 else
14337   CXXFLAGS=""
14338       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339 /* end confdefs.h.  */
14340
14341 int
14342 main ()
14343 {
14344
14345   ;
14346   return 0;
14347 }
14348 _ACEOF
14349 if ac_fn_cxx_try_compile "$LINENO"; then :
14350
14351 else
14352   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14353          CXXFLAGS="-g"
14354          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h.  */
14356
14357 int
14358 main ()
14359 {
14360
14361   ;
14362   return 0;
14363 }
14364 _ACEOF
14365 if ac_fn_cxx_try_compile "$LINENO"; then :
14366   ac_cv_prog_cxx_g=yes
14367 fi
14368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14369 fi
14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14371 fi
14372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14374 fi
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14376 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14377 if test "$ac_test_CXXFLAGS" = set; then
14378   CXXFLAGS=$ac_save_CXXFLAGS
14379 elif test $ac_cv_prog_cxx_g = yes; then
14380   if test "$GXX" = yes; then
14381     CXXFLAGS="-g -O2"
14382   else
14383     CXXFLAGS="-g"
14384   fi
14385 else
14386   if test "$GXX" = yes; then
14387     CXXFLAGS="-O2"
14388   else
14389     CXXFLAGS=
14390   fi
14391 fi
14392 ac_ext=c
14393 ac_cpp='$CPP $CPPFLAGS'
14394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14397
14398 depcc="$CXX"  am_compiler_list=
14399
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14401 $as_echo_n "checking dependency style of $depcc... " >&6; }
14402 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
14403   $as_echo_n "(cached) " >&6
14404 else
14405   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14406   # We make a subdir and do the tests there.  Otherwise we can end up
14407   # making bogus files that we don't know about and never remove.  For
14408   # instance it was reported that on HP-UX the gcc test will end up
14409   # making a dummy file named `D' -- because `-MD' means `put the output
14410   # in D'.
14411   mkdir conftest.dir
14412   # Copy depcomp to subdir because otherwise we won't find it if we're
14413   # using a relative directory.
14414   cp "$am_depcomp" conftest.dir
14415   cd conftest.dir
14416   # We will build objects and dependencies in a subdirectory because
14417   # it helps to detect inapplicable dependency modes.  For instance
14418   # both Tru64's cc and ICC support -MD to output dependencies as a
14419   # side effect of compilation, but ICC will put the dependencies in
14420   # the current directory while Tru64 will put them in the object
14421   # directory.
14422   mkdir sub
14423
14424   am_cv_CXX_dependencies_compiler_type=none
14425   if test "$am_compiler_list" = ""; then
14426      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14427   fi
14428   am__universal=false
14429   case " $depcc " in #(
14430      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14431      esac
14432
14433   for depmode in $am_compiler_list; do
14434     # Setup a source with many dependencies, because some compilers
14435     # like to wrap large dependency lists on column 80 (with \), and
14436     # we should not choose a depcomp mode which is confused by this.
14437     #
14438     # We need to recreate these files for each test, as the compiler may
14439     # overwrite some of them when testing with obscure command lines.
14440     # This happens at least with the AIX C compiler.
14441     : > sub/conftest.c
14442     for i in 1 2 3 4 5 6; do
14443       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14444       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14445       # Solaris 8's {/usr,}/bin/sh.
14446       touch sub/conftst$i.h
14447     done
14448     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14449
14450     # We check with `-c' and `-o' for the sake of the "dashmstdout"
14451     # mode.  It turns out that the SunPro C++ compiler does not properly
14452     # handle `-M -o', and we need to detect this.  Also, some Intel
14453     # versions had trouble with output in subdirs
14454     am__obj=sub/conftest.${OBJEXT-o}
14455     am__minus_obj="-o $am__obj"
14456     case $depmode in
14457     gcc)
14458       # This depmode causes a compiler race in universal mode.
14459       test "$am__universal" = false || continue
14460       ;;
14461     nosideeffect)
14462       # after this tag, mechanisms are not by side-effect, so they'll
14463       # only be used when explicitly requested
14464       if test "x$enable_dependency_tracking" = xyes; then
14465         continue
14466       else
14467         break
14468       fi
14469       ;;
14470     msvisualcpp | msvcmsys)
14471       # This compiler won't grok `-c -o', but also, the minuso test has
14472       # not run yet.  These depmodes are late enough in the game, and
14473       # so weak that their functioning should not be impacted.
14474       am__obj=conftest.${OBJEXT-o}
14475       am__minus_obj=
14476       ;;
14477     none) break ;;
14478     esac
14479     if depmode=$depmode \
14480        source=sub/conftest.c object=$am__obj \
14481        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14482        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14483          >/dev/null 2>conftest.err &&
14484        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14485        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14486        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14487        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14488       # icc doesn't choke on unknown options, it will just issue warnings
14489       # or remarks (even with -Werror).  So we grep stderr for any message
14490       # that says an option was ignored or not supported.
14491       # When given -MP, icc 7.0 and 7.1 complain thusly:
14492       #   icc: Command line warning: ignoring option '-M'; no argument required
14493       # The diagnosis changed in icc 8.0:
14494       #   icc: Command line remark: option '-MP' not supported
14495       if (grep 'ignoring option' conftest.err ||
14496           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14497         am_cv_CXX_dependencies_compiler_type=$depmode
14498         break
14499       fi
14500     fi
14501   done
14502
14503   cd ..
14504   rm -rf conftest.dir
14505 else
14506   am_cv_CXX_dependencies_compiler_type=none
14507 fi
14508
14509 fi
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14511 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14512 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14513
14514  if
14515   test "x$enable_dependency_tracking" != xno \
14516   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14517   am__fastdepCXX_TRUE=
14518   am__fastdepCXX_FALSE='#'
14519 else
14520   am__fastdepCXX_TRUE='#'
14521   am__fastdepCXX_FALSE=
14522 fi
14523
14524
14525
14526
14527 func_stripname_cnf ()
14528 {
14529   case ${2} in
14530   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14531   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14532   esac
14533 } # func_stripname_cnf
14534
14535       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14536     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14537     (test "X$CXX" != "Xg++"))) ; then
14538   ac_ext=cpp
14539 ac_cpp='$CXXCPP $CPPFLAGS'
14540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14544 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14545 if test -z "$CXXCPP"; then
14546   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
14547   $as_echo_n "(cached) " >&6
14548 else
14549       # Double quotes because CXXCPP needs to be expanded
14550     for CXXCPP in "$CXX -E" "/lib/cpp"
14551     do
14552       ac_preproc_ok=false
14553 for ac_cxx_preproc_warn_flag in '' yes
14554 do
14555   # Use a header file that comes with gcc, so configuring glibc
14556   # with a fresh cross-compiler works.
14557   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14558   # <limits.h> exists even on freestanding compilers.
14559   # On the NeXT, cc -E runs the code through the compiler's parser,
14560   # not just through cpp. "Syntax error" is here to catch this case.
14561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562 /* end confdefs.h.  */
14563 #ifdef __STDC__
14564 # include <limits.h>
14565 #else
14566 # include <assert.h>
14567 #endif
14568                      Syntax error
14569 _ACEOF
14570 if ac_fn_cxx_try_cpp "$LINENO"; then :
14571
14572 else
14573   # Broken: fails on valid input.
14574 continue
14575 fi
14576 rm -f conftest.err conftest.i conftest.$ac_ext
14577
14578   # OK, works on sane cases.  Now check whether nonexistent headers
14579   # can be detected and how.
14580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h.  */
14582 #include <ac_nonexistent.h>
14583 _ACEOF
14584 if ac_fn_cxx_try_cpp "$LINENO"; then :
14585   # Broken: success on invalid input.
14586 continue
14587 else
14588   # Passes both tests.
14589 ac_preproc_ok=:
14590 break
14591 fi
14592 rm -f conftest.err conftest.i conftest.$ac_ext
14593
14594 done
14595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14596 rm -f conftest.i conftest.err conftest.$ac_ext
14597 if $ac_preproc_ok; then :
14598   break
14599 fi
14600
14601     done
14602     ac_cv_prog_CXXCPP=$CXXCPP
14603
14604 fi
14605   CXXCPP=$ac_cv_prog_CXXCPP
14606 else
14607   ac_cv_prog_CXXCPP=$CXXCPP
14608 fi
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14610 $as_echo "$CXXCPP" >&6; }
14611 ac_preproc_ok=false
14612 for ac_cxx_preproc_warn_flag in '' yes
14613 do
14614   # Use a header file that comes with gcc, so configuring glibc
14615   # with a fresh cross-compiler works.
14616   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14617   # <limits.h> exists even on freestanding compilers.
14618   # On the NeXT, cc -E runs the code through the compiler's parser,
14619   # not just through cpp. "Syntax error" is here to catch this case.
14620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h.  */
14622 #ifdef __STDC__
14623 # include <limits.h>
14624 #else
14625 # include <assert.h>
14626 #endif
14627                      Syntax error
14628 _ACEOF
14629 if ac_fn_cxx_try_cpp "$LINENO"; then :
14630
14631 else
14632   # Broken: fails on valid input.
14633 continue
14634 fi
14635 rm -f conftest.err conftest.i conftest.$ac_ext
14636
14637   # OK, works on sane cases.  Now check whether nonexistent headers
14638   # can be detected and how.
14639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640 /* end confdefs.h.  */
14641 #include <ac_nonexistent.h>
14642 _ACEOF
14643 if ac_fn_cxx_try_cpp "$LINENO"; then :
14644   # Broken: success on invalid input.
14645 continue
14646 else
14647   # Passes both tests.
14648 ac_preproc_ok=:
14649 break
14650 fi
14651 rm -f conftest.err conftest.i conftest.$ac_ext
14652
14653 done
14654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14655 rm -f conftest.i conftest.err conftest.$ac_ext
14656 if $ac_preproc_ok; then :
14657
14658 else
14659   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14661 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14662 See \`config.log' for more details" "$LINENO" 5 ; }
14663 fi
14664
14665 ac_ext=c
14666 ac_cpp='$CPP $CPPFLAGS'
14667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14670
14671 else
14672   _lt_caught_CXX_error=yes
14673 fi
14674
14675 ac_ext=cpp
14676 ac_cpp='$CXXCPP $CPPFLAGS'
14677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14680
14681 archive_cmds_need_lc_CXX=no
14682 allow_undefined_flag_CXX=
14683 always_export_symbols_CXX=no
14684 archive_expsym_cmds_CXX=
14685 compiler_needs_object_CXX=no
14686 export_dynamic_flag_spec_CXX=
14687 hardcode_direct_CXX=no
14688 hardcode_direct_absolute_CXX=no
14689 hardcode_libdir_flag_spec_CXX=
14690 hardcode_libdir_flag_spec_ld_CXX=
14691 hardcode_libdir_separator_CXX=
14692 hardcode_minus_L_CXX=no
14693 hardcode_shlibpath_var_CXX=unsupported
14694 hardcode_automatic_CXX=no
14695 inherit_rpath_CXX=no
14696 module_cmds_CXX=
14697 module_expsym_cmds_CXX=
14698 link_all_deplibs_CXX=unknown
14699 old_archive_cmds_CXX=$old_archive_cmds
14700 reload_flag_CXX=$reload_flag
14701 reload_cmds_CXX=$reload_cmds
14702 no_undefined_flag_CXX=
14703 whole_archive_flag_spec_CXX=
14704 enable_shared_with_static_runtimes_CXX=no
14705
14706 # Source file extension for C++ test sources.
14707 ac_ext=cpp
14708
14709 # Object file extension for compiled C++ test sources.
14710 objext=o
14711 objext_CXX=$objext
14712
14713 # No sense in running all these tests if we already determined that
14714 # the CXX compiler isn't working.  Some variables (like enable_shared)
14715 # are currently assumed to apply to all compilers on this platform,
14716 # and will be corrupted by setting them based on a non-working compiler.
14717 if test "$_lt_caught_CXX_error" != yes; then
14718   # Code to be used in simple compile tests
14719   lt_simple_compile_test_code="int some_variable = 0;"
14720
14721   # Code to be used in simple link tests
14722   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14723
14724   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14725
14726
14727
14728
14729
14730
14731 # If no C compiler was specified, use CC.
14732 LTCC=${LTCC-"$CC"}
14733
14734 # If no C compiler flags were specified, use CFLAGS.
14735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14736
14737 # Allow CC to be a program name with arguments.
14738 compiler=$CC
14739
14740
14741   # save warnings/boilerplate of simple test code
14742   ac_outfile=conftest.$ac_objext
14743 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14744 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14745 _lt_compiler_boilerplate=`cat conftest.err`
14746 $RM conftest*
14747
14748   ac_outfile=conftest.$ac_objext
14749 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14750 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14751 _lt_linker_boilerplate=`cat conftest.err`
14752 $RM -r conftest*
14753
14754
14755   # Allow CC to be a program name with arguments.
14756   lt_save_CC=$CC
14757   lt_save_CFLAGS=$CFLAGS
14758   lt_save_LD=$LD
14759   lt_save_GCC=$GCC
14760   GCC=$GXX
14761   lt_save_with_gnu_ld=$with_gnu_ld
14762   lt_save_path_LD=$lt_cv_path_LD
14763   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14764     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14765   else
14766     $as_unset lt_cv_prog_gnu_ld
14767   fi
14768   if test -n "${lt_cv_path_LDCXX+set}"; then
14769     lt_cv_path_LD=$lt_cv_path_LDCXX
14770   else
14771     $as_unset lt_cv_path_LD
14772   fi
14773   test -z "${LDCXX+set}" || LD=$LDCXX
14774   CC=${CXX-"c++"}
14775   CFLAGS=$CXXFLAGS
14776   compiler=$CC
14777   compiler_CXX=$CC
14778   for cc_temp in $compiler""; do
14779   case $cc_temp in
14780     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14781     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14782     \-*) ;;
14783     *) break;;
14784   esac
14785 done
14786 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14787
14788
14789   if test -n "$compiler"; then
14790     # We don't want -fno-exception when compiling C++ code, so set the
14791     # no_builtin_flag separately
14792     if test "$GXX" = yes; then
14793       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14794     else
14795       lt_prog_compiler_no_builtin_flag_CXX=
14796     fi
14797
14798     if test "$GXX" = yes; then
14799       # Set up default GNU C++ configuration
14800
14801
14802
14803 # Check whether --with-gnu-ld was given.
14804 if test "${with_gnu_ld+set}" = set; then :
14805   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14806 else
14807   with_gnu_ld=no
14808 fi
14809
14810 ac_prog=ld
14811 if test "$GCC" = yes; then
14812   # Check if gcc -print-prog-name=ld gives a path.
14813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14814 $as_echo_n "checking for ld used by $CC... " >&6; }
14815   case $host in
14816   *-*-mingw*)
14817     # gcc leaves a trailing carriage return which upsets mingw
14818     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14819   *)
14820     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14821   esac
14822   case $ac_prog in
14823     # Accept absolute paths.
14824     [\\/]* | ?:[\\/]*)
14825       re_direlt='/[^/][^/]*/\.\./'
14826       # Canonicalize the pathname of ld
14827       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14828       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14829         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14830       done
14831       test -z "$LD" && LD="$ac_prog"
14832       ;;
14833   "")
14834     # If it fails, then pretend we aren't using GCC.
14835     ac_prog=ld
14836     ;;
14837   *)
14838     # If it is relative, then search for the first ld in PATH.
14839     with_gnu_ld=unknown
14840     ;;
14841   esac
14842 elif test "$with_gnu_ld" = yes; then
14843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14844 $as_echo_n "checking for GNU ld... " >&6; }
14845 else
14846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14847 $as_echo_n "checking for non-GNU ld... " >&6; }
14848 fi
14849 if test "${lt_cv_path_LD+set}" = set; then :
14850   $as_echo_n "(cached) " >&6
14851 else
14852   if test -z "$LD"; then
14853   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14854   for ac_dir in $PATH; do
14855     IFS="$lt_save_ifs"
14856     test -z "$ac_dir" && ac_dir=.
14857     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14858       lt_cv_path_LD="$ac_dir/$ac_prog"
14859       # Check to see if the program is GNU ld.  I'd rather use --version,
14860       # but apparently some variants of GNU ld only accept -v.
14861       # Break only if it was the GNU/non-GNU ld that we prefer.
14862       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14863       *GNU* | *'with BFD'*)
14864         test "$with_gnu_ld" != no && break
14865         ;;
14866       *)
14867         test "$with_gnu_ld" != yes && break
14868         ;;
14869       esac
14870     fi
14871   done
14872   IFS="$lt_save_ifs"
14873 else
14874   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14875 fi
14876 fi
14877
14878 LD="$lt_cv_path_LD"
14879 if test -n "$LD"; then
14880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14881 $as_echo "$LD" >&6; }
14882 else
14883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14884 $as_echo "no" >&6; }
14885 fi
14886 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14888 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14889 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14890   $as_echo_n "(cached) " >&6
14891 else
14892   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14893 case `$LD -v 2>&1 </dev/null` in
14894 *GNU* | *'with BFD'*)
14895   lt_cv_prog_gnu_ld=yes
14896   ;;
14897 *)
14898   lt_cv_prog_gnu_ld=no
14899   ;;
14900 esac
14901 fi
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14903 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14904 with_gnu_ld=$lt_cv_prog_gnu_ld
14905
14906
14907
14908
14909
14910
14911
14912       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14913       # archiving commands below assume that GNU ld is being used.
14914       if test "$with_gnu_ld" = yes; then
14915         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14916         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14917
14918         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14919         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14920
14921         # If archive_cmds runs LD, not CC, wlarc should be empty
14922         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14923         #     investigate it a little bit more. (MM)
14924         wlarc='${wl}'
14925
14926         # ancient GNU ld didn't support --whole-archive et. al.
14927         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14928           $GREP 'no-whole-archive' > /dev/null; then
14929           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14930         else
14931           whole_archive_flag_spec_CXX=
14932         fi
14933       else
14934         with_gnu_ld=no
14935         wlarc=
14936
14937         # A generic and very simple default shared library creation
14938         # command for GNU C++ for the case where it uses the native
14939         # linker, instead of GNU ld.  If possible, this setting should
14940         # overridden to take advantage of the native linker features on
14941         # the platform it is being used on.
14942         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14943       fi
14944
14945       # Commands to make compiler produce verbose output that lists
14946       # what "hidden" libraries, object files and flags are used when
14947       # linking a shared library.
14948       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14949
14950     else
14951       GXX=no
14952       with_gnu_ld=no
14953       wlarc=
14954     fi
14955
14956     # PORTME: fill in a description of your system's C++ link characteristics
14957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14958 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14959     ld_shlibs_CXX=yes
14960     case $host_os in
14961       aix3*)
14962         # FIXME: insert proper C++ library support
14963         ld_shlibs_CXX=no
14964         ;;
14965       aix[4-9]*)
14966         if test "$host_cpu" = ia64; then
14967           # On IA64, the linker does run time linking by default, so we don't
14968           # have to do anything special.
14969           aix_use_runtimelinking=no
14970           exp_sym_flag='-Bexport'
14971           no_entry_flag=""
14972         else
14973           aix_use_runtimelinking=no
14974
14975           # Test if we are trying to use run time linking or normal
14976           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14977           # need to do runtime linking.
14978           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14979             for ld_flag in $LDFLAGS; do
14980               case $ld_flag in
14981               *-brtl*)
14982                 aix_use_runtimelinking=yes
14983                 break
14984                 ;;
14985               esac
14986             done
14987             ;;
14988           esac
14989
14990           exp_sym_flag='-bexport'
14991           no_entry_flag='-bnoentry'
14992         fi
14993
14994         # When large executables or shared objects are built, AIX ld can
14995         # have problems creating the table of contents.  If linking a library
14996         # or program results in "error TOC overflow" add -mminimal-toc to
14997         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14998         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14999
15000         archive_cmds_CXX=''
15001         hardcode_direct_CXX=yes
15002         hardcode_direct_absolute_CXX=yes
15003         hardcode_libdir_separator_CXX=':'
15004         link_all_deplibs_CXX=yes
15005         file_list_spec_CXX='${wl}-f,'
15006
15007         if test "$GXX" = yes; then
15008           case $host_os in aix4.[012]|aix4.[012].*)
15009           # We only want to do this on AIX 4.2 and lower, the check
15010           # below for broken collect2 doesn't work under 4.3+
15011           collect2name=`${CC} -print-prog-name=collect2`
15012           if test -f "$collect2name" &&
15013              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15014           then
15015             # We have reworked collect2
15016             :
15017           else
15018             # We have old collect2
15019             hardcode_direct_CXX=unsupported
15020             # It fails to find uninstalled libraries when the uninstalled
15021             # path is not listed in the libpath.  Setting hardcode_minus_L
15022             # to unsupported forces relinking
15023             hardcode_minus_L_CXX=yes
15024             hardcode_libdir_flag_spec_CXX='-L$libdir'
15025             hardcode_libdir_separator_CXX=
15026           fi
15027           esac
15028           shared_flag='-shared'
15029           if test "$aix_use_runtimelinking" = yes; then
15030             shared_flag="$shared_flag "'${wl}-G'
15031           fi
15032         else
15033           # not using gcc
15034           if test "$host_cpu" = ia64; then
15035           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15036           # chokes on -Wl,-G. The following line is correct:
15037           shared_flag='-G'
15038           else
15039             if test "$aix_use_runtimelinking" = yes; then
15040               shared_flag='${wl}-G'
15041             else
15042               shared_flag='${wl}-bM:SRE'
15043             fi
15044           fi
15045         fi
15046
15047         export_dynamic_flag_spec_CXX='${wl}-bexpall'
15048         # It seems that -bexpall does not export symbols beginning with
15049         # underscore (_), so it is better to generate a list of symbols to
15050         # export.
15051         always_export_symbols_CXX=yes
15052         if test "$aix_use_runtimelinking" = yes; then
15053           # Warning - without using the other runtime loading flags (-brtl),
15054           # -berok will link without error, but may produce a broken library.
15055           allow_undefined_flag_CXX='-berok'
15056           # Determine the default libpath from the value encoded in an empty
15057           # executable.
15058           if test "${lt_cv_aix_libpath+set}" = set; then
15059   aix_libpath=$lt_cv_aix_libpath
15060 else
15061   if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
15062   $as_echo_n "(cached) " >&6
15063 else
15064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15065 /* end confdefs.h.  */
15066
15067 int
15068 main ()
15069 {
15070
15071   ;
15072   return 0;
15073 }
15074 _ACEOF
15075 if ac_fn_cxx_try_link "$LINENO"; then :
15076
15077   lt_aix_libpath_sed='
15078       /Import File Strings/,/^$/ {
15079           /^0/ {
15080               s/^0  *\([^ ]*\) *$/\1/
15081               p
15082           }
15083       }'
15084   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15085   # Check for a 64-bit object if we didn't find anything.
15086   if test -z "$lt_cv_aix_libpath__CXX"; then
15087     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15088   fi
15089 fi
15090 rm -f core conftest.err conftest.$ac_objext \
15091     conftest$ac_exeext conftest.$ac_ext
15092   if test -z "$lt_cv_aix_libpath__CXX"; then
15093     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15094   fi
15095
15096 fi
15097
15098   aix_libpath=$lt_cv_aix_libpath__CXX
15099 fi
15100
15101           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15102
15103           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15104         else
15105           if test "$host_cpu" = ia64; then
15106             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15107             allow_undefined_flag_CXX="-z nodefs"
15108             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15109           else
15110             # Determine the default libpath from the value encoded in an
15111             # empty executable.
15112             if test "${lt_cv_aix_libpath+set}" = set; then
15113   aix_libpath=$lt_cv_aix_libpath
15114 else
15115   if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
15116   $as_echo_n "(cached) " >&6
15117 else
15118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15119 /* end confdefs.h.  */
15120
15121 int
15122 main ()
15123 {
15124
15125   ;
15126   return 0;
15127 }
15128 _ACEOF
15129 if ac_fn_cxx_try_link "$LINENO"; then :
15130
15131   lt_aix_libpath_sed='
15132       /Import File Strings/,/^$/ {
15133           /^0/ {
15134               s/^0  *\([^ ]*\) *$/\1/
15135               p
15136           }
15137       }'
15138   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15139   # Check for a 64-bit object if we didn't find anything.
15140   if test -z "$lt_cv_aix_libpath__CXX"; then
15141     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15142   fi
15143 fi
15144 rm -f core conftest.err conftest.$ac_objext \
15145     conftest$ac_exeext conftest.$ac_ext
15146   if test -z "$lt_cv_aix_libpath__CXX"; then
15147     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15148   fi
15149
15150 fi
15151
15152   aix_libpath=$lt_cv_aix_libpath__CXX
15153 fi
15154
15155             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15156             # Warning - without using the other run time loading flags,
15157             # -berok will link without error, but may produce a broken library.
15158             no_undefined_flag_CXX=' ${wl}-bernotok'
15159             allow_undefined_flag_CXX=' ${wl}-berok'
15160             if test "$with_gnu_ld" = yes; then
15161               # We only use this code for GNU lds that support --whole-archive.
15162               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15163             else
15164               # Exported symbols can be pulled into shared objects from archives
15165               whole_archive_flag_spec_CXX='$convenience'
15166             fi
15167             archive_cmds_need_lc_CXX=yes
15168             # This is similar to how AIX traditionally builds its shared
15169             # libraries.
15170             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15171           fi
15172         fi
15173         ;;
15174
15175       beos*)
15176         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15177           allow_undefined_flag_CXX=unsupported
15178           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15179           # support --undefined.  This deserves some investigation.  FIXME
15180           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15181         else
15182           ld_shlibs_CXX=no
15183         fi
15184         ;;
15185
15186       chorus*)
15187         case $cc_basename in
15188           *)
15189           # FIXME: insert proper C++ library support
15190           ld_shlibs_CXX=no
15191           ;;
15192         esac
15193         ;;
15194
15195       cygwin* | mingw* | pw32* | cegcc*)
15196         case $GXX,$cc_basename in
15197         ,cl* | no,cl*)
15198           # Native MSVC
15199           # hardcode_libdir_flag_spec is actually meaningless, as there is
15200           # no search path for DLLs.
15201           hardcode_libdir_flag_spec_CXX=' '
15202           allow_undefined_flag_CXX=unsupported
15203           always_export_symbols_CXX=yes
15204           file_list_spec_CXX='@'
15205           # Tell ltmain to make .lib files, not .a files.
15206           libext=lib
15207           # Tell ltmain to make .dll files, not .so files.
15208           shrext_cmds=".dll"
15209           # FIXME: Setting linknames here is a bad hack.
15210           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15211           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15212               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15213             else
15214               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15215             fi~
15216             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15217             linknames='
15218           # The linker will not automatically build a static lib if we build a DLL.
15219           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15220           enable_shared_with_static_runtimes_CXX=yes
15221           # Don't use ranlib
15222           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15223           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15224             lt_tool_outputfile="@TOOL_OUTPUT@"~
15225             case $lt_outputfile in
15226               *.exe|*.EXE) ;;
15227               *)
15228                 lt_outputfile="$lt_outputfile.exe"
15229                 lt_tool_outputfile="$lt_tool_outputfile.exe"
15230                 ;;
15231             esac~
15232             func_to_tool_file "$lt_outputfile"~
15233             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15234               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15235               $RM "$lt_outputfile.manifest";
15236             fi'
15237           ;;
15238         *)
15239           # g++
15240           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15241           # as there is no search path for DLLs.
15242           hardcode_libdir_flag_spec_CXX='-L$libdir'
15243           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15244           allow_undefined_flag_CXX=unsupported
15245           always_export_symbols_CXX=no
15246           enable_shared_with_static_runtimes_CXX=yes
15247
15248           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15249             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15250             # If the export-symbols file already is a .def file (1st line
15251             # is EXPORTS), use it as is; otherwise, prepend...
15252             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15253               cp $export_symbols $output_objdir/$soname.def;
15254             else
15255               echo EXPORTS > $output_objdir/$soname.def;
15256               cat $export_symbols >> $output_objdir/$soname.def;
15257             fi~
15258             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15259           else
15260             ld_shlibs_CXX=no
15261           fi
15262           ;;
15263         esac
15264         ;;
15265       darwin* | rhapsody*)
15266
15267
15268   archive_cmds_need_lc_CXX=no
15269   hardcode_direct_CXX=no
15270   hardcode_automatic_CXX=yes
15271   hardcode_shlibpath_var_CXX=unsupported
15272   if test "$lt_cv_ld_force_load" = "yes"; then
15273     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15274   else
15275     whole_archive_flag_spec_CXX=''
15276   fi
15277   link_all_deplibs_CXX=yes
15278   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15279   case $cc_basename in
15280      ifort*) _lt_dar_can_shared=yes ;;
15281      *) _lt_dar_can_shared=$GCC ;;
15282   esac
15283   if test "$_lt_dar_can_shared" = "yes"; then
15284     output_verbose_link_cmd=func_echo_all
15285     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15286     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15287     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15288     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15289        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15290       archive_cmds_CXX="\$CC -r -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${_lt_dsymutil}"
15291       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -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${_lt_dar_export_syms}${_lt_dsymutil}"
15292     fi
15293
15294   else
15295   ld_shlibs_CXX=no
15296   fi
15297
15298         ;;
15299
15300       dgux*)
15301         case $cc_basename in
15302           ec++*)
15303             # FIXME: insert proper C++ library support
15304             ld_shlibs_CXX=no
15305             ;;
15306           ghcx*)
15307             # Green Hills C++ Compiler
15308             # FIXME: insert proper C++ library support
15309             ld_shlibs_CXX=no
15310             ;;
15311           *)
15312             # FIXME: insert proper C++ library support
15313             ld_shlibs_CXX=no
15314             ;;
15315         esac
15316         ;;
15317
15318       freebsd[12]*)
15319         # C++ shared libraries reported to be fairly broken before
15320         # switch to ELF
15321         ld_shlibs_CXX=no
15322         ;;
15323
15324       freebsd-elf*)
15325         archive_cmds_need_lc_CXX=no
15326         ;;
15327
15328       freebsd* | dragonfly*)
15329         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15330         # conventions
15331         ld_shlibs_CXX=yes
15332         ;;
15333
15334       gnu*)
15335         ;;
15336
15337       haiku*)
15338         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15339         link_all_deplibs_CXX=yes
15340         ;;
15341
15342       hpux9*)
15343         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15344         hardcode_libdir_separator_CXX=:
15345         export_dynamic_flag_spec_CXX='${wl}-E'
15346         hardcode_direct_CXX=yes
15347         hardcode_minus_L_CXX=yes # Not in the search PATH,
15348                                              # but as the default
15349                                              # location of the library.
15350
15351         case $cc_basename in
15352           CC*)
15353             # FIXME: insert proper C++ library support
15354             ld_shlibs_CXX=no
15355             ;;
15356           aCC*)
15357             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'
15358             # Commands to make compiler produce verbose output that lists
15359             # what "hidden" libraries, object files and flags are used when
15360             # linking a shared library.
15361             #
15362             # There doesn't appear to be a way to prevent this compiler from
15363             # explicitly linking system object files so we need to strip them
15364             # from the output so that they don't get included in the library
15365             # dependencies.
15366             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15367             ;;
15368           *)
15369             if test "$GXX" = yes; then
15370               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
15371             else
15372               # FIXME: insert proper C++ library support
15373               ld_shlibs_CXX=no
15374             fi
15375             ;;
15376         esac
15377         ;;
15378
15379       hpux10*|hpux11*)
15380         if test $with_gnu_ld = no; then
15381           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15382           hardcode_libdir_separator_CXX=:
15383
15384           case $host_cpu in
15385             hppa*64*|ia64*)
15386               ;;
15387             *)
15388               export_dynamic_flag_spec_CXX='${wl}-E'
15389               ;;
15390           esac
15391         fi
15392         case $host_cpu in
15393           hppa*64*|ia64*)
15394             hardcode_direct_CXX=no
15395             hardcode_shlibpath_var_CXX=no
15396             ;;
15397           *)
15398             hardcode_direct_CXX=yes
15399             hardcode_direct_absolute_CXX=yes
15400             hardcode_minus_L_CXX=yes # Not in the search PATH,
15401                                                  # but as the default
15402                                                  # location of the library.
15403             ;;
15404         esac
15405
15406         case $cc_basename in
15407           CC*)
15408             # FIXME: insert proper C++ library support
15409             ld_shlibs_CXX=no
15410             ;;
15411           aCC*)
15412             case $host_cpu in
15413               hppa*64*)
15414                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15415                 ;;
15416               ia64*)
15417                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15418                 ;;
15419               *)
15420                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15421                 ;;
15422             esac
15423             # Commands to make compiler produce verbose output that lists
15424             # what "hidden" libraries, object files and flags are used when
15425             # linking a shared library.
15426             #
15427             # There doesn't appear to be a way to prevent this compiler from
15428             # explicitly linking system object files so we need to strip them
15429             # from the output so that they don't get included in the library
15430             # dependencies.
15431             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; func_echo_all "$list"'
15432             ;;
15433           *)
15434             if test "$GXX" = yes; then
15435               if test $with_gnu_ld = no; then
15436                 case $host_cpu in
15437                   hppa*64*)
15438                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15439                     ;;
15440                   ia64*)
15441                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15442                     ;;
15443                   *)
15444                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15445                     ;;
15446                 esac
15447               fi
15448             else
15449               # FIXME: insert proper C++ library support
15450               ld_shlibs_CXX=no
15451             fi
15452             ;;
15453         esac
15454         ;;
15455
15456       interix[3-9]*)
15457         hardcode_direct_CXX=no
15458         hardcode_shlibpath_var_CXX=no
15459         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15460         export_dynamic_flag_spec_CXX='${wl}-E'
15461         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15462         # Instead, shared libraries are loaded at an image base (0x10000000 by
15463         # default) and relocated if they conflict, which is a slow very memory
15464         # consuming and fragmenting process.  To avoid this, we pick a random,
15465         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15466         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15467         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15468         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15469         ;;
15470       irix5* | irix6*)
15471         case $cc_basename in
15472           CC*)
15473             # SGI C++
15474             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15475
15476             # Archives containing C++ object files must be created using
15477             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15478             # necessary to make sure instantiated templates are included
15479             # in the archive.
15480             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15481             ;;
15482           *)
15483             if test "$GXX" = yes; then
15484               if test "$with_gnu_ld" = no; then
15485                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15486               else
15487                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
15488               fi
15489             fi
15490             link_all_deplibs_CXX=yes
15491             ;;
15492         esac
15493         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15494         hardcode_libdir_separator_CXX=:
15495         inherit_rpath_CXX=yes
15496         ;;
15497
15498       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15499         case $cc_basename in
15500           KCC*)
15501             # Kuck and Associates, Inc. (KAI) C++ Compiler
15502
15503             # KCC will only create a shared library if the output file
15504             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15505             # to its proper name (with version) after linking.
15506             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'
15507             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'
15508             # Commands to make compiler produce verbose output that lists
15509             # what "hidden" libraries, object files and flags are used when
15510             # linking a shared library.
15511             #
15512             # There doesn't appear to be a way to prevent this compiler from
15513             # explicitly linking system object files so we need to strip them
15514             # from the output so that they don't get included in the library
15515             # dependencies.
15516             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; func_echo_all "$list"'
15517
15518             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15519             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15520
15521             # Archives containing C++ object files must be created using
15522             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15523             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15524             ;;
15525           icpc* | ecpc* )
15526             # Intel C++
15527             with_gnu_ld=yes
15528             # version 8.0 and above of icpc choke on multiply defined symbols
15529             # if we add $predep_objects and $postdep_objects, however 7.1 and
15530             # earlier do not add the objects themselves.
15531             case `$CC -V 2>&1` in
15532               *"Version 7."*)
15533                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15534                 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'
15535                 ;;
15536               *)  # Version 8.0 or newer
15537                 tmp_idyn=
15538                 case $host_cpu in
15539                   ia64*) tmp_idyn=' -i_dynamic';;
15540                 esac
15541                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15542                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15543                 ;;
15544             esac
15545             archive_cmds_need_lc_CXX=no
15546             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15547             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15548             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15549             ;;
15550           pgCC* | pgcpp*)
15551             # Portland Group C++ compiler
15552             case `$CC -V` in
15553             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15554               prelink_cmds_CXX='tpldir=Template.dir~
15555                 rm -rf $tpldir~
15556                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15557                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15558               old_archive_cmds_CXX='tpldir=Template.dir~
15559                 rm -rf $tpldir~
15560                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15561                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15562                 $RANLIB $oldlib'
15563               archive_cmds_CXX='tpldir=Template.dir~
15564                 rm -rf $tpldir~
15565                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15566                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15567               archive_expsym_cmds_CXX='tpldir=Template.dir~
15568                 rm -rf $tpldir~
15569                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15570                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15571               ;;
15572             *) # Version 6 and above use weak symbols
15573               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15574               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15575               ;;
15576             esac
15577
15578             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15579             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15580             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15581             ;;
15582           cxx*)
15583             # Compaq C++
15584             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15585             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'
15586
15587             runpath_var=LD_RUN_PATH
15588             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15589             hardcode_libdir_separator_CXX=:
15590
15591             # Commands to make compiler produce verbose output that lists
15592             # what "hidden" libraries, object files and flags are used when
15593             # linking a shared library.
15594             #
15595             # There doesn't appear to be a way to prevent this compiler from
15596             # explicitly linking system object files so we need to strip them
15597             # from the output so that they don't get included in the library
15598             # dependencies.
15599             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
15600             ;;
15601           xl* | mpixl* | bgxl*)
15602             # IBM XL 8.0 on PPC, with GNU ld
15603             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15604             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15605             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15606             if test "x$supports_anon_versioning" = xyes; then
15607               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15608                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15609                 echo "local: *; };" >> $output_objdir/$libname.ver~
15610                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15611             fi
15612             ;;
15613           *)
15614             case `$CC -V 2>&1 | sed 5q` in
15615             *Sun\ C*)
15616               # Sun C++ 5.9
15617               no_undefined_flag_CXX=' -zdefs'
15618               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15619               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15620               hardcode_libdir_flag_spec_CXX='-R$libdir'
15621               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15622               compiler_needs_object_CXX=yes
15623
15624               # Not sure whether something based on
15625               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15626               # would be better.
15627               output_verbose_link_cmd='func_echo_all'
15628
15629               # Archives containing C++ object files must be created using
15630               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15631               # necessary to make sure instantiated templates are included
15632               # in the archive.
15633               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15634               ;;
15635             esac
15636             ;;
15637         esac
15638         ;;
15639
15640       lynxos*)
15641         # FIXME: insert proper C++ library support
15642         ld_shlibs_CXX=no
15643         ;;
15644
15645       m88k*)
15646         # FIXME: insert proper C++ library support
15647         ld_shlibs_CXX=no
15648         ;;
15649
15650       mvs*)
15651         case $cc_basename in
15652           cxx*)
15653             # FIXME: insert proper C++ library support
15654             ld_shlibs_CXX=no
15655             ;;
15656           *)
15657             # FIXME: insert proper C++ library support
15658             ld_shlibs_CXX=no
15659             ;;
15660         esac
15661         ;;
15662
15663       netbsd*)
15664         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15665           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15666           wlarc=
15667           hardcode_libdir_flag_spec_CXX='-R$libdir'
15668           hardcode_direct_CXX=yes
15669           hardcode_shlibpath_var_CXX=no
15670         fi
15671         # Workaround some broken pre-1.5 toolchains
15672         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15673         ;;
15674
15675       *nto* | *qnx*)
15676         ld_shlibs_CXX=yes
15677         ;;
15678
15679       openbsd2*)
15680         # C++ shared libraries are fairly broken
15681         ld_shlibs_CXX=no
15682         ;;
15683
15684       openbsd*)
15685         if test -f /usr/libexec/ld.so; then
15686           hardcode_direct_CXX=yes
15687           hardcode_shlibpath_var_CXX=no
15688           hardcode_direct_absolute_CXX=yes
15689           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15690           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15691           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15692             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15693             export_dynamic_flag_spec_CXX='${wl}-E'
15694             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15695           fi
15696           output_verbose_link_cmd=func_echo_all
15697         else
15698           ld_shlibs_CXX=no
15699         fi
15700         ;;
15701
15702       osf3* | osf4* | osf5*)
15703         case $cc_basename in
15704           KCC*)
15705             # Kuck and Associates, Inc. (KAI) C++ Compiler
15706
15707             # KCC will only create a shared library if the output file
15708             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15709             # to its proper name (with version) after linking.
15710             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'
15711
15712             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15713             hardcode_libdir_separator_CXX=:
15714
15715             # Archives containing C++ object files must be created using
15716             # the KAI C++ compiler.
15717             case $host in
15718               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15719               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15720             esac
15721             ;;
15722           RCC*)
15723             # Rational C++ 2.4.1
15724             # FIXME: insert proper C++ library support
15725             ld_shlibs_CXX=no
15726             ;;
15727           cxx*)
15728             case $host in
15729               osf3*)
15730                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15731                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15732                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15733                 ;;
15734               *)
15735                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15736                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15737                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15738                   echo "-hidden">> $lib.exp~
15739                   $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 ${output_objdir}/so_locations -o $lib~
15740                   $RM $lib.exp'
15741                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15742                 ;;
15743             esac
15744
15745             hardcode_libdir_separator_CXX=:
15746
15747             # Commands to make compiler produce verbose output that lists
15748             # what "hidden" libraries, object files and flags are used when
15749             # linking a shared library.
15750             #
15751             # There doesn't appear to be a way to prevent this compiler from
15752             # explicitly linking system object files so we need to strip them
15753             # from the output so that they don't get included in the library
15754             # dependencies.
15755             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
15756             ;;
15757           *)
15758             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15759               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15760               case $host in
15761                 osf3*)
15762                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15763                   ;;
15764                 *)
15765                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15766                   ;;
15767               esac
15768
15769               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15770               hardcode_libdir_separator_CXX=:
15771
15772               # Commands to make compiler produce verbose output that lists
15773               # what "hidden" libraries, object files and flags are used when
15774               # linking a shared library.
15775               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15776
15777             else
15778               # FIXME: insert proper C++ library support
15779               ld_shlibs_CXX=no
15780             fi
15781             ;;
15782         esac
15783         ;;
15784
15785       psos*)
15786         # FIXME: insert proper C++ library support
15787         ld_shlibs_CXX=no
15788         ;;
15789
15790       sunos4*)
15791         case $cc_basename in
15792           CC*)
15793             # Sun C++ 4.x
15794             # FIXME: insert proper C++ library support
15795             ld_shlibs_CXX=no
15796             ;;
15797           lcc*)
15798             # Lucid
15799             # FIXME: insert proper C++ library support
15800             ld_shlibs_CXX=no
15801             ;;
15802           *)
15803             # FIXME: insert proper C++ library support
15804             ld_shlibs_CXX=no
15805             ;;
15806         esac
15807         ;;
15808
15809       solaris*)
15810         case $cc_basename in
15811           CC* | sunCC*)
15812             # Sun C++ 4.2, 5.x and Centerline C++
15813             archive_cmds_need_lc_CXX=yes
15814             no_undefined_flag_CXX=' -zdefs'
15815             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15816             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15817               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15818
15819             hardcode_libdir_flag_spec_CXX='-R$libdir'
15820             hardcode_shlibpath_var_CXX=no
15821             case $host_os in
15822               solaris2.[0-5] | solaris2.[0-5].*) ;;
15823               *)
15824                 # The compiler driver will combine and reorder linker options,
15825                 # but understands `-z linker_flag'.
15826                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15827                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15828                 ;;
15829             esac
15830             link_all_deplibs_CXX=yes
15831
15832             output_verbose_link_cmd='func_echo_all'
15833
15834             # Archives containing C++ object files must be created using
15835             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15836             # necessary to make sure instantiated templates are included
15837             # in the archive.
15838             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15839             ;;
15840           gcx*)
15841             # Green Hills C++ Compiler
15842             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15843
15844             # The C++ compiler must be used to create the archive.
15845             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15846             ;;
15847           *)
15848             # GNU C++ compiler with Solaris linker
15849             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15850               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15851               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15852                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15853                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15854                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15855
15856                 # Commands to make compiler produce verbose output that lists
15857                 # what "hidden" libraries, object files and flags are used when
15858                 # linking a shared library.
15859                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15860               else
15861                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15862                 # platform.
15863                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15864                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15865                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15866
15867                 # Commands to make compiler produce verbose output that lists
15868                 # what "hidden" libraries, object files and flags are used when
15869                 # linking a shared library.
15870                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15871               fi
15872
15873               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15874               case $host_os in
15875                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15876                 *)
15877                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15878                   ;;
15879               esac
15880             fi
15881             ;;
15882         esac
15883         ;;
15884
15885     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15886       no_undefined_flag_CXX='${wl}-z,text'
15887       archive_cmds_need_lc_CXX=no
15888       hardcode_shlibpath_var_CXX=no
15889       runpath_var='LD_RUN_PATH'
15890
15891       case $cc_basename in
15892         CC*)
15893           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15894           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15895           ;;
15896         *)
15897           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15898           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15899           ;;
15900       esac
15901       ;;
15902
15903       sysv5* | sco3.2v5* | sco5v6*)
15904         # Note: We can NOT use -z defs as we might desire, because we do not
15905         # link with -lc, and that would cause any symbols used from libc to
15906         # always be unresolved, which means just about no library would
15907         # ever link correctly.  If we're not using GNU ld we use -z text
15908         # though, which does catch some bad symbols but isn't as heavy-handed
15909         # as -z defs.
15910         no_undefined_flag_CXX='${wl}-z,text'
15911         allow_undefined_flag_CXX='${wl}-z,nodefs'
15912         archive_cmds_need_lc_CXX=no
15913         hardcode_shlibpath_var_CXX=no
15914         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15915         hardcode_libdir_separator_CXX=':'
15916         link_all_deplibs_CXX=yes
15917         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15918         runpath_var='LD_RUN_PATH'
15919
15920         case $cc_basename in
15921           CC*)
15922             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15923             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15924             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15925               '"$old_archive_cmds_CXX"
15926             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15927               '"$reload_cmds_CXX"
15928             ;;
15929           *)
15930             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15931             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15932             ;;
15933         esac
15934       ;;
15935
15936       tandem*)
15937         case $cc_basename in
15938           NCC*)
15939             # NonStop-UX NCC 3.20
15940             # FIXME: insert proper C++ library support
15941             ld_shlibs_CXX=no
15942             ;;
15943           *)
15944             # FIXME: insert proper C++ library support
15945             ld_shlibs_CXX=no
15946             ;;
15947         esac
15948         ;;
15949
15950       vxworks*)
15951         # FIXME: insert proper C++ library support
15952         ld_shlibs_CXX=no
15953         ;;
15954
15955       *)
15956         # FIXME: insert proper C++ library support
15957         ld_shlibs_CXX=no
15958         ;;
15959     esac
15960
15961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15962 $as_echo "$ld_shlibs_CXX" >&6; }
15963     test "$ld_shlibs_CXX" = no && can_build_shared=no
15964
15965     GCC_CXX="$GXX"
15966     LD_CXX="$LD"
15967
15968     ## CAVEAT EMPTOR:
15969     ## There is no encapsulation within the following macros, do not change
15970     ## the running order or otherwise move them around unless you know exactly
15971     ## what you are doing...
15972     # Dependencies to place before and after the object being linked:
15973 predep_objects_CXX=
15974 postdep_objects_CXX=
15975 predeps_CXX=
15976 postdeps_CXX=
15977 compiler_lib_search_path_CXX=
15978
15979 cat > conftest.$ac_ext <<_LT_EOF
15980 class Foo
15981 {
15982 public:
15983   Foo (void) { a = 0; }
15984 private:
15985   int a;
15986 };
15987 _LT_EOF
15988
15989
15990 _lt_libdeps_save_CFLAGS=$CFLAGS
15991 case "$CC $CFLAGS " in #(
15992 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15993 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15994 esac
15995
15996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15997   (eval $ac_compile) 2>&5
15998   ac_status=$?
15999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16000   test $ac_status = 0; }; then
16001   # Parse the compiler output and extract the necessary
16002   # objects, libraries and library flags.
16003
16004   # Sentinel used to keep track of whether or not we are before
16005   # the conftest object file.
16006   pre_test_object_deps_done=no
16007
16008   for p in `eval "$output_verbose_link_cmd"`; do
16009     case ${prev}${p} in
16010
16011     -L* | -R* | -l*)
16012        # Some compilers place space between "-{L,R}" and the path.
16013        # Remove the space.
16014        if test $p = "-L" ||
16015           test $p = "-R"; then
16016          prev=$p
16017          continue
16018        fi
16019
16020        # Expand the sysroot to ease extracting the directories later.
16021        if test -z "$prev"; then
16022          case $p in
16023          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16024          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16025          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16026          esac
16027        fi
16028        case $p in
16029        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16030        esac
16031        if test "$pre_test_object_deps_done" = no; then
16032          case ${prev} in
16033          -L | -R)
16034            # Internal compiler library paths should come after those
16035            # provided the user.  The postdeps already come after the
16036            # user supplied libs so there is no need to process them.
16037            if test -z "$compiler_lib_search_path_CXX"; then
16038              compiler_lib_search_path_CXX="${prev}${p}"
16039            else
16040              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16041            fi
16042            ;;
16043          # The "-l" case would never come before the object being
16044          # linked, so don't bother handling this case.
16045          esac
16046        else
16047          if test -z "$postdeps_CXX"; then
16048            postdeps_CXX="${prev}${p}"
16049          else
16050            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16051          fi
16052        fi
16053        prev=
16054        ;;
16055
16056     *.lto.$objext) ;; # Ignore GCC LTO objects
16057     *.$objext)
16058        # This assumes that the test object file only shows up
16059        # once in the compiler output.
16060        if test "$p" = "conftest.$objext"; then
16061          pre_test_object_deps_done=yes
16062          continue
16063        fi
16064
16065        if test "$pre_test_object_deps_done" = no; then
16066          if test -z "$predep_objects_CXX"; then
16067            predep_objects_CXX="$p"
16068          else
16069            predep_objects_CXX="$predep_objects_CXX $p"
16070          fi
16071        else
16072          if test -z "$postdep_objects_CXX"; then
16073            postdep_objects_CXX="$p"
16074          else
16075            postdep_objects_CXX="$postdep_objects_CXX $p"
16076          fi
16077        fi
16078        ;;
16079
16080     *) ;; # Ignore the rest.
16081
16082     esac
16083   done
16084
16085   # Clean up.
16086   rm -f a.out a.exe
16087 else
16088   echo "libtool.m4: error: problem compiling CXX test program"
16089 fi
16090
16091 $RM -f confest.$objext
16092 CFLAGS=$_lt_libdeps_save_CFLAGS
16093
16094 # PORTME: override above test on systems where it is broken
16095 case $host_os in
16096 interix[3-9]*)
16097   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16098   # hack all around it, let's just trust "g++" to DTRT.
16099   predep_objects_CXX=
16100   postdep_objects_CXX=
16101   postdeps_CXX=
16102   ;;
16103
16104 linux*)
16105   case `$CC -V 2>&1 | sed 5q` in
16106   *Sun\ C*)
16107     # Sun C++ 5.9
16108
16109     # The more standards-conforming stlport4 library is
16110     # incompatible with the Cstd library. Avoid specifying
16111     # it if it's in CXXFLAGS. Ignore libCrun as
16112     # -library=stlport4 depends on it.
16113     case " $CXX $CXXFLAGS " in
16114     *" -library=stlport4 "*)
16115       solaris_use_stlport4=yes
16116       ;;
16117     esac
16118
16119     if test "$solaris_use_stlport4" != yes; then
16120       postdeps_CXX='-library=Cstd -library=Crun'
16121     fi
16122     ;;
16123   esac
16124   ;;
16125
16126 solaris*)
16127   case $cc_basename in
16128   CC* | sunCC*)
16129     # The more standards-conforming stlport4 library is
16130     # incompatible with the Cstd library. Avoid specifying
16131     # it if it's in CXXFLAGS. Ignore libCrun as
16132     # -library=stlport4 depends on it.
16133     case " $CXX $CXXFLAGS " in
16134     *" -library=stlport4 "*)
16135       solaris_use_stlport4=yes
16136       ;;
16137     esac
16138
16139     # Adding this requires a known-good setup of shared libraries for
16140     # Sun compiler versions before 5.6, else PIC objects from an old
16141     # archive will be linked into the output, leading to subtle bugs.
16142     if test "$solaris_use_stlport4" != yes; then
16143       postdeps_CXX='-library=Cstd -library=Crun'
16144     fi
16145     ;;
16146   esac
16147   ;;
16148 esac
16149
16150
16151 case " $postdeps_CXX " in
16152 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16153 esac
16154  compiler_lib_search_dirs_CXX=
16155 if test -n "${compiler_lib_search_path_CXX}"; then
16156  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16157 fi
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189     lt_prog_compiler_wl_CXX=
16190 lt_prog_compiler_pic_CXX=
16191 lt_prog_compiler_static_CXX=
16192
16193
16194   # C++ specific cases for pic, static, wl, etc.
16195   if test "$GXX" = yes; then
16196     lt_prog_compiler_wl_CXX='-Wl,'
16197     lt_prog_compiler_static_CXX='-static'
16198
16199     case $host_os in
16200     aix*)
16201       # All AIX code is PIC.
16202       if test "$host_cpu" = ia64; then
16203         # AIX 5 now supports IA64 processor
16204         lt_prog_compiler_static_CXX='-Bstatic'
16205       fi
16206       ;;
16207
16208     amigaos*)
16209       case $host_cpu in
16210       powerpc)
16211             # see comment about AmigaOS4 .so support
16212             lt_prog_compiler_pic_CXX='-fPIC'
16213         ;;
16214       m68k)
16215             # FIXME: we need at least 68020 code to build shared libraries, but
16216             # adding the `-m68020' flag to GCC prevents building anything better,
16217             # like `-m68040'.
16218             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16219         ;;
16220       esac
16221       ;;
16222
16223     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16224       # PIC is the default for these OSes.
16225       ;;
16226     mingw* | cygwin* | os2* | pw32* | cegcc*)
16227       # This hack is so that the source file can tell whether it is being
16228       # built for inclusion in a dll (and should export symbols for example).
16229       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16230       # (--disable-auto-import) libraries
16231       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16232       ;;
16233     darwin* | rhapsody*)
16234       # PIC is the default on this platform
16235       # Common symbols not allowed in MH_DYLIB files
16236       lt_prog_compiler_pic_CXX='-fno-common'
16237       ;;
16238     *djgpp*)
16239       # DJGPP does not support shared libraries at all
16240       lt_prog_compiler_pic_CXX=
16241       ;;
16242     haiku*)
16243       # PIC is the default for Haiku.
16244       # The "-static" flag exists, but is broken.
16245       lt_prog_compiler_static_CXX=
16246       ;;
16247     interix[3-9]*)
16248       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16249       # Instead, we relocate shared libraries at runtime.
16250       ;;
16251     sysv4*MP*)
16252       if test -d /usr/nec; then
16253         lt_prog_compiler_pic_CXX=-Kconform_pic
16254       fi
16255       ;;
16256     hpux*)
16257       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16258       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16259       # sets the default TLS model and affects inlining.
16260       case $host_cpu in
16261       hppa*64*)
16262         ;;
16263       *)
16264         lt_prog_compiler_pic_CXX='-fPIC'
16265         ;;
16266       esac
16267       ;;
16268     *qnx* | *nto*)
16269       # QNX uses GNU C++, but need to define -shared option too, otherwise
16270       # it will coredump.
16271       lt_prog_compiler_pic_CXX='-fPIC -shared'
16272       ;;
16273     *)
16274       lt_prog_compiler_pic_CXX='-fPIC'
16275       ;;
16276     esac
16277   else
16278     case $host_os in
16279       aix[4-9]*)
16280         # All AIX code is PIC.
16281         if test "$host_cpu" = ia64; then
16282           # AIX 5 now supports IA64 processor
16283           lt_prog_compiler_static_CXX='-Bstatic'
16284         else
16285           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16286         fi
16287         ;;
16288       chorus*)
16289         case $cc_basename in
16290         cxch68*)
16291           # Green Hills C++ Compiler
16292           # _LT_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"
16293           ;;
16294         esac
16295         ;;
16296       mingw* | cygwin* | os2* | pw32* | cegcc*)
16297         # This hack is so that the source file can tell whether it is being
16298         # built for inclusion in a dll (and should export symbols for example).
16299         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16300         ;;
16301       dgux*)
16302         case $cc_basename in
16303           ec++*)
16304             lt_prog_compiler_pic_CXX='-KPIC'
16305             ;;
16306           ghcx*)
16307             # Green Hills C++ Compiler
16308             lt_prog_compiler_pic_CXX='-pic'
16309             ;;
16310           *)
16311             ;;
16312         esac
16313         ;;
16314       freebsd* | dragonfly*)
16315         # FreeBSD uses GNU C++
16316         ;;
16317       hpux9* | hpux10* | hpux11*)
16318         case $cc_basename in
16319           CC*)
16320             lt_prog_compiler_wl_CXX='-Wl,'
16321             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16322             if test "$host_cpu" != ia64; then
16323               lt_prog_compiler_pic_CXX='+Z'
16324             fi
16325             ;;
16326           aCC*)
16327             lt_prog_compiler_wl_CXX='-Wl,'
16328             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16329             case $host_cpu in
16330             hppa*64*|ia64*)
16331               # +Z the default
16332               ;;
16333             *)
16334               lt_prog_compiler_pic_CXX='+Z'
16335               ;;
16336             esac
16337             ;;
16338           *)
16339             ;;
16340         esac
16341         ;;
16342       interix*)
16343         # This is c89, which is MS Visual C++ (no shared libs)
16344         # Anyone wants to do a port?
16345         ;;
16346       irix5* | irix6* | nonstopux*)
16347         case $cc_basename in
16348           CC*)
16349             lt_prog_compiler_wl_CXX='-Wl,'
16350             lt_prog_compiler_static_CXX='-non_shared'
16351             # CC pic flag -KPIC is the default.
16352             ;;
16353           *)
16354             ;;
16355         esac
16356         ;;
16357       linux* | k*bsd*-gnu | kopensolaris*-gnu)
16358         case $cc_basename in
16359           KCC*)
16360             # KAI C++ Compiler
16361             lt_prog_compiler_wl_CXX='--backend -Wl,'
16362             lt_prog_compiler_pic_CXX='-fPIC'
16363             ;;
16364           ecpc* )
16365             # old Intel C++ for x86_64 which still supported -KPIC.
16366             lt_prog_compiler_wl_CXX='-Wl,'
16367             lt_prog_compiler_pic_CXX='-KPIC'
16368             lt_prog_compiler_static_CXX='-static'
16369             ;;
16370           icpc* )
16371             # Intel C++, used to be incompatible with GCC.
16372             # ICC 10 doesn't accept -KPIC any more.
16373             lt_prog_compiler_wl_CXX='-Wl,'
16374             lt_prog_compiler_pic_CXX='-fPIC'
16375             lt_prog_compiler_static_CXX='-static'
16376             ;;
16377           pgCC* | pgcpp*)
16378             # Portland Group C++ compiler
16379             lt_prog_compiler_wl_CXX='-Wl,'
16380             lt_prog_compiler_pic_CXX='-fpic'
16381             lt_prog_compiler_static_CXX='-Bstatic'
16382             ;;
16383           cxx*)
16384             # Compaq C++
16385             # Make sure the PIC flag is empty.  It appears that all Alpha
16386             # Linux and Compaq Tru64 Unix objects are PIC.
16387             lt_prog_compiler_pic_CXX=
16388             lt_prog_compiler_static_CXX='-non_shared'
16389             ;;
16390           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16391             # IBM XL 8.0, 9.0 on PPC and BlueGene
16392             lt_prog_compiler_wl_CXX='-Wl,'
16393             lt_prog_compiler_pic_CXX='-qpic'
16394             lt_prog_compiler_static_CXX='-qstaticlink'
16395             ;;
16396           *)
16397             case `$CC -V 2>&1 | sed 5q` in
16398             *Sun\ C*)
16399               # Sun C++ 5.9
16400               lt_prog_compiler_pic_CXX='-KPIC'
16401               lt_prog_compiler_static_CXX='-Bstatic'
16402               lt_prog_compiler_wl_CXX='-Qoption ld '
16403               ;;
16404             esac
16405             ;;
16406         esac
16407         ;;
16408       lynxos*)
16409         ;;
16410       m88k*)
16411         ;;
16412       mvs*)
16413         case $cc_basename in
16414           cxx*)
16415             lt_prog_compiler_pic_CXX='-W c,exportall'
16416             ;;
16417           *)
16418             ;;
16419         esac
16420         ;;
16421       netbsd*)
16422         ;;
16423       *qnx* | *nto*)
16424         # QNX uses GNU C++, but need to define -shared option too, otherwise
16425         # it will coredump.
16426         lt_prog_compiler_pic_CXX='-fPIC -shared'
16427         ;;
16428       osf3* | osf4* | osf5*)
16429         case $cc_basename in
16430           KCC*)
16431             lt_prog_compiler_wl_CXX='--backend -Wl,'
16432             ;;
16433           RCC*)
16434             # Rational C++ 2.4.1
16435             lt_prog_compiler_pic_CXX='-pic'
16436             ;;
16437           cxx*)
16438             # Digital/Compaq C++
16439             lt_prog_compiler_wl_CXX='-Wl,'
16440             # Make sure the PIC flag is empty.  It appears that all Alpha
16441             # Linux and Compaq Tru64 Unix objects are PIC.
16442             lt_prog_compiler_pic_CXX=
16443             lt_prog_compiler_static_CXX='-non_shared'
16444             ;;
16445           *)
16446             ;;
16447         esac
16448         ;;
16449       psos*)
16450         ;;
16451       solaris*)
16452         case $cc_basename in
16453           CC* | sunCC*)
16454             # Sun C++ 4.2, 5.x and Centerline C++
16455             lt_prog_compiler_pic_CXX='-KPIC'
16456             lt_prog_compiler_static_CXX='-Bstatic'
16457             lt_prog_compiler_wl_CXX='-Qoption ld '
16458             ;;
16459           gcx*)
16460             # Green Hills C++ Compiler
16461             lt_prog_compiler_pic_CXX='-PIC'
16462             ;;
16463           *)
16464             ;;
16465         esac
16466         ;;
16467       sunos4*)
16468         case $cc_basename in
16469           CC*)
16470             # Sun C++ 4.x
16471             lt_prog_compiler_pic_CXX='-pic'
16472             lt_prog_compiler_static_CXX='-Bstatic'
16473             ;;
16474           lcc*)
16475             # Lucid
16476             lt_prog_compiler_pic_CXX='-pic'
16477             ;;
16478           *)
16479             ;;
16480         esac
16481         ;;
16482       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16483         case $cc_basename in
16484           CC*)
16485             lt_prog_compiler_wl_CXX='-Wl,'
16486             lt_prog_compiler_pic_CXX='-KPIC'
16487             lt_prog_compiler_static_CXX='-Bstatic'
16488             ;;
16489         esac
16490         ;;
16491       tandem*)
16492         case $cc_basename in
16493           NCC*)
16494             # NonStop-UX NCC 3.20
16495             lt_prog_compiler_pic_CXX='-KPIC'
16496             ;;
16497           *)
16498             ;;
16499         esac
16500         ;;
16501       vxworks*)
16502         ;;
16503       *)
16504         lt_prog_compiler_can_build_shared_CXX=no
16505         ;;
16506     esac
16507   fi
16508
16509 case $host_os in
16510   # For platforms which do not support PIC, -DPIC is meaningless:
16511   *djgpp*)
16512     lt_prog_compiler_pic_CXX=
16513     ;;
16514   *)
16515     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16516     ;;
16517 esac
16518
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16520 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16521 if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then :
16522   $as_echo_n "(cached) " >&6
16523 else
16524   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16525 fi
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16527 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16528 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16529
16530 #
16531 # Check to make sure the PIC flag actually works.
16532 #
16533 if test -n "$lt_prog_compiler_pic_CXX"; then
16534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16535 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16536 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16537   $as_echo_n "(cached) " >&6
16538 else
16539   lt_cv_prog_compiler_pic_works_CXX=no
16540    ac_outfile=conftest.$ac_objext
16541    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16542    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16543    # Insert the option either (1) after the last *FLAGS variable, or
16544    # (2) before a word containing "conftest.", or (3) at the end.
16545    # Note that $ac_compile itself does not contain backslashes and begins
16546    # with a dollar sign (not a hyphen), so the echo should work correctly.
16547    # The option is referenced via a variable to avoid confusing sed.
16548    lt_compile=`echo "$ac_compile" | $SED \
16549    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16550    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16551    -e 's:$: $lt_compiler_flag:'`
16552    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16553    (eval "$lt_compile" 2>conftest.err)
16554    ac_status=$?
16555    cat conftest.err >&5
16556    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557    if (exit $ac_status) && test -s "$ac_outfile"; then
16558      # The compiler can only warn and ignore the option if not recognized
16559      # So say no if there are warnings other than the usual output.
16560      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16561      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16562      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16563        lt_cv_prog_compiler_pic_works_CXX=yes
16564      fi
16565    fi
16566    $RM conftest*
16567
16568 fi
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16570 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16571
16572 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16573     case $lt_prog_compiler_pic_CXX in
16574      "" | " "*) ;;
16575      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16576      esac
16577 else
16578     lt_prog_compiler_pic_CXX=
16579      lt_prog_compiler_can_build_shared_CXX=no
16580 fi
16581
16582 fi
16583
16584
16585
16586
16587
16588 #
16589 # Check to make sure the static flag actually works.
16590 #
16591 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16593 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16594 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
16595   $as_echo_n "(cached) " >&6
16596 else
16597   lt_cv_prog_compiler_static_works_CXX=no
16598    save_LDFLAGS="$LDFLAGS"
16599    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16600    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16601    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16602      # The linker can only warn and ignore the option if not recognized
16603      # So say no if there are warnings
16604      if test -s conftest.err; then
16605        # Append any errors to the config.log.
16606        cat conftest.err 1>&5
16607        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16608        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16609        if diff conftest.exp conftest.er2 >/dev/null; then
16610          lt_cv_prog_compiler_static_works_CXX=yes
16611        fi
16612      else
16613        lt_cv_prog_compiler_static_works_CXX=yes
16614      fi
16615    fi
16616    $RM -r conftest*
16617    LDFLAGS="$save_LDFLAGS"
16618
16619 fi
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16621 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16622
16623 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16624     :
16625 else
16626     lt_prog_compiler_static_CXX=
16627 fi
16628
16629
16630
16631
16632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16633 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16634 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16635   $as_echo_n "(cached) " >&6
16636 else
16637   lt_cv_prog_compiler_c_o_CXX=no
16638    $RM -r conftest 2>/dev/null
16639    mkdir conftest
16640    cd conftest
16641    mkdir out
16642    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16643
16644    lt_compiler_flag="-o out/conftest2.$ac_objext"
16645    # Insert the option either (1) after the last *FLAGS variable, or
16646    # (2) before a word containing "conftest.", or (3) at the end.
16647    # Note that $ac_compile itself does not contain backslashes and begins
16648    # with a dollar sign (not a hyphen), so the echo should work correctly.
16649    lt_compile=`echo "$ac_compile" | $SED \
16650    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16651    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16652    -e 's:$: $lt_compiler_flag:'`
16653    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16654    (eval "$lt_compile" 2>out/conftest.err)
16655    ac_status=$?
16656    cat out/conftest.err >&5
16657    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16659    then
16660      # The compiler can only warn and ignore the option if not recognized
16661      # So say no if there are warnings
16662      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16663      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16664      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16665        lt_cv_prog_compiler_c_o_CXX=yes
16666      fi
16667    fi
16668    chmod u+w . 2>&5
16669    $RM conftest*
16670    # SGI C++ compiler will create directory out/ii_files/ for
16671    # template instantiation
16672    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16673    $RM out/* && rmdir out
16674    cd ..
16675    $RM -r conftest
16676    $RM conftest*
16677
16678 fi
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16680 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16681
16682
16683
16684     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16685 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16686 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16687   $as_echo_n "(cached) " >&6
16688 else
16689   lt_cv_prog_compiler_c_o_CXX=no
16690    $RM -r conftest 2>/dev/null
16691    mkdir conftest
16692    cd conftest
16693    mkdir out
16694    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16695
16696    lt_compiler_flag="-o out/conftest2.$ac_objext"
16697    # Insert the option either (1) after the last *FLAGS variable, or
16698    # (2) before a word containing "conftest.", or (3) at the end.
16699    # Note that $ac_compile itself does not contain backslashes and begins
16700    # with a dollar sign (not a hyphen), so the echo should work correctly.
16701    lt_compile=`echo "$ac_compile" | $SED \
16702    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16703    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16704    -e 's:$: $lt_compiler_flag:'`
16705    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16706    (eval "$lt_compile" 2>out/conftest.err)
16707    ac_status=$?
16708    cat out/conftest.err >&5
16709    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16711    then
16712      # The compiler can only warn and ignore the option if not recognized
16713      # So say no if there are warnings
16714      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16715      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16716      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16717        lt_cv_prog_compiler_c_o_CXX=yes
16718      fi
16719    fi
16720    chmod u+w . 2>&5
16721    $RM conftest*
16722    # SGI C++ compiler will create directory out/ii_files/ for
16723    # template instantiation
16724    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16725    $RM out/* && rmdir out
16726    cd ..
16727    $RM -r conftest
16728    $RM conftest*
16729
16730 fi
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16732 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16733
16734
16735
16736
16737 hard_links="nottested"
16738 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16739   # do not overwrite the value of need_locks provided by the user
16740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16741 $as_echo_n "checking if we can lock with hard links... " >&6; }
16742   hard_links=yes
16743   $RM conftest*
16744   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16745   touch conftest.a
16746   ln conftest.a conftest.b 2>&5 || hard_links=no
16747   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16749 $as_echo "$hard_links" >&6; }
16750   if test "$hard_links" = no; then
16751     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16752 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16753     need_locks=warn
16754   fi
16755 else
16756   need_locks=no
16757 fi
16758
16759
16760
16761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16762 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16763
16764   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16765   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16766   case $host_os in
16767   aix[4-9]*)
16768     # If we're using GNU nm, then we don't want the "-C" option.
16769     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16770     # Also, AIX nm treats weak defined symbols like other global defined
16771     # symbols, whereas GNU nm marks them as "W".
16772     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16773       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16774     else
16775       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'
16776     fi
16777     ;;
16778   pw32*)
16779     export_symbols_cmds_CXX="$ltdll_cmds"
16780     ;;
16781   cygwin* | mingw* | cegcc*)
16782     case $cc_basename in
16783     cl*) ;;
16784     *)
16785       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16786       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16787       ;;
16788     esac
16789     ;;
16790   *)
16791     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16792     ;;
16793   esac
16794
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16796 $as_echo "$ld_shlibs_CXX" >&6; }
16797 test "$ld_shlibs_CXX" = no && can_build_shared=no
16798
16799 with_gnu_ld_CXX=$with_gnu_ld
16800
16801
16802
16803
16804
16805
16806 #
16807 # Do we need to explicitly link libc?
16808 #
16809 case "x$archive_cmds_need_lc_CXX" in
16810 x|xyes)
16811   # Assume -lc should be added
16812   archive_cmds_need_lc_CXX=yes
16813
16814   if test "$enable_shared" = yes && test "$GCC" = yes; then
16815     case $archive_cmds_CXX in
16816     *'~'*)
16817       # FIXME: we may have to deal with multi-command sequences.
16818       ;;
16819     '$CC '*)
16820       # Test whether the compiler implicitly links with -lc since on some
16821       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16822       # to ld, don't add -lc before -lgcc.
16823       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16824 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16825 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
16826   $as_echo_n "(cached) " >&6
16827 else
16828   $RM conftest*
16829         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16830
16831         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16832   (eval $ac_compile) 2>&5
16833   ac_status=$?
16834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16835   test $ac_status = 0; } 2>conftest.err; then
16836           soname=conftest
16837           lib=conftest
16838           libobjs=conftest.$ac_objext
16839           deplibs=
16840           wl=$lt_prog_compiler_wl_CXX
16841           pic_flag=$lt_prog_compiler_pic_CXX
16842           compiler_flags=-v
16843           linker_flags=-v
16844           verstring=
16845           output_objdir=.
16846           libname=conftest
16847           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16848           allow_undefined_flag_CXX=
16849           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16850   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16851   ac_status=$?
16852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16853   test $ac_status = 0; }
16854           then
16855             lt_cv_archive_cmds_need_lc_CXX=no
16856           else
16857             lt_cv_archive_cmds_need_lc_CXX=yes
16858           fi
16859           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16860         else
16861           cat conftest.err 1>&5
16862         fi
16863         $RM conftest*
16864
16865 fi
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16867 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16868       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16869       ;;
16870     esac
16871   fi
16872   ;;
16873 esac
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16939 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16940
16941 library_names_spec=
16942 libname_spec='lib$name'
16943 soname_spec=
16944 shrext_cmds=".so"
16945 postinstall_cmds=
16946 postuninstall_cmds=
16947 finish_cmds=
16948 finish_eval=
16949 shlibpath_var=
16950 shlibpath_overrides_runpath=unknown
16951 version_type=none
16952 dynamic_linker="$host_os ld.so"
16953 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16954 need_lib_prefix=unknown
16955 hardcode_into_libs=no
16956
16957 # when you set need_version to no, make sure it does not cause -set_version
16958 # flags to be left without arguments
16959 need_version=unknown
16960
16961 case $host_os in
16962 aix3*)
16963   version_type=linux
16964   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16965   shlibpath_var=LIBPATH
16966
16967   # AIX 3 has no versioning support, so we append a major version to the name.
16968   soname_spec='${libname}${release}${shared_ext}$major'
16969   ;;
16970
16971 aix[4-9]*)
16972   version_type=linux
16973   need_lib_prefix=no
16974   need_version=no
16975   hardcode_into_libs=yes
16976   if test "$host_cpu" = ia64; then
16977     # AIX 5 supports IA64
16978     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16979     shlibpath_var=LD_LIBRARY_PATH
16980   else
16981     # With GCC up to 2.95.x, collect2 would create an import file
16982     # for dependence libraries.  The import file would start with
16983     # the line `#! .'.  This would cause the generated library to
16984     # depend on `.', always an invalid library.  This was fixed in
16985     # development snapshots of GCC prior to 3.0.
16986     case $host_os in
16987       aix4 | aix4.[01] | aix4.[01].*)
16988       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16989            echo ' yes '
16990            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16991         :
16992       else
16993         can_build_shared=no
16994       fi
16995       ;;
16996     esac
16997     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16998     # soname into executable. Probably we can add versioning support to
16999     # collect2, so additional links can be useful in future.
17000     if test "$aix_use_runtimelinking" = yes; then
17001       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17002       # instead of lib<name>.a to let people know that these are not
17003       # typical AIX shared libraries.
17004       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005     else
17006       # We preserve .a as extension for shared libraries through AIX4.2
17007       # and later when we are not doing run time linking.
17008       library_names_spec='${libname}${release}.a $libname.a'
17009       soname_spec='${libname}${release}${shared_ext}$major'
17010     fi
17011     shlibpath_var=LIBPATH
17012   fi
17013   ;;
17014
17015 amigaos*)
17016   case $host_cpu in
17017   powerpc)
17018     # Since July 2007 AmigaOS4 officially supports .so libraries.
17019     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17020     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17021     ;;
17022   m68k)
17023     library_names_spec='$libname.ixlibrary $libname.a'
17024     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17025     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
17026     ;;
17027   esac
17028   ;;
17029
17030 beos*)
17031   library_names_spec='${libname}${shared_ext}'
17032   dynamic_linker="$host_os ld.so"
17033   shlibpath_var=LIBRARY_PATH
17034   ;;
17035
17036 bsdi[45]*)
17037   version_type=linux
17038   need_version=no
17039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040   soname_spec='${libname}${release}${shared_ext}$major'
17041   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17042   shlibpath_var=LD_LIBRARY_PATH
17043   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17044   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17045   # the default ld.so.conf also contains /usr/contrib/lib and
17046   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17047   # libtool to hard-code these into programs
17048   ;;
17049
17050 cygwin* | mingw* | pw32* | cegcc*)
17051   version_type=windows
17052   shrext_cmds=".dll"
17053   need_version=no
17054   need_lib_prefix=no
17055
17056   case $GCC,$cc_basename in
17057   yes,*)
17058     # gcc
17059     library_names_spec='$libname.dll.a'
17060     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17061     postinstall_cmds='base_file=`basename \${file}`~
17062       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17063       dldir=$destdir/`dirname \$dlpath`~
17064       test -d \$dldir || mkdir -p \$dldir~
17065       $install_prog $dir/$dlname \$dldir/$dlname~
17066       chmod a+x \$dldir/$dlname~
17067       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17068         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17069       fi'
17070     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17071       dlpath=$dir/\$dldll~
17072        $RM \$dlpath'
17073     shlibpath_overrides_runpath=yes
17074
17075     case $host_os in
17076     cygwin*)
17077       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17078       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17079
17080       ;;
17081     mingw* | cegcc*)
17082       # MinGW DLLs use traditional 'lib' prefix
17083       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17084       ;;
17085     pw32*)
17086       # pw32 DLLs use 'pw' prefix rather than 'lib'
17087       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17088       ;;
17089     esac
17090     dynamic_linker='Win32 ld.exe'
17091     ;;
17092
17093   *,cl*)
17094     # Native MSVC
17095     libname_spec='$name'
17096     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17097     library_names_spec='${libname}.dll.lib'
17098
17099     case $build_os in
17100     mingw*)
17101       sys_lib_search_path_spec=
17102       lt_save_ifs=$IFS
17103       IFS=';'
17104       for lt_path in $LIB
17105       do
17106         IFS=$lt_save_ifs
17107         # Let DOS variable expansion print the short 8.3 style file name.
17108         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17109         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17110       done
17111       IFS=$lt_save_ifs
17112       # Convert to MSYS style.
17113       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17114       ;;
17115     cygwin*)
17116       # Convert to unix form, then to dos form, then back to unix form
17117       # but this time dos style (no spaces!) so that the unix form looks
17118       # like /cygdrive/c/PROGRA~1:/cygdr...
17119       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17120       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17121       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17122       ;;
17123     *)
17124       sys_lib_search_path_spec="$LIB"
17125       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17126         # It is most probably a Windows format PATH.
17127         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17128       else
17129         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17130       fi
17131       # FIXME: find the short name or the path components, as spaces are
17132       # common. (e.g. "Program Files" -> "PROGRA~1")
17133       ;;
17134     esac
17135
17136     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17137     postinstall_cmds='base_file=`basename \${file}`~
17138       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17139       dldir=$destdir/`dirname \$dlpath`~
17140       test -d \$dldir || mkdir -p \$dldir~
17141       $install_prog $dir/$dlname \$dldir/$dlname'
17142     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17143       dlpath=$dir/\$dldll~
17144        $RM \$dlpath'
17145     shlibpath_overrides_runpath=yes
17146     dynamic_linker='Win32 link.exe'
17147     ;;
17148
17149   *)
17150     # Assume MSVC wrapper
17151     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17152     dynamic_linker='Win32 ld.exe'
17153     ;;
17154   esac
17155   # FIXME: first we should search . and the directory the executable is in
17156   shlibpath_var=PATH
17157   ;;
17158
17159 darwin* | rhapsody*)
17160   dynamic_linker="$host_os dyld"
17161   version_type=darwin
17162   need_lib_prefix=no
17163   need_version=no
17164   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17165   soname_spec='${libname}${release}${major}$shared_ext'
17166   shlibpath_overrides_runpath=yes
17167   shlibpath_var=DYLD_LIBRARY_PATH
17168   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17169
17170   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17171   ;;
17172
17173 dgux*)
17174   version_type=linux
17175   need_lib_prefix=no
17176   need_version=no
17177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17178   soname_spec='${libname}${release}${shared_ext}$major'
17179   shlibpath_var=LD_LIBRARY_PATH
17180   ;;
17181
17182 freebsd1*)
17183   dynamic_linker=no
17184   ;;
17185
17186 freebsd* | dragonfly*)
17187   # DragonFly does not have aout.  When/if they implement a new
17188   # versioning mechanism, adjust this.
17189   if test -x /usr/bin/objformat; then
17190     objformat=`/usr/bin/objformat`
17191   else
17192     case $host_os in
17193     freebsd[123]*) objformat=aout ;;
17194     *) objformat=elf ;;
17195     esac
17196   fi
17197   version_type=freebsd-$objformat
17198   case $version_type in
17199     freebsd-elf*)
17200       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17201       need_version=no
17202       need_lib_prefix=no
17203       ;;
17204     freebsd-*)
17205       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17206       need_version=yes
17207       ;;
17208   esac
17209   shlibpath_var=LD_LIBRARY_PATH
17210   case $host_os in
17211   freebsd2*)
17212     shlibpath_overrides_runpath=yes
17213     ;;
17214   freebsd3.[01]* | freebsdelf3.[01]*)
17215     shlibpath_overrides_runpath=yes
17216     hardcode_into_libs=yes
17217     ;;
17218   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17219   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17220     shlibpath_overrides_runpath=no
17221     hardcode_into_libs=yes
17222     ;;
17223   *) # from 4.6 on, and DragonFly
17224     shlibpath_overrides_runpath=yes
17225     hardcode_into_libs=yes
17226     ;;
17227   esac
17228   ;;
17229
17230 gnu*)
17231   version_type=linux
17232   need_lib_prefix=no
17233   need_version=no
17234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17235   soname_spec='${libname}${release}${shared_ext}$major'
17236   shlibpath_var=LD_LIBRARY_PATH
17237   hardcode_into_libs=yes
17238   ;;
17239
17240 haiku*)
17241   version_type=linux
17242   need_lib_prefix=no
17243   need_version=no
17244   dynamic_linker="$host_os runtime_loader"
17245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17246   soname_spec='${libname}${release}${shared_ext}$major'
17247   shlibpath_var=LIBRARY_PATH
17248   shlibpath_overrides_runpath=yes
17249   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17250   hardcode_into_libs=yes
17251   ;;
17252
17253 hpux9* | hpux10* | hpux11*)
17254   # Give a soname corresponding to the major version so that dld.sl refuses to
17255   # link against other versions.
17256   version_type=sunos
17257   need_lib_prefix=no
17258   need_version=no
17259   case $host_cpu in
17260   ia64*)
17261     shrext_cmds='.so'
17262     hardcode_into_libs=yes
17263     dynamic_linker="$host_os dld.so"
17264     shlibpath_var=LD_LIBRARY_PATH
17265     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17267     soname_spec='${libname}${release}${shared_ext}$major'
17268     if test "X$HPUX_IA64_MODE" = X32; then
17269       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17270     else
17271       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17272     fi
17273     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17274     ;;
17275   hppa*64*)
17276     shrext_cmds='.sl'
17277     hardcode_into_libs=yes
17278     dynamic_linker="$host_os dld.sl"
17279     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17280     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17281     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17282     soname_spec='${libname}${release}${shared_ext}$major'
17283     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17284     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17285     ;;
17286   *)
17287     shrext_cmds='.sl'
17288     dynamic_linker="$host_os dld.sl"
17289     shlibpath_var=SHLIB_PATH
17290     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292     soname_spec='${libname}${release}${shared_ext}$major'
17293     ;;
17294   esac
17295   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17296   postinstall_cmds='chmod 555 $lib'
17297   # or fails outright, so override atomically:
17298   install_override_mode=555
17299   ;;
17300
17301 interix[3-9]*)
17302   version_type=linux
17303   need_lib_prefix=no
17304   need_version=no
17305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17306   soname_spec='${libname}${release}${shared_ext}$major'
17307   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17308   shlibpath_var=LD_LIBRARY_PATH
17309   shlibpath_overrides_runpath=no
17310   hardcode_into_libs=yes
17311   ;;
17312
17313 irix5* | irix6* | nonstopux*)
17314   case $host_os in
17315     nonstopux*) version_type=nonstopux ;;
17316     *)
17317         if test "$lt_cv_prog_gnu_ld" = yes; then
17318                 version_type=linux
17319         else
17320                 version_type=irix
17321         fi ;;
17322   esac
17323   need_lib_prefix=no
17324   need_version=no
17325   soname_spec='${libname}${release}${shared_ext}$major'
17326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17327   case $host_os in
17328   irix5* | nonstopux*)
17329     libsuff= shlibsuff=
17330     ;;
17331   *)
17332     case $LD in # libtool.m4 will add one of these switches to LD
17333     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17334       libsuff= shlibsuff= libmagic=32-bit;;
17335     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17336       libsuff=32 shlibsuff=N32 libmagic=N32;;
17337     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17338       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17339     *) libsuff= shlibsuff= libmagic=never-match;;
17340     esac
17341     ;;
17342   esac
17343   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17344   shlibpath_overrides_runpath=no
17345   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17346   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17347   hardcode_into_libs=yes
17348   ;;
17349
17350 # No shared lib support for Linux oldld, aout, or coff.
17351 linux*oldld* | linux*aout* | linux*coff*)
17352   dynamic_linker=no
17353   ;;
17354
17355 # This must be Linux ELF.
17356 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17357   version_type=linux
17358   need_lib_prefix=no
17359   need_version=no
17360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17361   soname_spec='${libname}${release}${shared_ext}$major'
17362   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17363   shlibpath_var=LD_LIBRARY_PATH
17364   shlibpath_overrides_runpath=no
17365
17366   # Some binutils ld are patched to set DT_RUNPATH
17367   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17368   $as_echo_n "(cached) " >&6
17369 else
17370   lt_cv_shlibpath_overrides_runpath=no
17371     save_LDFLAGS=$LDFLAGS
17372     save_libdir=$libdir
17373     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17374          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17375     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376 /* end confdefs.h.  */
17377
17378 int
17379 main ()
17380 {
17381
17382   ;
17383   return 0;
17384 }
17385 _ACEOF
17386 if ac_fn_cxx_try_link "$LINENO"; then :
17387   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17388   lt_cv_shlibpath_overrides_runpath=yes
17389 fi
17390 fi
17391 rm -f core conftest.err conftest.$ac_objext \
17392     conftest$ac_exeext conftest.$ac_ext
17393     LDFLAGS=$save_LDFLAGS
17394     libdir=$save_libdir
17395
17396 fi
17397
17398   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17399
17400   # This implies no fast_install, which is unacceptable.
17401   # Some rework will be needed to allow for fast_install
17402   # before this can be enabled.
17403   hardcode_into_libs=yes
17404
17405   # Append ld.so.conf contents to the search path
17406   if test -f /etc/ld.so.conf; then
17407     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17408     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17409   fi
17410
17411   # We used to test for /lib/ld.so.1 and disable shared libraries on
17412   # powerpc, because MkLinux only supported shared libraries with the
17413   # GNU dynamic linker.  Since this was broken with cross compilers,
17414   # most powerpc-linux boxes support dynamic linking these days and
17415   # people can always --disable-shared, the test was removed, and we
17416   # assume the GNU/Linux dynamic linker is in use.
17417   dynamic_linker='GNU/Linux ld.so'
17418   ;;
17419
17420 netbsd*)
17421   version_type=sunos
17422   need_lib_prefix=no
17423   need_version=no
17424   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17426     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17427     dynamic_linker='NetBSD (a.out) ld.so'
17428   else
17429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17430     soname_spec='${libname}${release}${shared_ext}$major'
17431     dynamic_linker='NetBSD ld.elf_so'
17432   fi
17433   shlibpath_var=LD_LIBRARY_PATH
17434   shlibpath_overrides_runpath=yes
17435   hardcode_into_libs=yes
17436   ;;
17437
17438 newsos6)
17439   version_type=linux
17440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441   shlibpath_var=LD_LIBRARY_PATH
17442   shlibpath_overrides_runpath=yes
17443   ;;
17444
17445 *nto* | *qnx*)
17446   version_type=qnx
17447   need_lib_prefix=no
17448   need_version=no
17449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17450   soname_spec='${libname}${release}${shared_ext}$major'
17451   shlibpath_var=LD_LIBRARY_PATH
17452   shlibpath_overrides_runpath=no
17453   hardcode_into_libs=yes
17454   dynamic_linker='ldqnx.so'
17455   ;;
17456
17457 openbsd*)
17458   version_type=sunos
17459   sys_lib_dlsearch_path_spec="/usr/lib"
17460   need_lib_prefix=no
17461   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17462   case $host_os in
17463     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17464     *)                          need_version=no  ;;
17465   esac
17466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17467   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17468   shlibpath_var=LD_LIBRARY_PATH
17469   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17470     case $host_os in
17471       openbsd2.[89] | openbsd2.[89].*)
17472         shlibpath_overrides_runpath=no
17473         ;;
17474       *)
17475         shlibpath_overrides_runpath=yes
17476         ;;
17477       esac
17478   else
17479     shlibpath_overrides_runpath=yes
17480   fi
17481   ;;
17482
17483 os2*)
17484   libname_spec='$name'
17485   shrext_cmds=".dll"
17486   need_lib_prefix=no
17487   library_names_spec='$libname${shared_ext} $libname.a'
17488   dynamic_linker='OS/2 ld.exe'
17489   shlibpath_var=LIBPATH
17490   ;;
17491
17492 osf3* | osf4* | osf5*)
17493   version_type=osf
17494   need_lib_prefix=no
17495   need_version=no
17496   soname_spec='${libname}${release}${shared_ext}$major'
17497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17498   shlibpath_var=LD_LIBRARY_PATH
17499   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17500   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17501   ;;
17502
17503 rdos*)
17504   dynamic_linker=no
17505   ;;
17506
17507 solaris*)
17508   version_type=linux
17509   need_lib_prefix=no
17510   need_version=no
17511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17512   soname_spec='${libname}${release}${shared_ext}$major'
17513   shlibpath_var=LD_LIBRARY_PATH
17514   shlibpath_overrides_runpath=yes
17515   hardcode_into_libs=yes
17516   # ldd complains unless libraries are executable
17517   postinstall_cmds='chmod +x $lib'
17518   ;;
17519
17520 sunos4*)
17521   version_type=sunos
17522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17523   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17524   shlibpath_var=LD_LIBRARY_PATH
17525   shlibpath_overrides_runpath=yes
17526   if test "$with_gnu_ld" = yes; then
17527     need_lib_prefix=no
17528   fi
17529   need_version=yes
17530   ;;
17531
17532 sysv4 | sysv4.3*)
17533   version_type=linux
17534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535   soname_spec='${libname}${release}${shared_ext}$major'
17536   shlibpath_var=LD_LIBRARY_PATH
17537   case $host_vendor in
17538     sni)
17539       shlibpath_overrides_runpath=no
17540       need_lib_prefix=no
17541       runpath_var=LD_RUN_PATH
17542       ;;
17543     siemens)
17544       need_lib_prefix=no
17545       ;;
17546     motorola)
17547       need_lib_prefix=no
17548       need_version=no
17549       shlibpath_overrides_runpath=no
17550       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17551       ;;
17552   esac
17553   ;;
17554
17555 sysv4*MP*)
17556   if test -d /usr/nec ;then
17557     version_type=linux
17558     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17559     soname_spec='$libname${shared_ext}.$major'
17560     shlibpath_var=LD_LIBRARY_PATH
17561   fi
17562   ;;
17563
17564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17565   version_type=freebsd-elf
17566   need_lib_prefix=no
17567   need_version=no
17568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17569   soname_spec='${libname}${release}${shared_ext}$major'
17570   shlibpath_var=LD_LIBRARY_PATH
17571   shlibpath_overrides_runpath=yes
17572   hardcode_into_libs=yes
17573   if test "$with_gnu_ld" = yes; then
17574     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17575   else
17576     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17577     case $host_os in
17578       sco3.2v5*)
17579         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17580         ;;
17581     esac
17582   fi
17583   sys_lib_dlsearch_path_spec='/usr/lib'
17584   ;;
17585
17586 tpf*)
17587   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17588   version_type=linux
17589   need_lib_prefix=no
17590   need_version=no
17591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17592   shlibpath_var=LD_LIBRARY_PATH
17593   shlibpath_overrides_runpath=no
17594   hardcode_into_libs=yes
17595   ;;
17596
17597 uts4*)
17598   version_type=linux
17599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17600   soname_spec='${libname}${release}${shared_ext}$major'
17601   shlibpath_var=LD_LIBRARY_PATH
17602   ;;
17603
17604 *)
17605   dynamic_linker=no
17606   ;;
17607 esac
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17609 $as_echo "$dynamic_linker" >&6; }
17610 test "$dynamic_linker" = no && can_build_shared=no
17611
17612 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17613 if test "$GCC" = yes; then
17614   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17615 fi
17616
17617 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17618   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17619 fi
17620 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17621   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17622 fi
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17662 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17663 hardcode_action_CXX=
17664 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17665    test -n "$runpath_var_CXX" ||
17666    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17667
17668   # We can hardcode non-existent directories.
17669   if test "$hardcode_direct_CXX" != no &&
17670      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17671      # have to relink, otherwise we might link with an installed library
17672      # when we should be linking with a yet-to-be-installed one
17673      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17674      test "$hardcode_minus_L_CXX" != no; then
17675     # Linking always hardcodes the temporary library directory.
17676     hardcode_action_CXX=relink
17677   else
17678     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17679     hardcode_action_CXX=immediate
17680   fi
17681 else
17682   # We cannot hardcode anything, or else we can only hardcode existing
17683   # directories.
17684   hardcode_action_CXX=unsupported
17685 fi
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17687 $as_echo "$hardcode_action_CXX" >&6; }
17688
17689 if test "$hardcode_action_CXX" = relink ||
17690    test "$inherit_rpath_CXX" = yes; then
17691   # Fast installation is not supported
17692   enable_fast_install=no
17693 elif test "$shlibpath_overrides_runpath" = yes ||
17694      test "$enable_shared" = no; then
17695   # Fast installation is not necessary
17696   enable_fast_install=needless
17697 fi
17698
17699
17700
17701
17702
17703
17704
17705   fi # test -n "$compiler"
17706
17707   CC=$lt_save_CC
17708   CFLAGS=$lt_save_CFLAGS
17709   LDCXX=$LD
17710   LD=$lt_save_LD
17711   GCC=$lt_save_GCC
17712   with_gnu_ld=$lt_save_with_gnu_ld
17713   lt_cv_path_LDCXX=$lt_cv_path_LD
17714   lt_cv_path_LD=$lt_save_path_LD
17715   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17716   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17717 fi # test "$_lt_caught_CXX_error" != yes
17718
17719 ac_ext=c
17720 ac_cpp='$CPP $CPPFLAGS'
17721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17724
17725
17726
17727
17728 if test "$GCC" = "yes" ; then
17729 #    AC_HAVE_GCC_VERSION(4,0,0,0,
17730 #        [
17731 #        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
17732 #            [Define to enable class visibility control in gcc.])
17733 #        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17734 #        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17735 #        ])
17736     CFLAGS="-Wall $GCC_CFLAGS"
17737     CXXFLAGS="-Wall $GCC_CXXFLAGS"
17738 else
17739 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
17740         case "${host_cpu}-${host_os}" in
17741                 *solaris*)
17742                         if test "$CXX" = "CC" ; then
17743                                 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
17744                         fi
17745                         ;;
17746                 *osf*)
17747                         CXXFLAGS="$CXXFLAGS -D_POSIX_PII_SOCKET"
17748                         ;;
17749         esac
17750 fi
17751
17752 ac_ext=c
17753 ac_cpp='$CPP $CPPFLAGS'
17754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17757
17758
17759 # Checks for typedefs, structures, and compiler characteristics.
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17761 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17762 if test "${ac_cv_c_const+set}" = set; then :
17763   $as_echo_n "(cached) " >&6
17764 else
17765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17766 /* end confdefs.h.  */
17767
17768 int
17769 main ()
17770 {
17771 /* FIXME: Include the comments suggested by Paul. */
17772 #ifndef __cplusplus
17773   /* Ultrix mips cc rejects this.  */
17774   typedef int charset[2];
17775   const charset cs;
17776   /* SunOS 4.1.1 cc rejects this.  */
17777   char const *const *pcpcc;
17778   char **ppc;
17779   /* NEC SVR4.0.2 mips cc rejects this.  */
17780   struct point {int x, y;};
17781   static struct point const zero = {0,0};
17782   /* AIX XL C 1.02.0.0 rejects this.
17783      It does not let you subtract one const X* pointer from another in
17784      an arm of an if-expression whose if-part is not a constant
17785      expression */
17786   const char *g = "string";
17787   pcpcc = &g + (g ? g-g : 0);
17788   /* HPUX 7.0 cc rejects these. */
17789   ++pcpcc;
17790   ppc = (char**) pcpcc;
17791   pcpcc = (char const *const *) ppc;
17792   { /* SCO 3.2v4 cc rejects this.  */
17793     char *t;
17794     char const *s = 0 ? (char *) 0 : (char const *) 0;
17795
17796     *t++ = 0;
17797     if (s) return 0;
17798   }
17799   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17800     int x[] = {25, 17};
17801     const int *foo = &x[0];
17802     ++foo;
17803   }
17804   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17805     typedef const int *iptr;
17806     iptr p = 0;
17807     ++p;
17808   }
17809   { /* AIX XL C 1.02.0.0 rejects this saying
17810        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17811     struct s { int j; const int *ap[3]; };
17812     struct s *b; b->j = 5;
17813   }
17814   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17815     const int foo = 10;
17816     if (!foo) return 0;
17817   }
17818   return !cs[0] && !zero.x;
17819 #endif
17820
17821   ;
17822   return 0;
17823 }
17824 _ACEOF
17825 if ac_fn_c_try_compile "$LINENO"; then :
17826   ac_cv_c_const=yes
17827 else
17828   ac_cv_c_const=no
17829 fi
17830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17831 fi
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17833 $as_echo "$ac_cv_c_const" >&6; }
17834 if test $ac_cv_c_const = no; then
17835
17836 $as_echo "#define const /**/" >>confdefs.h
17837
17838 fi
17839
17840 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17841 if test "x$ac_cv_type_size_t" = x""yes; then :
17842
17843 else
17844
17845 cat >>confdefs.h <<_ACEOF
17846 #define size_t unsigned int
17847 _ACEOF
17848
17849 fi
17850
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17852 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17853 if test "${ac_cv_struct_tm+set}" = set; then :
17854   $as_echo_n "(cached) " >&6
17855 else
17856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857 /* end confdefs.h.  */
17858 #include <sys/types.h>
17859 #include <time.h>
17860
17861 int
17862 main ()
17863 {
17864 struct tm tm;
17865                                      int *p = &tm.tm_sec;
17866                                      return !p;
17867   ;
17868   return 0;
17869 }
17870 _ACEOF
17871 if ac_fn_c_try_compile "$LINENO"; then :
17872   ac_cv_struct_tm=time.h
17873 else
17874   ac_cv_struct_tm=sys/time.h
17875 fi
17876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17877 fi
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17879 $as_echo "$ac_cv_struct_tm" >&6; }
17880 if test $ac_cv_struct_tm = sys/time.h; then
17881
17882 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17883
17884 fi
17885
17886
17887 # Checks for library functions.
17888 for ac_func in strftime
17889 do :
17890   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
17891 if test "x$ac_cv_func_strftime" = x""yes; then :
17892   cat >>confdefs.h <<_ACEOF
17893 #define HAVE_STRFTIME 1
17894 _ACEOF
17895
17896 else
17897   # strftime is in -lintl on SCO UNIX.
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
17899 $as_echo_n "checking for strftime in -lintl... " >&6; }
17900 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
17901   $as_echo_n "(cached) " >&6
17902 else
17903   ac_check_lib_save_LIBS=$LIBS
17904 LIBS="-lintl  $LIBS"
17905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17906 /* end confdefs.h.  */
17907
17908 /* Override any GCC internal prototype to avoid an error.
17909    Use char because int might match the return type of a GCC
17910    builtin and then its argument prototype would still apply.  */
17911 #ifdef __cplusplus
17912 extern "C"
17913 #endif
17914 char strftime ();
17915 int
17916 main ()
17917 {
17918 return strftime ();
17919   ;
17920   return 0;
17921 }
17922 _ACEOF
17923 if ac_fn_c_try_link "$LINENO"; then :
17924   ac_cv_lib_intl_strftime=yes
17925 else
17926   ac_cv_lib_intl_strftime=no
17927 fi
17928 rm -f core conftest.err conftest.$ac_objext \
17929     conftest$ac_exeext conftest.$ac_ext
17930 LIBS=$ac_check_lib_save_LIBS
17931 fi
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
17933 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
17934 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
17935   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
17936
17937 LIBS="-lintl $LIBS"
17938 fi
17939
17940 fi
17941 done
17942
17943 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
17944 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
17945   ac_have_decl=1
17946 else
17947   ac_have_decl=0
17948 fi
17949
17950 cat >>confdefs.h <<_ACEOF
17951 #define HAVE_DECL_STRERROR_R $ac_have_decl
17952 _ACEOF
17953
17954 for ac_func in strerror_r
17955 do :
17956   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
17957 if test "x$ac_cv_func_strerror_r" = x""yes; then :
17958   cat >>confdefs.h <<_ACEOF
17959 #define HAVE_STRERROR_R 1
17960 _ACEOF
17961
17962 fi
17963 done
17964
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
17966 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
17967 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
17968   $as_echo_n "(cached) " >&6
17969 else
17970
17971     ac_cv_func_strerror_r_char_p=no
17972     if test $ac_cv_have_decl_strerror_r = yes; then
17973       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17974 /* end confdefs.h.  */
17975 $ac_includes_default
17976 int
17977 main ()
17978 {
17979
17980           char buf[100];
17981           char x = *strerror_r (0, buf, sizeof buf);
17982           char *p = strerror_r (0, buf, sizeof buf);
17983           return !p || x;
17984
17985   ;
17986   return 0;
17987 }
17988 _ACEOF
17989 if ac_fn_c_try_compile "$LINENO"; then :
17990   ac_cv_func_strerror_r_char_p=yes
17991 fi
17992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17993     else
17994       # strerror_r is not declared.  Choose between
17995       # systems that have relatively inaccessible declarations for the
17996       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
17997       # former has a strerror_r that returns char*, while the latter
17998       # has a strerror_r that returns `int'.
17999       # This test should segfault on the DEC system.
18000       if test "$cross_compiling" = yes; then :
18001   :
18002 else
18003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004 /* end confdefs.h.  */
18005 $ac_includes_default
18006         extern char *strerror_r ();
18007 int
18008 main ()
18009 {
18010 char buf[100];
18011           char x = *strerror_r (0, buf, sizeof buf);
18012           return ! isalpha (x);
18013   ;
18014   return 0;
18015 }
18016 _ACEOF
18017 if ac_fn_c_try_run "$LINENO"; then :
18018   ac_cv_func_strerror_r_char_p=yes
18019 fi
18020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18021   conftest.$ac_objext conftest.beam conftest.$ac_ext
18022 fi
18023
18024     fi
18025
18026 fi
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
18028 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
18029 if test $ac_cv_func_strerror_r_char_p = yes; then
18030
18031 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
18032
18033 fi
18034
18035 for ac_header in sys/utsname.h grp.h pwd.h
18036 do :
18037   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18038 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18039 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18040   cat >>confdefs.h <<_ACEOF
18041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18042 _ACEOF
18043
18044 fi
18045
18046 done
18047
18048 for ac_func in strchr strdup strstr timegm gmtime_r strtok_r strcasecmp getpwnam getgrnam
18049 do :
18050   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18051 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18052 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18053   cat >>confdefs.h <<_ACEOF
18054 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18055 _ACEOF
18056
18057 fi
18058 done
18059
18060
18061 # checks for pthreads
18062
18063
18064 ac_ext=c
18065 ac_cpp='$CPP $CPPFLAGS'
18066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18069
18070 acx_pthread_ok=no
18071
18072 # We used to check for pthread.h first, but this fails if pthread.h
18073 # requires special compiler flags (e.g. on True64 or Sequent).
18074 # It gets checked for in the link test anyway.
18075
18076 # First of all, check if the user has set any of the PTHREAD_LIBS,
18077 # etcetera environment variables, and if threads linking works using
18078 # them:
18079 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18080         save_CFLAGS="$CFLAGS"
18081         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18082         save_LIBS="$LIBS"
18083         LIBS="$PTHREAD_LIBS $LIBS"
18084         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18085 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18086         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h.  */
18088
18089 /* Override any GCC internal prototype to avoid an error.
18090    Use char because int might match the return type of a GCC
18091    builtin and then its argument prototype would still apply.  */
18092 #ifdef __cplusplus
18093 extern "C"
18094 #endif
18095 char pthread_join ();
18096 int
18097 main ()
18098 {
18099 return pthread_join ();
18100   ;
18101   return 0;
18102 }
18103 _ACEOF
18104 if ac_fn_c_try_link "$LINENO"; then :
18105   acx_pthread_ok=yes
18106 fi
18107 rm -f core conftest.err conftest.$ac_objext \
18108     conftest$ac_exeext conftest.$ac_ext
18109         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18110 $as_echo "$acx_pthread_ok" >&6; }
18111         if test x"$acx_pthread_ok" = xno; then
18112                 PTHREAD_LIBS=""
18113                 PTHREAD_CFLAGS=""
18114         fi
18115         LIBS="$save_LIBS"
18116         CFLAGS="$save_CFLAGS"
18117 fi
18118
18119 # We must check for the threads library under a number of different
18120 # names; the ordering is very important because some systems
18121 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18122 # libraries is broken (non-POSIX).
18123
18124 # Create a list of thread flags to try.  Items starting with a "-" are
18125 # C compiler flags, and other items are library names, except for "none"
18126 # which indicates that we try without any flags at all, and "pthread-config"
18127 # which is a program returning the flags for the Pth emulation library.
18128
18129 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18130
18131 # The ordering *is* (sometimes) important.  Some notes on the
18132 # individual items follow:
18133
18134 # pthreads: AIX (must check this before -lpthread)
18135 # none: in case threads are in libc; should be tried before -Kthread and
18136 #       other compiler flags to prevent continual compiler warnings
18137 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18138 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18139 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18140 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18141 # -pthreads: Solaris/gcc
18142 # -mthreads: Mingw32/gcc, Lynx/gcc
18143 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18144 #      doesn't hurt to check since this sometimes defines pthreads too;
18145 #      also defines -D_REENTRANT)
18146 #      ... -mt is also the pthreads flag for HP/aCC
18147 # pthread: Linux, etcetera
18148 # --thread-safe: KAI C++
18149 # pthread-config: use pthread-config program (for GNU Pth library)
18150
18151 case "${host_cpu}-${host_os}" in
18152         *solaris*)
18153
18154         # On Solaris (at least, for some versions), libc contains stubbed
18155         # (non-functional) versions of the pthreads routines, so link-based
18156         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
18157         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
18158         # a function called by this macro, so we could check for that, but
18159         # who knows whether they'll stub that too in a future libc.)  So,
18160         # we'll just look for -pthreads and -lpthread first:
18161
18162         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
18163         ;;
18164 esac
18165
18166 if test x"$acx_pthread_ok" = xno; then
18167 for flag in $acx_pthread_flags; do
18168
18169         case $flag in
18170                 none)
18171                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18172 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18173                 ;;
18174
18175                 -*)
18176                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18177 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18178                 PTHREAD_CFLAGS="$flag"
18179                 ;;
18180
18181                 pthread-config)
18182                 # Extract the first word of "pthread-config", so it can be a program name with args.
18183 set dummy pthread-config; ac_word=$2
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18185 $as_echo_n "checking for $ac_word... " >&6; }
18186 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
18187   $as_echo_n "(cached) " >&6
18188 else
18189   if test -n "$acx_pthread_config"; then
18190   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18191 else
18192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18193 for as_dir in $PATH
18194 do
18195   IFS=$as_save_IFS
18196   test -z "$as_dir" && as_dir=.
18197     for ac_exec_ext in '' $ac_executable_extensions; do
18198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18199     ac_cv_prog_acx_pthread_config="yes"
18200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18201     break 2
18202   fi
18203 done
18204   done
18205 IFS=$as_save_IFS
18206
18207   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18208 fi
18209 fi
18210 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18211 if test -n "$acx_pthread_config"; then
18212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
18213 $as_echo "$acx_pthread_config" >&6; }
18214 else
18215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18216 $as_echo "no" >&6; }
18217 fi
18218
18219
18220                 if test x"$acx_pthread_config" = xno; then continue; fi
18221                 PTHREAD_CFLAGS="`pthread-config --cflags`"
18222                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18223                 ;;
18224
18225                 *)
18226                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18227 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18228                 PTHREAD_LIBS="-l$flag"
18229                 ;;
18230         esac
18231
18232         save_LIBS="$LIBS"
18233         save_CFLAGS="$CFLAGS"
18234         LIBS="$PTHREAD_LIBS $LIBS"
18235         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18236
18237         # Check for various functions.  We must include pthread.h,
18238         # since some functions may be macros.  (On the Sequent, we
18239         # need a special flag -Kthread to make this header compile.)
18240         # We check for pthread_join because it is in -lpthread on IRIX
18241         # while pthread_create is in libc.  We check for pthread_attr_init
18242         # due to DEC craziness with -lpthreads.  We check for
18243         # pthread_cleanup_push because it is one of the few pthread
18244         # functions on Solaris that doesn't have a non-functional libc stub.
18245         # We try pthread_create on general principles.
18246         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h.  */
18248 #include <pthread.h>
18249 int
18250 main ()
18251 {
18252 pthread_t th; pthread_join(th, 0);
18253                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
18254                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18255   ;
18256   return 0;
18257 }
18258 _ACEOF
18259 if ac_fn_c_try_link "$LINENO"; then :
18260   acx_pthread_ok=yes
18261 fi
18262 rm -f core conftest.err conftest.$ac_objext \
18263     conftest$ac_exeext conftest.$ac_ext
18264
18265         LIBS="$save_LIBS"
18266         CFLAGS="$save_CFLAGS"
18267
18268         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18269 $as_echo "$acx_pthread_ok" >&6; }
18270         if test "x$acx_pthread_ok" = xyes; then
18271                 break;
18272         fi
18273
18274         PTHREAD_LIBS=""
18275         PTHREAD_CFLAGS=""
18276 done
18277 fi
18278
18279 # Various other checks:
18280 if test "x$acx_pthread_ok" = xyes; then
18281         save_LIBS="$LIBS"
18282         LIBS="$PTHREAD_LIBS $LIBS"
18283         save_CFLAGS="$CFLAGS"
18284         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18285
18286         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18287         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18288 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18289         attr_name=unknown
18290         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18291             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18292 /* end confdefs.h.  */
18293 #include <pthread.h>
18294 int
18295 main ()
18296 {
18297 int attr=$attr; return attr;
18298   ;
18299   return 0;
18300 }
18301 _ACEOF
18302 if ac_fn_c_try_link "$LINENO"; then :
18303   attr_name=$attr; break
18304 fi
18305 rm -f core conftest.err conftest.$ac_objext \
18306     conftest$ac_exeext conftest.$ac_ext
18307         done
18308         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18309 $as_echo "$attr_name" >&6; }
18310         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18311
18312 cat >>confdefs.h <<_ACEOF
18313 #define PTHREAD_CREATE_JOINABLE $attr_name
18314 _ACEOF
18315
18316         fi
18317
18318         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18319 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18320         flag=no
18321         case "${host_cpu}-${host_os}" in
18322                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
18323                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
18324                 *solaris*)
18325                 if test "$GCC" = "yes"; then
18326                     flag="-D_REENTRANT"
18327                 else
18328                     flag="-mt -D_REENTRANT"
18329                 fi
18330                 ;;
18331         esac
18332         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18333 $as_echo "${flag}" >&6; }
18334         if test "x$flag" != xno; then
18335             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18336         fi
18337
18338         LIBS="$save_LIBS"
18339         CFLAGS="$save_CFLAGS"
18340
18341         # More AIX lossage: must compile with xlc_r or cc_r
18342         if test x"$GCC" != xyes; then
18343           for ac_prog in xlc_r cc_r
18344 do
18345   # Extract the first word of "$ac_prog", so it can be a program name with args.
18346 set dummy $ac_prog; ac_word=$2
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18348 $as_echo_n "checking for $ac_word... " >&6; }
18349 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
18350   $as_echo_n "(cached) " >&6
18351 else
18352   if test -n "$PTHREAD_CC"; then
18353   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18354 else
18355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18356 for as_dir in $PATH
18357 do
18358   IFS=$as_save_IFS
18359   test -z "$as_dir" && as_dir=.
18360     for ac_exec_ext in '' $ac_executable_extensions; do
18361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18362     ac_cv_prog_PTHREAD_CC="$ac_prog"
18363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18364     break 2
18365   fi
18366 done
18367   done
18368 IFS=$as_save_IFS
18369
18370 fi
18371 fi
18372 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18373 if test -n "$PTHREAD_CC"; then
18374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18375 $as_echo "$PTHREAD_CC" >&6; }
18376 else
18377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18378 $as_echo "no" >&6; }
18379 fi
18380
18381
18382   test -n "$PTHREAD_CC" && break
18383 done
18384 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
18385
18386         else
18387           PTHREAD_CC=$CC
18388         fi
18389 else
18390         PTHREAD_CC="$CC"
18391 fi
18392
18393
18394
18395
18396
18397 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18398 if test x"$acx_pthread_ok" = xyes; then
18399         enable_threads="pthread"
18400         :
18401 else
18402         acx_pthread_ok=no
18403         enable_threads="no"
18404 fi
18405 ac_ext=c
18406 ac_cpp='$CPP $CPPFLAGS'
18407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18410
18411
18412 if test $enable_threads != "pthread"; then
18413     as_fn_error $? "unable to find pthreads, currently this is required" "$LINENO" 5
18414 else
18415
18416 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18417
18418     LIBS="$PTHREAD_LIBS $LIBS"
18419     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
18420     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
18421 fi
18422
18423 # OpenSSL settings
18424
18425 # Check whether --with-openssl was given.
18426 if test "${with_openssl+set}" = set; then :
18427   withval=$with_openssl; if test x_$with_openssl != x_/usr; then
18428         SSLFLAGS="-I${with_openssl}/include"
18429     fi
18430 fi
18431
18432
18433 if test "x$with_openssl" = "x" ; then
18434     # Extract the first word of "pkg-config", so it can be a program name with args.
18435 set dummy pkg-config; ac_word=$2
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18437 $as_echo_n "checking for $ac_word... " >&6; }
18438 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18439   $as_echo_n "(cached) " >&6
18440 else
18441   case $PKG_CONFIG in
18442   [\\/]* | ?:[\\/]*)
18443   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18444   ;;
18445   *)
18446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18447 for as_dir in $PATH
18448 do
18449   IFS=$as_save_IFS
18450   test -z "$as_dir" && as_dir=.
18451     for ac_exec_ext in '' $ac_executable_extensions; do
18452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18453     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18455     break 2
18456   fi
18457 done
18458   done
18459 IFS=$as_save_IFS
18460
18461   ;;
18462 esac
18463 fi
18464 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18465 if test -n "$PKG_CONFIG"; then
18466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18467 $as_echo "$PKG_CONFIG" >&6; }
18468 else
18469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18470 $as_echo "no" >&6; }
18471 fi
18472
18473
18474     if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
18475         if pkg-config openssl ; then
18476             SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
18477         else
18478             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
18479 $as_echo "$as_me: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
18480         fi
18481     fi
18482 fi
18483
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL cflags" >&5
18485 $as_echo_n "checking for OpenSSL cflags... " >&6; }
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLFLAGS" >&5
18487 $as_echo "$SSLFLAGS" >&6; }
18488 CPPFLAGS="$SSLFLAGS $CPPFLAGS"
18489
18490 ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
18491 if test "x$ac_cv_header_openssl_x509_h" = x""yes; then :
18492
18493 else
18494   as_fn_error $? "unable to find openssl header files" "$LINENO" 5
18495 fi
18496
18497
18498
18499 ac_ext=cpp
18500 ac_cpp='$CXXCPP $CPPFLAGS'
18501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18504
18505
18506 # C++ requirements
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
18508 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
18509 if test "${ac_cv_cxx_namespaces+set}" = set; then :
18510   $as_echo_n "(cached) " >&6
18511 else
18512
18513  ac_ext=cpp
18514 ac_cpp='$CXXCPP $CPPFLAGS'
18515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18518
18519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18520 /* end confdefs.h.  */
18521 namespace Outer { namespace Inner { int i = 0; }}
18522 int
18523 main ()
18524 {
18525 using namespace Outer::Inner; return i;
18526   ;
18527   return 0;
18528 }
18529 _ACEOF
18530 if ac_fn_cxx_try_compile "$LINENO"; then :
18531   ac_cv_cxx_namespaces=yes
18532 else
18533   ac_cv_cxx_namespaces=no
18534 fi
18535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18536  ac_ext=cpp
18537 ac_cpp='$CXXCPP $CPPFLAGS'
18538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18541
18542
18543 fi
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
18545 $as_echo "$ac_cv_cxx_namespaces" >&6; }
18546 if test "$ac_cv_cxx_namespaces" = yes; then
18547
18548 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
18549
18550 fi
18551
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Standard Template Library" >&5
18553 $as_echo_n "checking whether the compiler supports Standard Template Library... " >&6; }
18554 if test "${ac_cv_cxx_have_stl+set}" = set; then :
18555   $as_echo_n "(cached) " >&6
18556 else
18557
18558  ac_ext=cpp
18559 ac_cpp='$CXXCPP $CPPFLAGS'
18560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18563
18564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18565 /* end confdefs.h.  */
18566 #include <list>
18567 #include <deque>
18568 #ifdef HAVE_NAMESPACES
18569 using namespace std;
18570 #endif
18571 int
18572 main ()
18573 {
18574 list<int> x; x.push_back(5);
18575 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
18576   ;
18577   return 0;
18578 }
18579 _ACEOF
18580 if ac_fn_cxx_try_compile "$LINENO"; then :
18581   ac_cv_cxx_have_stl=yes
18582 else
18583   ac_cv_cxx_have_stl=no
18584 fi
18585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18586  ac_ext=cpp
18587 ac_cpp='$CXXCPP $CPPFLAGS'
18588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18591
18592
18593 fi
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_stl" >&5
18595 $as_echo "$ac_cv_cxx_have_stl" >&6; }
18596 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
18597   as_fn_error $? "C++ Standard Template Libary unsupported" "$LINENO" 5
18598 fi
18599
18600
18601 # Thank you Solaris, really.
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime_r" >&5
18603 $as_echo_n "checking for ctime_r... " >&6; }
18604 if test -z "$ac_cv_ctime_args"; then
18605     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18606 /* end confdefs.h.  */
18607 #include <time.h>
18608 int
18609 main ()
18610 {
18611 time_t clock; char buf[26]; ctime_r(&clock, buf);
18612   ;
18613   return 0;
18614 }
18615 _ACEOF
18616 if ac_fn_cxx_try_compile "$LINENO"; then :
18617   ac_cv_ctime_args=2
18618 fi
18619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18620
18621     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18622 /* end confdefs.h.  */
18623 #include <time.h>
18624 int
18625 main ()
18626 {
18627 time_t clock; char buf[26]; ctime_r(&clock, buf, 26);
18628   ;
18629   return 0;
18630 }
18631 _ACEOF
18632 if ac_fn_cxx_try_compile "$LINENO"; then :
18633   ac_cv_ctime_args=3
18634 fi
18635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18636 fi
18637 if test -z "$ac_cv_ctime_args"; then
18638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18639 $as_echo "no" >&6; }
18640 else
18641     if test "$ac_cv_ctime_args" = 2; then
18642
18643 $as_echo "#define HAVE_CTIME_R_2 1" >>confdefs.h
18644
18645     elif test "$ac_cv_ctime_args" = 3; then
18646
18647 $as_echo "#define HAVE_CTIME_R_3 1" >>confdefs.h
18648
18649     fi
18650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, and it takes $ac_cv_ctime_args arguments" >&5
18651 $as_echo "yes, and it takes $ac_cv_ctime_args arguments" >&6; }
18652 fi
18653
18654 # log4shib settings (favor this version over the log4cpp code)
18655 # Extract the first word of "log4shib-config", so it can be a program name with args.
18656 set dummy log4shib-config; ac_word=$2
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18658 $as_echo_n "checking for $ac_word... " >&6; }
18659 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then :
18660   $as_echo_n "(cached) " >&6
18661 else
18662   case $LOG4SHIB_CONFIG in
18663   [\\/]* | ?:[\\/]*)
18664   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
18665   ;;
18666   *)
18667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18668 for as_dir in $PATH
18669 do
18670   IFS=$as_save_IFS
18671   test -z "$as_dir" && as_dir=.
18672     for ac_exec_ext in '' $ac_executable_extensions; do
18673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18674     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18676     break 2
18677   fi
18678 done
18679   done
18680 IFS=$as_save_IFS
18681
18682   ;;
18683 esac
18684 fi
18685 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
18686 if test -n "$LOG4SHIB_CONFIG"; then
18687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4SHIB_CONFIG" >&5
18688 $as_echo "$LOG4SHIB_CONFIG" >&6; }
18689 else
18690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18691 $as_echo "no" >&6; }
18692 fi
18693
18694
18695
18696 # Check whether --with-log4shib was given.
18697 if test "${with_log4shib+set}" = set; then :
18698   withval=$with_log4shib;
18699     LOG4SHIB_CONFIG="${with_log4shib}"
18700     if ! test -f "${LOG4SHIB_CONFIG}"; then
18701         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
18702     fi
18703
18704 fi
18705
18706 if test -f "${LOG4SHIB_CONFIG}" ; then
18707     LIBS="`${LOG4SHIB_CONFIG} --libs` $LIBS"
18708     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
18709
18710 ac_fn_cxx_check_header_mongrel "$LINENO" "log4shib/CategoryStream.hh" "ac_cv_header_log4shib_CategoryStream_hh" "$ac_includes_default"
18711 if test "x$ac_cv_header_log4shib_CategoryStream_hh" = x""yes; then :
18712
18713 else
18714   as_fn_error $? "unable to find log4shib header files" "$LINENO" 5
18715 fi
18716
18717
18718     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719 /* end confdefs.h.  */
18720 #include <log4shib/Category.hh>
18721 #include <log4shib/CategoryStream.hh>
18722 int
18723 main ()
18724 {
18725 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
18726   ;
18727   return 0;
18728 }
18729 _ACEOF
18730 if ac_fn_cxx_try_link "$LINENO"; then :
18731
18732 $as_echo "#define SHIBSP_LOG4SHIB 1" >>confdefs.h
18733
18734 else
18735   as_fn_error $? "unable to link with log4shib" "$LINENO" 5
18736 fi
18737 rm -f core conftest.err conftest.$ac_objext \
18738     conftest$ac_exeext conftest.$ac_ext
18739 else
18740     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
18741 $as_echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
18742     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will look for original log4cpp library" >&5
18743 $as_echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
18744
18745     # log4cpp settings
18746     # Extract the first word of "log4cpp-config", so it can be a program name with args.
18747 set dummy log4cpp-config; ac_word=$2
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18749 $as_echo_n "checking for $ac_word... " >&6; }
18750 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then :
18751   $as_echo_n "(cached) " >&6
18752 else
18753   case $LOG4CPP_CONFIG in
18754   [\\/]* | ?:[\\/]*)
18755   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
18756   ;;
18757   *)
18758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18759 for as_dir in $PATH
18760 do
18761   IFS=$as_save_IFS
18762   test -z "$as_dir" && as_dir=.
18763     for ac_exec_ext in '' $ac_executable_extensions; do
18764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18765     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18767     break 2
18768   fi
18769 done
18770   done
18771 IFS=$as_save_IFS
18772
18773   ;;
18774 esac
18775 fi
18776 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
18777 if test -n "$LOG4CPP_CONFIG"; then
18778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4CPP_CONFIG" >&5
18779 $as_echo "$LOG4CPP_CONFIG" >&6; }
18780 else
18781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18782 $as_echo "no" >&6; }
18783 fi
18784
18785
18786
18787 # Check whether --with-log4cpp was given.
18788 if test "${with_log4cpp+set}" = set; then :
18789   withval=$with_log4cpp;
18790         LOG4CPP_CONFIG="${with_log4cpp}"
18791         if ! test -f "${LOG4CPP_CONFIG}"; then
18792             LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
18793         fi
18794
18795 fi
18796
18797     if test -f "${LOG4CPP_CONFIG}"; then
18798         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&5
18799 $as_echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
18800         LIBS="`${LOG4CPP_CONFIG} --libs` $LIBS"
18801         CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
18802         ac_fn_cxx_check_header_mongrel "$LINENO" "log4cpp/CategoryStream.hh" "ac_cv_header_log4cpp_CategoryStream_hh" "$ac_includes_default"
18803 if test "x$ac_cv_header_log4cpp_CategoryStream_hh" = x""yes; then :
18804
18805 else
18806   as_fn_error $? "unable to find log4cpp header files" "$LINENO" 5
18807 fi
18808
18809
18810         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18811 /* end confdefs.h.  */
18812 #include <log4cpp/Category.hh>
18813 #include <log4cpp/CategoryStream.hh>
18814 int
18815 main ()
18816 {
18817 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
18818   ;
18819   return 0;
18820 }
18821 _ACEOF
18822 if ac_fn_cxx_try_link "$LINENO"; then :
18823
18824 $as_echo "#define SHIBSP_LOG4CPP 1" >>confdefs.h
18825
18826 else
18827   as_fn_error $? "unable to link with log4cpp, need version 1.0 or later" "$LINENO" 5
18828 fi
18829 rm -f core conftest.err conftest.$ac_objext \
18830     conftest$ac_exeext conftest.$ac_ext
18831     else
18832         as_fn_error $? "log4cpp-config not found, may need to use --with-log4cpp option" "$LINENO" 5
18833     fi
18834 fi
18835
18836 # Xerces settings
18837
18838 # Check whether --with-xerces was given.
18839 if test "${with_xerces+set}" = set; then :
18840   withval=$with_xerces; if test x_$with_xerces != x_/usr; then
18841         LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
18842         CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
18843     fi
18844 fi
18845
18846 LIBS="-lxerces-c $LIBS"
18847 ac_fn_cxx_check_header_mongrel "$LINENO" "xercesc/dom/DOM.hpp" "ac_cv_header_xercesc_dom_DOM_hpp" "$ac_includes_default"
18848 if test "x$ac_cv_header_xercesc_dom_DOM_hpp" = x""yes; then :
18849
18850 else
18851   as_fn_error $? "unable to find xerces header files" "$LINENO" 5
18852 fi
18853
18854
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Xerces version" >&5
18856 $as_echo_n "checking Xerces version... " >&6; }
18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h.  */
18859 #include <xercesc/util/XercesVersion.hpp>
18860 int
18861 main ()
18862 {
18863 #if  _XERCES_VERSION >= 20700
18864 int i = 0;
18865 #else
18866 #error version 2.7.0 or above required
18867 #endif
18868   ;
18869   return 0;
18870 }
18871 _ACEOF
18872 if ac_fn_cxx_try_cpp "$LINENO"; then :
18873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
18874 $as_echo "OK" >&6; }
18875 else
18876   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18878 as_fn_error $? "Xerces-C v2.7.0 or higher is required, v3.x preferred
18879 See \`config.log' for more details" "$LINENO" 5 ; }
18880 fi
18881 rm -f conftest.err conftest.i conftest.$ac_ext
18882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18883 /* end confdefs.h.  */
18884 #include <xercesc/util/PlatformUtils.hpp>
18885 int
18886 main ()
18887 {
18888 xercesc::XMLPlatformUtils::Initialize()
18889   ;
18890   return 0;
18891 }
18892 _ACEOF
18893 if ac_fn_cxx_try_link "$LINENO"; then :
18894
18895 else
18896   as_fn_error $? "unable to link with Xerces" "$LINENO" 5
18897 fi
18898 rm -f core conftest.err conftest.$ac_objext \
18899     conftest$ac_exeext conftest.$ac_ext
18900
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces XMLString::release(XMLByte**) exists" >&5
18902 $as_echo_n "checking whether Xerces XMLString::release(XMLByte**) exists... " >&6; }
18903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18904 /* end confdefs.h.  */
18905 #include <xercesc/util/XMLString.hpp>
18906 int
18907 main ()
18908 {
18909 using namespace XERCES_CPP_NAMESPACE; XMLByte* buf=NULL; XMLString::release(&buf);
18910   ;
18911   return 0;
18912 }
18913 _ACEOF
18914 if ac_fn_cxx_try_compile "$LINENO"; then :
18915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18916 $as_echo "yes" >&6; }
18917 $as_echo "#define SHIBSP_XERCESC_HAS_XMLBYTE_RELEASE 1" >>confdefs.h
18918
18919 else
18920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18921 $as_echo "no" >&6; }
18922 fi
18923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18924
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces DOMNodeFilter API returns a short" >&5
18926 $as_echo_n "checking whether Xerces DOMNodeFilter API returns a short... " >&6; }
18927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18928 /* end confdefs.h.  */
18929 #include <xercesc/dom/DOM.hpp>
18930 int
18931 main ()
18932 {
18933 using namespace XERCES_CPP_NAMESPACE;
18934       class Blocker : public DOMNodeFilter {
18935       public:
18936         short acceptNode(const DOMNode* node) const {
18937             return FILTER_REJECT;
18938         }
18939       };
18940       static Blocker g_Blocker;
18941
18942   ;
18943   return 0;
18944 }
18945 _ACEOF
18946 if ac_fn_cxx_try_compile "$LINENO"; then :
18947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18948 $as_echo "yes" >&6; }
18949 $as_echo "#define SHIBSP_XERCESC_SHORT_ACCEPTNODE 1" >>confdefs.h
18950
18951 else
18952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18953 $as_echo "no" >&6; }
18954 fi
18955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18956
18957 # XML-Security settings
18958
18959 # Check whether --with-xmlsec was given.
18960 if test "${with_xmlsec+set}" = set; then :
18961   withval=$with_xmlsec;
18962 else
18963   with_xmlsec=/usr
18964 fi
18965
18966
18967 if test x_$with_xmlsec != x_/usr; then
18968     LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
18969     CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
18970 fi
18971 XMLSEC_LIBS="-lxml-security-c $XMLSEC_LIBS"
18972
18973 # save and append master libs
18974 save_LIBS="$LIBS"
18975 LIBS="$XMLSEC_LIBS $LIBS"
18976
18977 ac_fn_cxx_check_header_mongrel "$LINENO" "xsec/utils/XSECPlatformUtils.hpp" "ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" "$ac_includes_default"
18978 if test "x$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" = x""yes; then :
18979
18980 else
18981   as_fn_error $? "unable to find XML-Security-C header files" "$LINENO" 5
18982 fi
18983
18984
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML-Security-C version" >&5
18986 $as_echo_n "checking XML-Security-C version... " >&6; }
18987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18988 /* end confdefs.h.  */
18989 #include <xsec/utils/XSECPlatformUtils.hpp>
18990 int
18991 main ()
18992 {
18993 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
18994 int i = 0;
18995 #else
18996 #error need version 1.4.0 or later
18997 #endif
18998   ;
18999   return 0;
19000 }
19001 _ACEOF
19002 if ac_fn_cxx_try_cpp "$LINENO"; then :
19003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
19004 $as_echo "OK" >&6; }
19005 else
19006   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19008 as_fn_error $? "XML-Security-C version 1.4.0 or greater is required.
19009 See \`config.log' for more details" "$LINENO" 5 ; }
19010 fi
19011 rm -f conftest.err conftest.i conftest.$ac_ext
19012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19013 /* end confdefs.h.  */
19014 #include <xsec/utils/XSECPlatformUtils.hpp>
19015 int
19016 main ()
19017 {
19018 XSECPlatformUtils::Initialise()
19019   ;
19020   return 0;
19021 }
19022 _ACEOF
19023 if ac_fn_cxx_try_link "$LINENO"; then :
19024
19025 else
19026   as_fn_error $? "unable to link with XML-Security" "$LINENO" 5
19027 fi
19028 rm -f core conftest.err conftest.$ac_objext \
19029     conftest$ac_exeext conftest.$ac_ext
19030
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C supports white/blacklisting of algorithms" >&5
19032 $as_echo_n "checking whether XML-Security-C supports white/blacklisting of algorithms... " >&6; }
19033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19034 /* end confdefs.h.  */
19035 #include <xsec/framework/XSECAlgorithmMapper.hpp>
19036 int
19037 main ()
19038 {
19039 XSECAlgorithmMapper* mapper; mapper->whitelistAlgorithm(NULL);
19040   ;
19041   return 0;
19042 }
19043 _ACEOF
19044 if ac_fn_cxx_try_compile "$LINENO"; then :
19045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19046 $as_echo "yes" >&6; }
19047
19048 $as_echo "#define SHIBSP_XMLSEC_WHITELISTING 1" >>confdefs.h
19049
19050 else
19051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19052 $as_echo "no" >&6; }
19053 fi
19054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19055
19056 # restore master libs
19057 LIBS="$save_LIBS"
19058
19059 #XML-Tooling settings
19060
19061 # Check whether --with-xmltooling was given.
19062 if test "${with_xmltooling+set}" = set; then :
19063   withval=$with_xmltooling; if test x_$with_xmltooling != x_/usr; then
19064         LDFLAGS="-L${with_xmltooling}/lib $LDFLAGS"
19065         CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
19066         DX_INCLUDE="${with_xmltooling}/include"
19067     fi
19068 fi
19069
19070 LITE_LIBS="-lxmltooling-lite"
19071 XMLSEC_LIBS="-lxmltooling $XMLSEC_LIBS"
19072 ac_fn_cxx_check_header_mongrel "$LINENO" "xmltooling/base.h" "ac_cv_header_xmltooling_base_h" "$ac_includes_default"
19073 if test "x$ac_cv_header_xmltooling_base_h" = x""yes; then :
19074
19075 else
19076   as_fn_error $? "unable to find xmltooling header files" "$LINENO" 5
19077 fi
19078
19079
19080
19081
19082 # save and append master libs
19083 save_LIBS="$LIBS"
19084 LIBS="$XMLSEC_LIBS $LIBS"
19085
19086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19087 /* end confdefs.h.  */
19088 #include <xmltooling/XMLToolingConfig.h>
19089 #include <xmltooling/version.h>
19090 int
19091 main ()
19092 {
19093 #if _XMLTOOLING_VERSION >= 10500
19094 xmltooling::XMLToolingConfig::getConfig();
19095 #else
19096 #error Need XMLTooling version 1.5 or higher
19097 #endif
19098   ;
19099   return 0;
19100 }
19101 _ACEOF
19102 if ac_fn_cxx_try_link "$LINENO"; then :
19103
19104 else
19105   as_fn_error $? "unable to link with XMLTooling, or version was too old" "$LINENO" 5
19106 fi
19107 rm -f core conftest.err conftest.$ac_objext \
19108     conftest$ac_exeext conftest.$ac_ext
19109
19110 # restore master libs
19111 LIBS="$save_LIBS"
19112
19113 # Establish location of xmltooling catalog.
19114 XMLTOOLINGXMLDIR=""
19115 if test "x$with_xmltooling" = "x" ; then
19116    with_xmltooling="/usr"
19117 fi
19118 if test -f $with_xmltooling/share/xml/xmltooling/catalog.xml ; then
19119     XMLTOOLINGXMLDIR="$with_xmltooling"
19120 elif test -f $with_xerces/share/xml/xmltooling/catalog.xml ; then
19121     XMLTOOLINGXMLDIR="$with_xerces"
19122 elif test -f $with_log4shib/share/xml/xmltooling/catalog.xml ; then
19123     XMLTOOLINGXMLDIR="$with_log4shib"
19124 fi
19125 if test "x$XMLTOOLINGXMLDIR" = "x" ; then
19126     as_fn_error $? "xmltooling XML catalog not found, may need to use --with-xmltooling option" "$LINENO" 5
19127 fi
19128 XMLTOOLINGXMLDIR="$XMLTOOLINGXMLDIR/share/xml/xmltooling"
19129
19130
19131 # OpenSAML settings
19132
19133 # Check whether --with-saml was given.
19134 if test "${with_saml+set}" = set; then :
19135   withval=$with_saml; if test x_$with_saml != x_/usr; then
19136         LDFLAGS="-L${with_saml}/lib $LDFLAGS"
19137         CPPFLAGS="-I${with_saml}/include $CPPFLAGS"
19138         DX_INCLUDE="$DX_INCLUDE ${with_saml}/include"
19139     fi
19140 fi
19141
19142 XMLSEC_LIBS="-lsaml $XMLSEC_LIBS"
19143
19144 # save and append master libs
19145 save_LIBS="$LIBS"
19146 LIBS="$XMLSEC_LIBS $LIBS"
19147
19148 ac_fn_cxx_check_header_mongrel "$LINENO" "saml/saml2/metadata/Metadata.h" "ac_cv_header_saml_saml2_metadata_Metadata_h" "$ac_includes_default"
19149 if test "x$ac_cv_header_saml_saml2_metadata_Metadata_h" = x""yes; then :
19150
19151 else
19152   as_fn_error $? "unable to find OpenSAML header files" "$LINENO" 5
19153 fi
19154
19155
19156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19157 /* end confdefs.h.  */
19158 #include <saml/SAMLConfig.h>
19159 #include <saml/version.h>
19160 int
19161 main ()
19162 {
19163 #if _OPENSAML_VERSION >= 20500
19164 opensaml::SAMLConfig::getConfig();
19165 #else
19166 #error Need OpenSAML version 2.5 or higher
19167 #endif
19168   ;
19169   return 0;
19170 }
19171 _ACEOF
19172 if ac_fn_cxx_try_link "$LINENO"; then :
19173
19174 else
19175   as_fn_error $? "unable to link with OpenSAML, or version was too old" "$LINENO" 5
19176
19177 fi
19178 rm -f core conftest.err conftest.$ac_objext \
19179     conftest$ac_exeext conftest.$ac_ext
19180
19181 # restore master libs
19182 LIBS="$save_LIBS"
19183
19184 # Establish location of opensaml catalogs.
19185 OPENSAMLXMLDIR=""
19186 if test "x$with_saml" = "x" ; then
19187     with_saml="/usr"
19188 fi
19189 if test -f $with_saml/share/xml/opensaml/saml20-catalog.xml ; then
19190     OPENSAMLXMLDIR="$with_saml"
19191 elif test -f $with_xmltooling/share/xml/opensaml/saml20-catalog.xml ; then
19192     OPENSAMLXMLDIR="$with_xmltooling"
19193 elif test -f $with_xerces/share/xml/opensaml/saml20-catalog.xml ; then
19194     OPENSAMLXMLDIR="$with_xerces"
19195 elif test -f $with_log4shib/share/xml/opensaml/saml20-catalog.xml ; then
19196     OPENSAMLXMLDIR="$with_log4shib"
19197 fi
19198 if test "x$OPENSAMLXMLDIR" = "x" ; then
19199     as_fn_error $? "opensaml XML catalogs not found, may need to use --with-saml option" "$LINENO" 5
19200 fi
19201 OPENSAMLXMLDIR="$OPENSAMLXMLDIR/share/xml/opensaml"
19202
19203
19204
19205
19206
19207 # output the underlying makefiles
19208 WANT_SUBDIRS="doc schemas configs shibsp plugins shibd util"
19209 ac_config_files="$ac_config_files Makefile doc/Makefile schemas/Makefile configs/Makefile shibsp/Makefile plugins/Makefile shibd/Makefile util/Makefile selinux/Makefile"
19210
19211
19212 ## ADFS?
19213 ac_config_files="$ac_config_files adfs/Makefile"
19214
19215 # Check whether --enable-adfs was given.
19216 if test "${enable_adfs+set}" = set; then :
19217   enableval=$enable_adfs; adfs_enabled=$enableval
19218 else
19219   adfs_enabled=yes
19220 fi
19221
19222 if test "x$adfs_enabled" = "x" ; then
19223     adfs_enabled=yes
19224 fi
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the ADFS module" >&5
19226 $as_echo_n "checking whether to build the ADFS module... " >&6; }
19227 if test "$adfs_enabled" = "no" ; then
19228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19229 $as_echo "no" >&6; }
19230 else
19231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19232 $as_echo "yes" >&6; }
19233     WANT_SUBDIRS="$WANT_SUBDIRS adfs"
19234 fi
19235
19236
19237 #
19238 # Build NSAPI module?
19239 #
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSAPI module option" >&5
19241 $as_echo_n "checking for NSAPI module option... " >&6; }
19242
19243 # Check whether --with-nsapi was given.
19244 if test "${with_nsapi+set}" = set; then :
19245   withval=$with_nsapi; WANT_NSAPI=$withval
19246 else
19247   WANT_NSAPI=no
19248 fi
19249
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_NSAPI" >&5
19251 $as_echo "$WANT_NSAPI" >&6; }
19252
19253 if test "$WANT_NSAPI" != "no"; then
19254   if test ! -d $WANT_NSAPI/bin ; then
19255     as_fn_error $? "Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" "$LINENO" 5
19256   fi
19257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSAPI include files" >&5
19258 $as_echo_n "checking for NSAPI include files... " >&6; }
19259   if test -d $WANT_NSAPI/include ; then
19260     NSAPI_INCLUDE=$WANT_NSAPI/include
19261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Netscape-Enterprise 3.x style" >&5
19262 $as_echo "Netscape-Enterprise 3.x style" >&6; }
19263     for ac_header in $NSAPI_INCLUDE/nsapi.h
19264 do :
19265   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19266 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define XP_UNIX
19267 "
19268 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19269   cat >>confdefs.h <<_ACEOF
19270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19271 _ACEOF
19272
19273 fi
19274
19275 done
19276
19277     NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
19278   fi
19279   if test -d $WANT_NSAPI/plugins/include ; then
19280     test -n "$NSAPI_INCLUDE" && NSAPI_INC_DIR="-I$NSAPI_INCLUDE"
19281     NSAPI_INCLUDE="$WANT_NSAPI/plugins/include"
19282     { $as_echo "$as_me:${as_lineno-$LINENO}: result: iPlanet 4.x / SunONE 6.x style" >&5
19283 $as_echo "iPlanet 4.x / SunONE 6.x style" >&6; }
19284     for ac_header in $NSAPI_INCLUDE/nsapi.h
19285 do :
19286   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19287 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define XP_UNIX
19288 "
19289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19290   cat >>confdefs.h <<_ACEOF
19291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19292 _ACEOF
19293
19294 fi
19295
19296 done
19297
19298     NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
19299   fi
19300   if test "$NSAPI_INCLUDE" = ""; then
19301     as_fn_error $? "Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" "$LINENO" 5
19302   fi
19303 fi
19304
19305
19306
19307 # always output the Makefile, even if you don't use it
19308 ac_config_files="$ac_config_files nsapi_shib/Makefile"
19309
19310  if test ! "$WANT_NSAPI" = "no"; then
19311   BUILD_NSAPI_TRUE=
19312   BUILD_NSAPI_FALSE='#'
19313 else
19314   BUILD_NSAPI_TRUE='#'
19315   BUILD_NSAPI_FALSE=
19316 fi
19317
19318
19319 # add the NSAPI module to the list of wanted subdirs..
19320 if test ! "$WANT_NSAPI" = "no" ; then
19321     WANT_SUBDIRS="$WANT_SUBDIRS nsapi_shib"
19322 fi
19323
19324
19325 #
19326 # Build FastCGI support?
19327 #
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FastCGI support" >&5
19329 $as_echo_n "checking for FastCGI support... " >&6; }
19330
19331 # Check whether --with-fastcgi was given.
19332 if test "${with_fastcgi+set}" = set; then :
19333   withval=$with_fastcgi; WANT_FASTCGI=$withval
19334 else
19335   WANT_FASTCGI=no
19336 fi
19337
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_FASTCGI" >&5
19339 $as_echo "$WANT_FASTCGI" >&6; }
19340
19341 if test "$WANT_FASTCGI" != "no"; then
19342     if test "$WANT_FASTCGI" != "yes"; then
19343         if test x_$WANT_FASTCGI != x_/usr; then
19344             FASTCGI_INCLUDE="-I$WANT_FASTCGI/include"
19345             FASTCGI_LDFLAGS="-L$WANT_FASTCGI/lib"
19346         fi
19347     fi
19348     ac_fn_cxx_check_header_mongrel "$LINENO" "fcgio.h" "ac_cv_header_fcgio_h" "$ac_includes_default"
19349 if test "x$ac_cv_header_fcgio_h" = x""yes; then :
19350
19351 else
19352   as_fn_error $? "unable to find FastCGI header files" "$LINENO" 5
19353 fi
19354
19355
19356     FASTCGI_LIBS="-lfcgi -lfcgi++"
19357 fi
19358
19359
19360
19361
19362
19363 # always output the Makefile, even if you don't use it
19364 ac_config_files="$ac_config_files fastcgi/Makefile"
19365
19366  if test ! "$WANT_FASTCGI" = "no"; then
19367   BUILD_FASTCGI_TRUE=
19368   BUILD_FASTCGI_FALSE='#'
19369 else
19370   BUILD_FASTCGI_TRUE='#'
19371   BUILD_FASTCGI_FALSE=
19372 fi
19373
19374
19375 if test ! "$WANT_FASTCGI" = "no" ; then
19376     WANT_SUBDIRS="$WANT_SUBDIRS fastcgi"
19377 fi
19378
19379 #
19380 # Build Memcached support?
19381 #
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Memcached support" >&5
19383 $as_echo_n "checking for Memcached support... " >&6; }
19384
19385 # Check whether --with-memcached was given.
19386 if test "${with_memcached+set}" = set; then :
19387   withval=$with_memcached; WANT_MEMCACHED=$withval
19388 else
19389   WANT_MEMCACHED=no
19390 fi
19391
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_MEMCACHED" >&5
19393 $as_echo "$WANT_MEMCACHED" >&6; }
19394
19395 if test "$WANT_MEMCACHED" != "no"; then
19396     if test "$WANT_MEMCACHED" != "yes"; then
19397         if test x_$WANT_MEMCACHED != x_/usr; then
19398             MEMCACHED_INCLUDE="-I$WANT_MEMCACHED/include"
19399             MEMCACHED_LDFLAGS="-L$WANT_MEMCACHED/lib"
19400         fi
19401     fi
19402     ac_fn_cxx_check_header_mongrel "$LINENO" "libmemcached/memcached.h" "ac_cv_header_libmemcached_memcached_h" "$ac_includes_default"
19403 if test "x$ac_cv_header_libmemcached_memcached_h" = x""yes; then :
19404
19405 else
19406   as_fn_error $? "unable to find Memcached header files" "$LINENO" 5
19407 fi
19408
19409
19410     MEMCACHED_LIBS="-lmemcached"
19411 fi
19412
19413
19414
19415
19416
19417 # always output the Makefile, even if you don't use it
19418 ac_config_files="$ac_config_files memcache-store/Makefile"
19419
19420  if test ! "$WANT_MEMCACHED" = "no"; then
19421   BUILD_MEMCACHED_TRUE=
19422   BUILD_MEMCACHED_FALSE='#'
19423 else
19424   BUILD_MEMCACHED_TRUE='#'
19425   BUILD_MEMCACHED_FALSE=
19426 fi
19427
19428
19429 if test ! "$WANT_MEMCACHED" = "no" ; then
19430     WANT_SUBDIRS="$WANT_SUBDIRS memcache-store"
19431 fi
19432
19433
19434 #
19435 # If no --enable-apache-xx specified
19436 # find a default and fake the specific parameters
19437 #
19438
19439 # simple macro to peek at an enable or a with
19440
19441
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if default apache needed" >&5
19443 $as_echo_n "checking if default apache needed... " >&6; }
19444 need_default=yes
19445 if test "${enable_apache_13+set}" = set; then
19446   peekval="${enable_apache_13}"
19447   need_default=no
19448 fi;
19449 if test "${enable_apache_20+set}" = set; then
19450   peekval="${enable_apache_20}"
19451   need_default=no
19452 fi;
19453 if test "${enable_apache_22+set}" = set; then
19454   peekval="${enable_apache_22}"
19455   need_default=no
19456 fi;
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_default" >&5
19458 $as_echo "$need_default" >&6; }
19459
19460 if test "$need_default" = "yes"; then
19461   # find an apxs, then the httpd
19462   xs=
19463   if test "${with_apxs+set}" = set; then
19464   peekval="${with_apxs}"
19465   xs="$peekval"
19466 fi;
19467   if test "${with_apxs2+set}" = set; then
19468   peekval="${with_apxs2}"
19469   xs="$peekval"
19470 fi;
19471   if test "${with_apxs22+set}" = set; then
19472   peekval="${with_apxs22}"
19473   xs="$peekval"
19474 fi;
19475   if test "x$xs" = "x"; then
19476      for ac_prog in apxs2 apxs
19477 do
19478   # Extract the first word of "$ac_prog", so it can be a program name with args.
19479 set dummy $ac_prog; ac_word=$2
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19481 $as_echo_n "checking for $ac_word... " >&6; }
19482 if test "${ac_cv_path_xs+set}" = set; then :
19483   $as_echo_n "(cached) " >&6
19484 else
19485   case $xs in
19486   [\\/]* | ?:[\\/]*)
19487   ac_cv_path_xs="$xs" # Let the user override the test with a path.
19488   ;;
19489   *)
19490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19491 as_dummy="/usr/local/apache2/bin:/usr/local/apache/bin:/usr/sbin:$PATH"
19492 for as_dir in $as_dummy
19493 do
19494   IFS=$as_save_IFS
19495   test -z "$as_dir" && as_dir=.
19496     for ac_exec_ext in '' $ac_executable_extensions; do
19497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19498     ac_cv_path_xs="$as_dir/$ac_word$ac_exec_ext"
19499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19500     break 2
19501   fi
19502 done
19503   done
19504 IFS=$as_save_IFS
19505
19506   ;;
19507 esac
19508 fi
19509 xs=$ac_cv_path_xs
19510 if test -n "$xs"; then
19511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xs" >&5
19512 $as_echo "$xs" >&6; }
19513 else
19514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19515 $as_echo "no" >&6; }
19516 fi
19517
19518
19519   test -n "$xs" && break
19520 done
19521 test -n "$xs" || xs="as_fn_error no apache found.  Try --with-apxs "No apxs" "$LINENO" 5 "
19522
19523   fi
19524   # ask the daemon for the version and set parameters
19525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking default apache version" >&5
19526 $as_echo_n "checking default apache version... " >&6; }
19527   httpd="`$xs -q SBINDIR`/`$xs -q TARGET`"
19528   if test "x$httpd" != "x" && test -f $httpd ; then
19529      v=`$httpd -v|$SED -n -e 's/.*Apache\/\.*//p'`
19530      case $v in
19531        1.3*)   enable_apache_13=yes
19532                with_apxs=$xs
19533                { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1.3" >&5
19534 $as_echo "1.3" >&6; }
19535                ;;
19536        2.0*)   enable_apache_20=yes
19537                with_apxs2=$xs
19538                { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.0" >&5
19539 $as_echo "2.0" >&6; }
19540                ;;
19541        2.2*)   enable_apache_22=yes
19542                with_apxs22=$xs
19543                { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.2" >&5
19544 $as_echo "2.2" >&6; }
19545                ;;
19546        *)      as_fn_error $? "unusable apache versions: $v. Try setting --with-apxs" "$LINENO" 5
19547      esac
19548   else
19549      { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot determine version.  Try setting --with-apxs" >&5
19550 $as_echo "cannot determine version.  Try setting --with-apxs" >&6; }
19551   fi
19552 fi
19553
19554 # Apache 1.3 (mod_shib_13)
19555 #   --enable-apache-13
19556 #   --with-apxs      (DSO build, the normal way, uses apxs to derive build flags)
19557
19558 # Check whether --enable-apache-13 was given.
19559 if test "${enable_apache_13+set}" = set; then :
19560   enableval=$enable_apache_13; if test "x$enableval" = "x" ; then
19561          WANT_APACHE_13=yes
19562          else
19563              WANT_APACHE_13="$enableval"
19564          fi
19565
19566 else
19567    WANT_APACHE_13=no
19568 fi
19569
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Apache 1.3 module" >&5
19571 $as_echo_n "checking whether to build Apache 1.3 module... " >&6; }
19572 if test "$WANT_APACHE_13" != yes && test "$WANT_APACHE_13" != no ; then
19573    WANT_APACHE_13=yes
19574 fi
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_APACHE_13" >&5
19576 $as_echo "$WANT_APACHE_13" >&6; }
19577
19578 if test "$WANT_APACHE_13" = "yes" ; then
19579
19580 # Check whether --with-apxs was given.
19581 if test "${with_apxs+set}" = set; then :
19582   withval=$with_apxs;
19583         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-specified apxs name/location" >&5
19584 $as_echo_n "checking for user-specified apxs name/location... " >&6; }
19585         if test "$withval" != "no" ; then
19586           if test "$withval" != "yes"; then
19587             APXS=$withval
19588             { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
19589 $as_echo "\"$withval\"" >&6; }
19590           fi
19591         fi
19592
19593 else
19594
19595         # Extract the first word of "apxs", so it can be a program name with args.
19596 set dummy apxs; ac_word=$2
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19598 $as_echo_n "checking for $ac_word... " >&6; }
19599 if test "${ac_cv_path_APXS+set}" = set; then :
19600   $as_echo_n "(cached) " >&6
19601 else
19602   case $APXS in
19603   [\\/]* | ?:[\\/]*)
19604   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
19605   ;;
19606   *)
19607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19608 for as_dir in $PATH
19609 do
19610   IFS=$as_save_IFS
19611   test -z "$as_dir" && as_dir=.
19612     for ac_exec_ext in '' $ac_executable_extensions; do
19613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19614     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
19615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19616     break 2
19617   fi
19618 done
19619   done
19620 IFS=$as_save_IFS
19621
19622   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
19623   ;;
19624 esac
19625 fi
19626 APXS=$ac_cv_path_APXS
19627 if test -n "$APXS"; then
19628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
19629 $as_echo "$APXS" >&6; }
19630 else
19631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19632 $as_echo "no" >&6; }
19633 fi
19634
19635
19636         if test "$APXS" = "no" ; then
19637           for i in /usr/sbin /usr/local/apache/bin ; do
19638             if test "$APXS" = "no" && test -f "$i/apxs"; then
19639               APXS="$i/apxs"
19640             fi
19641           done
19642         fi
19643
19644 fi
19645
19646
19647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if apxs was located" >&5
19648 $as_echo_n "checking to see if apxs was located... " >&6; }
19649     if test ! -f "$APXS" ; then
19650         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19651 $as_echo "no" >&6; }
19652         as_fn_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." "$LINENO" 5
19653     fi
19654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
19655 $as_echo "$APXS" >&6; }
19656
19657
19658     # extract settings we need from APXS -q
19659     APXS_CC="`$APXS -q CC`"
19660     APXS_CFLAGS="`$APXS -q CFLAGS` `$APXS -q CFLAGS_SHLIB`"
19661     APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
19662 fi
19663
19664
19665
19666
19667
19668 # Apache 2.0 (mod_shib_20)
19669 #   --enable-apache-20
19670 #   --with-apxs2      (DSO build, the normal way, uses apxs to derive build flags)
19671 #       --with-apr        (DSO build, APR development package installed separately)
19672 #   --with-apu        (DSO build, APR-UTIL development package installed separately)
19673
19674 # Check whether --enable-apache-20 was given.
19675 if test "${enable_apache_20+set}" = set; then :
19676   enableval=$enable_apache_20; if test "x$enableval" = "x" ; then
19677          WANT_APACHE_20=yes
19678          else
19679              WANT_APACHE_20="$enableval"
19680          fi
19681
19682 else
19683    WANT_APACHE_20=no
19684 fi
19685
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Apache 2.0 module" >&5
19687 $as_echo_n "checking whether to build Apache 2.0 module... " >&6; }
19688 if test "$WANT_APACHE_20" != yes && test "$WANT_APACHE_20" != no ; then
19689     WANT_APACHE_20=yes
19690 fi
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_APACHE_20" >&5
19692 $as_echo "$WANT_APACHE_20" >&6; }
19693
19694 if test "$WANT_APACHE_20" = "yes" ; then
19695
19696 # Check whether --with-apxs2 was given.
19697 if test "${with_apxs2+set}" = set; then :
19698   withval=$with_apxs2;
19699         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-specified Apache2 apxs name/location" >&5
19700 $as_echo_n "checking for user-specified Apache2 apxs name/location... " >&6; }
19701         if test "$withval" != "no" ; then
19702           if test "$withval" != "yes"; then
19703             APXS2=$withval
19704             { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
19705 $as_echo "\"$withval\"" >&6; }
19706           fi
19707         fi
19708
19709 else
19710
19711         # Extract the first word of "apxs2", so it can be a program name with args.
19712 set dummy apxs2; ac_word=$2
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19714 $as_echo_n "checking for $ac_word... " >&6; }
19715 if test "${ac_cv_path_APXS2+set}" = set; then :
19716   $as_echo_n "(cached) " >&6
19717 else
19718   case $APXS2 in
19719   [\\/]* | ?:[\\/]*)
19720   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
19721   ;;
19722   *)
19723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19724 for as_dir in $PATH
19725 do
19726   IFS=$as_save_IFS
19727   test -z "$as_dir" && as_dir=.
19728     for ac_exec_ext in '' $ac_executable_extensions; do
19729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19730     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
19731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19732     break 2
19733   fi
19734 done
19735   done
19736 IFS=$as_save_IFS
19737
19738   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
19739   ;;
19740 esac
19741 fi
19742 APXS2=$ac_cv_path_APXS2
19743 if test -n "$APXS2"; then
19744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS2" >&5
19745 $as_echo "$APXS2" >&6; }
19746 else
19747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19748 $as_echo "no" >&6; }
19749 fi
19750
19751
19752         if test "$APXS2" = "no" ; then
19753             # Extract the first word of "apxs", so it can be a program name with args.
19754 set dummy apxs; ac_word=$2
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19756 $as_echo_n "checking for $ac_word... " >&6; }
19757 if test "${ac_cv_path_APXS2+set}" = set; then :
19758   $as_echo_n "(cached) " >&6
19759 else
19760   case $APXS2 in
19761   [\\/]* | ?:[\\/]*)
19762   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
19763   ;;
19764   *)
19765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19766 for as_dir in $PATH
19767 do
19768   IFS=$as_save_IFS
19769   test -z "$as_dir" && as_dir=.
19770     for ac_exec_ext in '' $ac_executable_extensions; do
19771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19772     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
19773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19774     break 2
19775   fi
19776 done
19777   done
19778 IFS=$as_save_IFS
19779
19780   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
19781   ;;
19782 esac
19783 fi
19784 APXS2=$ac_cv_path_APXS2
19785 if test -n "$APXS2"; then
19786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS2" >&5
19787 $as_echo "$APXS2" >&6; }
19788 else
19789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19790 $as_echo "no" >&6; }
19791 fi
19792
19793
19794         fi
19795         if test "$APXS2" = "no" ; then
19796           for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
19797             if test "$APXS2" = "no" && test -f "$i/apxs2" ; then
19798               APXS2="$i/apxs2"
19799             fi
19800           done
19801           if test "$APXS2" = "no" ; then
19802             for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
19803               if test "$APXS2" = "no" && test -f "$i/apxs" ; then
19804                 APXS2="$i/apxs"
19805               fi
19806             done
19807           fi
19808         fi
19809
19810 fi
19811
19812
19813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if Apache2 apxs was located" >&5
19814 $as_echo_n "checking to see if Apache2 apxs was located... " >&6; }
19815     if test ! -f "$APXS2" ; then
19816         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19817 $as_echo "no" >&6; }
19818         as_fn_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." "$LINENO" 5
19819     fi
19820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS2" >&5
19821 $as_echo "$APXS2" >&6; }
19822
19823
19824     # APR settings
19825
19826 # Check whether --with-apr was given.
19827 if test "${with_apr+set}" = set; then :
19828   withval=$with_apr;
19829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-specified apr-config name/location" >&5
19830 $as_echo_n "checking for user-specified apr-config name/location... " >&6; }
19831         if test "$withval" != "no" ; then
19832             if test "$withval" != "yes"; then
19833                 APR_CONFIG=$withval
19834                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
19835 $as_echo "\"$withval\"" >&6; }
19836             fi
19837         fi
19838
19839 else
19840
19841         # Extract the first word of "apr-config", so it can be a program name with args.
19842 set dummy apr-config; ac_word=$2
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19844 $as_echo_n "checking for $ac_word... " >&6; }
19845 if test "${ac_cv_path_APR_CONFIG+set}" = set; then :
19846   $as_echo_n "(cached) " >&6
19847 else
19848   case $APR_CONFIG in
19849   [\\/]* | ?:[\\/]*)
19850   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
19851   ;;
19852   *)
19853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19854 as_dummy="`$APXS2 -q SBINDIR`:$PATH"
19855 for as_dir in $as_dummy
19856 do
19857   IFS=$as_save_IFS
19858   test -z "$as_dir" && as_dir=.
19859     for ac_exec_ext in '' $ac_executable_extensions; do
19860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19861     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19863     break 2
19864   fi
19865 done
19866   done
19867 IFS=$as_save_IFS
19868
19869   ;;
19870 esac
19871 fi
19872 APR_CONFIG=$ac_cv_path_APR_CONFIG
19873 if test -n "$APR_CONFIG"; then
19874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APR_CONFIG" >&5
19875 $as_echo "$APR_CONFIG" >&6; }
19876 else
19877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19878 $as_echo "no" >&6; }
19879 fi
19880
19881
19882
19883 fi
19884
19885         if test -f "${APR_CONFIG}"; then
19886         APR_CFLAGS="`${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags` `${APR_CONFIG} --includes`"
19887     else
19888         as_fn_error $? "Unable to locate apr-config, may need --with-apr option." "$LINENO" 5
19889     fi
19890
19891     # APU settings
19892
19893 # Check whether --with-apu was given.
19894 if test "${with_apu+set}" = set; then :
19895   withval=$with_apu;
19896         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-specified apu-config name/location" >&5
19897 $as_echo_n "checking for user-specified apu-config name/location... " >&6; }
19898         if test "$withval" != "no" ; then
19899             if test "$withval" != "yes"; then
19900                 APR_CONFIG=$withval
19901                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
19902 $as_echo "\"$withval\"" >&6; }
19903             fi
19904         fi
19905
19906 else
19907
19908         # Extract the first word of "apu-config", so it can be a program name with args.
19909 set dummy apu-config; ac_word=$2
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19911 $as_echo_n "checking for $ac_word... " >&6; }
19912 if test "${ac_cv_path_APU_CONFIG+set}" = set; then :
19913   $as_echo_n "(cached) " >&6
19914 else
19915   case $APU_CONFIG in
19916   [\\/]* | ?:[\\/]*)
19917   ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
19918   ;;
19919   *)
19920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19921 as_dummy="`$APXS2 -q SBINDIR`:$PATH"
19922 for as_dir in $as_dummy
19923 do
19924   IFS=$as_save_IFS
19925   test -z "$as_dir" && as_dir=.
19926     for ac_exec_ext in '' $ac_executable_extensions; do
19927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19928     ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19930     break 2
19931   fi
19932 done
19933   done
19934 IFS=$as_save_IFS
19935
19936   ;;
19937 esac
19938 fi
19939 APU_CONFIG=$ac_cv_path_APU_CONFIG
19940 if test -n "$APU_CONFIG"; then
19941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APU_CONFIG" >&5
19942 $as_echo "$APU_CONFIG" >&6; }
19943 else
19944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19945 $as_echo "no" >&6; }
19946 fi
19947
19948
19949
19950 fi
19951
19952     if test -f "${APU_CONFIG}"; then
19953         APU_CFLAGS="`${APU_CONFIG} --includes`"
19954     else
19955         as_fn_error $? "Unable to locate apu-config, may need --with-apu option." "$LINENO" 5
19956     fi
19957
19958     # extract settings we need from APXS2 -q
19959     APXS2_CC="`$APXS2 -q CC`"
19960     APXS2_CFLAGS="`$APXS2 -q CPPFLAGS` `$APXS2 -q CFLAGS` $APR_CFLAGS $APU_CFLAGS"
19961     APXS2_INCLUDE="`$APXS2 -q INCLUDEDIR`"
19962 fi
19963
19964
19965
19966
19967
19968 # Apache 2.2 (mod_shib_22)
19969 #   --enable-apache-22
19970 #   --with-apxs22     (DSO build, the normal way, uses apxs to derive build flags)
19971 #       --with-apr1       (DSO build, APR development package installed separately)
19972 #   --with-apu1       (DSO build, APR-UTIL development package installed separately)
19973
19974 # Check whether --enable-apache-22 was given.
19975 if test "${enable_apache_22+set}" = set; then :
19976   enableval=$enable_apache_22; if test "x$enableval" = "x" ; then
19977          WANT_APACHE_22=yes
19978          else
19979              WANT_APACHE_22="$enableval"
19980          fi
19981
19982 else
19983    WANT_APACHE_22=no
19984 fi
19985
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Apache 2.2 module" >&5
19987 $as_echo_n "checking whether to build Apache 2.2 module... " >&6; }
19988 if test "$WANT_APACHE_22" != yes && test "$WANT_APACHE_22" != no ; then
19989     WANT_APACHE_22=yes
19990 fi
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_APACHE_22" >&5
19992 $as_echo "$WANT_APACHE_22" >&6; }
19993
19994 if test "$WANT_APACHE_22" = "yes" ; then
19995
19996 # Check whether --with-apxs22 was given.
19997 if test "${with_apxs22+set}" = set; then :
19998   withval=$with_apxs22;
19999         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-specified Apache2.2 apxs name/location" >&5
20000 $as_echo_n "checking for user-specified Apache2.2 apxs name/location... " >&6; }
20001         if test "$withval" != "no" ; then
20002           if test "$withval" != "yes"; then
20003             APXS22=$withval
20004             { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
20005 $as_echo "\"$withval\"" >&6; }
20006           fi
20007         fi
20008
20009 else
20010
20011         # Extract the first word of "apxs2", so it can be a program name with args.
20012 set dummy apxs2; ac_word=$2
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20014 $as_echo_n "checking for $ac_word... " >&6; }
20015 if test "${ac_cv_path_APXS22+set}" = set; then :
20016   $as_echo_n "(cached) " >&6
20017 else
20018   case $APXS22 in
20019   [\\/]* | ?:[\\/]*)
20020   ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
20021   ;;
20022   *)
20023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20024 for as_dir in $PATH
20025 do
20026   IFS=$as_save_IFS
20027   test -z "$as_dir" && as_dir=.
20028     for ac_exec_ext in '' $ac_executable_extensions; do
20029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20030     ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
20031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20032     break 2
20033   fi
20034 done
20035   done
20036 IFS=$as_save_IFS
20037
20038   test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
20039   ;;
20040 esac
20041 fi
20042 APXS22=$ac_cv_path_APXS22
20043 if test -n "$APXS22"; then
20044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS22" >&5
20045 $as_echo "$APXS22" >&6; }
20046 else
20047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20048 $as_echo "no" >&6; }
20049 fi
20050
20051
20052         if test "$APXS22" = "no" ; then
20053             # Extract the first word of "apxs", so it can be a program name with args.
20054 set dummy apxs; ac_word=$2
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20056 $as_echo_n "checking for $ac_word... " >&6; }
20057 if test "${ac_cv_path_APXS22+set}" = set; then :
20058   $as_echo_n "(cached) " >&6
20059 else
20060   case $APXS22 in
20061   [\\/]* | ?:[\\/]*)
20062   ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
20063   ;;
20064   *)
20065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20066 for as_dir in $PATH
20067 do
20068   IFS=$as_save_IFS
20069   test -z "$as_dir" && as_dir=.
20070     for ac_exec_ext in '' $ac_executable_extensions; do
20071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20072     ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
20073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20074     break 2
20075   fi
20076 done
20077   done
20078 IFS=$as_save_IFS
20079
20080   test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
20081   ;;
20082 esac
20083 fi
20084 APXS22=$ac_cv_path_APXS22
20085 if test -n "$APXS22"; then
20086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS22" >&5
20087 $as_echo "$APXS22" >&6; }
20088 else
20089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20090 $as_echo "no" >&6; }
20091 fi
20092
20093
20094         fi
20095         if test "$APXS22" = "no" ; then
20096           for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
20097             if test "$APXS22" = "no" && test -f "$i/apxs2" ; then
20098               APXS22="$i/apxs2"
20099             fi
20100           done
20101           if test "$APXS22" = "no" ; then
20102             for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
20103               if test "$APXS22" = "no" && test -f "$i/apxs" ; then
20104                 APXS22="$i/apxs"
20105               fi
20106             done
20107           fi
20108         fi
20109
20110 fi
20111
20112
20113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if Apache2.2 apxs was located" >&5
20114 $as_echo_n "checking to see if Apache2.2 apxs was located... " >&6; }
20115     if test ! -f "$APXS22" ; then
20116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20117 $as_echo "no" >&6; }
20118         as_fn_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." "$LINENO" 5
20119     fi
20120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS22" >&5
20121 $as_echo "$APXS22" >&6; }
20122
20123
20124     # APR1 settings
20125
20126 # Check whether --with-apr1 was given.
20127 if test "${with_apr1+set}" = set; then :
20128   withval=$with_apr1;
20129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-specified apr-1-config name/location" >&5
20130 $as_echo_n "checking for user-specified apr-1-config name/location... " >&6; }
20131         if test "$withval" != "no" ; then
20132             if test "$withval" != "yes"; then
20133                 APR1_CONFIG=$withval
20134                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
20135 $as_echo "\"$withval\"" >&6; }
20136             fi
20137         fi
20138
20139 else
20140
20141         # Extract the first word of "apr-1-config", so it can be a program name with args.
20142 set dummy apr-1-config; ac_word=$2
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20144 $as_echo_n "checking for $ac_word... " >&6; }
20145 if test "${ac_cv_path_APR1_CONFIG+set}" = set; then :
20146   $as_echo_n "(cached) " >&6
20147 else
20148   case $APR1_CONFIG in
20149   [\\/]* | ?:[\\/]*)
20150   ac_cv_path_APR1_CONFIG="$APR1_CONFIG" # Let the user override the test with a path.
20151   ;;
20152   *)
20153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20154 as_dummy="`$APXS22 -q SBINDIR`:$PATH"
20155 for as_dir in $as_dummy
20156 do
20157   IFS=$as_save_IFS
20158   test -z "$as_dir" && as_dir=.
20159     for ac_exec_ext in '' $ac_executable_extensions; do
20160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20161     ac_cv_path_APR1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20163     break 2
20164   fi
20165 done
20166   done
20167 IFS=$as_save_IFS
20168
20169   ;;
20170 esac
20171 fi
20172 APR1_CONFIG=$ac_cv_path_APR1_CONFIG
20173 if test -n "$APR1_CONFIG"; then
20174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APR1_CONFIG" >&5
20175 $as_echo "$APR1_CONFIG" >&6; }
20176 else
20177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20178 $as_echo "no" >&6; }
20179 fi
20180
20181
20182
20183 fi
20184
20185         if test -f "${APR1_CONFIG}"; then
20186         APR1_CFLAGS="`${APR1_CONFIG} --cflags` `${APR1_CONFIG} --cppflags` `${APR1_CONFIG} --includes`"
20187     else
20188         as_fn_error $? "Unable to locate apr-1-config, may need --with-apr1 option." "$LINENO" 5
20189     fi
20190
20191     # APU1 settings
20192
20193 # Check whether --with-apu1 was given.
20194 if test "${with_apu1+set}" = set; then :
20195   withval=$with_apu1;
20196         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-specified apu-1-config name/location" >&5
20197 $as_echo_n "checking for user-specified apu-1-config name/location... " >&6; }
20198         if test "$withval" != "no" ; then
20199             if test "$withval" != "yes"; then
20200                 APU1_CONFIG=$withval
20201                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
20202 $as_echo "\"$withval\"" >&6; }
20203             fi
20204         fi
20205
20206 else
20207
20208         # Extract the first word of "apu-1-config", so it can be a program name with args.
20209 set dummy apu-1-config; ac_word=$2
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20211 $as_echo_n "checking for $ac_word... " >&6; }
20212 if test "${ac_cv_path_APU1_CONFIG+set}" = set; then :
20213   $as_echo_n "(cached) " >&6
20214 else
20215   case $APU1_CONFIG in
20216   [\\/]* | ?:[\\/]*)
20217   ac_cv_path_APU1_CONFIG="$APU1_CONFIG" # Let the user override the test with a path.
20218   ;;
20219   *)
20220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20221 as_dummy="`$APXS22 -q SBINDIR`:$PATH"
20222 for as_dir in $as_dummy
20223 do
20224   IFS=$as_save_IFS
20225   test -z "$as_dir" && as_dir=.
20226     for ac_exec_ext in '' $ac_executable_extensions; do
20227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20228     ac_cv_path_APU1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20230     break 2
20231   fi
20232 done
20233   done
20234 IFS=$as_save_IFS
20235
20236   ;;
20237 esac
20238 fi
20239 APU1_CONFIG=$ac_cv_path_APU1_CONFIG
20240 if test -n "$APU1_CONFIG"; then
20241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APU1_CONFIG" >&5
20242 $as_echo "$APU1_CONFIG" >&6; }
20243 else
20244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20245 $as_echo "no" >&6; }
20246 fi
20247
20248
20249
20250 fi
20251
20252     if test -f "${APU1_CONFIG}"; then
20253         APU1_CFLAGS="`${APU1_CONFIG} --includes`"
20254     else
20255         as_fn_error $? "Unable to locate apu-1-config, may need --with-apu1 option." "$LINENO" 5
20256     fi
20257
20258     # extract settings we need from APXS22 -q
20259     APXS22_CC="`$APXS22 -q CC`"
20260     APXS22_CFLAGS="`$APXS22 -q CPPFLAGS` `$APXS22 -q CFLAGS` $APR1_CFLAGS $APU1_CFLAGS"
20261     APXS22_INCLUDE="`$APXS22 -q INCLUDEDIR`"
20262 fi
20263
20264
20265
20266
20267 # always output the Makefile, even if you don't use it
20268 ac_config_files="$ac_config_files apache/Makefile"
20269
20270  if test "$WANT_APACHE_13" = "yes"; then
20271   BUILD_AP13_TRUE=
20272   BUILD_AP13_FALSE='#'
20273 else
20274   BUILD_AP13_TRUE='#'
20275   BUILD_AP13_FALSE=
20276 fi
20277
20278  if test "$WANT_APACHE_20" = "yes"; then
20279   BUILD_AP20_TRUE=
20280   BUILD_AP20_FALSE='#'
20281 else
20282   BUILD_AP20_TRUE='#'
20283   BUILD_AP20_FALSE=
20284 fi
20285
20286  if test "$WANT_APACHE_22" = "yes"; then
20287   BUILD_AP22_TRUE=
20288   BUILD_AP22_FALSE='#'
20289 else
20290   BUILD_AP22_TRUE='#'
20291   BUILD_AP22_FALSE=
20292 fi
20293
20294
20295 # add the apache module to the list of wanted subdirs..
20296 if test "$WANT_APACHE_13" = "yes" || test "$WANT_APACHE_20" = "yes" || test "$WANT_APACHE_22" = "yes" ; then
20297     WANT_SUBDIRS="$WANT_SUBDIRS apache"
20298 fi
20299
20300
20301 #
20302 # Implement the checks of the ODBC Storage Service
20303 #
20304 # 1) Assume the user wants ODBC; if it's not found then just continue without
20305 # 2) If the user specifically requested odbc, look for it and ERROR if not found
20306 # 3) If the user specifically requested no odbc, don't build it.
20307 #
20308
20309 ac_config_files="$ac_config_files odbc-store/Makefile"
20310
20311
20312 # determine whether we should enable the odbc ccache
20313 # Check whether --enable-odbc was given.
20314 if test "${enable_odbc+set}" = set; then :
20315   enableval=$enable_odbc; odbc_enabled=$enableval
20316 else
20317   odbc_enabled=default
20318 fi
20319
20320 if test "x$odbc_enabled" = "x" ; then
20321     odbc_enabled=yes
20322 fi
20323
20324 # Are we trying to build ODBC?
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the ODBC storage service" >&5
20326 $as_echo_n "checking whether to build the ODBC storage service... " >&6; }
20327 if test "$odbc_enabled" = "yes" ; then
20328     build_odbc=yes
20329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20330 $as_echo "yes" >&6; }
20331 elif test "$odbc_enabled" = "default" ; then
20332     build_odbc=yes
20333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, if it can be found" >&5
20334 $as_echo "yes, if it can be found" >&6; }
20335 else
20336     build_odbc=no
20337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20338 $as_echo "no" >&6; }
20339 fi
20340
20341 # If we're trying to build ODBC, try to find the odbc_config program.
20342 if test "$build_odbc" = "yes" ; then
20343     odbc_dir=""
20344
20345 # Check whether --with-odbc was given.
20346 if test "${with_odbc+set}" = set; then :
20347   withval=$with_odbc; if test "$with_odbc" = no ; then
20348             as_fn_error $? "Try running --disable-odbc instead." "$LINENO" 5
20349          elif test "$with_odbc" != yes ; then
20350             odbc_dir="$with_odbc/bin"
20351             if test "$with_odbc" != /usr ; then
20352                 ODBC_CFLAGS="-I$with_odbc/include"
20353                 ODBC_LIBS="-L$with_odbc/lib"
20354             fi
20355          fi
20356 fi
20357
20358
20359    # Extract the first word of "odbc_config", so it can be a program name with args.
20360 set dummy odbc_config; ac_word=$2
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20362 $as_echo_n "checking for $ac_word... " >&6; }
20363 if test "${ac_cv_path_ODBC_CONFIG+set}" = set; then :
20364   $as_echo_n "(cached) " >&6
20365 else
20366   case $ODBC_CONFIG in
20367   [\\/]* | ?:[\\/]*)
20368   ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path.
20369   ;;
20370   *)
20371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20372 for as_dir in $odbc_dir $PATH
20373 do
20374   IFS=$as_save_IFS
20375   test -z "$as_dir" && as_dir=.
20376     for ac_exec_ext in '' $ac_executable_extensions; do
20377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20378     ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20380     break 2
20381   fi
20382 done
20383   done
20384 IFS=$as_save_IFS
20385
20386   test -z "$ac_cv_path_ODBC_CONFIG" && ac_cv_path_ODBC_CONFIG="no"
20387   ;;
20388 esac
20389 fi
20390 ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG
20391 if test -n "$ODBC_CONFIG"; then
20392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5
20393 $as_echo "$ODBC_CONFIG" >&6; }
20394 else
20395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20396 $as_echo "no" >&6; }
20397 fi
20398
20399
20400    if test "$ODBC_CONFIG" = no ; then
20401       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find odbc_config, will try to guess settings." >&5
20402 $as_echo "$as_me: WARNING: Cannot find odbc_config, will try to guess settings." >&2;}
20403       ODBC_LIBS="$ODBC_LIBS -lodbc"
20404    else
20405       ODBC_CFLAGS=`$ODBC_CONFIG --cflags`
20406       ODBC_LIBS=`$ODBC_CONFIG --libs`
20407    fi
20408
20409    save_CPPFLAGS="$CPPFLAGS"
20410    CPPFLAGS="$CPPFLAGS $ODBC_CFLAGS"
20411
20412    ac_fn_cxx_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
20413 if test "x$ac_cv_header_sql_h" = x""yes; then :
20414   have_sql_h=yes
20415 else
20416   have_sql_h=no
20417 fi
20418
20419
20420    if test "$have_sql_h" = no -a "$odbc_enabled" = "yes" ; then
20421      as_fn_error $? "unable to find ODBC header files" "$LINENO" 5
20422    fi
20423
20424    if test "$have_sql_h" = yes ; then
20425       save_LIBS="$LIBS"
20426       LIBS="$LIBS $ODBC_LIBS"
20427       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link againt ODBC" >&5
20428 $as_echo_n "checking if we can link againt ODBC... " >&6; }
20429       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20430 /* end confdefs.h.  */
20431 #include <sql.h>
20432  #include <sqlext.h>
20433  #include <stdio.h>
20434 int
20435 main ()
20436 {
20437 SQLSetEnvAttr(SQL_NULL_HANDLE, SQL_ATTR_CONNECTION_POOLING, (void*)SQL_CP_ONE_PER_HENV, 0)
20438   ;
20439   return 0;
20440 }
20441 _ACEOF
20442 if ac_fn_cxx_try_link "$LINENO"; then :
20443   have_odbc_libs=yes
20444 else
20445   have_odbc_libs=no
20446 fi
20447 rm -f core conftest.err conftest.$ac_objext \
20448     conftest$ac_exeext conftest.$ac_ext
20449       LIBS="$save_LIBS"
20450       if test "$have_odbc_libs" = no ; then
20451          if test "$odbc_enabled" = "yes" ; then
20452             as_fn_error $? "unable to link with ODBC Library" "$LINENO" 5
20453          else
20454             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, skipping ODBC" >&5
20455 $as_echo "no, skipping ODBC" >&6; }
20456          fi
20457       fi
20458    fi
20459
20460    CPPFLAGS="$save_CPPFLAGS"
20461 fi
20462
20463 # if have_odbc_libs=yes then go ahead with building ODBC
20464 if test "$have_odbc_libs" = yes ; then
20465    # this AC_MSG_RESULT is from above!
20466    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20467 $as_echo "yes" >&6; }
20468    WANT_SUBDIRS="$WANT_SUBDIRS odbc-store"
20469
20470
20471 fi
20472
20473 # GSS-API checking
20474
20475 GSSAPI_ROOT="/usr"
20476
20477 # Check whether --with-gssapi-includes was given.
20478 if test "${with_gssapi_includes+set}" = set; then :
20479   withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
20480     want_gss="yes"
20481
20482 fi
20483
20484
20485
20486 # Check whether --with-gssapi-libs was given.
20487 if test "${with_gssapi_libs+set}" = set; then :
20488   withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
20489     want_gss="yes"
20490
20491 fi
20492
20493
20494
20495 # Check whether --with-gssapi was given.
20496 if test "${with_gssapi+set}" = set; then :
20497   withval=$with_gssapi;  GSSAPI_ROOT="$withval"
20498   if test x"$GSSAPI_ROOT" != xno; then
20499     want_gss="yes"
20500     if test x"$GSSAPI_ROOT" = xyes; then
20501             GSSAPI_ROOT="/usr"
20502     fi
20503   fi
20504
20505 fi
20506
20507
20508 save_CPPFLAGS="$CPPFLAGS"
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSSAPI support is requested" >&5
20510 $as_echo_n "checking if GSSAPI support is requested... " >&6; }
20511 if test x"$want_gss" = xyes; then
20512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20513 $as_echo "yes" >&6; }
20514
20515   if test -z "$GSSAPI_INCS"; then
20516      if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
20517         GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
20518      elif test "$GSSAPI_ROOT" != "yes"; then
20519         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
20520      fi
20521   fi
20522
20523   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
20524
20525   ac_fn_cxx_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
20526 if test "x$ac_cv_header_gss_h" = x""yes; then :
20527
20528
20529 $as_echo "#define SHIBSP_HAVE_GSSGNU 1" >>confdefs.h
20530
20531       gnu_gss=yes
20532
20533 else
20534
20535             for ac_header in gssapi/gssapi.h
20536 do :
20537   ac_fn_cxx_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
20538 if test "x$ac_cv_header_gssapi_gssapi_h" = x""yes; then :
20539   cat >>confdefs.h <<_ACEOF
20540 #define HAVE_GSSAPI_GSSAPI_H 1
20541 _ACEOF
20542
20543 else
20544   not_mit=1
20545 fi
20546
20547 done
20548
20549       for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
20550 do :
20551   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20552 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
20553 $ac_includes_default
20554 #ifdef HAVE_GSSAPI_GSSAPI_H
20555 #include <gssapi/gssapi.h>
20556 #endif
20557
20558 "
20559 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20560   cat >>confdefs.h <<_ACEOF
20561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20562 _ACEOF
20563
20564 else
20565   not_mit=1
20566 fi
20567
20568 done
20569
20570       if test "x$not_mit" = "x1"; then
20571                 ac_fn_cxx_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
20572 if test "x$ac_cv_header_gssapi_h" = x""yes; then :
20573
20574
20575 $as_echo "#define SHIBSP_HAVE_GSSHEIMDAL 1" >>confdefs.h
20576
20577
20578 else
20579
20580                             want_gss=no
20581               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSSAPI since no header files was found" >&5
20582 $as_echo "$as_me: WARNING: disabling GSSAPI since no header files was found" >&2;}
20583
20584
20585 fi
20586
20587
20588       else
20589
20590 $as_echo "#define SHIBSP_HAVE_GSSMIT 1" >>confdefs.h
20591
20592                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
20593 $as_echo_n "checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
20594         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20595 /* end confdefs.h.  */
20596
20597
20598 #include <gssapi/gssapi.h>
20599 #include <gssapi/gssapi_generic.h>
20600 #include <gssapi/gssapi_krb5.h>
20601
20602 int
20603 main ()
20604 {
20605
20606             gss_import_name(
20607                             (OM_uint32 *)0,
20608                             (gss_buffer_t)0,
20609                             GSS_C_NT_HOSTBASED_SERVICE,
20610                             (gss_name_t *)0);
20611
20612   ;
20613   return 0;
20614 }
20615
20616 _ACEOF
20617 if ac_fn_cxx_try_compile "$LINENO"; then :
20618
20619           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20620 $as_echo "yes" >&6; }
20621
20622 else
20623
20624           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20625 $as_echo "no" >&6; }
20626
20627 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
20628
20629
20630 fi
20631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20632       fi
20633
20634
20635 fi
20636
20637
20638 else
20639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20640 $as_echo "no" >&6; }
20641 fi
20642 if test x"$want_gss" = xyes; then
20643
20644 $as_echo "#define SHIBSP_HAVE_GSSAPI 1" >>confdefs.h
20645
20646
20647   if test -n "$gnu_gss"; then
20648     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
20649     LIBS="$LIBS -lgss"
20650   else
20651     if test -z "$GSSAPI_LIB_DIR"; then
20652       GSSAPI_LIB_DIR="$GSSAPI_ROOT/lib$libsuff"
20653     fi
20654     if test "$GSSAPI_ROOT" != "yes"; then
20655        LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
20656     fi
20657     if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
20658                   gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
20659     else
20660       if test "x$not_mit" = "x1"; then
20661         gss_libs="-lgssapi"
20662       else
20663         gss_libs="-lgssapi_krb5"
20664       fi
20665     fi
20666     LIBS="$LIBS $gss_libs"
20667   fi
20668
20669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GSS-API naming extensions are available" >&5
20670 $as_echo_n "checking whether GSS-API naming extensions are available... " >&6; }
20671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20672 /* end confdefs.h.  */
20673
20674 #ifdef SHIBSP_HAVE_GSSGNU
20675 # include <gss.h>
20676 #elif defined SHIBSP_HAVE_GSSMIT
20677 # include <gssapi/gssapi.h>
20678 # include <gssapi/gssapi_ext.h>
20679 #else
20680 # include <gssapi.h>
20681 #endif
20682 int
20683 main ()
20684 {
20685 gss_get_name_attribute(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
20686   ;
20687   return 0;
20688 }
20689 _ACEOF
20690 if ac_fn_cxx_try_compile "$LINENO"; then :
20691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20692 $as_echo "yes" >&6; }
20693 $as_echo "#define HAVE_GSSAPI_NAMINGEXTS 1" >>confdefs.h
20694
20695 else
20696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20697 $as_echo "no" >&6; }
20698 fi
20699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20700
20701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GSS-API composite name import is available" >&5
20702 $as_echo_n "checking whether GSS-API composite name import is available... " >&6; }
20703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20704 /* end confdefs.h.  */
20705
20706 #ifdef SHIBSP_HAVE_GSSGNU
20707 # include <gss.h>
20708 #elif defined SHIBSP_HAVE_GSSMIT
20709 # include <gssapi/gssapi.h>
20710 # include <gssapi/gssapi_ext.h>
20711 #else
20712 # include <gssapi.h>
20713 #endif
20714 int
20715 main ()
20716 {
20717
20718     OM_uint32 minor;
20719     gss_name_t srcname;
20720     gss_buffer_desc importbuf;
20721     gss_import_name(&minor, &importbuf, GSS_C_NT_EXPORT_NAME_COMPOSITE, &srcname);
20722
20723   ;
20724   return 0;
20725 }
20726 _ACEOF
20727 if ac_fn_cxx_try_compile "$LINENO"; then :
20728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20729 $as_echo "yes" >&6; }
20730 $as_echo "#define HAVE_GSSAPI_COMPOSITE_NAME 1" >>confdefs.h
20731
20732 else
20733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20734 $as_echo "no" >&6; }
20735 fi
20736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20737
20738 else
20739   CPPFLAGS="$save_CPPFLAGS"
20740 fi
20741
20742
20743
20744
20745 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
20746   echo "=================================================================="
20747   echo "WARNING: You have chosen to compile Apache-1.3 modules with a different"
20748   echo "         compiler than the one used to compile Apache."
20749   echo ""
20750   echo "    Current compiler:      $CC"
20751   echo "   Apache's compiler:      $APXS_CC"
20752   echo ""
20753   echo "This could cause problems."
20754   echo "=================================================================="
20755 fi
20756
20757 if test -n "$APXS2_CC" && test "$APXS2_CC" != "$CC" ; then
20758   echo "=================================================================="
20759   echo "WARNING: You have chosen to compile Apache-2.0 modules with a different"
20760   echo "         compiler than the one used to compile Apache."
20761   echo ""
20762   echo "    Current compiler:      $CC"
20763   echo "   Apache's compiler:      $APXS2_CC"
20764   echo ""
20765   echo "This could cause problems."
20766   echo "=================================================================="
20767 fi
20768
20769 if test -n "$APXS22_CC" && test "$APXS22_CC" != "$CC" ; then
20770   echo "=================================================================="
20771   echo "WARNING: You have chosen to compile Apache-2.2 modules with a different"
20772   echo "         compiler than the one used to compile Apache."
20773   echo ""
20774   echo "    Current compiler:      $CC"
20775   echo "   Apache's compiler:      $APXS22_CC"
20776   echo ""
20777   echo "This could cause problems."
20778   echo "=================================================================="
20779 fi
20780
20781 LIBTOOL="$LIBTOOL --silent"
20782
20783 cat >confcache <<\_ACEOF
20784 # This file is a shell script that caches the results of configure
20785 # tests run on this system so they can be shared between configure
20786 # scripts and configure runs, see configure's option --config-cache.
20787 # It is not useful on other systems.  If it contains results you don't
20788 # want to keep, you may remove or edit it.
20789 #
20790 # config.status only pays attention to the cache file if you give it
20791 # the --recheck option to rerun configure.
20792 #
20793 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20794 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20795 # following values.
20796
20797 _ACEOF
20798
20799 # The following way of writing the cache mishandles newlines in values,
20800 # but we know of no workaround that is simple, portable, and efficient.
20801 # So, we kill variables containing newlines.
20802 # Ultrix sh set writes to stderr and can't be redirected directly,
20803 # and sets the high bit in the cache file unless we assign to the vars.
20804 (
20805   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20806     eval ac_val=\$$ac_var
20807     case $ac_val in #(
20808     *${as_nl}*)
20809       case $ac_var in #(
20810       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20811 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20812       esac
20813       case $ac_var in #(
20814       _ | IFS | as_nl) ;; #(
20815       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20816       *) { eval $ac_var=; unset $ac_var;} ;;
20817       esac ;;
20818     esac
20819   done
20820
20821   (set) 2>&1 |
20822     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20823     *${as_nl}ac_space=\ *)
20824       # `set' does not quote correctly, so add quotes: double-quote
20825       # substitution turns \\\\ into \\, and sed turns \\ into \.
20826       sed -n \
20827         "s/'/'\\\\''/g;
20828           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20829       ;; #(
20830     *)
20831       # `set' quotes correctly as required by POSIX, so do not add quotes.
20832       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20833       ;;
20834     esac |
20835     sort
20836 ) |
20837   sed '
20838      /^ac_cv_env_/b end
20839      t clear
20840      :clear
20841      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20842      t end
20843      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20844      :end' >>confcache
20845 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20846   if test -w "$cache_file"; then
20847     test "x$cache_file" != "x/dev/null" &&
20848       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20849 $as_echo "$as_me: updating cache $cache_file" >&6;}
20850     cat confcache >$cache_file
20851   else
20852     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20853 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20854   fi
20855 fi
20856 rm -f confcache
20857
20858 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20859 # Let make expand exec_prefix.
20860 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20861
20862 DEFS=-DHAVE_CONFIG_H
20863
20864 ac_libobjs=
20865 ac_ltlibobjs=
20866 U=
20867 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20868   # 1. Remove the extension, and $U if already installed.
20869   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20870   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20871   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20872   #    will be set to the directory where LIBOBJS objects are built.
20873   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20874   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20875 done
20876 LIBOBJS=$ac_libobjs
20877
20878 LTLIBOBJS=$ac_ltlibobjs
20879
20880
20881  if test -n "$EXEEXT"; then
20882   am__EXEEXT_TRUE=
20883   am__EXEEXT_FALSE='#'
20884 else
20885   am__EXEEXT_TRUE='#'
20886   am__EXEEXT_FALSE=
20887 fi
20888
20889 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20890   as_fn_error $? "conditional \"AMDEP\" was never defined.
20891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20892 fi
20893 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20894   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20896 fi
20897 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
20898   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
20899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20900 fi
20901 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
20902   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
20903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20904 fi
20905 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
20906   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
20907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20908 fi
20909 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
20910   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
20911 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20912 fi
20913 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
20914   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
20915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20916 fi
20917 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
20918   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
20919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20920 fi
20921 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
20922   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
20923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20924 fi
20925 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
20926   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
20927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20928 fi
20929 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
20930   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
20931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20932 fi
20933 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
20934   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
20935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20936 fi
20937 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
20938   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
20939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20940 fi
20941 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
20942   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
20943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20944 fi
20945 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
20946   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
20947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20948 fi
20949 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
20950   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
20951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20952 fi
20953 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
20954   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
20955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20956 fi
20957 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
20958   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
20959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20960 fi
20961 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
20962   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
20963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20964 fi
20965 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
20966   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
20967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20968 fi
20969 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
20970   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
20971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20972 fi
20973 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
20974   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
20975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20976 fi
20977 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
20978   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
20979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20980 fi
20981 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
20982   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
20983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20984 fi
20985 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20986   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20988 fi
20989 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20990   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20992 fi
20993 if test -z "${BUILD_NSAPI_TRUE}" && test -z "${BUILD_NSAPI_FALSE}"; then
20994   as_fn_error $? "conditional \"BUILD_NSAPI\" was never defined.
20995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20996 fi
20997 if test -z "${BUILD_FASTCGI_TRUE}" && test -z "${BUILD_FASTCGI_FALSE}"; then
20998   as_fn_error $? "conditional \"BUILD_FASTCGI\" was never defined.
20999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21000 fi
21001 if test -z "${BUILD_MEMCACHED_TRUE}" && test -z "${BUILD_MEMCACHED_FALSE}"; then
21002   as_fn_error $? "conditional \"BUILD_MEMCACHED\" was never defined.
21003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21004 fi
21005 if test -z "${BUILD_AP13_TRUE}" && test -z "${BUILD_AP13_FALSE}"; then
21006   as_fn_error $? "conditional \"BUILD_AP13\" was never defined.
21007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21008 fi
21009 if test -z "${BUILD_AP20_TRUE}" && test -z "${BUILD_AP20_FALSE}"; then
21010   as_fn_error $? "conditional \"BUILD_AP20\" was never defined.
21011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21012 fi
21013 if test -z "${BUILD_AP22_TRUE}" && test -z "${BUILD_AP22_FALSE}"; then
21014   as_fn_error $? "conditional \"BUILD_AP22\" was never defined.
21015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21016 fi
21017
21018 : ${CONFIG_STATUS=./config.status}
21019 ac_write_fail=0
21020 ac_clean_files_save=$ac_clean_files
21021 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21023 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21024 as_write_fail=0
21025 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21026 #! $SHELL
21027 # Generated by $as_me.
21028 # Run this file to recreate the current configuration.
21029 # Compiler output produced by configure, useful for debugging
21030 # configure, is in config.log if it exists.
21031
21032 debug=false
21033 ac_cs_recheck=false
21034 ac_cs_silent=false
21035
21036 SHELL=\${CONFIG_SHELL-$SHELL}
21037 export SHELL
21038 _ASEOF
21039 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21040 ## -------------------- ##
21041 ## M4sh Initialization. ##
21042 ## -------------------- ##
21043
21044 # Be more Bourne compatible
21045 DUALCASE=1; export DUALCASE # for MKS sh
21046 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21047   emulate sh
21048   NULLCMD=:
21049   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21050   # is contrary to our usage.  Disable this feature.
21051   alias -g '${1+"$@"}'='"$@"'
21052   setopt NO_GLOB_SUBST
21053 else
21054   case `(set -o) 2>/dev/null` in #(
21055   *posix*) :
21056     set -o posix ;; #(
21057   *) :
21058      ;;
21059 esac
21060 fi
21061
21062
21063 as_nl='
21064 '
21065 export as_nl
21066 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21067 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21069 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21070 # Prefer a ksh shell builtin over an external printf program on Solaris,
21071 # but without wasting forks for bash or zsh.
21072 if test -z "$BASH_VERSION$ZSH_VERSION" \
21073     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21074   as_echo='print -r --'
21075   as_echo_n='print -rn --'
21076 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21077   as_echo='printf %s\n'
21078   as_echo_n='printf %s'
21079 else
21080   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21081     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21082     as_echo_n='/usr/ucb/echo -n'
21083   else
21084     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21085     as_echo_n_body='eval
21086       arg=$1;
21087       case $arg in #(
21088       *"$as_nl"*)
21089         expr "X$arg" : "X\\(.*\\)$as_nl";
21090         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21091       esac;
21092       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21093     '
21094     export as_echo_n_body
21095     as_echo_n='sh -c $as_echo_n_body as_echo'
21096   fi
21097   export as_echo_body
21098   as_echo='sh -c $as_echo_body as_echo'
21099 fi
21100
21101 # The user is always right.
21102 if test "${PATH_SEPARATOR+set}" != set; then
21103   PATH_SEPARATOR=:
21104   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21105     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21106       PATH_SEPARATOR=';'
21107   }
21108 fi
21109
21110
21111 # IFS
21112 # We need space, tab and new line, in precisely that order.  Quoting is
21113 # there to prevent editors from complaining about space-tab.
21114 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21115 # splitting by setting IFS to empty value.)
21116 IFS=" ""        $as_nl"
21117
21118 # Find who we are.  Look in the path if we contain no directory separator.
21119 case $0 in #((
21120   *[\\/]* ) as_myself=$0 ;;
21121   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21122 for as_dir in $PATH
21123 do
21124   IFS=$as_save_IFS
21125   test -z "$as_dir" && as_dir=.
21126     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21127   done
21128 IFS=$as_save_IFS
21129
21130      ;;
21131 esac
21132 # We did not find ourselves, most probably we were run as `sh COMMAND'
21133 # in which case we are not to be found in the path.
21134 if test "x$as_myself" = x; then
21135   as_myself=$0
21136 fi
21137 if test ! -f "$as_myself"; then
21138   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21139   exit 1
21140 fi
21141
21142 # Unset variables that we do not need and which cause bugs (e.g. in
21143 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21144 # suppresses any "Segmentation fault" message there.  '((' could
21145 # trigger a bug in pdksh 5.2.14.
21146 for as_var in BASH_ENV ENV MAIL MAILPATH
21147 do eval test x\${$as_var+set} = xset \
21148   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21149 done
21150 PS1='$ '
21151 PS2='> '
21152 PS4='+ '
21153
21154 # NLS nuisances.
21155 LC_ALL=C
21156 export LC_ALL
21157 LANGUAGE=C
21158 export LANGUAGE
21159
21160 # CDPATH.
21161 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21162
21163
21164 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21165 # ----------------------------------------
21166 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21167 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21168 # script with STATUS, using 1 if that was 0.
21169 as_fn_error ()
21170 {
21171   as_status=$1; test $as_status -eq 0 && as_status=1
21172   if test "$4"; then
21173     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21174     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21175   fi
21176   $as_echo "$as_me: error: $2" >&2
21177   as_fn_exit $as_status
21178 } # as_fn_error
21179
21180
21181 # as_fn_set_status STATUS
21182 # -----------------------
21183 # Set $? to STATUS, without forking.
21184 as_fn_set_status ()
21185 {
21186   return $1
21187 } # as_fn_set_status
21188
21189 # as_fn_exit STATUS
21190 # -----------------
21191 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21192 as_fn_exit ()
21193 {
21194   set +e
21195   as_fn_set_status $1
21196   exit $1
21197 } # as_fn_exit
21198
21199 # as_fn_unset VAR
21200 # ---------------
21201 # Portably unset VAR.
21202 as_fn_unset ()
21203 {
21204   { eval $1=; unset $1;}
21205 }
21206 as_unset=as_fn_unset
21207 # as_fn_append VAR VALUE
21208 # ----------------------
21209 # Append the text in VALUE to the end of the definition contained in VAR. Take
21210 # advantage of any shell optimizations that allow amortized linear growth over
21211 # repeated appends, instead of the typical quadratic growth present in naive
21212 # implementations.
21213 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21214   eval 'as_fn_append ()
21215   {
21216     eval $1+=\$2
21217   }'
21218 else
21219   as_fn_append ()
21220   {
21221     eval $1=\$$1\$2
21222   }
21223 fi # as_fn_append
21224
21225 # as_fn_arith ARG...
21226 # ------------------
21227 # Perform arithmetic evaluation on the ARGs, and store the result in the
21228 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21229 # must be portable across $(()) and expr.
21230 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21231   eval 'as_fn_arith ()
21232   {
21233     as_val=$(( $* ))
21234   }'
21235 else
21236   as_fn_arith ()
21237   {
21238     as_val=`expr "$@" || test $? -eq 1`
21239   }
21240 fi # as_fn_arith
21241
21242
21243 if expr a : '\(a\)' >/dev/null 2>&1 &&
21244    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21245   as_expr=expr
21246 else
21247   as_expr=false
21248 fi
21249
21250 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21251   as_basename=basename
21252 else
21253   as_basename=false
21254 fi
21255
21256 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21257   as_dirname=dirname
21258 else
21259   as_dirname=false
21260 fi
21261
21262 as_me=`$as_basename -- "$0" ||
21263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21264          X"$0" : 'X\(//\)$' \| \
21265          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21266 $as_echo X/"$0" |
21267     sed '/^.*\/\([^/][^/]*\)\/*$/{
21268             s//\1/
21269             q
21270           }
21271           /^X\/\(\/\/\)$/{
21272             s//\1/
21273             q
21274           }
21275           /^X\/\(\/\).*/{
21276             s//\1/
21277             q
21278           }
21279           s/.*/./; q'`
21280
21281 # Avoid depending upon Character Ranges.
21282 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21283 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21284 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21285 as_cr_digits='0123456789'
21286 as_cr_alnum=$as_cr_Letters$as_cr_digits
21287
21288 ECHO_C= ECHO_N= ECHO_T=
21289 case `echo -n x` in #(((((
21290 -n*)
21291   case `echo 'xy\c'` in
21292   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21293   xy)  ECHO_C='\c';;
21294   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21295        ECHO_T=' ';;
21296   esac;;
21297 *)
21298   ECHO_N='-n';;
21299 esac
21300
21301 rm -f conf$$ conf$$.exe conf$$.file
21302 if test -d conf$$.dir; then
21303   rm -f conf$$.dir/conf$$.file
21304 else
21305   rm -f conf$$.dir
21306   mkdir conf$$.dir 2>/dev/null
21307 fi
21308 if (echo >conf$$.file) 2>/dev/null; then
21309   if ln -s conf$$.file conf$$ 2>/dev/null; then
21310     as_ln_s='ln -s'
21311     # ... but there are two gotchas:
21312     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21313     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21314     # In both cases, we have to default to `cp -p'.
21315     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21316       as_ln_s='cp -p'
21317   elif ln conf$$.file conf$$ 2>/dev/null; then
21318     as_ln_s=ln
21319   else
21320     as_ln_s='cp -p'
21321   fi
21322 else
21323   as_ln_s='cp -p'
21324 fi
21325 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21326 rmdir conf$$.dir 2>/dev/null
21327
21328
21329 # as_fn_mkdir_p
21330 # -------------
21331 # Create "$as_dir" as a directory, including parents if necessary.
21332 as_fn_mkdir_p ()
21333 {
21334
21335   case $as_dir in #(
21336   -*) as_dir=./$as_dir;;
21337   esac
21338   test -d "$as_dir" || eval $as_mkdir_p || {
21339     as_dirs=
21340     while :; do
21341       case $as_dir in #(
21342       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21343       *) as_qdir=$as_dir;;
21344       esac
21345       as_dirs="'$as_qdir' $as_dirs"
21346       as_dir=`$as_dirname -- "$as_dir" ||
21347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21348          X"$as_dir" : 'X\(//\)[^/]' \| \
21349          X"$as_dir" : 'X\(//\)$' \| \
21350          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21351 $as_echo X"$as_dir" |
21352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21353             s//\1/
21354             q
21355           }
21356           /^X\(\/\/\)[^/].*/{
21357             s//\1/
21358             q
21359           }
21360           /^X\(\/\/\)$/{
21361             s//\1/
21362             q
21363           }
21364           /^X\(\/\).*/{
21365             s//\1/
21366             q
21367           }
21368           s/.*/./; q'`
21369       test -d "$as_dir" && break
21370     done
21371     test -z "$as_dirs" || eval "mkdir $as_dirs"
21372   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21373
21374
21375 } # as_fn_mkdir_p
21376 if mkdir -p . 2>/dev/null; then
21377   as_mkdir_p='mkdir -p "$as_dir"'
21378 else
21379   test -d ./-p && rmdir ./-p
21380   as_mkdir_p=false
21381 fi
21382
21383 if test -x / >/dev/null 2>&1; then
21384   as_test_x='test -x'
21385 else
21386   if ls -dL / >/dev/null 2>&1; then
21387     as_ls_L_option=L
21388   else
21389     as_ls_L_option=
21390   fi
21391   as_test_x='
21392     eval sh -c '\''
21393       if test -d "$1"; then
21394         test -d "$1/.";
21395       else
21396         case $1 in #(
21397         -*)set "./$1";;
21398         esac;
21399         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21400         ???[sx]*):;;*)false;;esac;fi
21401     '\'' sh
21402   '
21403 fi
21404 as_executable_p=$as_test_x
21405
21406 # Sed expression to map a string onto a valid CPP name.
21407 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21408
21409 # Sed expression to map a string onto a valid variable name.
21410 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21411
21412
21413 exec 6>&1
21414 ## ----------------------------------- ##
21415 ## Main body of $CONFIG_STATUS script. ##
21416 ## ----------------------------------- ##
21417 _ASEOF
21418 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21419
21420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21421 # Save the log message, to keep $0 and so on meaningful, and to
21422 # report actual input values of CONFIG_FILES etc. instead of their
21423 # values after options handling.
21424 ac_log="
21425 This file was extended by shibboleth $as_me 2.5, which was
21426 generated by GNU Autoconf 2.67.  Invocation command line was
21427
21428   CONFIG_FILES    = $CONFIG_FILES
21429   CONFIG_HEADERS  = $CONFIG_HEADERS
21430   CONFIG_LINKS    = $CONFIG_LINKS
21431   CONFIG_COMMANDS = $CONFIG_COMMANDS
21432   $ $0 $@
21433
21434 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21435 "
21436
21437 _ACEOF
21438
21439 case $ac_config_files in *"
21440 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21441 esac
21442
21443 case $ac_config_headers in *"
21444 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21445 esac
21446
21447
21448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21449 # Files that config.status was made for.
21450 config_files="$ac_config_files"
21451 config_headers="$ac_config_headers"
21452 config_commands="$ac_config_commands"
21453
21454 _ACEOF
21455
21456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21457 ac_cs_usage="\
21458 \`$as_me' instantiates files and other configuration actions
21459 from templates according to the current configuration.  Unless the files
21460 and actions are specified as TAGs, all are instantiated by default.
21461
21462 Usage: $0 [OPTION]... [TAG]...
21463
21464   -h, --help       print this help, then exit
21465   -V, --version    print version number and configuration settings, then exit
21466       --config     print configuration, then exit
21467   -q, --quiet, --silent
21468                    do not print progress messages
21469   -d, --debug      don't remove temporary files
21470       --recheck    update $as_me by reconfiguring in the same conditions
21471       --file=FILE[:TEMPLATE]
21472                    instantiate the configuration file FILE
21473       --header=FILE[:TEMPLATE]
21474                    instantiate the configuration header FILE
21475
21476 Configuration files:
21477 $config_files
21478
21479 Configuration headers:
21480 $config_headers
21481
21482 Configuration commands:
21483 $config_commands
21484
21485 Report bugs to <https://issues.shibboleth.net/>."
21486
21487 _ACEOF
21488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21489 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21490 ac_cs_version="\\
21491 shibboleth config.status 2.5
21492 configured by $0, generated by GNU Autoconf 2.67,
21493   with options \\"\$ac_cs_config\\"
21494
21495 Copyright (C) 2010 Free Software Foundation, Inc.
21496 This config.status script is free software; the Free Software Foundation
21497 gives unlimited permission to copy, distribute and modify it."
21498
21499 ac_pwd='$ac_pwd'
21500 srcdir='$srcdir'
21501 INSTALL='$INSTALL'
21502 MKDIR_P='$MKDIR_P'
21503 AWK='$AWK'
21504 test -n "\$AWK" || AWK=awk
21505 _ACEOF
21506
21507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21508 # The default lists apply if the user does not specify any file.
21509 ac_need_defaults=:
21510 while test $# != 0
21511 do
21512   case $1 in
21513   --*=?*)
21514     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21515     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21516     ac_shift=:
21517     ;;
21518   --*=)
21519     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21520     ac_optarg=
21521     ac_shift=:
21522     ;;
21523   *)
21524     ac_option=$1
21525     ac_optarg=$2
21526     ac_shift=shift
21527     ;;
21528   esac
21529
21530   case $ac_option in
21531   # Handling of the options.
21532   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21533     ac_cs_recheck=: ;;
21534   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21535     $as_echo "$ac_cs_version"; exit ;;
21536   --config | --confi | --conf | --con | --co | --c )
21537     $as_echo "$ac_cs_config"; exit ;;
21538   --debug | --debu | --deb | --de | --d | -d )
21539     debug=: ;;
21540   --file | --fil | --fi | --f )
21541     $ac_shift
21542     case $ac_optarg in
21543     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21544     '') as_fn_error $? "missing file argument" ;;
21545     esac
21546     as_fn_append CONFIG_FILES " '$ac_optarg'"
21547     ac_need_defaults=false;;
21548   --header | --heade | --head | --hea )
21549     $ac_shift
21550     case $ac_optarg in
21551     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21552     esac
21553     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21554     ac_need_defaults=false;;
21555   --he | --h)
21556     # Conflict between --help and --header
21557     as_fn_error $? "ambiguous option: \`$1'
21558 Try \`$0 --help' for more information.";;
21559   --help | --hel | -h )
21560     $as_echo "$ac_cs_usage"; exit ;;
21561   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21562   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21563     ac_cs_silent=: ;;
21564
21565   # This is an error.
21566   -*) as_fn_error $? "unrecognized option: \`$1'
21567 Try \`$0 --help' for more information." ;;
21568
21569   *) as_fn_append ac_config_targets " $1"
21570      ac_need_defaults=false ;;
21571
21572   esac
21573   shift
21574 done
21575
21576 ac_configure_extra_args=
21577
21578 if $ac_cs_silent; then
21579   exec 6>/dev/null
21580   ac_configure_extra_args="$ac_configure_extra_args --silent"
21581 fi
21582
21583 _ACEOF
21584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21585 if \$ac_cs_recheck; then
21586   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21587   shift
21588   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21589   CONFIG_SHELL='$SHELL'
21590   export CONFIG_SHELL
21591   exec "\$@"
21592 fi
21593
21594 _ACEOF
21595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21596 exec 5>>config.log
21597 {
21598   echo
21599   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21600 ## Running $as_me. ##
21601 _ASBOX
21602   $as_echo "$ac_log"
21603 } >&5
21604
21605 _ACEOF
21606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21607 #
21608 # INIT-COMMANDS
21609 #
21610 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21611
21612
21613 # The HP-UX ksh and POSIX shell print the target directory to stdout
21614 # if CDPATH is set.
21615 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21616
21617 sed_quote_subst='$sed_quote_subst'
21618 double_quote_subst='$double_quote_subst'
21619 delay_variable_subst='$delay_variable_subst'
21620 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21621 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21622 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21623 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21624 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21625 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21626 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21627 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21628 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21629 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21630 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21631 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21632 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21633 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21634 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21635 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21636 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21637 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21638 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21639 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21640 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21641 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21642 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21643 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21644 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21645 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21646 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21647 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21648 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21649 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21650 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21651 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21652 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21653 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21654 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21655 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21656 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21657 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21658 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21659 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21660 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21661 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21662 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21663 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21664 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21665 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21666 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21667 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21668 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21669 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21670 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21671 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21672 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21673 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21674 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21675 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
21676 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21677 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21678 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21679 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21680 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21681 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21682 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21683 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21684 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21685 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21686 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21687 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21688 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21689 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21690 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21691 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21692 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21693 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21694 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21695 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21696 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21697 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21698 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21699 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21700 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21701 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21702 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21703 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21704 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21705 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21706 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21707 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21708 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21709 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21710 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
21711 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21712 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21713 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21714 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21715 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21716 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21717 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21718 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21719 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21720 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21721 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21722 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21723 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21724 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21725 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21726 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21727 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21728 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21729 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21730 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21731 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21732 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21733 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21734 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21735 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21736 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21737 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21738 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21739 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21740 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21741 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21742 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21743 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21744 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21745 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21746 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21747 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21748 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21749 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21750 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21751 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21752 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21753 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21754 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21755 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21756 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21757 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21758 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21759 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21760 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21761 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21762 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21763 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21764 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21765 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21766 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21767 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21768 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21769 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21770 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21771 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21772 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21773 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21774 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21775 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21776 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21777 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21778 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21779 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21780 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21781 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21782 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
21783 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21784 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21785 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21786 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21787 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21788 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21789 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21790 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21791 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21792 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21793 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21794 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21795 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21796 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21797 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21798 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21799 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21800 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21801 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21802 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21803 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21804 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21805
21806 LTCC='$LTCC'
21807 LTCFLAGS='$LTCFLAGS'
21808 compiler='$compiler_DEFAULT'
21809
21810 # A function that is used when there is no print builtin or printf.
21811 func_fallback_echo ()
21812 {
21813   eval 'cat <<_LTECHO_EOF
21814 \$1
21815 _LTECHO_EOF'
21816 }
21817
21818 # Quote evaled strings.
21819 for var in SHELL \
21820 ECHO \
21821 SED \
21822 GREP \
21823 EGREP \
21824 FGREP \
21825 LD \
21826 NM \
21827 LN_S \
21828 lt_SP2NL \
21829 lt_NL2SP \
21830 reload_flag \
21831 OBJDUMP \
21832 deplibs_check_method \
21833 file_magic_cmd \
21834 file_magic_glob \
21835 want_nocaseglob \
21836 DLLTOOL \
21837 sharedlib_from_linklib_cmd \
21838 AR \
21839 AR_FLAGS \
21840 archiver_list_spec \
21841 STRIP \
21842 RANLIB \
21843 CC \
21844 CFLAGS \
21845 compiler \
21846 lt_cv_sys_global_symbol_pipe \
21847 lt_cv_sys_global_symbol_to_cdecl \
21848 lt_cv_sys_global_symbol_to_c_name_address \
21849 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21850 nm_file_list_spec \
21851 lt_prog_compiler_no_builtin_flag \
21852 lt_prog_compiler_pic \
21853 lt_prog_compiler_wl \
21854 lt_prog_compiler_static \
21855 lt_cv_prog_compiler_c_o \
21856 need_locks \
21857 MANIFEST_TOOL \
21858 DSYMUTIL \
21859 NMEDIT \
21860 LIPO \
21861 OTOOL \
21862 OTOOL64 \
21863 shrext_cmds \
21864 export_dynamic_flag_spec \
21865 whole_archive_flag_spec \
21866 compiler_needs_object \
21867 with_gnu_ld \
21868 allow_undefined_flag \
21869 no_undefined_flag \
21870 hardcode_libdir_flag_spec \
21871 hardcode_libdir_flag_spec_ld \
21872 hardcode_libdir_separator \
21873 exclude_expsyms \
21874 include_expsyms \
21875 file_list_spec \
21876 variables_saved_for_relink \
21877 libname_spec \
21878 library_names_spec \
21879 soname_spec \
21880 install_override_mode \
21881 finish_eval \
21882 old_striplib \
21883 striplib \
21884 compiler_lib_search_dirs \
21885 predep_objects \
21886 postdep_objects \
21887 predeps \
21888 postdeps \
21889 compiler_lib_search_path \
21890 LD_CXX \
21891 reload_flag_CXX \
21892 compiler_CXX \
21893 lt_prog_compiler_no_builtin_flag_CXX \
21894 lt_prog_compiler_pic_CXX \
21895 lt_prog_compiler_wl_CXX \
21896 lt_prog_compiler_static_CXX \
21897 lt_cv_prog_compiler_c_o_CXX \
21898 export_dynamic_flag_spec_CXX \
21899 whole_archive_flag_spec_CXX \
21900 compiler_needs_object_CXX \
21901 with_gnu_ld_CXX \
21902 allow_undefined_flag_CXX \
21903 no_undefined_flag_CXX \
21904 hardcode_libdir_flag_spec_CXX \
21905 hardcode_libdir_flag_spec_ld_CXX \
21906 hardcode_libdir_separator_CXX \
21907 exclude_expsyms_CXX \
21908 include_expsyms_CXX \
21909 file_list_spec_CXX \
21910 compiler_lib_search_dirs_CXX \
21911 predep_objects_CXX \
21912 postdep_objects_CXX \
21913 predeps_CXX \
21914 postdeps_CXX \
21915 compiler_lib_search_path_CXX; do
21916     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21917     *[\\\\\\\`\\"\\\$]*)
21918       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21919       ;;
21920     *)
21921       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21922       ;;
21923     esac
21924 done
21925
21926 # Double-quote double-evaled strings.
21927 for var in reload_cmds \
21928 old_postinstall_cmds \
21929 old_postuninstall_cmds \
21930 old_archive_cmds \
21931 extract_expsyms_cmds \
21932 old_archive_from_new_cmds \
21933 old_archive_from_expsyms_cmds \
21934 archive_cmds \
21935 archive_expsym_cmds \
21936 module_cmds \
21937 module_expsym_cmds \
21938 export_symbols_cmds \
21939 prelink_cmds \
21940 postlink_cmds \
21941 postinstall_cmds \
21942 postuninstall_cmds \
21943 finish_cmds \
21944 sys_lib_search_path_spec \
21945 sys_lib_dlsearch_path_spec \
21946 reload_cmds_CXX \
21947 old_archive_cmds_CXX \
21948 old_archive_from_new_cmds_CXX \
21949 old_archive_from_expsyms_cmds_CXX \
21950 archive_cmds_CXX \
21951 archive_expsym_cmds_CXX \
21952 module_cmds_CXX \
21953 module_expsym_cmds_CXX \
21954 export_symbols_cmds_CXX \
21955 prelink_cmds_CXX \
21956 postlink_cmds_CXX; do
21957     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21958     *[\\\\\\\`\\"\\\$]*)
21959       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21960       ;;
21961     *)
21962       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21963       ;;
21964     esac
21965 done
21966
21967 ac_aux_dir='$ac_aux_dir'
21968 xsi_shell='$xsi_shell'
21969 lt_shell_append='$lt_shell_append'
21970
21971 # See if we are running on zsh, and set the options which allow our
21972 # commands through without removal of \ escapes INIT.
21973 if test -n "\${ZSH_VERSION+set}" ; then
21974    setopt NO_GLOB_SUBST
21975 fi
21976
21977
21978     PACKAGE='$PACKAGE'
21979     VERSION='$VERSION'
21980     TIMESTAMP='$TIMESTAMP'
21981     RM='$RM'
21982     ofile='$ofile'
21983
21984
21985
21986
21987
21988
21989 _ACEOF
21990
21991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21992
21993 # Handling of arguments.
21994 for ac_config_target in $ac_config_targets
21995 do
21996   case $ac_config_target in
21997     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21998     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21999     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22000     "shibsp/config_pub.h") CONFIG_HEADERS="$CONFIG_HEADERS shibsp/config_pub.h" ;;
22001     "shibboleth.spec") CONFIG_FILES="$CONFIG_FILES shibboleth.spec" ;;
22002     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22003     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22004     "schemas/Makefile") CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
22005     "configs/Makefile") CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
22006     "shibsp/Makefile") CONFIG_FILES="$CONFIG_FILES shibsp/Makefile" ;;
22007     "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
22008     "shibd/Makefile") CONFIG_FILES="$CONFIG_FILES shibd/Makefile" ;;
22009     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
22010     "selinux/Makefile") CONFIG_FILES="$CONFIG_FILES selinux/Makefile" ;;
22011     "adfs/Makefile") CONFIG_FILES="$CONFIG_FILES adfs/Makefile" ;;
22012     "nsapi_shib/Makefile") CONFIG_FILES="$CONFIG_FILES nsapi_shib/Makefile" ;;
22013     "fastcgi/Makefile") CONFIG_FILES="$CONFIG_FILES fastcgi/Makefile" ;;
22014     "memcache-store/Makefile") CONFIG_FILES="$CONFIG_FILES memcache-store/Makefile" ;;
22015     "apache/Makefile") CONFIG_FILES="$CONFIG_FILES apache/Makefile" ;;
22016     "odbc-store/Makefile") CONFIG_FILES="$CONFIG_FILES odbc-store/Makefile" ;;
22017
22018   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
22019   esac
22020 done
22021
22022
22023 # If the user did not use the arguments to specify the items to instantiate,
22024 # then the envvar interface is used.  Set only those that are not.
22025 # We use the long form for the default assignment because of an extremely
22026 # bizarre bug on SunOS 4.1.3.
22027 if $ac_need_defaults; then
22028   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22029   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22030   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22031 fi
22032
22033 # Have a temporary directory for convenience.  Make it in the build tree
22034 # simply because there is no reason against having it here, and in addition,
22035 # creating and moving files from /tmp can sometimes cause problems.
22036 # Hook for its removal unless debugging.
22037 # Note that there is a small window in which the directory will not be cleaned:
22038 # after its creation but before its name has been assigned to `$tmp'.
22039 $debug ||
22040 {
22041   tmp=
22042   trap 'exit_status=$?
22043   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22044 ' 0
22045   trap 'as_fn_exit 1' 1 2 13 15
22046 }
22047 # Create a (secure) tmp directory for tmp files.
22048
22049 {
22050   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22051   test -n "$tmp" && test -d "$tmp"
22052 }  ||
22053 {
22054   tmp=./conf$$-$RANDOM
22055   (umask 077 && mkdir "$tmp")
22056 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22057
22058 # Set up the scripts for CONFIG_FILES section.
22059 # No need to generate them if there are no CONFIG_FILES.
22060 # This happens for instance with `./config.status config.h'.
22061 if test -n "$CONFIG_FILES"; then
22062
22063
22064 ac_cr=`echo X | tr X '\015'`
22065 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22066 # But we know of no other shell where ac_cr would be empty at this
22067 # point, so we can use a bashism as a fallback.
22068 if test "x$ac_cr" = x; then
22069   eval ac_cr=\$\'\\r\'
22070 fi
22071 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22072 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22073   ac_cs_awk_cr='\\r'
22074 else
22075   ac_cs_awk_cr=$ac_cr
22076 fi
22077
22078 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22079 _ACEOF
22080
22081
22082 {
22083   echo "cat >conf$$subs.awk <<_ACEOF" &&
22084   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22085   echo "_ACEOF"
22086 } >conf$$subs.sh ||
22087   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22088 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22089 ac_delim='%!_!# '
22090 for ac_last_try in false false false false false :; do
22091   . ./conf$$subs.sh ||
22092     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22093
22094   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22095   if test $ac_delim_n = $ac_delim_num; then
22096     break
22097   elif $ac_last_try; then
22098     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22099   else
22100     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22101   fi
22102 done
22103 rm -f conf$$subs.sh
22104
22105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22106 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22107 _ACEOF
22108 sed -n '
22109 h
22110 s/^/S["/; s/!.*/"]=/
22111 p
22112 g
22113 s/^[^!]*!//
22114 :repl
22115 t repl
22116 s/'"$ac_delim"'$//
22117 t delim
22118 :nl
22119 h
22120 s/\(.\{148\}\)..*/\1/
22121 t more1
22122 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22123 p
22124 n
22125 b repl
22126 :more1
22127 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22128 p
22129 g
22130 s/.\{148\}//
22131 t nl
22132 :delim
22133 h
22134 s/\(.\{148\}\)..*/\1/
22135 t more2
22136 s/["\\]/\\&/g; s/^/"/; s/$/"/
22137 p
22138 b
22139 :more2
22140 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22141 p
22142 g
22143 s/.\{148\}//
22144 t delim
22145 ' <conf$$subs.awk | sed '
22146 /^[^""]/{
22147   N
22148   s/\n//
22149 }
22150 ' >>$CONFIG_STATUS || ac_write_fail=1
22151 rm -f conf$$subs.awk
22152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22153 _ACAWK
22154 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22155   for (key in S) S_is_set[key] = 1
22156   FS = "\a"
22157
22158 }
22159 {
22160   line = $ 0
22161   nfields = split(line, field, "@")
22162   substed = 0
22163   len = length(field[1])
22164   for (i = 2; i < nfields; i++) {
22165     key = field[i]
22166     keylen = length(key)
22167     if (S_is_set[key]) {
22168       value = S[key]
22169       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22170       len += length(value) + length(field[++i])
22171       substed = 1
22172     } else
22173       len += 1 + keylen
22174   }
22175
22176   print line
22177 }
22178
22179 _ACAWK
22180 _ACEOF
22181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22182 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22183   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22184 else
22185   cat
22186 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22187   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22188 _ACEOF
22189
22190 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22191 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22192 # trailing colons and then remove the whole line if VPATH becomes empty
22193 # (actually we leave an empty line to preserve line numbers).
22194 if test "x$srcdir" = x.; then
22195   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
22196 h
22197 s///
22198 s/^/:/
22199 s/[      ]*$/:/
22200 s/:\$(srcdir):/:/g
22201 s/:\${srcdir}:/:/g
22202 s/:@srcdir@:/:/g
22203 s/^:*//
22204 s/:*$//
22205 x
22206 s/\(=[   ]*\).*/\1/
22207 G
22208 s/\n//
22209 s/^[^=]*=[       ]*$//
22210 }'
22211 fi
22212
22213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22214 fi # test -n "$CONFIG_FILES"
22215
22216 # Set up the scripts for CONFIG_HEADERS section.
22217 # No need to generate them if there are no CONFIG_HEADERS.
22218 # This happens for instance with `./config.status Makefile'.
22219 if test -n "$CONFIG_HEADERS"; then
22220 cat >"$tmp/defines.awk" <<\_ACAWK ||
22221 BEGIN {
22222 _ACEOF
22223
22224 # Transform confdefs.h into an awk script `defines.awk', embedded as
22225 # here-document in config.status, that substitutes the proper values into
22226 # config.h.in to produce config.h.
22227
22228 # Create a delimiter string that does not exist in confdefs.h, to ease
22229 # handling of long lines.
22230 ac_delim='%!_!# '
22231 for ac_last_try in false false :; do
22232   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22233   if test -z "$ac_t"; then
22234     break
22235   elif $ac_last_try; then
22236     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22237   else
22238     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22239   fi
22240 done
22241
22242 # For the awk script, D is an array of macro values keyed by name,
22243 # likewise P contains macro parameters if any.  Preserve backslash
22244 # newline sequences.
22245
22246 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22247 sed -n '
22248 s/.\{148\}/&'"$ac_delim"'/g
22249 t rset
22250 :rset
22251 s/^[     ]*#[    ]*define[       ][      ]*/ /
22252 t def
22253 d
22254 :def
22255 s/\\$//
22256 t bsnl
22257 s/["\\]/\\&/g
22258 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22259 D["\1"]=" \3"/p
22260 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22261 d
22262 :bsnl
22263 s/["\\]/\\&/g
22264 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22265 D["\1"]=" \3\\\\\\n"\\/p
22266 t cont
22267 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22268 t cont
22269 d
22270 :cont
22271 n
22272 s/.\{148\}/&'"$ac_delim"'/g
22273 t clear
22274 :clear
22275 s/\\$//
22276 t bsnlc
22277 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22278 d
22279 :bsnlc
22280 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22281 b cont
22282 ' <confdefs.h | sed '
22283 s/'"$ac_delim"'/"\\\
22284 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22285
22286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22287   for (key in D) D_is_set[key] = 1
22288   FS = "\a"
22289 }
22290 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22291   line = \$ 0
22292   split(line, arg, " ")
22293   if (arg[1] == "#") {
22294     defundef = arg[2]
22295     mac1 = arg[3]
22296   } else {
22297     defundef = substr(arg[1], 2)
22298     mac1 = arg[2]
22299   }
22300   split(mac1, mac2, "(") #)
22301   macro = mac2[1]
22302   prefix = substr(line, 1, index(line, defundef) - 1)
22303   if (D_is_set[macro]) {
22304     # Preserve the white space surrounding the "#".
22305     print prefix "define", macro P[macro] D[macro]
22306     next
22307   } else {
22308     # Replace #undef with comments.  This is necessary, for example,
22309     # in the case of _POSIX_SOURCE, which is predefined and required
22310     # on some systems where configure will not decide to define it.
22311     if (defundef == "undef") {
22312       print "/*", prefix defundef, macro, "*/"
22313       next
22314     }
22315   }
22316 }
22317 { print }
22318 _ACAWK
22319 _ACEOF
22320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22321   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22322 fi # test -n "$CONFIG_HEADERS"
22323
22324
22325 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22326 shift
22327 for ac_tag
22328 do
22329   case $ac_tag in
22330   :[FHLC]) ac_mode=$ac_tag; continue;;
22331   esac
22332   case $ac_mode$ac_tag in
22333   :[FHL]*:*);;
22334   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
22335   :[FH]-) ac_tag=-:-;;
22336   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22337   esac
22338   ac_save_IFS=$IFS
22339   IFS=:
22340   set x $ac_tag
22341   IFS=$ac_save_IFS
22342   shift
22343   ac_file=$1
22344   shift
22345
22346   case $ac_mode in
22347   :L) ac_source=$1;;
22348   :[FH])
22349     ac_file_inputs=
22350     for ac_f
22351     do
22352       case $ac_f in
22353       -) ac_f="$tmp/stdin";;
22354       *) # Look for the file first in the build tree, then in the source tree
22355          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22356          # because $ac_f cannot contain `:'.
22357          test -f "$ac_f" ||
22358            case $ac_f in
22359            [\\/$]*) false;;
22360            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22361            esac ||
22362            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
22363       esac
22364       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22365       as_fn_append ac_file_inputs " '$ac_f'"
22366     done
22367
22368     # Let's still pretend it is `configure' which instantiates (i.e., don't
22369     # use $as_me), people would be surprised to read:
22370     #    /* config.h.  Generated by config.status.  */
22371     configure_input='Generated from '`
22372           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22373         `' by configure.'
22374     if test x"$ac_file" != x-; then
22375       configure_input="$ac_file.  $configure_input"
22376       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22377 $as_echo "$as_me: creating $ac_file" >&6;}
22378     fi
22379     # Neutralize special characters interpreted by sed in replacement strings.
22380     case $configure_input in #(
22381     *\&* | *\|* | *\\* )
22382        ac_sed_conf_input=`$as_echo "$configure_input" |
22383        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22384     *) ac_sed_conf_input=$configure_input;;
22385     esac
22386
22387     case $ac_tag in
22388     *:-:* | *:-) cat >"$tmp/stdin" \
22389       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
22390     esac
22391     ;;
22392   esac
22393
22394   ac_dir=`$as_dirname -- "$ac_file" ||
22395 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22396          X"$ac_file" : 'X\(//\)[^/]' \| \
22397          X"$ac_file" : 'X\(//\)$' \| \
22398          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22399 $as_echo X"$ac_file" |
22400     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22401             s//\1/
22402             q
22403           }
22404           /^X\(\/\/\)[^/].*/{
22405             s//\1/
22406             q
22407           }
22408           /^X\(\/\/\)$/{
22409             s//\1/
22410             q
22411           }
22412           /^X\(\/\).*/{
22413             s//\1/
22414             q
22415           }
22416           s/.*/./; q'`
22417   as_dir="$ac_dir"; as_fn_mkdir_p
22418   ac_builddir=.
22419
22420 case "$ac_dir" in
22421 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22422 *)
22423   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22424   # A ".." for each directory in $ac_dir_suffix.
22425   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22426   case $ac_top_builddir_sub in
22427   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22428   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22429   esac ;;
22430 esac
22431 ac_abs_top_builddir=$ac_pwd
22432 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22433 # for backward compatibility:
22434 ac_top_builddir=$ac_top_build_prefix
22435
22436 case $srcdir in
22437   .)  # We are building in place.
22438     ac_srcdir=.
22439     ac_top_srcdir=$ac_top_builddir_sub
22440     ac_abs_top_srcdir=$ac_pwd ;;
22441   [\\/]* | ?:[\\/]* )  # Absolute name.
22442     ac_srcdir=$srcdir$ac_dir_suffix;
22443     ac_top_srcdir=$srcdir
22444     ac_abs_top_srcdir=$srcdir ;;
22445   *) # Relative name.
22446     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22447     ac_top_srcdir=$ac_top_build_prefix$srcdir
22448     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22449 esac
22450 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22451
22452
22453   case $ac_mode in
22454   :F)
22455   #
22456   # CONFIG_FILE
22457   #
22458
22459   case $INSTALL in
22460   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22461   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22462   esac
22463   ac_MKDIR_P=$MKDIR_P
22464   case $MKDIR_P in
22465   [\\/$]* | ?:[\\/]* ) ;;
22466   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22467   esac
22468 _ACEOF
22469
22470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22471 # If the template does not know about datarootdir, expand it.
22472 # FIXME: This hack should be removed a few years after 2.60.
22473 ac_datarootdir_hack=; ac_datarootdir_seen=
22474 ac_sed_dataroot='
22475 /datarootdir/ {
22476   p
22477   q
22478 }
22479 /@datadir@/p
22480 /@docdir@/p
22481 /@infodir@/p
22482 /@localedir@/p
22483 /@mandir@/p'
22484 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22485 *datarootdir*) ac_datarootdir_seen=yes;;
22486 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22487   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22488 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22489 _ACEOF
22490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22491   ac_datarootdir_hack='
22492   s&@datadir@&$datadir&g
22493   s&@docdir@&$docdir&g
22494   s&@infodir@&$infodir&g
22495   s&@localedir@&$localedir&g
22496   s&@mandir@&$mandir&g
22497   s&\\\${datarootdir}&$datarootdir&g' ;;
22498 esac
22499 _ACEOF
22500
22501 # Neutralize VPATH when `$srcdir' = `.'.
22502 # Shell code in configure.ac might set extrasub.
22503 # FIXME: do we really want to maintain this feature?
22504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22505 ac_sed_extra="$ac_vpsub
22506 $extrasub
22507 _ACEOF
22508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22509 :t
22510 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22511 s|@configure_input@|$ac_sed_conf_input|;t t
22512 s&@top_builddir@&$ac_top_builddir_sub&;t t
22513 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22514 s&@srcdir@&$ac_srcdir&;t t
22515 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22516 s&@top_srcdir@&$ac_top_srcdir&;t t
22517 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22518 s&@builddir@&$ac_builddir&;t t
22519 s&@abs_builddir@&$ac_abs_builddir&;t t
22520 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22521 s&@INSTALL@&$ac_INSTALL&;t t
22522 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22523 $ac_datarootdir_hack
22524 "
22525 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22526   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22527
22528 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22529   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22530   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22531   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22532 which seems to be undefined.  Please make sure it is defined" >&5
22533 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22534 which seems to be undefined.  Please make sure it is defined" >&2;}
22535
22536   rm -f "$tmp/stdin"
22537   case $ac_file in
22538   -) cat "$tmp/out" && rm -f "$tmp/out";;
22539   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22540   esac \
22541   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22542  ;;
22543   :H)
22544   #
22545   # CONFIG_HEADER
22546   #
22547   if test x"$ac_file" != x-; then
22548     {
22549       $as_echo "/* $configure_input  */" \
22550       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22551     } >"$tmp/config.h" \
22552       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22553     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22554       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22555 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22556     else
22557       rm -f "$ac_file"
22558       mv "$tmp/config.h" "$ac_file" \
22559         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22560     fi
22561   else
22562     $as_echo "/* $configure_input  */" \
22563       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22564       || as_fn_error $? "could not create -" "$LINENO" 5
22565   fi
22566 # Compute "$ac_file"'s index in $config_headers.
22567 _am_arg="$ac_file"
22568 _am_stamp_count=1
22569 for _am_header in $config_headers :; do
22570   case $_am_header in
22571     $_am_arg | $_am_arg:* )
22572       break ;;
22573     * )
22574       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22575   esac
22576 done
22577 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22578 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22579          X"$_am_arg" : 'X\(//\)[^/]' \| \
22580          X"$_am_arg" : 'X\(//\)$' \| \
22581          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22582 $as_echo X"$_am_arg" |
22583     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22584             s//\1/
22585             q
22586           }
22587           /^X\(\/\/\)[^/].*/{
22588             s//\1/
22589             q
22590           }
22591           /^X\(\/\/\)$/{
22592             s//\1/
22593             q
22594           }
22595           /^X\(\/\).*/{
22596             s//\1/
22597             q
22598           }
22599           s/.*/./; q'`/stamp-h$_am_stamp_count
22600  ;;
22601
22602   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22603 $as_echo "$as_me: executing $ac_file commands" >&6;}
22604  ;;
22605   esac
22606
22607
22608   case $ac_file$ac_mode in
22609     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22610   # Autoconf 2.62 quotes --file arguments for eval, but not when files
22611   # are listed without --file.  Let's play safe and only enable the eval
22612   # if we detect the quoting.
22613   case $CONFIG_FILES in
22614   *\'*) eval set x "$CONFIG_FILES" ;;
22615   *)   set x $CONFIG_FILES ;;
22616   esac
22617   shift
22618   for mf
22619   do
22620     # Strip MF so we end up with the name of the file.
22621     mf=`echo "$mf" | sed -e 's/:.*$//'`
22622     # Check whether this is an Automake generated Makefile or not.
22623     # We used to match only the files named `Makefile.in', but
22624     # some people rename them; so instead we look at the file content.
22625     # Grep'ing the first line is not enough: some people post-process
22626     # each Makefile.in and add a new line on top of each file to say so.
22627     # Grep'ing the whole file is not good either: AIX grep has a line
22628     # limit of 2048, but all sed's we know have understand at least 4000.
22629     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22630       dirpart=`$as_dirname -- "$mf" ||
22631 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22632          X"$mf" : 'X\(//\)[^/]' \| \
22633          X"$mf" : 'X\(//\)$' \| \
22634          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22635 $as_echo X"$mf" |
22636     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22637             s//\1/
22638             q
22639           }
22640           /^X\(\/\/\)[^/].*/{
22641             s//\1/
22642             q
22643           }
22644           /^X\(\/\/\)$/{
22645             s//\1/
22646             q
22647           }
22648           /^X\(\/\).*/{
22649             s//\1/
22650             q
22651           }
22652           s/.*/./; q'`
22653     else
22654       continue
22655     fi
22656     # Extract the definition of DEPDIR, am__include, and am__quote
22657     # from the Makefile without running `make'.
22658     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22659     test -z "$DEPDIR" && continue
22660     am__include=`sed -n 's/^am__include = //p' < "$mf"`
22661     test -z "am__include" && continue
22662     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22663     # When using ansi2knr, U may be empty or an underscore; expand it
22664     U=`sed -n 's/^U = //p' < "$mf"`
22665     # Find all dependency output files, they are included files with
22666     # $(DEPDIR) in their names.  We invoke sed twice because it is the
22667     # simplest approach to changing $(DEPDIR) to its actual value in the
22668     # expansion.
22669     for file in `sed -n "
22670       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22671          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22672       # Make sure the directory exists.
22673       test -f "$dirpart/$file" && continue
22674       fdir=`$as_dirname -- "$file" ||
22675 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22676          X"$file" : 'X\(//\)[^/]' \| \
22677          X"$file" : 'X\(//\)$' \| \
22678          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22679 $as_echo X"$file" |
22680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22681             s//\1/
22682             q
22683           }
22684           /^X\(\/\/\)[^/].*/{
22685             s//\1/
22686             q
22687           }
22688           /^X\(\/\/\)$/{
22689             s//\1/
22690             q
22691           }
22692           /^X\(\/\).*/{
22693             s//\1/
22694             q
22695           }
22696           s/.*/./; q'`
22697       as_dir=$dirpart/$fdir; as_fn_mkdir_p
22698       # echo "creating $dirpart/$file"
22699       echo '# dummy' > "$dirpart/$file"
22700     done
22701   done
22702 }
22703  ;;
22704     "libtool":C)
22705
22706     # See if we are running on zsh, and set the options which allow our
22707     # commands through without removal of \ escapes.
22708     if test -n "${ZSH_VERSION+set}" ; then
22709       setopt NO_GLOB_SUBST
22710     fi
22711
22712     cfgfile="${ofile}T"
22713     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22714     $RM "$cfgfile"
22715
22716     cat <<_LT_EOF >> "$cfgfile"
22717 #! $SHELL
22718
22719 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22720 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22721 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22722 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22723 #
22724 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22725 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
22726 #                 Inc.
22727 #   Written by Gordon Matzigkeit, 1996
22728 #
22729 #   This file is part of GNU Libtool.
22730 #
22731 # GNU Libtool is free software; you can redistribute it and/or
22732 # modify it under the terms of the GNU General Public License as
22733 # published by the Free Software Foundation; either version 2 of
22734 # the License, or (at your option) any later version.
22735 #
22736 # As a special exception to the GNU General Public License,
22737 # if you distribute this file as part of a program or library that
22738 # is built using GNU Libtool, you may include this file under the
22739 # same distribution terms that you use for the rest of that program.
22740 #
22741 # GNU Libtool is distributed in the hope that it will be useful,
22742 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22743 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22744 # GNU General Public License for more details.
22745 #
22746 # You should have received a copy of the GNU General Public License
22747 # along with GNU Libtool; see the file COPYING.  If not, a copy
22748 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22749 # obtained by writing to the Free Software Foundation, Inc.,
22750 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22751
22752
22753 # The names of the tagged configurations supported by this script.
22754 available_tags="CXX "
22755
22756 # ### BEGIN LIBTOOL CONFIG
22757
22758 # Whether or not to build static libraries.
22759 build_old_libs=$enable_static
22760
22761 # Which release of libtool.m4 was used?
22762 macro_version=$macro_version
22763 macro_revision=$macro_revision
22764
22765 # Whether or not to build shared libraries.
22766 build_libtool_libs=$enable_shared
22767
22768 # What type of objects to build.
22769 pic_mode=$pic_mode
22770
22771 # Whether or not to optimize for fast installation.
22772 fast_install=$enable_fast_install
22773
22774 # Shell to use when invoking shell scripts.
22775 SHELL=$lt_SHELL
22776
22777 # An echo program that protects backslashes.
22778 ECHO=$lt_ECHO
22779
22780 # The host system.
22781 host_alias=$host_alias
22782 host=$host
22783 host_os=$host_os
22784
22785 # The build system.
22786 build_alias=$build_alias
22787 build=$build
22788 build_os=$build_os
22789
22790 # A sed program that does not truncate output.
22791 SED=$lt_SED
22792
22793 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22794 Xsed="\$SED -e 1s/^X//"
22795
22796 # A grep program that handles long lines.
22797 GREP=$lt_GREP
22798
22799 # An ERE matcher.
22800 EGREP=$lt_EGREP
22801
22802 # A literal string matcher.
22803 FGREP=$lt_FGREP
22804
22805 # A BSD- or MS-compatible name lister.
22806 NM=$lt_NM
22807
22808 # Whether we need soft or hard links.
22809 LN_S=$lt_LN_S
22810
22811 # What is the maximum length of a command?
22812 max_cmd_len=$max_cmd_len
22813
22814 # Object file suffix (normally "o").
22815 objext=$ac_objext
22816
22817 # Executable file suffix (normally "").
22818 exeext=$exeext
22819
22820 # whether the shell understands "unset".
22821 lt_unset=$lt_unset
22822
22823 # turn spaces into newlines.
22824 SP2NL=$lt_lt_SP2NL
22825
22826 # turn newlines into spaces.
22827 NL2SP=$lt_lt_NL2SP
22828
22829 # convert \$build file names to \$host format.
22830 to_host_file_cmd=$lt_cv_to_host_file_cmd
22831
22832 # convert \$build files to toolchain format.
22833 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22834
22835 # An object symbol dumper.
22836 OBJDUMP=$lt_OBJDUMP
22837
22838 # Method to check whether dependent libraries are shared objects.
22839 deplibs_check_method=$lt_deplibs_check_method
22840
22841 # Command to use when deplibs_check_method = "file_magic".
22842 file_magic_cmd=$lt_file_magic_cmd
22843
22844 # How to find potential files when deplibs_check_method = "file_magic".
22845 file_magic_glob=$lt_file_magic_glob
22846
22847 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22848 want_nocaseglob=$lt_want_nocaseglob
22849
22850 # DLL creation program.
22851 DLLTOOL=$lt_DLLTOOL
22852
22853 # Command to associate shared and link libraries.
22854 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22855
22856 # The archiver.
22857 AR=$lt_AR
22858
22859 # Flags to create an archive.
22860 AR_FLAGS=$lt_AR_FLAGS
22861
22862 # How to feed a file listing to the archiver.
22863 archiver_list_spec=$lt_archiver_list_spec
22864
22865 # A symbol stripping program.
22866 STRIP=$lt_STRIP
22867
22868 # Commands used to install an old-style archive.
22869 RANLIB=$lt_RANLIB
22870 old_postinstall_cmds=$lt_old_postinstall_cmds
22871 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22872
22873 # Whether to use a lock for old archive extraction.
22874 lock_old_archive_extraction=$lock_old_archive_extraction
22875
22876 # A C compiler.
22877 LTCC=$lt_CC
22878
22879 # LTCC compiler flags.
22880 LTCFLAGS=$lt_CFLAGS
22881
22882 # Take the output of nm and produce a listing of raw symbols and C names.
22883 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22884
22885 # Transform the output of nm in a proper C declaration.
22886 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22887
22888 # Transform the output of nm in a C name address pair.
22889 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22890
22891 # Transform the output of nm in a C name address pair when lib prefix is needed.
22892 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22893
22894 # Specify filename containing input files for \$NM.
22895 nm_file_list_spec=$lt_nm_file_list_spec
22896
22897 # The root where to search for dependent libraries,and in which our libraries should be installed.
22898 lt_sysroot=$lt_sysroot
22899
22900 # The name of the directory that contains temporary libtool files.
22901 objdir=$objdir
22902
22903 # Used to examine libraries when file_magic_cmd begins with "file".
22904 MAGIC_CMD=$MAGIC_CMD
22905
22906 # Must we lock files when doing compilation?
22907 need_locks=$lt_need_locks
22908
22909 # Manifest tool.
22910 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22911
22912 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22913 DSYMUTIL=$lt_DSYMUTIL
22914
22915 # Tool to change global to local symbols on Mac OS X.
22916 NMEDIT=$lt_NMEDIT
22917
22918 # Tool to manipulate fat objects and archives on Mac OS X.
22919 LIPO=$lt_LIPO
22920
22921 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22922 OTOOL=$lt_OTOOL
22923
22924 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22925 OTOOL64=$lt_OTOOL64
22926
22927 # Old archive suffix (normally "a").
22928 libext=$libext
22929
22930 # Shared library suffix (normally ".so").
22931 shrext_cmds=$lt_shrext_cmds
22932
22933 # The commands to extract the exported symbol list from a shared archive.
22934 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22935
22936 # Variables whose values should be saved in libtool wrapper scripts and
22937 # restored at link time.
22938 variables_saved_for_relink=$lt_variables_saved_for_relink
22939
22940 # Do we need the "lib" prefix for modules?
22941 need_lib_prefix=$need_lib_prefix
22942
22943 # Do we need a version for libraries?
22944 need_version=$need_version
22945
22946 # Library versioning type.
22947 version_type=$version_type
22948
22949 # Shared library runtime path variable.
22950 runpath_var=$runpath_var
22951
22952 # Shared library path variable.
22953 shlibpath_var=$shlibpath_var
22954
22955 # Is shlibpath searched before the hard-coded library search path?
22956 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22957
22958 # Format of library name prefix.
22959 libname_spec=$lt_libname_spec
22960
22961 # List of archive names.  First name is the real one, the rest are links.
22962 # The last name is the one that the linker finds with -lNAME
22963 library_names_spec=$lt_library_names_spec
22964
22965 # The coded name of the library, if different from the real name.
22966 soname_spec=$lt_soname_spec
22967
22968 # Permission mode override for installation of shared libraries.
22969 install_override_mode=$lt_install_override_mode
22970
22971 # Command to use after installation of a shared archive.
22972 postinstall_cmds=$lt_postinstall_cmds
22973
22974 # Command to use after uninstallation of a shared archive.
22975 postuninstall_cmds=$lt_postuninstall_cmds
22976
22977 # Commands used to finish a libtool library installation in a directory.
22978 finish_cmds=$lt_finish_cmds
22979
22980 # As "finish_cmds", except a single script fragment to be evaled but
22981 # not shown.
22982 finish_eval=$lt_finish_eval
22983
22984 # Whether we should hardcode library paths into libraries.
22985 hardcode_into_libs=$hardcode_into_libs
22986
22987 # Compile-time system search path for libraries.
22988 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22989
22990 # Run-time system search path for libraries.
22991 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22992
22993 # Whether dlopen is supported.
22994 dlopen_support=$enable_dlopen
22995
22996 # Whether dlopen of programs is supported.
22997 dlopen_self=$enable_dlopen_self
22998
22999 # Whether dlopen of statically linked programs is supported.
23000 dlopen_self_static=$enable_dlopen_self_static
23001
23002 # Commands to strip libraries.
23003 old_striplib=$lt_old_striplib
23004 striplib=$lt_striplib
23005
23006
23007 # The linker used to build libraries.
23008 LD=$lt_LD
23009
23010 # How to create reloadable object files.
23011 reload_flag=$lt_reload_flag
23012 reload_cmds=$lt_reload_cmds
23013
23014 # Commands used to build an old-style archive.
23015 old_archive_cmds=$lt_old_archive_cmds
23016
23017 # A language specific compiler.
23018 CC=$lt_compiler
23019
23020 # Is the compiler the GNU compiler?
23021 with_gcc=$GCC
23022
23023 # Compiler flag to turn off builtin functions.
23024 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23025
23026 # Additional compiler flags for building library objects.
23027 pic_flag=$lt_lt_prog_compiler_pic
23028
23029 # How to pass a linker flag through the compiler.
23030 wl=$lt_lt_prog_compiler_wl
23031
23032 # Compiler flag to prevent dynamic linking.
23033 link_static_flag=$lt_lt_prog_compiler_static
23034
23035 # Does compiler simultaneously support -c and -o options?
23036 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23037
23038 # Whether or not to add -lc for building shared libraries.
23039 build_libtool_need_lc=$archive_cmds_need_lc
23040
23041 # Whether or not to disallow shared libs when runtime libs are static.
23042 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23043
23044 # Compiler flag to allow reflexive dlopens.
23045 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23046
23047 # Compiler flag to generate shared objects directly from archives.
23048 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23049
23050 # Whether the compiler copes with passing no objects directly.
23051 compiler_needs_object=$lt_compiler_needs_object
23052
23053 # Create an old-style archive from a shared archive.
23054 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23055
23056 # Create a temporary old-style archive to link instead of a shared archive.
23057 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23058
23059 # Commands used to build a shared archive.
23060 archive_cmds=$lt_archive_cmds
23061 archive_expsym_cmds=$lt_archive_expsym_cmds
23062
23063 # Commands used to build a loadable module if different from building
23064 # a shared archive.
23065 module_cmds=$lt_module_cmds
23066 module_expsym_cmds=$lt_module_expsym_cmds
23067
23068 # Whether we are building with GNU ld or not.
23069 with_gnu_ld=$lt_with_gnu_ld
23070
23071 # Flag that allows shared libraries with undefined symbols to be built.
23072 allow_undefined_flag=$lt_allow_undefined_flag
23073
23074 # Flag that enforces no undefined symbols.
23075 no_undefined_flag=$lt_no_undefined_flag
23076
23077 # Flag to hardcode \$libdir into a binary during linking.
23078 # This must work even if \$libdir does not exist
23079 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23080
23081 # If ld is used when linking, flag to hardcode \$libdir into a binary
23082 # during linking.  This must work even if \$libdir does not exist.
23083 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23084
23085 # Whether we need a single "-rpath" flag with a separated argument.
23086 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23087
23088 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23089 # DIR into the resulting binary.
23090 hardcode_direct=$hardcode_direct
23091
23092 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23093 # DIR into the resulting binary and the resulting library dependency is
23094 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23095 # library is relocated.
23096 hardcode_direct_absolute=$hardcode_direct_absolute
23097
23098 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23099 # into the resulting binary.
23100 hardcode_minus_L=$hardcode_minus_L
23101
23102 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23103 # into the resulting binary.
23104 hardcode_shlibpath_var=$hardcode_shlibpath_var
23105
23106 # Set to "yes" if building a shared library automatically hardcodes DIR
23107 # into the library and all subsequent libraries and executables linked
23108 # against it.
23109 hardcode_automatic=$hardcode_automatic
23110
23111 # Set to yes if linker adds runtime paths of dependent libraries
23112 # to runtime path list.
23113 inherit_rpath=$inherit_rpath
23114
23115 # Whether libtool must link a program against all its dependency libraries.
23116 link_all_deplibs=$link_all_deplibs
23117
23118 # Set to "yes" if exported symbols are required.
23119 always_export_symbols=$always_export_symbols
23120
23121 # The commands to list exported symbols.
23122 export_symbols_cmds=$lt_export_symbols_cmds
23123
23124 # Symbols that should not be listed in the preloaded symbols.
23125 exclude_expsyms=$lt_exclude_expsyms
23126
23127 # Symbols that must always be exported.
23128 include_expsyms=$lt_include_expsyms
23129
23130 # Commands necessary for linking programs (against libraries) with templates.
23131 prelink_cmds=$lt_prelink_cmds
23132
23133 # Commands necessary for finishing linking programs.
23134 postlink_cmds=$lt_postlink_cmds
23135
23136 # Specify filename containing input files.
23137 file_list_spec=$lt_file_list_spec
23138
23139 # How to hardcode a shared library path into an executable.
23140 hardcode_action=$hardcode_action
23141
23142 # The directories searched by this compiler when creating a shared library.
23143 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23144
23145 # Dependencies to place before and after the objects being linked to
23146 # create a shared library.
23147 predep_objects=$lt_predep_objects
23148 postdep_objects=$lt_postdep_objects
23149 predeps=$lt_predeps
23150 postdeps=$lt_postdeps
23151
23152 # The library search path used internally by the compiler when linking
23153 # a shared library.
23154 compiler_lib_search_path=$lt_compiler_lib_search_path
23155
23156 # ### END LIBTOOL CONFIG
23157
23158 _LT_EOF
23159
23160   case $host_os in
23161   aix3*)
23162     cat <<\_LT_EOF >> "$cfgfile"
23163 # AIX sometimes has problems with the GCC collect2 program.  For some
23164 # reason, if we set the COLLECT_NAMES environment variable, the problems
23165 # vanish in a puff of smoke.
23166 if test "X${COLLECT_NAMES+set}" != Xset; then
23167   COLLECT_NAMES=
23168   export COLLECT_NAMES
23169 fi
23170 _LT_EOF
23171     ;;
23172   esac
23173
23174
23175 ltmain="$ac_aux_dir/ltmain.sh"
23176
23177
23178   # We use sed instead of cat because bash on DJGPP gets confused if
23179   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23180   # text mode, it properly converts lines to CR/LF.  This bash problem
23181   # is reportedly fixed, but why not run on old versions too?
23182   sed '$q' "$ltmain" >> "$cfgfile" \
23183      || (rm -f "$cfgfile"; exit 1)
23184
23185   if test x"$xsi_shell" = xyes; then
23186   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23187 func_dirname ()\
23188 {\
23189 \    case ${1} in\
23190 \      */*) func_dirname_result="${1%/*}${2}" ;;\
23191 \      *  ) func_dirname_result="${3}" ;;\
23192 \    esac\
23193 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23194   && mv -f "$cfgfile.tmp" "$cfgfile" \
23195     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23196 test 0 -eq $? || _lt_function_replace_fail=:
23197
23198
23199   sed -e '/^func_basename ()$/,/^} # func_basename /c\
23200 func_basename ()\
23201 {\
23202 \    func_basename_result="${1##*/}"\
23203 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23204   && mv -f "$cfgfile.tmp" "$cfgfile" \
23205     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23206 test 0 -eq $? || _lt_function_replace_fail=:
23207
23208
23209   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23210 func_dirname_and_basename ()\
23211 {\
23212 \    case ${1} in\
23213 \      */*) func_dirname_result="${1%/*}${2}" ;;\
23214 \      *  ) func_dirname_result="${3}" ;;\
23215 \    esac\
23216 \    func_basename_result="${1##*/}"\
23217 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23218   && mv -f "$cfgfile.tmp" "$cfgfile" \
23219     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23220 test 0 -eq $? || _lt_function_replace_fail=:
23221
23222
23223   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23224 func_stripname ()\
23225 {\
23226 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23227 \    # positional parameters, so assign one to ordinary parameter first.\
23228 \    func_stripname_result=${3}\
23229 \    func_stripname_result=${func_stripname_result#"${1}"}\
23230 \    func_stripname_result=${func_stripname_result%"${2}"}\
23231 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23232   && mv -f "$cfgfile.tmp" "$cfgfile" \
23233     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23234 test 0 -eq $? || _lt_function_replace_fail=:
23235
23236
23237   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23238 func_split_long_opt ()\
23239 {\
23240 \    func_split_long_opt_name=${1%%=*}\
23241 \    func_split_long_opt_arg=${1#*=}\
23242 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23243   && mv -f "$cfgfile.tmp" "$cfgfile" \
23244     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23245 test 0 -eq $? || _lt_function_replace_fail=:
23246
23247
23248   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23249 func_split_short_opt ()\
23250 {\
23251 \    func_split_short_opt_arg=${1#??}\
23252 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23253 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23254   && mv -f "$cfgfile.tmp" "$cfgfile" \
23255     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23256 test 0 -eq $? || _lt_function_replace_fail=:
23257
23258
23259   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23260 func_lo2o ()\
23261 {\
23262 \    case ${1} in\
23263 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23264 \      *)    func_lo2o_result=${1} ;;\
23265 \    esac\
23266 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23267   && mv -f "$cfgfile.tmp" "$cfgfile" \
23268     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23269 test 0 -eq $? || _lt_function_replace_fail=:
23270
23271
23272   sed -e '/^func_xform ()$/,/^} # func_xform /c\
23273 func_xform ()\
23274 {\
23275     func_xform_result=${1%.*}.lo\
23276 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23277   && mv -f "$cfgfile.tmp" "$cfgfile" \
23278     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23279 test 0 -eq $? || _lt_function_replace_fail=:
23280
23281
23282   sed -e '/^func_arith ()$/,/^} # func_arith /c\
23283 func_arith ()\
23284 {\
23285     func_arith_result=$(( $* ))\
23286 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23287   && mv -f "$cfgfile.tmp" "$cfgfile" \
23288     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23289 test 0 -eq $? || _lt_function_replace_fail=:
23290
23291
23292   sed -e '/^func_len ()$/,/^} # func_len /c\
23293 func_len ()\
23294 {\
23295     func_len_result=${#1}\
23296 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23297   && mv -f "$cfgfile.tmp" "$cfgfile" \
23298     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23299 test 0 -eq $? || _lt_function_replace_fail=:
23300
23301 fi
23302
23303 if test x"$lt_shell_append" = xyes; then
23304   sed -e '/^func_append ()$/,/^} # func_append /c\
23305 func_append ()\
23306 {\
23307     eval "${1}+=\\${2}"\
23308 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23309   && mv -f "$cfgfile.tmp" "$cfgfile" \
23310     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23311 test 0 -eq $? || _lt_function_replace_fail=:
23312
23313
23314   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23315 func_append_quoted ()\
23316 {\
23317 \    func_quote_for_eval "${2}"\
23318 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23319 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23320   && mv -f "$cfgfile.tmp" "$cfgfile" \
23321     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23322 test 0 -eq $? || _lt_function_replace_fail=:
23323
23324
23325   # Save a `func_append' function call where possible by direct use of '+='
23326   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23327     && mv -f "$cfgfile.tmp" "$cfgfile" \
23328       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23329   test 0 -eq $? || _lt_function_replace_fail=:
23330 else
23331   # Save a `func_append' function call even when '+=' is not available
23332   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23333     && mv -f "$cfgfile.tmp" "$cfgfile" \
23334       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23335   test 0 -eq $? || _lt_function_replace_fail=:
23336 fi
23337
23338 if test x"$_lt_function_replace_fail" = x":"; then
23339   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23340 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23341 fi
23342
23343
23344    mv -f "$cfgfile" "$ofile" ||
23345     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23346   chmod +x "$ofile"
23347
23348
23349     cat <<_LT_EOF >> "$ofile"
23350
23351 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23352
23353 # The linker used to build libraries.
23354 LD=$lt_LD_CXX
23355
23356 # How to create reloadable object files.
23357 reload_flag=$lt_reload_flag_CXX
23358 reload_cmds=$lt_reload_cmds_CXX
23359
23360 # Commands used to build an old-style archive.
23361 old_archive_cmds=$lt_old_archive_cmds_CXX
23362
23363 # A language specific compiler.
23364 CC=$lt_compiler_CXX
23365
23366 # Is the compiler the GNU compiler?
23367 with_gcc=$GCC_CXX
23368
23369 # Compiler flag to turn off builtin functions.
23370 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23371
23372 # Additional compiler flags for building library objects.
23373 pic_flag=$lt_lt_prog_compiler_pic_CXX
23374
23375 # How to pass a linker flag through the compiler.
23376 wl=$lt_lt_prog_compiler_wl_CXX
23377
23378 # Compiler flag to prevent dynamic linking.
23379 link_static_flag=$lt_lt_prog_compiler_static_CXX
23380
23381 # Does compiler simultaneously support -c and -o options?
23382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23383
23384 # Whether or not to add -lc for building shared libraries.
23385 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23386
23387 # Whether or not to disallow shared libs when runtime libs are static.
23388 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23389
23390 # Compiler flag to allow reflexive dlopens.
23391 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23392
23393 # Compiler flag to generate shared objects directly from archives.
23394 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23395
23396 # Whether the compiler copes with passing no objects directly.
23397 compiler_needs_object=$lt_compiler_needs_object_CXX
23398
23399 # Create an old-style archive from a shared archive.
23400 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23401
23402 # Create a temporary old-style archive to link instead of a shared archive.
23403 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23404
23405 # Commands used to build a shared archive.
23406 archive_cmds=$lt_archive_cmds_CXX
23407 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23408
23409 # Commands used to build a loadable module if different from building
23410 # a shared archive.
23411 module_cmds=$lt_module_cmds_CXX
23412 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23413
23414 # Whether we are building with GNU ld or not.
23415 with_gnu_ld=$lt_with_gnu_ld_CXX
23416
23417 # Flag that allows shared libraries with undefined symbols to be built.
23418 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23419
23420 # Flag that enforces no undefined symbols.
23421 no_undefined_flag=$lt_no_undefined_flag_CXX
23422
23423 # Flag to hardcode \$libdir into a binary during linking.
23424 # This must work even if \$libdir does not exist
23425 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23426
23427 # If ld is used when linking, flag to hardcode \$libdir into a binary
23428 # during linking.  This must work even if \$libdir does not exist.
23429 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
23430
23431 # Whether we need a single "-rpath" flag with a separated argument.
23432 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23433
23434 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23435 # DIR into the resulting binary.
23436 hardcode_direct=$hardcode_direct_CXX
23437
23438 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23439 # DIR into the resulting binary and the resulting library dependency is
23440 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23441 # library is relocated.
23442 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23443
23444 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23445 # into the resulting binary.
23446 hardcode_minus_L=$hardcode_minus_L_CXX
23447
23448 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23449 # into the resulting binary.
23450 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23451
23452 # Set to "yes" if building a shared library automatically hardcodes DIR
23453 # into the library and all subsequent libraries and executables linked
23454 # against it.
23455 hardcode_automatic=$hardcode_automatic_CXX
23456
23457 # Set to yes if linker adds runtime paths of dependent libraries
23458 # to runtime path list.
23459 inherit_rpath=$inherit_rpath_CXX
23460
23461 # Whether libtool must link a program against all its dependency libraries.
23462 link_all_deplibs=$link_all_deplibs_CXX
23463
23464 # Set to "yes" if exported symbols are required.
23465 always_export_symbols=$always_export_symbols_CXX
23466
23467 # The commands to list exported symbols.
23468 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23469
23470 # Symbols that should not be listed in the preloaded symbols.
23471 exclude_expsyms=$lt_exclude_expsyms_CXX
23472
23473 # Symbols that must always be exported.
23474 include_expsyms=$lt_include_expsyms_CXX
23475
23476 # Commands necessary for linking programs (against libraries) with templates.
23477 prelink_cmds=$lt_prelink_cmds_CXX
23478
23479 # Commands necessary for finishing linking programs.
23480 postlink_cmds=$lt_postlink_cmds_CXX
23481
23482 # Specify filename containing input files.
23483 file_list_spec=$lt_file_list_spec_CXX
23484
23485 # How to hardcode a shared library path into an executable.
23486 hardcode_action=$hardcode_action_CXX
23487
23488 # The directories searched by this compiler when creating a shared library.
23489 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23490
23491 # Dependencies to place before and after the objects being linked to
23492 # create a shared library.
23493 predep_objects=$lt_predep_objects_CXX
23494 postdep_objects=$lt_postdep_objects_CXX
23495 predeps=$lt_predeps_CXX
23496 postdeps=$lt_postdeps_CXX
23497
23498 # The library search path used internally by the compiler when linking
23499 # a shared library.
23500 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23501
23502 # ### END LIBTOOL TAG CONFIG: CXX
23503 _LT_EOF
23504
23505  ;;
23506
23507   esac
23508 done # for ac_tag
23509
23510
23511 as_fn_exit 0
23512 _ACEOF
23513 ac_clean_files=$ac_clean_files_save
23514
23515 test $ac_write_fail = 0 ||
23516   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23517
23518
23519 # configure is writing to config.log, and then calls config.status.
23520 # config.status does its own redirection, appending to config.log.
23521 # Unfortunately, on DOS this fails, as config.log is still kept open
23522 # by configure, so config.status won't be able to write to it; its
23523 # output is simply discarded.  So we exec the FD to /dev/null,
23524 # effectively closing config.log, so it can be properly (re)opened and
23525 # appended to by config.status.  When coming back to configure, we
23526 # need to make the FD available again.
23527 if test "$no_create" != yes; then
23528   ac_cs_success=:
23529   ac_config_status_args=
23530   test "$silent" = yes &&
23531     ac_config_status_args="$ac_config_status_args --quiet"
23532   exec 5>/dev/null
23533   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23534   exec 5>>config.log
23535   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23536   # would make configure fail if this is the last instruction.
23537   $ac_cs_success || as_fn_exit 1
23538 fi
23539 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23540   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23541 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23542 fi
23543