Take ownership of resolved attributes returned to caller
[shibboleth/resolver.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for shibboleth-resolver 0.3.
4 #
5 # Report bugs to <MOONSHOT-COMMUNITY@JISCMAIL.AC.UK>.
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 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: MOONSHOT-COMMUNITY@JISCMAIL.AC.UK about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='shibboleth-resolver'
703 PACKAGE_TARNAME='shibboleth-resolver'
704 PACKAGE_VERSION='0.3'
705 PACKAGE_STRING='shibboleth-resolver 0.3'
706 PACKAGE_BUGREPORT='MOONSHOT-COMMUNITY@JISCMAIL.AC.UK'
707 PACKAGE_URL=''
708
709 ac_unique_file="src"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
712 #include <stdio.h>
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
715 #endif
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
718 #endif
719 #ifdef STDC_HEADERS
720 # include <stdlib.h>
721 # include <stddef.h>
722 #else
723 # ifdef HAVE_STDLIB_H
724 #  include <stdlib.h>
725 # endif
726 #endif
727 #ifdef HAVE_STRING_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #  include <memory.h>
730 # endif
731 # include <string.h>
732 #endif
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
735 #endif
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
738 #endif
739 #ifdef HAVE_STDINT_H
740 # include <stdint.h>
741 #endif
742 #ifdef HAVE_UNISTD_H
743 # include <unistd.h>
744 #endif"
745
746 ac_subst_vars='am__EXEEXT_FALSE
747 am__EXEEXT_TRUE
748 LTLIBOBJS
749 LIBOBJS
750 XMLSEC_LIBS
751 LITE_LIBS
752 LOG4CPP_CONFIG
753 LOG4SHIB_CONFIG
754 PTHREAD_CFLAGS
755 PTHREAD_LIBS
756 PTHREAD_CC
757 acx_pthread_config
758 CXXCPP
759 am__fastdepCXX_FALSE
760 am__fastdepCXX_TRUE
761 CXXDEPMODE
762 ac_ct_CXX
763 CXXFLAGS
764 CXX
765 CPP
766 OTOOL64
767 OTOOL
768 LIPO
769 NMEDIT
770 DSYMUTIL
771 lt_ECHO
772 RANLIB
773 AR
774 OBJDUMP
775 LN_S
776 NM
777 ac_ct_DUMPBIN
778 DUMPBIN
779 LD
780 FGREP
781 EGREP
782 GREP
783 SED
784 am__fastdepCC_FALSE
785 am__fastdepCC_TRUE
786 CCDEPMODE
787 AMDEPBACKSLASH
788 AMDEP_FALSE
789 AMDEP_TRUE
790 am__quote
791 am__include
792 DEPDIR
793 OBJEXT
794 EXEEXT
795 ac_ct_CC
796 CPPFLAGS
797 LDFLAGS
798 CFLAGS
799 CC
800 host_os
801 host_vendor
802 host_cpu
803 host
804 build_os
805 build_vendor
806 build_cpu
807 build
808 LIBTOOL
809 am__untar
810 am__tar
811 AMTAR
812 am__leading_dot
813 SET_MAKE
814 AWK
815 mkdir_p
816 MKDIR_P
817 INSTALL_STRIP_PROGRAM
818 STRIP
819 install_sh
820 MAKEINFO
821 AUTOHEADER
822 AUTOMAKE
823 AUTOCONF
824 ACLOCAL
825 VERSION
826 PACKAGE
827 CYGPATH_W
828 am__isrc
829 INSTALL_DATA
830 INSTALL_SCRIPT
831 INSTALL_PROGRAM
832 target_alias
833 host_alias
834 build_alias
835 LIBS
836 ECHO_T
837 ECHO_N
838 ECHO_C
839 DEFS
840 mandir
841 localedir
842 libdir
843 psdir
844 pdfdir
845 dvidir
846 htmldir
847 infodir
848 docdir
849 oldincludedir
850 includedir
851 localstatedir
852 sharedstatedir
853 sysconfdir
854 datadir
855 datarootdir
856 libexecdir
857 sbindir
858 bindir
859 program_transform_name
860 prefix
861 exec_prefix
862 PACKAGE_URL
863 PACKAGE_BUGREPORT
864 PACKAGE_STRING
865 PACKAGE_VERSION
866 PACKAGE_TARNAME
867 PACKAGE_NAME
868 PATH_SEPARATOR
869 SHELL'
870 ac_subst_files=''
871 ac_user_opts='
872 enable_option_checking
873 enable_static
874 enable_shared
875 with_pic
876 enable_fast_install
877 enable_dependency_tracking
878 with_gnu_ld
879 enable_libtool_lock
880 enable_debug
881 with_log4shib
882 with_log4cpp
883 with_xerces
884 with_xmltooling
885 with_xmlsec
886 with_saml
887 with_shibsp
888 with_gssapi_includes
889 with_gssapi_libs
890 with_gssapi
891 '
892       ac_precious_vars='build_alias
893 host_alias
894 target_alias
895 CC
896 CFLAGS
897 LDFLAGS
898 LIBS
899 CPPFLAGS
900 CPP
901 CXX
902 CXXFLAGS
903 CCC
904 CXXCPP'
905
906
907 # Initialize some variables set by options.
908 ac_init_help=
909 ac_init_version=false
910 ac_unrecognized_opts=
911 ac_unrecognized_sep=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
914 cache_file=/dev/null
915 exec_prefix=NONE
916 no_create=
917 no_recursion=
918 prefix=NONE
919 program_prefix=NONE
920 program_suffix=NONE
921 program_transform_name=s,x,x,
922 silent=
923 site=
924 srcdir=
925 verbose=
926 x_includes=NONE
927 x_libraries=NONE
928
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir='${exec_prefix}/bin'
936 sbindir='${exec_prefix}/sbin'
937 libexecdir='${exec_prefix}/libexec'
938 datarootdir='${prefix}/share'
939 datadir='${datarootdir}'
940 sysconfdir='${prefix}/etc'
941 sharedstatedir='${prefix}/com'
942 localstatedir='${prefix}/var'
943 includedir='${prefix}/include'
944 oldincludedir='/usr/include'
945 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946 infodir='${datarootdir}/info'
947 htmldir='${docdir}'
948 dvidir='${docdir}'
949 pdfdir='${docdir}'
950 psdir='${docdir}'
951 libdir='${exec_prefix}/lib'
952 localedir='${datarootdir}/locale'
953 mandir='${datarootdir}/man'
954
955 ac_prev=
956 ac_dashdash=
957 for ac_option
958 do
959   # If the previous option needs an argument, assign it.
960   if test -n "$ac_prev"; then
961     eval $ac_prev=\$ac_option
962     ac_prev=
963     continue
964   fi
965
966   case $ac_option in
967   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968   *=)   ac_optarg= ;;
969   *)    ac_optarg=yes ;;
970   esac
971
972   # Accept the important Cygnus configure options, so we can diagnose typos.
973
974   case $ac_dashdash$ac_option in
975   --)
976     ac_dashdash=yes ;;
977
978   -bindir | --bindir | --bindi | --bind | --bin | --bi)
979     ac_prev=bindir ;;
980   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981     bindir=$ac_optarg ;;
982
983   -build | --build | --buil | --bui | --bu)
984     ac_prev=build_alias ;;
985   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986     build_alias=$ac_optarg ;;
987
988   -cache-file | --cache-file | --cache-fil | --cache-fi \
989   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990     ac_prev=cache_file ;;
991   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993     cache_file=$ac_optarg ;;
994
995   --config-cache | -C)
996     cache_file=config.cache ;;
997
998   -datadir | --datadir | --datadi | --datad)
999     ac_prev=datadir ;;
1000   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001     datadir=$ac_optarg ;;
1002
1003   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004   | --dataroo | --dataro | --datar)
1005     ac_prev=datarootdir ;;
1006   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008     datarootdir=$ac_optarg ;;
1009
1010   -disable-* | --disable-*)
1011     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012     # Reject names that are not valid shell variable names.
1013     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014       as_fn_error $? "invalid feature name: $ac_useropt"
1015     ac_useropt_orig=$ac_useropt
1016     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017     case $ac_user_opts in
1018       *"
1019 "enable_$ac_useropt"
1020 "*) ;;
1021       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022          ac_unrecognized_sep=', ';;
1023     esac
1024     eval enable_$ac_useropt=no ;;
1025
1026   -docdir | --docdir | --docdi | --doc | --do)
1027     ac_prev=docdir ;;
1028   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029     docdir=$ac_optarg ;;
1030
1031   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032     ac_prev=dvidir ;;
1033   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034     dvidir=$ac_optarg ;;
1035
1036   -enable-* | --enable-*)
1037     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038     # Reject names that are not valid shell variable names.
1039     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040       as_fn_error $? "invalid feature name: $ac_useropt"
1041     ac_useropt_orig=$ac_useropt
1042     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043     case $ac_user_opts in
1044       *"
1045 "enable_$ac_useropt"
1046 "*) ;;
1047       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048          ac_unrecognized_sep=', ';;
1049     esac
1050     eval enable_$ac_useropt=\$ac_optarg ;;
1051
1052   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054   | --exec | --exe | --ex)
1055     ac_prev=exec_prefix ;;
1056   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058   | --exec=* | --exe=* | --ex=*)
1059     exec_prefix=$ac_optarg ;;
1060
1061   -gas | --gas | --ga | --g)
1062     # Obsolete; use --with-gas.
1063     with_gas=yes ;;
1064
1065   -help | --help | --hel | --he | -h)
1066     ac_init_help=long ;;
1067   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068     ac_init_help=recursive ;;
1069   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070     ac_init_help=short ;;
1071
1072   -host | --host | --hos | --ho)
1073     ac_prev=host_alias ;;
1074   -host=* | --host=* | --hos=* | --ho=*)
1075     host_alias=$ac_optarg ;;
1076
1077   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078     ac_prev=htmldir ;;
1079   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080   | --ht=*)
1081     htmldir=$ac_optarg ;;
1082
1083   -includedir | --includedir | --includedi | --included | --include \
1084   | --includ | --inclu | --incl | --inc)
1085     ac_prev=includedir ;;
1086   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087   | --includ=* | --inclu=* | --incl=* | --inc=*)
1088     includedir=$ac_optarg ;;
1089
1090   -infodir | --infodir | --infodi | --infod | --info | --inf)
1091     ac_prev=infodir ;;
1092   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093     infodir=$ac_optarg ;;
1094
1095   -libdir | --libdir | --libdi | --libd)
1096     ac_prev=libdir ;;
1097   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098     libdir=$ac_optarg ;;
1099
1100   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101   | --libexe | --libex | --libe)
1102     ac_prev=libexecdir ;;
1103   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104   | --libexe=* | --libex=* | --libe=*)
1105     libexecdir=$ac_optarg ;;
1106
1107   -localedir | --localedir | --localedi | --localed | --locale)
1108     ac_prev=localedir ;;
1109   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110     localedir=$ac_optarg ;;
1111
1112   -localstatedir | --localstatedir | --localstatedi | --localstated \
1113   | --localstate | --localstat | --localsta | --localst | --locals)
1114     ac_prev=localstatedir ;;
1115   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1116   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1117     localstatedir=$ac_optarg ;;
1118
1119   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120     ac_prev=mandir ;;
1121   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122     mandir=$ac_optarg ;;
1123
1124   -nfp | --nfp | --nf)
1125     # Obsolete; use --without-fp.
1126     with_fp=no ;;
1127
1128   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129   | --no-cr | --no-c | -n)
1130     no_create=yes ;;
1131
1132   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134     no_recursion=yes ;;
1135
1136   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138   | --oldin | --oldi | --old | --ol | --o)
1139     ac_prev=oldincludedir ;;
1140   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143     oldincludedir=$ac_optarg ;;
1144
1145   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146     ac_prev=prefix ;;
1147   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148     prefix=$ac_optarg ;;
1149
1150   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151   | --program-pre | --program-pr | --program-p)
1152     ac_prev=program_prefix ;;
1153   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155     program_prefix=$ac_optarg ;;
1156
1157   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158   | --program-suf | --program-su | --program-s)
1159     ac_prev=program_suffix ;;
1160   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162     program_suffix=$ac_optarg ;;
1163
1164   -program-transform-name | --program-transform-name \
1165   | --program-transform-nam | --program-transform-na \
1166   | --program-transform-n | --program-transform- \
1167   | --program-transform | --program-transfor \
1168   | --program-transfo | --program-transf \
1169   | --program-trans | --program-tran \
1170   | --progr-tra | --program-tr | --program-t)
1171     ac_prev=program_transform_name ;;
1172   -program-transform-name=* | --program-transform-name=* \
1173   | --program-transform-nam=* | --program-transform-na=* \
1174   | --program-transform-n=* | --program-transform-=* \
1175   | --program-transform=* | --program-transfor=* \
1176   | --program-transfo=* | --program-transf=* \
1177   | --program-trans=* | --program-tran=* \
1178   | --progr-tra=* | --program-tr=* | --program-t=*)
1179     program_transform_name=$ac_optarg ;;
1180
1181   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182     ac_prev=pdfdir ;;
1183   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184     pdfdir=$ac_optarg ;;
1185
1186   -psdir | --psdir | --psdi | --psd | --ps)
1187     ac_prev=psdir ;;
1188   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189     psdir=$ac_optarg ;;
1190
1191   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192   | -silent | --silent | --silen | --sile | --sil)
1193     silent=yes ;;
1194
1195   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196     ac_prev=sbindir ;;
1197   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198   | --sbi=* | --sb=*)
1199     sbindir=$ac_optarg ;;
1200
1201   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203   | --sharedst | --shareds | --shared | --share | --shar \
1204   | --sha | --sh)
1205     ac_prev=sharedstatedir ;;
1206   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209   | --sha=* | --sh=*)
1210     sharedstatedir=$ac_optarg ;;
1211
1212   -site | --site | --sit)
1213     ac_prev=site ;;
1214   -site=* | --site=* | --sit=*)
1215     site=$ac_optarg ;;
1216
1217   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218     ac_prev=srcdir ;;
1219   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1220     srcdir=$ac_optarg ;;
1221
1222   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223   | --syscon | --sysco | --sysc | --sys | --sy)
1224     ac_prev=sysconfdir ;;
1225   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1227     sysconfdir=$ac_optarg ;;
1228
1229   -target | --target | --targe | --targ | --tar | --ta | --t)
1230     ac_prev=target_alias ;;
1231   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1232     target_alias=$ac_optarg ;;
1233
1234   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235     verbose=yes ;;
1236
1237   -version | --version | --versio | --versi | --vers | -V)
1238     ac_init_version=: ;;
1239
1240   -with-* | --with-*)
1241     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242     # Reject names that are not valid shell variable names.
1243     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244       as_fn_error $? "invalid package name: $ac_useropt"
1245     ac_useropt_orig=$ac_useropt
1246     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247     case $ac_user_opts in
1248       *"
1249 "with_$ac_useropt"
1250 "*) ;;
1251       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1252          ac_unrecognized_sep=', ';;
1253     esac
1254     eval with_$ac_useropt=\$ac_optarg ;;
1255
1256   -without-* | --without-*)
1257     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1258     # Reject names that are not valid shell variable names.
1259     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260       as_fn_error $? "invalid package name: $ac_useropt"
1261     ac_useropt_orig=$ac_useropt
1262     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263     case $ac_user_opts in
1264       *"
1265 "with_$ac_useropt"
1266 "*) ;;
1267       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1268          ac_unrecognized_sep=', ';;
1269     esac
1270     eval with_$ac_useropt=no ;;
1271
1272   --x)
1273     # Obsolete; use --with-x.
1274     with_x=yes ;;
1275
1276   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1277   | --x-incl | --x-inc | --x-in | --x-i)
1278     ac_prev=x_includes ;;
1279   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1280   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1281     x_includes=$ac_optarg ;;
1282
1283   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1284   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1285     ac_prev=x_libraries ;;
1286   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1287   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1288     x_libraries=$ac_optarg ;;
1289
1290   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1291 Try \`$0 --help' for more information"
1292     ;;
1293
1294   *=*)
1295     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1296     # Reject names that are not valid shell variable names.
1297     case $ac_envvar in #(
1298       '' | [0-9]* | *[!_$as_cr_alnum]* )
1299       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1300     esac
1301     eval $ac_envvar=\$ac_optarg
1302     export $ac_envvar ;;
1303
1304   *)
1305     # FIXME: should be removed in autoconf 3.0.
1306     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1307     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1308       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1309     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1310     ;;
1311
1312   esac
1313 done
1314
1315 if test -n "$ac_prev"; then
1316   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1317   as_fn_error $? "missing argument to $ac_option"
1318 fi
1319
1320 if test -n "$ac_unrecognized_opts"; then
1321   case $enable_option_checking in
1322     no) ;;
1323     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1324     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1325   esac
1326 fi
1327
1328 # Check all directory arguments for consistency.
1329 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330                 datadir sysconfdir sharedstatedir localstatedir includedir \
1331                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332                 libdir localedir mandir
1333 do
1334   eval ac_val=\$$ac_var
1335   # Remove trailing slashes.
1336   case $ac_val in
1337     */ )
1338       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1339       eval $ac_var=\$ac_val;;
1340   esac
1341   # Be sure to have absolute directory names.
1342   case $ac_val in
1343     [\\/$]* | ?:[\\/]* )  continue;;
1344     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345   esac
1346   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1347 done
1348
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1352 build=$build_alias
1353 host=$host_alias
1354 target=$target_alias
1355
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x; then
1358   if test "x$build_alias" = x; then
1359     cross_compiling=maybe
1360     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1361     If a cross compiler is detected then cross compile mode will be used" >&2
1362   elif test "x$build_alias" != "x$host_alias"; then
1363     cross_compiling=yes
1364   fi
1365 fi
1366
1367 ac_tool_prefix=
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370 test "$silent" = yes && exec 6>/dev/null
1371
1372
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376   as_fn_error $? "working directory cannot be determined"
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378   as_fn_error $? "pwd does not report name of working directory"
1379
1380
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383   ac_srcdir_defaulted=yes
1384   # Try the directory containing this script, then the parent directory.
1385   ac_confdir=`$as_dirname -- "$as_myself" ||
1386 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387          X"$as_myself" : 'X\(//\)[^/]' \| \
1388          X"$as_myself" : 'X\(//\)$' \| \
1389          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390 $as_echo X"$as_myself" |
1391     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392             s//\1/
1393             q
1394           }
1395           /^X\(\/\/\)[^/].*/{
1396             s//\1/
1397             q
1398           }
1399           /^X\(\/\/\)$/{
1400             s//\1/
1401             q
1402           }
1403           /^X\(\/\).*/{
1404             s//\1/
1405             q
1406           }
1407           s/.*/./; q'`
1408   srcdir=$ac_confdir
1409   if test ! -r "$srcdir/$ac_unique_file"; then
1410     srcdir=..
1411   fi
1412 else
1413   ac_srcdir_defaulted=no
1414 fi
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1418 fi
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 ac_abs_confdir=`(
1421         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1422         pwd)`
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425   srcdir=.
1426 fi
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1430 case $srcdir in
1431 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432 esac
1433 for ac_var in $ac_precious_vars; do
1434   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435   eval ac_env_${ac_var}_value=\$${ac_var}
1436   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438 done
1439
1440 #
1441 # Report the --help message.
1442 #
1443 if test "$ac_init_help" = "long"; then
1444   # Omit some internal or obsolete options to make the list less imposing.
1445   # This message is too long to be a string in the A/UX 3.1 sh.
1446   cat <<_ACEOF
1447 \`configure' configures shibboleth-resolver 0.3 to adapt to many kinds of systems.
1448
1449 Usage: $0 [OPTION]... [VAR=VALUE]...
1450
1451 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452 VAR=VALUE.  See below for descriptions of some of the useful variables.
1453
1454 Defaults for the options are specified in brackets.
1455
1456 Configuration:
1457   -h, --help              display this help and exit
1458       --help=short        display options specific to this package
1459       --help=recursive    display the short help of all the included packages
1460   -V, --version           display version information and exit
1461   -q, --quiet, --silent   do not print \`checking ...' messages
1462       --cache-file=FILE   cache test results in FILE [disabled]
1463   -C, --config-cache      alias for \`--cache-file=config.cache'
1464   -n, --no-create         do not create output files
1465       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1466
1467 Installation directories:
1468   --prefix=PREFIX         install architecture-independent files in PREFIX
1469                           [$ac_default_prefix]
1470   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1471                           [PREFIX]
1472
1473 By default, \`make install' will install all the files in
1474 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1475 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476 for instance \`--prefix=\$HOME'.
1477
1478 For better control, use the options below.
1479
1480 Fine tuning of the installation directories:
1481   --bindir=DIR            user executables [EPREFIX/bin]
1482   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1483   --libexecdir=DIR        program executables [EPREFIX/libexec]
1484   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1485   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1486   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1487   --libdir=DIR            object code libraries [EPREFIX/lib]
1488   --includedir=DIR        C header files [PREFIX/include]
1489   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1490   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1491   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1492   --infodir=DIR           info documentation [DATAROOTDIR/info]
1493   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1494   --mandir=DIR            man documentation [DATAROOTDIR/man]
1495   --docdir=DIR            documentation root
1496                           [DATAROOTDIR/doc/shibboleth-resolver]
1497   --htmldir=DIR           html documentation [DOCDIR]
1498   --dvidir=DIR            dvi documentation [DOCDIR]
1499   --pdfdir=DIR            pdf documentation [DOCDIR]
1500   --psdir=DIR             ps documentation [DOCDIR]
1501 _ACEOF
1502
1503   cat <<\_ACEOF
1504
1505 Program names:
1506   --program-prefix=PREFIX            prepend PREFIX to installed program names
1507   --program-suffix=SUFFIX            append SUFFIX to installed program names
1508   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1509
1510 System types:
1511   --build=BUILD     configure for building on BUILD [guessed]
1512   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1513 _ACEOF
1514 fi
1515
1516 if test -n "$ac_init_help"; then
1517   case $ac_init_help in
1518      short | recursive ) echo "Configuration of shibboleth-resolver 0.3:";;
1519    esac
1520   cat <<\_ACEOF
1521
1522 Optional Features:
1523   --disable-option-checking  ignore unrecognized --enable/--with options
1524   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1525   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1526   --enable-static[=PKGS]  build static libraries [default=no]
1527   --enable-shared[=PKGS]  build shared libraries [default=yes]
1528   --enable-fast-install[=PKGS]
1529                           optimize for fast installation [default=yes]
1530   --disable-dependency-tracking  speeds up one-time build
1531   --enable-dependency-tracking   do not reject slow dependency extractors
1532   --disable-libtool-lock  avoid locking (might break parallel builds)
1533   --enable-debug          Have GCC compile with symbols (Default = no)
1534
1535 Optional Packages:
1536   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1537   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1538   --with-pic              try to use only PIC/non-PIC objects [default=use
1539                           both]
1540   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1541   --with-log4shib=PATH    where log4shib-config is installed
1542   --with-log4cpp=PATH     where log4cpp-config is installed
1543   --with-xerces=PATH      where xerces-c is installed
1544   --with-xmltooling=PATH  where xmltooling-c is installed
1545   --with-xmlsec=PATH      where xmlsec is installed
1546   --with-saml=PATH        where saml is installed
1547   --with-shibsp=PATH      where Shibboleth SP is installed
1548   --with-gssapi-includes=DIR
1549                           Specify location of GSSAPI header
1550   --with-gssapi-libs=DIR  Specify location of GSSAPI libs
1551   --with-gssapi=DIR       Where to look for GSSAPI
1552
1553 Some influential environment variables:
1554   CC          C compiler command
1555   CFLAGS      C compiler flags
1556   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1557               nonstandard directory <lib dir>
1558   LIBS        libraries to pass to the linker, e.g. -l<library>
1559   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1560               you have headers in a nonstandard directory <include dir>
1561   CPP         C preprocessor
1562   CXX         C++ compiler command
1563   CXXFLAGS    C++ compiler flags
1564   CXXCPP      C++ preprocessor
1565
1566 Use these variables to override the choices made by `configure' or to help
1567 it to find libraries and programs with nonstandard names/locations.
1568
1569 Report bugs to <MOONSHOT-COMMUNITY@JISCMAIL.AC.UK>.
1570 _ACEOF
1571 ac_status=$?
1572 fi
1573
1574 if test "$ac_init_help" = "recursive"; then
1575   # If there are subdirs, report their specific --help.
1576   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577     test -d "$ac_dir" ||
1578       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579       continue
1580     ac_builddir=.
1581
1582 case "$ac_dir" in
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *)
1585   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1586   # A ".." for each directory in $ac_dir_suffix.
1587   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588   case $ac_top_builddir_sub in
1589   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591   esac ;;
1592 esac
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1597
1598 case $srcdir in
1599   .)  # We are building in place.
1600     ac_srcdir=.
1601     ac_top_srcdir=$ac_top_builddir_sub
1602     ac_abs_top_srcdir=$ac_pwd ;;
1603   [\\/]* | ?:[\\/]* )  # Absolute name.
1604     ac_srcdir=$srcdir$ac_dir_suffix;
1605     ac_top_srcdir=$srcdir
1606     ac_abs_top_srcdir=$srcdir ;;
1607   *) # Relative name.
1608     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609     ac_top_srcdir=$ac_top_build_prefix$srcdir
1610     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 esac
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614     cd "$ac_dir" || { ac_status=$?; continue; }
1615     # Check for guested configure.
1616     if test -f "$ac_srcdir/configure.gnu"; then
1617       echo &&
1618       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619     elif test -f "$ac_srcdir/configure"; then
1620       echo &&
1621       $SHELL "$ac_srcdir/configure" --help=recursive
1622     else
1623       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624     fi || ac_status=$?
1625     cd "$ac_pwd" || { ac_status=$?; break; }
1626   done
1627 fi
1628
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1631   cat <<\_ACEOF
1632 shibboleth-resolver configure 0.3
1633 generated by GNU Autoconf 2.67
1634
1635 Copyright (C) 2010 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1638 _ACEOF
1639   exit
1640 fi
1641
1642 ## ------------------------ ##
1643 ## Autoconf initialization. ##
1644 ## ------------------------ ##
1645
1646 # ac_fn_c_try_compile LINENO
1647 # --------------------------
1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_compile ()
1650 {
1651   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652   rm -f conftest.$ac_objext
1653   if { { ac_try="$ac_compile"
1654 case "(($ac_try" in
1655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656   *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660   (eval "$ac_compile") 2>conftest.err
1661   ac_status=$?
1662   if test -s conftest.err; then
1663     grep -v '^ *+' conftest.err >conftest.er1
1664     cat conftest.er1 >&5
1665     mv -f conftest.er1 conftest.err
1666   fi
1667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668   test $ac_status = 0; } && {
1669          test -z "$ac_c_werror_flag" ||
1670          test ! -s conftest.err
1671        } && test -s conftest.$ac_objext; then :
1672   ac_retval=0
1673 else
1674   $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677         ac_retval=1
1678 fi
1679   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680   as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_compile
1683
1684 # ac_fn_c_try_link LINENO
1685 # -----------------------
1686 # Try to link conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_link ()
1688 {
1689   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690   rm -f conftest.$ac_objext conftest$ac_exeext
1691   if { { ac_try="$ac_link"
1692 case "(($ac_try" in
1693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694   *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698   (eval "$ac_link") 2>conftest.err
1699   ac_status=$?
1700   if test -s conftest.err; then
1701     grep -v '^ *+' conftest.err >conftest.er1
1702     cat conftest.er1 >&5
1703     mv -f conftest.er1 conftest.err
1704   fi
1705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706   test $ac_status = 0; } && {
1707          test -z "$ac_c_werror_flag" ||
1708          test ! -s conftest.err
1709        } && test -s conftest$ac_exeext && {
1710          test "$cross_compiling" = yes ||
1711          $as_test_x conftest$ac_exeext
1712        }; then :
1713   ac_retval=0
1714 else
1715   $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718         ac_retval=1
1719 fi
1720   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1721   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1722   # interfere with the next link command; also delete a directory that is
1723   # left behind by Apple's compiler.  We do this before executing the actions.
1724   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726   as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_link
1729
1730 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1731 # -------------------------------------------------------
1732 # Tests whether HEADER exists and can be compiled using the include files in
1733 # INCLUDES, setting the cache variable VAR accordingly.
1734 ac_fn_c_check_header_compile ()
1735 {
1736   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval "test \"\${$3+set}\"" = set; then :
1740   $as_echo_n "(cached) " >&6
1741 else
1742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h.  */
1744 $4
1745 #include <$2>
1746 _ACEOF
1747 if ac_fn_c_try_compile "$LINENO"; then :
1748   eval "$3=yes"
1749 else
1750   eval "$3=no"
1751 fi
1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753 fi
1754 eval ac_res=\$$3
1755                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758
1759 } # ac_fn_c_check_header_compile
1760
1761 # ac_fn_c_try_cpp LINENO
1762 # ----------------------
1763 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_c_try_cpp ()
1765 {
1766   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767   if { { ac_try="$ac_cpp conftest.$ac_ext"
1768 case "(($ac_try" in
1769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770   *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1775   ac_status=$?
1776   if test -s conftest.err; then
1777     grep -v '^ *+' conftest.err >conftest.er1
1778     cat conftest.er1 >&5
1779     mv -f conftest.er1 conftest.err
1780   fi
1781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782   test $ac_status = 0; } > conftest.i && {
1783          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1784          test ! -s conftest.err
1785        }; then :
1786   ac_retval=0
1787 else
1788   $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791     ac_retval=1
1792 fi
1793   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794   as_fn_set_status $ac_retval
1795
1796 } # ac_fn_c_try_cpp
1797
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1802 ac_fn_c_try_run ()
1803 {
1804   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805   if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808   *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812   (eval "$ac_link") 2>&5
1813   ac_status=$?
1814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816   { { case "(($ac_try" in
1817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818   *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822   (eval "$ac_try") 2>&5
1823   ac_status=$?
1824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825   test $ac_status = 0; }; }; then :
1826   ac_retval=0
1827 else
1828   $as_echo "$as_me: program exited with status $ac_status" >&5
1829        $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832        ac_retval=$ac_status
1833 fi
1834   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836   as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_run
1839
1840 # ac_fn_c_check_func LINENO FUNC VAR
1841 # ----------------------------------
1842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1843 ac_fn_c_check_func ()
1844 {
1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval "test \"\${$3+set}\"" = set; then :
1849   $as_echo_n "(cached) " >&6
1850 else
1851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h.  */
1853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1855 #define $2 innocuous_$2
1856
1857 /* System header to define __stub macros and hopefully few prototypes,
1858     which can conflict with char $2 (); below.
1859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1860     <limits.h> exists even on freestanding compilers.  */
1861
1862 #ifdef __STDC__
1863 # include <limits.h>
1864 #else
1865 # include <assert.h>
1866 #endif
1867
1868 #undef $2
1869
1870 /* Override any GCC internal prototype to avoid an error.
1871    Use char because int might match the return type of a GCC
1872    builtin and then its argument prototype would still apply.  */
1873 #ifdef __cplusplus
1874 extern "C"
1875 #endif
1876 char $2 ();
1877 /* The GNU C library defines this for functions which it implements
1878     to always fail with ENOSYS.  Some functions are actually named
1879     something starting with __ and the normal name is an alias.  */
1880 #if defined __stub_$2 || defined __stub___$2
1881 choke me
1882 #endif
1883
1884 int
1885 main ()
1886 {
1887 return $2 ();
1888   ;
1889   return 0;
1890 }
1891 _ACEOF
1892 if ac_fn_c_try_link "$LINENO"; then :
1893   eval "$3=yes"
1894 else
1895   eval "$3=no"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext \
1898     conftest$ac_exeext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904
1905 } # ac_fn_c_check_func
1906
1907 # ac_fn_cxx_try_compile LINENO
1908 # ----------------------------
1909 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_cxx_try_compile ()
1911 {
1912   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913   rm -f conftest.$ac_objext
1914   if { { ac_try="$ac_compile"
1915 case "(($ac_try" in
1916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917   *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921   (eval "$ac_compile") 2>conftest.err
1922   ac_status=$?
1923   if test -s conftest.err; then
1924     grep -v '^ *+' conftest.err >conftest.er1
1925     cat conftest.er1 >&5
1926     mv -f conftest.er1 conftest.err
1927   fi
1928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929   test $ac_status = 0; } && {
1930          test -z "$ac_cxx_werror_flag" ||
1931          test ! -s conftest.err
1932        } && test -s conftest.$ac_objext; then :
1933   ac_retval=0
1934 else
1935   $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1937
1938         ac_retval=1
1939 fi
1940   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941   as_fn_set_status $ac_retval
1942
1943 } # ac_fn_cxx_try_compile
1944
1945 # ac_fn_cxx_try_cpp LINENO
1946 # ------------------------
1947 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1948 ac_fn_cxx_try_cpp ()
1949 {
1950   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951   if { { ac_try="$ac_cpp conftest.$ac_ext"
1952 case "(($ac_try" in
1953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954   *) ac_try_echo=$ac_try;;
1955 esac
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1959   ac_status=$?
1960   if test -s conftest.err; then
1961     grep -v '^ *+' conftest.err >conftest.er1
1962     cat conftest.er1 >&5
1963     mv -f conftest.er1 conftest.err
1964   fi
1965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966   test $ac_status = 0; } > conftest.i && {
1967          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1968          test ! -s conftest.err
1969        }; then :
1970   ac_retval=0
1971 else
1972   $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1974
1975     ac_retval=1
1976 fi
1977   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1978   as_fn_set_status $ac_retval
1979
1980 } # ac_fn_cxx_try_cpp
1981
1982 # ac_fn_cxx_try_link LINENO
1983 # -------------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded.
1985 ac_fn_cxx_try_link ()
1986 {
1987   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988   rm -f conftest.$ac_objext conftest$ac_exeext
1989   if { { ac_try="$ac_link"
1990 case "(($ac_try" in
1991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992   *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996   (eval "$ac_link") 2>conftest.err
1997   ac_status=$?
1998   if test -s conftest.err; then
1999     grep -v '^ *+' conftest.err >conftest.er1
2000     cat conftest.er1 >&5
2001     mv -f conftest.er1 conftest.err
2002   fi
2003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004   test $ac_status = 0; } && {
2005          test -z "$ac_cxx_werror_flag" ||
2006          test ! -s conftest.err
2007        } && test -s conftest$ac_exeext && {
2008          test "$cross_compiling" = yes ||
2009          $as_test_x conftest$ac_exeext
2010        }; then :
2011   ac_retval=0
2012 else
2013   $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2015
2016         ac_retval=1
2017 fi
2018   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2019   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2020   # interfere with the next link command; also delete a directory that is
2021   # left behind by Apple's compiler.  We do this before executing the actions.
2022   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2023   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2024   as_fn_set_status $ac_retval
2025
2026 } # ac_fn_cxx_try_link
2027
2028 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2029 # -------------------------------------------
2030 # Tests whether TYPE exists after having included INCLUDES, setting cache
2031 # variable VAR accordingly.
2032 ac_fn_c_check_type ()
2033 {
2034   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036 $as_echo_n "checking for $2... " >&6; }
2037 if eval "test \"\${$3+set}\"" = set; then :
2038   $as_echo_n "(cached) " >&6
2039 else
2040   eval "$3=no"
2041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h.  */
2043 $4
2044 int
2045 main ()
2046 {
2047 if (sizeof ($2))
2048          return 0;
2049   ;
2050   return 0;
2051 }
2052 _ACEOF
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h.  */
2056 $4
2057 int
2058 main ()
2059 {
2060 if (sizeof (($2)))
2061             return 0;
2062   ;
2063   return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067
2068 else
2069   eval "$3=yes"
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 fi
2075 eval ac_res=\$$3
2076                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2078   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2079
2080 } # ac_fn_c_check_type
2081
2082 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2083 # ---------------------------------------------------------
2084 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2085 # the include files in INCLUDES and setting the cache variable VAR
2086 # accordingly.
2087 ac_fn_cxx_check_header_mongrel ()
2088 {
2089   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090   if eval "test \"\${$3+set}\"" = set; then :
2091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 $as_echo_n "checking for $2... " >&6; }
2093 if eval "test \"\${$3+set}\"" = set; then :
2094   $as_echo_n "(cached) " >&6
2095 fi
2096 eval ac_res=\$$3
2097                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 else
2100   # Is the header compilable?
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2102 $as_echo_n "checking $2 usability... " >&6; }
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h.  */
2105 $4
2106 #include <$2>
2107 _ACEOF
2108 if ac_fn_cxx_try_compile "$LINENO"; then :
2109   ac_header_compiler=yes
2110 else
2111   ac_header_compiler=no
2112 fi
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2115 $as_echo "$ac_header_compiler" >&6; }
2116
2117 # Is the header present?
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2119 $as_echo_n "checking $2 presence... " >&6; }
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h.  */
2122 #include <$2>
2123 _ACEOF
2124 if ac_fn_cxx_try_cpp "$LINENO"; then :
2125   ac_header_preproc=yes
2126 else
2127   ac_header_preproc=no
2128 fi
2129 rm -f conftest.err conftest.i conftest.$ac_ext
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2131 $as_echo "$ac_header_preproc" >&6; }
2132
2133 # So?  What about this header?
2134 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2135   yes:no: )
2136     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2137 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2138     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2139 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2140     ;;
2141   no:yes:* )
2142     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2143 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2144     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2145 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2146     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2147 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2148     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2149 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2150     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2151 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2152 ( $as_echo "## ------------------------------------------------ ##
2153 ## Report this to MOONSHOT-COMMUNITY@JISCMAIL.AC.UK ##
2154 ## ------------------------------------------------ ##"
2155      ) | sed "s/^/$as_me: WARNING:     /" >&2
2156     ;;
2157 esac
2158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2159 $as_echo_n "checking for $2... " >&6; }
2160 if eval "test \"\${$3+set}\"" = set; then :
2161   $as_echo_n "(cached) " >&6
2162 else
2163   eval "$3=\$ac_header_compiler"
2164 fi
2165 eval ac_res=\$$3
2166                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 fi
2169   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2170
2171 } # ac_fn_cxx_check_header_mongrel
2172
2173 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2174 # ---------------------------------------------------------
2175 # Tests whether HEADER exists and can be compiled using the include files in
2176 # INCLUDES, setting the cache variable VAR accordingly.
2177 ac_fn_cxx_check_header_compile ()
2178 {
2179   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2181 $as_echo_n "checking for $2... " >&6; }
2182 if eval "test \"\${$3+set}\"" = set; then :
2183   $as_echo_n "(cached) " >&6
2184 else
2185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h.  */
2187 $4
2188 #include <$2>
2189 _ACEOF
2190 if ac_fn_cxx_try_compile "$LINENO"; then :
2191   eval "$3=yes"
2192 else
2193   eval "$3=no"
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 fi
2197 eval ac_res=\$$3
2198                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2201
2202 } # ac_fn_cxx_check_header_compile
2203 cat >config.log <<_ACEOF
2204 This file contains any messages produced by compilers while
2205 running configure, to aid debugging if configure makes a mistake.
2206
2207 It was created by shibboleth-resolver $as_me 0.3, which was
2208 generated by GNU Autoconf 2.67.  Invocation command line was
2209
2210   $ $0 $@
2211
2212 _ACEOF
2213 exec 5>>config.log
2214 {
2215 cat <<_ASUNAME
2216 ## --------- ##
2217 ## Platform. ##
2218 ## --------- ##
2219
2220 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2221 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2222 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2223 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2224 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2225
2226 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2227 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2228
2229 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2230 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2231 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2232 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2233 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2234 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2235 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2236
2237 _ASUNAME
2238
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244     $as_echo "PATH: $as_dir"
2245   done
2246 IFS=$as_save_IFS
2247
2248 } >&5
2249
2250 cat >&5 <<_ACEOF
2251
2252
2253 ## ----------- ##
2254 ## Core tests. ##
2255 ## ----------- ##
2256
2257 _ACEOF
2258
2259
2260 # Keep a trace of the command line.
2261 # Strip out --no-create and --no-recursion so they do not pile up.
2262 # Strip out --silent because we don't want to record it for future runs.
2263 # Also quote any args containing shell meta-characters.
2264 # Make two passes to allow for proper duplicate-argument suppression.
2265 ac_configure_args=
2266 ac_configure_args0=
2267 ac_configure_args1=
2268 ac_must_keep_next=false
2269 for ac_pass in 1 2
2270 do
2271   for ac_arg
2272   do
2273     case $ac_arg in
2274     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2275     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2276     | -silent | --silent | --silen | --sile | --sil)
2277       continue ;;
2278     *\'*)
2279       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280     esac
2281     case $ac_pass in
2282     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2283     2)
2284       as_fn_append ac_configure_args1 " '$ac_arg'"
2285       if test $ac_must_keep_next = true; then
2286         ac_must_keep_next=false # Got value, back to normal.
2287       else
2288         case $ac_arg in
2289           *=* | --config-cache | -C | -disable-* | --disable-* \
2290           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2291           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2292           | -with-* | --with-* | -without-* | --without-* | --x)
2293             case "$ac_configure_args0 " in
2294               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2295             esac
2296             ;;
2297           -* ) ac_must_keep_next=true ;;
2298         esac
2299       fi
2300       as_fn_append ac_configure_args " '$ac_arg'"
2301       ;;
2302     esac
2303   done
2304 done
2305 { ac_configure_args0=; unset ac_configure_args0;}
2306 { ac_configure_args1=; unset ac_configure_args1;}
2307
2308 # When interrupted or exit'd, cleanup temporary files, and complete
2309 # config.log.  We remove comments because anyway the quotes in there
2310 # would cause problems or look ugly.
2311 # WARNING: Use '\'' to represent an apostrophe within the trap.
2312 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2313 trap 'exit_status=$?
2314   # Save into config.log some information that might help in debugging.
2315   {
2316     echo
2317
2318     $as_echo "## ---------------- ##
2319 ## Cache variables. ##
2320 ## ---------------- ##"
2321     echo
2322     # The following way of writing the cache mishandles newlines in values,
2323 (
2324   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2325     eval ac_val=\$$ac_var
2326     case $ac_val in #(
2327     *${as_nl}*)
2328       case $ac_var in #(
2329       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2331       esac
2332       case $ac_var in #(
2333       _ | IFS | as_nl) ;; #(
2334       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2335       *) { eval $ac_var=; unset $ac_var;} ;;
2336       esac ;;
2337     esac
2338   done
2339   (set) 2>&1 |
2340     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2341     *${as_nl}ac_space=\ *)
2342       sed -n \
2343         "s/'\''/'\''\\\\'\'''\''/g;
2344           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2345       ;; #(
2346     *)
2347       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2348       ;;
2349     esac |
2350     sort
2351 )
2352     echo
2353
2354     $as_echo "## ----------------- ##
2355 ## Output variables. ##
2356 ## ----------------- ##"
2357     echo
2358     for ac_var in $ac_subst_vars
2359     do
2360       eval ac_val=\$$ac_var
2361       case $ac_val in
2362       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2363       esac
2364       $as_echo "$ac_var='\''$ac_val'\''"
2365     done | sort
2366     echo
2367
2368     if test -n "$ac_subst_files"; then
2369       $as_echo "## ------------------- ##
2370 ## File substitutions. ##
2371 ## ------------------- ##"
2372       echo
2373       for ac_var in $ac_subst_files
2374       do
2375         eval ac_val=\$$ac_var
2376         case $ac_val in
2377         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2378         esac
2379         $as_echo "$ac_var='\''$ac_val'\''"
2380       done | sort
2381       echo
2382     fi
2383
2384     if test -s confdefs.h; then
2385       $as_echo "## ----------- ##
2386 ## confdefs.h. ##
2387 ## ----------- ##"
2388       echo
2389       cat confdefs.h
2390       echo
2391     fi
2392     test "$ac_signal" != 0 &&
2393       $as_echo "$as_me: caught signal $ac_signal"
2394     $as_echo "$as_me: exit $exit_status"
2395   } >&5
2396   rm -f core *.core core.conftest.* &&
2397     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2398     exit $exit_status
2399 ' 0
2400 for ac_signal in 1 2 13 15; do
2401   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2402 done
2403 ac_signal=0
2404
2405 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2406 rm -f -r conftest* confdefs.h
2407
2408 $as_echo "/* confdefs.h */" > confdefs.h
2409
2410 # Predefined preprocessor variables.
2411
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_NAME "$PACKAGE_NAME"
2414 _ACEOF
2415
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2418 _ACEOF
2419
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2422 _ACEOF
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_STRING "$PACKAGE_STRING"
2426 _ACEOF
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_URL "$PACKAGE_URL"
2434 _ACEOF
2435
2436
2437 # Let the site file select an alternate cache file if it wants to.
2438 # Prefer an explicitly selected file to automatically selected ones.
2439 ac_site_file1=NONE
2440 ac_site_file2=NONE
2441 if test -n "$CONFIG_SITE"; then
2442   # We do not want a PATH search for config.site.
2443   case $CONFIG_SITE in #((
2444     -*)  ac_site_file1=./$CONFIG_SITE;;
2445     */*) ac_site_file1=$CONFIG_SITE;;
2446     *)   ac_site_file1=./$CONFIG_SITE;;
2447   esac
2448 elif test "x$prefix" != xNONE; then
2449   ac_site_file1=$prefix/share/config.site
2450   ac_site_file2=$prefix/etc/config.site
2451 else
2452   ac_site_file1=$ac_default_prefix/share/config.site
2453   ac_site_file2=$ac_default_prefix/etc/config.site
2454 fi
2455 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2456 do
2457   test "x$ac_site_file" = xNONE && continue
2458   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2459     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2460 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2461     sed 's/^/| /' "$ac_site_file" >&5
2462     . "$ac_site_file" \
2463       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2465 as_fn_error $? "failed to load site script $ac_site_file
2466 See \`config.log' for more details" "$LINENO" 5 ; }
2467   fi
2468 done
2469
2470 if test -r "$cache_file"; then
2471   # Some versions of bash will fail to source /dev/null (special files
2472   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2473   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2474     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2475 $as_echo "$as_me: loading cache $cache_file" >&6;}
2476     case $cache_file in
2477       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2478       *)                      . "./$cache_file";;
2479     esac
2480   fi
2481 else
2482   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2483 $as_echo "$as_me: creating cache $cache_file" >&6;}
2484   >$cache_file
2485 fi
2486
2487 # Check that the precious variables saved in the cache have kept the same
2488 # value.
2489 ac_cache_corrupted=false
2490 for ac_var in $ac_precious_vars; do
2491   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2492   eval ac_new_set=\$ac_env_${ac_var}_set
2493   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2494   eval ac_new_val=\$ac_env_${ac_var}_value
2495   case $ac_old_set,$ac_new_set in
2496     set,)
2497       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2498 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2499       ac_cache_corrupted=: ;;
2500     ,set)
2501       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2502 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2503       ac_cache_corrupted=: ;;
2504     ,);;
2505     *)
2506       if test "x$ac_old_val" != "x$ac_new_val"; then
2507         # differences in whitespace do not lead to failure.
2508         ac_old_val_w=`echo x $ac_old_val`
2509         ac_new_val_w=`echo x $ac_new_val`
2510         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2511           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2512 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2513           ac_cache_corrupted=:
2514         else
2515           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2516 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2517           eval $ac_var=\$ac_old_val
2518         fi
2519         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2520 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2521         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2522 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2523       fi;;
2524   esac
2525   # Pass precious variables to config.status.
2526   if test "$ac_new_set" = set; then
2527     case $ac_new_val in
2528     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2529     *) ac_arg=$ac_var=$ac_new_val ;;
2530     esac
2531     case " $ac_configure_args " in
2532       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2533       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2534     esac
2535   fi
2536 done
2537 if $ac_cache_corrupted; then
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2541 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2542   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2543 fi
2544 ## -------------------- ##
2545 ## Main body of script. ##
2546 ## -------------------- ##
2547
2548 ac_ext=c
2549 ac_cpp='$CPP $CPPFLAGS'
2550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2553
2554
2555
2556 ac_aux_dir=
2557 for ac_dir in build-aux "$srcdir"/build-aux; do
2558   if test -f "$ac_dir/install-sh"; then
2559     ac_aux_dir=$ac_dir
2560     ac_install_sh="$ac_aux_dir/install-sh -c"
2561     break
2562   elif test -f "$ac_dir/install.sh"; then
2563     ac_aux_dir=$ac_dir
2564     ac_install_sh="$ac_aux_dir/install.sh -c"
2565     break
2566   elif test -f "$ac_dir/shtool"; then
2567     ac_aux_dir=$ac_dir
2568     ac_install_sh="$ac_aux_dir/shtool install -c"
2569     break
2570   fi
2571 done
2572 if test -z "$ac_aux_dir"; then
2573   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2574 fi
2575
2576 # These three variables are undocumented and unsupported,
2577 # and are intended to be withdrawn in a future Autoconf release.
2578 # They can cause serious problems if a builder's source tree is in a directory
2579 # whose full name contains unusual characters.
2580 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2581 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2582 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2583
2584
2585
2586 am__api_version='1.11'
2587
2588 # Find a good install program.  We prefer a C program (faster),
2589 # so one script is as good as another.  But avoid the broken or
2590 # incompatible versions:
2591 # SysV /etc/install, /usr/sbin/install
2592 # SunOS /usr/etc/install
2593 # IRIX /sbin/install
2594 # AIX /bin/install
2595 # AmigaOS /C/install, which installs bootblocks on floppy discs
2596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2599 # OS/2's system install, which has a completely different semantic
2600 # ./install, which can be erroneously created by make from ./install.sh.
2601 # Reject install programs that cannot install multiple files.
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2603 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2604 if test -z "$INSTALL"; then
2605 if test "${ac_cv_path_install+set}" = set; then :
2606   $as_echo_n "(cached) " >&6
2607 else
2608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611   IFS=$as_save_IFS
2612   test -z "$as_dir" && as_dir=.
2613     # Account for people who put trailing slashes in PATH elements.
2614 case $as_dir/ in #((
2615   ./ | .// | /[cC]/* | \
2616   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2617   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2618   /usr/ucb/* ) ;;
2619   *)
2620     # OSF1 and SCO ODT 3.0 have their own names for install.
2621     # Don't use installbsd from OSF since it installs stuff as root
2622     # by default.
2623     for ac_prog in ginstall scoinst install; do
2624       for ac_exec_ext in '' $ac_executable_extensions; do
2625         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2626           if test $ac_prog = install &&
2627             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2628             # AIX install.  It has an incompatible calling convention.
2629             :
2630           elif test $ac_prog = install &&
2631             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2632             # program-specific install script used by HP pwplus--don't use.
2633             :
2634           else
2635             rm -rf conftest.one conftest.two conftest.dir
2636             echo one > conftest.one
2637             echo two > conftest.two
2638             mkdir conftest.dir
2639             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2640               test -s conftest.one && test -s conftest.two &&
2641               test -s conftest.dir/conftest.one &&
2642               test -s conftest.dir/conftest.two
2643             then
2644               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2645               break 3
2646             fi
2647           fi
2648         fi
2649       done
2650     done
2651     ;;
2652 esac
2653
2654   done
2655 IFS=$as_save_IFS
2656
2657 rm -rf conftest.one conftest.two conftest.dir
2658
2659 fi
2660   if test "${ac_cv_path_install+set}" = set; then
2661     INSTALL=$ac_cv_path_install
2662   else
2663     # As a last resort, use the slow shell script.  Don't cache a
2664     # value for INSTALL within a source directory, because that will
2665     # break other packages using the cache if that directory is
2666     # removed, or if the value is a relative name.
2667     INSTALL=$ac_install_sh
2668   fi
2669 fi
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2671 $as_echo "$INSTALL" >&6; }
2672
2673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2674 # It thinks the first close brace ends the variable substitution.
2675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2676
2677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2678
2679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2680
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2682 $as_echo_n "checking whether build environment is sane... " >&6; }
2683 # Just in case
2684 sleep 1
2685 echo timestamp > conftest.file
2686 # Reject unsafe characters in $srcdir or the absolute working directory
2687 # name.  Accept space and tab only in the latter.
2688 am_lf='
2689 '
2690 case `pwd` in
2691   *[\\\"\#\$\&\'\`$am_lf]*)
2692     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2693 esac
2694 case $srcdir in
2695   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2696     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2697 esac
2698
2699 # Do `set' in a subshell so we don't clobber the current shell's
2700 # arguments.  Must try -L first in case configure is actually a
2701 # symlink; some systems play weird games with the mod time of symlinks
2702 # (eg FreeBSD returns the mod time of the symlink's containing
2703 # directory).
2704 if (
2705    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2706    if test "$*" = "X"; then
2707       # -L didn't work.
2708       set X `ls -t "$srcdir/configure" conftest.file`
2709    fi
2710    rm -f conftest.file
2711    if test "$*" != "X $srcdir/configure conftest.file" \
2712       && test "$*" != "X conftest.file $srcdir/configure"; then
2713
2714       # If neither matched, then we have a broken ls.  This can happen
2715       # if, for instance, CONFIG_SHELL is bash and it inherits a
2716       # broken ls alias from the environment.  This has actually
2717       # happened.  Such a system could not be considered "sane".
2718       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2719 alias in your environment" "$LINENO" 5
2720    fi
2721
2722    test "$2" = conftest.file
2723    )
2724 then
2725    # Ok.
2726    :
2727 else
2728    as_fn_error $? "newly created file is older than distributed files!
2729 Check your system clock" "$LINENO" 5
2730 fi
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2732 $as_echo "yes" >&6; }
2733 test "$program_prefix" != NONE &&
2734   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2735 # Use a double $ so make ignores it.
2736 test "$program_suffix" != NONE &&
2737   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2738 # Double any \ or $.
2739 # By default was `s,x,x', remove it if useless.
2740 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2741 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2742
2743 # expand $ac_aux_dir to an absolute path
2744 am_aux_dir=`cd $ac_aux_dir && pwd`
2745
2746 if test x"${MISSING+set}" != xset; then
2747   case $am_aux_dir in
2748   *\ * | *\     *)
2749     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2750   *)
2751     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2752   esac
2753 fi
2754 # Use eval to expand $SHELL
2755 if eval "$MISSING --run true"; then
2756   am_missing_run="$MISSING --run "
2757 else
2758   am_missing_run=
2759   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2760 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2761 fi
2762
2763 if test x"${install_sh}" != xset; then
2764   case $am_aux_dir in
2765   *\ * | *\     *)
2766     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2767   *)
2768     install_sh="\${SHELL} $am_aux_dir/install-sh"
2769   esac
2770 fi
2771
2772 # Installed binaries are usually stripped using `strip' when the user
2773 # run `make install-strip'.  However `strip' might not be the right
2774 # tool to use in cross-compilation environments, therefore Automake
2775 # will honor the `STRIP' environment variable to overrule this program.
2776 if test "$cross_compiling" != no; then
2777   if test -n "$ac_tool_prefix"; then
2778   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2779 set dummy ${ac_tool_prefix}strip; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if test "${ac_cv_prog_STRIP+set}" = set; then :
2783   $as_echo_n "(cached) " >&6
2784 else
2785   if test -n "$STRIP"; then
2786   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791   IFS=$as_save_IFS
2792   test -z "$as_dir" && as_dir=.
2793     for ac_exec_ext in '' $ac_executable_extensions; do
2794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797     break 2
2798   fi
2799 done
2800   done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 STRIP=$ac_cv_prog_STRIP
2806 if test -n "$STRIP"; then
2807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2808 $as_echo "$STRIP" >&6; }
2809 else
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812 fi
2813
2814
2815 fi
2816 if test -z "$ac_cv_prog_STRIP"; then
2817   ac_ct_STRIP=$STRIP
2818   # Extract the first word of "strip", so it can be a program name with args.
2819 set dummy strip; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2823   $as_echo_n "(cached) " >&6
2824 else
2825   if test -n "$ac_ct_STRIP"; then
2826   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833     for ac_exec_ext in '' $ac_executable_extensions; do
2834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835     ac_cv_prog_ac_ct_STRIP="strip"
2836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837     break 2
2838   fi
2839 done
2840   done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2846 if test -n "$ac_ct_STRIP"; then
2847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2848 $as_echo "$ac_ct_STRIP" >&6; }
2849 else
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854   if test "x$ac_ct_STRIP" = x; then
2855     STRIP=":"
2856   else
2857     case $cross_compiling:$ac_tool_warned in
2858 yes:)
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2861 ac_tool_warned=yes ;;
2862 esac
2863     STRIP=$ac_ct_STRIP
2864   fi
2865 else
2866   STRIP="$ac_cv_prog_STRIP"
2867 fi
2868
2869 fi
2870 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2871
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2873 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2874 if test -z "$MKDIR_P"; then
2875   if test "${ac_cv_path_mkdir+set}" = set; then :
2876   $as_echo_n "(cached) " >&6
2877 else
2878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2880 do
2881   IFS=$as_save_IFS
2882   test -z "$as_dir" && as_dir=.
2883     for ac_prog in mkdir gmkdir; do
2884          for ac_exec_ext in '' $ac_executable_extensions; do
2885            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2886            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2887              'mkdir (GNU coreutils) '* | \
2888              'mkdir (coreutils) '* | \
2889              'mkdir (fileutils) '4.1*)
2890                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2891                break 3;;
2892            esac
2893          done
2894        done
2895   done
2896 IFS=$as_save_IFS
2897
2898 fi
2899
2900   test -d ./--version && rmdir ./--version
2901   if test "${ac_cv_path_mkdir+set}" = set; then
2902     MKDIR_P="$ac_cv_path_mkdir -p"
2903   else
2904     # As a last resort, use the slow shell script.  Don't cache a
2905     # value for MKDIR_P within a source directory, because that will
2906     # break other packages using the cache if that directory is
2907     # removed, or if the value is a relative name.
2908     MKDIR_P="$ac_install_sh -d"
2909   fi
2910 fi
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2912 $as_echo "$MKDIR_P" >&6; }
2913
2914 mkdir_p="$MKDIR_P"
2915 case $mkdir_p in
2916   [\\/$]* | ?:[\\/]*) ;;
2917   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2918 esac
2919
2920 for ac_prog in gawk mawk nawk awk
2921 do
2922   # Extract the first word of "$ac_prog", so it can be a program name with args.
2923 set dummy $ac_prog; 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_AWK+set}" = set; then :
2927   $as_echo_n "(cached) " >&6
2928 else
2929   if test -n "$AWK"; then
2930   ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
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 AWK=$ac_cv_prog_AWK
2950 if test -n "$AWK"; then
2951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2952 $as_echo "$AWK" >&6; }
2953 else
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2956 fi
2957
2958
2959   test -n "$AWK" && break
2960 done
2961
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2963 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2964 set x ${MAKE-make}
2965 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2966 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2967   $as_echo_n "(cached) " >&6
2968 else
2969   cat >conftest.make <<\_ACEOF
2970 SHELL = /bin/sh
2971 all:
2972         @echo '@@@%%%=$(MAKE)=@@@%%%'
2973 _ACEOF
2974 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2975 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2976   *@@@%%%=?*=@@@%%%*)
2977     eval ac_cv_prog_make_${ac_make}_set=yes;;
2978   *)
2979     eval ac_cv_prog_make_${ac_make}_set=no;;
2980 esac
2981 rm -f conftest.make
2982 fi
2983 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2985 $as_echo "yes" >&6; }
2986   SET_MAKE=
2987 else
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990   SET_MAKE="MAKE=${MAKE-make}"
2991 fi
2992
2993 rm -rf .tst 2>/dev/null
2994 mkdir .tst 2>/dev/null
2995 if test -d .tst; then
2996   am__leading_dot=.
2997 else
2998   am__leading_dot=_
2999 fi
3000 rmdir .tst 2>/dev/null
3001
3002 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3003   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3004   # is not polluted with repeated "-I."
3005   am__isrc=' -I$(srcdir)'
3006   # test to see if srcdir already configured
3007   if test -f $srcdir/config.status; then
3008     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3009   fi
3010 fi
3011
3012 # test whether we have cygpath
3013 if test -z "$CYGPATH_W"; then
3014   if (cygpath --version) >/dev/null 2>/dev/null; then
3015     CYGPATH_W='cygpath -w'
3016   else
3017     CYGPATH_W=echo
3018   fi
3019 fi
3020
3021
3022 # Define the identity of the package.
3023  PACKAGE='shibboleth-resolver'
3024  VERSION='0.3'
3025
3026
3027 cat >>confdefs.h <<_ACEOF
3028 #define PACKAGE "$PACKAGE"
3029 _ACEOF
3030
3031
3032 cat >>confdefs.h <<_ACEOF
3033 #define VERSION "$VERSION"
3034 _ACEOF
3035
3036 # Some tools Automake needs.
3037
3038 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3039
3040
3041 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3042
3043
3044 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3045
3046
3047 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3048
3049
3050 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3051
3052 # We need awk for the "check" target.  The system "awk" is bad on
3053 # some platforms.
3054 # Always define AMTAR for backward compatibility.
3055
3056 AMTAR=${AMTAR-"${am_missing_run}tar"}
3057
3058 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3059
3060
3061
3062
3063
3064 # Check whether --enable-static was given.
3065 if test "${enable_static+set}" = set; then :
3066   enableval=$enable_static; p=${PACKAGE-default}
3067     case $enableval in
3068     yes) enable_static=yes ;;
3069     no) enable_static=no ;;
3070     *)
3071      enable_static=no
3072       # Look at the argument we got.  We use all the common list separators.
3073       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3074       for pkg in $enableval; do
3075         IFS="$lt_save_ifs"
3076         if test "X$pkg" = "X$p"; then
3077           enable_static=yes
3078         fi
3079       done
3080       IFS="$lt_save_ifs"
3081       ;;
3082     esac
3083 else
3084   enable_static=no
3085 fi
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095 case `pwd` in
3096   *\ * | *\     *)
3097     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3098 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3099 esac
3100
3101
3102
3103 macro_version='2.2.6b'
3104 macro_revision='1.3017'
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118 ltmain="$ac_aux_dir/ltmain.sh"
3119
3120 # Make sure we can run config.sub.
3121 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3122   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3123
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3125 $as_echo_n "checking build system type... " >&6; }
3126 if test "${ac_cv_build+set}" = set; then :
3127   $as_echo_n "(cached) " >&6
3128 else
3129   ac_build_alias=$build_alias
3130 test "x$ac_build_alias" = x &&
3131   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3132 test "x$ac_build_alias" = x &&
3133   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3134 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3135   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3136
3137 fi
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3139 $as_echo "$ac_cv_build" >&6; }
3140 case $ac_cv_build in
3141 *-*-*) ;;
3142 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3143 esac
3144 build=$ac_cv_build
3145 ac_save_IFS=$IFS; IFS='-'
3146 set x $ac_cv_build
3147 shift
3148 build_cpu=$1
3149 build_vendor=$2
3150 shift; shift
3151 # Remember, the first character of IFS is used to create $*,
3152 # except with old shells:
3153 build_os=$*
3154 IFS=$ac_save_IFS
3155 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3156
3157
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3159 $as_echo_n "checking host system type... " >&6; }
3160 if test "${ac_cv_host+set}" = set; then :
3161   $as_echo_n "(cached) " >&6
3162 else
3163   if test "x$host_alias" = x; then
3164   ac_cv_host=$ac_cv_build
3165 else
3166   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3167     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3168 fi
3169
3170 fi
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3172 $as_echo "$ac_cv_host" >&6; }
3173 case $ac_cv_host in
3174 *-*-*) ;;
3175 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3176 esac
3177 host=$ac_cv_host
3178 ac_save_IFS=$IFS; IFS='-'
3179 set x $ac_cv_host
3180 shift
3181 host_cpu=$1
3182 host_vendor=$2
3183 shift; shift
3184 # Remember, the first character of IFS is used to create $*,
3185 # except with old shells:
3186 host_os=$*
3187 IFS=$ac_save_IFS
3188 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3189
3190
3191 DEPDIR="${am__leading_dot}deps"
3192
3193 ac_config_commands="$ac_config_commands depfiles"
3194
3195
3196 am_make=${MAKE-make}
3197 cat > confinc << 'END'
3198 am__doit:
3199         @echo this is the am__doit target
3200 .PHONY: am__doit
3201 END
3202 # If we don't find an include directive, just comment out the code.
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3204 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3205 am__include="#"
3206 am__quote=
3207 _am_result=none
3208 # First try GNU make style include.
3209 echo "include confinc" > confmf
3210 # Ignore all kinds of additional output from `make'.
3211 case `$am_make -s -f confmf 2> /dev/null` in #(
3212 *the\ am__doit\ target*)
3213   am__include=include
3214   am__quote=
3215   _am_result=GNU
3216   ;;
3217 esac
3218 # Now try BSD make style include.
3219 if test "$am__include" = "#"; then
3220    echo '.include "confinc"' > confmf
3221    case `$am_make -s -f confmf 2> /dev/null` in #(
3222    *the\ am__doit\ target*)
3223      am__include=.include
3224      am__quote="\""
3225      _am_result=BSD
3226      ;;
3227    esac
3228 fi
3229
3230
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3232 $as_echo "$_am_result" >&6; }
3233 rm -f confinc confmf
3234
3235 # Check whether --enable-dependency-tracking was given.
3236 if test "${enable_dependency_tracking+set}" = set; then :
3237   enableval=$enable_dependency_tracking;
3238 fi
3239
3240 if test "x$enable_dependency_tracking" != xno; then
3241   am_depcomp="$ac_aux_dir/depcomp"
3242   AMDEPBACKSLASH='\'
3243 fi
3244  if test "x$enable_dependency_tracking" != xno; then
3245   AMDEP_TRUE=
3246   AMDEP_FALSE='#'
3247 else
3248   AMDEP_TRUE='#'
3249   AMDEP_FALSE=
3250 fi
3251
3252
3253 ac_ext=c
3254 ac_cpp='$CPP $CPPFLAGS'
3255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258 if test -n "$ac_tool_prefix"; then
3259   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3260 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if test "${ac_cv_prog_CC+set}" = set; then :
3264   $as_echo_n "(cached) " >&6
3265 else
3266   if test -n "$CC"; then
3267   ac_cv_prog_CC="$CC" # Let the user override the test.
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272   IFS=$as_save_IFS
3273   test -z "$as_dir" && as_dir=.
3274     for ac_exec_ext in '' $ac_executable_extensions; do
3275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278     break 2
3279   fi
3280 done
3281   done
3282 IFS=$as_save_IFS
3283
3284 fi
3285 fi
3286 CC=$ac_cv_prog_CC
3287 if test -n "$CC"; then
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289 $as_echo "$CC" >&6; }
3290 else
3291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 fi
3294
3295
3296 fi
3297 if test -z "$ac_cv_prog_CC"; then
3298   ac_ct_CC=$CC
3299   # Extract the first word of "gcc", so it can be a program name with args.
3300 set dummy gcc; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3304   $as_echo_n "(cached) " >&6
3305 else
3306   if test -n "$ac_ct_CC"; then
3307   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312   IFS=$as_save_IFS
3313   test -z "$as_dir" && as_dir=.
3314     for ac_exec_ext in '' $ac_executable_extensions; do
3315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316     ac_cv_prog_ac_ct_CC="gcc"
3317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318     break 2
3319   fi
3320 done
3321   done
3322 IFS=$as_save_IFS
3323
3324 fi
3325 fi
3326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3327 if test -n "$ac_ct_CC"; then
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3329 $as_echo "$ac_ct_CC" >&6; }
3330 else
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335   if test "x$ac_ct_CC" = x; then
3336     CC=""
3337   else
3338     case $cross_compiling:$ac_tool_warned in
3339 yes:)
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3342 ac_tool_warned=yes ;;
3343 esac
3344     CC=$ac_ct_CC
3345   fi
3346 else
3347   CC="$ac_cv_prog_CC"
3348 fi
3349
3350 if test -z "$CC"; then
3351           if test -n "$ac_tool_prefix"; then
3352     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3353 set dummy ${ac_tool_prefix}cc; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if test "${ac_cv_prog_CC+set}" = set; then :
3357   $as_echo_n "(cached) " >&6
3358 else
3359   if test -n "$CC"; then
3360   ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365   IFS=$as_save_IFS
3366   test -z "$as_dir" && as_dir=.
3367     for ac_exec_ext in '' $ac_executable_extensions; do
3368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3369     ac_cv_prog_CC="${ac_tool_prefix}cc"
3370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371     break 2
3372   fi
3373 done
3374   done
3375 IFS=$as_save_IFS
3376
3377 fi
3378 fi
3379 CC=$ac_cv_prog_CC
3380 if test -n "$CC"; then
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382 $as_echo "$CC" >&6; }
3383 else
3384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 fi
3387
3388
3389   fi
3390 fi
3391 if test -z "$CC"; then
3392   # Extract the first word of "cc", so it can be a program name with args.
3393 set dummy cc; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if test "${ac_cv_prog_CC+set}" = set; then :
3397   $as_echo_n "(cached) " >&6
3398 else
3399   if test -n "$CC"; then
3400   ac_cv_prog_CC="$CC" # Let the user override the test.
3401 else
3402   ac_prog_rejected=no
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406   IFS=$as_save_IFS
3407   test -z "$as_dir" && as_dir=.
3408     for ac_exec_ext in '' $ac_executable_extensions; do
3409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3411        ac_prog_rejected=yes
3412        continue
3413      fi
3414     ac_cv_prog_CC="cc"
3415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416     break 2
3417   fi
3418 done
3419   done
3420 IFS=$as_save_IFS
3421
3422 if test $ac_prog_rejected = yes; then
3423   # We found a bogon in the path, so make sure we never use it.
3424   set dummy $ac_cv_prog_CC
3425   shift
3426   if test $# != 0; then
3427     # We chose a different compiler from the bogus one.
3428     # However, it has the same basename, so the bogon will be chosen
3429     # first if we set CC to just the basename; use the full file name.
3430     shift
3431     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3432   fi
3433 fi
3434 fi
3435 fi
3436 CC=$ac_cv_prog_CC
3437 if test -n "$CC"; then
3438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3439 $as_echo "$CC" >&6; }
3440 else
3441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3443 fi
3444
3445
3446 fi
3447 if test -z "$CC"; then
3448   if test -n "$ac_tool_prefix"; then
3449   for ac_prog in cl.exe
3450   do
3451     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if test "${ac_cv_prog_CC+set}" = set; then :
3456   $as_echo_n "(cached) " >&6
3457 else
3458   if test -n "$CC"; then
3459   ac_cv_prog_CC="$CC" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464   IFS=$as_save_IFS
3465   test -z "$as_dir" && as_dir=.
3466     for ac_exec_ext in '' $ac_executable_extensions; do
3467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470     break 2
3471   fi
3472 done
3473   done
3474 IFS=$as_save_IFS
3475
3476 fi
3477 fi
3478 CC=$ac_cv_prog_CC
3479 if test -n "$CC"; then
3480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481 $as_echo "$CC" >&6; }
3482 else
3483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3485 fi
3486
3487
3488     test -n "$CC" && break
3489   done
3490 fi
3491 if test -z "$CC"; then
3492   ac_ct_CC=$CC
3493   for ac_prog in cl.exe
3494 do
3495   # Extract the first word of "$ac_prog", so it can be a program name with args.
3496 set dummy $ac_prog; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3500   $as_echo_n "(cached) " >&6
3501 else
3502   if test -n "$ac_ct_CC"; then
3503   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508   IFS=$as_save_IFS
3509   test -z "$as_dir" && as_dir=.
3510     for ac_exec_ext in '' $ac_executable_extensions; do
3511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512     ac_cv_prog_ac_ct_CC="$ac_prog"
3513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514     break 2
3515   fi
3516 done
3517   done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3523 if test -n "$ac_ct_CC"; then
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3525 $as_echo "$ac_ct_CC" >&6; }
3526 else
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532   test -n "$ac_ct_CC" && break
3533 done
3534
3535   if test "x$ac_ct_CC" = x; then
3536     CC=""
3537   else
3538     case $cross_compiling:$ac_tool_warned in
3539 yes:)
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned=yes ;;
3543 esac
3544     CC=$ac_ct_CC
3545   fi
3546 fi
3547
3548 fi
3549
3550
3551 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 as_fn_error $? "no acceptable C compiler found in \$PATH
3554 See \`config.log' for more details" "$LINENO" 5 ; }
3555
3556 # Provide some information about the compiler.
3557 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3558 set X $ac_compile
3559 ac_compiler=$2
3560 for ac_option in --version -v -V -qversion; do
3561   { { ac_try="$ac_compiler $ac_option >&5"
3562 case "(($ac_try" in
3563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564   *) ac_try_echo=$ac_try;;
3565 esac
3566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567 $as_echo "$ac_try_echo"; } >&5
3568   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3569   ac_status=$?
3570   if test -s conftest.err; then
3571     sed '10a\
3572 ... rest of stderr output deleted ...
3573          10q' conftest.err >conftest.er1
3574     cat conftest.er1 >&5
3575   fi
3576   rm -f conftest.er1 conftest.err
3577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578   test $ac_status = 0; }
3579 done
3580
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h.  */
3583
3584 int
3585 main ()
3586 {
3587
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 ac_clean_files_save=$ac_clean_files
3593 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3594 # Try to create an executable without -o first, disregard a.out.
3595 # It will help us diagnose broken compilers, and finding out an intuition
3596 # of exeext.
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3598 $as_echo_n "checking whether the C compiler works... " >&6; }
3599 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3600
3601 # The possible output files:
3602 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3603
3604 ac_rmfiles=
3605 for ac_file in $ac_files
3606 do
3607   case $ac_file in
3608     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3609     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3610   esac
3611 done
3612 rm -f $ac_rmfiles
3613
3614 if { { ac_try="$ac_link_default"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620 $as_echo "$ac_try_echo"; } >&5
3621   (eval "$ac_link_default") 2>&5
3622   ac_status=$?
3623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624   test $ac_status = 0; }; then :
3625   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3626 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3627 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3628 # so that the user can short-circuit this test for compilers unknown to
3629 # Autoconf.
3630 for ac_file in $ac_files ''
3631 do
3632   test -f "$ac_file" || continue
3633   case $ac_file in
3634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3635         ;;
3636     [ab].out )
3637         # We found the default executable, but exeext='' is most
3638         # certainly right.
3639         break;;
3640     *.* )
3641         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3642         then :; else
3643            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3644         fi
3645         # We set ac_cv_exeext here because the later test for it is not
3646         # safe: cross compilers may not add the suffix if given an `-o'
3647         # argument, so we may need to know it at that point already.
3648         # Even if this section looks crufty: it has the advantage of
3649         # actually working.
3650         break;;
3651     * )
3652         break;;
3653   esac
3654 done
3655 test "$ac_cv_exeext" = no && ac_cv_exeext=
3656
3657 else
3658   ac_file=''
3659 fi
3660 if test -z "$ac_file"; then :
3661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3663 $as_echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3665
3666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error 77 "C compiler cannot create executables
3669 See \`config.log' for more details" "$LINENO" 5 ; }
3670 else
3671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3672 $as_echo "yes" >&6; }
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3675 $as_echo_n "checking for C compiler default output file name... " >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3677 $as_echo "$ac_file" >&6; }
3678 ac_exeext=$ac_cv_exeext
3679
3680 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3681 ac_clean_files=$ac_clean_files_save
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3683 $as_echo_n "checking for suffix of executables... " >&6; }
3684 if { { ac_try="$ac_link"
3685 case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 $as_echo "$ac_try_echo"; } >&5
3691   (eval "$ac_link") 2>&5
3692   ac_status=$?
3693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694   test $ac_status = 0; }; then :
3695   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3696 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3697 # work properly (i.e., refer to `conftest.exe'), while it won't with
3698 # `rm'.
3699 for ac_file in conftest.exe conftest conftest.*; do
3700   test -f "$ac_file" || continue
3701   case $ac_file in
3702     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3703     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3704           break;;
3705     * ) break;;
3706   esac
3707 done
3708 else
3709   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3711 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3712 See \`config.log' for more details" "$LINENO" 5 ; }
3713 fi
3714 rm -f conftest conftest$ac_cv_exeext
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3716 $as_echo "$ac_cv_exeext" >&6; }
3717
3718 rm -f conftest.$ac_ext
3719 EXEEXT=$ac_cv_exeext
3720 ac_exeext=$EXEEXT
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h.  */
3723 #include <stdio.h>
3724 int
3725 main ()
3726 {
3727 FILE *f = fopen ("conftest.out", "w");
3728  return ferror (f) || fclose (f) != 0;
3729
3730   ;
3731   return 0;
3732 }
3733 _ACEOF
3734 ac_clean_files="$ac_clean_files conftest.out"
3735 # Check that the compiler produces executables we can run.  If not, either
3736 # the compiler is broken, or we cross compile.
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3738 $as_echo_n "checking whether we are cross compiling... " >&6; }
3739 if test "$cross_compiling" != yes; then
3740   { { ac_try="$ac_link"
3741 case "(($ac_try" in
3742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743   *) ac_try_echo=$ac_try;;
3744 esac
3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746 $as_echo "$ac_try_echo"; } >&5
3747   (eval "$ac_link") 2>&5
3748   ac_status=$?
3749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750   test $ac_status = 0; }
3751   if { ac_try='./conftest$ac_cv_exeext'
3752   { { case "(($ac_try" in
3753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754   *) ac_try_echo=$ac_try;;
3755 esac
3756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757 $as_echo "$ac_try_echo"; } >&5
3758   (eval "$ac_try") 2>&5
3759   ac_status=$?
3760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761   test $ac_status = 0; }; }; then
3762     cross_compiling=no
3763   else
3764     if test "$cross_compiling" = maybe; then
3765         cross_compiling=yes
3766     else
3767         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3769 as_fn_error $? "cannot run C compiled programs.
3770 If you meant to cross compile, use \`--host'.
3771 See \`config.log' for more details" "$LINENO" 5 ; }
3772     fi
3773   fi
3774 fi
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3776 $as_echo "$cross_compiling" >&6; }
3777
3778 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3779 ac_clean_files=$ac_clean_files_save
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3781 $as_echo_n "checking for suffix of object files... " >&6; }
3782 if test "${ac_cv_objext+set}" = set; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h.  */
3787
3788 int
3789 main ()
3790 {
3791
3792   ;
3793   return 0;
3794 }
3795 _ACEOF
3796 rm -f conftest.o conftest.obj
3797 if { { ac_try="$ac_compile"
3798 case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804   (eval "$ac_compile") 2>&5
3805   ac_status=$?
3806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807   test $ac_status = 0; }; then :
3808   for ac_file in conftest.o conftest.obj conftest.*; do
3809   test -f "$ac_file" || continue;
3810   case $ac_file in
3811     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3812     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3813        break;;
3814   esac
3815 done
3816 else
3817   $as_echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3819
3820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822 as_fn_error $? "cannot compute suffix of object files: cannot compile
3823 See \`config.log' for more details" "$LINENO" 5 ; }
3824 fi
3825 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3828 $as_echo "$ac_cv_objext" >&6; }
3829 OBJEXT=$ac_cv_objext
3830 ac_objext=$OBJEXT
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3832 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3833 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3834   $as_echo_n "(cached) " >&6
3835 else
3836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h.  */
3838
3839 int
3840 main ()
3841 {
3842 #ifndef __GNUC__
3843        choke me
3844 #endif
3845
3846   ;
3847   return 0;
3848 }
3849 _ACEOF
3850 if ac_fn_c_try_compile "$LINENO"; then :
3851   ac_compiler_gnu=yes
3852 else
3853   ac_compiler_gnu=no
3854 fi
3855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3857
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3860 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3861 if test $ac_compiler_gnu = yes; then
3862   GCC=yes
3863 else
3864   GCC=
3865 fi
3866 ac_test_CFLAGS=${CFLAGS+set}
3867 ac_save_CFLAGS=$CFLAGS
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3869 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3870 if test "${ac_cv_prog_cc_g+set}" = set; then :
3871   $as_echo_n "(cached) " >&6
3872 else
3873   ac_save_c_werror_flag=$ac_c_werror_flag
3874    ac_c_werror_flag=yes
3875    ac_cv_prog_cc_g=no
3876    CFLAGS="-g"
3877    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h.  */
3879
3880 int
3881 main ()
3882 {
3883
3884   ;
3885   return 0;
3886 }
3887 _ACEOF
3888 if ac_fn_c_try_compile "$LINENO"; then :
3889   ac_cv_prog_cc_g=yes
3890 else
3891   CFLAGS=""
3892       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h.  */
3894
3895 int
3896 main ()
3897 {
3898
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 if ac_fn_c_try_compile "$LINENO"; then :
3904
3905 else
3906   ac_c_werror_flag=$ac_save_c_werror_flag
3907          CFLAGS="-g"
3908          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h.  */
3910
3911 int
3912 main ()
3913 {
3914
3915   ;
3916   return 0;
3917 }
3918 _ACEOF
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920   ac_cv_prog_cc_g=yes
3921 fi
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 fi
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 fi
3926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927    ac_c_werror_flag=$ac_save_c_werror_flag
3928 fi
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3930 $as_echo "$ac_cv_prog_cc_g" >&6; }
3931 if test "$ac_test_CFLAGS" = set; then
3932   CFLAGS=$ac_save_CFLAGS
3933 elif test $ac_cv_prog_cc_g = yes; then
3934   if test "$GCC" = yes; then
3935     CFLAGS="-g -O2"
3936   else
3937     CFLAGS="-g"
3938   fi
3939 else
3940   if test "$GCC" = yes; then
3941     CFLAGS="-O2"
3942   else
3943     CFLAGS=
3944   fi
3945 fi
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3947 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3948 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3949   $as_echo_n "(cached) " >&6
3950 else
3951   ac_cv_prog_cc_c89=no
3952 ac_save_CC=$CC
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h.  */
3955 #include <stdarg.h>
3956 #include <stdio.h>
3957 #include <sys/types.h>
3958 #include <sys/stat.h>
3959 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3960 struct buf { int x; };
3961 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3962 static char *e (p, i)
3963      char **p;
3964      int i;
3965 {
3966   return p[i];
3967 }
3968 static char *f (char * (*g) (char **, int), char **p, ...)
3969 {
3970   char *s;
3971   va_list v;
3972   va_start (v,p);
3973   s = g (p, va_arg (v,int));
3974   va_end (v);
3975   return s;
3976 }
3977
3978 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3979    function prototypes and stuff, but not '\xHH' hex character constants.
3980    These don't provoke an error unfortunately, instead are silently treated
3981    as 'x'.  The following induces an error, until -std is added to get
3982    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3983    array size at least.  It's necessary to write '\x00'==0 to get something
3984    that's true only with -std.  */
3985 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3986
3987 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3988    inside strings and character constants.  */
3989 #define FOO(x) 'x'
3990 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3991
3992 int test (int i, double x);
3993 struct s1 {int (*f) (int a);};
3994 struct s2 {int (*f) (double a);};
3995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3996 int argc;
3997 char **argv;
3998 int
3999 main ()
4000 {
4001 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4007         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4008 do
4009   CC="$ac_save_CC $ac_arg"
4010   if ac_fn_c_try_compile "$LINENO"; then :
4011   ac_cv_prog_cc_c89=$ac_arg
4012 fi
4013 rm -f core conftest.err conftest.$ac_objext
4014   test "x$ac_cv_prog_cc_c89" != "xno" && break
4015 done
4016 rm -f conftest.$ac_ext
4017 CC=$ac_save_CC
4018
4019 fi
4020 # AC_CACHE_VAL
4021 case "x$ac_cv_prog_cc_c89" in
4022   x)
4023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4024 $as_echo "none needed" >&6; } ;;
4025   xno)
4026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4027 $as_echo "unsupported" >&6; } ;;
4028   *)
4029     CC="$CC $ac_cv_prog_cc_c89"
4030     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4031 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4032 esac
4033 if test "x$ac_cv_prog_cc_c89" != xno; then :
4034
4035 fi
4036
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042
4043 depcc="$CC"   am_compiler_list=
4044
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4046 $as_echo_n "checking dependency style of $depcc... " >&6; }
4047 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4048   $as_echo_n "(cached) " >&6
4049 else
4050   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4051   # We make a subdir and do the tests there.  Otherwise we can end up
4052   # making bogus files that we don't know about and never remove.  For
4053   # instance it was reported that on HP-UX the gcc test will end up
4054   # making a dummy file named `D' -- because `-MD' means `put the output
4055   # in D'.
4056   mkdir conftest.dir
4057   # Copy depcomp to subdir because otherwise we won't find it if we're
4058   # using a relative directory.
4059   cp "$am_depcomp" conftest.dir
4060   cd conftest.dir
4061   # We will build objects and dependencies in a subdirectory because
4062   # it helps to detect inapplicable dependency modes.  For instance
4063   # both Tru64's cc and ICC support -MD to output dependencies as a
4064   # side effect of compilation, but ICC will put the dependencies in
4065   # the current directory while Tru64 will put them in the object
4066   # directory.
4067   mkdir sub
4068
4069   am_cv_CC_dependencies_compiler_type=none
4070   if test "$am_compiler_list" = ""; then
4071      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4072   fi
4073   am__universal=false
4074   case " $depcc " in #(
4075      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4076      esac
4077
4078   for depmode in $am_compiler_list; do
4079     # Setup a source with many dependencies, because some compilers
4080     # like to wrap large dependency lists on column 80 (with \), and
4081     # we should not choose a depcomp mode which is confused by this.
4082     #
4083     # We need to recreate these files for each test, as the compiler may
4084     # overwrite some of them when testing with obscure command lines.
4085     # This happens at least with the AIX C compiler.
4086     : > sub/conftest.c
4087     for i in 1 2 3 4 5 6; do
4088       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4089       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4090       # Solaris 8's {/usr,}/bin/sh.
4091       touch sub/conftst$i.h
4092     done
4093     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4094
4095     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4096     # mode.  It turns out that the SunPro C++ compiler does not properly
4097     # handle `-M -o', and we need to detect this.  Also, some Intel
4098     # versions had trouble with output in subdirs
4099     am__obj=sub/conftest.${OBJEXT-o}
4100     am__minus_obj="-o $am__obj"
4101     case $depmode in
4102     gcc)
4103       # This depmode causes a compiler race in universal mode.
4104       test "$am__universal" = false || continue
4105       ;;
4106     nosideeffect)
4107       # after this tag, mechanisms are not by side-effect, so they'll
4108       # only be used when explicitly requested
4109       if test "x$enable_dependency_tracking" = xyes; then
4110         continue
4111       else
4112         break
4113       fi
4114       ;;
4115     msvisualcpp | msvcmsys)
4116       # This compiler won't grok `-c -o', but also, the minuso test has
4117       # not run yet.  These depmodes are late enough in the game, and
4118       # so weak that their functioning should not be impacted.
4119       am__obj=conftest.${OBJEXT-o}
4120       am__minus_obj=
4121       ;;
4122     none) break ;;
4123     esac
4124     if depmode=$depmode \
4125        source=sub/conftest.c object=$am__obj \
4126        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4127        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4128          >/dev/null 2>conftest.err &&
4129        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4130        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4131        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4132        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4133       # icc doesn't choke on unknown options, it will just issue warnings
4134       # or remarks (even with -Werror).  So we grep stderr for any message
4135       # that says an option was ignored or not supported.
4136       # When given -MP, icc 7.0 and 7.1 complain thusly:
4137       #   icc: Command line warning: ignoring option '-M'; no argument required
4138       # The diagnosis changed in icc 8.0:
4139       #   icc: Command line remark: option '-MP' not supported
4140       if (grep 'ignoring option' conftest.err ||
4141           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4142         am_cv_CC_dependencies_compiler_type=$depmode
4143         break
4144       fi
4145     fi
4146   done
4147
4148   cd ..
4149   rm -rf conftest.dir
4150 else
4151   am_cv_CC_dependencies_compiler_type=none
4152 fi
4153
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4156 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4157 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4158
4159  if
4160   test "x$enable_dependency_tracking" != xno \
4161   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4162   am__fastdepCC_TRUE=
4163   am__fastdepCC_FALSE='#'
4164 else
4165   am__fastdepCC_TRUE='#'
4166   am__fastdepCC_FALSE=
4167 fi
4168
4169
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4171 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4172 if test "${ac_cv_path_SED+set}" = set; then :
4173   $as_echo_n "(cached) " >&6
4174 else
4175             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4176      for ac_i in 1 2 3 4 5 6 7; do
4177        ac_script="$ac_script$as_nl$ac_script"
4178      done
4179      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4180      { ac_script=; unset ac_script;}
4181      if test -z "$SED"; then
4182   ac_path_SED_found=false
4183   # Loop through the user's path and test for each of PROGNAME-LIST
4184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187   IFS=$as_save_IFS
4188   test -z "$as_dir" && as_dir=.
4189     for ac_prog in sed gsed; do
4190     for ac_exec_ext in '' $ac_executable_extensions; do
4191       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4192       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4193 # Check for GNU ac_path_SED and select it if it is found.
4194   # Check for GNU $ac_path_SED
4195 case `"$ac_path_SED" --version 2>&1` in
4196 *GNU*)
4197   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4198 *)
4199   ac_count=0
4200   $as_echo_n 0123456789 >"conftest.in"
4201   while :
4202   do
4203     cat "conftest.in" "conftest.in" >"conftest.tmp"
4204     mv "conftest.tmp" "conftest.in"
4205     cp "conftest.in" "conftest.nl"
4206     $as_echo '' >> "conftest.nl"
4207     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4208     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4209     as_fn_arith $ac_count + 1 && ac_count=$as_val
4210     if test $ac_count -gt ${ac_path_SED_max-0}; then
4211       # Best one so far, save it but keep looking for a better one
4212       ac_cv_path_SED="$ac_path_SED"
4213       ac_path_SED_max=$ac_count
4214     fi
4215     # 10*(2^10) chars as input seems more than enough
4216     test $ac_count -gt 10 && break
4217   done
4218   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4219 esac
4220
4221       $ac_path_SED_found && break 3
4222     done
4223   done
4224   done
4225 IFS=$as_save_IFS
4226   if test -z "$ac_cv_path_SED"; then
4227     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4228   fi
4229 else
4230   ac_cv_path_SED=$SED
4231 fi
4232
4233 fi
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4235 $as_echo "$ac_cv_path_SED" >&6; }
4236  SED="$ac_cv_path_SED"
4237   rm -f conftest.sed
4238
4239 test -z "$SED" && SED=sed
4240 Xsed="$SED -e 1s/^X//"
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4253 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4254 if test "${ac_cv_path_GREP+set}" = set; then :
4255   $as_echo_n "(cached) " >&6
4256 else
4257   if test -z "$GREP"; then
4258   ac_path_GREP_found=false
4259   # Loop through the user's path and test for each of PROGNAME-LIST
4260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4262 do
4263   IFS=$as_save_IFS
4264   test -z "$as_dir" && as_dir=.
4265     for ac_prog in grep ggrep; do
4266     for ac_exec_ext in '' $ac_executable_extensions; do
4267       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4268       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4269 # Check for GNU ac_path_GREP and select it if it is found.
4270   # Check for GNU $ac_path_GREP
4271 case `"$ac_path_GREP" --version 2>&1` in
4272 *GNU*)
4273   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4274 *)
4275   ac_count=0
4276   $as_echo_n 0123456789 >"conftest.in"
4277   while :
4278   do
4279     cat "conftest.in" "conftest.in" >"conftest.tmp"
4280     mv "conftest.tmp" "conftest.in"
4281     cp "conftest.in" "conftest.nl"
4282     $as_echo 'GREP' >> "conftest.nl"
4283     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4284     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4285     as_fn_arith $ac_count + 1 && ac_count=$as_val
4286     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4287       # Best one so far, save it but keep looking for a better one
4288       ac_cv_path_GREP="$ac_path_GREP"
4289       ac_path_GREP_max=$ac_count
4290     fi
4291     # 10*(2^10) chars as input seems more than enough
4292     test $ac_count -gt 10 && break
4293   done
4294   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4295 esac
4296
4297       $ac_path_GREP_found && break 3
4298     done
4299   done
4300   done
4301 IFS=$as_save_IFS
4302   if test -z "$ac_cv_path_GREP"; then
4303     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4304   fi
4305 else
4306   ac_cv_path_GREP=$GREP
4307 fi
4308
4309 fi
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4311 $as_echo "$ac_cv_path_GREP" >&6; }
4312  GREP="$ac_cv_path_GREP"
4313
4314
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4316 $as_echo_n "checking for egrep... " >&6; }
4317 if test "${ac_cv_path_EGREP+set}" = set; then :
4318   $as_echo_n "(cached) " >&6
4319 else
4320   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4321    then ac_cv_path_EGREP="$GREP -E"
4322    else
4323      if test -z "$EGREP"; then
4324   ac_path_EGREP_found=false
4325   # Loop through the user's path and test for each of PROGNAME-LIST
4326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4328 do
4329   IFS=$as_save_IFS
4330   test -z "$as_dir" && as_dir=.
4331     for ac_prog in egrep; do
4332     for ac_exec_ext in '' $ac_executable_extensions; do
4333       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4334       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4335 # Check for GNU ac_path_EGREP and select it if it is found.
4336   # Check for GNU $ac_path_EGREP
4337 case `"$ac_path_EGREP" --version 2>&1` in
4338 *GNU*)
4339   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4340 *)
4341   ac_count=0
4342   $as_echo_n 0123456789 >"conftest.in"
4343   while :
4344   do
4345     cat "conftest.in" "conftest.in" >"conftest.tmp"
4346     mv "conftest.tmp" "conftest.in"
4347     cp "conftest.in" "conftest.nl"
4348     $as_echo 'EGREP' >> "conftest.nl"
4349     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4350     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4351     as_fn_arith $ac_count + 1 && ac_count=$as_val
4352     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4353       # Best one so far, save it but keep looking for a better one
4354       ac_cv_path_EGREP="$ac_path_EGREP"
4355       ac_path_EGREP_max=$ac_count
4356     fi
4357     # 10*(2^10) chars as input seems more than enough
4358     test $ac_count -gt 10 && break
4359   done
4360   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4361 esac
4362
4363       $ac_path_EGREP_found && break 3
4364     done
4365   done
4366   done
4367 IFS=$as_save_IFS
4368   if test -z "$ac_cv_path_EGREP"; then
4369     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4370   fi
4371 else
4372   ac_cv_path_EGREP=$EGREP
4373 fi
4374
4375    fi
4376 fi
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4378 $as_echo "$ac_cv_path_EGREP" >&6; }
4379  EGREP="$ac_cv_path_EGREP"
4380
4381
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4383 $as_echo_n "checking for fgrep... " >&6; }
4384 if test "${ac_cv_path_FGREP+set}" = set; then :
4385   $as_echo_n "(cached) " >&6
4386 else
4387   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4388    then ac_cv_path_FGREP="$GREP -F"
4389    else
4390      if test -z "$FGREP"; then
4391   ac_path_FGREP_found=false
4392   # Loop through the user's path and test for each of PROGNAME-LIST
4393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4395 do
4396   IFS=$as_save_IFS
4397   test -z "$as_dir" && as_dir=.
4398     for ac_prog in fgrep; do
4399     for ac_exec_ext in '' $ac_executable_extensions; do
4400       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4401       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4402 # Check for GNU ac_path_FGREP and select it if it is found.
4403   # Check for GNU $ac_path_FGREP
4404 case `"$ac_path_FGREP" --version 2>&1` in
4405 *GNU*)
4406   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4407 *)
4408   ac_count=0
4409   $as_echo_n 0123456789 >"conftest.in"
4410   while :
4411   do
4412     cat "conftest.in" "conftest.in" >"conftest.tmp"
4413     mv "conftest.tmp" "conftest.in"
4414     cp "conftest.in" "conftest.nl"
4415     $as_echo 'FGREP' >> "conftest.nl"
4416     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4417     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4418     as_fn_arith $ac_count + 1 && ac_count=$as_val
4419     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4420       # Best one so far, save it but keep looking for a better one
4421       ac_cv_path_FGREP="$ac_path_FGREP"
4422       ac_path_FGREP_max=$ac_count
4423     fi
4424     # 10*(2^10) chars as input seems more than enough
4425     test $ac_count -gt 10 && break
4426   done
4427   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4428 esac
4429
4430       $ac_path_FGREP_found && break 3
4431     done
4432   done
4433   done
4434 IFS=$as_save_IFS
4435   if test -z "$ac_cv_path_FGREP"; then
4436     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4437   fi
4438 else
4439   ac_cv_path_FGREP=$FGREP
4440 fi
4441
4442    fi
4443 fi
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4445 $as_echo "$ac_cv_path_FGREP" >&6; }
4446  FGREP="$ac_cv_path_FGREP"
4447
4448
4449 test -z "$GREP" && GREP=grep
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469 # Check whether --with-gnu-ld was given.
4470 if test "${with_gnu_ld+set}" = set; then :
4471   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4472 else
4473   with_gnu_ld=no
4474 fi
4475
4476 ac_prog=ld
4477 if test "$GCC" = yes; then
4478   # Check if gcc -print-prog-name=ld gives a path.
4479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4480 $as_echo_n "checking for ld used by $CC... " >&6; }
4481   case $host in
4482   *-*-mingw*)
4483     # gcc leaves a trailing carriage return which upsets mingw
4484     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4485   *)
4486     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4487   esac
4488   case $ac_prog in
4489     # Accept absolute paths.
4490     [\\/]* | ?:[\\/]*)
4491       re_direlt='/[^/][^/]*/\.\./'
4492       # Canonicalize the pathname of ld
4493       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4494       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4495         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4496       done
4497       test -z "$LD" && LD="$ac_prog"
4498       ;;
4499   "")
4500     # If it fails, then pretend we aren't using GCC.
4501     ac_prog=ld
4502     ;;
4503   *)
4504     # If it is relative, then search for the first ld in PATH.
4505     with_gnu_ld=unknown
4506     ;;
4507   esac
4508 elif test "$with_gnu_ld" = yes; then
4509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4510 $as_echo_n "checking for GNU ld... " >&6; }
4511 else
4512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4513 $as_echo_n "checking for non-GNU ld... " >&6; }
4514 fi
4515 if test "${lt_cv_path_LD+set}" = set; then :
4516   $as_echo_n "(cached) " >&6
4517 else
4518   if test -z "$LD"; then
4519   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4520   for ac_dir in $PATH; do
4521     IFS="$lt_save_ifs"
4522     test -z "$ac_dir" && ac_dir=.
4523     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4524       lt_cv_path_LD="$ac_dir/$ac_prog"
4525       # Check to see if the program is GNU ld.  I'd rather use --version,
4526       # but apparently some variants of GNU ld only accept -v.
4527       # Break only if it was the GNU/non-GNU ld that we prefer.
4528       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4529       *GNU* | *'with BFD'*)
4530         test "$with_gnu_ld" != no && break
4531         ;;
4532       *)
4533         test "$with_gnu_ld" != yes && break
4534         ;;
4535       esac
4536     fi
4537   done
4538   IFS="$lt_save_ifs"
4539 else
4540   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4541 fi
4542 fi
4543
4544 LD="$lt_cv_path_LD"
4545 if test -n "$LD"; then
4546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4547 $as_echo "$LD" >&6; }
4548 else
4549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4551 fi
4552 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4554 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4555 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4556   $as_echo_n "(cached) " >&6
4557 else
4558   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4559 case `$LD -v 2>&1 </dev/null` in
4560 *GNU* | *'with BFD'*)
4561   lt_cv_prog_gnu_ld=yes
4562   ;;
4563 *)
4564   lt_cv_prog_gnu_ld=no
4565   ;;
4566 esac
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4569 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4570 with_gnu_ld=$lt_cv_prog_gnu_ld
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4581 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4582 if test "${lt_cv_path_NM+set}" = set; then :
4583   $as_echo_n "(cached) " >&6
4584 else
4585   if test -n "$NM"; then
4586   # Let the user override the test.
4587   lt_cv_path_NM="$NM"
4588 else
4589   lt_nm_to_check="${ac_tool_prefix}nm"
4590   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4591     lt_nm_to_check="$lt_nm_to_check nm"
4592   fi
4593   for lt_tmp_nm in $lt_nm_to_check; do
4594     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4595     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4596       IFS="$lt_save_ifs"
4597       test -z "$ac_dir" && ac_dir=.
4598       tmp_nm="$ac_dir/$lt_tmp_nm"
4599       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4600         # Check to see if the nm accepts a BSD-compat flag.
4601         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4602         #   nm: unknown option "B" ignored
4603         # Tru64's nm complains that /dev/null is an invalid object file
4604         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4605         */dev/null* | *'Invalid file or object type'*)
4606           lt_cv_path_NM="$tmp_nm -B"
4607           break
4608           ;;
4609         *)
4610           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4611           */dev/null*)
4612             lt_cv_path_NM="$tmp_nm -p"
4613             break
4614             ;;
4615           *)
4616             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4617             continue # so that we can try to find one that supports BSD flags
4618             ;;
4619           esac
4620           ;;
4621         esac
4622       fi
4623     done
4624     IFS="$lt_save_ifs"
4625   done
4626   : ${lt_cv_path_NM=no}
4627 fi
4628 fi
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4630 $as_echo "$lt_cv_path_NM" >&6; }
4631 if test "$lt_cv_path_NM" != "no"; then
4632   NM="$lt_cv_path_NM"
4633 else
4634   # Didn't find any BSD compatible name lister, look for dumpbin.
4635   if test -n "$ac_tool_prefix"; then
4636   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4637   do
4638     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4643   $as_echo_n "(cached) " >&6
4644 else
4645   if test -n "$DUMPBIN"; then
4646   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4650 do
4651   IFS=$as_save_IFS
4652   test -z "$as_dir" && as_dir=.
4653     for ac_exec_ext in '' $ac_executable_extensions; do
4654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4655     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657     break 2
4658   fi
4659 done
4660   done
4661 IFS=$as_save_IFS
4662
4663 fi
4664 fi
4665 DUMPBIN=$ac_cv_prog_DUMPBIN
4666 if test -n "$DUMPBIN"; then
4667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4668 $as_echo "$DUMPBIN" >&6; }
4669 else
4670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4672 fi
4673
4674
4675     test -n "$DUMPBIN" && break
4676   done
4677 fi
4678 if test -z "$DUMPBIN"; then
4679   ac_ct_DUMPBIN=$DUMPBIN
4680   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4681 do
4682   # Extract the first word of "$ac_prog", so it can be a program name with args.
4683 set dummy $ac_prog; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4687   $as_echo_n "(cached) " >&6
4688 else
4689   if test -n "$ac_ct_DUMPBIN"; then
4690   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697     for ac_exec_ext in '' $ac_executable_extensions; do
4698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701     break 2
4702   fi
4703 done
4704   done
4705 IFS=$as_save_IFS
4706
4707 fi
4708 fi
4709 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4710 if test -n "$ac_ct_DUMPBIN"; then
4711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4712 $as_echo "$ac_ct_DUMPBIN" >&6; }
4713 else
4714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4716 fi
4717
4718
4719   test -n "$ac_ct_DUMPBIN" && break
4720 done
4721
4722   if test "x$ac_ct_DUMPBIN" = x; then
4723     DUMPBIN=":"
4724   else
4725     case $cross_compiling:$ac_tool_warned in
4726 yes:)
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4729 ac_tool_warned=yes ;;
4730 esac
4731     DUMPBIN=$ac_ct_DUMPBIN
4732   fi
4733 fi
4734
4735
4736   if test "$DUMPBIN" != ":"; then
4737     NM="$DUMPBIN"
4738   fi
4739 fi
4740 test -z "$NM" && NM=nm
4741
4742
4743
4744
4745
4746
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4748 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4749 if test "${lt_cv_nm_interface+set}" = set; then :
4750   $as_echo_n "(cached) " >&6
4751 else
4752   lt_cv_nm_interface="BSD nm"
4753   echo "int some_variable = 0;" > conftest.$ac_ext
4754   (eval echo "\"\$as_me:4754: $ac_compile\"" >&5)
4755   (eval "$ac_compile" 2>conftest.err)
4756   cat conftest.err >&5
4757   (eval echo "\"\$as_me:4757: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4758   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4759   cat conftest.err >&5
4760   (eval echo "\"\$as_me:4760: output\"" >&5)
4761   cat conftest.out >&5
4762   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4763     lt_cv_nm_interface="MS dumpbin"
4764   fi
4765   rm -f conftest*
4766 fi
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4768 $as_echo "$lt_cv_nm_interface" >&6; }
4769
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4771 $as_echo_n "checking whether ln -s works... " >&6; }
4772 LN_S=$as_ln_s
4773 if test "$LN_S" = "ln -s"; then
4774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4775 $as_echo "yes" >&6; }
4776 else
4777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4778 $as_echo "no, using $LN_S" >&6; }
4779 fi
4780
4781 # find the maximum length of command line arguments
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4783 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4784 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4785   $as_echo_n "(cached) " >&6
4786 else
4787     i=0
4788   teststring="ABCD"
4789
4790   case $build_os in
4791   msdosdjgpp*)
4792     # On DJGPP, this test can blow up pretty badly due to problems in libc
4793     # (any single argument exceeding 2000 bytes causes a buffer overrun
4794     # during glob expansion).  Even if it were fixed, the result of this
4795     # check would be larger than it should be.
4796     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4797     ;;
4798
4799   gnu*)
4800     # Under GNU Hurd, this test is not required because there is
4801     # no limit to the length of command line arguments.
4802     # Libtool will interpret -1 as no limit whatsoever
4803     lt_cv_sys_max_cmd_len=-1;
4804     ;;
4805
4806   cygwin* | mingw* | cegcc*)
4807     # On Win9x/ME, this test blows up -- it succeeds, but takes
4808     # about 5 minutes as the teststring grows exponentially.
4809     # Worse, since 9x/ME are not pre-emptively multitasking,
4810     # you end up with a "frozen" computer, even though with patience
4811     # the test eventually succeeds (with a max line length of 256k).
4812     # Instead, let's just punt: use the minimum linelength reported by
4813     # all of the supported platforms: 8192 (on NT/2K/XP).
4814     lt_cv_sys_max_cmd_len=8192;
4815     ;;
4816
4817   amigaos*)
4818     # On AmigaOS with pdksh, this test takes hours, literally.
4819     # So we just punt and use a minimum line length of 8192.
4820     lt_cv_sys_max_cmd_len=8192;
4821     ;;
4822
4823   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4824     # This has been around since 386BSD, at least.  Likely further.
4825     if test -x /sbin/sysctl; then
4826       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4827     elif test -x /usr/sbin/sysctl; then
4828       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4829     else
4830       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4831     fi
4832     # And add a safety zone
4833     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4834     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4835     ;;
4836
4837   interix*)
4838     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4839     lt_cv_sys_max_cmd_len=196608
4840     ;;
4841
4842   osf*)
4843     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4844     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4845     # nice to cause kernel panics so lets avoid the loop below.
4846     # First set a reasonable default.
4847     lt_cv_sys_max_cmd_len=16384
4848     #
4849     if test -x /sbin/sysconfig; then
4850       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4851         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4852       esac
4853     fi
4854     ;;
4855   sco3.2v5*)
4856     lt_cv_sys_max_cmd_len=102400
4857     ;;
4858   sysv5* | sco5v6* | sysv4.2uw2*)
4859     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4860     if test -n "$kargmax"; then
4861       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4862     else
4863       lt_cv_sys_max_cmd_len=32768
4864     fi
4865     ;;
4866   *)
4867     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4868     if test -n "$lt_cv_sys_max_cmd_len"; then
4869       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4870       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4871     else
4872       # Make teststring a little bigger before we do anything with it.
4873       # a 1K string should be a reasonable start.
4874       for i in 1 2 3 4 5 6 7 8 ; do
4875         teststring=$teststring$teststring
4876       done
4877       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4878       # If test is not a shell built-in, we'll probably end up computing a
4879       # maximum length that is only half of the actual maximum length, but
4880       # we can't tell.
4881       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4882                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4883               test $i != 17 # 1/2 MB should be enough
4884       do
4885         i=`expr $i + 1`
4886         teststring=$teststring$teststring
4887       done
4888       # Only check the string length outside the loop.
4889       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4890       teststring=
4891       # Add a significant safety factor because C++ compilers can tack on
4892       # massive amounts of additional arguments before passing them to the
4893       # linker.  It appears as though 1/2 is a usable value.
4894       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4895     fi
4896     ;;
4897   esac
4898
4899 fi
4900
4901 if test -n $lt_cv_sys_max_cmd_len ; then
4902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4903 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4904 else
4905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4906 $as_echo "none" >&6; }
4907 fi
4908 max_cmd_len=$lt_cv_sys_max_cmd_len
4909
4910
4911
4912
4913
4914
4915 : ${CP="cp -f"}
4916 : ${MV="mv -f"}
4917 : ${RM="rm -f"}
4918
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4920 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4921 # Try some XSI features
4922 xsi_shell=no
4923 ( _lt_dummy="a/b/c"
4924   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4925       = c,a/b,, \
4926     && eval 'test $(( 1 + 1 )) -eq 2 \
4927     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4928   && xsi_shell=yes
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4930 $as_echo "$xsi_shell" >&6; }
4931
4932
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4934 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4935 lt_shell_append=no
4936 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4937     >/dev/null 2>&1 \
4938   && lt_shell_append=yes
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4940 $as_echo "$lt_shell_append" >&6; }
4941
4942
4943 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4944   lt_unset=unset
4945 else
4946   lt_unset=false
4947 fi
4948
4949
4950
4951
4952
4953 # test EBCDIC or ASCII
4954 case `echo X|tr X '\101'` in
4955  A) # ASCII based system
4956     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4957   lt_SP2NL='tr \040 \012'
4958   lt_NL2SP='tr \015\012 \040\040'
4959   ;;
4960  *) # EBCDIC based system
4961   lt_SP2NL='tr \100 \n'
4962   lt_NL2SP='tr \r\n \100\100'
4963   ;;
4964 esac
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4975 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4976 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4977   $as_echo_n "(cached) " >&6
4978 else
4979   lt_cv_ld_reload_flag='-r'
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4982 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4983 reload_flag=$lt_cv_ld_reload_flag
4984 case $reload_flag in
4985 "" | " "*) ;;
4986 *) reload_flag=" $reload_flag" ;;
4987 esac
4988 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4989 case $host_os in
4990   darwin*)
4991     if test "$GCC" = yes; then
4992       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4993     else
4994       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4995     fi
4996     ;;
4997 esac
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007 if test -n "$ac_tool_prefix"; then
5008   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5009 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5013   $as_echo_n "(cached) " >&6
5014 else
5015   if test -n "$OBJDUMP"; then
5016   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021   IFS=$as_save_IFS
5022   test -z "$as_dir" && as_dir=.
5023     for ac_exec_ext in '' $ac_executable_extensions; do
5024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027     break 2
5028   fi
5029 done
5030   done
5031 IFS=$as_save_IFS
5032
5033 fi
5034 fi
5035 OBJDUMP=$ac_cv_prog_OBJDUMP
5036 if test -n "$OBJDUMP"; then
5037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5038 $as_echo "$OBJDUMP" >&6; }
5039 else
5040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5042 fi
5043
5044
5045 fi
5046 if test -z "$ac_cv_prog_OBJDUMP"; then
5047   ac_ct_OBJDUMP=$OBJDUMP
5048   # Extract the first word of "objdump", so it can be a program name with args.
5049 set dummy objdump; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5053   $as_echo_n "(cached) " >&6
5054 else
5055   if test -n "$ac_ct_OBJDUMP"; then
5056   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5057 else
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5060 do
5061   IFS=$as_save_IFS
5062   test -z "$as_dir" && as_dir=.
5063     for ac_exec_ext in '' $ac_executable_extensions; do
5064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5065     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067     break 2
5068   fi
5069 done
5070   done
5071 IFS=$as_save_IFS
5072
5073 fi
5074 fi
5075 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5076 if test -n "$ac_ct_OBJDUMP"; then
5077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5078 $as_echo "$ac_ct_OBJDUMP" >&6; }
5079 else
5080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5082 fi
5083
5084   if test "x$ac_ct_OBJDUMP" = x; then
5085     OBJDUMP="false"
5086   else
5087     case $cross_compiling:$ac_tool_warned in
5088 yes:)
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5091 ac_tool_warned=yes ;;
5092 esac
5093     OBJDUMP=$ac_ct_OBJDUMP
5094   fi
5095 else
5096   OBJDUMP="$ac_cv_prog_OBJDUMP"
5097 fi
5098
5099 test -z "$OBJDUMP" && OBJDUMP=objdump
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5110 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5111 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5112   $as_echo_n "(cached) " >&6
5113 else
5114   lt_cv_file_magic_cmd='$MAGIC_CMD'
5115 lt_cv_file_magic_test_file=
5116 lt_cv_deplibs_check_method='unknown'
5117 # Need to set the preceding variable on all platforms that support
5118 # interlibrary dependencies.
5119 # 'none' -- dependencies not supported.
5120 # `unknown' -- same as none, but documents that we really don't know.
5121 # 'pass_all' -- all dependencies passed with no checks.
5122 # 'test_compile' -- check by making test program.
5123 # 'file_magic [[regex]]' -- check by looking for files in library path
5124 # which responds to the $file_magic_cmd with a given extended regex.
5125 # If you have `file' or equivalent on your system and you're not sure
5126 # whether `pass_all' will *always* work, you probably want this one.
5127
5128 case $host_os in
5129 aix[4-9]*)
5130   lt_cv_deplibs_check_method=pass_all
5131   ;;
5132
5133 beos*)
5134   lt_cv_deplibs_check_method=pass_all
5135   ;;
5136
5137 bsdi[45]*)
5138   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5139   lt_cv_file_magic_cmd='/usr/bin/file -L'
5140   lt_cv_file_magic_test_file=/shlib/libc.so
5141   ;;
5142
5143 cygwin*)
5144   # func_win32_libid is a shell function defined in ltmain.sh
5145   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5146   lt_cv_file_magic_cmd='func_win32_libid'
5147   ;;
5148
5149 mingw* | pw32*)
5150   # Base MSYS/MinGW do not provide the 'file' command needed by
5151   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5152   # unless we find 'file', for example because we are cross-compiling.
5153   if ( file / ) >/dev/null 2>&1; then
5154     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5155     lt_cv_file_magic_cmd='func_win32_libid'
5156   else
5157     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5158     lt_cv_file_magic_cmd='$OBJDUMP -f'
5159   fi
5160   ;;
5161
5162 cegcc)
5163   # use the weaker test based on 'objdump'. See mingw*.
5164   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5165   lt_cv_file_magic_cmd='$OBJDUMP -f'
5166   ;;
5167
5168 darwin* | rhapsody*)
5169   lt_cv_deplibs_check_method=pass_all
5170   ;;
5171
5172 freebsd* | dragonfly*)
5173   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5174     case $host_cpu in
5175     i*86 )
5176       # Not sure whether the presence of OpenBSD here was a mistake.
5177       # Let's accept both of them until this is cleared up.
5178       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5179       lt_cv_file_magic_cmd=/usr/bin/file
5180       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5181       ;;
5182     esac
5183   else
5184     lt_cv_deplibs_check_method=pass_all
5185   fi
5186   ;;
5187
5188 gnu*)
5189   lt_cv_deplibs_check_method=pass_all
5190   ;;
5191
5192 hpux10.20* | hpux11*)
5193   lt_cv_file_magic_cmd=/usr/bin/file
5194   case $host_cpu in
5195   ia64*)
5196     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5197     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5198     ;;
5199   hppa*64*)
5200     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5201     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5202     ;;
5203   *)
5204     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5205     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5206     ;;
5207   esac
5208   ;;
5209
5210 interix[3-9]*)
5211   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5212   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5213   ;;
5214
5215 irix5* | irix6* | nonstopux*)
5216   case $LD in
5217   *-32|*"-32 ") libmagic=32-bit;;
5218   *-n32|*"-n32 ") libmagic=N32;;
5219   *-64|*"-64 ") libmagic=64-bit;;
5220   *) libmagic=never-match;;
5221   esac
5222   lt_cv_deplibs_check_method=pass_all
5223   ;;
5224
5225 # This must be Linux ELF.
5226 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5227   lt_cv_deplibs_check_method=pass_all
5228   ;;
5229
5230 netbsd* | netbsdelf*-gnu)
5231   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5232     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5233   else
5234     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5235   fi
5236   ;;
5237
5238 newos6*)
5239   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5240   lt_cv_file_magic_cmd=/usr/bin/file
5241   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5242   ;;
5243
5244 *nto* | *qnx*)
5245   lt_cv_deplibs_check_method=pass_all
5246   ;;
5247
5248 openbsd*)
5249   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5250     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5251   else
5252     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5253   fi
5254   ;;
5255
5256 osf3* | osf4* | osf5*)
5257   lt_cv_deplibs_check_method=pass_all
5258   ;;
5259
5260 rdos*)
5261   lt_cv_deplibs_check_method=pass_all
5262   ;;
5263
5264 solaris*)
5265   lt_cv_deplibs_check_method=pass_all
5266   ;;
5267
5268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5269   lt_cv_deplibs_check_method=pass_all
5270   ;;
5271
5272 sysv4 | sysv4.3*)
5273   case $host_vendor in
5274   motorola)
5275     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]'
5276     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5277     ;;
5278   ncr)
5279     lt_cv_deplibs_check_method=pass_all
5280     ;;
5281   sequent)
5282     lt_cv_file_magic_cmd='/bin/file'
5283     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5284     ;;
5285   sni)
5286     lt_cv_file_magic_cmd='/bin/file'
5287     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5288     lt_cv_file_magic_test_file=/lib/libc.so
5289     ;;
5290   siemens)
5291     lt_cv_deplibs_check_method=pass_all
5292     ;;
5293   pc)
5294     lt_cv_deplibs_check_method=pass_all
5295     ;;
5296   esac
5297   ;;
5298
5299 tpf*)
5300   lt_cv_deplibs_check_method=pass_all
5301   ;;
5302 esac
5303
5304 fi
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5306 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5307 file_magic_cmd=$lt_cv_file_magic_cmd
5308 deplibs_check_method=$lt_cv_deplibs_check_method
5309 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322 if test -n "$ac_tool_prefix"; then
5323   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5324 set dummy ${ac_tool_prefix}ar; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if test "${ac_cv_prog_AR+set}" = set; then :
5328   $as_echo_n "(cached) " >&6
5329 else
5330   if test -n "$AR"; then
5331   ac_cv_prog_AR="$AR" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5335 do
5336   IFS=$as_save_IFS
5337   test -z "$as_dir" && as_dir=.
5338     for ac_exec_ext in '' $ac_executable_extensions; do
5339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5340     ac_cv_prog_AR="${ac_tool_prefix}ar"
5341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342     break 2
5343   fi
5344 done
5345   done
5346 IFS=$as_save_IFS
5347
5348 fi
5349 fi
5350 AR=$ac_cv_prog_AR
5351 if test -n "$AR"; then
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5353 $as_echo "$AR" >&6; }
5354 else
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5357 fi
5358
5359
5360 fi
5361 if test -z "$ac_cv_prog_AR"; then
5362   ac_ct_AR=$AR
5363   # Extract the first word of "ar", so it can be a program name with args.
5364 set dummy ar; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5368   $as_echo_n "(cached) " >&6
5369 else
5370   if test -n "$ac_ct_AR"; then
5371   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5375 do
5376   IFS=$as_save_IFS
5377   test -z "$as_dir" && as_dir=.
5378     for ac_exec_ext in '' $ac_executable_extensions; do
5379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5380     ac_cv_prog_ac_ct_AR="ar"
5381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382     break 2
5383   fi
5384 done
5385   done
5386 IFS=$as_save_IFS
5387
5388 fi
5389 fi
5390 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5391 if test -n "$ac_ct_AR"; then
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5393 $as_echo "$ac_ct_AR" >&6; }
5394 else
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5397 fi
5398
5399   if test "x$ac_ct_AR" = x; then
5400     AR="false"
5401   else
5402     case $cross_compiling:$ac_tool_warned in
5403 yes:)
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5406 ac_tool_warned=yes ;;
5407 esac
5408     AR=$ac_ct_AR
5409   fi
5410 else
5411   AR="$ac_cv_prog_AR"
5412 fi
5413
5414 test -z "$AR" && AR=ar
5415 test -z "$AR_FLAGS" && AR_FLAGS=cru
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427 if test -n "$ac_tool_prefix"; then
5428   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5429 set dummy ${ac_tool_prefix}strip; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if test "${ac_cv_prog_STRIP+set}" = set; then :
5433   $as_echo_n "(cached) " >&6
5434 else
5435   if test -n "$STRIP"; then
5436   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5437 else
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5440 do
5441   IFS=$as_save_IFS
5442   test -z "$as_dir" && as_dir=.
5443     for ac_exec_ext in '' $ac_executable_extensions; do
5444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5445     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447     break 2
5448   fi
5449 done
5450   done
5451 IFS=$as_save_IFS
5452
5453 fi
5454 fi
5455 STRIP=$ac_cv_prog_STRIP
5456 if test -n "$STRIP"; then
5457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5458 $as_echo "$STRIP" >&6; }
5459 else
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5462 fi
5463
5464
5465 fi
5466 if test -z "$ac_cv_prog_STRIP"; then
5467   ac_ct_STRIP=$STRIP
5468   # Extract the first word of "strip", so it can be a program name with args.
5469 set dummy strip; ac_word=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5473   $as_echo_n "(cached) " >&6
5474 else
5475   if test -n "$ac_ct_STRIP"; then
5476   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5480 do
5481   IFS=$as_save_IFS
5482   test -z "$as_dir" && as_dir=.
5483     for ac_exec_ext in '' $ac_executable_extensions; do
5484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5485     ac_cv_prog_ac_ct_STRIP="strip"
5486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487     break 2
5488   fi
5489 done
5490   done
5491 IFS=$as_save_IFS
5492
5493 fi
5494 fi
5495 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5496 if test -n "$ac_ct_STRIP"; then
5497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5498 $as_echo "$ac_ct_STRIP" >&6; }
5499 else
5500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5502 fi
5503
5504   if test "x$ac_ct_STRIP" = x; then
5505     STRIP=":"
5506   else
5507     case $cross_compiling:$ac_tool_warned in
5508 yes:)
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5511 ac_tool_warned=yes ;;
5512 esac
5513     STRIP=$ac_ct_STRIP
5514   fi
5515 else
5516   STRIP="$ac_cv_prog_STRIP"
5517 fi
5518
5519 test -z "$STRIP" && STRIP=:
5520
5521
5522
5523
5524
5525
5526 if test -n "$ac_tool_prefix"; then
5527   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5528 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534   if test -n "$RANLIB"; then
5535   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5536 else
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5539 do
5540   IFS=$as_save_IFS
5541   test -z "$as_dir" && as_dir=.
5542     for ac_exec_ext in '' $ac_executable_extensions; do
5543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5544     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546     break 2
5547   fi
5548 done
5549   done
5550 IFS=$as_save_IFS
5551
5552 fi
5553 fi
5554 RANLIB=$ac_cv_prog_RANLIB
5555 if test -n "$RANLIB"; then
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5557 $as_echo "$RANLIB" >&6; }
5558 else
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5561 fi
5562
5563
5564 fi
5565 if test -z "$ac_cv_prog_RANLIB"; then
5566   ac_ct_RANLIB=$RANLIB
5567   # Extract the first word of "ranlib", so it can be a program name with args.
5568 set dummy ranlib; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5572   $as_echo_n "(cached) " >&6
5573 else
5574   if test -n "$ac_ct_RANLIB"; then
5575   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580   IFS=$as_save_IFS
5581   test -z "$as_dir" && as_dir=.
5582     for ac_exec_ext in '' $ac_executable_extensions; do
5583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5584     ac_cv_prog_ac_ct_RANLIB="ranlib"
5585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586     break 2
5587   fi
5588 done
5589   done
5590 IFS=$as_save_IFS
5591
5592 fi
5593 fi
5594 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5595 if test -n "$ac_ct_RANLIB"; then
5596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5597 $as_echo "$ac_ct_RANLIB" >&6; }
5598 else
5599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 fi
5602
5603   if test "x$ac_ct_RANLIB" = x; then
5604     RANLIB=":"
5605   else
5606     case $cross_compiling:$ac_tool_warned in
5607 yes:)
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5610 ac_tool_warned=yes ;;
5611 esac
5612     RANLIB=$ac_ct_RANLIB
5613   fi
5614 else
5615   RANLIB="$ac_cv_prog_RANLIB"
5616 fi
5617
5618 test -z "$RANLIB" && RANLIB=:
5619
5620
5621
5622
5623
5624
5625 # Determine commands to create old-style static archives.
5626 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5627 old_postinstall_cmds='chmod 644 $oldlib'
5628 old_postuninstall_cmds=
5629
5630 if test -n "$RANLIB"; then
5631   case $host_os in
5632   openbsd*)
5633     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5634     ;;
5635   *)
5636     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5637     ;;
5638   esac
5639   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5640 fi
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675 # If no C compiler was specified, use CC.
5676 LTCC=${LTCC-"$CC"}
5677
5678 # If no C compiler flags were specified, use CFLAGS.
5679 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5680
5681 # Allow CC to be a program name with arguments.
5682 compiler=$CC
5683
5684
5685 # Check for command to grab the raw symbol name followed by C symbol from nm.
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5687 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5688 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5689   $as_echo_n "(cached) " >&6
5690 else
5691
5692 # These are sane defaults that work on at least a few old systems.
5693 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5694
5695 # Character class describing NM global symbol codes.
5696 symcode='[BCDEGRST]'
5697
5698 # Regexp to match symbols that can be accessed directly from C.
5699 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5700
5701 # Define system-specific variables.
5702 case $host_os in
5703 aix*)
5704   symcode='[BCDT]'
5705   ;;
5706 cygwin* | mingw* | pw32* | cegcc*)
5707   symcode='[ABCDGISTW]'
5708   ;;
5709 hpux*)
5710   if test "$host_cpu" = ia64; then
5711     symcode='[ABCDEGRST]'
5712   fi
5713   ;;
5714 irix* | nonstopux*)
5715   symcode='[BCDEGRST]'
5716   ;;
5717 osf*)
5718   symcode='[BCDEGQRST]'
5719   ;;
5720 solaris*)
5721   symcode='[BDRT]'
5722   ;;
5723 sco3.2v5*)
5724   symcode='[DT]'
5725   ;;
5726 sysv4.2uw2*)
5727   symcode='[DT]'
5728   ;;
5729 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5730   symcode='[ABDT]'
5731   ;;
5732 sysv4)
5733   symcode='[DFNSTU]'
5734   ;;
5735 esac
5736
5737 # If we're using GNU nm, then use its standard symbol codes.
5738 case `$NM -V 2>&1` in
5739 *GNU* | *'with BFD'*)
5740   symcode='[ABCDGIRSTW]' ;;
5741 esac
5742
5743 # Transform an extracted symbol line into a proper C declaration.
5744 # Some systems (esp. on ia64) link data and code symbols differently,
5745 # so use this general approach.
5746 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5747
5748 # Transform an extracted symbol line into symbol name and symbol address
5749 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5750 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'"
5751
5752 # Handle CRLF in mingw tool chain
5753 opt_cr=
5754 case $build_os in
5755 mingw*)
5756   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5757   ;;
5758 esac
5759
5760 # Try without a prefix underscore, then with it.
5761 for ac_symprfx in "" "_"; do
5762
5763   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5764   symxfrm="\\1 $ac_symprfx\\2 \\2"
5765
5766   # Write the raw and C identifiers.
5767   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5768     # Fake it for dumpbin and say T for any non-static function
5769     # and D for any global variable.
5770     # Also find C++ and __fastcall symbols from MSVC++,
5771     # which start with @ or ?.
5772     lt_cv_sys_global_symbol_pipe="$AWK '"\
5773 "     {last_section=section; section=\$ 3};"\
5774 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5775 "     \$ 0!~/External *\|/{next};"\
5776 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5777 "     {if(hide[section]) next};"\
5778 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5779 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5780 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5781 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5782 "     ' prfx=^$ac_symprfx"
5783   else
5784     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5785   fi
5786
5787   # Check to see that the pipe works correctly.
5788   pipe_works=no
5789
5790   rm -f conftest*
5791   cat > conftest.$ac_ext <<_LT_EOF
5792 #ifdef __cplusplus
5793 extern "C" {
5794 #endif
5795 char nm_test_var;
5796 void nm_test_func(void);
5797 void nm_test_func(void){}
5798 #ifdef __cplusplus
5799 }
5800 #endif
5801 int main(){nm_test_var='a';nm_test_func();return(0);}
5802 _LT_EOF
5803
5804   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5805   (eval $ac_compile) 2>&5
5806   ac_status=$?
5807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5808   test $ac_status = 0; }; then
5809     # Now try to grab the symbols.
5810     nlist=conftest.nm
5811     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5812   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5813   ac_status=$?
5814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5815   test $ac_status = 0; } && test -s "$nlist"; then
5816       # Try sorting and uniquifying the output.
5817       if sort "$nlist" | uniq > "$nlist"T; then
5818         mv -f "$nlist"T "$nlist"
5819       else
5820         rm -f "$nlist"T
5821       fi
5822
5823       # Make sure that we snagged all the symbols we need.
5824       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5825         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5826           cat <<_LT_EOF > conftest.$ac_ext
5827 #ifdef __cplusplus
5828 extern "C" {
5829 #endif
5830
5831 _LT_EOF
5832           # Now generate the symbol file.
5833           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5834
5835           cat <<_LT_EOF >> conftest.$ac_ext
5836
5837 /* The mapping between symbol names and symbols.  */
5838 const struct {
5839   const char *name;
5840   void       *address;
5841 }
5842 lt__PROGRAM__LTX_preloaded_symbols[] =
5843 {
5844   { "@PROGRAM@", (void *) 0 },
5845 _LT_EOF
5846           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5847           cat <<\_LT_EOF >> conftest.$ac_ext
5848   {0, (void *) 0}
5849 };
5850
5851 /* This works around a problem in FreeBSD linker */
5852 #ifdef FREEBSD_WORKAROUND
5853 static const void *lt_preloaded_setup() {
5854   return lt__PROGRAM__LTX_preloaded_symbols;
5855 }
5856 #endif
5857
5858 #ifdef __cplusplus
5859 }
5860 #endif
5861 _LT_EOF
5862           # Now try linking the two files.
5863           mv conftest.$ac_objext conftstm.$ac_objext
5864           lt_save_LIBS="$LIBS"
5865           lt_save_CFLAGS="$CFLAGS"
5866           LIBS="conftstm.$ac_objext"
5867           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5868           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5869   (eval $ac_link) 2>&5
5870   ac_status=$?
5871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5872   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5873             pipe_works=yes
5874           fi
5875           LIBS="$lt_save_LIBS"
5876           CFLAGS="$lt_save_CFLAGS"
5877         else
5878           echo "cannot find nm_test_func in $nlist" >&5
5879         fi
5880       else
5881         echo "cannot find nm_test_var in $nlist" >&5
5882       fi
5883     else
5884       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5885     fi
5886   else
5887     echo "$progname: failed program was:" >&5
5888     cat conftest.$ac_ext >&5
5889   fi
5890   rm -rf conftest* conftst*
5891
5892   # Do not use the global_symbol_pipe unless it works.
5893   if test "$pipe_works" = yes; then
5894     break
5895   else
5896     lt_cv_sys_global_symbol_pipe=
5897   fi
5898 done
5899
5900 fi
5901
5902 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5903   lt_cv_sys_global_symbol_to_cdecl=
5904 fi
5905 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5907 $as_echo "failed" >&6; }
5908 else
5909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5910 $as_echo "ok" >&6; }
5911 fi
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935 # Check whether --enable-libtool-lock was given.
5936 if test "${enable_libtool_lock+set}" = set; then :
5937   enableval=$enable_libtool_lock;
5938 fi
5939
5940 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5941
5942 # Some flags need to be propagated to the compiler or linker for good
5943 # libtool support.
5944 case $host in
5945 ia64-*-hpux*)
5946   # Find out which ABI we are using.
5947   echo 'int i;' > conftest.$ac_ext
5948   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5949   (eval $ac_compile) 2>&5
5950   ac_status=$?
5951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5952   test $ac_status = 0; }; then
5953     case `/usr/bin/file conftest.$ac_objext` in
5954       *ELF-32*)
5955         HPUX_IA64_MODE="32"
5956         ;;
5957       *ELF-64*)
5958         HPUX_IA64_MODE="64"
5959         ;;
5960     esac
5961   fi
5962   rm -rf conftest*
5963   ;;
5964 *-*-irix6*)
5965   # Find out which ABI we are using.
5966   echo '#line 5966 "configure"' > conftest.$ac_ext
5967   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5968   (eval $ac_compile) 2>&5
5969   ac_status=$?
5970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5971   test $ac_status = 0; }; then
5972     if test "$lt_cv_prog_gnu_ld" = yes; then
5973       case `/usr/bin/file conftest.$ac_objext` in
5974         *32-bit*)
5975           LD="${LD-ld} -melf32bsmip"
5976           ;;
5977         *N32*)
5978           LD="${LD-ld} -melf32bmipn32"
5979           ;;
5980         *64-bit*)
5981           LD="${LD-ld} -melf64bmip"
5982         ;;
5983       esac
5984     else
5985       case `/usr/bin/file conftest.$ac_objext` in
5986         *32-bit*)
5987           LD="${LD-ld} -32"
5988           ;;
5989         *N32*)
5990           LD="${LD-ld} -n32"
5991           ;;
5992         *64-bit*)
5993           LD="${LD-ld} -64"
5994           ;;
5995       esac
5996     fi
5997   fi
5998   rm -rf conftest*
5999   ;;
6000
6001 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6002 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6003   # Find out which ABI we are using.
6004   echo 'int i;' > conftest.$ac_ext
6005   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6006   (eval $ac_compile) 2>&5
6007   ac_status=$?
6008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6009   test $ac_status = 0; }; then
6010     case `/usr/bin/file conftest.o` in
6011       *32-bit*)
6012         case $host in
6013           x86_64-*kfreebsd*-gnu)
6014             LD="${LD-ld} -m elf_i386_fbsd"
6015             ;;
6016           x86_64-*linux*)
6017             LD="${LD-ld} -m elf_i386"
6018             ;;
6019           ppc64-*linux*|powerpc64-*linux*)
6020             LD="${LD-ld} -m elf32ppclinux"
6021             ;;
6022           s390x-*linux*)
6023             LD="${LD-ld} -m elf_s390"
6024             ;;
6025           sparc64-*linux*)
6026             LD="${LD-ld} -m elf32_sparc"
6027             ;;
6028         esac
6029         ;;
6030       *64-bit*)
6031         case $host in
6032           x86_64-*kfreebsd*-gnu)
6033             LD="${LD-ld} -m elf_x86_64_fbsd"
6034             ;;
6035           x86_64-*linux*)
6036             LD="${LD-ld} -m elf_x86_64"
6037             ;;
6038           ppc*-*linux*|powerpc*-*linux*)
6039             LD="${LD-ld} -m elf64ppc"
6040             ;;
6041           s390*-*linux*|s390*-*tpf*)
6042             LD="${LD-ld} -m elf64_s390"
6043             ;;
6044           sparc*-*linux*)
6045             LD="${LD-ld} -m elf64_sparc"
6046             ;;
6047         esac
6048         ;;
6049     esac
6050   fi
6051   rm -rf conftest*
6052   ;;
6053
6054 *-*-sco3.2v5*)
6055   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6056   SAVE_CFLAGS="$CFLAGS"
6057   CFLAGS="$CFLAGS -belf"
6058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6059 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6060 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   ac_ext=c
6064 ac_cpp='$CPP $CPPFLAGS'
6065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6068
6069      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h.  */
6071
6072 int
6073 main ()
6074 {
6075
6076   ;
6077   return 0;
6078 }
6079 _ACEOF
6080 if ac_fn_c_try_link "$LINENO"; then :
6081   lt_cv_cc_needs_belf=yes
6082 else
6083   lt_cv_cc_needs_belf=no
6084 fi
6085 rm -f core conftest.err conftest.$ac_objext \
6086     conftest$ac_exeext conftest.$ac_ext
6087      ac_ext=c
6088 ac_cpp='$CPP $CPPFLAGS'
6089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6092
6093 fi
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6095 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6096   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6097     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6098     CFLAGS="$SAVE_CFLAGS"
6099   fi
6100   ;;
6101 sparc*-*solaris*)
6102   # Find out which ABI we are using.
6103   echo 'int i;' > conftest.$ac_ext
6104   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6105   (eval $ac_compile) 2>&5
6106   ac_status=$?
6107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108   test $ac_status = 0; }; then
6109     case `/usr/bin/file conftest.o` in
6110     *64-bit*)
6111       case $lt_cv_prog_gnu_ld in
6112       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6113       *)
6114         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6115           LD="${LD-ld} -64"
6116         fi
6117         ;;
6118       esac
6119       ;;
6120     esac
6121   fi
6122   rm -rf conftest*
6123   ;;
6124 esac
6125
6126 need_locks="$enable_libtool_lock"
6127
6128
6129   case $host_os in
6130     rhapsody* | darwin*)
6131     if test -n "$ac_tool_prefix"; then
6132   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6133 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135 $as_echo_n "checking for $ac_word... " >&6; }
6136 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6137   $as_echo_n "(cached) " >&6
6138 else
6139   if test -n "$DSYMUTIL"; then
6140   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6141 else
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6144 do
6145   IFS=$as_save_IFS
6146   test -z "$as_dir" && as_dir=.
6147     for ac_exec_ext in '' $ac_executable_extensions; do
6148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6149     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151     break 2
6152   fi
6153 done
6154   done
6155 IFS=$as_save_IFS
6156
6157 fi
6158 fi
6159 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6160 if test -n "$DSYMUTIL"; then
6161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6162 $as_echo "$DSYMUTIL" >&6; }
6163 else
6164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 $as_echo "no" >&6; }
6166 fi
6167
6168
6169 fi
6170 if test -z "$ac_cv_prog_DSYMUTIL"; then
6171   ac_ct_DSYMUTIL=$DSYMUTIL
6172   # Extract the first word of "dsymutil", so it can be a program name with args.
6173 set dummy dsymutil; ac_word=$2
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175 $as_echo_n "checking for $ac_word... " >&6; }
6176 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6177   $as_echo_n "(cached) " >&6
6178 else
6179   if test -n "$ac_ct_DSYMUTIL"; then
6180   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6181 else
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH
6184 do
6185   IFS=$as_save_IFS
6186   test -z "$as_dir" && as_dir=.
6187     for ac_exec_ext in '' $ac_executable_extensions; do
6188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6189     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191     break 2
6192   fi
6193 done
6194   done
6195 IFS=$as_save_IFS
6196
6197 fi
6198 fi
6199 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6200 if test -n "$ac_ct_DSYMUTIL"; then
6201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6202 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6203 else
6204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205 $as_echo "no" >&6; }
6206 fi
6207
6208   if test "x$ac_ct_DSYMUTIL" = x; then
6209     DSYMUTIL=":"
6210   else
6211     case $cross_compiling:$ac_tool_warned in
6212 yes:)
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6215 ac_tool_warned=yes ;;
6216 esac
6217     DSYMUTIL=$ac_ct_DSYMUTIL
6218   fi
6219 else
6220   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6221 fi
6222
6223     if test -n "$ac_tool_prefix"; then
6224   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6225 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6229   $as_echo_n "(cached) " >&6
6230 else
6231   if test -n "$NMEDIT"; then
6232   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6236 do
6237   IFS=$as_save_IFS
6238   test -z "$as_dir" && as_dir=.
6239     for ac_exec_ext in '' $ac_executable_extensions; do
6240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6241     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243     break 2
6244   fi
6245 done
6246   done
6247 IFS=$as_save_IFS
6248
6249 fi
6250 fi
6251 NMEDIT=$ac_cv_prog_NMEDIT
6252 if test -n "$NMEDIT"; then
6253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6254 $as_echo "$NMEDIT" >&6; }
6255 else
6256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6258 fi
6259
6260
6261 fi
6262 if test -z "$ac_cv_prog_NMEDIT"; then
6263   ac_ct_NMEDIT=$NMEDIT
6264   # Extract the first word of "nmedit", so it can be a program name with args.
6265 set dummy nmedit; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6269   $as_echo_n "(cached) " >&6
6270 else
6271   if test -n "$ac_ct_NMEDIT"; then
6272   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6276 do
6277   IFS=$as_save_IFS
6278   test -z "$as_dir" && as_dir=.
6279     for ac_exec_ext in '' $ac_executable_extensions; do
6280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283     break 2
6284   fi
6285 done
6286   done
6287 IFS=$as_save_IFS
6288
6289 fi
6290 fi
6291 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6292 if test -n "$ac_ct_NMEDIT"; then
6293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6294 $as_echo "$ac_ct_NMEDIT" >&6; }
6295 else
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6298 fi
6299
6300   if test "x$ac_ct_NMEDIT" = x; then
6301     NMEDIT=":"
6302   else
6303     case $cross_compiling:$ac_tool_warned in
6304 yes:)
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6307 ac_tool_warned=yes ;;
6308 esac
6309     NMEDIT=$ac_ct_NMEDIT
6310   fi
6311 else
6312   NMEDIT="$ac_cv_prog_NMEDIT"
6313 fi
6314
6315     if test -n "$ac_tool_prefix"; then
6316   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6317 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6319 $as_echo_n "checking for $ac_word... " >&6; }
6320 if test "${ac_cv_prog_LIPO+set}" = set; then :
6321   $as_echo_n "(cached) " >&6
6322 else
6323   if test -n "$LIPO"; then
6324   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6325 else
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6328 do
6329   IFS=$as_save_IFS
6330   test -z "$as_dir" && as_dir=.
6331     for ac_exec_ext in '' $ac_executable_extensions; do
6332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6333     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335     break 2
6336   fi
6337 done
6338   done
6339 IFS=$as_save_IFS
6340
6341 fi
6342 fi
6343 LIPO=$ac_cv_prog_LIPO
6344 if test -n "$LIPO"; then
6345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6346 $as_echo "$LIPO" >&6; }
6347 else
6348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6349 $as_echo "no" >&6; }
6350 fi
6351
6352
6353 fi
6354 if test -z "$ac_cv_prog_LIPO"; then
6355   ac_ct_LIPO=$LIPO
6356   # Extract the first word of "lipo", so it can be a program name with args.
6357 set dummy lipo; ac_word=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6361   $as_echo_n "(cached) " >&6
6362 else
6363   if test -n "$ac_ct_LIPO"; then
6364   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6365 else
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6368 do
6369   IFS=$as_save_IFS
6370   test -z "$as_dir" && as_dir=.
6371     for ac_exec_ext in '' $ac_executable_extensions; do
6372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6373     ac_cv_prog_ac_ct_LIPO="lipo"
6374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375     break 2
6376   fi
6377 done
6378   done
6379 IFS=$as_save_IFS
6380
6381 fi
6382 fi
6383 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6384 if test -n "$ac_ct_LIPO"; then
6385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6386 $as_echo "$ac_ct_LIPO" >&6; }
6387 else
6388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6390 fi
6391
6392   if test "x$ac_ct_LIPO" = x; then
6393     LIPO=":"
6394   else
6395     case $cross_compiling:$ac_tool_warned in
6396 yes:)
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6399 ac_tool_warned=yes ;;
6400 esac
6401     LIPO=$ac_ct_LIPO
6402   fi
6403 else
6404   LIPO="$ac_cv_prog_LIPO"
6405 fi
6406
6407     if test -n "$ac_tool_prefix"; then
6408   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6409 set dummy ${ac_tool_prefix}otool; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6413   $as_echo_n "(cached) " >&6
6414 else
6415   if test -n "$OTOOL"; then
6416   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6420 do
6421   IFS=$as_save_IFS
6422   test -z "$as_dir" && as_dir=.
6423     for ac_exec_ext in '' $ac_executable_extensions; do
6424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6425     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427     break 2
6428   fi
6429 done
6430   done
6431 IFS=$as_save_IFS
6432
6433 fi
6434 fi
6435 OTOOL=$ac_cv_prog_OTOOL
6436 if test -n "$OTOOL"; then
6437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6438 $as_echo "$OTOOL" >&6; }
6439 else
6440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6442 fi
6443
6444
6445 fi
6446 if test -z "$ac_cv_prog_OTOOL"; then
6447   ac_ct_OTOOL=$OTOOL
6448   # Extract the first word of "otool", so it can be a program name with args.
6449 set dummy otool; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6453   $as_echo_n "(cached) " >&6
6454 else
6455   if test -n "$ac_ct_OTOOL"; then
6456   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6460 do
6461   IFS=$as_save_IFS
6462   test -z "$as_dir" && as_dir=.
6463     for ac_exec_ext in '' $ac_executable_extensions; do
6464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465     ac_cv_prog_ac_ct_OTOOL="otool"
6466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467     break 2
6468   fi
6469 done
6470   done
6471 IFS=$as_save_IFS
6472
6473 fi
6474 fi
6475 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6476 if test -n "$ac_ct_OTOOL"; then
6477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6478 $as_echo "$ac_ct_OTOOL" >&6; }
6479 else
6480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6482 fi
6483
6484   if test "x$ac_ct_OTOOL" = x; then
6485     OTOOL=":"
6486   else
6487     case $cross_compiling:$ac_tool_warned in
6488 yes:)
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6491 ac_tool_warned=yes ;;
6492 esac
6493     OTOOL=$ac_ct_OTOOL
6494   fi
6495 else
6496   OTOOL="$ac_cv_prog_OTOOL"
6497 fi
6498
6499     if test -n "$ac_tool_prefix"; then
6500   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6501 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6505   $as_echo_n "(cached) " >&6
6506 else
6507   if test -n "$OTOOL64"; then
6508   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513   IFS=$as_save_IFS
6514   test -z "$as_dir" && as_dir=.
6515     for ac_exec_ext in '' $ac_executable_extensions; do
6516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6517     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519     break 2
6520   fi
6521 done
6522   done
6523 IFS=$as_save_IFS
6524
6525 fi
6526 fi
6527 OTOOL64=$ac_cv_prog_OTOOL64
6528 if test -n "$OTOOL64"; then
6529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6530 $as_echo "$OTOOL64" >&6; }
6531 else
6532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6534 fi
6535
6536
6537 fi
6538 if test -z "$ac_cv_prog_OTOOL64"; then
6539   ac_ct_OTOOL64=$OTOOL64
6540   # Extract the first word of "otool64", so it can be a program name with args.
6541 set dummy otool64; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6545   $as_echo_n "(cached) " >&6
6546 else
6547   if test -n "$ac_ct_OTOOL64"; then
6548   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555     for ac_exec_ext in '' $ac_executable_extensions; do
6556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557     ac_cv_prog_ac_ct_OTOOL64="otool64"
6558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562   done
6563 IFS=$as_save_IFS
6564
6565 fi
6566 fi
6567 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6568 if test -n "$ac_ct_OTOOL64"; then
6569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6570 $as_echo "$ac_ct_OTOOL64" >&6; }
6571 else
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6574 fi
6575
6576   if test "x$ac_ct_OTOOL64" = x; then
6577     OTOOL64=":"
6578   else
6579     case $cross_compiling:$ac_tool_warned in
6580 yes:)
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6583 ac_tool_warned=yes ;;
6584 esac
6585     OTOOL64=$ac_ct_OTOOL64
6586   fi
6587 else
6588   OTOOL64="$ac_cv_prog_OTOOL64"
6589 fi
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6618 $as_echo_n "checking for -single_module linker flag... " >&6; }
6619 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6620   $as_echo_n "(cached) " >&6
6621 else
6622   lt_cv_apple_cc_single_mod=no
6623       if test -z "${LT_MULTI_MODULE}"; then
6624         # By default we will add the -single_module flag. You can override
6625         # by either setting the environment variable LT_MULTI_MODULE
6626         # non-empty at configure time, or by adding -multi_module to the
6627         # link flags.
6628         rm -rf libconftest.dylib*
6629         echo "int foo(void){return 1;}" > conftest.c
6630         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6631 -dynamiclib -Wl,-single_module conftest.c" >&5
6632         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6633           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6634         _lt_result=$?
6635         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6636           lt_cv_apple_cc_single_mod=yes
6637         else
6638           cat conftest.err >&5
6639         fi
6640         rm -rf libconftest.dylib*
6641         rm -f conftest.*
6642       fi
6643 fi
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6645 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6647 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6648 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6649   $as_echo_n "(cached) " >&6
6650 else
6651   lt_cv_ld_exported_symbols_list=no
6652       save_LDFLAGS=$LDFLAGS
6653       echo "_main" > conftest.sym
6654       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6655       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h.  */
6657
6658 int
6659 main ()
6660 {
6661
6662   ;
6663   return 0;
6664 }
6665 _ACEOF
6666 if ac_fn_c_try_link "$LINENO"; then :
6667   lt_cv_ld_exported_symbols_list=yes
6668 else
6669   lt_cv_ld_exported_symbols_list=no
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext \
6672     conftest$ac_exeext conftest.$ac_ext
6673         LDFLAGS="$save_LDFLAGS"
6674
6675 fi
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6677 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6678     case $host_os in
6679     rhapsody* | darwin1.[012])
6680       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6681     darwin1.*)
6682       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6683     darwin*) # darwin 5.x on
6684       # if running on 10.5 or later, the deployment target defaults
6685       # to the OS version, if on x86, and 10.4, the deployment
6686       # target defaults to 10.4. Don't you love it?
6687       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6688         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6689           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6690         10.[012]*)
6691           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6692         10.*)
6693           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6694       esac
6695     ;;
6696   esac
6697     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6698       _lt_dar_single_mod='$single_module'
6699     fi
6700     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6701       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6702     else
6703       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6704     fi
6705     if test "$DSYMUTIL" != ":"; then
6706       _lt_dsymutil='~$DSYMUTIL $lib || :'
6707     else
6708       _lt_dsymutil=
6709     fi
6710     ;;
6711   esac
6712
6713 ac_ext=c
6714 ac_cpp='$CPP $CPPFLAGS'
6715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6719 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6720 # On Suns, sometimes $CPP names a directory.
6721 if test -n "$CPP" && test -d "$CPP"; then
6722   CPP=
6723 fi
6724 if test -z "$CPP"; then
6725   if test "${ac_cv_prog_CPP+set}" = set; then :
6726   $as_echo_n "(cached) " >&6
6727 else
6728       # Double quotes because CPP needs to be expanded
6729     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6730     do
6731       ac_preproc_ok=false
6732 for ac_c_preproc_warn_flag in '' yes
6733 do
6734   # Use a header file that comes with gcc, so configuring glibc
6735   # with a fresh cross-compiler works.
6736   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6737   # <limits.h> exists even on freestanding compilers.
6738   # On the NeXT, cc -E runs the code through the compiler's parser,
6739   # not just through cpp. "Syntax error" is here to catch this case.
6740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h.  */
6742 #ifdef __STDC__
6743 # include <limits.h>
6744 #else
6745 # include <assert.h>
6746 #endif
6747                      Syntax error
6748 _ACEOF
6749 if ac_fn_c_try_cpp "$LINENO"; then :
6750
6751 else
6752   # Broken: fails on valid input.
6753 continue
6754 fi
6755 rm -f conftest.err conftest.i conftest.$ac_ext
6756
6757   # OK, works on sane cases.  Now check whether nonexistent headers
6758   # can be detected and how.
6759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h.  */
6761 #include <ac_nonexistent.h>
6762 _ACEOF
6763 if ac_fn_c_try_cpp "$LINENO"; then :
6764   # Broken: success on invalid input.
6765 continue
6766 else
6767   # Passes both tests.
6768 ac_preproc_ok=:
6769 break
6770 fi
6771 rm -f conftest.err conftest.i conftest.$ac_ext
6772
6773 done
6774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6775 rm -f conftest.i conftest.err conftest.$ac_ext
6776 if $ac_preproc_ok; then :
6777   break
6778 fi
6779
6780     done
6781     ac_cv_prog_CPP=$CPP
6782
6783 fi
6784   CPP=$ac_cv_prog_CPP
6785 else
6786   ac_cv_prog_CPP=$CPP
6787 fi
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6789 $as_echo "$CPP" >&6; }
6790 ac_preproc_ok=false
6791 for ac_c_preproc_warn_flag in '' yes
6792 do
6793   # Use a header file that comes with gcc, so configuring glibc
6794   # with a fresh cross-compiler works.
6795   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6796   # <limits.h> exists even on freestanding compilers.
6797   # On the NeXT, cc -E runs the code through the compiler's parser,
6798   # not just through cpp. "Syntax error" is here to catch this case.
6799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h.  */
6801 #ifdef __STDC__
6802 # include <limits.h>
6803 #else
6804 # include <assert.h>
6805 #endif
6806                      Syntax error
6807 _ACEOF
6808 if ac_fn_c_try_cpp "$LINENO"; then :
6809
6810 else
6811   # Broken: fails on valid input.
6812 continue
6813 fi
6814 rm -f conftest.err conftest.i conftest.$ac_ext
6815
6816   # OK, works on sane cases.  Now check whether nonexistent headers
6817   # can be detected and how.
6818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h.  */
6820 #include <ac_nonexistent.h>
6821 _ACEOF
6822 if ac_fn_c_try_cpp "$LINENO"; then :
6823   # Broken: success on invalid input.
6824 continue
6825 else
6826   # Passes both tests.
6827 ac_preproc_ok=:
6828 break
6829 fi
6830 rm -f conftest.err conftest.i conftest.$ac_ext
6831
6832 done
6833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6834 rm -f conftest.i conftest.err conftest.$ac_ext
6835 if $ac_preproc_ok; then :
6836
6837 else
6838   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6840 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6841 See \`config.log' for more details" "$LINENO" 5 ; }
6842 fi
6843
6844 ac_ext=c
6845 ac_cpp='$CPP $CPPFLAGS'
6846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6849
6850
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6852 $as_echo_n "checking for ANSI C header files... " >&6; }
6853 if test "${ac_cv_header_stdc+set}" = set; then :
6854   $as_echo_n "(cached) " >&6
6855 else
6856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h.  */
6858 #include <stdlib.h>
6859 #include <stdarg.h>
6860 #include <string.h>
6861 #include <float.h>
6862
6863 int
6864 main ()
6865 {
6866
6867   ;
6868   return 0;
6869 }
6870 _ACEOF
6871 if ac_fn_c_try_compile "$LINENO"; then :
6872   ac_cv_header_stdc=yes
6873 else
6874   ac_cv_header_stdc=no
6875 fi
6876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877
6878 if test $ac_cv_header_stdc = yes; then
6879   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h.  */
6882 #include <string.h>
6883
6884 _ACEOF
6885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6886   $EGREP "memchr" >/dev/null 2>&1; then :
6887
6888 else
6889   ac_cv_header_stdc=no
6890 fi
6891 rm -f conftest*
6892
6893 fi
6894
6895 if test $ac_cv_header_stdc = yes; then
6896   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h.  */
6899 #include <stdlib.h>
6900
6901 _ACEOF
6902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6903   $EGREP "free" >/dev/null 2>&1; then :
6904
6905 else
6906   ac_cv_header_stdc=no
6907 fi
6908 rm -f conftest*
6909
6910 fi
6911
6912 if test $ac_cv_header_stdc = yes; then
6913   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6914   if test "$cross_compiling" = yes; then :
6915   :
6916 else
6917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h.  */
6919 #include <ctype.h>
6920 #include <stdlib.h>
6921 #if ((' ' & 0x0FF) == 0x020)
6922 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6923 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6924 #else
6925 # define ISLOWER(c) \
6926                    (('a' <= (c) && (c) <= 'i') \
6927                      || ('j' <= (c) && (c) <= 'r') \
6928                      || ('s' <= (c) && (c) <= 'z'))
6929 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6930 #endif
6931
6932 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6933 int
6934 main ()
6935 {
6936   int i;
6937   for (i = 0; i < 256; i++)
6938     if (XOR (islower (i), ISLOWER (i))
6939         || toupper (i) != TOUPPER (i))
6940       return 2;
6941   return 0;
6942 }
6943 _ACEOF
6944 if ac_fn_c_try_run "$LINENO"; then :
6945
6946 else
6947   ac_cv_header_stdc=no
6948 fi
6949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6950   conftest.$ac_objext conftest.beam conftest.$ac_ext
6951 fi
6952
6953 fi
6954 fi
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6956 $as_echo "$ac_cv_header_stdc" >&6; }
6957 if test $ac_cv_header_stdc = yes; then
6958
6959 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6960
6961 fi
6962
6963 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6964 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6965                   inttypes.h stdint.h unistd.h
6966 do :
6967   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6968 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6969 "
6970 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6971   cat >>confdefs.h <<_ACEOF
6972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6973 _ACEOF
6974
6975 fi
6976
6977 done
6978
6979
6980 for ac_header in dlfcn.h
6981 do :
6982   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6983 "
6984 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6985   cat >>confdefs.h <<_ACEOF
6986 #define HAVE_DLFCN_H 1
6987 _ACEOF
6988
6989 fi
6990
6991 done
6992
6993
6994
6995 # Set options
6996
6997
6998
6999         enable_dlopen=no
7000
7001
7002   enable_win32_dll=no
7003
7004
7005             # Check whether --enable-shared was given.
7006 if test "${enable_shared+set}" = set; then :
7007   enableval=$enable_shared; p=${PACKAGE-default}
7008     case $enableval in
7009     yes) enable_shared=yes ;;
7010     no) enable_shared=no ;;
7011     *)
7012       enable_shared=no
7013       # Look at the argument we got.  We use all the common list separators.
7014       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7015       for pkg in $enableval; do
7016         IFS="$lt_save_ifs"
7017         if test "X$pkg" = "X$p"; then
7018           enable_shared=yes
7019         fi
7020       done
7021       IFS="$lt_save_ifs"
7022       ;;
7023     esac
7024 else
7025   enable_shared=yes
7026 fi
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038 # Check whether --with-pic was given.
7039 if test "${with_pic+set}" = set; then :
7040   withval=$with_pic; pic_mode="$withval"
7041 else
7042   pic_mode=default
7043 fi
7044
7045
7046 test -z "$pic_mode" && pic_mode=default
7047
7048
7049
7050
7051
7052
7053
7054   # Check whether --enable-fast-install was given.
7055 if test "${enable_fast_install+set}" = set; then :
7056   enableval=$enable_fast_install; p=${PACKAGE-default}
7057     case $enableval in
7058     yes) enable_fast_install=yes ;;
7059     no) enable_fast_install=no ;;
7060     *)
7061       enable_fast_install=no
7062       # Look at the argument we got.  We use all the common list separators.
7063       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7064       for pkg in $enableval; do
7065         IFS="$lt_save_ifs"
7066         if test "X$pkg" = "X$p"; then
7067           enable_fast_install=yes
7068         fi
7069       done
7070       IFS="$lt_save_ifs"
7071       ;;
7072     esac
7073 else
7074   enable_fast_install=yes
7075 fi
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087 # This can be used to rebuild libtool when needed
7088 LIBTOOL_DEPS="$ltmain"
7089
7090 # Always use our own libtool.
7091 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117 test -z "$LN_S" && LN_S="ln -s"
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132 if test -n "${ZSH_VERSION+set}" ; then
7133    setopt NO_GLOB_SUBST
7134 fi
7135
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7137 $as_echo_n "checking for objdir... " >&6; }
7138 if test "${lt_cv_objdir+set}" = set; then :
7139   $as_echo_n "(cached) " >&6
7140 else
7141   rm -f .libs 2>/dev/null
7142 mkdir .libs 2>/dev/null
7143 if test -d .libs; then
7144   lt_cv_objdir=.libs
7145 else
7146   # MS-DOS does not allow filenames that begin with a dot.
7147   lt_cv_objdir=_libs
7148 fi
7149 rmdir .libs 2>/dev/null
7150 fi
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7152 $as_echo "$lt_cv_objdir" >&6; }
7153 objdir=$lt_cv_objdir
7154
7155
7156
7157
7158
7159 cat >>confdefs.h <<_ACEOF
7160 #define LT_OBJDIR "$lt_cv_objdir/"
7161 _ACEOF
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179 case $host_os in
7180 aix3*)
7181   # AIX sometimes has problems with the GCC collect2 program.  For some
7182   # reason, if we set the COLLECT_NAMES environment variable, the problems
7183   # vanish in a puff of smoke.
7184   if test "X${COLLECT_NAMES+set}" != Xset; then
7185     COLLECT_NAMES=
7186     export COLLECT_NAMES
7187   fi
7188   ;;
7189 esac
7190
7191 # Sed substitution that helps us do robust quoting.  It backslashifies
7192 # metacharacters that are still active within double-quoted strings.
7193 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7194
7195 # Same as above, but do not quote variable references.
7196 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7197
7198 # Sed substitution to delay expansion of an escaped shell variable in a
7199 # double_quote_subst'ed string.
7200 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7201
7202 # Sed substitution to delay expansion of an escaped single quote.
7203 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7204
7205 # Sed substitution to avoid accidental globbing in evaled expressions
7206 no_glob_subst='s/\*/\\\*/g'
7207
7208 # Global variables:
7209 ofile=libtool
7210 can_build_shared=yes
7211
7212 # All known linkers require a `.a' archive for static linking (except MSVC,
7213 # which needs '.lib').
7214 libext=a
7215
7216 with_gnu_ld="$lt_cv_prog_gnu_ld"
7217
7218 old_CC="$CC"
7219 old_CFLAGS="$CFLAGS"
7220
7221 # Set sane defaults for various variables
7222 test -z "$CC" && CC=cc
7223 test -z "$LTCC" && LTCC=$CC
7224 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7225 test -z "$LD" && LD=ld
7226 test -z "$ac_objext" && ac_objext=o
7227
7228 for cc_temp in $compiler""; do
7229   case $cc_temp in
7230     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7231     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7232     \-*) ;;
7233     *) break;;
7234   esac
7235 done
7236 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7237
7238
7239 # Only perform the check for file, if the check method requires it
7240 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7241 case $deplibs_check_method in
7242 file_magic*)
7243   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7245 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7246 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7247   $as_echo_n "(cached) " >&6
7248 else
7249   case $MAGIC_CMD in
7250 [\\/*] |  ?:[\\/]*)
7251   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7252   ;;
7253 *)
7254   lt_save_MAGIC_CMD="$MAGIC_CMD"
7255   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7256   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7257   for ac_dir in $ac_dummy; do
7258     IFS="$lt_save_ifs"
7259     test -z "$ac_dir" && ac_dir=.
7260     if test -f $ac_dir/${ac_tool_prefix}file; then
7261       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7262       if test -n "$file_magic_test_file"; then
7263         case $deplibs_check_method in
7264         "file_magic "*)
7265           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7266           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7267           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7268             $EGREP "$file_magic_regex" > /dev/null; then
7269             :
7270           else
7271             cat <<_LT_EOF 1>&2
7272
7273 *** Warning: the command libtool uses to detect shared libraries,
7274 *** $file_magic_cmd, produces output that libtool cannot recognize.
7275 *** The result is that libtool may fail to recognize shared libraries
7276 *** as such.  This will affect the creation of libtool libraries that
7277 *** depend on shared libraries, but programs linked with such libtool
7278 *** libraries will work regardless of this problem.  Nevertheless, you
7279 *** may want to report the problem to your system manager and/or to
7280 *** bug-libtool@gnu.org
7281
7282 _LT_EOF
7283           fi ;;
7284         esac
7285       fi
7286       break
7287     fi
7288   done
7289   IFS="$lt_save_ifs"
7290   MAGIC_CMD="$lt_save_MAGIC_CMD"
7291   ;;
7292 esac
7293 fi
7294
7295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7296 if test -n "$MAGIC_CMD"; then
7297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7298 $as_echo "$MAGIC_CMD" >&6; }
7299 else
7300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7302 fi
7303
7304
7305
7306
7307
7308 if test -z "$lt_cv_path_MAGIC_CMD"; then
7309   if test -n "$ac_tool_prefix"; then
7310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7311 $as_echo_n "checking for file... " >&6; }
7312 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7313   $as_echo_n "(cached) " >&6
7314 else
7315   case $MAGIC_CMD in
7316 [\\/*] |  ?:[\\/]*)
7317   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7318   ;;
7319 *)
7320   lt_save_MAGIC_CMD="$MAGIC_CMD"
7321   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7322   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7323   for ac_dir in $ac_dummy; do
7324     IFS="$lt_save_ifs"
7325     test -z "$ac_dir" && ac_dir=.
7326     if test -f $ac_dir/file; then
7327       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7328       if test -n "$file_magic_test_file"; then
7329         case $deplibs_check_method in
7330         "file_magic "*)
7331           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7332           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7333           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7334             $EGREP "$file_magic_regex" > /dev/null; then
7335             :
7336           else
7337             cat <<_LT_EOF 1>&2
7338
7339 *** Warning: the command libtool uses to detect shared libraries,
7340 *** $file_magic_cmd, produces output that libtool cannot recognize.
7341 *** The result is that libtool may fail to recognize shared libraries
7342 *** as such.  This will affect the creation of libtool libraries that
7343 *** depend on shared libraries, but programs linked with such libtool
7344 *** libraries will work regardless of this problem.  Nevertheless, you
7345 *** may want to report the problem to your system manager and/or to
7346 *** bug-libtool@gnu.org
7347
7348 _LT_EOF
7349           fi ;;
7350         esac
7351       fi
7352       break
7353     fi
7354   done
7355   IFS="$lt_save_ifs"
7356   MAGIC_CMD="$lt_save_MAGIC_CMD"
7357   ;;
7358 esac
7359 fi
7360
7361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7362 if test -n "$MAGIC_CMD"; then
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7364 $as_echo "$MAGIC_CMD" >&6; }
7365 else
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370
7371   else
7372     MAGIC_CMD=:
7373   fi
7374 fi
7375
7376   fi
7377   ;;
7378 esac
7379
7380 # Use C for the default configuration in the libtool script
7381
7382 lt_save_CC="$CC"
7383 ac_ext=c
7384 ac_cpp='$CPP $CPPFLAGS'
7385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7388
7389
7390 # Source file extension for C test sources.
7391 ac_ext=c
7392
7393 # Object file extension for compiled C test sources.
7394 objext=o
7395 objext=$objext
7396
7397 # Code to be used in simple compile tests
7398 lt_simple_compile_test_code="int some_variable = 0;"
7399
7400 # Code to be used in simple link tests
7401 lt_simple_link_test_code='int main(){return(0);}'
7402
7403
7404
7405
7406
7407
7408
7409 # If no C compiler was specified, use CC.
7410 LTCC=${LTCC-"$CC"}
7411
7412 # If no C compiler flags were specified, use CFLAGS.
7413 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7414
7415 # Allow CC to be a program name with arguments.
7416 compiler=$CC
7417
7418 # Save the default compiler, since it gets overwritten when the other
7419 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7420 compiler_DEFAULT=$CC
7421
7422 # save warnings/boilerplate of simple test code
7423 ac_outfile=conftest.$ac_objext
7424 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7425 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7426 _lt_compiler_boilerplate=`cat conftest.err`
7427 $RM conftest*
7428
7429 ac_outfile=conftest.$ac_objext
7430 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7431 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7432 _lt_linker_boilerplate=`cat conftest.err`
7433 $RM -r conftest*
7434
7435
7436 ## CAVEAT EMPTOR:
7437 ## There is no encapsulation within the following macros, do not change
7438 ## the running order or otherwise move them around unless you know exactly
7439 ## what you are doing...
7440 if test -n "$compiler"; then
7441
7442 lt_prog_compiler_no_builtin_flag=
7443
7444 if test "$GCC" = yes; then
7445   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7446
7447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7448 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7449 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7450   $as_echo_n "(cached) " >&6
7451 else
7452   lt_cv_prog_compiler_rtti_exceptions=no
7453    ac_outfile=conftest.$ac_objext
7454    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7455    lt_compiler_flag="-fno-rtti -fno-exceptions"
7456    # Insert the option either (1) after the last *FLAGS variable, or
7457    # (2) before a word containing "conftest.", or (3) at the end.
7458    # Note that $ac_compile itself does not contain backslashes and begins
7459    # with a dollar sign (not a hyphen), so the echo should work correctly.
7460    # The option is referenced via a variable to avoid confusing sed.
7461    lt_compile=`echo "$ac_compile" | $SED \
7462    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7463    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7464    -e 's:$: $lt_compiler_flag:'`
7465    (eval echo "\"\$as_me:7465: $lt_compile\"" >&5)
7466    (eval "$lt_compile" 2>conftest.err)
7467    ac_status=$?
7468    cat conftest.err >&5
7469    echo "$as_me:7469: \$? = $ac_status" >&5
7470    if (exit $ac_status) && test -s "$ac_outfile"; then
7471      # The compiler can only warn and ignore the option if not recognized
7472      # So say no if there are warnings other than the usual output.
7473      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7474      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7475      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7476        lt_cv_prog_compiler_rtti_exceptions=yes
7477      fi
7478    fi
7479    $RM conftest*
7480
7481 fi
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7483 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7484
7485 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7486     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7487 else
7488     :
7489 fi
7490
7491 fi
7492
7493
7494
7495
7496
7497
7498   lt_prog_compiler_wl=
7499 lt_prog_compiler_pic=
7500 lt_prog_compiler_static=
7501
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7503 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7504
7505   if test "$GCC" = yes; then
7506     lt_prog_compiler_wl='-Wl,'
7507     lt_prog_compiler_static='-static'
7508
7509     case $host_os in
7510       aix*)
7511       # All AIX code is PIC.
7512       if test "$host_cpu" = ia64; then
7513         # AIX 5 now supports IA64 processor
7514         lt_prog_compiler_static='-Bstatic'
7515       fi
7516       ;;
7517
7518     amigaos*)
7519       case $host_cpu in
7520       powerpc)
7521             # see comment about AmigaOS4 .so support
7522             lt_prog_compiler_pic='-fPIC'
7523         ;;
7524       m68k)
7525             # FIXME: we need at least 68020 code to build shared libraries, but
7526             # adding the `-m68020' flag to GCC prevents building anything better,
7527             # like `-m68040'.
7528             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7529         ;;
7530       esac
7531       ;;
7532
7533     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7534       # PIC is the default for these OSes.
7535       ;;
7536
7537     mingw* | cygwin* | pw32* | os2* | cegcc*)
7538       # This hack is so that the source file can tell whether it is being
7539       # built for inclusion in a dll (and should export symbols for example).
7540       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7541       # (--disable-auto-import) libraries
7542       lt_prog_compiler_pic='-DDLL_EXPORT'
7543       ;;
7544
7545     darwin* | rhapsody*)
7546       # PIC is the default on this platform
7547       # Common symbols not allowed in MH_DYLIB files
7548       lt_prog_compiler_pic='-fno-common'
7549       ;;
7550
7551     hpux*)
7552       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7553       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7554       # sets the default TLS model and affects inlining.
7555       case $host_cpu in
7556       hppa*64*)
7557         # +Z the default
7558         ;;
7559       *)
7560         lt_prog_compiler_pic='-fPIC'
7561         ;;
7562       esac
7563       ;;
7564
7565     interix[3-9]*)
7566       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7567       # Instead, we relocate shared libraries at runtime.
7568       ;;
7569
7570     msdosdjgpp*)
7571       # Just because we use GCC doesn't mean we suddenly get shared libraries
7572       # on systems that don't support them.
7573       lt_prog_compiler_can_build_shared=no
7574       enable_shared=no
7575       ;;
7576
7577     *nto* | *qnx*)
7578       # QNX uses GNU C++, but need to define -shared option too, otherwise
7579       # it will coredump.
7580       lt_prog_compiler_pic='-fPIC -shared'
7581       ;;
7582
7583     sysv4*MP*)
7584       if test -d /usr/nec; then
7585         lt_prog_compiler_pic=-Kconform_pic
7586       fi
7587       ;;
7588
7589     *)
7590       lt_prog_compiler_pic='-fPIC'
7591       ;;
7592     esac
7593   else
7594     # PORTME Check for flag to pass linker flags through the system compiler.
7595     case $host_os in
7596     aix*)
7597       lt_prog_compiler_wl='-Wl,'
7598       if test "$host_cpu" = ia64; then
7599         # AIX 5 now supports IA64 processor
7600         lt_prog_compiler_static='-Bstatic'
7601       else
7602         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7603       fi
7604       ;;
7605
7606     mingw* | cygwin* | pw32* | os2* | cegcc*)
7607       # This hack is so that the source file can tell whether it is being
7608       # built for inclusion in a dll (and should export symbols for example).
7609       lt_prog_compiler_pic='-DDLL_EXPORT'
7610       ;;
7611
7612     hpux9* | hpux10* | hpux11*)
7613       lt_prog_compiler_wl='-Wl,'
7614       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7615       # not for PA HP-UX.
7616       case $host_cpu in
7617       hppa*64*|ia64*)
7618         # +Z the default
7619         ;;
7620       *)
7621         lt_prog_compiler_pic='+Z'
7622         ;;
7623       esac
7624       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7625       lt_prog_compiler_static='${wl}-a ${wl}archive'
7626       ;;
7627
7628     irix5* | irix6* | nonstopux*)
7629       lt_prog_compiler_wl='-Wl,'
7630       # PIC (with -KPIC) is the default.
7631       lt_prog_compiler_static='-non_shared'
7632       ;;
7633
7634     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7635       case $cc_basename in
7636       # old Intel for x86_64 which still supported -KPIC.
7637       ecc*)
7638         lt_prog_compiler_wl='-Wl,'
7639         lt_prog_compiler_pic='-KPIC'
7640         lt_prog_compiler_static='-static'
7641         ;;
7642       # icc used to be incompatible with GCC.
7643       # ICC 10 doesn't accept -KPIC any more.
7644       icc* | ifort*)
7645         lt_prog_compiler_wl='-Wl,'
7646         lt_prog_compiler_pic='-fPIC'
7647         lt_prog_compiler_static='-static'
7648         ;;
7649       # Lahey Fortran 8.1.
7650       lf95*)
7651         lt_prog_compiler_wl='-Wl,'
7652         lt_prog_compiler_pic='--shared'
7653         lt_prog_compiler_static='--static'
7654         ;;
7655       pgcc* | pgf77* | pgf90* | pgf95*)
7656         # Portland Group compilers (*not* the Pentium gcc compiler,
7657         # which looks to be a dead project)
7658         lt_prog_compiler_wl='-Wl,'
7659         lt_prog_compiler_pic='-fpic'
7660         lt_prog_compiler_static='-Bstatic'
7661         ;;
7662       ccc*)
7663         lt_prog_compiler_wl='-Wl,'
7664         # All Alpha code is PIC.
7665         lt_prog_compiler_static='-non_shared'
7666         ;;
7667       xl*)
7668         # IBM XL C 8.0/Fortran 10.1 on PPC
7669         lt_prog_compiler_wl='-Wl,'
7670         lt_prog_compiler_pic='-qpic'
7671         lt_prog_compiler_static='-qstaticlink'
7672         ;;
7673       *)
7674         case `$CC -V 2>&1 | sed 5q` in
7675         *Sun\ C*)
7676           # Sun C 5.9
7677           lt_prog_compiler_pic='-KPIC'
7678           lt_prog_compiler_static='-Bstatic'
7679           lt_prog_compiler_wl='-Wl,'
7680           ;;
7681         *Sun\ F*)
7682           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7683           lt_prog_compiler_pic='-KPIC'
7684           lt_prog_compiler_static='-Bstatic'
7685           lt_prog_compiler_wl=''
7686           ;;
7687         esac
7688         ;;
7689       esac
7690       ;;
7691
7692     newsos6)
7693       lt_prog_compiler_pic='-KPIC'
7694       lt_prog_compiler_static='-Bstatic'
7695       ;;
7696
7697     *nto* | *qnx*)
7698       # QNX uses GNU C++, but need to define -shared option too, otherwise
7699       # it will coredump.
7700       lt_prog_compiler_pic='-fPIC -shared'
7701       ;;
7702
7703     osf3* | osf4* | osf5*)
7704       lt_prog_compiler_wl='-Wl,'
7705       # All OSF/1 code is PIC.
7706       lt_prog_compiler_static='-non_shared'
7707       ;;
7708
7709     rdos*)
7710       lt_prog_compiler_static='-non_shared'
7711       ;;
7712
7713     solaris*)
7714       lt_prog_compiler_pic='-KPIC'
7715       lt_prog_compiler_static='-Bstatic'
7716       case $cc_basename in
7717       f77* | f90* | f95*)
7718         lt_prog_compiler_wl='-Qoption ld ';;
7719       *)
7720         lt_prog_compiler_wl='-Wl,';;
7721       esac
7722       ;;
7723
7724     sunos4*)
7725       lt_prog_compiler_wl='-Qoption ld '
7726       lt_prog_compiler_pic='-PIC'
7727       lt_prog_compiler_static='-Bstatic'
7728       ;;
7729
7730     sysv4 | sysv4.2uw2* | sysv4.3*)
7731       lt_prog_compiler_wl='-Wl,'
7732       lt_prog_compiler_pic='-KPIC'
7733       lt_prog_compiler_static='-Bstatic'
7734       ;;
7735
7736     sysv4*MP*)
7737       if test -d /usr/nec ;then
7738         lt_prog_compiler_pic='-Kconform_pic'
7739         lt_prog_compiler_static='-Bstatic'
7740       fi
7741       ;;
7742
7743     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7744       lt_prog_compiler_wl='-Wl,'
7745       lt_prog_compiler_pic='-KPIC'
7746       lt_prog_compiler_static='-Bstatic'
7747       ;;
7748
7749     unicos*)
7750       lt_prog_compiler_wl='-Wl,'
7751       lt_prog_compiler_can_build_shared=no
7752       ;;
7753
7754     uts4*)
7755       lt_prog_compiler_pic='-pic'
7756       lt_prog_compiler_static='-Bstatic'
7757       ;;
7758
7759     *)
7760       lt_prog_compiler_can_build_shared=no
7761       ;;
7762     esac
7763   fi
7764
7765 case $host_os in
7766   # For platforms which do not support PIC, -DPIC is meaningless:
7767   *djgpp*)
7768     lt_prog_compiler_pic=
7769     ;;
7770   *)
7771     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7772     ;;
7773 esac
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7775 $as_echo "$lt_prog_compiler_pic" >&6; }
7776
7777
7778
7779
7780
7781
7782 #
7783 # Check to make sure the PIC flag actually works.
7784 #
7785 if test -n "$lt_prog_compiler_pic"; then
7786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7787 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7788 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7789   $as_echo_n "(cached) " >&6
7790 else
7791   lt_cv_prog_compiler_pic_works=no
7792    ac_outfile=conftest.$ac_objext
7793    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7794    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7795    # Insert the option either (1) after the last *FLAGS variable, or
7796    # (2) before a word containing "conftest.", or (3) at the end.
7797    # Note that $ac_compile itself does not contain backslashes and begins
7798    # with a dollar sign (not a hyphen), so the echo should work correctly.
7799    # The option is referenced via a variable to avoid confusing sed.
7800    lt_compile=`echo "$ac_compile" | $SED \
7801    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7802    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7803    -e 's:$: $lt_compiler_flag:'`
7804    (eval echo "\"\$as_me:7804: $lt_compile\"" >&5)
7805    (eval "$lt_compile" 2>conftest.err)
7806    ac_status=$?
7807    cat conftest.err >&5
7808    echo "$as_me:7808: \$? = $ac_status" >&5
7809    if (exit $ac_status) && test -s "$ac_outfile"; then
7810      # The compiler can only warn and ignore the option if not recognized
7811      # So say no if there are warnings other than the usual output.
7812      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7813      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7814      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7815        lt_cv_prog_compiler_pic_works=yes
7816      fi
7817    fi
7818    $RM conftest*
7819
7820 fi
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7822 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7823
7824 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7825     case $lt_prog_compiler_pic in
7826      "" | " "*) ;;
7827      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7828      esac
7829 else
7830     lt_prog_compiler_pic=
7831      lt_prog_compiler_can_build_shared=no
7832 fi
7833
7834 fi
7835
7836
7837
7838
7839
7840
7841 #
7842 # Check to make sure the static flag actually works.
7843 #
7844 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7846 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7847 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7848   $as_echo_n "(cached) " >&6
7849 else
7850   lt_cv_prog_compiler_static_works=no
7851    save_LDFLAGS="$LDFLAGS"
7852    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7853    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7854    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7855      # The linker can only warn and ignore the option if not recognized
7856      # So say no if there are warnings
7857      if test -s conftest.err; then
7858        # Append any errors to the config.log.
7859        cat conftest.err 1>&5
7860        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7861        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7862        if diff conftest.exp conftest.er2 >/dev/null; then
7863          lt_cv_prog_compiler_static_works=yes
7864        fi
7865      else
7866        lt_cv_prog_compiler_static_works=yes
7867      fi
7868    fi
7869    $RM -r conftest*
7870    LDFLAGS="$save_LDFLAGS"
7871
7872 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7874 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7875
7876 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7877     :
7878 else
7879     lt_prog_compiler_static=
7880 fi
7881
7882
7883
7884
7885
7886
7887
7888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7889 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7890 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7891   $as_echo_n "(cached) " >&6
7892 else
7893   lt_cv_prog_compiler_c_o=no
7894    $RM -r conftest 2>/dev/null
7895    mkdir conftest
7896    cd conftest
7897    mkdir out
7898    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7899
7900    lt_compiler_flag="-o out/conftest2.$ac_objext"
7901    # Insert the option either (1) after the last *FLAGS variable, or
7902    # (2) before a word containing "conftest.", or (3) at the end.
7903    # Note that $ac_compile itself does not contain backslashes and begins
7904    # with a dollar sign (not a hyphen), so the echo should work correctly.
7905    lt_compile=`echo "$ac_compile" | $SED \
7906    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7907    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7908    -e 's:$: $lt_compiler_flag:'`
7909    (eval echo "\"\$as_me:7909: $lt_compile\"" >&5)
7910    (eval "$lt_compile" 2>out/conftest.err)
7911    ac_status=$?
7912    cat out/conftest.err >&5
7913    echo "$as_me:7913: \$? = $ac_status" >&5
7914    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7915    then
7916      # The compiler can only warn and ignore the option if not recognized
7917      # So say no if there are warnings
7918      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7919      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7920      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7921        lt_cv_prog_compiler_c_o=yes
7922      fi
7923    fi
7924    chmod u+w . 2>&5
7925    $RM conftest*
7926    # SGI C++ compiler will create directory out/ii_files/ for
7927    # template instantiation
7928    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7929    $RM out/* && rmdir out
7930    cd ..
7931    $RM -r conftest
7932    $RM conftest*
7933
7934 fi
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7936 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7937
7938
7939
7940
7941
7942
7943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7944 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7945 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7946   $as_echo_n "(cached) " >&6
7947 else
7948   lt_cv_prog_compiler_c_o=no
7949    $RM -r conftest 2>/dev/null
7950    mkdir conftest
7951    cd conftest
7952    mkdir out
7953    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7954
7955    lt_compiler_flag="-o out/conftest2.$ac_objext"
7956    # Insert the option either (1) after the last *FLAGS variable, or
7957    # (2) before a word containing "conftest.", or (3) at the end.
7958    # Note that $ac_compile itself does not contain backslashes and begins
7959    # with a dollar sign (not a hyphen), so the echo should work correctly.
7960    lt_compile=`echo "$ac_compile" | $SED \
7961    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7962    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7963    -e 's:$: $lt_compiler_flag:'`
7964    (eval echo "\"\$as_me:7964: $lt_compile\"" >&5)
7965    (eval "$lt_compile" 2>out/conftest.err)
7966    ac_status=$?
7967    cat out/conftest.err >&5
7968    echo "$as_me:7968: \$? = $ac_status" >&5
7969    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7970    then
7971      # The compiler can only warn and ignore the option if not recognized
7972      # So say no if there are warnings
7973      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7974      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7975      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7976        lt_cv_prog_compiler_c_o=yes
7977      fi
7978    fi
7979    chmod u+w . 2>&5
7980    $RM conftest*
7981    # SGI C++ compiler will create directory out/ii_files/ for
7982    # template instantiation
7983    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7984    $RM out/* && rmdir out
7985    cd ..
7986    $RM -r conftest
7987    $RM conftest*
7988
7989 fi
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7991 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7992
7993
7994
7995
7996 hard_links="nottested"
7997 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7998   # do not overwrite the value of need_locks provided by the user
7999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8000 $as_echo_n "checking if we can lock with hard links... " >&6; }
8001   hard_links=yes
8002   $RM conftest*
8003   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8004   touch conftest.a
8005   ln conftest.a conftest.b 2>&5 || hard_links=no
8006   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8008 $as_echo "$hard_links" >&6; }
8009   if test "$hard_links" = no; then
8010     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8011 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8012     need_locks=warn
8013   fi
8014 else
8015   need_locks=no
8016 fi
8017
8018
8019
8020
8021
8022
8023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8024 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8025
8026   runpath_var=
8027   allow_undefined_flag=
8028   always_export_symbols=no
8029   archive_cmds=
8030   archive_expsym_cmds=
8031   compiler_needs_object=no
8032   enable_shared_with_static_runtimes=no
8033   export_dynamic_flag_spec=
8034   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8035   hardcode_automatic=no
8036   hardcode_direct=no
8037   hardcode_direct_absolute=no
8038   hardcode_libdir_flag_spec=
8039   hardcode_libdir_flag_spec_ld=
8040   hardcode_libdir_separator=
8041   hardcode_minus_L=no
8042   hardcode_shlibpath_var=unsupported
8043   inherit_rpath=no
8044   link_all_deplibs=unknown
8045   module_cmds=
8046   module_expsym_cmds=
8047   old_archive_from_new_cmds=
8048   old_archive_from_expsyms_cmds=
8049   thread_safe_flag_spec=
8050   whole_archive_flag_spec=
8051   # include_expsyms should be a list of space-separated symbols to be *always*
8052   # included in the symbol list
8053   include_expsyms=
8054   # exclude_expsyms can be an extended regexp of symbols to exclude
8055   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8056   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8057   # as well as any symbol that contains `d'.
8058   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8059   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8060   # platforms (ab)use it in PIC code, but their linkers get confused if
8061   # the symbol is explicitly referenced.  Since portable code cannot
8062   # rely on this symbol name, it's probably fine to never include it in
8063   # preloaded symbol tables.
8064   # Exclude shared library initialization/finalization symbols.
8065   extract_expsyms_cmds=
8066
8067   case $host_os in
8068   cygwin* | mingw* | pw32* | cegcc*)
8069     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8070     # When not using gcc, we currently assume that we are using
8071     # Microsoft Visual C++.
8072     if test "$GCC" != yes; then
8073       with_gnu_ld=no
8074     fi
8075     ;;
8076   interix*)
8077     # we just hope/assume this is gcc and not c89 (= MSVC++)
8078     with_gnu_ld=yes
8079     ;;
8080   openbsd*)
8081     with_gnu_ld=no
8082     ;;
8083   linux* | k*bsd*-gnu)
8084     link_all_deplibs=no
8085     ;;
8086   esac
8087
8088   ld_shlibs=yes
8089   if test "$with_gnu_ld" = yes; then
8090     # If archive_cmds runs LD, not CC, wlarc should be empty
8091     wlarc='${wl}'
8092
8093     # Set some defaults for GNU ld with shared library support. These
8094     # are reset later if shared libraries are not supported. Putting them
8095     # here allows them to be overridden if necessary.
8096     runpath_var=LD_RUN_PATH
8097     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8098     export_dynamic_flag_spec='${wl}--export-dynamic'
8099     # ancient GNU ld didn't support --whole-archive et. al.
8100     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8101       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8102     else
8103       whole_archive_flag_spec=
8104     fi
8105     supports_anon_versioning=no
8106     case `$LD -v 2>&1` in
8107       *GNU\ gold*) supports_anon_versioning=yes ;;
8108       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8109       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8110       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8111       *\ 2.11.*) ;; # other 2.11 versions
8112       *) supports_anon_versioning=yes ;;
8113     esac
8114
8115     # See if GNU ld supports shared libraries.
8116     case $host_os in
8117     aix[3-9]*)
8118       # On AIX/PPC, the GNU linker is very broken
8119       if test "$host_cpu" != ia64; then
8120         ld_shlibs=no
8121         cat <<_LT_EOF 1>&2
8122
8123 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8124 *** to be unable to reliably create shared libraries on AIX.
8125 *** Therefore, libtool is disabling shared libraries support.  If you
8126 *** really care for shared libraries, you may want to modify your PATH
8127 *** so that a non-GNU linker is found, and then restart.
8128
8129 _LT_EOF
8130       fi
8131       ;;
8132
8133     amigaos*)
8134       case $host_cpu in
8135       powerpc)
8136             # see comment about AmigaOS4 .so support
8137             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8138             archive_expsym_cmds=''
8139         ;;
8140       m68k)
8141             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)'
8142             hardcode_libdir_flag_spec='-L$libdir'
8143             hardcode_minus_L=yes
8144         ;;
8145       esac
8146       ;;
8147
8148     beos*)
8149       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8150         allow_undefined_flag=unsupported
8151         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8152         # support --undefined.  This deserves some investigation.  FIXME
8153         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8154       else
8155         ld_shlibs=no
8156       fi
8157       ;;
8158
8159     cygwin* | mingw* | pw32* | cegcc*)
8160       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8161       # as there is no search path for DLLs.
8162       hardcode_libdir_flag_spec='-L$libdir'
8163       allow_undefined_flag=unsupported
8164       always_export_symbols=no
8165       enable_shared_with_static_runtimes=yes
8166       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8167
8168       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8169         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8170         # If the export-symbols file already is a .def file (1st line
8171         # is EXPORTS), use it as is; otherwise, prepend...
8172         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8173           cp $export_symbols $output_objdir/$soname.def;
8174         else
8175           echo EXPORTS > $output_objdir/$soname.def;
8176           cat $export_symbols >> $output_objdir/$soname.def;
8177         fi~
8178         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8179       else
8180         ld_shlibs=no
8181       fi
8182       ;;
8183
8184     interix[3-9]*)
8185       hardcode_direct=no
8186       hardcode_shlibpath_var=no
8187       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8188       export_dynamic_flag_spec='${wl}-E'
8189       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8190       # Instead, shared libraries are loaded at an image base (0x10000000 by
8191       # default) and relocated if they conflict, which is a slow very memory
8192       # consuming and fragmenting process.  To avoid this, we pick a random,
8193       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8194       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8195       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8196       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'
8197       ;;
8198
8199     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8200       tmp_diet=no
8201       if test "$host_os" = linux-dietlibc; then
8202         case $cc_basename in
8203           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8204         esac
8205       fi
8206       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8207          && test "$tmp_diet" = no
8208       then
8209         tmp_addflag=
8210         tmp_sharedflag='-shared'
8211         case $cc_basename,$host_cpu in
8212         pgcc*)                          # Portland Group C compiler
8213           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8214           tmp_addflag=' $pic_flag'
8215           ;;
8216         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8217           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8218           tmp_addflag=' $pic_flag -Mnomain' ;;
8219         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8220           tmp_addflag=' -i_dynamic' ;;
8221         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8222           tmp_addflag=' -i_dynamic -nofor_main' ;;
8223         ifc* | ifort*)                  # Intel Fortran compiler
8224           tmp_addflag=' -nofor_main' ;;
8225         lf95*)                          # Lahey Fortran 8.1
8226           whole_archive_flag_spec=
8227           tmp_sharedflag='--shared' ;;
8228         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8229           tmp_sharedflag='-qmkshrobj'
8230           tmp_addflag= ;;
8231         esac
8232         case `$CC -V 2>&1 | sed 5q` in
8233         *Sun\ C*)                       # Sun C 5.9
8234           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8235           compiler_needs_object=yes
8236           tmp_sharedflag='-G' ;;
8237         *Sun\ F*)                       # Sun Fortran 8.3
8238           tmp_sharedflag='-G' ;;
8239         esac
8240         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8241
8242         if test "x$supports_anon_versioning" = xyes; then
8243           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8244             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8245             echo "local: *; };" >> $output_objdir/$libname.ver~
8246             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8247         fi
8248
8249         case $cc_basename in
8250         xlf*)
8251           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8252           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8253           hardcode_libdir_flag_spec=
8254           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8255           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8256           if test "x$supports_anon_versioning" = xyes; then
8257             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8258               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8259               echo "local: *; };" >> $output_objdir/$libname.ver~
8260               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8261           fi
8262           ;;
8263         esac
8264       else
8265         ld_shlibs=no
8266       fi
8267       ;;
8268
8269     netbsd* | netbsdelf*-gnu)
8270       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8271         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8272         wlarc=
8273       else
8274         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8276       fi
8277       ;;
8278
8279     solaris*)
8280       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8281         ld_shlibs=no
8282         cat <<_LT_EOF 1>&2
8283
8284 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8285 *** create shared libraries on Solaris systems.  Therefore, libtool
8286 *** is disabling shared libraries support.  We urge you to upgrade GNU
8287 *** binutils to release 2.9.1 or newer.  Another option is to modify
8288 *** your PATH or compiler configuration so that the native linker is
8289 *** used, and then restart.
8290
8291 _LT_EOF
8292       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8293         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8294         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8295       else
8296         ld_shlibs=no
8297       fi
8298       ;;
8299
8300     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8301       case `$LD -v 2>&1` in
8302         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8303         ld_shlibs=no
8304         cat <<_LT_EOF 1>&2
8305
8306 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8307 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8308 *** is disabling shared libraries support.  We urge you to upgrade GNU
8309 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8310 *** your PATH or compiler configuration so that the native linker is
8311 *** used, and then restart.
8312
8313 _LT_EOF
8314         ;;
8315         *)
8316           # For security reasons, it is highly recommended that you always
8317           # use absolute paths for naming shared libraries, and exclude the
8318           # DT_RUNPATH tag from executables and libraries.  But doing so
8319           # requires that you compile everything twice, which is a pain.
8320           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8321             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8322             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8323             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8324           else
8325             ld_shlibs=no
8326           fi
8327         ;;
8328       esac
8329       ;;
8330
8331     sunos4*)
8332       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8333       wlarc=
8334       hardcode_direct=yes
8335       hardcode_shlibpath_var=no
8336       ;;
8337
8338     *)
8339       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8340         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8341         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8342       else
8343         ld_shlibs=no
8344       fi
8345       ;;
8346     esac
8347
8348     if test "$ld_shlibs" = no; then
8349       runpath_var=
8350       hardcode_libdir_flag_spec=
8351       export_dynamic_flag_spec=
8352       whole_archive_flag_spec=
8353     fi
8354   else
8355     # PORTME fill in a description of your system's linker (not GNU ld)
8356     case $host_os in
8357     aix3*)
8358       allow_undefined_flag=unsupported
8359       always_export_symbols=yes
8360       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'
8361       # Note: this linker hardcodes the directories in LIBPATH if there
8362       # are no directories specified by -L.
8363       hardcode_minus_L=yes
8364       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8365         # Neither direct hardcoding nor static linking is supported with a
8366         # broken collect2.
8367         hardcode_direct=unsupported
8368       fi
8369       ;;
8370
8371     aix[4-9]*)
8372       if test "$host_cpu" = ia64; then
8373         # On IA64, the linker does run time linking by default, so we don't
8374         # have to do anything special.
8375         aix_use_runtimelinking=no
8376         exp_sym_flag='-Bexport'
8377         no_entry_flag=""
8378       else
8379         # If we're using GNU nm, then we don't want the "-C" option.
8380         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8381         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8382           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8383         else
8384           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'
8385         fi
8386         aix_use_runtimelinking=no
8387
8388         # Test if we are trying to use run time linking or normal
8389         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8390         # need to do runtime linking.
8391         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8392           for ld_flag in $LDFLAGS; do
8393           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8394             aix_use_runtimelinking=yes
8395             break
8396           fi
8397           done
8398           ;;
8399         esac
8400
8401         exp_sym_flag='-bexport'
8402         no_entry_flag='-bnoentry'
8403       fi
8404
8405       # When large executables or shared objects are built, AIX ld can
8406       # have problems creating the table of contents.  If linking a library
8407       # or program results in "error TOC overflow" add -mminimal-toc to
8408       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8409       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8410
8411       archive_cmds=''
8412       hardcode_direct=yes
8413       hardcode_direct_absolute=yes
8414       hardcode_libdir_separator=':'
8415       link_all_deplibs=yes
8416       file_list_spec='${wl}-f,'
8417
8418       if test "$GCC" = yes; then
8419         case $host_os in aix4.[012]|aix4.[012].*)
8420         # We only want to do this on AIX 4.2 and lower, the check
8421         # below for broken collect2 doesn't work under 4.3+
8422           collect2name=`${CC} -print-prog-name=collect2`
8423           if test -f "$collect2name" &&
8424            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8425           then
8426           # We have reworked collect2
8427           :
8428           else
8429           # We have old collect2
8430           hardcode_direct=unsupported
8431           # It fails to find uninstalled libraries when the uninstalled
8432           # path is not listed in the libpath.  Setting hardcode_minus_L
8433           # to unsupported forces relinking
8434           hardcode_minus_L=yes
8435           hardcode_libdir_flag_spec='-L$libdir'
8436           hardcode_libdir_separator=
8437           fi
8438           ;;
8439         esac
8440         shared_flag='-shared'
8441         if test "$aix_use_runtimelinking" = yes; then
8442           shared_flag="$shared_flag "'${wl}-G'
8443         fi
8444         link_all_deplibs=no
8445       else
8446         # not using gcc
8447         if test "$host_cpu" = ia64; then
8448         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8449         # chokes on -Wl,-G. The following line is correct:
8450           shared_flag='-G'
8451         else
8452           if test "$aix_use_runtimelinking" = yes; then
8453             shared_flag='${wl}-G'
8454           else
8455             shared_flag='${wl}-bM:SRE'
8456           fi
8457         fi
8458       fi
8459
8460       export_dynamic_flag_spec='${wl}-bexpall'
8461       # It seems that -bexpall does not export symbols beginning with
8462       # underscore (_), so it is better to generate a list of symbols to export.
8463       always_export_symbols=yes
8464       if test "$aix_use_runtimelinking" = yes; then
8465         # Warning - without using the other runtime loading flags (-brtl),
8466         # -berok will link without error, but may produce a broken library.
8467         allow_undefined_flag='-berok'
8468         # Determine the default libpath from the value encoded in an
8469         # empty executable.
8470         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h.  */
8472
8473 int
8474 main ()
8475 {
8476
8477   ;
8478   return 0;
8479 }
8480 _ACEOF
8481 if ac_fn_c_try_link "$LINENO"; then :
8482
8483 lt_aix_libpath_sed='
8484     /Import File Strings/,/^$/ {
8485         /^0/ {
8486             s/^0  *\(.*\)$/\1/
8487             p
8488         }
8489     }'
8490 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8491 # Check for a 64-bit object if we didn't find anything.
8492 if test -z "$aix_libpath"; then
8493   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8494 fi
8495 fi
8496 rm -f core conftest.err conftest.$ac_objext \
8497     conftest$ac_exeext conftest.$ac_ext
8498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8499
8500         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8501         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8502       else
8503         if test "$host_cpu" = ia64; then
8504           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8505           allow_undefined_flag="-z nodefs"
8506           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"
8507         else
8508          # Determine the default libpath from the value encoded in an
8509          # empty executable.
8510          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h.  */
8512
8513 int
8514 main ()
8515 {
8516
8517   ;
8518   return 0;
8519 }
8520 _ACEOF
8521 if ac_fn_c_try_link "$LINENO"; then :
8522
8523 lt_aix_libpath_sed='
8524     /Import File Strings/,/^$/ {
8525         /^0/ {
8526             s/^0  *\(.*\)$/\1/
8527             p
8528         }
8529     }'
8530 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8531 # Check for a 64-bit object if we didn't find anything.
8532 if test -z "$aix_libpath"; then
8533   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8534 fi
8535 fi
8536 rm -f core conftest.err conftest.$ac_objext \
8537     conftest$ac_exeext conftest.$ac_ext
8538 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8539
8540          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8541           # Warning - without using the other run time loading flags,
8542           # -berok will link without error, but may produce a broken library.
8543           no_undefined_flag=' ${wl}-bernotok'
8544           allow_undefined_flag=' ${wl}-berok'
8545           # Exported symbols can be pulled into shared objects from archives
8546           whole_archive_flag_spec='$convenience'
8547           archive_cmds_need_lc=yes
8548           # This is similar to how AIX traditionally builds its shared libraries.
8549           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'
8550         fi
8551       fi
8552       ;;
8553
8554     amigaos*)
8555       case $host_cpu in
8556       powerpc)
8557             # see comment about AmigaOS4 .so support
8558             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8559             archive_expsym_cmds=''
8560         ;;
8561       m68k)
8562             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)'
8563             hardcode_libdir_flag_spec='-L$libdir'
8564             hardcode_minus_L=yes
8565         ;;
8566       esac
8567       ;;
8568
8569     bsdi[45]*)
8570       export_dynamic_flag_spec=-rdynamic
8571       ;;
8572
8573     cygwin* | mingw* | pw32* | cegcc*)
8574       # When not using gcc, we currently assume that we are using
8575       # Microsoft Visual C++.
8576       # hardcode_libdir_flag_spec is actually meaningless, as there is
8577       # no search path for DLLs.
8578       hardcode_libdir_flag_spec=' '
8579       allow_undefined_flag=unsupported
8580       # Tell ltmain to make .lib files, not .a files.
8581       libext=lib
8582       # Tell ltmain to make .dll files, not .so files.
8583       shrext_cmds=".dll"
8584       # FIXME: Setting linknames here is a bad hack.
8585       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8586       # The linker will automatically build a .lib file if we build a DLL.
8587       old_archive_from_new_cmds='true'
8588       # FIXME: Should let the user specify the lib program.
8589       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8590       fix_srcfile_path='`cygpath -w "$srcfile"`'
8591       enable_shared_with_static_runtimes=yes
8592       ;;
8593
8594     darwin* | rhapsody*)
8595
8596
8597   archive_cmds_need_lc=no
8598   hardcode_direct=no
8599   hardcode_automatic=yes
8600   hardcode_shlibpath_var=unsupported
8601   whole_archive_flag_spec=''
8602   link_all_deplibs=yes
8603   allow_undefined_flag="$_lt_dar_allow_undefined"
8604   case $cc_basename in
8605      ifort*) _lt_dar_can_shared=yes ;;
8606      *) _lt_dar_can_shared=$GCC ;;
8607   esac
8608   if test "$_lt_dar_can_shared" = "yes"; then
8609     output_verbose_link_cmd=echo
8610     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8611     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8612     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}"
8613     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}"
8614
8615   else
8616   ld_shlibs=no
8617   fi
8618
8619       ;;
8620
8621     dgux*)
8622       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8623       hardcode_libdir_flag_spec='-L$libdir'
8624       hardcode_shlibpath_var=no
8625       ;;
8626
8627     freebsd1*)
8628       ld_shlibs=no
8629       ;;
8630
8631     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8632     # support.  Future versions do this automatically, but an explicit c++rt0.o
8633     # does not break anything, and helps significantly (at the cost of a little
8634     # extra space).
8635     freebsd2.2*)
8636       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8637       hardcode_libdir_flag_spec='-R$libdir'
8638       hardcode_direct=yes
8639       hardcode_shlibpath_var=no
8640       ;;
8641
8642     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8643     freebsd2*)
8644       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8645       hardcode_direct=yes
8646       hardcode_minus_L=yes
8647       hardcode_shlibpath_var=no
8648       ;;
8649
8650     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8651     freebsd* | dragonfly*)
8652       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8653       hardcode_libdir_flag_spec='-R$libdir'
8654       hardcode_direct=yes
8655       hardcode_shlibpath_var=no
8656       ;;
8657
8658     hpux9*)
8659       if test "$GCC" = yes; then
8660         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8661       else
8662         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'
8663       fi
8664       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8665       hardcode_libdir_separator=:
8666       hardcode_direct=yes
8667
8668       # hardcode_minus_L: Not really in the search PATH,
8669       # but as the default location of the library.
8670       hardcode_minus_L=yes
8671       export_dynamic_flag_spec='${wl}-E'
8672       ;;
8673
8674     hpux10*)
8675       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8676         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8677       else
8678         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8679       fi
8680       if test "$with_gnu_ld" = no; then
8681         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8682         hardcode_libdir_flag_spec_ld='+b $libdir'
8683         hardcode_libdir_separator=:
8684         hardcode_direct=yes
8685         hardcode_direct_absolute=yes
8686         export_dynamic_flag_spec='${wl}-E'
8687         # hardcode_minus_L: Not really in the search PATH,
8688         # but as the default location of the library.
8689         hardcode_minus_L=yes
8690       fi
8691       ;;
8692
8693     hpux11*)
8694       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8695         case $host_cpu in
8696         hppa*64*)
8697           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8698           ;;
8699         ia64*)
8700           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8701           ;;
8702         *)
8703           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8704           ;;
8705         esac
8706       else
8707         case $host_cpu in
8708         hppa*64*)
8709           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8710           ;;
8711         ia64*)
8712           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8713           ;;
8714         *)
8715           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8716           ;;
8717         esac
8718       fi
8719       if test "$with_gnu_ld" = no; then
8720         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8721         hardcode_libdir_separator=:
8722
8723         case $host_cpu in
8724         hppa*64*|ia64*)
8725           hardcode_direct=no
8726           hardcode_shlibpath_var=no
8727           ;;
8728         *)
8729           hardcode_direct=yes
8730           hardcode_direct_absolute=yes
8731           export_dynamic_flag_spec='${wl}-E'
8732
8733           # hardcode_minus_L: Not really in the search PATH,
8734           # but as the default location of the library.
8735           hardcode_minus_L=yes
8736           ;;
8737         esac
8738       fi
8739       ;;
8740
8741     irix5* | irix6* | nonstopux*)
8742       if test "$GCC" = yes; then
8743         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8744         # Try to use the -exported_symbol ld option, if it does not
8745         # work, assume that -exports_file does not work either and
8746         # implicitly export all symbols.
8747         save_LDFLAGS="$LDFLAGS"
8748         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8749         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h.  */
8751 int foo(void) {}
8752 _ACEOF
8753 if ac_fn_c_try_link "$LINENO"; then :
8754   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8755
8756 fi
8757 rm -f core conftest.err conftest.$ac_objext \
8758     conftest$ac_exeext conftest.$ac_ext
8759         LDFLAGS="$save_LDFLAGS"
8760       else
8761         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8762         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8763       fi
8764       archive_cmds_need_lc='no'
8765       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8766       hardcode_libdir_separator=:
8767       inherit_rpath=yes
8768       link_all_deplibs=yes
8769       ;;
8770
8771     netbsd* | netbsdelf*-gnu)
8772       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8773         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8774       else
8775         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8776       fi
8777       hardcode_libdir_flag_spec='-R$libdir'
8778       hardcode_direct=yes
8779       hardcode_shlibpath_var=no
8780       ;;
8781
8782     newsos6)
8783       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8784       hardcode_direct=yes
8785       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8786       hardcode_libdir_separator=:
8787       hardcode_shlibpath_var=no
8788       ;;
8789
8790     *nto* | *qnx*)
8791       ;;
8792
8793     openbsd*)
8794       if test -f /usr/libexec/ld.so; then
8795         hardcode_direct=yes
8796         hardcode_shlibpath_var=no
8797         hardcode_direct_absolute=yes
8798         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8799           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8800           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8801           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8802           export_dynamic_flag_spec='${wl}-E'
8803         else
8804           case $host_os in
8805            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8806              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8807              hardcode_libdir_flag_spec='-R$libdir'
8808              ;;
8809            *)
8810              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8811              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8812              ;;
8813           esac
8814         fi
8815       else
8816         ld_shlibs=no
8817       fi
8818       ;;
8819
8820     os2*)
8821       hardcode_libdir_flag_spec='-L$libdir'
8822       hardcode_minus_L=yes
8823       allow_undefined_flag=unsupported
8824       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'
8825       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8826       ;;
8827
8828     osf3*)
8829       if test "$GCC" = yes; then
8830         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8831         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8832       else
8833         allow_undefined_flag=' -expect_unresolved \*'
8834         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8835       fi
8836       archive_cmds_need_lc='no'
8837       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8838       hardcode_libdir_separator=:
8839       ;;
8840
8841     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8842       if test "$GCC" = yes; then
8843         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8844         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8845         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8846       else
8847         allow_undefined_flag=' -expect_unresolved \*'
8848         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8849         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~
8850         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8851
8852         # Both c and cxx compiler support -rpath directly
8853         hardcode_libdir_flag_spec='-rpath $libdir'
8854       fi
8855       archive_cmds_need_lc='no'
8856       hardcode_libdir_separator=:
8857       ;;
8858
8859     solaris*)
8860       no_undefined_flag=' -z defs'
8861       if test "$GCC" = yes; then
8862         wlarc='${wl}'
8863         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8864         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8865           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8866       else
8867         case `$CC -V 2>&1` in
8868         *"Compilers 5.0"*)
8869           wlarc=''
8870           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8871           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8872           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8873           ;;
8874         *)
8875           wlarc='${wl}'
8876           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8877           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8878           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8879           ;;
8880         esac
8881       fi
8882       hardcode_libdir_flag_spec='-R$libdir'
8883       hardcode_shlibpath_var=no
8884       case $host_os in
8885       solaris2.[0-5] | solaris2.[0-5].*) ;;
8886       *)
8887         # The compiler driver will combine and reorder linker options,
8888         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8889         # but is careful enough not to reorder.
8890         # Supported since Solaris 2.6 (maybe 2.5.1?)
8891         if test "$GCC" = yes; then
8892           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8893         else
8894           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8895         fi
8896         ;;
8897       esac
8898       link_all_deplibs=yes
8899       ;;
8900
8901     sunos4*)
8902       if test "x$host_vendor" = xsequent; then
8903         # Use $CC to link under sequent, because it throws in some extra .o
8904         # files that make .init and .fini sections work.
8905         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8906       else
8907         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8908       fi
8909       hardcode_libdir_flag_spec='-L$libdir'
8910       hardcode_direct=yes
8911       hardcode_minus_L=yes
8912       hardcode_shlibpath_var=no
8913       ;;
8914
8915     sysv4)
8916       case $host_vendor in
8917         sni)
8918           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8919           hardcode_direct=yes # is this really true???
8920         ;;
8921         siemens)
8922           ## LD is ld it makes a PLAMLIB
8923           ## CC just makes a GrossModule.
8924           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8925           reload_cmds='$CC -r -o $output$reload_objs'
8926           hardcode_direct=no
8927         ;;
8928         motorola)
8929           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8930           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8931         ;;
8932       esac
8933       runpath_var='LD_RUN_PATH'
8934       hardcode_shlibpath_var=no
8935       ;;
8936
8937     sysv4.3*)
8938       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8939       hardcode_shlibpath_var=no
8940       export_dynamic_flag_spec='-Bexport'
8941       ;;
8942
8943     sysv4*MP*)
8944       if test -d /usr/nec; then
8945         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8946         hardcode_shlibpath_var=no
8947         runpath_var=LD_RUN_PATH
8948         hardcode_runpath_var=yes
8949         ld_shlibs=yes
8950       fi
8951       ;;
8952
8953     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8954       no_undefined_flag='${wl}-z,text'
8955       archive_cmds_need_lc=no
8956       hardcode_shlibpath_var=no
8957       runpath_var='LD_RUN_PATH'
8958
8959       if test "$GCC" = yes; then
8960         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8961         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8962       else
8963         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8964         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8965       fi
8966       ;;
8967
8968     sysv5* | sco3.2v5* | sco5v6*)
8969       # Note: We can NOT use -z defs as we might desire, because we do not
8970       # link with -lc, and that would cause any symbols used from libc to
8971       # always be unresolved, which means just about no library would
8972       # ever link correctly.  If we're not using GNU ld we use -z text
8973       # though, which does catch some bad symbols but isn't as heavy-handed
8974       # as -z defs.
8975       no_undefined_flag='${wl}-z,text'
8976       allow_undefined_flag='${wl}-z,nodefs'
8977       archive_cmds_need_lc=no
8978       hardcode_shlibpath_var=no
8979       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8980       hardcode_libdir_separator=':'
8981       link_all_deplibs=yes
8982       export_dynamic_flag_spec='${wl}-Bexport'
8983       runpath_var='LD_RUN_PATH'
8984
8985       if test "$GCC" = yes; then
8986         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8987         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8988       else
8989         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8990         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8991       fi
8992       ;;
8993
8994     uts4*)
8995       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8996       hardcode_libdir_flag_spec='-L$libdir'
8997       hardcode_shlibpath_var=no
8998       ;;
8999
9000     *)
9001       ld_shlibs=no
9002       ;;
9003     esac
9004
9005     if test x$host_vendor = xsni; then
9006       case $host in
9007       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9008         export_dynamic_flag_spec='${wl}-Blargedynsym'
9009         ;;
9010       esac
9011     fi
9012   fi
9013
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9015 $as_echo "$ld_shlibs" >&6; }
9016 test "$ld_shlibs" = no && can_build_shared=no
9017
9018 with_gnu_ld=$with_gnu_ld
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034 #
9035 # Do we need to explicitly link libc?
9036 #
9037 case "x$archive_cmds_need_lc" in
9038 x|xyes)
9039   # Assume -lc should be added
9040   archive_cmds_need_lc=yes
9041
9042   if test "$enable_shared" = yes && test "$GCC" = yes; then
9043     case $archive_cmds in
9044     *'~'*)
9045       # FIXME: we may have to deal with multi-command sequences.
9046       ;;
9047     '$CC '*)
9048       # Test whether the compiler implicitly links with -lc since on some
9049       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9050       # to ld, don't add -lc before -lgcc.
9051       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9052 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9053       $RM conftest*
9054       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9055
9056       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9057   (eval $ac_compile) 2>&5
9058   ac_status=$?
9059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9060   test $ac_status = 0; } 2>conftest.err; then
9061         soname=conftest
9062         lib=conftest
9063         libobjs=conftest.$ac_objext
9064         deplibs=
9065         wl=$lt_prog_compiler_wl
9066         pic_flag=$lt_prog_compiler_pic
9067         compiler_flags=-v
9068         linker_flags=-v
9069         verstring=
9070         output_objdir=.
9071         libname=conftest
9072         lt_save_allow_undefined_flag=$allow_undefined_flag
9073         allow_undefined_flag=
9074         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9075   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9076   ac_status=$?
9077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9078   test $ac_status = 0; }
9079         then
9080           archive_cmds_need_lc=no
9081         else
9082           archive_cmds_need_lc=yes
9083         fi
9084         allow_undefined_flag=$lt_save_allow_undefined_flag
9085       else
9086         cat conftest.err 1>&5
9087       fi
9088       $RM conftest*
9089       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9090 $as_echo "$archive_cmds_need_lc" >&6; }
9091       ;;
9092     esac
9093   fi
9094   ;;
9095 esac
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9254 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9255
9256 if test "$GCC" = yes; then
9257   case $host_os in
9258     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9259     *) lt_awk_arg="/^libraries:/" ;;
9260   esac
9261   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9262   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9263     # if the path contains ";" then we assume it to be the separator
9264     # otherwise default to the standard path separator (i.e. ":") - it is
9265     # assumed that no part of a normal pathname contains ";" but that should
9266     # okay in the real world where ";" in dirpaths is itself problematic.
9267     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9268   else
9269     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9270   fi
9271   # Ok, now we have the path, separated by spaces, we can step through it
9272   # and add multilib dir if necessary.
9273   lt_tmp_lt_search_path_spec=
9274   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9275   for lt_sys_path in $lt_search_path_spec; do
9276     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9277       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9278     else
9279       test -d "$lt_sys_path" && \
9280         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9281     fi
9282   done
9283   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9284 BEGIN {RS=" "; FS="/|\n";} {
9285   lt_foo="";
9286   lt_count=0;
9287   for (lt_i = NF; lt_i > 0; lt_i--) {
9288     if ($lt_i != "" && $lt_i != ".") {
9289       if ($lt_i == "..") {
9290         lt_count++;
9291       } else {
9292         if (lt_count == 0) {
9293           lt_foo="/" $lt_i lt_foo;
9294         } else {
9295           lt_count--;
9296         }
9297       }
9298     }
9299   }
9300   if (lt_foo != "") { lt_freq[lt_foo]++; }
9301   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9302 }'`
9303   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9304 else
9305   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9306 fi
9307 library_names_spec=
9308 libname_spec='lib$name'
9309 soname_spec=
9310 shrext_cmds=".so"
9311 postinstall_cmds=
9312 postuninstall_cmds=
9313 finish_cmds=
9314 finish_eval=
9315 shlibpath_var=
9316 shlibpath_overrides_runpath=unknown
9317 version_type=none
9318 dynamic_linker="$host_os ld.so"
9319 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9320 need_lib_prefix=unknown
9321 hardcode_into_libs=no
9322
9323 # when you set need_version to no, make sure it does not cause -set_version
9324 # flags to be left without arguments
9325 need_version=unknown
9326
9327 case $host_os in
9328 aix3*)
9329   version_type=linux
9330   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9331   shlibpath_var=LIBPATH
9332
9333   # AIX 3 has no versioning support, so we append a major version to the name.
9334   soname_spec='${libname}${release}${shared_ext}$major'
9335   ;;
9336
9337 aix[4-9]*)
9338   version_type=linux
9339   need_lib_prefix=no
9340   need_version=no
9341   hardcode_into_libs=yes
9342   if test "$host_cpu" = ia64; then
9343     # AIX 5 supports IA64
9344     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9345     shlibpath_var=LD_LIBRARY_PATH
9346   else
9347     # With GCC up to 2.95.x, collect2 would create an import file
9348     # for dependence libraries.  The import file would start with
9349     # the line `#! .'.  This would cause the generated library to
9350     # depend on `.', always an invalid library.  This was fixed in
9351     # development snapshots of GCC prior to 3.0.
9352     case $host_os in
9353       aix4 | aix4.[01] | aix4.[01].*)
9354       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9355            echo ' yes '
9356            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9357         :
9358       else
9359         can_build_shared=no
9360       fi
9361       ;;
9362     esac
9363     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9364     # soname into executable. Probably we can add versioning support to
9365     # collect2, so additional links can be useful in future.
9366     if test "$aix_use_runtimelinking" = yes; then
9367       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9368       # instead of lib<name>.a to let people know that these are not
9369       # typical AIX shared libraries.
9370       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9371     else
9372       # We preserve .a as extension for shared libraries through AIX4.2
9373       # and later when we are not doing run time linking.
9374       library_names_spec='${libname}${release}.a $libname.a'
9375       soname_spec='${libname}${release}${shared_ext}$major'
9376     fi
9377     shlibpath_var=LIBPATH
9378   fi
9379   ;;
9380
9381 amigaos*)
9382   case $host_cpu in
9383   powerpc)
9384     # Since July 2007 AmigaOS4 officially supports .so libraries.
9385     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9387     ;;
9388   m68k)
9389     library_names_spec='$libname.ixlibrary $libname.a'
9390     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9391     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9392     ;;
9393   esac
9394   ;;
9395
9396 beos*)
9397   library_names_spec='${libname}${shared_ext}'
9398   dynamic_linker="$host_os ld.so"
9399   shlibpath_var=LIBRARY_PATH
9400   ;;
9401
9402 bsdi[45]*)
9403   version_type=linux
9404   need_version=no
9405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9406   soname_spec='${libname}${release}${shared_ext}$major'
9407   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9408   shlibpath_var=LD_LIBRARY_PATH
9409   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9410   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9411   # the default ld.so.conf also contains /usr/contrib/lib and
9412   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9413   # libtool to hard-code these into programs
9414   ;;
9415
9416 cygwin* | mingw* | pw32* | cegcc*)
9417   version_type=windows
9418   shrext_cmds=".dll"
9419   need_version=no
9420   need_lib_prefix=no
9421
9422   case $GCC,$host_os in
9423   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9424     library_names_spec='$libname.dll.a'
9425     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9426     postinstall_cmds='base_file=`basename \${file}`~
9427       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9428       dldir=$destdir/`dirname \$dlpath`~
9429       test -d \$dldir || mkdir -p \$dldir~
9430       $install_prog $dir/$dlname \$dldir/$dlname~
9431       chmod a+x \$dldir/$dlname~
9432       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9433         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9434       fi'
9435     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9436       dlpath=$dir/\$dldll~
9437        $RM \$dlpath'
9438     shlibpath_overrides_runpath=yes
9439
9440     case $host_os in
9441     cygwin*)
9442       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9443       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9444       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9445       ;;
9446     mingw* | cegcc*)
9447       # MinGW DLLs use traditional 'lib' prefix
9448       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9449       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9450       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9451         # It is most probably a Windows format PATH printed by
9452         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9453         # path with ; separators, and with drive letters. We can handle the
9454         # drive letters (cygwin fileutils understands them), so leave them,
9455         # especially as we might pass files found there to a mingw objdump,
9456         # which wouldn't understand a cygwinified path. Ahh.
9457         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9458       else
9459         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9460       fi
9461       ;;
9462     pw32*)
9463       # pw32 DLLs use 'pw' prefix rather than 'lib'
9464       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9465       ;;
9466     esac
9467     ;;
9468
9469   *)
9470     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9471     ;;
9472   esac
9473   dynamic_linker='Win32 ld.exe'
9474   # FIXME: first we should search . and the directory the executable is in
9475   shlibpath_var=PATH
9476   ;;
9477
9478 darwin* | rhapsody*)
9479   dynamic_linker="$host_os dyld"
9480   version_type=darwin
9481   need_lib_prefix=no
9482   need_version=no
9483   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9484   soname_spec='${libname}${release}${major}$shared_ext'
9485   shlibpath_overrides_runpath=yes
9486   shlibpath_var=DYLD_LIBRARY_PATH
9487   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9488
9489   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9490   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9491   ;;
9492
9493 dgux*)
9494   version_type=linux
9495   need_lib_prefix=no
9496   need_version=no
9497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9498   soname_spec='${libname}${release}${shared_ext}$major'
9499   shlibpath_var=LD_LIBRARY_PATH
9500   ;;
9501
9502 freebsd1*)
9503   dynamic_linker=no
9504   ;;
9505
9506 freebsd* | dragonfly*)
9507   # DragonFly does not have aout.  When/if they implement a new
9508   # versioning mechanism, adjust this.
9509   if test -x /usr/bin/objformat; then
9510     objformat=`/usr/bin/objformat`
9511   else
9512     case $host_os in
9513     freebsd[123]*) objformat=aout ;;
9514     *) objformat=elf ;;
9515     esac
9516   fi
9517   version_type=freebsd-$objformat
9518   case $version_type in
9519     freebsd-elf*)
9520       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9521       need_version=no
9522       need_lib_prefix=no
9523       ;;
9524     freebsd-*)
9525       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9526       need_version=yes
9527       ;;
9528   esac
9529   shlibpath_var=LD_LIBRARY_PATH
9530   case $host_os in
9531   freebsd2*)
9532     shlibpath_overrides_runpath=yes
9533     ;;
9534   freebsd3.[01]* | freebsdelf3.[01]*)
9535     shlibpath_overrides_runpath=yes
9536     hardcode_into_libs=yes
9537     ;;
9538   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9539   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9540     shlibpath_overrides_runpath=no
9541     hardcode_into_libs=yes
9542     ;;
9543   *) # from 4.6 on, and DragonFly
9544     shlibpath_overrides_runpath=yes
9545     hardcode_into_libs=yes
9546     ;;
9547   esac
9548   ;;
9549
9550 gnu*)
9551   version_type=linux
9552   need_lib_prefix=no
9553   need_version=no
9554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9555   soname_spec='${libname}${release}${shared_ext}$major'
9556   shlibpath_var=LD_LIBRARY_PATH
9557   hardcode_into_libs=yes
9558   ;;
9559
9560 hpux9* | hpux10* | hpux11*)
9561   # Give a soname corresponding to the major version so that dld.sl refuses to
9562   # link against other versions.
9563   version_type=sunos
9564   need_lib_prefix=no
9565   need_version=no
9566   case $host_cpu in
9567   ia64*)
9568     shrext_cmds='.so'
9569     hardcode_into_libs=yes
9570     dynamic_linker="$host_os dld.so"
9571     shlibpath_var=LD_LIBRARY_PATH
9572     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9574     soname_spec='${libname}${release}${shared_ext}$major'
9575     if test "X$HPUX_IA64_MODE" = X32; then
9576       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9577     else
9578       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9579     fi
9580     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9581     ;;
9582   hppa*64*)
9583     shrext_cmds='.sl'
9584     hardcode_into_libs=yes
9585     dynamic_linker="$host_os dld.sl"
9586     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9587     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589     soname_spec='${libname}${release}${shared_ext}$major'
9590     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9591     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9592     ;;
9593   *)
9594     shrext_cmds='.sl'
9595     dynamic_linker="$host_os dld.sl"
9596     shlibpath_var=SHLIB_PATH
9597     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599     soname_spec='${libname}${release}${shared_ext}$major'
9600     ;;
9601   esac
9602   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9603   postinstall_cmds='chmod 555 $lib'
9604   ;;
9605
9606 interix[3-9]*)
9607   version_type=linux
9608   need_lib_prefix=no
9609   need_version=no
9610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9611   soname_spec='${libname}${release}${shared_ext}$major'
9612   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9613   shlibpath_var=LD_LIBRARY_PATH
9614   shlibpath_overrides_runpath=no
9615   hardcode_into_libs=yes
9616   ;;
9617
9618 irix5* | irix6* | nonstopux*)
9619   case $host_os in
9620     nonstopux*) version_type=nonstopux ;;
9621     *)
9622         if test "$lt_cv_prog_gnu_ld" = yes; then
9623                 version_type=linux
9624         else
9625                 version_type=irix
9626         fi ;;
9627   esac
9628   need_lib_prefix=no
9629   need_version=no
9630   soname_spec='${libname}${release}${shared_ext}$major'
9631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9632   case $host_os in
9633   irix5* | nonstopux*)
9634     libsuff= shlibsuff=
9635     ;;
9636   *)
9637     case $LD in # libtool.m4 will add one of these switches to LD
9638     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9639       libsuff= shlibsuff= libmagic=32-bit;;
9640     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9641       libsuff=32 shlibsuff=N32 libmagic=N32;;
9642     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9643       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9644     *) libsuff= shlibsuff= libmagic=never-match;;
9645     esac
9646     ;;
9647   esac
9648   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9649   shlibpath_overrides_runpath=no
9650   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9651   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9652   hardcode_into_libs=yes
9653   ;;
9654
9655 # No shared lib support for Linux oldld, aout, or coff.
9656 linux*oldld* | linux*aout* | linux*coff*)
9657   dynamic_linker=no
9658   ;;
9659
9660 # This must be Linux ELF.
9661 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9662   version_type=linux
9663   need_lib_prefix=no
9664   need_version=no
9665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666   soname_spec='${libname}${release}${shared_ext}$major'
9667   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9668   shlibpath_var=LD_LIBRARY_PATH
9669   shlibpath_overrides_runpath=no
9670   # Some binutils ld are patched to set DT_RUNPATH
9671   save_LDFLAGS=$LDFLAGS
9672   save_libdir=$libdir
9673   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9674        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h.  */
9677
9678 int
9679 main ()
9680 {
9681
9682   ;
9683   return 0;
9684 }
9685 _ACEOF
9686 if ac_fn_c_try_link "$LINENO"; then :
9687   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9688   shlibpath_overrides_runpath=yes
9689 fi
9690 fi
9691 rm -f core conftest.err conftest.$ac_objext \
9692     conftest$ac_exeext conftest.$ac_ext
9693   LDFLAGS=$save_LDFLAGS
9694   libdir=$save_libdir
9695
9696   # This implies no fast_install, which is unacceptable.
9697   # Some rework will be needed to allow for fast_install
9698   # before this can be enabled.
9699   hardcode_into_libs=yes
9700
9701   # Append ld.so.conf contents to the search path
9702   if test -f /etc/ld.so.conf; then
9703     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;/^$/d' | tr '\n' ' '`
9704     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9705   fi
9706
9707   # We used to test for /lib/ld.so.1 and disable shared libraries on
9708   # powerpc, because MkLinux only supported shared libraries with the
9709   # GNU dynamic linker.  Since this was broken with cross compilers,
9710   # most powerpc-linux boxes support dynamic linking these days and
9711   # people can always --disable-shared, the test was removed, and we
9712   # assume the GNU/Linux dynamic linker is in use.
9713   dynamic_linker='GNU/Linux ld.so'
9714   ;;
9715
9716 netbsdelf*-gnu)
9717   version_type=linux
9718   need_lib_prefix=no
9719   need_version=no
9720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9721   soname_spec='${libname}${release}${shared_ext}$major'
9722   shlibpath_var=LD_LIBRARY_PATH
9723   shlibpath_overrides_runpath=no
9724   hardcode_into_libs=yes
9725   dynamic_linker='NetBSD ld.elf_so'
9726   ;;
9727
9728 netbsd*)
9729   version_type=sunos
9730   need_lib_prefix=no
9731   need_version=no
9732   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9733     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9734     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9735     dynamic_linker='NetBSD (a.out) ld.so'
9736   else
9737     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9738     soname_spec='${libname}${release}${shared_ext}$major'
9739     dynamic_linker='NetBSD ld.elf_so'
9740   fi
9741   shlibpath_var=LD_LIBRARY_PATH
9742   shlibpath_overrides_runpath=yes
9743   hardcode_into_libs=yes
9744   ;;
9745
9746 newsos6)
9747   version_type=linux
9748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749   shlibpath_var=LD_LIBRARY_PATH
9750   shlibpath_overrides_runpath=yes
9751   ;;
9752
9753 *nto* | *qnx*)
9754   version_type=qnx
9755   need_lib_prefix=no
9756   need_version=no
9757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9758   soname_spec='${libname}${release}${shared_ext}$major'
9759   shlibpath_var=LD_LIBRARY_PATH
9760   shlibpath_overrides_runpath=no
9761   hardcode_into_libs=yes
9762   dynamic_linker='ldqnx.so'
9763   ;;
9764
9765 openbsd*)
9766   version_type=sunos
9767   sys_lib_dlsearch_path_spec="/usr/lib"
9768   need_lib_prefix=no
9769   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9770   case $host_os in
9771     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9772     *)                          need_version=no  ;;
9773   esac
9774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9775   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9776   shlibpath_var=LD_LIBRARY_PATH
9777   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9778     case $host_os in
9779       openbsd2.[89] | openbsd2.[89].*)
9780         shlibpath_overrides_runpath=no
9781         ;;
9782       *)
9783         shlibpath_overrides_runpath=yes
9784         ;;
9785       esac
9786   else
9787     shlibpath_overrides_runpath=yes
9788   fi
9789   ;;
9790
9791 os2*)
9792   libname_spec='$name'
9793   shrext_cmds=".dll"
9794   need_lib_prefix=no
9795   library_names_spec='$libname${shared_ext} $libname.a'
9796   dynamic_linker='OS/2 ld.exe'
9797   shlibpath_var=LIBPATH
9798   ;;
9799
9800 osf3* | osf4* | osf5*)
9801   version_type=osf
9802   need_lib_prefix=no
9803   need_version=no
9804   soname_spec='${libname}${release}${shared_ext}$major'
9805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806   shlibpath_var=LD_LIBRARY_PATH
9807   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9808   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9809   ;;
9810
9811 rdos*)
9812   dynamic_linker=no
9813   ;;
9814
9815 solaris*)
9816   version_type=linux
9817   need_lib_prefix=no
9818   need_version=no
9819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820   soname_spec='${libname}${release}${shared_ext}$major'
9821   shlibpath_var=LD_LIBRARY_PATH
9822   shlibpath_overrides_runpath=yes
9823   hardcode_into_libs=yes
9824   # ldd complains unless libraries are executable
9825   postinstall_cmds='chmod +x $lib'
9826   ;;
9827
9828 sunos4*)
9829   version_type=sunos
9830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9831   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9832   shlibpath_var=LD_LIBRARY_PATH
9833   shlibpath_overrides_runpath=yes
9834   if test "$with_gnu_ld" = yes; then
9835     need_lib_prefix=no
9836   fi
9837   need_version=yes
9838   ;;
9839
9840 sysv4 | sysv4.3*)
9841   version_type=linux
9842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9843   soname_spec='${libname}${release}${shared_ext}$major'
9844   shlibpath_var=LD_LIBRARY_PATH
9845   case $host_vendor in
9846     sni)
9847       shlibpath_overrides_runpath=no
9848       need_lib_prefix=no
9849       runpath_var=LD_RUN_PATH
9850       ;;
9851     siemens)
9852       need_lib_prefix=no
9853       ;;
9854     motorola)
9855       need_lib_prefix=no
9856       need_version=no
9857       shlibpath_overrides_runpath=no
9858       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9859       ;;
9860   esac
9861   ;;
9862
9863 sysv4*MP*)
9864   if test -d /usr/nec ;then
9865     version_type=linux
9866     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9867     soname_spec='$libname${shared_ext}.$major'
9868     shlibpath_var=LD_LIBRARY_PATH
9869   fi
9870   ;;
9871
9872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9873   version_type=freebsd-elf
9874   need_lib_prefix=no
9875   need_version=no
9876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9877   soname_spec='${libname}${release}${shared_ext}$major'
9878   shlibpath_var=LD_LIBRARY_PATH
9879   shlibpath_overrides_runpath=yes
9880   hardcode_into_libs=yes
9881   if test "$with_gnu_ld" = yes; then
9882     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9883   else
9884     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9885     case $host_os in
9886       sco3.2v5*)
9887         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9888         ;;
9889     esac
9890   fi
9891   sys_lib_dlsearch_path_spec='/usr/lib'
9892   ;;
9893
9894 tpf*)
9895   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9896   version_type=linux
9897   need_lib_prefix=no
9898   need_version=no
9899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9900   shlibpath_var=LD_LIBRARY_PATH
9901   shlibpath_overrides_runpath=no
9902   hardcode_into_libs=yes
9903   ;;
9904
9905 uts4*)
9906   version_type=linux
9907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9908   soname_spec='${libname}${release}${shared_ext}$major'
9909   shlibpath_var=LD_LIBRARY_PATH
9910   ;;
9911
9912 *)
9913   dynamic_linker=no
9914   ;;
9915 esac
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9917 $as_echo "$dynamic_linker" >&6; }
9918 test "$dynamic_linker" = no && can_build_shared=no
9919
9920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9921 if test "$GCC" = yes; then
9922   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9923 fi
9924
9925 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9926   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9927 fi
9928 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9929   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9930 fi
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10019 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10020 hardcode_action=
10021 if test -n "$hardcode_libdir_flag_spec" ||
10022    test -n "$runpath_var" ||
10023    test "X$hardcode_automatic" = "Xyes" ; then
10024
10025   # We can hardcode non-existent directories.
10026   if test "$hardcode_direct" != no &&
10027      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10028      # have to relink, otherwise we might link with an installed library
10029      # when we should be linking with a yet-to-be-installed one
10030      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10031      test "$hardcode_minus_L" != no; then
10032     # Linking always hardcodes the temporary library directory.
10033     hardcode_action=relink
10034   else
10035     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10036     hardcode_action=immediate
10037   fi
10038 else
10039   # We cannot hardcode anything, or else we can only hardcode existing
10040   # directories.
10041   hardcode_action=unsupported
10042 fi
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10044 $as_echo "$hardcode_action" >&6; }
10045
10046 if test "$hardcode_action" = relink ||
10047    test "$inherit_rpath" = yes; then
10048   # Fast installation is not supported
10049   enable_fast_install=no
10050 elif test "$shlibpath_overrides_runpath" = yes ||
10051      test "$enable_shared" = no; then
10052   # Fast installation is not necessary
10053   enable_fast_install=needless
10054 fi
10055
10056
10057
10058
10059
10060
10061   if test "x$enable_dlopen" != xyes; then
10062   enable_dlopen=unknown
10063   enable_dlopen_self=unknown
10064   enable_dlopen_self_static=unknown
10065 else
10066   lt_cv_dlopen=no
10067   lt_cv_dlopen_libs=
10068
10069   case $host_os in
10070   beos*)
10071     lt_cv_dlopen="load_add_on"
10072     lt_cv_dlopen_libs=
10073     lt_cv_dlopen_self=yes
10074     ;;
10075
10076   mingw* | pw32* | cegcc*)
10077     lt_cv_dlopen="LoadLibrary"
10078     lt_cv_dlopen_libs=
10079     ;;
10080
10081   cygwin*)
10082     lt_cv_dlopen="dlopen"
10083     lt_cv_dlopen_libs=
10084     ;;
10085
10086   darwin*)
10087   # if libdl is installed we need to link against it
10088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10089 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10090 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10091   $as_echo_n "(cached) " >&6
10092 else
10093   ac_check_lib_save_LIBS=$LIBS
10094 LIBS="-ldl  $LIBS"
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h.  */
10097
10098 /* Override any GCC internal prototype to avoid an error.
10099    Use char because int might match the return type of a GCC
10100    builtin and then its argument prototype would still apply.  */
10101 #ifdef __cplusplus
10102 extern "C"
10103 #endif
10104 char dlopen ();
10105 int
10106 main ()
10107 {
10108 return dlopen ();
10109   ;
10110   return 0;
10111 }
10112 _ACEOF
10113 if ac_fn_c_try_link "$LINENO"; then :
10114   ac_cv_lib_dl_dlopen=yes
10115 else
10116   ac_cv_lib_dl_dlopen=no
10117 fi
10118 rm -f core conftest.err conftest.$ac_objext \
10119     conftest$ac_exeext conftest.$ac_ext
10120 LIBS=$ac_check_lib_save_LIBS
10121 fi
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10123 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10124 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10125   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10126 else
10127
10128     lt_cv_dlopen="dyld"
10129     lt_cv_dlopen_libs=
10130     lt_cv_dlopen_self=yes
10131
10132 fi
10133
10134     ;;
10135
10136   *)
10137     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10138 if test "x$ac_cv_func_shl_load" = x""yes; then :
10139   lt_cv_dlopen="shl_load"
10140 else
10141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10142 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10143 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10144   $as_echo_n "(cached) " >&6
10145 else
10146   ac_check_lib_save_LIBS=$LIBS
10147 LIBS="-ldld  $LIBS"
10148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149 /* end confdefs.h.  */
10150
10151 /* Override any GCC internal prototype to avoid an error.
10152    Use char because int might match the return type of a GCC
10153    builtin and then its argument prototype would still apply.  */
10154 #ifdef __cplusplus
10155 extern "C"
10156 #endif
10157 char shl_load ();
10158 int
10159 main ()
10160 {
10161 return shl_load ();
10162   ;
10163   return 0;
10164 }
10165 _ACEOF
10166 if ac_fn_c_try_link "$LINENO"; then :
10167   ac_cv_lib_dld_shl_load=yes
10168 else
10169   ac_cv_lib_dld_shl_load=no
10170 fi
10171 rm -f core conftest.err conftest.$ac_objext \
10172     conftest$ac_exeext conftest.$ac_ext
10173 LIBS=$ac_check_lib_save_LIBS
10174 fi
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10176 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10177 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10178   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10179 else
10180   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10181 if test "x$ac_cv_func_dlopen" = x""yes; then :
10182   lt_cv_dlopen="dlopen"
10183 else
10184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10185 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10186 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10187   $as_echo_n "(cached) " >&6
10188 else
10189   ac_check_lib_save_LIBS=$LIBS
10190 LIBS="-ldl  $LIBS"
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h.  */
10193
10194 /* Override any GCC internal prototype to avoid an error.
10195    Use char because int might match the return type of a GCC
10196    builtin and then its argument prototype would still apply.  */
10197 #ifdef __cplusplus
10198 extern "C"
10199 #endif
10200 char dlopen ();
10201 int
10202 main ()
10203 {
10204 return dlopen ();
10205   ;
10206   return 0;
10207 }
10208 _ACEOF
10209 if ac_fn_c_try_link "$LINENO"; then :
10210   ac_cv_lib_dl_dlopen=yes
10211 else
10212   ac_cv_lib_dl_dlopen=no
10213 fi
10214 rm -f core conftest.err conftest.$ac_objext \
10215     conftest$ac_exeext conftest.$ac_ext
10216 LIBS=$ac_check_lib_save_LIBS
10217 fi
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10219 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10220 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10221   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10222 else
10223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10224 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10225 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10226   $as_echo_n "(cached) " >&6
10227 else
10228   ac_check_lib_save_LIBS=$LIBS
10229 LIBS="-lsvld  $LIBS"
10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231 /* end confdefs.h.  */
10232
10233 /* Override any GCC internal prototype to avoid an error.
10234    Use char because int might match the return type of a GCC
10235    builtin and then its argument prototype would still apply.  */
10236 #ifdef __cplusplus
10237 extern "C"
10238 #endif
10239 char dlopen ();
10240 int
10241 main ()
10242 {
10243 return dlopen ();
10244   ;
10245   return 0;
10246 }
10247 _ACEOF
10248 if ac_fn_c_try_link "$LINENO"; then :
10249   ac_cv_lib_svld_dlopen=yes
10250 else
10251   ac_cv_lib_svld_dlopen=no
10252 fi
10253 rm -f core conftest.err conftest.$ac_objext \
10254     conftest$ac_exeext conftest.$ac_ext
10255 LIBS=$ac_check_lib_save_LIBS
10256 fi
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10258 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10259 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10260   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10261 else
10262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10263 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10264 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10265   $as_echo_n "(cached) " >&6
10266 else
10267   ac_check_lib_save_LIBS=$LIBS
10268 LIBS="-ldld  $LIBS"
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h.  */
10271
10272 /* Override any GCC internal prototype to avoid an error.
10273    Use char because int might match the return type of a GCC
10274    builtin and then its argument prototype would still apply.  */
10275 #ifdef __cplusplus
10276 extern "C"
10277 #endif
10278 char dld_link ();
10279 int
10280 main ()
10281 {
10282 return dld_link ();
10283   ;
10284   return 0;
10285 }
10286 _ACEOF
10287 if ac_fn_c_try_link "$LINENO"; then :
10288   ac_cv_lib_dld_dld_link=yes
10289 else
10290   ac_cv_lib_dld_dld_link=no
10291 fi
10292 rm -f core conftest.err conftest.$ac_objext \
10293     conftest$ac_exeext conftest.$ac_ext
10294 LIBS=$ac_check_lib_save_LIBS
10295 fi
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10297 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10298 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10299   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10300 fi
10301
10302
10303 fi
10304
10305
10306 fi
10307
10308
10309 fi
10310
10311
10312 fi
10313
10314
10315 fi
10316
10317     ;;
10318   esac
10319
10320   if test "x$lt_cv_dlopen" != xno; then
10321     enable_dlopen=yes
10322   else
10323     enable_dlopen=no
10324   fi
10325
10326   case $lt_cv_dlopen in
10327   dlopen)
10328     save_CPPFLAGS="$CPPFLAGS"
10329     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10330
10331     save_LDFLAGS="$LDFLAGS"
10332     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10333
10334     save_LIBS="$LIBS"
10335     LIBS="$lt_cv_dlopen_libs $LIBS"
10336
10337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10338 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10339 if test "${lt_cv_dlopen_self+set}" = set; then :
10340   $as_echo_n "(cached) " >&6
10341 else
10342           if test "$cross_compiling" = yes; then :
10343   lt_cv_dlopen_self=cross
10344 else
10345   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10346   lt_status=$lt_dlunknown
10347   cat > conftest.$ac_ext <<_LT_EOF
10348 #line 10348 "configure"
10349 #include "confdefs.h"
10350
10351 #if HAVE_DLFCN_H
10352 #include <dlfcn.h>
10353 #endif
10354
10355 #include <stdio.h>
10356
10357 #ifdef RTLD_GLOBAL
10358 #  define LT_DLGLOBAL           RTLD_GLOBAL
10359 #else
10360 #  ifdef DL_GLOBAL
10361 #    define LT_DLGLOBAL         DL_GLOBAL
10362 #  else
10363 #    define LT_DLGLOBAL         0
10364 #  endif
10365 #endif
10366
10367 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10368    find out it does not work in some platform. */
10369 #ifndef LT_DLLAZY_OR_NOW
10370 #  ifdef RTLD_LAZY
10371 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10372 #  else
10373 #    ifdef DL_LAZY
10374 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10375 #    else
10376 #      ifdef RTLD_NOW
10377 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10378 #      else
10379 #        ifdef DL_NOW
10380 #          define LT_DLLAZY_OR_NOW      DL_NOW
10381 #        else
10382 #          define LT_DLLAZY_OR_NOW      0
10383 #        endif
10384 #      endif
10385 #    endif
10386 #  endif
10387 #endif
10388
10389 void fnord() { int i=42;}
10390 int main ()
10391 {
10392   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10393   int status = $lt_dlunknown;
10394
10395   if (self)
10396     {
10397       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10398       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10399       /* dlclose (self); */
10400     }
10401   else
10402     puts (dlerror ());
10403
10404   return status;
10405 }
10406 _LT_EOF
10407   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10408   (eval $ac_link) 2>&5
10409   ac_status=$?
10410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10411   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10412     (./conftest; exit; ) >&5 2>/dev/null
10413     lt_status=$?
10414     case x$lt_status in
10415       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10416       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10417       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10418     esac
10419   else :
10420     # compilation failed
10421     lt_cv_dlopen_self=no
10422   fi
10423 fi
10424 rm -fr conftest*
10425
10426
10427 fi
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10429 $as_echo "$lt_cv_dlopen_self" >&6; }
10430
10431     if test "x$lt_cv_dlopen_self" = xyes; then
10432       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10433       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10434 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10435 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10436   $as_echo_n "(cached) " >&6
10437 else
10438           if test "$cross_compiling" = yes; then :
10439   lt_cv_dlopen_self_static=cross
10440 else
10441   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10442   lt_status=$lt_dlunknown
10443   cat > conftest.$ac_ext <<_LT_EOF
10444 #line 10444 "configure"
10445 #include "confdefs.h"
10446
10447 #if HAVE_DLFCN_H
10448 #include <dlfcn.h>
10449 #endif
10450
10451 #include <stdio.h>
10452
10453 #ifdef RTLD_GLOBAL
10454 #  define LT_DLGLOBAL           RTLD_GLOBAL
10455 #else
10456 #  ifdef DL_GLOBAL
10457 #    define LT_DLGLOBAL         DL_GLOBAL
10458 #  else
10459 #    define LT_DLGLOBAL         0
10460 #  endif
10461 #endif
10462
10463 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10464    find out it does not work in some platform. */
10465 #ifndef LT_DLLAZY_OR_NOW
10466 #  ifdef RTLD_LAZY
10467 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10468 #  else
10469 #    ifdef DL_LAZY
10470 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10471 #    else
10472 #      ifdef RTLD_NOW
10473 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10474 #      else
10475 #        ifdef DL_NOW
10476 #          define LT_DLLAZY_OR_NOW      DL_NOW
10477 #        else
10478 #          define LT_DLLAZY_OR_NOW      0
10479 #        endif
10480 #      endif
10481 #    endif
10482 #  endif
10483 #endif
10484
10485 void fnord() { int i=42;}
10486 int main ()
10487 {
10488   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10489   int status = $lt_dlunknown;
10490
10491   if (self)
10492     {
10493       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10494       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10495       /* dlclose (self); */
10496     }
10497   else
10498     puts (dlerror ());
10499
10500   return status;
10501 }
10502 _LT_EOF
10503   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10504   (eval $ac_link) 2>&5
10505   ac_status=$?
10506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10507   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10508     (./conftest; exit; ) >&5 2>/dev/null
10509     lt_status=$?
10510     case x$lt_status in
10511       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10512       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10513       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10514     esac
10515   else :
10516     # compilation failed
10517     lt_cv_dlopen_self_static=no
10518   fi
10519 fi
10520 rm -fr conftest*
10521
10522
10523 fi
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10525 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10526     fi
10527
10528     CPPFLAGS="$save_CPPFLAGS"
10529     LDFLAGS="$save_LDFLAGS"
10530     LIBS="$save_LIBS"
10531     ;;
10532   esac
10533
10534   case $lt_cv_dlopen_self in
10535   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10536   *) enable_dlopen_self=unknown ;;
10537   esac
10538
10539   case $lt_cv_dlopen_self_static in
10540   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10541   *) enable_dlopen_self_static=unknown ;;
10542   esac
10543 fi
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561 striplib=
10562 old_striplib=
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10564 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10565 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10566   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10567   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10569 $as_echo "yes" >&6; }
10570 else
10571 # FIXME - insert some real tests, host_os isn't really good enough
10572   case $host_os in
10573   darwin*)
10574     if test -n "$STRIP" ; then
10575       striplib="$STRIP -x"
10576       old_striplib="$STRIP -S"
10577       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10578 $as_echo "yes" >&6; }
10579     else
10580       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; }
10582     fi
10583     ;;
10584   *)
10585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10587     ;;
10588   esac
10589 fi
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602   # Report which library types will actually be built
10603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10604 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10606 $as_echo "$can_build_shared" >&6; }
10607
10608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10609 $as_echo_n "checking whether to build shared libraries... " >&6; }
10610   test "$can_build_shared" = "no" && enable_shared=no
10611
10612   # On AIX, shared libraries and static libraries use the same namespace, and
10613   # are all built from PIC.
10614   case $host_os in
10615   aix3*)
10616     test "$enable_shared" = yes && enable_static=no
10617     if test -n "$RANLIB"; then
10618       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10619       postinstall_cmds='$RANLIB $lib'
10620     fi
10621     ;;
10622
10623   aix[4-9]*)
10624     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10625       test "$enable_shared" = yes && enable_static=no
10626     fi
10627     ;;
10628   esac
10629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10630 $as_echo "$enable_shared" >&6; }
10631
10632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10633 $as_echo_n "checking whether to build static libraries... " >&6; }
10634   # Make sure either enable_shared or enable_static is yes.
10635   test "$enable_shared" = yes || enable_static=yes
10636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10637 $as_echo "$enable_static" >&6; }
10638
10639
10640
10641
10642 fi
10643 ac_ext=c
10644 ac_cpp='$CPP $CPPFLAGS'
10645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10648
10649 CC="$lt_save_CC"
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663         ac_config_commands="$ac_config_commands libtool"
10664
10665
10666
10667
10668 # Only expand once:
10669
10670
10671
10672 # Check whether --enable-debug was given.
10673 if test "${enable_debug+set}" = set; then :
10674   enableval=$enable_debug; enable_debug=$enableval
10675 else
10676   enable_debug=no
10677 fi
10678
10679
10680 if test "$enable_debug" = "yes" ; then
10681     GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
10682     GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
10683 else
10684     GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
10685     GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
10686 fi
10687
10688 ac_config_headers="$ac_config_headers config.h src/shibresolver/config_pub.h"
10689
10690 ac_config_files="$ac_config_files resolver.spec Portfile"
10691
10692 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
10693
10694
10695 ac_ext=c
10696 ac_cpp='$CPP $CPPFLAGS'
10697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10700 if test -n "$ac_tool_prefix"; then
10701   for ac_prog in gcc gcc3 cc
10702   do
10703     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10704 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706 $as_echo_n "checking for $ac_word... " >&6; }
10707 if test "${ac_cv_prog_CC+set}" = set; then :
10708   $as_echo_n "(cached) " >&6
10709 else
10710   if test -n "$CC"; then
10711   ac_cv_prog_CC="$CC" # Let the user override the test.
10712 else
10713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714 for as_dir in $PATH
10715 do
10716   IFS=$as_save_IFS
10717   test -z "$as_dir" && as_dir=.
10718     for ac_exec_ext in '' $ac_executable_extensions; do
10719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10720     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10722     break 2
10723   fi
10724 done
10725   done
10726 IFS=$as_save_IFS
10727
10728 fi
10729 fi
10730 CC=$ac_cv_prog_CC
10731 if test -n "$CC"; then
10732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10733 $as_echo "$CC" >&6; }
10734 else
10735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736 $as_echo "no" >&6; }
10737 fi
10738
10739
10740     test -n "$CC" && break
10741   done
10742 fi
10743 if test -z "$CC"; then
10744   ac_ct_CC=$CC
10745   for ac_prog in gcc gcc3 cc
10746 do
10747   # Extract the first word of "$ac_prog", so it can be a program name with args.
10748 set dummy $ac_prog; ac_word=$2
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10750 $as_echo_n "checking for $ac_word... " >&6; }
10751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10752   $as_echo_n "(cached) " >&6
10753 else
10754   if test -n "$ac_ct_CC"; then
10755   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10756 else
10757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10758 for as_dir in $PATH
10759 do
10760   IFS=$as_save_IFS
10761   test -z "$as_dir" && as_dir=.
10762     for ac_exec_ext in '' $ac_executable_extensions; do
10763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10764     ac_cv_prog_ac_ct_CC="$ac_prog"
10765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10766     break 2
10767   fi
10768 done
10769   done
10770 IFS=$as_save_IFS
10771
10772 fi
10773 fi
10774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10775 if test -n "$ac_ct_CC"; then
10776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10777 $as_echo "$ac_ct_CC" >&6; }
10778 else
10779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10780 $as_echo "no" >&6; }
10781 fi
10782
10783
10784   test -n "$ac_ct_CC" && break
10785 done
10786
10787   if test "x$ac_ct_CC" = x; then
10788     CC=""
10789   else
10790     case $cross_compiling:$ac_tool_warned in
10791 yes:)
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10794 ac_tool_warned=yes ;;
10795 esac
10796     CC=$ac_ct_CC
10797   fi
10798 fi
10799
10800
10801 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10803 as_fn_error $? "no acceptable C compiler found in \$PATH
10804 See \`config.log' for more details" "$LINENO" 5 ; }
10805
10806 # Provide some information about the compiler.
10807 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10808 set X $ac_compile
10809 ac_compiler=$2
10810 for ac_option in --version -v -V -qversion; do
10811   { { ac_try="$ac_compiler $ac_option >&5"
10812 case "(($ac_try" in
10813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814   *) ac_try_echo=$ac_try;;
10815 esac
10816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10817 $as_echo "$ac_try_echo"; } >&5
10818   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10819   ac_status=$?
10820   if test -s conftest.err; then
10821     sed '10a\
10822 ... rest of stderr output deleted ...
10823          10q' conftest.err >conftest.er1
10824     cat conftest.er1 >&5
10825   fi
10826   rm -f conftest.er1 conftest.err
10827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10828   test $ac_status = 0; }
10829 done
10830
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10832 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10833 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
10834   $as_echo_n "(cached) " >&6
10835 else
10836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h.  */
10838
10839 int
10840 main ()
10841 {
10842 #ifndef __GNUC__
10843        choke me
10844 #endif
10845
10846   ;
10847   return 0;
10848 }
10849 _ACEOF
10850 if ac_fn_c_try_compile "$LINENO"; then :
10851   ac_compiler_gnu=yes
10852 else
10853   ac_compiler_gnu=no
10854 fi
10855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10856 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10857
10858 fi
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10860 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10861 if test $ac_compiler_gnu = yes; then
10862   GCC=yes
10863 else
10864   GCC=
10865 fi
10866 ac_test_CFLAGS=${CFLAGS+set}
10867 ac_save_CFLAGS=$CFLAGS
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10869 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10870 if test "${ac_cv_prog_cc_g+set}" = set; then :
10871   $as_echo_n "(cached) " >&6
10872 else
10873   ac_save_c_werror_flag=$ac_c_werror_flag
10874    ac_c_werror_flag=yes
10875    ac_cv_prog_cc_g=no
10876    CFLAGS="-g"
10877    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878 /* end confdefs.h.  */
10879
10880 int
10881 main ()
10882 {
10883
10884   ;
10885   return 0;
10886 }
10887 _ACEOF
10888 if ac_fn_c_try_compile "$LINENO"; then :
10889   ac_cv_prog_cc_g=yes
10890 else
10891   CFLAGS=""
10892       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h.  */
10894
10895 int
10896 main ()
10897 {
10898
10899   ;
10900   return 0;
10901 }
10902 _ACEOF
10903 if ac_fn_c_try_compile "$LINENO"; then :
10904
10905 else
10906   ac_c_werror_flag=$ac_save_c_werror_flag
10907          CFLAGS="-g"
10908          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h.  */
10910
10911 int
10912 main ()
10913 {
10914
10915   ;
10916   return 0;
10917 }
10918 _ACEOF
10919 if ac_fn_c_try_compile "$LINENO"; then :
10920   ac_cv_prog_cc_g=yes
10921 fi
10922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10923 fi
10924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10925 fi
10926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10927    ac_c_werror_flag=$ac_save_c_werror_flag
10928 fi
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10930 $as_echo "$ac_cv_prog_cc_g" >&6; }
10931 if test "$ac_test_CFLAGS" = set; then
10932   CFLAGS=$ac_save_CFLAGS
10933 elif test $ac_cv_prog_cc_g = yes; then
10934   if test "$GCC" = yes; then
10935     CFLAGS="-g -O2"
10936   else
10937     CFLAGS="-g"
10938   fi
10939 else
10940   if test "$GCC" = yes; then
10941     CFLAGS="-O2"
10942   else
10943     CFLAGS=
10944   fi
10945 fi
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10947 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10948 if test "${ac_cv_prog_cc_c89+set}" = set; then :
10949   $as_echo_n "(cached) " >&6
10950 else
10951   ac_cv_prog_cc_c89=no
10952 ac_save_CC=$CC
10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h.  */
10955 #include <stdarg.h>
10956 #include <stdio.h>
10957 #include <sys/types.h>
10958 #include <sys/stat.h>
10959 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10960 struct buf { int x; };
10961 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10962 static char *e (p, i)
10963      char **p;
10964      int i;
10965 {
10966   return p[i];
10967 }
10968 static char *f (char * (*g) (char **, int), char **p, ...)
10969 {
10970   char *s;
10971   va_list v;
10972   va_start (v,p);
10973   s = g (p, va_arg (v,int));
10974   va_end (v);
10975   return s;
10976 }
10977
10978 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
10979    function prototypes and stuff, but not '\xHH' hex character constants.
10980    These don't provoke an error unfortunately, instead are silently treated
10981    as 'x'.  The following induces an error, until -std is added to get
10982    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
10983    array size at least.  It's necessary to write '\x00'==0 to get something
10984    that's true only with -std.  */
10985 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10986
10987 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
10988    inside strings and character constants.  */
10989 #define FOO(x) 'x'
10990 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
10991
10992 int test (int i, double x);
10993 struct s1 {int (*f) (int a);};
10994 struct s2 {int (*f) (double a);};
10995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10996 int argc;
10997 char **argv;
10998 int
10999 main ()
11000 {
11001 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11002   ;
11003   return 0;
11004 }
11005 _ACEOF
11006 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11007         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11008 do
11009   CC="$ac_save_CC $ac_arg"
11010   if ac_fn_c_try_compile "$LINENO"; then :
11011   ac_cv_prog_cc_c89=$ac_arg
11012 fi
11013 rm -f core conftest.err conftest.$ac_objext
11014   test "x$ac_cv_prog_cc_c89" != "xno" && break
11015 done
11016 rm -f conftest.$ac_ext
11017 CC=$ac_save_CC
11018
11019 fi
11020 # AC_CACHE_VAL
11021 case "x$ac_cv_prog_cc_c89" in
11022   x)
11023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11024 $as_echo "none needed" >&6; } ;;
11025   xno)
11026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11027 $as_echo "unsupported" >&6; } ;;
11028   *)
11029     CC="$CC $ac_cv_prog_cc_c89"
11030     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11031 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11032 esac
11033 if test "x$ac_cv_prog_cc_c89" != xno; then :
11034
11035 fi
11036
11037 ac_ext=c
11038 ac_cpp='$CPP $CPPFLAGS'
11039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11042
11043 depcc="$CC"   am_compiler_list=
11044
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11046 $as_echo_n "checking dependency style of $depcc... " >&6; }
11047 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11048   $as_echo_n "(cached) " >&6
11049 else
11050   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11051   # We make a subdir and do the tests there.  Otherwise we can end up
11052   # making bogus files that we don't know about and never remove.  For
11053   # instance it was reported that on HP-UX the gcc test will end up
11054   # making a dummy file named `D' -- because `-MD' means `put the output
11055   # in D'.
11056   mkdir conftest.dir
11057   # Copy depcomp to subdir because otherwise we won't find it if we're
11058   # using a relative directory.
11059   cp "$am_depcomp" conftest.dir
11060   cd conftest.dir
11061   # We will build objects and dependencies in a subdirectory because
11062   # it helps to detect inapplicable dependency modes.  For instance
11063   # both Tru64's cc and ICC support -MD to output dependencies as a
11064   # side effect of compilation, but ICC will put the dependencies in
11065   # the current directory while Tru64 will put them in the object
11066   # directory.
11067   mkdir sub
11068
11069   am_cv_CC_dependencies_compiler_type=none
11070   if test "$am_compiler_list" = ""; then
11071      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11072   fi
11073   am__universal=false
11074   case " $depcc " in #(
11075      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11076      esac
11077
11078   for depmode in $am_compiler_list; do
11079     # Setup a source with many dependencies, because some compilers
11080     # like to wrap large dependency lists on column 80 (with \), and
11081     # we should not choose a depcomp mode which is confused by this.
11082     #
11083     # We need to recreate these files for each test, as the compiler may
11084     # overwrite some of them when testing with obscure command lines.
11085     # This happens at least with the AIX C compiler.
11086     : > sub/conftest.c
11087     for i in 1 2 3 4 5 6; do
11088       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11089       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11090       # Solaris 8's {/usr,}/bin/sh.
11091       touch sub/conftst$i.h
11092     done
11093     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11094
11095     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11096     # mode.  It turns out that the SunPro C++ compiler does not properly
11097     # handle `-M -o', and we need to detect this.  Also, some Intel
11098     # versions had trouble with output in subdirs
11099     am__obj=sub/conftest.${OBJEXT-o}
11100     am__minus_obj="-o $am__obj"
11101     case $depmode in
11102     gcc)
11103       # This depmode causes a compiler race in universal mode.
11104       test "$am__universal" = false || continue
11105       ;;
11106     nosideeffect)
11107       # after this tag, mechanisms are not by side-effect, so they'll
11108       # only be used when explicitly requested
11109       if test "x$enable_dependency_tracking" = xyes; then
11110         continue
11111       else
11112         break
11113       fi
11114       ;;
11115     msvisualcpp | msvcmsys)
11116       # This compiler won't grok `-c -o', but also, the minuso test has
11117       # not run yet.  These depmodes are late enough in the game, and
11118       # so weak that their functioning should not be impacted.
11119       am__obj=conftest.${OBJEXT-o}
11120       am__minus_obj=
11121       ;;
11122     none) break ;;
11123     esac
11124     if depmode=$depmode \
11125        source=sub/conftest.c object=$am__obj \
11126        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11127        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11128          >/dev/null 2>conftest.err &&
11129        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11130        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11131        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11132        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11133       # icc doesn't choke on unknown options, it will just issue warnings
11134       # or remarks (even with -Werror).  So we grep stderr for any message
11135       # that says an option was ignored or not supported.
11136       # When given -MP, icc 7.0 and 7.1 complain thusly:
11137       #   icc: Command line warning: ignoring option '-M'; no argument required
11138       # The diagnosis changed in icc 8.0:
11139       #   icc: Command line remark: option '-MP' not supported
11140       if (grep 'ignoring option' conftest.err ||
11141           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11142         am_cv_CC_dependencies_compiler_type=$depmode
11143         break
11144       fi
11145     fi
11146   done
11147
11148   cd ..
11149   rm -rf conftest.dir
11150 else
11151   am_cv_CC_dependencies_compiler_type=none
11152 fi
11153
11154 fi
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11156 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11157 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11158
11159  if
11160   test "x$enable_dependency_tracking" != xno \
11161   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11162   am__fastdepCC_TRUE=
11163   am__fastdepCC_FALSE='#'
11164 else
11165   am__fastdepCC_TRUE='#'
11166   am__fastdepCC_FALSE=
11167 fi
11168
11169
11170 ac_ext=cpp
11171 ac_cpp='$CXXCPP $CPPFLAGS'
11172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11175 if test -z "$CXX"; then
11176   if test -n "$CCC"; then
11177     CXX=$CCC
11178   else
11179     if test -n "$ac_tool_prefix"; then
11180   for ac_prog in g++ g++3 c++ CC
11181   do
11182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185 $as_echo_n "checking for $ac_word... " >&6; }
11186 if test "${ac_cv_prog_CXX+set}" = set; then :
11187   $as_echo_n "(cached) " >&6
11188 else
11189   if test -n "$CXX"; then
11190   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11191 else
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $PATH
11194 do
11195   IFS=$as_save_IFS
11196   test -z "$as_dir" && as_dir=.
11197     for ac_exec_ext in '' $ac_executable_extensions; do
11198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11199     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11201     break 2
11202   fi
11203 done
11204   done
11205 IFS=$as_save_IFS
11206
11207 fi
11208 fi
11209 CXX=$ac_cv_prog_CXX
11210 if test -n "$CXX"; then
11211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11212 $as_echo "$CXX" >&6; }
11213 else
11214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; }
11216 fi
11217
11218
11219     test -n "$CXX" && break
11220   done
11221 fi
11222 if test -z "$CXX"; then
11223   ac_ct_CXX=$CXX
11224   for ac_prog in g++ g++3 c++ CC
11225 do
11226   # Extract the first word of "$ac_prog", so it can be a program name with args.
11227 set dummy $ac_prog; ac_word=$2
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11229 $as_echo_n "checking for $ac_word... " >&6; }
11230 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11231   $as_echo_n "(cached) " >&6
11232 else
11233   if test -n "$ac_ct_CXX"; then
11234   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11235 else
11236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237 for as_dir in $PATH
11238 do
11239   IFS=$as_save_IFS
11240   test -z "$as_dir" && as_dir=.
11241     for ac_exec_ext in '' $ac_executable_extensions; do
11242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11243     ac_cv_prog_ac_ct_CXX="$ac_prog"
11244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11245     break 2
11246   fi
11247 done
11248   done
11249 IFS=$as_save_IFS
11250
11251 fi
11252 fi
11253 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11254 if test -n "$ac_ct_CXX"; then
11255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11256 $as_echo "$ac_ct_CXX" >&6; }
11257 else
11258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11259 $as_echo "no" >&6; }
11260 fi
11261
11262
11263   test -n "$ac_ct_CXX" && break
11264 done
11265
11266   if test "x$ac_ct_CXX" = x; then
11267     CXX="g++"
11268   else
11269     case $cross_compiling:$ac_tool_warned in
11270 yes:)
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11273 ac_tool_warned=yes ;;
11274 esac
11275     CXX=$ac_ct_CXX
11276   fi
11277 fi
11278
11279   fi
11280 fi
11281 # Provide some information about the compiler.
11282 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11283 set X $ac_compile
11284 ac_compiler=$2
11285 for ac_option in --version -v -V -qversion; do
11286   { { ac_try="$ac_compiler $ac_option >&5"
11287 case "(($ac_try" in
11288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289   *) ac_try_echo=$ac_try;;
11290 esac
11291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11292 $as_echo "$ac_try_echo"; } >&5
11293   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11294   ac_status=$?
11295   if test -s conftest.err; then
11296     sed '10a\
11297 ... rest of stderr output deleted ...
11298          10q' conftest.err >conftest.er1
11299     cat conftest.er1 >&5
11300   fi
11301   rm -f conftest.er1 conftest.err
11302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11303   test $ac_status = 0; }
11304 done
11305
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11307 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11308 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11309   $as_echo_n "(cached) " >&6
11310 else
11311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h.  */
11313
11314 int
11315 main ()
11316 {
11317 #ifndef __GNUC__
11318        choke me
11319 #endif
11320
11321   ;
11322   return 0;
11323 }
11324 _ACEOF
11325 if ac_fn_cxx_try_compile "$LINENO"; then :
11326   ac_compiler_gnu=yes
11327 else
11328   ac_compiler_gnu=no
11329 fi
11330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11331 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11332
11333 fi
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11335 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11336 if test $ac_compiler_gnu = yes; then
11337   GXX=yes
11338 else
11339   GXX=
11340 fi
11341 ac_test_CXXFLAGS=${CXXFLAGS+set}
11342 ac_save_CXXFLAGS=$CXXFLAGS
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11344 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11345 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11346   $as_echo_n "(cached) " >&6
11347 else
11348   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11349    ac_cxx_werror_flag=yes
11350    ac_cv_prog_cxx_g=no
11351    CXXFLAGS="-g"
11352    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h.  */
11354
11355 int
11356 main ()
11357 {
11358
11359   ;
11360   return 0;
11361 }
11362 _ACEOF
11363 if ac_fn_cxx_try_compile "$LINENO"; then :
11364   ac_cv_prog_cxx_g=yes
11365 else
11366   CXXFLAGS=""
11367       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h.  */
11369
11370 int
11371 main ()
11372 {
11373
11374   ;
11375   return 0;
11376 }
11377 _ACEOF
11378 if ac_fn_cxx_try_compile "$LINENO"; then :
11379
11380 else
11381   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11382          CXXFLAGS="-g"
11383          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384 /* end confdefs.h.  */
11385
11386 int
11387 main ()
11388 {
11389
11390   ;
11391   return 0;
11392 }
11393 _ACEOF
11394 if ac_fn_cxx_try_compile "$LINENO"; then :
11395   ac_cv_prog_cxx_g=yes
11396 fi
11397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11398 fi
11399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11400 fi
11401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11402    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11403 fi
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11405 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11406 if test "$ac_test_CXXFLAGS" = set; then
11407   CXXFLAGS=$ac_save_CXXFLAGS
11408 elif test $ac_cv_prog_cxx_g = yes; then
11409   if test "$GXX" = yes; then
11410     CXXFLAGS="-g -O2"
11411   else
11412     CXXFLAGS="-g"
11413   fi
11414 else
11415   if test "$GXX" = yes; then
11416     CXXFLAGS="-O2"
11417   else
11418     CXXFLAGS=
11419   fi
11420 fi
11421 ac_ext=c
11422 ac_cpp='$CPP $CPPFLAGS'
11423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11426
11427 depcc="$CXX"  am_compiler_list=
11428
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11430 $as_echo_n "checking dependency style of $depcc... " >&6; }
11431 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11432   $as_echo_n "(cached) " >&6
11433 else
11434   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11435   # We make a subdir and do the tests there.  Otherwise we can end up
11436   # making bogus files that we don't know about and never remove.  For
11437   # instance it was reported that on HP-UX the gcc test will end up
11438   # making a dummy file named `D' -- because `-MD' means `put the output
11439   # in D'.
11440   mkdir conftest.dir
11441   # Copy depcomp to subdir because otherwise we won't find it if we're
11442   # using a relative directory.
11443   cp "$am_depcomp" conftest.dir
11444   cd conftest.dir
11445   # We will build objects and dependencies in a subdirectory because
11446   # it helps to detect inapplicable dependency modes.  For instance
11447   # both Tru64's cc and ICC support -MD to output dependencies as a
11448   # side effect of compilation, but ICC will put the dependencies in
11449   # the current directory while Tru64 will put them in the object
11450   # directory.
11451   mkdir sub
11452
11453   am_cv_CXX_dependencies_compiler_type=none
11454   if test "$am_compiler_list" = ""; then
11455      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11456   fi
11457   am__universal=false
11458   case " $depcc " in #(
11459      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11460      esac
11461
11462   for depmode in $am_compiler_list; do
11463     # Setup a source with many dependencies, because some compilers
11464     # like to wrap large dependency lists on column 80 (with \), and
11465     # we should not choose a depcomp mode which is confused by this.
11466     #
11467     # We need to recreate these files for each test, as the compiler may
11468     # overwrite some of them when testing with obscure command lines.
11469     # This happens at least with the AIX C compiler.
11470     : > sub/conftest.c
11471     for i in 1 2 3 4 5 6; do
11472       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11473       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11474       # Solaris 8's {/usr,}/bin/sh.
11475       touch sub/conftst$i.h
11476     done
11477     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11478
11479     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11480     # mode.  It turns out that the SunPro C++ compiler does not properly
11481     # handle `-M -o', and we need to detect this.  Also, some Intel
11482     # versions had trouble with output in subdirs
11483     am__obj=sub/conftest.${OBJEXT-o}
11484     am__minus_obj="-o $am__obj"
11485     case $depmode in
11486     gcc)
11487       # This depmode causes a compiler race in universal mode.
11488       test "$am__universal" = false || continue
11489       ;;
11490     nosideeffect)
11491       # after this tag, mechanisms are not by side-effect, so they'll
11492       # only be used when explicitly requested
11493       if test "x$enable_dependency_tracking" = xyes; then
11494         continue
11495       else
11496         break
11497       fi
11498       ;;
11499     msvisualcpp | msvcmsys)
11500       # This compiler won't grok `-c -o', but also, the minuso test has
11501       # not run yet.  These depmodes are late enough in the game, and
11502       # so weak that their functioning should not be impacted.
11503       am__obj=conftest.${OBJEXT-o}
11504       am__minus_obj=
11505       ;;
11506     none) break ;;
11507     esac
11508     if depmode=$depmode \
11509        source=sub/conftest.c object=$am__obj \
11510        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11511        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11512          >/dev/null 2>conftest.err &&
11513        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11514        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11515        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11516        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11517       # icc doesn't choke on unknown options, it will just issue warnings
11518       # or remarks (even with -Werror).  So we grep stderr for any message
11519       # that says an option was ignored or not supported.
11520       # When given -MP, icc 7.0 and 7.1 complain thusly:
11521       #   icc: Command line warning: ignoring option '-M'; no argument required
11522       # The diagnosis changed in icc 8.0:
11523       #   icc: Command line remark: option '-MP' not supported
11524       if (grep 'ignoring option' conftest.err ||
11525           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11526         am_cv_CXX_dependencies_compiler_type=$depmode
11527         break
11528       fi
11529     fi
11530   done
11531
11532   cd ..
11533   rm -rf conftest.dir
11534 else
11535   am_cv_CXX_dependencies_compiler_type=none
11536 fi
11537
11538 fi
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11540 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11541 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11542
11543  if
11544   test "x$enable_dependency_tracking" != xno \
11545   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11546   am__fastdepCXX_TRUE=
11547   am__fastdepCXX_FALSE='#'
11548 else
11549   am__fastdepCXX_TRUE='#'
11550   am__fastdepCXX_FALSE=
11551 fi
11552
11553
11554
11555 ac_ext=cpp
11556 ac_cpp='$CXXCPP $CPPFLAGS'
11557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11560 if test -z "$CXX"; then
11561   if test -n "$CCC"; then
11562     CXX=$CCC
11563   else
11564     if test -n "$ac_tool_prefix"; then
11565   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11566   do
11567     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11570 $as_echo_n "checking for $ac_word... " >&6; }
11571 if test "${ac_cv_prog_CXX+set}" = set; then :
11572   $as_echo_n "(cached) " >&6
11573 else
11574   if test -n "$CXX"; then
11575   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11576 else
11577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578 for as_dir in $PATH
11579 do
11580   IFS=$as_save_IFS
11581   test -z "$as_dir" && as_dir=.
11582     for ac_exec_ext in '' $ac_executable_extensions; do
11583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11584     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11586     break 2
11587   fi
11588 done
11589   done
11590 IFS=$as_save_IFS
11591
11592 fi
11593 fi
11594 CXX=$ac_cv_prog_CXX
11595 if test -n "$CXX"; then
11596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11597 $as_echo "$CXX" >&6; }
11598 else
11599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600 $as_echo "no" >&6; }
11601 fi
11602
11603
11604     test -n "$CXX" && break
11605   done
11606 fi
11607 if test -z "$CXX"; then
11608   ac_ct_CXX=$CXX
11609   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11610 do
11611   # Extract the first word of "$ac_prog", so it can be a program name with args.
11612 set dummy $ac_prog; ac_word=$2
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614 $as_echo_n "checking for $ac_word... " >&6; }
11615 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11616   $as_echo_n "(cached) " >&6
11617 else
11618   if test -n "$ac_ct_CXX"; then
11619   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11620 else
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11623 do
11624   IFS=$as_save_IFS
11625   test -z "$as_dir" && as_dir=.
11626     for ac_exec_ext in '' $ac_executable_extensions; do
11627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11628     ac_cv_prog_ac_ct_CXX="$ac_prog"
11629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11630     break 2
11631   fi
11632 done
11633   done
11634 IFS=$as_save_IFS
11635
11636 fi
11637 fi
11638 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11639 if test -n "$ac_ct_CXX"; then
11640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11641 $as_echo "$ac_ct_CXX" >&6; }
11642 else
11643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 $as_echo "no" >&6; }
11645 fi
11646
11647
11648   test -n "$ac_ct_CXX" && break
11649 done
11650
11651   if test "x$ac_ct_CXX" = x; then
11652     CXX="g++"
11653   else
11654     case $cross_compiling:$ac_tool_warned in
11655 yes:)
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11658 ac_tool_warned=yes ;;
11659 esac
11660     CXX=$ac_ct_CXX
11661   fi
11662 fi
11663
11664   fi
11665 fi
11666 # Provide some information about the compiler.
11667 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11668 set X $ac_compile
11669 ac_compiler=$2
11670 for ac_option in --version -v -V -qversion; do
11671   { { ac_try="$ac_compiler $ac_option >&5"
11672 case "(($ac_try" in
11673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674   *) ac_try_echo=$ac_try;;
11675 esac
11676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11677 $as_echo "$ac_try_echo"; } >&5
11678   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11679   ac_status=$?
11680   if test -s conftest.err; then
11681     sed '10a\
11682 ... rest of stderr output deleted ...
11683          10q' conftest.err >conftest.er1
11684     cat conftest.er1 >&5
11685   fi
11686   rm -f conftest.er1 conftest.err
11687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11688   test $ac_status = 0; }
11689 done
11690
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11692 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11693 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11694   $as_echo_n "(cached) " >&6
11695 else
11696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h.  */
11698
11699 int
11700 main ()
11701 {
11702 #ifndef __GNUC__
11703        choke me
11704 #endif
11705
11706   ;
11707   return 0;
11708 }
11709 _ACEOF
11710 if ac_fn_cxx_try_compile "$LINENO"; then :
11711   ac_compiler_gnu=yes
11712 else
11713   ac_compiler_gnu=no
11714 fi
11715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11716 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11717
11718 fi
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11720 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11721 if test $ac_compiler_gnu = yes; then
11722   GXX=yes
11723 else
11724   GXX=
11725 fi
11726 ac_test_CXXFLAGS=${CXXFLAGS+set}
11727 ac_save_CXXFLAGS=$CXXFLAGS
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11729 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11730 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11731   $as_echo_n "(cached) " >&6
11732 else
11733   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11734    ac_cxx_werror_flag=yes
11735    ac_cv_prog_cxx_g=no
11736    CXXFLAGS="-g"
11737    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738 /* end confdefs.h.  */
11739
11740 int
11741 main ()
11742 {
11743
11744   ;
11745   return 0;
11746 }
11747 _ACEOF
11748 if ac_fn_cxx_try_compile "$LINENO"; then :
11749   ac_cv_prog_cxx_g=yes
11750 else
11751   CXXFLAGS=""
11752       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h.  */
11754
11755 int
11756 main ()
11757 {
11758
11759   ;
11760   return 0;
11761 }
11762 _ACEOF
11763 if ac_fn_cxx_try_compile "$LINENO"; then :
11764
11765 else
11766   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11767          CXXFLAGS="-g"
11768          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11769 /* end confdefs.h.  */
11770
11771 int
11772 main ()
11773 {
11774
11775   ;
11776   return 0;
11777 }
11778 _ACEOF
11779 if ac_fn_cxx_try_compile "$LINENO"; then :
11780   ac_cv_prog_cxx_g=yes
11781 fi
11782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11783 fi
11784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785 fi
11786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11787    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11788 fi
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11790 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11791 if test "$ac_test_CXXFLAGS" = set; then
11792   CXXFLAGS=$ac_save_CXXFLAGS
11793 elif test $ac_cv_prog_cxx_g = yes; then
11794   if test "$GXX" = yes; then
11795     CXXFLAGS="-g -O2"
11796   else
11797     CXXFLAGS="-g"
11798   fi
11799 else
11800   if test "$GXX" = yes; then
11801     CXXFLAGS="-O2"
11802   else
11803     CXXFLAGS=
11804   fi
11805 fi
11806 ac_ext=c
11807 ac_cpp='$CPP $CPPFLAGS'
11808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11811
11812 depcc="$CXX"  am_compiler_list=
11813
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11815 $as_echo_n "checking dependency style of $depcc... " >&6; }
11816 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11817   $as_echo_n "(cached) " >&6
11818 else
11819   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11820   # We make a subdir and do the tests there.  Otherwise we can end up
11821   # making bogus files that we don't know about and never remove.  For
11822   # instance it was reported that on HP-UX the gcc test will end up
11823   # making a dummy file named `D' -- because `-MD' means `put the output
11824   # in D'.
11825   mkdir conftest.dir
11826   # Copy depcomp to subdir because otherwise we won't find it if we're
11827   # using a relative directory.
11828   cp "$am_depcomp" conftest.dir
11829   cd conftest.dir
11830   # We will build objects and dependencies in a subdirectory because
11831   # it helps to detect inapplicable dependency modes.  For instance
11832   # both Tru64's cc and ICC support -MD to output dependencies as a
11833   # side effect of compilation, but ICC will put the dependencies in
11834   # the current directory while Tru64 will put them in the object
11835   # directory.
11836   mkdir sub
11837
11838   am_cv_CXX_dependencies_compiler_type=none
11839   if test "$am_compiler_list" = ""; then
11840      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11841   fi
11842   am__universal=false
11843   case " $depcc " in #(
11844      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11845      esac
11846
11847   for depmode in $am_compiler_list; do
11848     # Setup a source with many dependencies, because some compilers
11849     # like to wrap large dependency lists on column 80 (with \), and
11850     # we should not choose a depcomp mode which is confused by this.
11851     #
11852     # We need to recreate these files for each test, as the compiler may
11853     # overwrite some of them when testing with obscure command lines.
11854     # This happens at least with the AIX C compiler.
11855     : > sub/conftest.c
11856     for i in 1 2 3 4 5 6; do
11857       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11858       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11859       # Solaris 8's {/usr,}/bin/sh.
11860       touch sub/conftst$i.h
11861     done
11862     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11863
11864     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11865     # mode.  It turns out that the SunPro C++ compiler does not properly
11866     # handle `-M -o', and we need to detect this.  Also, some Intel
11867     # versions had trouble with output in subdirs
11868     am__obj=sub/conftest.${OBJEXT-o}
11869     am__minus_obj="-o $am__obj"
11870     case $depmode in
11871     gcc)
11872       # This depmode causes a compiler race in universal mode.
11873       test "$am__universal" = false || continue
11874       ;;
11875     nosideeffect)
11876       # after this tag, mechanisms are not by side-effect, so they'll
11877       # only be used when explicitly requested
11878       if test "x$enable_dependency_tracking" = xyes; then
11879         continue
11880       else
11881         break
11882       fi
11883       ;;
11884     msvisualcpp | msvcmsys)
11885       # This compiler won't grok `-c -o', but also, the minuso test has
11886       # not run yet.  These depmodes are late enough in the game, and
11887       # so weak that their functioning should not be impacted.
11888       am__obj=conftest.${OBJEXT-o}
11889       am__minus_obj=
11890       ;;
11891     none) break ;;
11892     esac
11893     if depmode=$depmode \
11894        source=sub/conftest.c object=$am__obj \
11895        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11896        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11897          >/dev/null 2>conftest.err &&
11898        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11899        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11900        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11901        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11902       # icc doesn't choke on unknown options, it will just issue warnings
11903       # or remarks (even with -Werror).  So we grep stderr for any message
11904       # that says an option was ignored or not supported.
11905       # When given -MP, icc 7.0 and 7.1 complain thusly:
11906       #   icc: Command line warning: ignoring option '-M'; no argument required
11907       # The diagnosis changed in icc 8.0:
11908       #   icc: Command line remark: option '-MP' not supported
11909       if (grep 'ignoring option' conftest.err ||
11910           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11911         am_cv_CXX_dependencies_compiler_type=$depmode
11912         break
11913       fi
11914     fi
11915   done
11916
11917   cd ..
11918   rm -rf conftest.dir
11919 else
11920   am_cv_CXX_dependencies_compiler_type=none
11921 fi
11922
11923 fi
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11925 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11926 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11927
11928  if
11929   test "x$enable_dependency_tracking" != xno \
11930   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11931   am__fastdepCXX_TRUE=
11932   am__fastdepCXX_FALSE='#'
11933 else
11934   am__fastdepCXX_TRUE='#'
11935   am__fastdepCXX_FALSE=
11936 fi
11937
11938
11939 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11940     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11941     (test "X$CXX" != "Xg++"))) ; then
11942   ac_ext=cpp
11943 ac_cpp='$CXXCPP $CPPFLAGS'
11944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11948 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11949 if test -z "$CXXCPP"; then
11950   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11951   $as_echo_n "(cached) " >&6
11952 else
11953       # Double quotes because CXXCPP needs to be expanded
11954     for CXXCPP in "$CXX -E" "/lib/cpp"
11955     do
11956       ac_preproc_ok=false
11957 for ac_cxx_preproc_warn_flag in '' yes
11958 do
11959   # Use a header file that comes with gcc, so configuring glibc
11960   # with a fresh cross-compiler works.
11961   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11962   # <limits.h> exists even on freestanding compilers.
11963   # On the NeXT, cc -E runs the code through the compiler's parser,
11964   # not just through cpp. "Syntax error" is here to catch this case.
11965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h.  */
11967 #ifdef __STDC__
11968 # include <limits.h>
11969 #else
11970 # include <assert.h>
11971 #endif
11972                      Syntax error
11973 _ACEOF
11974 if ac_fn_cxx_try_cpp "$LINENO"; then :
11975
11976 else
11977   # Broken: fails on valid input.
11978 continue
11979 fi
11980 rm -f conftest.err conftest.i conftest.$ac_ext
11981
11982   # OK, works on sane cases.  Now check whether nonexistent headers
11983   # can be detected and how.
11984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h.  */
11986 #include <ac_nonexistent.h>
11987 _ACEOF
11988 if ac_fn_cxx_try_cpp "$LINENO"; then :
11989   # Broken: success on invalid input.
11990 continue
11991 else
11992   # Passes both tests.
11993 ac_preproc_ok=:
11994 break
11995 fi
11996 rm -f conftest.err conftest.i conftest.$ac_ext
11997
11998 done
11999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12000 rm -f conftest.i conftest.err conftest.$ac_ext
12001 if $ac_preproc_ok; then :
12002   break
12003 fi
12004
12005     done
12006     ac_cv_prog_CXXCPP=$CXXCPP
12007
12008 fi
12009   CXXCPP=$ac_cv_prog_CXXCPP
12010 else
12011   ac_cv_prog_CXXCPP=$CXXCPP
12012 fi
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12014 $as_echo "$CXXCPP" >&6; }
12015 ac_preproc_ok=false
12016 for ac_cxx_preproc_warn_flag in '' yes
12017 do
12018   # Use a header file that comes with gcc, so configuring glibc
12019   # with a fresh cross-compiler works.
12020   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12021   # <limits.h> exists even on freestanding compilers.
12022   # On the NeXT, cc -E runs the code through the compiler's parser,
12023   # not just through cpp. "Syntax error" is here to catch this case.
12024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h.  */
12026 #ifdef __STDC__
12027 # include <limits.h>
12028 #else
12029 # include <assert.h>
12030 #endif
12031                      Syntax error
12032 _ACEOF
12033 if ac_fn_cxx_try_cpp "$LINENO"; then :
12034
12035 else
12036   # Broken: fails on valid input.
12037 continue
12038 fi
12039 rm -f conftest.err conftest.i conftest.$ac_ext
12040
12041   # OK, works on sane cases.  Now check whether nonexistent headers
12042   # can be detected and how.
12043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h.  */
12045 #include <ac_nonexistent.h>
12046 _ACEOF
12047 if ac_fn_cxx_try_cpp "$LINENO"; then :
12048   # Broken: success on invalid input.
12049 continue
12050 else
12051   # Passes both tests.
12052 ac_preproc_ok=:
12053 break
12054 fi
12055 rm -f conftest.err conftest.i conftest.$ac_ext
12056
12057 done
12058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12059 rm -f conftest.i conftest.err conftest.$ac_ext
12060 if $ac_preproc_ok; then :
12061
12062 else
12063   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12065 _lt_caught_CXX_error=yes; }
12066 fi
12067
12068 ac_ext=c
12069 ac_cpp='$CPP $CPPFLAGS'
12070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12073
12074 else
12075   _lt_caught_CXX_error=yes
12076 fi
12077
12078
12079
12080
12081 ac_ext=cpp
12082 ac_cpp='$CXXCPP $CPPFLAGS'
12083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12086
12087 archive_cmds_need_lc_CXX=no
12088 allow_undefined_flag_CXX=
12089 always_export_symbols_CXX=no
12090 archive_expsym_cmds_CXX=
12091 compiler_needs_object_CXX=no
12092 export_dynamic_flag_spec_CXX=
12093 hardcode_direct_CXX=no
12094 hardcode_direct_absolute_CXX=no
12095 hardcode_libdir_flag_spec_CXX=
12096 hardcode_libdir_flag_spec_ld_CXX=
12097 hardcode_libdir_separator_CXX=
12098 hardcode_minus_L_CXX=no
12099 hardcode_shlibpath_var_CXX=unsupported
12100 hardcode_automatic_CXX=no
12101 inherit_rpath_CXX=no
12102 module_cmds_CXX=
12103 module_expsym_cmds_CXX=
12104 link_all_deplibs_CXX=unknown
12105 old_archive_cmds_CXX=$old_archive_cmds
12106 no_undefined_flag_CXX=
12107 whole_archive_flag_spec_CXX=
12108 enable_shared_with_static_runtimes_CXX=no
12109
12110 # Source file extension for C++ test sources.
12111 ac_ext=cpp
12112
12113 # Object file extension for compiled C++ test sources.
12114 objext=o
12115 objext_CXX=$objext
12116
12117 # No sense in running all these tests if we already determined that
12118 # the CXX compiler isn't working.  Some variables (like enable_shared)
12119 # are currently assumed to apply to all compilers on this platform,
12120 # and will be corrupted by setting them based on a non-working compiler.
12121 if test "$_lt_caught_CXX_error" != yes; then
12122   # Code to be used in simple compile tests
12123   lt_simple_compile_test_code="int some_variable = 0;"
12124
12125   # Code to be used in simple link tests
12126   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12127
12128   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12129
12130
12131
12132
12133
12134
12135 # If no C compiler was specified, use CC.
12136 LTCC=${LTCC-"$CC"}
12137
12138 # If no C compiler flags were specified, use CFLAGS.
12139 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12140
12141 # Allow CC to be a program name with arguments.
12142 compiler=$CC
12143
12144
12145   # save warnings/boilerplate of simple test code
12146   ac_outfile=conftest.$ac_objext
12147 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12148 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12149 _lt_compiler_boilerplate=`cat conftest.err`
12150 $RM conftest*
12151
12152   ac_outfile=conftest.$ac_objext
12153 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12154 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12155 _lt_linker_boilerplate=`cat conftest.err`
12156 $RM -r conftest*
12157
12158
12159   # Allow CC to be a program name with arguments.
12160   lt_save_CC=$CC
12161   lt_save_LD=$LD
12162   lt_save_GCC=$GCC
12163   GCC=$GXX
12164   lt_save_with_gnu_ld=$with_gnu_ld
12165   lt_save_path_LD=$lt_cv_path_LD
12166   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12167     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12168   else
12169     $as_unset lt_cv_prog_gnu_ld
12170   fi
12171   if test -n "${lt_cv_path_LDCXX+set}"; then
12172     lt_cv_path_LD=$lt_cv_path_LDCXX
12173   else
12174     $as_unset lt_cv_path_LD
12175   fi
12176   test -z "${LDCXX+set}" || LD=$LDCXX
12177   CC=${CXX-"c++"}
12178   compiler=$CC
12179   compiler_CXX=$CC
12180   for cc_temp in $compiler""; do
12181   case $cc_temp in
12182     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12183     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12184     \-*) ;;
12185     *) break;;
12186   esac
12187 done
12188 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12189
12190
12191   if test -n "$compiler"; then
12192     # We don't want -fno-exception when compiling C++ code, so set the
12193     # no_builtin_flag separately
12194     if test "$GXX" = yes; then
12195       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12196     else
12197       lt_prog_compiler_no_builtin_flag_CXX=
12198     fi
12199
12200     if test "$GXX" = yes; then
12201       # Set up default GNU C++ configuration
12202
12203
12204
12205 # Check whether --with-gnu-ld was given.
12206 if test "${with_gnu_ld+set}" = set; then :
12207   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12208 else
12209   with_gnu_ld=no
12210 fi
12211
12212 ac_prog=ld
12213 if test "$GCC" = yes; then
12214   # Check if gcc -print-prog-name=ld gives a path.
12215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12216 $as_echo_n "checking for ld used by $CC... " >&6; }
12217   case $host in
12218   *-*-mingw*)
12219     # gcc leaves a trailing carriage return which upsets mingw
12220     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12221   *)
12222     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12223   esac
12224   case $ac_prog in
12225     # Accept absolute paths.
12226     [\\/]* | ?:[\\/]*)
12227       re_direlt='/[^/][^/]*/\.\./'
12228       # Canonicalize the pathname of ld
12229       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12230       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12231         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12232       done
12233       test -z "$LD" && LD="$ac_prog"
12234       ;;
12235   "")
12236     # If it fails, then pretend we aren't using GCC.
12237     ac_prog=ld
12238     ;;
12239   *)
12240     # If it is relative, then search for the first ld in PATH.
12241     with_gnu_ld=unknown
12242     ;;
12243   esac
12244 elif test "$with_gnu_ld" = yes; then
12245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12246 $as_echo_n "checking for GNU ld... " >&6; }
12247 else
12248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12249 $as_echo_n "checking for non-GNU ld... " >&6; }
12250 fi
12251 if test "${lt_cv_path_LD+set}" = set; then :
12252   $as_echo_n "(cached) " >&6
12253 else
12254   if test -z "$LD"; then
12255   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12256   for ac_dir in $PATH; do
12257     IFS="$lt_save_ifs"
12258     test -z "$ac_dir" && ac_dir=.
12259     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12260       lt_cv_path_LD="$ac_dir/$ac_prog"
12261       # Check to see if the program is GNU ld.  I'd rather use --version,
12262       # but apparently some variants of GNU ld only accept -v.
12263       # Break only if it was the GNU/non-GNU ld that we prefer.
12264       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12265       *GNU* | *'with BFD'*)
12266         test "$with_gnu_ld" != no && break
12267         ;;
12268       *)
12269         test "$with_gnu_ld" != yes && break
12270         ;;
12271       esac
12272     fi
12273   done
12274   IFS="$lt_save_ifs"
12275 else
12276   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12277 fi
12278 fi
12279
12280 LD="$lt_cv_path_LD"
12281 if test -n "$LD"; then
12282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12283 $as_echo "$LD" >&6; }
12284 else
12285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12287 fi
12288 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12290 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12291 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12292   $as_echo_n "(cached) " >&6
12293 else
12294   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12295 case `$LD -v 2>&1 </dev/null` in
12296 *GNU* | *'with BFD'*)
12297   lt_cv_prog_gnu_ld=yes
12298   ;;
12299 *)
12300   lt_cv_prog_gnu_ld=no
12301   ;;
12302 esac
12303 fi
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12305 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12306 with_gnu_ld=$lt_cv_prog_gnu_ld
12307
12308
12309
12310
12311
12312
12313
12314       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12315       # archiving commands below assume that GNU ld is being used.
12316       if test "$with_gnu_ld" = yes; then
12317         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12318         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12319
12320         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12321         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12322
12323         # If archive_cmds runs LD, not CC, wlarc should be empty
12324         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12325         #     investigate it a little bit more. (MM)
12326         wlarc='${wl}'
12327
12328         # ancient GNU ld didn't support --whole-archive et. al.
12329         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12330           $GREP 'no-whole-archive' > /dev/null; then
12331           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12332         else
12333           whole_archive_flag_spec_CXX=
12334         fi
12335       else
12336         with_gnu_ld=no
12337         wlarc=
12338
12339         # A generic and very simple default shared library creation
12340         # command for GNU C++ for the case where it uses the native
12341         # linker, instead of GNU ld.  If possible, this setting should
12342         # overridden to take advantage of the native linker features on
12343         # the platform it is being used on.
12344         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12345       fi
12346
12347       # Commands to make compiler produce verbose output that lists
12348       # what "hidden" libraries, object files and flags are used when
12349       # linking a shared library.
12350       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12351
12352     else
12353       GXX=no
12354       with_gnu_ld=no
12355       wlarc=
12356     fi
12357
12358     # PORTME: fill in a description of your system's C++ link characteristics
12359     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12360 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12361     ld_shlibs_CXX=yes
12362     case $host_os in
12363       aix3*)
12364         # FIXME: insert proper C++ library support
12365         ld_shlibs_CXX=no
12366         ;;
12367       aix[4-9]*)
12368         if test "$host_cpu" = ia64; then
12369           # On IA64, the linker does run time linking by default, so we don't
12370           # have to do anything special.
12371           aix_use_runtimelinking=no
12372           exp_sym_flag='-Bexport'
12373           no_entry_flag=""
12374         else
12375           aix_use_runtimelinking=no
12376
12377           # Test if we are trying to use run time linking or normal
12378           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12379           # need to do runtime linking.
12380           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12381             for ld_flag in $LDFLAGS; do
12382               case $ld_flag in
12383               *-brtl*)
12384                 aix_use_runtimelinking=yes
12385                 break
12386                 ;;
12387               esac
12388             done
12389             ;;
12390           esac
12391
12392           exp_sym_flag='-bexport'
12393           no_entry_flag='-bnoentry'
12394         fi
12395
12396         # When large executables or shared objects are built, AIX ld can
12397         # have problems creating the table of contents.  If linking a library
12398         # or program results in "error TOC overflow" add -mminimal-toc to
12399         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12400         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12401
12402         archive_cmds_CXX=''
12403         hardcode_direct_CXX=yes
12404         hardcode_direct_absolute_CXX=yes
12405         hardcode_libdir_separator_CXX=':'
12406         link_all_deplibs_CXX=yes
12407         file_list_spec_CXX='${wl}-f,'
12408
12409         if test "$GXX" = yes; then
12410           case $host_os in aix4.[012]|aix4.[012].*)
12411           # We only want to do this on AIX 4.2 and lower, the check
12412           # below for broken collect2 doesn't work under 4.3+
12413           collect2name=`${CC} -print-prog-name=collect2`
12414           if test -f "$collect2name" &&
12415              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12416           then
12417             # We have reworked collect2
12418             :
12419           else
12420             # We have old collect2
12421             hardcode_direct_CXX=unsupported
12422             # It fails to find uninstalled libraries when the uninstalled
12423             # path is not listed in the libpath.  Setting hardcode_minus_L
12424             # to unsupported forces relinking
12425             hardcode_minus_L_CXX=yes
12426             hardcode_libdir_flag_spec_CXX='-L$libdir'
12427             hardcode_libdir_separator_CXX=
12428           fi
12429           esac
12430           shared_flag='-shared'
12431           if test "$aix_use_runtimelinking" = yes; then
12432             shared_flag="$shared_flag "'${wl}-G'
12433           fi
12434         else
12435           # not using gcc
12436           if test "$host_cpu" = ia64; then
12437           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12438           # chokes on -Wl,-G. The following line is correct:
12439           shared_flag='-G'
12440           else
12441             if test "$aix_use_runtimelinking" = yes; then
12442               shared_flag='${wl}-G'
12443             else
12444               shared_flag='${wl}-bM:SRE'
12445             fi
12446           fi
12447         fi
12448
12449         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12450         # It seems that -bexpall does not export symbols beginning with
12451         # underscore (_), so it is better to generate a list of symbols to
12452         # export.
12453         always_export_symbols_CXX=yes
12454         if test "$aix_use_runtimelinking" = yes; then
12455           # Warning - without using the other runtime loading flags (-brtl),
12456           # -berok will link without error, but may produce a broken library.
12457           allow_undefined_flag_CXX='-berok'
12458           # Determine the default libpath from the value encoded in an empty
12459           # executable.
12460           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h.  */
12462
12463 int
12464 main ()
12465 {
12466
12467   ;
12468   return 0;
12469 }
12470 _ACEOF
12471 if ac_fn_cxx_try_link "$LINENO"; then :
12472
12473 lt_aix_libpath_sed='
12474     /Import File Strings/,/^$/ {
12475         /^0/ {
12476             s/^0  *\(.*\)$/\1/
12477             p
12478         }
12479     }'
12480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12481 # Check for a 64-bit object if we didn't find anything.
12482 if test -z "$aix_libpath"; then
12483   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12484 fi
12485 fi
12486 rm -f core conftest.err conftest.$ac_objext \
12487     conftest$ac_exeext conftest.$ac_ext
12488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12489
12490           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12491
12492           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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12493         else
12494           if test "$host_cpu" = ia64; then
12495             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12496             allow_undefined_flag_CXX="-z nodefs"
12497             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"
12498           else
12499             # Determine the default libpath from the value encoded in an
12500             # empty executable.
12501             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h.  */
12503
12504 int
12505 main ()
12506 {
12507
12508   ;
12509   return 0;
12510 }
12511 _ACEOF
12512 if ac_fn_cxx_try_link "$LINENO"; then :
12513
12514 lt_aix_libpath_sed='
12515     /Import File Strings/,/^$/ {
12516         /^0/ {
12517             s/^0  *\(.*\)$/\1/
12518             p
12519         }
12520     }'
12521 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12522 # Check for a 64-bit object if we didn't find anything.
12523 if test -z "$aix_libpath"; then
12524   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12525 fi
12526 fi
12527 rm -f core conftest.err conftest.$ac_objext \
12528     conftest$ac_exeext conftest.$ac_ext
12529 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12530
12531             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12532             # Warning - without using the other run time loading flags,
12533             # -berok will link without error, but may produce a broken library.
12534             no_undefined_flag_CXX=' ${wl}-bernotok'
12535             allow_undefined_flag_CXX=' ${wl}-berok'
12536             # Exported symbols can be pulled into shared objects from archives
12537             whole_archive_flag_spec_CXX='$convenience'
12538             archive_cmds_need_lc_CXX=yes
12539             # This is similar to how AIX traditionally builds its shared
12540             # libraries.
12541             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'
12542           fi
12543         fi
12544         ;;
12545
12546       beos*)
12547         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12548           allow_undefined_flag_CXX=unsupported
12549           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12550           # support --undefined.  This deserves some investigation.  FIXME
12551           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12552         else
12553           ld_shlibs_CXX=no
12554         fi
12555         ;;
12556
12557       chorus*)
12558         case $cc_basename in
12559           *)
12560           # FIXME: insert proper C++ library support
12561           ld_shlibs_CXX=no
12562           ;;
12563         esac
12564         ;;
12565
12566       cygwin* | mingw* | pw32* | cegcc*)
12567         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12568         # as there is no search path for DLLs.
12569         hardcode_libdir_flag_spec_CXX='-L$libdir'
12570         allow_undefined_flag_CXX=unsupported
12571         always_export_symbols_CXX=no
12572         enable_shared_with_static_runtimes_CXX=yes
12573
12574         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12575           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'
12576           # If the export-symbols file already is a .def file (1st line
12577           # is EXPORTS), use it as is; otherwise, prepend...
12578           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12579             cp $export_symbols $output_objdir/$soname.def;
12580           else
12581             echo EXPORTS > $output_objdir/$soname.def;
12582             cat $export_symbols >> $output_objdir/$soname.def;
12583           fi~
12584           $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'
12585         else
12586           ld_shlibs_CXX=no
12587         fi
12588         ;;
12589       darwin* | rhapsody*)
12590
12591
12592   archive_cmds_need_lc_CXX=no
12593   hardcode_direct_CXX=no
12594   hardcode_automatic_CXX=yes
12595   hardcode_shlibpath_var_CXX=unsupported
12596   whole_archive_flag_spec_CXX=''
12597   link_all_deplibs_CXX=yes
12598   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12599   case $cc_basename in
12600      ifort*) _lt_dar_can_shared=yes ;;
12601      *) _lt_dar_can_shared=$GCC ;;
12602   esac
12603   if test "$_lt_dar_can_shared" = "yes"; then
12604     output_verbose_link_cmd=echo
12605     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}"
12606     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12607     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}"
12608     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}"
12609        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12610       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}"
12611       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}"
12612     fi
12613
12614   else
12615   ld_shlibs_CXX=no
12616   fi
12617
12618         ;;
12619
12620       dgux*)
12621         case $cc_basename in
12622           ec++*)
12623             # FIXME: insert proper C++ library support
12624             ld_shlibs_CXX=no
12625             ;;
12626           ghcx*)
12627             # Green Hills C++ Compiler
12628             # FIXME: insert proper C++ library support
12629             ld_shlibs_CXX=no
12630             ;;
12631           *)
12632             # FIXME: insert proper C++ library support
12633             ld_shlibs_CXX=no
12634             ;;
12635         esac
12636         ;;
12637
12638       freebsd[12]*)
12639         # C++ shared libraries reported to be fairly broken before
12640         # switch to ELF
12641         ld_shlibs_CXX=no
12642         ;;
12643
12644       freebsd-elf*)
12645         archive_cmds_need_lc_CXX=no
12646         ;;
12647
12648       freebsd* | dragonfly*)
12649         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12650         # conventions
12651         ld_shlibs_CXX=yes
12652         ;;
12653
12654       gnu*)
12655         ;;
12656
12657       hpux9*)
12658         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12659         hardcode_libdir_separator_CXX=:
12660         export_dynamic_flag_spec_CXX='${wl}-E'
12661         hardcode_direct_CXX=yes
12662         hardcode_minus_L_CXX=yes # Not in the search PATH,
12663                                              # but as the default
12664                                              # location of the library.
12665
12666         case $cc_basename in
12667           CC*)
12668             # FIXME: insert proper C++ library support
12669             ld_shlibs_CXX=no
12670             ;;
12671           aCC*)
12672             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'
12673             # Commands to make compiler produce verbose output that lists
12674             # what "hidden" libraries, object files and flags are used when
12675             # linking a shared library.
12676             #
12677             # There doesn't appear to be a way to prevent this compiler from
12678             # explicitly linking system object files so we need to strip them
12679             # from the output so that they don't get included in the library
12680             # dependencies.
12681             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; $ECHO "X$list" | $Xsed'
12682             ;;
12683           *)
12684             if test "$GXX" = yes; then
12685               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12686             else
12687               # FIXME: insert proper C++ library support
12688               ld_shlibs_CXX=no
12689             fi
12690             ;;
12691         esac
12692         ;;
12693
12694       hpux10*|hpux11*)
12695         if test $with_gnu_ld = no; then
12696           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12697           hardcode_libdir_separator_CXX=:
12698
12699           case $host_cpu in
12700             hppa*64*|ia64*)
12701               ;;
12702             *)
12703               export_dynamic_flag_spec_CXX='${wl}-E'
12704               ;;
12705           esac
12706         fi
12707         case $host_cpu in
12708           hppa*64*|ia64*)
12709             hardcode_direct_CXX=no
12710             hardcode_shlibpath_var_CXX=no
12711             ;;
12712           *)
12713             hardcode_direct_CXX=yes
12714             hardcode_direct_absolute_CXX=yes
12715             hardcode_minus_L_CXX=yes # Not in the search PATH,
12716                                                  # but as the default
12717                                                  # location of the library.
12718             ;;
12719         esac
12720
12721         case $cc_basename in
12722           CC*)
12723             # FIXME: insert proper C++ library support
12724             ld_shlibs_CXX=no
12725             ;;
12726           aCC*)
12727             case $host_cpu in
12728               hppa*64*)
12729                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12730                 ;;
12731               ia64*)
12732                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12733                 ;;
12734               *)
12735                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12736                 ;;
12737             esac
12738             # Commands to make compiler produce verbose output that lists
12739             # what "hidden" libraries, object files and flags are used when
12740             # linking a shared library.
12741             #
12742             # There doesn't appear to be a way to prevent this compiler from
12743             # explicitly linking system object files so we need to strip them
12744             # from the output so that they don't get included in the library
12745             # dependencies.
12746             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12747             ;;
12748           *)
12749             if test "$GXX" = yes; then
12750               if test $with_gnu_ld = no; then
12751                 case $host_cpu in
12752                   hppa*64*)
12753                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12754                     ;;
12755                   ia64*)
12756                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12757                     ;;
12758                   *)
12759                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12760                     ;;
12761                 esac
12762               fi
12763             else
12764               # FIXME: insert proper C++ library support
12765               ld_shlibs_CXX=no
12766             fi
12767             ;;
12768         esac
12769         ;;
12770
12771       interix[3-9]*)
12772         hardcode_direct_CXX=no
12773         hardcode_shlibpath_var_CXX=no
12774         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12775         export_dynamic_flag_spec_CXX='${wl}-E'
12776         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12777         # Instead, shared libraries are loaded at an image base (0x10000000 by
12778         # default) and relocated if they conflict, which is a slow very memory
12779         # consuming and fragmenting process.  To avoid this, we pick a random,
12780         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12781         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12782         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'
12783         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'
12784         ;;
12785       irix5* | irix6*)
12786         case $cc_basename in
12787           CC*)
12788             # SGI C++
12789             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12790
12791             # Archives containing C++ object files must be created using
12792             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12793             # necessary to make sure instantiated templates are included
12794             # in the archive.
12795             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12796             ;;
12797           *)
12798             if test "$GXX" = yes; then
12799               if test "$with_gnu_ld" = no; then
12800                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12801               else
12802                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12803               fi
12804             fi
12805             link_all_deplibs_CXX=yes
12806             ;;
12807         esac
12808         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12809         hardcode_libdir_separator_CXX=:
12810         inherit_rpath_CXX=yes
12811         ;;
12812
12813       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12814         case $cc_basename in
12815           KCC*)
12816             # Kuck and Associates, Inc. (KAI) C++ Compiler
12817
12818             # KCC will only create a shared library if the output file
12819             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12820             # to its proper name (with version) after linking.
12821             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'
12822             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'
12823             # Commands to make compiler produce verbose output that lists
12824             # what "hidden" libraries, object files and flags are used when
12825             # linking a shared library.
12826             #
12827             # There doesn't appear to be a way to prevent this compiler from
12828             # explicitly linking system object files so we need to strip them
12829             # from the output so that they don't get included in the library
12830             # dependencies.
12831             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12832
12833             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12834             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12835
12836             # Archives containing C++ object files must be created using
12837             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12838             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12839             ;;
12840           icpc* | ecpc* )
12841             # Intel C++
12842             with_gnu_ld=yes
12843             # version 8.0 and above of icpc choke on multiply defined symbols
12844             # if we add $predep_objects and $postdep_objects, however 7.1 and
12845             # earlier do not add the objects themselves.
12846             case `$CC -V 2>&1` in
12847               *"Version 7."*)
12848                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12849                 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'
12850                 ;;
12851               *)  # Version 8.0 or newer
12852                 tmp_idyn=
12853                 case $host_cpu in
12854                   ia64*) tmp_idyn=' -i_dynamic';;
12855                 esac
12856                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12857                 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'
12858                 ;;
12859             esac
12860             archive_cmds_need_lc_CXX=no
12861             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12862             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12863             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12864             ;;
12865           pgCC* | pgcpp*)
12866             # Portland Group C++ compiler
12867             case `$CC -V` in
12868             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12869               prelink_cmds_CXX='tpldir=Template.dir~
12870                 rm -rf $tpldir~
12871                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12872                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12873               old_archive_cmds_CXX='tpldir=Template.dir~
12874                 rm -rf $tpldir~
12875                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12876                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12877                 $RANLIB $oldlib'
12878               archive_cmds_CXX='tpldir=Template.dir~
12879                 rm -rf $tpldir~
12880                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12881                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12882               archive_expsym_cmds_CXX='tpldir=Template.dir~
12883                 rm -rf $tpldir~
12884                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12885                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12886               ;;
12887             *) # Version 6 will use weak symbols
12888               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12889               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'
12890               ;;
12891             esac
12892
12893             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12894             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12895             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12896             ;;
12897           cxx*)
12898             # Compaq C++
12899             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12900             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'
12901
12902             runpath_var=LD_RUN_PATH
12903             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12904             hardcode_libdir_separator_CXX=:
12905
12906             # Commands to make compiler produce verbose output that lists
12907             # what "hidden" libraries, object files and flags are used when
12908             # linking a shared library.
12909             #
12910             # There doesn't appear to be a way to prevent this compiler from
12911             # explicitly linking system object files so we need to strip them
12912             # from the output so that they don't get included in the library
12913             # dependencies.
12914             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12915             ;;
12916           xl*)
12917             # IBM XL 8.0 on PPC, with GNU ld
12918             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12919             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12920             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12921             if test "x$supports_anon_versioning" = xyes; then
12922               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12923                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12924                 echo "local: *; };" >> $output_objdir/$libname.ver~
12925                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12926             fi
12927             ;;
12928           *)
12929             case `$CC -V 2>&1 | sed 5q` in
12930             *Sun\ C*)
12931               # Sun C++ 5.9
12932               no_undefined_flag_CXX=' -zdefs'
12933               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12934               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'
12935               hardcode_libdir_flag_spec_CXX='-R$libdir'
12936               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12937               compiler_needs_object_CXX=yes
12938
12939               # Not sure whether something based on
12940               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12941               # would be better.
12942               output_verbose_link_cmd='echo'
12943
12944               # Archives containing C++ object files must be created using
12945               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12946               # necessary to make sure instantiated templates are included
12947               # in the archive.
12948               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12949               ;;
12950             esac
12951             ;;
12952         esac
12953         ;;
12954
12955       lynxos*)
12956         # FIXME: insert proper C++ library support
12957         ld_shlibs_CXX=no
12958         ;;
12959
12960       m88k*)
12961         # FIXME: insert proper C++ library support
12962         ld_shlibs_CXX=no
12963         ;;
12964
12965       mvs*)
12966         case $cc_basename in
12967           cxx*)
12968             # FIXME: insert proper C++ library support
12969             ld_shlibs_CXX=no
12970             ;;
12971           *)
12972             # FIXME: insert proper C++ library support
12973             ld_shlibs_CXX=no
12974             ;;
12975         esac
12976         ;;
12977
12978       netbsd*)
12979         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12980           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12981           wlarc=
12982           hardcode_libdir_flag_spec_CXX='-R$libdir'
12983           hardcode_direct_CXX=yes
12984           hardcode_shlibpath_var_CXX=no
12985         fi
12986         # Workaround some broken pre-1.5 toolchains
12987         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12988         ;;
12989
12990       *nto* | *qnx*)
12991         ld_shlibs_CXX=yes
12992         ;;
12993
12994       openbsd2*)
12995         # C++ shared libraries are fairly broken
12996         ld_shlibs_CXX=no
12997         ;;
12998
12999       openbsd*)
13000         if test -f /usr/libexec/ld.so; then
13001           hardcode_direct_CXX=yes
13002           hardcode_shlibpath_var_CXX=no
13003           hardcode_direct_absolute_CXX=yes
13004           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13005           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13006           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13007             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13008             export_dynamic_flag_spec_CXX='${wl}-E'
13009             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13010           fi
13011           output_verbose_link_cmd=echo
13012         else
13013           ld_shlibs_CXX=no
13014         fi
13015         ;;
13016
13017       osf3* | osf4* | osf5*)
13018         case $cc_basename in
13019           KCC*)
13020             # Kuck and Associates, Inc. (KAI) C++ Compiler
13021
13022             # KCC will only create a shared library if the output file
13023             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13024             # to its proper name (with version) after linking.
13025             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'
13026
13027             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13028             hardcode_libdir_separator_CXX=:
13029
13030             # Archives containing C++ object files must be created using
13031             # the KAI C++ compiler.
13032             case $host in
13033               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13034               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13035             esac
13036             ;;
13037           RCC*)
13038             # Rational C++ 2.4.1
13039             # FIXME: insert proper C++ library support
13040             ld_shlibs_CXX=no
13041             ;;
13042           cxx*)
13043             case $host in
13044               osf3*)
13045                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13046                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13047                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13048                 ;;
13049               *)
13050                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13051                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13052                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13053                   echo "-hidden">> $lib.exp~
13054                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13055                   $RM $lib.exp'
13056                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13057                 ;;
13058             esac
13059
13060             hardcode_libdir_separator_CXX=:
13061
13062             # Commands to make compiler produce verbose output that lists
13063             # what "hidden" libraries, object files and flags are used when
13064             # linking a shared library.
13065             #
13066             # There doesn't appear to be a way to prevent this compiler from
13067             # explicitly linking system object files so we need to strip them
13068             # from the output so that they don't get included in the library
13069             # dependencies.
13070             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13071             ;;
13072           *)
13073             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13074               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13075               case $host in
13076                 osf3*)
13077                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13078                   ;;
13079                 *)
13080                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13081                   ;;
13082               esac
13083
13084               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13085               hardcode_libdir_separator_CXX=:
13086
13087               # Commands to make compiler produce verbose output that lists
13088               # what "hidden" libraries, object files and flags are used when
13089               # linking a shared library.
13090               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13091
13092             else
13093               # FIXME: insert proper C++ library support
13094               ld_shlibs_CXX=no
13095             fi
13096             ;;
13097         esac
13098         ;;
13099
13100       psos*)
13101         # FIXME: insert proper C++ library support
13102         ld_shlibs_CXX=no
13103         ;;
13104
13105       sunos4*)
13106         case $cc_basename in
13107           CC*)
13108             # Sun C++ 4.x
13109             # FIXME: insert proper C++ library support
13110             ld_shlibs_CXX=no
13111             ;;
13112           lcc*)
13113             # Lucid
13114             # FIXME: insert proper C++ library support
13115             ld_shlibs_CXX=no
13116             ;;
13117           *)
13118             # FIXME: insert proper C++ library support
13119             ld_shlibs_CXX=no
13120             ;;
13121         esac
13122         ;;
13123
13124       solaris*)
13125         case $cc_basename in
13126           CC*)
13127             # Sun C++ 4.2, 5.x and Centerline C++
13128             archive_cmds_need_lc_CXX=yes
13129             no_undefined_flag_CXX=' -zdefs'
13130             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13131             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13132               $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'
13133
13134             hardcode_libdir_flag_spec_CXX='-R$libdir'
13135             hardcode_shlibpath_var_CXX=no
13136             case $host_os in
13137               solaris2.[0-5] | solaris2.[0-5].*) ;;
13138               *)
13139                 # The compiler driver will combine and reorder linker options,
13140                 # but understands `-z linker_flag'.
13141                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13142                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13143                 ;;
13144             esac
13145             link_all_deplibs_CXX=yes
13146
13147             output_verbose_link_cmd='echo'
13148
13149             # Archives containing C++ object files must be created using
13150             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13151             # necessary to make sure instantiated templates are included
13152             # in the archive.
13153             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13154             ;;
13155           gcx*)
13156             # Green Hills C++ Compiler
13157             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13158
13159             # The C++ compiler must be used to create the archive.
13160             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13161             ;;
13162           *)
13163             # GNU C++ compiler with Solaris linker
13164             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13165               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13166               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13167                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13168                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13169                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13170
13171                 # Commands to make compiler produce verbose output that lists
13172                 # what "hidden" libraries, object files and flags are used when
13173                 # linking a shared library.
13174                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13175               else
13176                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13177                 # platform.
13178                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13179                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13180                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13181
13182                 # Commands to make compiler produce verbose output that lists
13183                 # what "hidden" libraries, object files and flags are used when
13184                 # linking a shared library.
13185                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13186               fi
13187
13188               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13189               case $host_os in
13190                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13191                 *)
13192                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13193                   ;;
13194               esac
13195             fi
13196             ;;
13197         esac
13198         ;;
13199
13200     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13201       no_undefined_flag_CXX='${wl}-z,text'
13202       archive_cmds_need_lc_CXX=no
13203       hardcode_shlibpath_var_CXX=no
13204       runpath_var='LD_RUN_PATH'
13205
13206       case $cc_basename in
13207         CC*)
13208           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13209           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13210           ;;
13211         *)
13212           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13213           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13214           ;;
13215       esac
13216       ;;
13217
13218       sysv5* | sco3.2v5* | sco5v6*)
13219         # Note: We can NOT use -z defs as we might desire, because we do not
13220         # link with -lc, and that would cause any symbols used from libc to
13221         # always be unresolved, which means just about no library would
13222         # ever link correctly.  If we're not using GNU ld we use -z text
13223         # though, which does catch some bad symbols but isn't as heavy-handed
13224         # as -z defs.
13225         no_undefined_flag_CXX='${wl}-z,text'
13226         allow_undefined_flag_CXX='${wl}-z,nodefs'
13227         archive_cmds_need_lc_CXX=no
13228         hardcode_shlibpath_var_CXX=no
13229         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13230         hardcode_libdir_separator_CXX=':'
13231         link_all_deplibs_CXX=yes
13232         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13233         runpath_var='LD_RUN_PATH'
13234
13235         case $cc_basename in
13236           CC*)
13237             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13238             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13239             ;;
13240           *)
13241             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13242             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13243             ;;
13244         esac
13245       ;;
13246
13247       tandem*)
13248         case $cc_basename in
13249           NCC*)
13250             # NonStop-UX NCC 3.20
13251             # FIXME: insert proper C++ library support
13252             ld_shlibs_CXX=no
13253             ;;
13254           *)
13255             # FIXME: insert proper C++ library support
13256             ld_shlibs_CXX=no
13257             ;;
13258         esac
13259         ;;
13260
13261       vxworks*)
13262         # FIXME: insert proper C++ library support
13263         ld_shlibs_CXX=no
13264         ;;
13265
13266       *)
13267         # FIXME: insert proper C++ library support
13268         ld_shlibs_CXX=no
13269         ;;
13270     esac
13271
13272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13273 $as_echo "$ld_shlibs_CXX" >&6; }
13274     test "$ld_shlibs_CXX" = no && can_build_shared=no
13275
13276     GCC_CXX="$GXX"
13277     LD_CXX="$LD"
13278
13279     ## CAVEAT EMPTOR:
13280     ## There is no encapsulation within the following macros, do not change
13281     ## the running order or otherwise move them around unless you know exactly
13282     ## what you are doing...
13283     # Dependencies to place before and after the object being linked:
13284 predep_objects_CXX=
13285 postdep_objects_CXX=
13286 predeps_CXX=
13287 postdeps_CXX=
13288 compiler_lib_search_path_CXX=
13289
13290 cat > conftest.$ac_ext <<_LT_EOF
13291 class Foo
13292 {
13293 public:
13294   Foo (void) { a = 0; }
13295 private:
13296   int a;
13297 };
13298 _LT_EOF
13299
13300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13301   (eval $ac_compile) 2>&5
13302   ac_status=$?
13303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13304   test $ac_status = 0; }; then
13305   # Parse the compiler output and extract the necessary
13306   # objects, libraries and library flags.
13307
13308   # Sentinel used to keep track of whether or not we are before
13309   # the conftest object file.
13310   pre_test_object_deps_done=no
13311
13312   for p in `eval "$output_verbose_link_cmd"`; do
13313     case $p in
13314
13315     -L* | -R* | -l*)
13316        # Some compilers place space between "-{L,R}" and the path.
13317        # Remove the space.
13318        if test $p = "-L" ||
13319           test $p = "-R"; then
13320          prev=$p
13321          continue
13322        else
13323          prev=
13324        fi
13325
13326        if test "$pre_test_object_deps_done" = no; then
13327          case $p in
13328          -L* | -R*)
13329            # Internal compiler library paths should come after those
13330            # provided the user.  The postdeps already come after the
13331            # user supplied libs so there is no need to process them.
13332            if test -z "$compiler_lib_search_path_CXX"; then
13333              compiler_lib_search_path_CXX="${prev}${p}"
13334            else
13335              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13336            fi
13337            ;;
13338          # The "-l" case would never come before the object being
13339          # linked, so don't bother handling this case.
13340          esac
13341        else
13342          if test -z "$postdeps_CXX"; then
13343            postdeps_CXX="${prev}${p}"
13344          else
13345            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13346          fi
13347        fi
13348        ;;
13349
13350     *.$objext)
13351        # This assumes that the test object file only shows up
13352        # once in the compiler output.
13353        if test "$p" = "conftest.$objext"; then
13354          pre_test_object_deps_done=yes
13355          continue
13356        fi
13357
13358        if test "$pre_test_object_deps_done" = no; then
13359          if test -z "$predep_objects_CXX"; then
13360            predep_objects_CXX="$p"
13361          else
13362            predep_objects_CXX="$predep_objects_CXX $p"
13363          fi
13364        else
13365          if test -z "$postdep_objects_CXX"; then
13366            postdep_objects_CXX="$p"
13367          else
13368            postdep_objects_CXX="$postdep_objects_CXX $p"
13369          fi
13370        fi
13371        ;;
13372
13373     *) ;; # Ignore the rest.
13374
13375     esac
13376   done
13377
13378   # Clean up.
13379   rm -f a.out a.exe
13380 else
13381   echo "libtool.m4: error: problem compiling CXX test program"
13382 fi
13383
13384 $RM -f confest.$objext
13385
13386 # PORTME: override above test on systems where it is broken
13387 case $host_os in
13388 interix[3-9]*)
13389   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13390   # hack all around it, let's just trust "g++" to DTRT.
13391   predep_objects_CXX=
13392   postdep_objects_CXX=
13393   postdeps_CXX=
13394   ;;
13395
13396 linux*)
13397   case `$CC -V 2>&1 | sed 5q` in
13398   *Sun\ C*)
13399     # Sun C++ 5.9
13400
13401     # The more standards-conforming stlport4 library is
13402     # incompatible with the Cstd library. Avoid specifying
13403     # it if it's in CXXFLAGS. Ignore libCrun as
13404     # -library=stlport4 depends on it.
13405     case " $CXX $CXXFLAGS " in
13406     *" -library=stlport4 "*)
13407       solaris_use_stlport4=yes
13408       ;;
13409     esac
13410
13411     if test "$solaris_use_stlport4" != yes; then
13412       postdeps_CXX='-library=Cstd -library=Crun'
13413     fi
13414     ;;
13415   esac
13416   ;;
13417
13418 solaris*)
13419   case $cc_basename in
13420   CC*)
13421     # The more standards-conforming stlport4 library is
13422     # incompatible with the Cstd library. Avoid specifying
13423     # it if it's in CXXFLAGS. Ignore libCrun as
13424     # -library=stlport4 depends on it.
13425     case " $CXX $CXXFLAGS " in
13426     *" -library=stlport4 "*)
13427       solaris_use_stlport4=yes
13428       ;;
13429     esac
13430
13431     # Adding this requires a known-good setup of shared libraries for
13432     # Sun compiler versions before 5.6, else PIC objects from an old
13433     # archive will be linked into the output, leading to subtle bugs.
13434     if test "$solaris_use_stlport4" != yes; then
13435       postdeps_CXX='-library=Cstd -library=Crun'
13436     fi
13437     ;;
13438   esac
13439   ;;
13440 esac
13441
13442
13443 case " $postdeps_CXX " in
13444 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13445 esac
13446  compiler_lib_search_dirs_CXX=
13447 if test -n "${compiler_lib_search_path_CXX}"; then
13448  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13449 fi
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481     lt_prog_compiler_wl_CXX=
13482 lt_prog_compiler_pic_CXX=
13483 lt_prog_compiler_static_CXX=
13484
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13486 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13487
13488   # C++ specific cases for pic, static, wl, etc.
13489   if test "$GXX" = yes; then
13490     lt_prog_compiler_wl_CXX='-Wl,'
13491     lt_prog_compiler_static_CXX='-static'
13492
13493     case $host_os in
13494     aix*)
13495       # All AIX code is PIC.
13496       if test "$host_cpu" = ia64; then
13497         # AIX 5 now supports IA64 processor
13498         lt_prog_compiler_static_CXX='-Bstatic'
13499       fi
13500       ;;
13501
13502     amigaos*)
13503       case $host_cpu in
13504       powerpc)
13505             # see comment about AmigaOS4 .so support
13506             lt_prog_compiler_pic_CXX='-fPIC'
13507         ;;
13508       m68k)
13509             # FIXME: we need at least 68020 code to build shared libraries, but
13510             # adding the `-m68020' flag to GCC prevents building anything better,
13511             # like `-m68040'.
13512             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13513         ;;
13514       esac
13515       ;;
13516
13517     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13518       # PIC is the default for these OSes.
13519       ;;
13520     mingw* | cygwin* | os2* | pw32* | cegcc*)
13521       # This hack is so that the source file can tell whether it is being
13522       # built for inclusion in a dll (and should export symbols for example).
13523       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13524       # (--disable-auto-import) libraries
13525       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13526       ;;
13527     darwin* | rhapsody*)
13528       # PIC is the default on this platform
13529       # Common symbols not allowed in MH_DYLIB files
13530       lt_prog_compiler_pic_CXX='-fno-common'
13531       ;;
13532     *djgpp*)
13533       # DJGPP does not support shared libraries at all
13534       lt_prog_compiler_pic_CXX=
13535       ;;
13536     interix[3-9]*)
13537       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13538       # Instead, we relocate shared libraries at runtime.
13539       ;;
13540     sysv4*MP*)
13541       if test -d /usr/nec; then
13542         lt_prog_compiler_pic_CXX=-Kconform_pic
13543       fi
13544       ;;
13545     hpux*)
13546       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13547       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13548       # sets the default TLS model and affects inlining.
13549       case $host_cpu in
13550       hppa*64*)
13551         ;;
13552       *)
13553         lt_prog_compiler_pic_CXX='-fPIC'
13554         ;;
13555       esac
13556       ;;
13557     *qnx* | *nto*)
13558       # QNX uses GNU C++, but need to define -shared option too, otherwise
13559       # it will coredump.
13560       lt_prog_compiler_pic_CXX='-fPIC -shared'
13561       ;;
13562     *)
13563       lt_prog_compiler_pic_CXX='-fPIC'
13564       ;;
13565     esac
13566   else
13567     case $host_os in
13568       aix[4-9]*)
13569         # All AIX code is PIC.
13570         if test "$host_cpu" = ia64; then
13571           # AIX 5 now supports IA64 processor
13572           lt_prog_compiler_static_CXX='-Bstatic'
13573         else
13574           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13575         fi
13576         ;;
13577       chorus*)
13578         case $cc_basename in
13579         cxch68*)
13580           # Green Hills C++ Compiler
13581           # _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"
13582           ;;
13583         esac
13584         ;;
13585       dgux*)
13586         case $cc_basename in
13587           ec++*)
13588             lt_prog_compiler_pic_CXX='-KPIC'
13589             ;;
13590           ghcx*)
13591             # Green Hills C++ Compiler
13592             lt_prog_compiler_pic_CXX='-pic'
13593             ;;
13594           *)
13595             ;;
13596         esac
13597         ;;
13598       freebsd* | dragonfly*)
13599         # FreeBSD uses GNU C++
13600         ;;
13601       hpux9* | hpux10* | hpux11*)
13602         case $cc_basename in
13603           CC*)
13604             lt_prog_compiler_wl_CXX='-Wl,'
13605             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13606             if test "$host_cpu" != ia64; then
13607               lt_prog_compiler_pic_CXX='+Z'
13608             fi
13609             ;;
13610           aCC*)
13611             lt_prog_compiler_wl_CXX='-Wl,'
13612             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13613             case $host_cpu in
13614             hppa*64*|ia64*)
13615               # +Z the default
13616               ;;
13617             *)
13618               lt_prog_compiler_pic_CXX='+Z'
13619               ;;
13620             esac
13621             ;;
13622           *)
13623             ;;
13624         esac
13625         ;;
13626       interix*)
13627         # This is c89, which is MS Visual C++ (no shared libs)
13628         # Anyone wants to do a port?
13629         ;;
13630       irix5* | irix6* | nonstopux*)
13631         case $cc_basename in
13632           CC*)
13633             lt_prog_compiler_wl_CXX='-Wl,'
13634             lt_prog_compiler_static_CXX='-non_shared'
13635             # CC pic flag -KPIC is the default.
13636             ;;
13637           *)
13638             ;;
13639         esac
13640         ;;
13641       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13642         case $cc_basename in
13643           KCC*)
13644             # KAI C++ Compiler
13645             lt_prog_compiler_wl_CXX='--backend -Wl,'
13646             lt_prog_compiler_pic_CXX='-fPIC'
13647             ;;
13648           ecpc* )
13649             # old Intel C++ for x86_64 which still supported -KPIC.
13650             lt_prog_compiler_wl_CXX='-Wl,'
13651             lt_prog_compiler_pic_CXX='-KPIC'
13652             lt_prog_compiler_static_CXX='-static'
13653             ;;
13654           icpc* )
13655             # Intel C++, used to be incompatible with GCC.
13656             # ICC 10 doesn't accept -KPIC any more.
13657             lt_prog_compiler_wl_CXX='-Wl,'
13658             lt_prog_compiler_pic_CXX='-fPIC'
13659             lt_prog_compiler_static_CXX='-static'
13660             ;;
13661           pgCC* | pgcpp*)
13662             # Portland Group C++ compiler
13663             lt_prog_compiler_wl_CXX='-Wl,'
13664             lt_prog_compiler_pic_CXX='-fpic'
13665             lt_prog_compiler_static_CXX='-Bstatic'
13666             ;;
13667           cxx*)
13668             # Compaq C++
13669             # Make sure the PIC flag is empty.  It appears that all Alpha
13670             # Linux and Compaq Tru64 Unix objects are PIC.
13671             lt_prog_compiler_pic_CXX=
13672             lt_prog_compiler_static_CXX='-non_shared'
13673             ;;
13674           xlc* | xlC*)
13675             # IBM XL 8.0 on PPC
13676             lt_prog_compiler_wl_CXX='-Wl,'
13677             lt_prog_compiler_pic_CXX='-qpic'
13678             lt_prog_compiler_static_CXX='-qstaticlink'
13679             ;;
13680           *)
13681             case `$CC -V 2>&1 | sed 5q` in
13682             *Sun\ C*)
13683               # Sun C++ 5.9
13684               lt_prog_compiler_pic_CXX='-KPIC'
13685               lt_prog_compiler_static_CXX='-Bstatic'
13686               lt_prog_compiler_wl_CXX='-Qoption ld '
13687               ;;
13688             esac
13689             ;;
13690         esac
13691         ;;
13692       lynxos*)
13693         ;;
13694       m88k*)
13695         ;;
13696       mvs*)
13697         case $cc_basename in
13698           cxx*)
13699             lt_prog_compiler_pic_CXX='-W c,exportall'
13700             ;;
13701           *)
13702             ;;
13703         esac
13704         ;;
13705       netbsd* | netbsdelf*-gnu)
13706         ;;
13707       *qnx* | *nto*)
13708         # QNX uses GNU C++, but need to define -shared option too, otherwise
13709         # it will coredump.
13710         lt_prog_compiler_pic_CXX='-fPIC -shared'
13711         ;;
13712       osf3* | osf4* | osf5*)
13713         case $cc_basename in
13714           KCC*)
13715             lt_prog_compiler_wl_CXX='--backend -Wl,'
13716             ;;
13717           RCC*)
13718             # Rational C++ 2.4.1
13719             lt_prog_compiler_pic_CXX='-pic'
13720             ;;
13721           cxx*)
13722             # Digital/Compaq C++
13723             lt_prog_compiler_wl_CXX='-Wl,'
13724             # Make sure the PIC flag is empty.  It appears that all Alpha
13725             # Linux and Compaq Tru64 Unix objects are PIC.
13726             lt_prog_compiler_pic_CXX=
13727             lt_prog_compiler_static_CXX='-non_shared'
13728             ;;
13729           *)
13730             ;;
13731         esac
13732         ;;
13733       psos*)
13734         ;;
13735       solaris*)
13736         case $cc_basename in
13737           CC*)
13738             # Sun C++ 4.2, 5.x and Centerline C++
13739             lt_prog_compiler_pic_CXX='-KPIC'
13740             lt_prog_compiler_static_CXX='-Bstatic'
13741             lt_prog_compiler_wl_CXX='-Qoption ld '
13742             ;;
13743           gcx*)
13744             # Green Hills C++ Compiler
13745             lt_prog_compiler_pic_CXX='-PIC'
13746             ;;
13747           *)
13748             ;;
13749         esac
13750         ;;
13751       sunos4*)
13752         case $cc_basename in
13753           CC*)
13754             # Sun C++ 4.x
13755             lt_prog_compiler_pic_CXX='-pic'
13756             lt_prog_compiler_static_CXX='-Bstatic'
13757             ;;
13758           lcc*)
13759             # Lucid
13760             lt_prog_compiler_pic_CXX='-pic'
13761             ;;
13762           *)
13763             ;;
13764         esac
13765         ;;
13766       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13767         case $cc_basename in
13768           CC*)
13769             lt_prog_compiler_wl_CXX='-Wl,'
13770             lt_prog_compiler_pic_CXX='-KPIC'
13771             lt_prog_compiler_static_CXX='-Bstatic'
13772             ;;
13773         esac
13774         ;;
13775       tandem*)
13776         case $cc_basename in
13777           NCC*)
13778             # NonStop-UX NCC 3.20
13779             lt_prog_compiler_pic_CXX='-KPIC'
13780             ;;
13781           *)
13782             ;;
13783         esac
13784         ;;
13785       vxworks*)
13786         ;;
13787       *)
13788         lt_prog_compiler_can_build_shared_CXX=no
13789         ;;
13790     esac
13791   fi
13792
13793 case $host_os in
13794   # For platforms which do not support PIC, -DPIC is meaningless:
13795   *djgpp*)
13796     lt_prog_compiler_pic_CXX=
13797     ;;
13798   *)
13799     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13800     ;;
13801 esac
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13803 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13804
13805
13806
13807 #
13808 # Check to make sure the PIC flag actually works.
13809 #
13810 if test -n "$lt_prog_compiler_pic_CXX"; then
13811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13812 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13813 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13814   $as_echo_n "(cached) " >&6
13815 else
13816   lt_cv_prog_compiler_pic_works_CXX=no
13817    ac_outfile=conftest.$ac_objext
13818    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13819    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13820    # Insert the option either (1) after the last *FLAGS variable, or
13821    # (2) before a word containing "conftest.", or (3) at the end.
13822    # Note that $ac_compile itself does not contain backslashes and begins
13823    # with a dollar sign (not a hyphen), so the echo should work correctly.
13824    # The option is referenced via a variable to avoid confusing sed.
13825    lt_compile=`echo "$ac_compile" | $SED \
13826    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13827    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13828    -e 's:$: $lt_compiler_flag:'`
13829    (eval echo "\"\$as_me:13829: $lt_compile\"" >&5)
13830    (eval "$lt_compile" 2>conftest.err)
13831    ac_status=$?
13832    cat conftest.err >&5
13833    echo "$as_me:13833: \$? = $ac_status" >&5
13834    if (exit $ac_status) && test -s "$ac_outfile"; then
13835      # The compiler can only warn and ignore the option if not recognized
13836      # So say no if there are warnings other than the usual output.
13837      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13838      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13839      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13840        lt_cv_prog_compiler_pic_works_CXX=yes
13841      fi
13842    fi
13843    $RM conftest*
13844
13845 fi
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13847 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13848
13849 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13850     case $lt_prog_compiler_pic_CXX in
13851      "" | " "*) ;;
13852      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13853      esac
13854 else
13855     lt_prog_compiler_pic_CXX=
13856      lt_prog_compiler_can_build_shared_CXX=no
13857 fi
13858
13859 fi
13860
13861
13862
13863 #
13864 # Check to make sure the static flag actually works.
13865 #
13866 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13868 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13869 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13870   $as_echo_n "(cached) " >&6
13871 else
13872   lt_cv_prog_compiler_static_works_CXX=no
13873    save_LDFLAGS="$LDFLAGS"
13874    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13875    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13876    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13877      # The linker can only warn and ignore the option if not recognized
13878      # So say no if there are warnings
13879      if test -s conftest.err; then
13880        # Append any errors to the config.log.
13881        cat conftest.err 1>&5
13882        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13883        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13884        if diff conftest.exp conftest.er2 >/dev/null; then
13885          lt_cv_prog_compiler_static_works_CXX=yes
13886        fi
13887      else
13888        lt_cv_prog_compiler_static_works_CXX=yes
13889      fi
13890    fi
13891    $RM -r conftest*
13892    LDFLAGS="$save_LDFLAGS"
13893
13894 fi
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13896 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13897
13898 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13899     :
13900 else
13901     lt_prog_compiler_static_CXX=
13902 fi
13903
13904
13905
13906
13907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13908 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13909 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13910   $as_echo_n "(cached) " >&6
13911 else
13912   lt_cv_prog_compiler_c_o_CXX=no
13913    $RM -r conftest 2>/dev/null
13914    mkdir conftest
13915    cd conftest
13916    mkdir out
13917    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13918
13919    lt_compiler_flag="-o out/conftest2.$ac_objext"
13920    # Insert the option either (1) after the last *FLAGS variable, or
13921    # (2) before a word containing "conftest.", or (3) at the end.
13922    # Note that $ac_compile itself does not contain backslashes and begins
13923    # with a dollar sign (not a hyphen), so the echo should work correctly.
13924    lt_compile=`echo "$ac_compile" | $SED \
13925    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13926    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13927    -e 's:$: $lt_compiler_flag:'`
13928    (eval echo "\"\$as_me:13928: $lt_compile\"" >&5)
13929    (eval "$lt_compile" 2>out/conftest.err)
13930    ac_status=$?
13931    cat out/conftest.err >&5
13932    echo "$as_me:13932: \$? = $ac_status" >&5
13933    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13934    then
13935      # The compiler can only warn and ignore the option if not recognized
13936      # So say no if there are warnings
13937      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13938      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13939      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13940        lt_cv_prog_compiler_c_o_CXX=yes
13941      fi
13942    fi
13943    chmod u+w . 2>&5
13944    $RM conftest*
13945    # SGI C++ compiler will create directory out/ii_files/ for
13946    # template instantiation
13947    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13948    $RM out/* && rmdir out
13949    cd ..
13950    $RM -r conftest
13951    $RM conftest*
13952
13953 fi
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13955 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13956
13957
13958
13959     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13960 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13961 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13962   $as_echo_n "(cached) " >&6
13963 else
13964   lt_cv_prog_compiler_c_o_CXX=no
13965    $RM -r conftest 2>/dev/null
13966    mkdir conftest
13967    cd conftest
13968    mkdir out
13969    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13970
13971    lt_compiler_flag="-o out/conftest2.$ac_objext"
13972    # Insert the option either (1) after the last *FLAGS variable, or
13973    # (2) before a word containing "conftest.", or (3) at the end.
13974    # Note that $ac_compile itself does not contain backslashes and begins
13975    # with a dollar sign (not a hyphen), so the echo should work correctly.
13976    lt_compile=`echo "$ac_compile" | $SED \
13977    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13978    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13979    -e 's:$: $lt_compiler_flag:'`
13980    (eval echo "\"\$as_me:13980: $lt_compile\"" >&5)
13981    (eval "$lt_compile" 2>out/conftest.err)
13982    ac_status=$?
13983    cat out/conftest.err >&5
13984    echo "$as_me:13984: \$? = $ac_status" >&5
13985    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13986    then
13987      # The compiler can only warn and ignore the option if not recognized
13988      # So say no if there are warnings
13989      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13990      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13991      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13992        lt_cv_prog_compiler_c_o_CXX=yes
13993      fi
13994    fi
13995    chmod u+w . 2>&5
13996    $RM conftest*
13997    # SGI C++ compiler will create directory out/ii_files/ for
13998    # template instantiation
13999    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14000    $RM out/* && rmdir out
14001    cd ..
14002    $RM -r conftest
14003    $RM conftest*
14004
14005 fi
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14007 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14008
14009
14010
14011
14012 hard_links="nottested"
14013 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14014   # do not overwrite the value of need_locks provided by the user
14015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14016 $as_echo_n "checking if we can lock with hard links... " >&6; }
14017   hard_links=yes
14018   $RM conftest*
14019   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14020   touch conftest.a
14021   ln conftest.a conftest.b 2>&5 || hard_links=no
14022   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14024 $as_echo "$hard_links" >&6; }
14025   if test "$hard_links" = no; then
14026     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14027 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14028     need_locks=warn
14029   fi
14030 else
14031   need_locks=no
14032 fi
14033
14034
14035
14036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14037 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14038
14039   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14040   case $host_os in
14041   aix[4-9]*)
14042     # If we're using GNU nm, then we don't want the "-C" option.
14043     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14044     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14045       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14046     else
14047       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'
14048     fi
14049     ;;
14050   pw32*)
14051     export_symbols_cmds_CXX="$ltdll_cmds"
14052   ;;
14053   cygwin* | mingw* | cegcc*)
14054     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14055   ;;
14056   linux* | k*bsd*-gnu)
14057     link_all_deplibs_CXX=no
14058   ;;
14059   *)
14060     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14061   ;;
14062   esac
14063   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14064
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14066 $as_echo "$ld_shlibs_CXX" >&6; }
14067 test "$ld_shlibs_CXX" = no && can_build_shared=no
14068
14069 with_gnu_ld_CXX=$with_gnu_ld
14070
14071
14072
14073
14074
14075
14076 #
14077 # Do we need to explicitly link libc?
14078 #
14079 case "x$archive_cmds_need_lc_CXX" in
14080 x|xyes)
14081   # Assume -lc should be added
14082   archive_cmds_need_lc_CXX=yes
14083
14084   if test "$enable_shared" = yes && test "$GCC" = yes; then
14085     case $archive_cmds_CXX in
14086     *'~'*)
14087       # FIXME: we may have to deal with multi-command sequences.
14088       ;;
14089     '$CC '*)
14090       # Test whether the compiler implicitly links with -lc since on some
14091       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14092       # to ld, don't add -lc before -lgcc.
14093       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14094 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14095       $RM conftest*
14096       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14097
14098       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14099   (eval $ac_compile) 2>&5
14100   ac_status=$?
14101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14102   test $ac_status = 0; } 2>conftest.err; then
14103         soname=conftest
14104         lib=conftest
14105         libobjs=conftest.$ac_objext
14106         deplibs=
14107         wl=$lt_prog_compiler_wl_CXX
14108         pic_flag=$lt_prog_compiler_pic_CXX
14109         compiler_flags=-v
14110         linker_flags=-v
14111         verstring=
14112         output_objdir=.
14113         libname=conftest
14114         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14115         allow_undefined_flag_CXX=
14116         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14117   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14118   ac_status=$?
14119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14120   test $ac_status = 0; }
14121         then
14122           archive_cmds_need_lc_CXX=no
14123         else
14124           archive_cmds_need_lc_CXX=yes
14125         fi
14126         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14127       else
14128         cat conftest.err 1>&5
14129       fi
14130       $RM conftest*
14131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14132 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14133       ;;
14134     esac
14135   fi
14136   ;;
14137 esac
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14203 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14204
14205 library_names_spec=
14206 libname_spec='lib$name'
14207 soname_spec=
14208 shrext_cmds=".so"
14209 postinstall_cmds=
14210 postuninstall_cmds=
14211 finish_cmds=
14212 finish_eval=
14213 shlibpath_var=
14214 shlibpath_overrides_runpath=unknown
14215 version_type=none
14216 dynamic_linker="$host_os ld.so"
14217 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14218 need_lib_prefix=unknown
14219 hardcode_into_libs=no
14220
14221 # when you set need_version to no, make sure it does not cause -set_version
14222 # flags to be left without arguments
14223 need_version=unknown
14224
14225 case $host_os in
14226 aix3*)
14227   version_type=linux
14228   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14229   shlibpath_var=LIBPATH
14230
14231   # AIX 3 has no versioning support, so we append a major version to the name.
14232   soname_spec='${libname}${release}${shared_ext}$major'
14233   ;;
14234
14235 aix[4-9]*)
14236   version_type=linux
14237   need_lib_prefix=no
14238   need_version=no
14239   hardcode_into_libs=yes
14240   if test "$host_cpu" = ia64; then
14241     # AIX 5 supports IA64
14242     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14243     shlibpath_var=LD_LIBRARY_PATH
14244   else
14245     # With GCC up to 2.95.x, collect2 would create an import file
14246     # for dependence libraries.  The import file would start with
14247     # the line `#! .'.  This would cause the generated library to
14248     # depend on `.', always an invalid library.  This was fixed in
14249     # development snapshots of GCC prior to 3.0.
14250     case $host_os in
14251       aix4 | aix4.[01] | aix4.[01].*)
14252       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14253            echo ' yes '
14254            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14255         :
14256       else
14257         can_build_shared=no
14258       fi
14259       ;;
14260     esac
14261     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14262     # soname into executable. Probably we can add versioning support to
14263     # collect2, so additional links can be useful in future.
14264     if test "$aix_use_runtimelinking" = yes; then
14265       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14266       # instead of lib<name>.a to let people know that these are not
14267       # typical AIX shared libraries.
14268       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14269     else
14270       # We preserve .a as extension for shared libraries through AIX4.2
14271       # and later when we are not doing run time linking.
14272       library_names_spec='${libname}${release}.a $libname.a'
14273       soname_spec='${libname}${release}${shared_ext}$major'
14274     fi
14275     shlibpath_var=LIBPATH
14276   fi
14277   ;;
14278
14279 amigaos*)
14280   case $host_cpu in
14281   powerpc)
14282     # Since July 2007 AmigaOS4 officially supports .so libraries.
14283     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14284     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14285     ;;
14286   m68k)
14287     library_names_spec='$libname.ixlibrary $libname.a'
14288     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14289     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14290     ;;
14291   esac
14292   ;;
14293
14294 beos*)
14295   library_names_spec='${libname}${shared_ext}'
14296   dynamic_linker="$host_os ld.so"
14297   shlibpath_var=LIBRARY_PATH
14298   ;;
14299
14300 bsdi[45]*)
14301   version_type=linux
14302   need_version=no
14303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14304   soname_spec='${libname}${release}${shared_ext}$major'
14305   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14306   shlibpath_var=LD_LIBRARY_PATH
14307   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14308   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14309   # the default ld.so.conf also contains /usr/contrib/lib and
14310   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14311   # libtool to hard-code these into programs
14312   ;;
14313
14314 cygwin* | mingw* | pw32* | cegcc*)
14315   version_type=windows
14316   shrext_cmds=".dll"
14317   need_version=no
14318   need_lib_prefix=no
14319
14320   case $GCC,$host_os in
14321   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14322     library_names_spec='$libname.dll.a'
14323     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14324     postinstall_cmds='base_file=`basename \${file}`~
14325       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14326       dldir=$destdir/`dirname \$dlpath`~
14327       test -d \$dldir || mkdir -p \$dldir~
14328       $install_prog $dir/$dlname \$dldir/$dlname~
14329       chmod a+x \$dldir/$dlname~
14330       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14331         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14332       fi'
14333     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14334       dlpath=$dir/\$dldll~
14335        $RM \$dlpath'
14336     shlibpath_overrides_runpath=yes
14337
14338     case $host_os in
14339     cygwin*)
14340       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14341       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14342       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14343       ;;
14344     mingw* | cegcc*)
14345       # MinGW DLLs use traditional 'lib' prefix
14346       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14347       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14348       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14349         # It is most probably a Windows format PATH printed by
14350         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14351         # path with ; separators, and with drive letters. We can handle the
14352         # drive letters (cygwin fileutils understands them), so leave them,
14353         # especially as we might pass files found there to a mingw objdump,
14354         # which wouldn't understand a cygwinified path. Ahh.
14355         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14356       else
14357         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14358       fi
14359       ;;
14360     pw32*)
14361       # pw32 DLLs use 'pw' prefix rather than 'lib'
14362       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14363       ;;
14364     esac
14365     ;;
14366
14367   *)
14368     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14369     ;;
14370   esac
14371   dynamic_linker='Win32 ld.exe'
14372   # FIXME: first we should search . and the directory the executable is in
14373   shlibpath_var=PATH
14374   ;;
14375
14376 darwin* | rhapsody*)
14377   dynamic_linker="$host_os dyld"
14378   version_type=darwin
14379   need_lib_prefix=no
14380   need_version=no
14381   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14382   soname_spec='${libname}${release}${major}$shared_ext'
14383   shlibpath_overrides_runpath=yes
14384   shlibpath_var=DYLD_LIBRARY_PATH
14385   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14386
14387   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14388   ;;
14389
14390 dgux*)
14391   version_type=linux
14392   need_lib_prefix=no
14393   need_version=no
14394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14395   soname_spec='${libname}${release}${shared_ext}$major'
14396   shlibpath_var=LD_LIBRARY_PATH
14397   ;;
14398
14399 freebsd1*)
14400   dynamic_linker=no
14401   ;;
14402
14403 freebsd* | dragonfly*)
14404   # DragonFly does not have aout.  When/if they implement a new
14405   # versioning mechanism, adjust this.
14406   if test -x /usr/bin/objformat; then
14407     objformat=`/usr/bin/objformat`
14408   else
14409     case $host_os in
14410     freebsd[123]*) objformat=aout ;;
14411     *) objformat=elf ;;
14412     esac
14413   fi
14414   version_type=freebsd-$objformat
14415   case $version_type in
14416     freebsd-elf*)
14417       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14418       need_version=no
14419       need_lib_prefix=no
14420       ;;
14421     freebsd-*)
14422       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14423       need_version=yes
14424       ;;
14425   esac
14426   shlibpath_var=LD_LIBRARY_PATH
14427   case $host_os in
14428   freebsd2*)
14429     shlibpath_overrides_runpath=yes
14430     ;;
14431   freebsd3.[01]* | freebsdelf3.[01]*)
14432     shlibpath_overrides_runpath=yes
14433     hardcode_into_libs=yes
14434     ;;
14435   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14436   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14437     shlibpath_overrides_runpath=no
14438     hardcode_into_libs=yes
14439     ;;
14440   *) # from 4.6 on, and DragonFly
14441     shlibpath_overrides_runpath=yes
14442     hardcode_into_libs=yes
14443     ;;
14444   esac
14445   ;;
14446
14447 gnu*)
14448   version_type=linux
14449   need_lib_prefix=no
14450   need_version=no
14451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14452   soname_spec='${libname}${release}${shared_ext}$major'
14453   shlibpath_var=LD_LIBRARY_PATH
14454   hardcode_into_libs=yes
14455   ;;
14456
14457 hpux9* | hpux10* | hpux11*)
14458   # Give a soname corresponding to the major version so that dld.sl refuses to
14459   # link against other versions.
14460   version_type=sunos
14461   need_lib_prefix=no
14462   need_version=no
14463   case $host_cpu in
14464   ia64*)
14465     shrext_cmds='.so'
14466     hardcode_into_libs=yes
14467     dynamic_linker="$host_os dld.so"
14468     shlibpath_var=LD_LIBRARY_PATH
14469     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14470     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471     soname_spec='${libname}${release}${shared_ext}$major'
14472     if test "X$HPUX_IA64_MODE" = X32; then
14473       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14474     else
14475       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14476     fi
14477     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14478     ;;
14479   hppa*64*)
14480     shrext_cmds='.sl'
14481     hardcode_into_libs=yes
14482     dynamic_linker="$host_os dld.sl"
14483     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14484     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14485     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14486     soname_spec='${libname}${release}${shared_ext}$major'
14487     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14488     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14489     ;;
14490   *)
14491     shrext_cmds='.sl'
14492     dynamic_linker="$host_os dld.sl"
14493     shlibpath_var=SHLIB_PATH
14494     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14495     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14496     soname_spec='${libname}${release}${shared_ext}$major'
14497     ;;
14498   esac
14499   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14500   postinstall_cmds='chmod 555 $lib'
14501   ;;
14502
14503 interix[3-9]*)
14504   version_type=linux
14505   need_lib_prefix=no
14506   need_version=no
14507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14508   soname_spec='${libname}${release}${shared_ext}$major'
14509   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14510   shlibpath_var=LD_LIBRARY_PATH
14511   shlibpath_overrides_runpath=no
14512   hardcode_into_libs=yes
14513   ;;
14514
14515 irix5* | irix6* | nonstopux*)
14516   case $host_os in
14517     nonstopux*) version_type=nonstopux ;;
14518     *)
14519         if test "$lt_cv_prog_gnu_ld" = yes; then
14520                 version_type=linux
14521         else
14522                 version_type=irix
14523         fi ;;
14524   esac
14525   need_lib_prefix=no
14526   need_version=no
14527   soname_spec='${libname}${release}${shared_ext}$major'
14528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14529   case $host_os in
14530   irix5* | nonstopux*)
14531     libsuff= shlibsuff=
14532     ;;
14533   *)
14534     case $LD in # libtool.m4 will add one of these switches to LD
14535     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14536       libsuff= shlibsuff= libmagic=32-bit;;
14537     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14538       libsuff=32 shlibsuff=N32 libmagic=N32;;
14539     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14540       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14541     *) libsuff= shlibsuff= libmagic=never-match;;
14542     esac
14543     ;;
14544   esac
14545   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14546   shlibpath_overrides_runpath=no
14547   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14548   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14549   hardcode_into_libs=yes
14550   ;;
14551
14552 # No shared lib support for Linux oldld, aout, or coff.
14553 linux*oldld* | linux*aout* | linux*coff*)
14554   dynamic_linker=no
14555   ;;
14556
14557 # This must be Linux ELF.
14558 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14559   version_type=linux
14560   need_lib_prefix=no
14561   need_version=no
14562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14563   soname_spec='${libname}${release}${shared_ext}$major'
14564   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14565   shlibpath_var=LD_LIBRARY_PATH
14566   shlibpath_overrides_runpath=no
14567   # Some binutils ld are patched to set DT_RUNPATH
14568   save_LDFLAGS=$LDFLAGS
14569   save_libdir=$libdir
14570   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14571        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h.  */
14574
14575 int
14576 main ()
14577 {
14578
14579   ;
14580   return 0;
14581 }
14582 _ACEOF
14583 if ac_fn_cxx_try_link "$LINENO"; then :
14584   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14585   shlibpath_overrides_runpath=yes
14586 fi
14587 fi
14588 rm -f core conftest.err conftest.$ac_objext \
14589     conftest$ac_exeext conftest.$ac_ext
14590   LDFLAGS=$save_LDFLAGS
14591   libdir=$save_libdir
14592
14593   # This implies no fast_install, which is unacceptable.
14594   # Some rework will be needed to allow for fast_install
14595   # before this can be enabled.
14596   hardcode_into_libs=yes
14597
14598   # Append ld.so.conf contents to the search path
14599   if test -f /etc/ld.so.conf; then
14600     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;/^$/d' | tr '\n' ' '`
14601     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14602   fi
14603
14604   # We used to test for /lib/ld.so.1 and disable shared libraries on
14605   # powerpc, because MkLinux only supported shared libraries with the
14606   # GNU dynamic linker.  Since this was broken with cross compilers,
14607   # most powerpc-linux boxes support dynamic linking these days and
14608   # people can always --disable-shared, the test was removed, and we
14609   # assume the GNU/Linux dynamic linker is in use.
14610   dynamic_linker='GNU/Linux ld.so'
14611   ;;
14612
14613 netbsdelf*-gnu)
14614   version_type=linux
14615   need_lib_prefix=no
14616   need_version=no
14617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14618   soname_spec='${libname}${release}${shared_ext}$major'
14619   shlibpath_var=LD_LIBRARY_PATH
14620   shlibpath_overrides_runpath=no
14621   hardcode_into_libs=yes
14622   dynamic_linker='NetBSD ld.elf_so'
14623   ;;
14624
14625 netbsd*)
14626   version_type=sunos
14627   need_lib_prefix=no
14628   need_version=no
14629   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14630     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14631     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14632     dynamic_linker='NetBSD (a.out) ld.so'
14633   else
14634     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14635     soname_spec='${libname}${release}${shared_ext}$major'
14636     dynamic_linker='NetBSD ld.elf_so'
14637   fi
14638   shlibpath_var=LD_LIBRARY_PATH
14639   shlibpath_overrides_runpath=yes
14640   hardcode_into_libs=yes
14641   ;;
14642
14643 newsos6)
14644   version_type=linux
14645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14646   shlibpath_var=LD_LIBRARY_PATH
14647   shlibpath_overrides_runpath=yes
14648   ;;
14649
14650 *nto* | *qnx*)
14651   version_type=qnx
14652   need_lib_prefix=no
14653   need_version=no
14654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14655   soname_spec='${libname}${release}${shared_ext}$major'
14656   shlibpath_var=LD_LIBRARY_PATH
14657   shlibpath_overrides_runpath=no
14658   hardcode_into_libs=yes
14659   dynamic_linker='ldqnx.so'
14660   ;;
14661
14662 openbsd*)
14663   version_type=sunos
14664   sys_lib_dlsearch_path_spec="/usr/lib"
14665   need_lib_prefix=no
14666   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14667   case $host_os in
14668     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14669     *)                          need_version=no  ;;
14670   esac
14671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14672   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14673   shlibpath_var=LD_LIBRARY_PATH
14674   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14675     case $host_os in
14676       openbsd2.[89] | openbsd2.[89].*)
14677         shlibpath_overrides_runpath=no
14678         ;;
14679       *)
14680         shlibpath_overrides_runpath=yes
14681         ;;
14682       esac
14683   else
14684     shlibpath_overrides_runpath=yes
14685   fi
14686   ;;
14687
14688 os2*)
14689   libname_spec='$name'
14690   shrext_cmds=".dll"
14691   need_lib_prefix=no
14692   library_names_spec='$libname${shared_ext} $libname.a'
14693   dynamic_linker='OS/2 ld.exe'
14694   shlibpath_var=LIBPATH
14695   ;;
14696
14697 osf3* | osf4* | osf5*)
14698   version_type=osf
14699   need_lib_prefix=no
14700   need_version=no
14701   soname_spec='${libname}${release}${shared_ext}$major'
14702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703   shlibpath_var=LD_LIBRARY_PATH
14704   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14705   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14706   ;;
14707
14708 rdos*)
14709   dynamic_linker=no
14710   ;;
14711
14712 solaris*)
14713   version_type=linux
14714   need_lib_prefix=no
14715   need_version=no
14716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14717   soname_spec='${libname}${release}${shared_ext}$major'
14718   shlibpath_var=LD_LIBRARY_PATH
14719   shlibpath_overrides_runpath=yes
14720   hardcode_into_libs=yes
14721   # ldd complains unless libraries are executable
14722   postinstall_cmds='chmod +x $lib'
14723   ;;
14724
14725 sunos4*)
14726   version_type=sunos
14727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14728   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14729   shlibpath_var=LD_LIBRARY_PATH
14730   shlibpath_overrides_runpath=yes
14731   if test "$with_gnu_ld" = yes; then
14732     need_lib_prefix=no
14733   fi
14734   need_version=yes
14735   ;;
14736
14737 sysv4 | sysv4.3*)
14738   version_type=linux
14739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14740   soname_spec='${libname}${release}${shared_ext}$major'
14741   shlibpath_var=LD_LIBRARY_PATH
14742   case $host_vendor in
14743     sni)
14744       shlibpath_overrides_runpath=no
14745       need_lib_prefix=no
14746       runpath_var=LD_RUN_PATH
14747       ;;
14748     siemens)
14749       need_lib_prefix=no
14750       ;;
14751     motorola)
14752       need_lib_prefix=no
14753       need_version=no
14754       shlibpath_overrides_runpath=no
14755       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14756       ;;
14757   esac
14758   ;;
14759
14760 sysv4*MP*)
14761   if test -d /usr/nec ;then
14762     version_type=linux
14763     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14764     soname_spec='$libname${shared_ext}.$major'
14765     shlibpath_var=LD_LIBRARY_PATH
14766   fi
14767   ;;
14768
14769 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14770   version_type=freebsd-elf
14771   need_lib_prefix=no
14772   need_version=no
14773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14774   soname_spec='${libname}${release}${shared_ext}$major'
14775   shlibpath_var=LD_LIBRARY_PATH
14776   shlibpath_overrides_runpath=yes
14777   hardcode_into_libs=yes
14778   if test "$with_gnu_ld" = yes; then
14779     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14780   else
14781     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14782     case $host_os in
14783       sco3.2v5*)
14784         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14785         ;;
14786     esac
14787   fi
14788   sys_lib_dlsearch_path_spec='/usr/lib'
14789   ;;
14790
14791 tpf*)
14792   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14793   version_type=linux
14794   need_lib_prefix=no
14795   need_version=no
14796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14797   shlibpath_var=LD_LIBRARY_PATH
14798   shlibpath_overrides_runpath=no
14799   hardcode_into_libs=yes
14800   ;;
14801
14802 uts4*)
14803   version_type=linux
14804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14805   soname_spec='${libname}${release}${shared_ext}$major'
14806   shlibpath_var=LD_LIBRARY_PATH
14807   ;;
14808
14809 *)
14810   dynamic_linker=no
14811   ;;
14812 esac
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14814 $as_echo "$dynamic_linker" >&6; }
14815 test "$dynamic_linker" = no && can_build_shared=no
14816
14817 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14818 if test "$GCC" = yes; then
14819   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14820 fi
14821
14822 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14823   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14824 fi
14825 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14826   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14827 fi
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14865 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14866 hardcode_action_CXX=
14867 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14868    test -n "$runpath_var_CXX" ||
14869    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14870
14871   # We can hardcode non-existent directories.
14872   if test "$hardcode_direct_CXX" != no &&
14873      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14874      # have to relink, otherwise we might link with an installed library
14875      # when we should be linking with a yet-to-be-installed one
14876      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14877      test "$hardcode_minus_L_CXX" != no; then
14878     # Linking always hardcodes the temporary library directory.
14879     hardcode_action_CXX=relink
14880   else
14881     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14882     hardcode_action_CXX=immediate
14883   fi
14884 else
14885   # We cannot hardcode anything, or else we can only hardcode existing
14886   # directories.
14887   hardcode_action_CXX=unsupported
14888 fi
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14890 $as_echo "$hardcode_action_CXX" >&6; }
14891
14892 if test "$hardcode_action_CXX" = relink ||
14893    test "$inherit_rpath_CXX" = yes; then
14894   # Fast installation is not supported
14895   enable_fast_install=no
14896 elif test "$shlibpath_overrides_runpath" = yes ||
14897      test "$enable_shared" = no; then
14898   # Fast installation is not necessary
14899   enable_fast_install=needless
14900 fi
14901
14902
14903
14904
14905
14906
14907
14908   fi # test -n "$compiler"
14909
14910   CC=$lt_save_CC
14911   LDCXX=$LD
14912   LD=$lt_save_LD
14913   GCC=$lt_save_GCC
14914   with_gnu_ld=$lt_save_with_gnu_ld
14915   lt_cv_path_LDCXX=$lt_cv_path_LD
14916   lt_cv_path_LD=$lt_save_path_LD
14917   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14918   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14919 fi # test "$_lt_caught_CXX_error" != yes
14920
14921 ac_ext=c
14922 ac_cpp='$CPP $CPPFLAGS'
14923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14926
14927
14928
14929
14930 if test "$GCC" = "yes" ; then
14931 #    AC_HAVE_GCC_VERSION(4,0,0,0,
14932 #        [
14933 #        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
14934 #            [Define to enable class visibility control in gcc.])
14935 #        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
14936 #        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
14937 #        ])
14938     CFLAGS="-Wall $GCC_CFLAGS"
14939     CXXFLAGS="-Wall $GCC_CXXFLAGS"
14940 fi
14941
14942 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
14943 # Also enables POSIX semantics for some functions.
14944 case "${host_cpu}-${host_os}" in
14945     *solaris*)
14946         CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
14947         CXXFLAGS="$CXXFLAGS -D_POSIX_PTHREAD_SEMANTICS"
14948         if test "$CXX" = "CC" ; then
14949                 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
14950         fi
14951     ;;
14952 esac
14953
14954 ac_ext=c
14955 ac_cpp='$CPP $CPPFLAGS'
14956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14959
14960
14961 # Checks for typedefs, structures, and compiler characteristics.
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14963 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14964 if test "${ac_cv_c_const+set}" = set; then :
14965   $as_echo_n "(cached) " >&6
14966 else
14967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h.  */
14969
14970 int
14971 main ()
14972 {
14973 /* FIXME: Include the comments suggested by Paul. */
14974 #ifndef __cplusplus
14975   /* Ultrix mips cc rejects this.  */
14976   typedef int charset[2];
14977   const charset cs;
14978   /* SunOS 4.1.1 cc rejects this.  */
14979   char const *const *pcpcc;
14980   char **ppc;
14981   /* NEC SVR4.0.2 mips cc rejects this.  */
14982   struct point {int x, y;};
14983   static struct point const zero = {0,0};
14984   /* AIX XL C 1.02.0.0 rejects this.
14985      It does not let you subtract one const X* pointer from another in
14986      an arm of an if-expression whose if-part is not a constant
14987      expression */
14988   const char *g = "string";
14989   pcpcc = &g + (g ? g-g : 0);
14990   /* HPUX 7.0 cc rejects these. */
14991   ++pcpcc;
14992   ppc = (char**) pcpcc;
14993   pcpcc = (char const *const *) ppc;
14994   { /* SCO 3.2v4 cc rejects this.  */
14995     char *t;
14996     char const *s = 0 ? (char *) 0 : (char const *) 0;
14997
14998     *t++ = 0;
14999     if (s) return 0;
15000   }
15001   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15002     int x[] = {25, 17};
15003     const int *foo = &x[0];
15004     ++foo;
15005   }
15006   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15007     typedef const int *iptr;
15008     iptr p = 0;
15009     ++p;
15010   }
15011   { /* AIX XL C 1.02.0.0 rejects this saying
15012        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15013     struct s { int j; const int *ap[3]; };
15014     struct s *b; b->j = 5;
15015   }
15016   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15017     const int foo = 10;
15018     if (!foo) return 0;
15019   }
15020   return !cs[0] && !zero.x;
15021 #endif
15022
15023   ;
15024   return 0;
15025 }
15026 _ACEOF
15027 if ac_fn_c_try_compile "$LINENO"; then :
15028   ac_cv_c_const=yes
15029 else
15030   ac_cv_c_const=no
15031 fi
15032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15033 fi
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15035 $as_echo "$ac_cv_c_const" >&6; }
15036 if test $ac_cv_c_const = no; then
15037
15038 $as_echo "#define const /**/" >>confdefs.h
15039
15040 fi
15041
15042 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15043 if test "x$ac_cv_type_size_t" = x""yes; then :
15044
15045 else
15046
15047 cat >>confdefs.h <<_ACEOF
15048 #define size_t unsigned int
15049 _ACEOF
15050
15051 fi
15052
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
15054 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15055 if test "${ac_cv_struct_tm+set}" = set; then :
15056   $as_echo_n "(cached) " >&6
15057 else
15058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h.  */
15060 #include <sys/types.h>
15061 #include <time.h>
15062
15063 int
15064 main ()
15065 {
15066 struct tm tm;
15067                                      int *p = &tm.tm_sec;
15068                                      return !p;
15069   ;
15070   return 0;
15071 }
15072 _ACEOF
15073 if ac_fn_c_try_compile "$LINENO"; then :
15074   ac_cv_struct_tm=time.h
15075 else
15076   ac_cv_struct_tm=sys/time.h
15077 fi
15078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15079 fi
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
15081 $as_echo "$ac_cv_struct_tm" >&6; }
15082 if test $ac_cv_struct_tm = sys/time.h; then
15083
15084 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
15085
15086 fi
15087
15088
15089 # Checks for library functions.
15090 for ac_func in strcasecmp
15091 do :
15092   ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
15093 if test "x$ac_cv_func_strcasecmp" = x""yes; then :
15094   cat >>confdefs.h <<_ACEOF
15095 #define HAVE_STRCASECMP 1
15096 _ACEOF
15097
15098 fi
15099 done
15100
15101
15102 # checks for pthreads
15103
15104
15105 ac_ext=c
15106 ac_cpp='$CPP $CPPFLAGS'
15107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15110
15111 acx_pthread_ok=no
15112
15113 # We used to check for pthread.h first, but this fails if pthread.h
15114 # requires special compiler flags (e.g. on True64 or Sequent).
15115 # It gets checked for in the link test anyway.
15116
15117 # First of all, check if the user has set any of the PTHREAD_LIBS,
15118 # etcetera environment variables, and if threads linking works using
15119 # them:
15120 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15121         save_CFLAGS="$CFLAGS"
15122         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15123         save_LIBS="$LIBS"
15124         LIBS="$PTHREAD_LIBS $LIBS"
15125         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15126 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15127         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h.  */
15129
15130 /* Override any GCC internal prototype to avoid an error.
15131    Use char because int might match the return type of a GCC
15132    builtin and then its argument prototype would still apply.  */
15133 #ifdef __cplusplus
15134 extern "C"
15135 #endif
15136 char pthread_join ();
15137 int
15138 main ()
15139 {
15140 return pthread_join ();
15141   ;
15142   return 0;
15143 }
15144 _ACEOF
15145 if ac_fn_c_try_link "$LINENO"; then :
15146   acx_pthread_ok=yes
15147 fi
15148 rm -f core conftest.err conftest.$ac_objext \
15149     conftest$ac_exeext conftest.$ac_ext
15150         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15151 $as_echo "$acx_pthread_ok" >&6; }
15152         if test x"$acx_pthread_ok" = xno; then
15153                 PTHREAD_LIBS=""
15154                 PTHREAD_CFLAGS=""
15155         fi
15156         LIBS="$save_LIBS"
15157         CFLAGS="$save_CFLAGS"
15158 fi
15159
15160 # We must check for the threads library under a number of different
15161 # names; the ordering is very important because some systems
15162 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15163 # libraries is broken (non-POSIX).
15164
15165 # Create a list of thread flags to try.  Items starting with a "-" are
15166 # C compiler flags, and other items are library names, except for "none"
15167 # which indicates that we try without any flags at all, and "pthread-config"
15168 # which is a program returning the flags for the Pth emulation library.
15169
15170 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15171
15172 # The ordering *is* (sometimes) important.  Some notes on the
15173 # individual items follow:
15174
15175 # pthreads: AIX (must check this before -lpthread)
15176 # none: in case threads are in libc; should be tried before -Kthread and
15177 #       other compiler flags to prevent continual compiler warnings
15178 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15179 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15180 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15181 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15182 # -pthreads: Solaris/gcc
15183 # -mthreads: Mingw32/gcc, Lynx/gcc
15184 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15185 #      doesn't hurt to check since this sometimes defines pthreads too;
15186 #      also defines -D_REENTRANT)
15187 #      ... -mt is also the pthreads flag for HP/aCC
15188 # pthread: Linux, etcetera
15189 # --thread-safe: KAI C++
15190 # pthread-config: use pthread-config program (for GNU Pth library)
15191
15192 case "${host_cpu}-${host_os}" in
15193         *solaris*)
15194
15195         # On Solaris (at least, for some versions), libc contains stubbed
15196         # (non-functional) versions of the pthreads routines, so link-based
15197         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15198         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15199         # a function called by this macro, so we could check for that, but
15200         # who knows whether they'll stub that too in a future libc.)  So,
15201         # we'll just look for -pthreads and -lpthread first:
15202
15203         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15204         ;;
15205 esac
15206
15207 if test x"$acx_pthread_ok" = xno; then
15208 for flag in $acx_pthread_flags; do
15209
15210         case $flag in
15211                 none)
15212                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15213 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15214                 ;;
15215
15216                 -*)
15217                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15218 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15219                 PTHREAD_CFLAGS="$flag"
15220                 ;;
15221
15222                 pthread-config)
15223                 # Extract the first word of "pthread-config", so it can be a program name with args.
15224 set dummy pthread-config; ac_word=$2
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15226 $as_echo_n "checking for $ac_word... " >&6; }
15227 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
15228   $as_echo_n "(cached) " >&6
15229 else
15230   if test -n "$acx_pthread_config"; then
15231   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15232 else
15233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15234 for as_dir in $PATH
15235 do
15236   IFS=$as_save_IFS
15237   test -z "$as_dir" && as_dir=.
15238     for ac_exec_ext in '' $ac_executable_extensions; do
15239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15240     ac_cv_prog_acx_pthread_config="yes"
15241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15242     break 2
15243   fi
15244 done
15245   done
15246 IFS=$as_save_IFS
15247
15248   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15249 fi
15250 fi
15251 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15252 if test -n "$acx_pthread_config"; then
15253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15254 $as_echo "$acx_pthread_config" >&6; }
15255 else
15256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15257 $as_echo "no" >&6; }
15258 fi
15259
15260
15261                 if test x"$acx_pthread_config" = xno; then continue; fi
15262                 PTHREAD_CFLAGS="`pthread-config --cflags`"
15263                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15264                 ;;
15265
15266                 *)
15267                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15268 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15269                 PTHREAD_LIBS="-l$flag"
15270                 ;;
15271         esac
15272
15273         save_LIBS="$LIBS"
15274         save_CFLAGS="$CFLAGS"
15275         LIBS="$PTHREAD_LIBS $LIBS"
15276         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15277
15278         # Check for various functions.  We must include pthread.h,
15279         # since some functions may be macros.  (On the Sequent, we
15280         # need a special flag -Kthread to make this header compile.)
15281         # We check for pthread_join because it is in -lpthread on IRIX
15282         # while pthread_create is in libc.  We check for pthread_attr_init
15283         # due to DEC craziness with -lpthreads.  We check for
15284         # pthread_cleanup_push because it is one of the few pthread
15285         # functions on Solaris that doesn't have a non-functional libc stub.
15286         # We try pthread_create on general principles.
15287         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288 /* end confdefs.h.  */
15289 #include <pthread.h>
15290 int
15291 main ()
15292 {
15293 pthread_t th; pthread_join(th, 0);
15294                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
15295                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15296   ;
15297   return 0;
15298 }
15299 _ACEOF
15300 if ac_fn_c_try_link "$LINENO"; then :
15301   acx_pthread_ok=yes
15302 fi
15303 rm -f core conftest.err conftest.$ac_objext \
15304     conftest$ac_exeext conftest.$ac_ext
15305
15306         LIBS="$save_LIBS"
15307         CFLAGS="$save_CFLAGS"
15308
15309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15310 $as_echo "$acx_pthread_ok" >&6; }
15311         if test "x$acx_pthread_ok" = xyes; then
15312                 break;
15313         fi
15314
15315         PTHREAD_LIBS=""
15316         PTHREAD_CFLAGS=""
15317 done
15318 fi
15319
15320 # Various other checks:
15321 if test "x$acx_pthread_ok" = xyes; then
15322         save_LIBS="$LIBS"
15323         LIBS="$PTHREAD_LIBS $LIBS"
15324         save_CFLAGS="$CFLAGS"
15325         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15326
15327         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15328         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15329 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15330         attr_name=unknown
15331         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15332             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h.  */
15334 #include <pthread.h>
15335 int
15336 main ()
15337 {
15338 int attr=$attr; return attr;
15339   ;
15340   return 0;
15341 }
15342 _ACEOF
15343 if ac_fn_c_try_link "$LINENO"; then :
15344   attr_name=$attr; break
15345 fi
15346 rm -f core conftest.err conftest.$ac_objext \
15347     conftest$ac_exeext conftest.$ac_ext
15348         done
15349         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15350 $as_echo "$attr_name" >&6; }
15351         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15352
15353 cat >>confdefs.h <<_ACEOF
15354 #define PTHREAD_CREATE_JOINABLE $attr_name
15355 _ACEOF
15356
15357         fi
15358
15359         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15360 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15361         flag=no
15362         case "${host_cpu}-${host_os}" in
15363                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
15364                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
15365                 *solaris*)
15366                 if test "$GCC" = "yes"; then
15367                     flag="-D_REENTRANT"
15368                 else
15369                     flag="-mt -D_REENTRANT"
15370                 fi
15371                 ;;
15372         esac
15373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15374 $as_echo "${flag}" >&6; }
15375         if test "x$flag" != xno; then
15376             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15377         fi
15378
15379         LIBS="$save_LIBS"
15380         CFLAGS="$save_CFLAGS"
15381
15382         # More AIX lossage: must compile with xlc_r or cc_r
15383         if test x"$GCC" != xyes; then
15384           for ac_prog in xlc_r cc_r
15385 do
15386   # Extract the first word of "$ac_prog", so it can be a program name with args.
15387 set dummy $ac_prog; ac_word=$2
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15389 $as_echo_n "checking for $ac_word... " >&6; }
15390 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
15391   $as_echo_n "(cached) " >&6
15392 else
15393   if test -n "$PTHREAD_CC"; then
15394   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15395 else
15396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15397 for as_dir in $PATH
15398 do
15399   IFS=$as_save_IFS
15400   test -z "$as_dir" && as_dir=.
15401     for ac_exec_ext in '' $ac_executable_extensions; do
15402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15403     ac_cv_prog_PTHREAD_CC="$ac_prog"
15404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15405     break 2
15406   fi
15407 done
15408   done
15409 IFS=$as_save_IFS
15410
15411 fi
15412 fi
15413 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15414 if test -n "$PTHREAD_CC"; then
15415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15416 $as_echo "$PTHREAD_CC" >&6; }
15417 else
15418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15419 $as_echo "no" >&6; }
15420 fi
15421
15422
15423   test -n "$PTHREAD_CC" && break
15424 done
15425 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15426
15427         else
15428           PTHREAD_CC=$CC
15429         fi
15430 else
15431         PTHREAD_CC="$CC"
15432 fi
15433
15434
15435
15436
15437
15438 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15439 if test x"$acx_pthread_ok" = xyes; then
15440         enable_threads="pthread"
15441         :
15442 else
15443         acx_pthread_ok=no
15444         enable_threads="no"
15445 fi
15446 ac_ext=c
15447 ac_cpp='$CPP $CPPFLAGS'
15448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15451
15452
15453 if test $enable_threads != "pthread"; then
15454     as_fn_error $? "unable to find pthreads, currently this is required" "$LINENO" 5
15455 else
15456
15457 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15458
15459     LIBS="$PTHREAD_LIBS $LIBS"
15460     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
15461     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
15462 fi
15463
15464 ac_ext=cpp
15465 ac_cpp='$CXXCPP $CPPFLAGS'
15466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15469
15470
15471 # C++ requirements
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
15473 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
15474 if test "${ac_cv_cxx_namespaces+set}" = set; then :
15475   $as_echo_n "(cached) " >&6
15476 else
15477
15478  ac_ext=cpp
15479 ac_cpp='$CXXCPP $CPPFLAGS'
15480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15483
15484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h.  */
15486 namespace Outer { namespace Inner { int i = 0; }}
15487 int
15488 main ()
15489 {
15490 using namespace Outer::Inner; return i;
15491   ;
15492   return 0;
15493 }
15494 _ACEOF
15495 if ac_fn_cxx_try_compile "$LINENO"; then :
15496   ac_cv_cxx_namespaces=yes
15497 else
15498   ac_cv_cxx_namespaces=no
15499 fi
15500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15501  ac_ext=cpp
15502 ac_cpp='$CXXCPP $CPPFLAGS'
15503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15506
15507
15508 fi
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
15510 $as_echo "$ac_cv_cxx_namespaces" >&6; }
15511 if test "$ac_cv_cxx_namespaces" = yes; then
15512
15513 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
15514
15515 fi
15516
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Standard Template Library" >&5
15518 $as_echo_n "checking whether the compiler supports Standard Template Library... " >&6; }
15519 if test "${ac_cv_cxx_have_stl+set}" = set; then :
15520   $as_echo_n "(cached) " >&6
15521 else
15522
15523  ac_ext=cpp
15524 ac_cpp='$CXXCPP $CPPFLAGS'
15525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15528
15529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h.  */
15531 #include <list>
15532 #include <deque>
15533 #ifdef HAVE_NAMESPACES
15534 using namespace std;
15535 #endif
15536 int
15537 main ()
15538 {
15539 list<int> x; x.push_back(5);
15540 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
15541   ;
15542   return 0;
15543 }
15544 _ACEOF
15545 if ac_fn_cxx_try_compile "$LINENO"; then :
15546   ac_cv_cxx_have_stl=yes
15547 else
15548   ac_cv_cxx_have_stl=no
15549 fi
15550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15551  ac_ext=cpp
15552 ac_cpp='$CXXCPP $CPPFLAGS'
15553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15556
15557
15558 fi
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_stl" >&5
15560 $as_echo "$ac_cv_cxx_have_stl" >&6; }
15561 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
15562   as_fn_error $? "C++ Standard Template Libary unsupported" "$LINENO" 5
15563 fi
15564
15565
15566 # are covariant methods allowed?
15567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15568 /* end confdefs.h.  */
15569
15570 int
15571 main ()
15572 {
15573
15574         class base { public: virtual base *GetPtr( void ) { return this; } };
15575         class derived: virtual public base { public: virtual derived *GetPtr( void ) { return this; } };
15576
15577   ;
15578   return 0;
15579 }
15580 _ACEOF
15581 if ac_fn_cxx_try_link "$LINENO"; then :
15582
15583 $as_echo "#define HAVE_COVARIANT_RETURNS 1" >>confdefs.h
15584
15585 fi
15586 rm -f core conftest.err conftest.$ac_objext \
15587     conftest$ac_exeext conftest.$ac_ext
15588
15589 # is nullptr supported?
15590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591 /* end confdefs.h.  */
15592
15593 int
15594 main ()
15595 {
15596 const char* ptr = nullptr;
15597   ;
15598   return 0;
15599 }
15600 _ACEOF
15601 if ac_fn_cxx_try_compile "$LINENO"; then :
15602
15603 $as_echo "#define HAVE_NULLPTR 1" >>confdefs.h
15604
15605 fi
15606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15607
15608 # log4shib settings (favor this version over the log4cpp code)
15609 # Extract the first word of "log4shib-config", so it can be a program name with args.
15610 set dummy log4shib-config; ac_word=$2
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15612 $as_echo_n "checking for $ac_word... " >&6; }
15613 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then :
15614   $as_echo_n "(cached) " >&6
15615 else
15616   case $LOG4SHIB_CONFIG in
15617   [\\/]* | ?:[\\/]*)
15618   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
15619   ;;
15620   *)
15621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15622 for as_dir in $PATH
15623 do
15624   IFS=$as_save_IFS
15625   test -z "$as_dir" && as_dir=.
15626     for ac_exec_ext in '' $ac_executable_extensions; do
15627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15628     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15630     break 2
15631   fi
15632 done
15633   done
15634 IFS=$as_save_IFS
15635
15636   ;;
15637 esac
15638 fi
15639 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
15640 if test -n "$LOG4SHIB_CONFIG"; then
15641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4SHIB_CONFIG" >&5
15642 $as_echo "$LOG4SHIB_CONFIG" >&6; }
15643 else
15644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15645 $as_echo "no" >&6; }
15646 fi
15647
15648
15649
15650 # Check whether --with-log4shib was given.
15651 if test "${with_log4shib+set}" = set; then :
15652   withval=$with_log4shib;
15653     LOG4SHIB_CONFIG="${with_log4shib}"
15654     if ! test -f "${LOG4SHIB_CONFIG}" ; then
15655         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
15656     fi
15657
15658 fi
15659
15660 if test -f "${LOG4SHIB_CONFIG}"; then
15661     LIBS="`${LOG4SHIB_CONFIG} --libs` $LIBS"
15662     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
15663
15664 ac_fn_cxx_check_header_mongrel "$LINENO" "log4shib/CategoryStream.hh" "ac_cv_header_log4shib_CategoryStream_hh" "$ac_includes_default"
15665 if test "x$ac_cv_header_log4shib_CategoryStream_hh" = x""yes; then :
15666
15667 else
15668   as_fn_error $? "unable to find log4shib header files" "$LINENO" 5
15669 fi
15670
15671
15672     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15673 /* end confdefs.h.  */
15674 #include <log4shib/Category.hh>
15675 #include <log4shib/CategoryStream.hh>
15676 int
15677 main ()
15678 {
15679 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
15680   ;
15681   return 0;
15682 }
15683 _ACEOF
15684 if ac_fn_cxx_try_link "$LINENO"; then :
15685
15686 $as_echo "#define SHIBRESOLVER_LOG4SHIB 1" >>confdefs.h
15687
15688 else
15689   as_fn_error $? "unable to link with log4shib" "$LINENO" 5
15690 fi
15691 rm -f core conftest.err conftest.$ac_objext \
15692     conftest$ac_exeext conftest.$ac_ext
15693 else
15694     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
15695 $as_echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
15696     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will look for original log4cpp library" >&5
15697 $as_echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
15698
15699         # log4cpp settings
15700         # Extract the first word of "log4cpp-config", so it can be a program name with args.
15701 set dummy log4cpp-config; ac_word=$2
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15703 $as_echo_n "checking for $ac_word... " >&6; }
15704 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then :
15705   $as_echo_n "(cached) " >&6
15706 else
15707   case $LOG4CPP_CONFIG in
15708   [\\/]* | ?:[\\/]*)
15709   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
15710   ;;
15711   *)
15712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15713 for as_dir in $PATH
15714 do
15715   IFS=$as_save_IFS
15716   test -z "$as_dir" && as_dir=.
15717     for ac_exec_ext in '' $ac_executable_extensions; do
15718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15719     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15721     break 2
15722   fi
15723 done
15724   done
15725 IFS=$as_save_IFS
15726
15727   ;;
15728 esac
15729 fi
15730 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
15731 if test -n "$LOG4CPP_CONFIG"; then
15732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4CPP_CONFIG" >&5
15733 $as_echo "$LOG4CPP_CONFIG" >&6; }
15734 else
15735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15736 $as_echo "no" >&6; }
15737 fi
15738
15739
15740
15741 # Check whether --with-log4cpp was given.
15742 if test "${with_log4cpp+set}" = set; then :
15743   withval=$with_log4cpp;
15744             LOG4CPP_CONFIG="${with_log4cpp}"
15745             if ! test -f "${LOG4CPP_CONFIG}" ; then
15746                 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
15747             fi
15748
15749 fi
15750
15751         if test -f "${LOG4CPP_CONFIG}"; then
15752                 { $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
15753 $as_echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
15754             LIBS="`${LOG4CPP_CONFIG} --libs` $LIBS"
15755             CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
15756                 ac_fn_cxx_check_header_mongrel "$LINENO" "log4cpp/CategoryStream.hh" "ac_cv_header_log4cpp_CategoryStream_hh" "$ac_includes_default"
15757 if test "x$ac_cv_header_log4cpp_CategoryStream_hh" = x""yes; then :
15758
15759 else
15760   as_fn_error $? "unable to find log4cpp header files" "$LINENO" 5
15761 fi
15762
15763
15764         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15765 /* end confdefs.h.  */
15766 #include <log4cpp/Category.hh>
15767 #include <log4cpp/CategoryStream.hh>
15768 int
15769 main ()
15770 {
15771 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
15772   ;
15773   return 0;
15774 }
15775 _ACEOF
15776 if ac_fn_cxx_try_link "$LINENO"; then :
15777
15778 $as_echo "#define SHIBRESOLVER_LOG4CPP 1" >>confdefs.h
15779
15780 else
15781   as_fn_error $? "unable to link with log4cpp, need version 1.0 or later" "$LINENO" 5
15782 fi
15783 rm -f core conftest.err conftest.$ac_objext \
15784     conftest$ac_exeext conftest.$ac_ext
15785         else
15786             as_fn_error $? "log4cpp-config not found, may need to use --with-log4cpp option" "$LINENO" 5
15787         fi
15788 fi
15789
15790 # Xerces settings
15791 # Xerces settings
15792
15793 # Check whether --with-xerces was given.
15794 if test "${with_xerces+set}" = set; then :
15795   withval=$with_xerces; if test x_$with_xerces != x_/usr; then
15796         LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
15797         CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
15798     fi
15799 fi
15800
15801 LIBS="-lxerces-c $LIBS"
15802 ac_fn_cxx_check_header_mongrel "$LINENO" "xercesc/dom/DOM.hpp" "ac_cv_header_xercesc_dom_DOM_hpp" "$ac_includes_default"
15803 if test "x$ac_cv_header_xercesc_dom_DOM_hpp" = x""yes; then :
15804
15805 else
15806   as_fn_error $? "unable to find xerces header files" "$LINENO" 5
15807 fi
15808
15809
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Xerces version" >&5
15811 $as_echo_n "checking Xerces version... " >&6; }
15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813 /* end confdefs.h.  */
15814 #include <xercesc/util/XercesVersion.hpp>
15815 int
15816 main ()
15817 {
15818 #if  _XERCES_VERSION != 20600
15819 int i = 0;
15820 #else
15821 #error cannot use version 2.6.0
15822 #endif
15823   ;
15824   return 0;
15825 }
15826 _ACEOF
15827 if ac_fn_cxx_try_cpp "$LINENO"; then :
15828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
15829 $as_echo "OK" >&6; }
15830 else
15831   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15833 as_fn_error $? "Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
15834 See \`config.log' for more details" "$LINENO" 5 ; }
15835 fi
15836 rm -f conftest.err conftest.i conftest.$ac_ext
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h.  */
15839 #include <xercesc/util/PlatformUtils.hpp>
15840 int
15841 main ()
15842 {
15843 xercesc::XMLPlatformUtils::Initialize()
15844   ;
15845   return 0;
15846 }
15847 _ACEOF
15848 if ac_fn_cxx_try_link "$LINENO"; then :
15849
15850 else
15851   as_fn_error $? "unable to link with Xerces" "$LINENO" 5
15852 fi
15853 rm -f core conftest.err conftest.$ac_objext \
15854     conftest$ac_exeext conftest.$ac_ext
15855
15856
15857 #XML-Tooling settings
15858
15859 # Check whether --with-xmltooling was given.
15860 if test "${with_xmltooling+set}" = set; then :
15861   withval=$with_xmltooling; if test x_$with_xmltooling != x_/usr; then
15862         LDFLAGS="-L${with_xmltooling}/lib $LDFLAGS"
15863         CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
15864     fi
15865 fi
15866
15867 LITE_LIBS="-lxmltooling-lite"
15868 XMLSEC_LIBS="-lxmltooling"
15869 ac_fn_cxx_check_header_mongrel "$LINENO" "xmltooling/base.h" "ac_cv_header_xmltooling_base_h" "$ac_includes_default"
15870 if test "x$ac_cv_header_xmltooling_base_h" = x""yes; then :
15871
15872 else
15873   as_fn_error $? "unable to find xmltooling header files" "$LINENO" 5
15874 fi
15875
15876
15877
15878 # XML-Security settings
15879
15880 # Check whether --with-xmlsec was given.
15881 if test "${with_xmlsec+set}" = set; then :
15882   withval=$with_xmlsec;
15883 else
15884   with_xmlsec=/usr
15885 fi
15886
15887
15888 if test x_$with_xmlsec != x_/usr; then
15889     LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
15890     CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
15891 fi
15892 XMLSEC_LIBS="-lxml-security-c $XMLSEC_LIBS"
15893
15894 # save and append master libs
15895 save_LIBS="$LIBS"
15896 LIBS="$XMLSEC_LIBS $LIBS"
15897
15898 ac_fn_cxx_check_header_mongrel "$LINENO" "xsec/utils/XSECPlatformUtils.hpp" "ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" "$ac_includes_default"
15899 if test "x$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" = x""yes; then :
15900
15901 else
15902   as_fn_error $? "unable to find XML-Security header files" "$LINENO" 5
15903 fi
15904
15905
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML-Security version" >&5
15907 $as_echo_n "checking XML-Security version... " >&6; }
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h.  */
15910 #include <xsec/utils/XSECPlatformUtils.hpp>
15911 int
15912 main ()
15913 {
15914 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
15915 int i = 0;
15916 #else
15917 #error need version 1.4.0 or later
15918 #endif
15919   ;
15920   return 0;
15921 }
15922 _ACEOF
15923 if ac_fn_cxx_try_cpp "$LINENO"; then :
15924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
15925 $as_echo "OK" >&6; }
15926 else
15927   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15929 as_fn_error $? "XML-Security version 1.4.0 or greater is required.
15930 See \`config.log' for more details" "$LINENO" 5 ; }
15931 fi
15932 rm -f conftest.err conftest.i conftest.$ac_ext
15933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15934 /* end confdefs.h.  */
15935 #include <xsec/utils/XSECPlatformUtils.hpp>
15936 int
15937 main ()
15938 {
15939 XSECPlatformUtils::Initialise()
15940   ;
15941   return 0;
15942 }
15943 _ACEOF
15944 if ac_fn_cxx_try_link "$LINENO"; then :
15945
15946 else
15947   as_fn_error $? "unable to link with XML-Security" "$LINENO" 5
15948 fi
15949 rm -f core conftest.err conftest.$ac_objext \
15950     conftest$ac_exeext conftest.$ac_ext
15951
15952 # restore master libs
15953 LIBS="$save_LIBS"
15954
15955 # OpenSAML settings
15956
15957 # Check whether --with-saml was given.
15958 if test "${with_saml+set}" = set; then :
15959   withval=$with_saml; if test x_$with_saml != x_/usr; then
15960         LDFLAGS="-L${with_saml}/lib $LDFLAGS"
15961         CPPFLAGS="-I${with_saml}/include $CPPFLAGS"
15962     fi
15963 fi
15964
15965 XMLSEC_LIBS="-lsaml $XMLSEC_LIBS"
15966
15967 # save and append master libs
15968 save_LIBS="$LIBS"
15969 LIBS="$XMLSEC_LIBS $LIBS"
15970
15971 ac_fn_cxx_check_header_mongrel "$LINENO" "saml/saml2/metadata/Metadata.h" "ac_cv_header_saml_saml2_metadata_Metadata_h" "$ac_includes_default"
15972 if test "x$ac_cv_header_saml_saml2_metadata_Metadata_h" = x""yes; then :
15973
15974 else
15975   as_fn_error $? "unable to find OpenSAML header files" "$LINENO" 5
15976 fi
15977
15978
15979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h.  */
15981 #include <saml/SAMLConfig.h>
15982 int
15983 main ()
15984 {
15985 opensaml::SAMLConfig::getConfig()
15986   ;
15987   return 0;
15988 }
15989 _ACEOF
15990 if ac_fn_cxx_try_link "$LINENO"; then :
15991
15992 else
15993   as_fn_error $? "unable to link with OpenSAML" "$LINENO" 5
15994 fi
15995 rm -f core conftest.err conftest.$ac_objext \
15996     conftest$ac_exeext conftest.$ac_ext
15997
15998 # restore master libs
15999 LIBS="$save_LIBS"
16000
16001 # Shibboleth SP settings
16002
16003 # Check whether --with-shibsp was given.
16004 if test "${with_shibsp+set}" = set; then :
16005   withval=$with_shibsp; if test x_$with_shibsp != x_/usr; then
16006         LDFLAGS="-L${with_shibsp}/lib $LDFLAGS"
16007         CPPFLAGS="-I${with_shibsp}/include $CPPFLAGS"
16008     fi
16009 fi
16010
16011 LITE_LIBS="-lshibsp-lite $LITE_LIBS"
16012 XMLSEC_LIBS="-lshibsp $XMLSEC_LIBS"
16013
16014 # save and append master libs
16015 save_LIBS="$LIBS"
16016 LIBS="$XMLSEC_LIBS $LIBS"
16017
16018 ac_fn_cxx_check_header_mongrel "$LINENO" "shibsp/SPConfig.h" "ac_cv_header_shibsp_SPConfig_h" "$ac_includes_default"
16019 if test "x$ac_cv_header_shibsp_SPConfig_h" = x""yes; then :
16020
16021 else
16022   as_fn_error $? "unable to find Shibboleth SP header files" "$LINENO" 5
16023 fi
16024
16025
16026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16027 /* end confdefs.h.  */
16028 #include <shibsp/SPConfig.h>
16029 int
16030 main ()
16031 {
16032 shibsp::SPConfig::getConfig()
16033   ;
16034   return 0;
16035 }
16036 _ACEOF
16037 if ac_fn_cxx_try_link "$LINENO"; then :
16038
16039 else
16040   as_fn_error $? "unable to link with Shibboleth SP" "$LINENO" 5
16041 fi
16042 rm -f core conftest.err conftest.$ac_objext \
16043     conftest$ac_exeext conftest.$ac_ext
16044
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SP library supports non-plugin remoting" >&5
16046 $as_echo_n "checking whether SP library supports non-plugin remoting... " >&6; }
16047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16048 /* end confdefs.h.  */
16049
16050 #include <vector>
16051 #include <shibsp/ServiceProvider.h>
16052
16053 int
16054 main ()
16055 {
16056 shibsp::ServiceProvider* sp; sp->regListener(NULL,NULL);
16057   ;
16058   return 0;
16059 }
16060 _ACEOF
16061 if ac_fn_cxx_try_compile "$LINENO"; then :
16062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16063 $as_echo "yes" >&6; }
16064 $as_echo "#define SHIBRESOLVER_SHIBSP_HAS_REMOTING 1" >>confdefs.h
16065
16066 else
16067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16068 $as_echo "no" >&6; }
16069 fi
16070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16071
16072 # restore master libs
16073 LIBS="$save_LIBS"
16074
16075 # GSS-API checking
16076
16077 GSSAPI_ROOT="/usr"
16078
16079 # Check whether --with-gssapi-includes was given.
16080 if test "${with_gssapi_includes+set}" = set; then :
16081   withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
16082     want_gss="yes"
16083
16084 fi
16085
16086
16087
16088 # Check whether --with-gssapi-libs was given.
16089 if test "${with_gssapi_libs+set}" = set; then :
16090   withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
16091     want_gss="yes"
16092
16093 fi
16094
16095
16096
16097 # Check whether --with-gssapi was given.
16098 if test "${with_gssapi+set}" = set; then :
16099   withval=$with_gssapi;  GSSAPI_ROOT="$withval"
16100   if test x"$GSSAPI_ROOT" != xno; then
16101     want_gss="yes"
16102     if test x"$GSSAPI_ROOT" = xyes; then
16103             GSSAPI_ROOT="/usr"
16104     fi
16105   fi
16106
16107 fi
16108
16109
16110 save_CPPFLAGS="$CPPFLAGS"
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSSAPI support is requested" >&5
16112 $as_echo_n "checking if GSSAPI support is requested... " >&6; }
16113 if test x"$want_gss" = xyes; then
16114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16115 $as_echo "yes" >&6; }
16116
16117   if test -z "$GSSAPI_INCS"; then
16118      if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
16119         GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
16120      elif test "$GSSAPI_ROOT" != "yes"; then
16121         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
16122      fi
16123   fi
16124
16125   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
16126
16127   ac_fn_cxx_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
16128 if test "x$ac_cv_header_gss_h" = x""yes; then :
16129
16130
16131 $as_echo "#define SHIBRESOLVER_HAVE_GSSGNU 1" >>confdefs.h
16132
16133       gnu_gss=yes
16134
16135 else
16136
16137             for ac_header in gssapi/gssapi.h
16138 do :
16139   ac_fn_cxx_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
16140 if test "x$ac_cv_header_gssapi_gssapi_h" = x""yes; then :
16141   cat >>confdefs.h <<_ACEOF
16142 #define HAVE_GSSAPI_GSSAPI_H 1
16143 _ACEOF
16144
16145 else
16146   not_mit=1
16147 fi
16148
16149 done
16150
16151       for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
16152 do :
16153   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16154 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
16155 $ac_includes_default
16156 #ifdef HAVE_GSSAPI_GSSAPI_H
16157 #include <gssapi/gssapi.h>
16158 #endif
16159
16160 "
16161 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16162   cat >>confdefs.h <<_ACEOF
16163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16164 _ACEOF
16165
16166 else
16167   not_mit=1
16168 fi
16169
16170 done
16171
16172       if test "x$not_mit" = "x1"; then
16173                 ac_fn_cxx_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
16174 if test "x$ac_cv_header_gssapi_h" = x""yes; then :
16175
16176
16177 $as_echo "#define SHIBRESOLVER_HAVE_GSSHEIMDAL 1" >>confdefs.h
16178
16179
16180 else
16181
16182                             want_gss=no
16183               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSSAPI since no header files was found" >&5
16184 $as_echo "$as_me: WARNING: disabling GSSAPI since no header files was found" >&2;}
16185
16186
16187 fi
16188
16189
16190       else
16191
16192 $as_echo "#define SHIBRESOLVER_HAVE_GSSMIT 1" >>confdefs.h
16193
16194                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
16195 $as_echo_n "checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
16196         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16197 /* end confdefs.h.  */
16198
16199
16200 #include <gssapi/gssapi.h>
16201 #include <gssapi/gssapi_generic.h>
16202 #include <gssapi/gssapi_krb5.h>
16203
16204 int
16205 main ()
16206 {
16207
16208             gss_import_name(
16209                             (OM_uint32 *)0,
16210                             (gss_buffer_t)0,
16211                             GSS_C_NT_HOSTBASED_SERVICE,
16212                             (gss_name_t *)0);
16213
16214   ;
16215   return 0;
16216 }
16217
16218 _ACEOF
16219 if ac_fn_cxx_try_compile "$LINENO"; then :
16220
16221           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16222 $as_echo "yes" >&6; }
16223
16224 else
16225
16226           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16227 $as_echo "no" >&6; }
16228
16229 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
16230
16231
16232 fi
16233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16234       fi
16235
16236
16237 fi
16238
16239
16240 else
16241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16242 $as_echo "no" >&6; }
16243 fi
16244 if test x"$want_gss" = xyes; then
16245
16246 $as_echo "#define SHIBRESOLVER_HAVE_GSSAPI 1" >>confdefs.h
16247
16248
16249   if test -n "$gnu_gss"; then
16250     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
16251     LIBS="$LIBS -lgss"
16252   else
16253     if test -z "$GSSAPI_LIB_DIR"; then
16254       GSSAPI_LIB_DIR="$GSSAPI_ROOT/lib$libsuff"
16255     fi
16256     if test "$GSSAPI_ROOT" != "yes"; then
16257        LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
16258     fi
16259     if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
16260             gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
16261     else
16262       if test "x$not_mit" = "x1"; then
16263         gss_libs="-lgssapi"
16264       else
16265         gss_libs="-lgssapi_krb5"
16266       fi
16267     fi
16268     LIBS="$LIBS $gss_libs"
16269   fi
16270
16271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GSS-API naming extensions are available" >&5
16272 $as_echo_n "checking whether GSS-API naming extensions are available... " >&6; }
16273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16274 /* end confdefs.h.  */
16275
16276 #ifdef SHIBRESOLVER_HAVE_GSSGNU
16277 # include <gss.h>
16278 #elif defined SHIBRESOLVER_HAVE_GSSMIT
16279 # include <gssapi/gssapi.h>
16280 # include <gssapi/gssapi_ext.h>
16281 #else
16282 # include <gssapi.h>
16283 #endif
16284 int
16285 main ()
16286 {
16287 gss_get_name_attribute(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
16288   ;
16289   return 0;
16290 }
16291 _ACEOF
16292 if ac_fn_cxx_try_compile "$LINENO"; then :
16293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16294 $as_echo "yes" >&6; }
16295 $as_echo "#define SHIBRESOLVER_HAVE_GSSAPI_NAMINGEXTS 1" >>confdefs.h
16296
16297 else
16298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16299 $as_echo "no" >&6; }
16300 fi
16301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16302
16303 else
16304   CPPFLAGS="$save_CPPFLAGS"
16305 fi
16306
16307
16308
16309
16310
16311 LIBTOOL="$LIBTOOL --silent"
16312
16313 cat >confcache <<\_ACEOF
16314 # This file is a shell script that caches the results of configure
16315 # tests run on this system so they can be shared between configure
16316 # scripts and configure runs, see configure's option --config-cache.
16317 # It is not useful on other systems.  If it contains results you don't
16318 # want to keep, you may remove or edit it.
16319 #
16320 # config.status only pays attention to the cache file if you give it
16321 # the --recheck option to rerun configure.
16322 #
16323 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16324 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16325 # following values.
16326
16327 _ACEOF
16328
16329 # The following way of writing the cache mishandles newlines in values,
16330 # but we know of no workaround that is simple, portable, and efficient.
16331 # So, we kill variables containing newlines.
16332 # Ultrix sh set writes to stderr and can't be redirected directly,
16333 # and sets the high bit in the cache file unless we assign to the vars.
16334 (
16335   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16336     eval ac_val=\$$ac_var
16337     case $ac_val in #(
16338     *${as_nl}*)
16339       case $ac_var in #(
16340       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16341 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16342       esac
16343       case $ac_var in #(
16344       _ | IFS | as_nl) ;; #(
16345       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16346       *) { eval $ac_var=; unset $ac_var;} ;;
16347       esac ;;
16348     esac
16349   done
16350
16351   (set) 2>&1 |
16352     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16353     *${as_nl}ac_space=\ *)
16354       # `set' does not quote correctly, so add quotes: double-quote
16355       # substitution turns \\\\ into \\, and sed turns \\ into \.
16356       sed -n \
16357         "s/'/'\\\\''/g;
16358           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16359       ;; #(
16360     *)
16361       # `set' quotes correctly as required by POSIX, so do not add quotes.
16362       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16363       ;;
16364     esac |
16365     sort
16366 ) |
16367   sed '
16368      /^ac_cv_env_/b end
16369      t clear
16370      :clear
16371      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16372      t end
16373      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16374      :end' >>confcache
16375 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16376   if test -w "$cache_file"; then
16377     test "x$cache_file" != "x/dev/null" &&
16378       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16379 $as_echo "$as_me: updating cache $cache_file" >&6;}
16380     cat confcache >$cache_file
16381   else
16382     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16383 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16384   fi
16385 fi
16386 rm -f confcache
16387
16388 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16389 # Let make expand exec_prefix.
16390 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16391
16392 DEFS=-DHAVE_CONFIG_H
16393
16394 ac_libobjs=
16395 ac_ltlibobjs=
16396 U=
16397 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16398   # 1. Remove the extension, and $U if already installed.
16399   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16400   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16401   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16402   #    will be set to the directory where LIBOBJS objects are built.
16403   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16404   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16405 done
16406 LIBOBJS=$ac_libobjs
16407
16408 LTLIBOBJS=$ac_ltlibobjs
16409
16410
16411  if test -n "$EXEEXT"; then
16412   am__EXEEXT_TRUE=
16413   am__EXEEXT_FALSE='#'
16414 else
16415   am__EXEEXT_TRUE='#'
16416   am__EXEEXT_FALSE=
16417 fi
16418
16419 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16420   as_fn_error $? "conditional \"AMDEP\" was never defined.
16421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16422 fi
16423 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16424   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16426 fi
16427 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16428   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16430 fi
16431 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16432   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16434 fi
16435 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16436   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16438 fi
16439
16440 : ${CONFIG_STATUS=./config.status}
16441 ac_write_fail=0
16442 ac_clean_files_save=$ac_clean_files
16443 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16445 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16446 as_write_fail=0
16447 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16448 #! $SHELL
16449 # Generated by $as_me.
16450 # Run this file to recreate the current configuration.
16451 # Compiler output produced by configure, useful for debugging
16452 # configure, is in config.log if it exists.
16453
16454 debug=false
16455 ac_cs_recheck=false
16456 ac_cs_silent=false
16457
16458 SHELL=\${CONFIG_SHELL-$SHELL}
16459 export SHELL
16460 _ASEOF
16461 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16462 ## -------------------- ##
16463 ## M4sh Initialization. ##
16464 ## -------------------- ##
16465
16466 # Be more Bourne compatible
16467 DUALCASE=1; export DUALCASE # for MKS sh
16468 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16469   emulate sh
16470   NULLCMD=:
16471   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16472   # is contrary to our usage.  Disable this feature.
16473   alias -g '${1+"$@"}'='"$@"'
16474   setopt NO_GLOB_SUBST
16475 else
16476   case `(set -o) 2>/dev/null` in #(
16477   *posix*) :
16478     set -o posix ;; #(
16479   *) :
16480      ;;
16481 esac
16482 fi
16483
16484
16485 as_nl='
16486 '
16487 export as_nl
16488 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16489 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16490 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16491 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16492 # Prefer a ksh shell builtin over an external printf program on Solaris,
16493 # but without wasting forks for bash or zsh.
16494 if test -z "$BASH_VERSION$ZSH_VERSION" \
16495     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16496   as_echo='print -r --'
16497   as_echo_n='print -rn --'
16498 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16499   as_echo='printf %s\n'
16500   as_echo_n='printf %s'
16501 else
16502   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16503     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16504     as_echo_n='/usr/ucb/echo -n'
16505   else
16506     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16507     as_echo_n_body='eval
16508       arg=$1;
16509       case $arg in #(
16510       *"$as_nl"*)
16511         expr "X$arg" : "X\\(.*\\)$as_nl";
16512         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16513       esac;
16514       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16515     '
16516     export as_echo_n_body
16517     as_echo_n='sh -c $as_echo_n_body as_echo'
16518   fi
16519   export as_echo_body
16520   as_echo='sh -c $as_echo_body as_echo'
16521 fi
16522
16523 # The user is always right.
16524 if test "${PATH_SEPARATOR+set}" != set; then
16525   PATH_SEPARATOR=:
16526   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16527     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16528       PATH_SEPARATOR=';'
16529   }
16530 fi
16531
16532
16533 # IFS
16534 # We need space, tab and new line, in precisely that order.  Quoting is
16535 # there to prevent editors from complaining about space-tab.
16536 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16537 # splitting by setting IFS to empty value.)
16538 IFS=" ""        $as_nl"
16539
16540 # Find who we are.  Look in the path if we contain no directory separator.
16541 case $0 in #((
16542   *[\\/]* ) as_myself=$0 ;;
16543   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16544 for as_dir in $PATH
16545 do
16546   IFS=$as_save_IFS
16547   test -z "$as_dir" && as_dir=.
16548     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16549   done
16550 IFS=$as_save_IFS
16551
16552      ;;
16553 esac
16554 # We did not find ourselves, most probably we were run as `sh COMMAND'
16555 # in which case we are not to be found in the path.
16556 if test "x$as_myself" = x; then
16557   as_myself=$0
16558 fi
16559 if test ! -f "$as_myself"; then
16560   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16561   exit 1
16562 fi
16563
16564 # Unset variables that we do not need and which cause bugs (e.g. in
16565 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16566 # suppresses any "Segmentation fault" message there.  '((' could
16567 # trigger a bug in pdksh 5.2.14.
16568 for as_var in BASH_ENV ENV MAIL MAILPATH
16569 do eval test x\${$as_var+set} = xset \
16570   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16571 done
16572 PS1='$ '
16573 PS2='> '
16574 PS4='+ '
16575
16576 # NLS nuisances.
16577 LC_ALL=C
16578 export LC_ALL
16579 LANGUAGE=C
16580 export LANGUAGE
16581
16582 # CDPATH.
16583 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16584
16585
16586 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16587 # ----------------------------------------
16588 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16589 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16590 # script with STATUS, using 1 if that was 0.
16591 as_fn_error ()
16592 {
16593   as_status=$1; test $as_status -eq 0 && as_status=1
16594   if test "$4"; then
16595     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16596     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16597   fi
16598   $as_echo "$as_me: error: $2" >&2
16599   as_fn_exit $as_status
16600 } # as_fn_error
16601
16602
16603 # as_fn_set_status STATUS
16604 # -----------------------
16605 # Set $? to STATUS, without forking.
16606 as_fn_set_status ()
16607 {
16608   return $1
16609 } # as_fn_set_status
16610
16611 # as_fn_exit STATUS
16612 # -----------------
16613 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16614 as_fn_exit ()
16615 {
16616   set +e
16617   as_fn_set_status $1
16618   exit $1
16619 } # as_fn_exit
16620
16621 # as_fn_unset VAR
16622 # ---------------
16623 # Portably unset VAR.
16624 as_fn_unset ()
16625 {
16626   { eval $1=; unset $1;}
16627 }
16628 as_unset=as_fn_unset
16629 # as_fn_append VAR VALUE
16630 # ----------------------
16631 # Append the text in VALUE to the end of the definition contained in VAR. Take
16632 # advantage of any shell optimizations that allow amortized linear growth over
16633 # repeated appends, instead of the typical quadratic growth present in naive
16634 # implementations.
16635 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16636   eval 'as_fn_append ()
16637   {
16638     eval $1+=\$2
16639   }'
16640 else
16641   as_fn_append ()
16642   {
16643     eval $1=\$$1\$2
16644   }
16645 fi # as_fn_append
16646
16647 # as_fn_arith ARG...
16648 # ------------------
16649 # Perform arithmetic evaluation on the ARGs, and store the result in the
16650 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16651 # must be portable across $(()) and expr.
16652 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16653   eval 'as_fn_arith ()
16654   {
16655     as_val=$(( $* ))
16656   }'
16657 else
16658   as_fn_arith ()
16659   {
16660     as_val=`expr "$@" || test $? -eq 1`
16661   }
16662 fi # as_fn_arith
16663
16664
16665 if expr a : '\(a\)' >/dev/null 2>&1 &&
16666    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16667   as_expr=expr
16668 else
16669   as_expr=false
16670 fi
16671
16672 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16673   as_basename=basename
16674 else
16675   as_basename=false
16676 fi
16677
16678 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16679   as_dirname=dirname
16680 else
16681   as_dirname=false
16682 fi
16683
16684 as_me=`$as_basename -- "$0" ||
16685 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16686          X"$0" : 'X\(//\)$' \| \
16687          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16688 $as_echo X/"$0" |
16689     sed '/^.*\/\([^/][^/]*\)\/*$/{
16690             s//\1/
16691             q
16692           }
16693           /^X\/\(\/\/\)$/{
16694             s//\1/
16695             q
16696           }
16697           /^X\/\(\/\).*/{
16698             s//\1/
16699             q
16700           }
16701           s/.*/./; q'`
16702
16703 # Avoid depending upon Character Ranges.
16704 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16705 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16706 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16707 as_cr_digits='0123456789'
16708 as_cr_alnum=$as_cr_Letters$as_cr_digits
16709
16710 ECHO_C= ECHO_N= ECHO_T=
16711 case `echo -n x` in #(((((
16712 -n*)
16713   case `echo 'xy\c'` in
16714   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16715   xy)  ECHO_C='\c';;
16716   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16717        ECHO_T=' ';;
16718   esac;;
16719 *)
16720   ECHO_N='-n';;
16721 esac
16722
16723 rm -f conf$$ conf$$.exe conf$$.file
16724 if test -d conf$$.dir; then
16725   rm -f conf$$.dir/conf$$.file
16726 else
16727   rm -f conf$$.dir
16728   mkdir conf$$.dir 2>/dev/null
16729 fi
16730 if (echo >conf$$.file) 2>/dev/null; then
16731   if ln -s conf$$.file conf$$ 2>/dev/null; then
16732     as_ln_s='ln -s'
16733     # ... but there are two gotchas:
16734     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16735     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16736     # In both cases, we have to default to `cp -p'.
16737     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16738       as_ln_s='cp -p'
16739   elif ln conf$$.file conf$$ 2>/dev/null; then
16740     as_ln_s=ln
16741   else
16742     as_ln_s='cp -p'
16743   fi
16744 else
16745   as_ln_s='cp -p'
16746 fi
16747 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16748 rmdir conf$$.dir 2>/dev/null
16749
16750
16751 # as_fn_mkdir_p
16752 # -------------
16753 # Create "$as_dir" as a directory, including parents if necessary.
16754 as_fn_mkdir_p ()
16755 {
16756
16757   case $as_dir in #(
16758   -*) as_dir=./$as_dir;;
16759   esac
16760   test -d "$as_dir" || eval $as_mkdir_p || {
16761     as_dirs=
16762     while :; do
16763       case $as_dir in #(
16764       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16765       *) as_qdir=$as_dir;;
16766       esac
16767       as_dirs="'$as_qdir' $as_dirs"
16768       as_dir=`$as_dirname -- "$as_dir" ||
16769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16770          X"$as_dir" : 'X\(//\)[^/]' \| \
16771          X"$as_dir" : 'X\(//\)$' \| \
16772          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16773 $as_echo X"$as_dir" |
16774     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16775             s//\1/
16776             q
16777           }
16778           /^X\(\/\/\)[^/].*/{
16779             s//\1/
16780             q
16781           }
16782           /^X\(\/\/\)$/{
16783             s//\1/
16784             q
16785           }
16786           /^X\(\/\).*/{
16787             s//\1/
16788             q
16789           }
16790           s/.*/./; q'`
16791       test -d "$as_dir" && break
16792     done
16793     test -z "$as_dirs" || eval "mkdir $as_dirs"
16794   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16795
16796
16797 } # as_fn_mkdir_p
16798 if mkdir -p . 2>/dev/null; then
16799   as_mkdir_p='mkdir -p "$as_dir"'
16800 else
16801   test -d ./-p && rmdir ./-p
16802   as_mkdir_p=false
16803 fi
16804
16805 if test -x / >/dev/null 2>&1; then
16806   as_test_x='test -x'
16807 else
16808   if ls -dL / >/dev/null 2>&1; then
16809     as_ls_L_option=L
16810   else
16811     as_ls_L_option=
16812   fi
16813   as_test_x='
16814     eval sh -c '\''
16815       if test -d "$1"; then
16816         test -d "$1/.";
16817       else
16818         case $1 in #(
16819         -*)set "./$1";;
16820         esac;
16821         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16822         ???[sx]*):;;*)false;;esac;fi
16823     '\'' sh
16824   '
16825 fi
16826 as_executable_p=$as_test_x
16827
16828 # Sed expression to map a string onto a valid CPP name.
16829 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16830
16831 # Sed expression to map a string onto a valid variable name.
16832 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16833
16834
16835 exec 6>&1
16836 ## ----------------------------------- ##
16837 ## Main body of $CONFIG_STATUS script. ##
16838 ## ----------------------------------- ##
16839 _ASEOF
16840 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16841
16842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16843 # Save the log message, to keep $0 and so on meaningful, and to
16844 # report actual input values of CONFIG_FILES etc. instead of their
16845 # values after options handling.
16846 ac_log="
16847 This file was extended by shibboleth-resolver $as_me 0.3, which was
16848 generated by GNU Autoconf 2.67.  Invocation command line was
16849
16850   CONFIG_FILES    = $CONFIG_FILES
16851   CONFIG_HEADERS  = $CONFIG_HEADERS
16852   CONFIG_LINKS    = $CONFIG_LINKS
16853   CONFIG_COMMANDS = $CONFIG_COMMANDS
16854   $ $0 $@
16855
16856 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16857 "
16858
16859 _ACEOF
16860
16861 case $ac_config_files in *"
16862 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16863 esac
16864
16865 case $ac_config_headers in *"
16866 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16867 esac
16868
16869
16870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16871 # Files that config.status was made for.
16872 config_files="$ac_config_files"
16873 config_headers="$ac_config_headers"
16874 config_commands="$ac_config_commands"
16875
16876 _ACEOF
16877
16878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16879 ac_cs_usage="\
16880 \`$as_me' instantiates files and other configuration actions
16881 from templates according to the current configuration.  Unless the files
16882 and actions are specified as TAGs, all are instantiated by default.
16883
16884 Usage: $0 [OPTION]... [TAG]...
16885
16886   -h, --help       print this help, then exit
16887   -V, --version    print version number and configuration settings, then exit
16888       --config     print configuration, then exit
16889   -q, --quiet, --silent
16890                    do not print progress messages
16891   -d, --debug      don't remove temporary files
16892       --recheck    update $as_me by reconfiguring in the same conditions
16893       --file=FILE[:TEMPLATE]
16894                    instantiate the configuration file FILE
16895       --header=FILE[:TEMPLATE]
16896                    instantiate the configuration header FILE
16897
16898 Configuration files:
16899 $config_files
16900
16901 Configuration headers:
16902 $config_headers
16903
16904 Configuration commands:
16905 $config_commands
16906
16907 Report bugs to <MOONSHOT-COMMUNITY@JISCMAIL.AC.UK>."
16908
16909 _ACEOF
16910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16911 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16912 ac_cs_version="\\
16913 shibboleth-resolver config.status 0.3
16914 configured by $0, generated by GNU Autoconf 2.67,
16915   with options \\"\$ac_cs_config\\"
16916
16917 Copyright (C) 2010 Free Software Foundation, Inc.
16918 This config.status script is free software; the Free Software Foundation
16919 gives unlimited permission to copy, distribute and modify it."
16920
16921 ac_pwd='$ac_pwd'
16922 srcdir='$srcdir'
16923 INSTALL='$INSTALL'
16924 MKDIR_P='$MKDIR_P'
16925 AWK='$AWK'
16926 test -n "\$AWK" || AWK=awk
16927 _ACEOF
16928
16929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16930 # The default lists apply if the user does not specify any file.
16931 ac_need_defaults=:
16932 while test $# != 0
16933 do
16934   case $1 in
16935   --*=?*)
16936     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16937     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16938     ac_shift=:
16939     ;;
16940   --*=)
16941     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16942     ac_optarg=
16943     ac_shift=:
16944     ;;
16945   *)
16946     ac_option=$1
16947     ac_optarg=$2
16948     ac_shift=shift
16949     ;;
16950   esac
16951
16952   case $ac_option in
16953   # Handling of the options.
16954   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16955     ac_cs_recheck=: ;;
16956   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16957     $as_echo "$ac_cs_version"; exit ;;
16958   --config | --confi | --conf | --con | --co | --c )
16959     $as_echo "$ac_cs_config"; exit ;;
16960   --debug | --debu | --deb | --de | --d | -d )
16961     debug=: ;;
16962   --file | --fil | --fi | --f )
16963     $ac_shift
16964     case $ac_optarg in
16965     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16966     '') as_fn_error $? "missing file argument" ;;
16967     esac
16968     as_fn_append CONFIG_FILES " '$ac_optarg'"
16969     ac_need_defaults=false;;
16970   --header | --heade | --head | --hea )
16971     $ac_shift
16972     case $ac_optarg in
16973     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16974     esac
16975     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16976     ac_need_defaults=false;;
16977   --he | --h)
16978     # Conflict between --help and --header
16979     as_fn_error $? "ambiguous option: \`$1'
16980 Try \`$0 --help' for more information.";;
16981   --help | --hel | -h )
16982     $as_echo "$ac_cs_usage"; exit ;;
16983   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16984   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16985     ac_cs_silent=: ;;
16986
16987   # This is an error.
16988   -*) as_fn_error $? "unrecognized option: \`$1'
16989 Try \`$0 --help' for more information." ;;
16990
16991   *) as_fn_append ac_config_targets " $1"
16992      ac_need_defaults=false ;;
16993
16994   esac
16995   shift
16996 done
16997
16998 ac_configure_extra_args=
16999
17000 if $ac_cs_silent; then
17001   exec 6>/dev/null
17002   ac_configure_extra_args="$ac_configure_extra_args --silent"
17003 fi
17004
17005 _ACEOF
17006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17007 if \$ac_cs_recheck; then
17008   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17009   shift
17010   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17011   CONFIG_SHELL='$SHELL'
17012   export CONFIG_SHELL
17013   exec "\$@"
17014 fi
17015
17016 _ACEOF
17017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17018 exec 5>>config.log
17019 {
17020   echo
17021   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17022 ## Running $as_me. ##
17023 _ASBOX
17024   $as_echo "$ac_log"
17025 } >&5
17026
17027 _ACEOF
17028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17029 #
17030 # INIT-COMMANDS
17031 #
17032 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17033
17034
17035 # The HP-UX ksh and POSIX shell print the target directory to stdout
17036 # if CDPATH is set.
17037 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17038
17039 sed_quote_subst='$sed_quote_subst'
17040 double_quote_subst='$double_quote_subst'
17041 delay_variable_subst='$delay_variable_subst'
17042 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17043 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17044 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17045 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17046 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17047 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17048 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17049 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17050 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17051 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17052 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17053 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17054 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17055 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17056 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17057 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17058 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17059 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17060 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17061 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17062 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17063 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17064 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17065 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17066 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17067 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17068 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17069 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17070 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17071 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17072 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17073 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17074 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17075 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17076 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17077 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17078 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17079 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17080 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17081 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17082 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17083 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17084 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17085 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17086 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17087 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17088 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17089 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17090 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17091 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17092 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17093 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17094 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17095 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17096 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17097 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17098 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17099 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17100 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17101 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17102 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17103 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17104 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17105 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17106 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17107 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17108 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17109 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17110 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17111 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17112 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17113 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17114 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17115 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17116 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17117 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17118 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17119 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17120 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17121 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17122 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17123 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17124 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17125 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17126 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17127 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17128 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17129 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17130 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17131 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17132 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17133 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17134 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17135 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17136 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17137 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17138 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17139 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17140 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17141 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17142 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17143 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17144 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17145 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17146 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17147 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17148 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17149 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17150 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17151 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17152 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17153 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17154 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17155 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17156 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17157 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17158 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17159 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17160 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17161 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17162 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17163 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17164 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17165 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17166 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17167 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17168 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17169 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17170 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17171 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17172 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17173 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17174 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17175 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17176 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17177 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17178 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17179 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17180 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17181 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17182 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17183 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17184 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17185 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17186 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17187 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17188 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17189 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17190 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17191 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17192 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17193 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17194 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17195 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17196 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17197 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17198 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17199 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17200 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17201 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17202 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17203 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17204 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17205 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17206 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17207 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17208 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17209 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17210 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17211 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17212 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17213
17214 LTCC='$LTCC'
17215 LTCFLAGS='$LTCFLAGS'
17216 compiler='$compiler_DEFAULT'
17217
17218 # Quote evaled strings.
17219 for var in SED \
17220 GREP \
17221 EGREP \
17222 FGREP \
17223 LD \
17224 NM \
17225 LN_S \
17226 lt_SP2NL \
17227 lt_NL2SP \
17228 reload_flag \
17229 OBJDUMP \
17230 deplibs_check_method \
17231 file_magic_cmd \
17232 AR \
17233 AR_FLAGS \
17234 STRIP \
17235 RANLIB \
17236 CC \
17237 CFLAGS \
17238 compiler \
17239 lt_cv_sys_global_symbol_pipe \
17240 lt_cv_sys_global_symbol_to_cdecl \
17241 lt_cv_sys_global_symbol_to_c_name_address \
17242 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17243 SHELL \
17244 ECHO \
17245 lt_prog_compiler_no_builtin_flag \
17246 lt_prog_compiler_wl \
17247 lt_prog_compiler_pic \
17248 lt_prog_compiler_static \
17249 lt_cv_prog_compiler_c_o \
17250 need_locks \
17251 DSYMUTIL \
17252 NMEDIT \
17253 LIPO \
17254 OTOOL \
17255 OTOOL64 \
17256 shrext_cmds \
17257 export_dynamic_flag_spec \
17258 whole_archive_flag_spec \
17259 compiler_needs_object \
17260 with_gnu_ld \
17261 allow_undefined_flag \
17262 no_undefined_flag \
17263 hardcode_libdir_flag_spec \
17264 hardcode_libdir_flag_spec_ld \
17265 hardcode_libdir_separator \
17266 fix_srcfile_path \
17267 exclude_expsyms \
17268 include_expsyms \
17269 file_list_spec \
17270 variables_saved_for_relink \
17271 libname_spec \
17272 library_names_spec \
17273 soname_spec \
17274 finish_eval \
17275 old_striplib \
17276 striplib \
17277 compiler_lib_search_dirs \
17278 predep_objects \
17279 postdep_objects \
17280 predeps \
17281 postdeps \
17282 compiler_lib_search_path \
17283 LD_CXX \
17284 compiler_CXX \
17285 lt_prog_compiler_no_builtin_flag_CXX \
17286 lt_prog_compiler_wl_CXX \
17287 lt_prog_compiler_pic_CXX \
17288 lt_prog_compiler_static_CXX \
17289 lt_cv_prog_compiler_c_o_CXX \
17290 export_dynamic_flag_spec_CXX \
17291 whole_archive_flag_spec_CXX \
17292 compiler_needs_object_CXX \
17293 with_gnu_ld_CXX \
17294 allow_undefined_flag_CXX \
17295 no_undefined_flag_CXX \
17296 hardcode_libdir_flag_spec_CXX \
17297 hardcode_libdir_flag_spec_ld_CXX \
17298 hardcode_libdir_separator_CXX \
17299 fix_srcfile_path_CXX \
17300 exclude_expsyms_CXX \
17301 include_expsyms_CXX \
17302 file_list_spec_CXX \
17303 compiler_lib_search_dirs_CXX \
17304 predep_objects_CXX \
17305 postdep_objects_CXX \
17306 predeps_CXX \
17307 postdeps_CXX \
17308 compiler_lib_search_path_CXX; do
17309     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17310     *[\\\\\\\`\\"\\\$]*)
17311       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17312       ;;
17313     *)
17314       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17315       ;;
17316     esac
17317 done
17318
17319 # Double-quote double-evaled strings.
17320 for var in reload_cmds \
17321 old_postinstall_cmds \
17322 old_postuninstall_cmds \
17323 old_archive_cmds \
17324 extract_expsyms_cmds \
17325 old_archive_from_new_cmds \
17326 old_archive_from_expsyms_cmds \
17327 archive_cmds \
17328 archive_expsym_cmds \
17329 module_cmds \
17330 module_expsym_cmds \
17331 export_symbols_cmds \
17332 prelink_cmds \
17333 postinstall_cmds \
17334 postuninstall_cmds \
17335 finish_cmds \
17336 sys_lib_search_path_spec \
17337 sys_lib_dlsearch_path_spec \
17338 old_archive_cmds_CXX \
17339 old_archive_from_new_cmds_CXX \
17340 old_archive_from_expsyms_cmds_CXX \
17341 archive_cmds_CXX \
17342 archive_expsym_cmds_CXX \
17343 module_cmds_CXX \
17344 module_expsym_cmds_CXX \
17345 export_symbols_cmds_CXX \
17346 prelink_cmds_CXX; do
17347     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17348     *[\\\\\\\`\\"\\\$]*)
17349       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17350       ;;
17351     *)
17352       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17353       ;;
17354     esac
17355 done
17356
17357 # Fix-up fallback echo if it was mangled by the above quoting rules.
17358 case \$lt_ECHO in
17359 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17360   ;;
17361 esac
17362
17363 ac_aux_dir='$ac_aux_dir'
17364 xsi_shell='$xsi_shell'
17365 lt_shell_append='$lt_shell_append'
17366
17367 # See if we are running on zsh, and set the options which allow our
17368 # commands through without removal of \ escapes INIT.
17369 if test -n "\${ZSH_VERSION+set}" ; then
17370    setopt NO_GLOB_SUBST
17371 fi
17372
17373
17374     PACKAGE='$PACKAGE'
17375     VERSION='$VERSION'
17376     TIMESTAMP='$TIMESTAMP'
17377     RM='$RM'
17378     ofile='$ofile'
17379
17380
17381
17382
17383
17384
17385 _ACEOF
17386
17387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17388
17389 # Handling of arguments.
17390 for ac_config_target in $ac_config_targets
17391 do
17392   case $ac_config_target in
17393     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17394     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17395     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17396     "src/shibresolver/config_pub.h") CONFIG_HEADERS="$CONFIG_HEADERS src/shibresolver/config_pub.h" ;;
17397     "resolver.spec") CONFIG_FILES="$CONFIG_FILES resolver.spec" ;;
17398     "Portfile") CONFIG_FILES="$CONFIG_FILES Portfile" ;;
17399     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17400     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17401     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17402
17403   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
17404   esac
17405 done
17406
17407
17408 # If the user did not use the arguments to specify the items to instantiate,
17409 # then the envvar interface is used.  Set only those that are not.
17410 # We use the long form for the default assignment because of an extremely
17411 # bizarre bug on SunOS 4.1.3.
17412 if $ac_need_defaults; then
17413   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17414   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17415   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17416 fi
17417
17418 # Have a temporary directory for convenience.  Make it in the build tree
17419 # simply because there is no reason against having it here, and in addition,
17420 # creating and moving files from /tmp can sometimes cause problems.
17421 # Hook for its removal unless debugging.
17422 # Note that there is a small window in which the directory will not be cleaned:
17423 # after its creation but before its name has been assigned to `$tmp'.
17424 $debug ||
17425 {
17426   tmp=
17427   trap 'exit_status=$?
17428   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17429 ' 0
17430   trap 'as_fn_exit 1' 1 2 13 15
17431 }
17432 # Create a (secure) tmp directory for tmp files.
17433
17434 {
17435   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17436   test -n "$tmp" && test -d "$tmp"
17437 }  ||
17438 {
17439   tmp=./conf$$-$RANDOM
17440   (umask 077 && mkdir "$tmp")
17441 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17442
17443 # Set up the scripts for CONFIG_FILES section.
17444 # No need to generate them if there are no CONFIG_FILES.
17445 # This happens for instance with `./config.status config.h'.
17446 if test -n "$CONFIG_FILES"; then
17447
17448
17449 ac_cr=`echo X | tr X '\015'`
17450 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17451 # But we know of no other shell where ac_cr would be empty at this
17452 # point, so we can use a bashism as a fallback.
17453 if test "x$ac_cr" = x; then
17454   eval ac_cr=\$\'\\r\'
17455 fi
17456 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17457 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17458   ac_cs_awk_cr='\\r'
17459 else
17460   ac_cs_awk_cr=$ac_cr
17461 fi
17462
17463 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17464 _ACEOF
17465
17466
17467 {
17468   echo "cat >conf$$subs.awk <<_ACEOF" &&
17469   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17470   echo "_ACEOF"
17471 } >conf$$subs.sh ||
17472   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17473 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17474 ac_delim='%!_!# '
17475 for ac_last_try in false false false false false :; do
17476   . ./conf$$subs.sh ||
17477     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17478
17479   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17480   if test $ac_delim_n = $ac_delim_num; then
17481     break
17482   elif $ac_last_try; then
17483     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17484   else
17485     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17486   fi
17487 done
17488 rm -f conf$$subs.sh
17489
17490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17491 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17492 _ACEOF
17493 sed -n '
17494 h
17495 s/^/S["/; s/!.*/"]=/
17496 p
17497 g
17498 s/^[^!]*!//
17499 :repl
17500 t repl
17501 s/'"$ac_delim"'$//
17502 t delim
17503 :nl
17504 h
17505 s/\(.\{148\}\)..*/\1/
17506 t more1
17507 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17508 p
17509 n
17510 b repl
17511 :more1
17512 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17513 p
17514 g
17515 s/.\{148\}//
17516 t nl
17517 :delim
17518 h
17519 s/\(.\{148\}\)..*/\1/
17520 t more2
17521 s/["\\]/\\&/g; s/^/"/; s/$/"/
17522 p
17523 b
17524 :more2
17525 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17526 p
17527 g
17528 s/.\{148\}//
17529 t delim
17530 ' <conf$$subs.awk | sed '
17531 /^[^""]/{
17532   N
17533   s/\n//
17534 }
17535 ' >>$CONFIG_STATUS || ac_write_fail=1
17536 rm -f conf$$subs.awk
17537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17538 _ACAWK
17539 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17540   for (key in S) S_is_set[key] = 1
17541   FS = "\a"
17542
17543 }
17544 {
17545   line = $ 0
17546   nfields = split(line, field, "@")
17547   substed = 0
17548   len = length(field[1])
17549   for (i = 2; i < nfields; i++) {
17550     key = field[i]
17551     keylen = length(key)
17552     if (S_is_set[key]) {
17553       value = S[key]
17554       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17555       len += length(value) + length(field[++i])
17556       substed = 1
17557     } else
17558       len += 1 + keylen
17559   }
17560
17561   print line
17562 }
17563
17564 _ACAWK
17565 _ACEOF
17566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17567 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17568   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17569 else
17570   cat
17571 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17572   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17573 _ACEOF
17574
17575 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17576 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17577 # trailing colons and then remove the whole line if VPATH becomes empty
17578 # (actually we leave an empty line to preserve line numbers).
17579 if test "x$srcdir" = x.; then
17580   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17581 h
17582 s///
17583 s/^/:/
17584 s/[      ]*$/:/
17585 s/:\$(srcdir):/:/g
17586 s/:\${srcdir}:/:/g
17587 s/:@srcdir@:/:/g
17588 s/^:*//
17589 s/:*$//
17590 x
17591 s/\(=[   ]*\).*/\1/
17592 G
17593 s/\n//
17594 s/^[^=]*=[       ]*$//
17595 }'
17596 fi
17597
17598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17599 fi # test -n "$CONFIG_FILES"
17600
17601 # Set up the scripts for CONFIG_HEADERS section.
17602 # No need to generate them if there are no CONFIG_HEADERS.
17603 # This happens for instance with `./config.status Makefile'.
17604 if test -n "$CONFIG_HEADERS"; then
17605 cat >"$tmp/defines.awk" <<\_ACAWK ||
17606 BEGIN {
17607 _ACEOF
17608
17609 # Transform confdefs.h into an awk script `defines.awk', embedded as
17610 # here-document in config.status, that substitutes the proper values into
17611 # config.h.in to produce config.h.
17612
17613 # Create a delimiter string that does not exist in confdefs.h, to ease
17614 # handling of long lines.
17615 ac_delim='%!_!# '
17616 for ac_last_try in false false :; do
17617   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17618   if test -z "$ac_t"; then
17619     break
17620   elif $ac_last_try; then
17621     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17622   else
17623     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17624   fi
17625 done
17626
17627 # For the awk script, D is an array of macro values keyed by name,
17628 # likewise P contains macro parameters if any.  Preserve backslash
17629 # newline sequences.
17630
17631 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17632 sed -n '
17633 s/.\{148\}/&'"$ac_delim"'/g
17634 t rset
17635 :rset
17636 s/^[     ]*#[    ]*define[       ][      ]*/ /
17637 t def
17638 d
17639 :def
17640 s/\\$//
17641 t bsnl
17642 s/["\\]/\\&/g
17643 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17644 D["\1"]=" \3"/p
17645 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17646 d
17647 :bsnl
17648 s/["\\]/\\&/g
17649 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17650 D["\1"]=" \3\\\\\\n"\\/p
17651 t cont
17652 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17653 t cont
17654 d
17655 :cont
17656 n
17657 s/.\{148\}/&'"$ac_delim"'/g
17658 t clear
17659 :clear
17660 s/\\$//
17661 t bsnlc
17662 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17663 d
17664 :bsnlc
17665 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17666 b cont
17667 ' <confdefs.h | sed '
17668 s/'"$ac_delim"'/"\\\
17669 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17670
17671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17672   for (key in D) D_is_set[key] = 1
17673   FS = "\a"
17674 }
17675 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17676   line = \$ 0
17677   split(line, arg, " ")
17678   if (arg[1] == "#") {
17679     defundef = arg[2]
17680     mac1 = arg[3]
17681   } else {
17682     defundef = substr(arg[1], 2)
17683     mac1 = arg[2]
17684   }
17685   split(mac1, mac2, "(") #)
17686   macro = mac2[1]
17687   prefix = substr(line, 1, index(line, defundef) - 1)
17688   if (D_is_set[macro]) {
17689     # Preserve the white space surrounding the "#".
17690     print prefix "define", macro P[macro] D[macro]
17691     next
17692   } else {
17693     # Replace #undef with comments.  This is necessary, for example,
17694     # in the case of _POSIX_SOURCE, which is predefined and required
17695     # on some systems where configure will not decide to define it.
17696     if (defundef == "undef") {
17697       print "/*", prefix defundef, macro, "*/"
17698       next
17699     }
17700   }
17701 }
17702 { print }
17703 _ACAWK
17704 _ACEOF
17705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17706   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17707 fi # test -n "$CONFIG_HEADERS"
17708
17709
17710 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17711 shift
17712 for ac_tag
17713 do
17714   case $ac_tag in
17715   :[FHLC]) ac_mode=$ac_tag; continue;;
17716   esac
17717   case $ac_mode$ac_tag in
17718   :[FHL]*:*);;
17719   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17720   :[FH]-) ac_tag=-:-;;
17721   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17722   esac
17723   ac_save_IFS=$IFS
17724   IFS=:
17725   set x $ac_tag
17726   IFS=$ac_save_IFS
17727   shift
17728   ac_file=$1
17729   shift
17730
17731   case $ac_mode in
17732   :L) ac_source=$1;;
17733   :[FH])
17734     ac_file_inputs=
17735     for ac_f
17736     do
17737       case $ac_f in
17738       -) ac_f="$tmp/stdin";;
17739       *) # Look for the file first in the build tree, then in the source tree
17740          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17741          # because $ac_f cannot contain `:'.
17742          test -f "$ac_f" ||
17743            case $ac_f in
17744            [\\/$]*) false;;
17745            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17746            esac ||
17747            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17748       esac
17749       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17750       as_fn_append ac_file_inputs " '$ac_f'"
17751     done
17752
17753     # Let's still pretend it is `configure' which instantiates (i.e., don't
17754     # use $as_me), people would be surprised to read:
17755     #    /* config.h.  Generated by config.status.  */
17756     configure_input='Generated from '`
17757           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17758         `' by configure.'
17759     if test x"$ac_file" != x-; then
17760       configure_input="$ac_file.  $configure_input"
17761       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17762 $as_echo "$as_me: creating $ac_file" >&6;}
17763     fi
17764     # Neutralize special characters interpreted by sed in replacement strings.
17765     case $configure_input in #(
17766     *\&* | *\|* | *\\* )
17767        ac_sed_conf_input=`$as_echo "$configure_input" |
17768        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17769     *) ac_sed_conf_input=$configure_input;;
17770     esac
17771
17772     case $ac_tag in
17773     *:-:* | *:-) cat >"$tmp/stdin" \
17774       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
17775     esac
17776     ;;
17777   esac
17778
17779   ac_dir=`$as_dirname -- "$ac_file" ||
17780 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17781          X"$ac_file" : 'X\(//\)[^/]' \| \
17782          X"$ac_file" : 'X\(//\)$' \| \
17783          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17784 $as_echo X"$ac_file" |
17785     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17786             s//\1/
17787             q
17788           }
17789           /^X\(\/\/\)[^/].*/{
17790             s//\1/
17791             q
17792           }
17793           /^X\(\/\/\)$/{
17794             s//\1/
17795             q
17796           }
17797           /^X\(\/\).*/{
17798             s//\1/
17799             q
17800           }
17801           s/.*/./; q'`
17802   as_dir="$ac_dir"; as_fn_mkdir_p
17803   ac_builddir=.
17804
17805 case "$ac_dir" in
17806 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17807 *)
17808   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17809   # A ".." for each directory in $ac_dir_suffix.
17810   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17811   case $ac_top_builddir_sub in
17812   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17813   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17814   esac ;;
17815 esac
17816 ac_abs_top_builddir=$ac_pwd
17817 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17818 # for backward compatibility:
17819 ac_top_builddir=$ac_top_build_prefix
17820
17821 case $srcdir in
17822   .)  # We are building in place.
17823     ac_srcdir=.
17824     ac_top_srcdir=$ac_top_builddir_sub
17825     ac_abs_top_srcdir=$ac_pwd ;;
17826   [\\/]* | ?:[\\/]* )  # Absolute name.
17827     ac_srcdir=$srcdir$ac_dir_suffix;
17828     ac_top_srcdir=$srcdir
17829     ac_abs_top_srcdir=$srcdir ;;
17830   *) # Relative name.
17831     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17832     ac_top_srcdir=$ac_top_build_prefix$srcdir
17833     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17834 esac
17835 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17836
17837
17838   case $ac_mode in
17839   :F)
17840   #
17841   # CONFIG_FILE
17842   #
17843
17844   case $INSTALL in
17845   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17846   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17847   esac
17848   ac_MKDIR_P=$MKDIR_P
17849   case $MKDIR_P in
17850   [\\/$]* | ?:[\\/]* ) ;;
17851   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17852   esac
17853 _ACEOF
17854
17855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17856 # If the template does not know about datarootdir, expand it.
17857 # FIXME: This hack should be removed a few years after 2.60.
17858 ac_datarootdir_hack=; ac_datarootdir_seen=
17859 ac_sed_dataroot='
17860 /datarootdir/ {
17861   p
17862   q
17863 }
17864 /@datadir@/p
17865 /@docdir@/p
17866 /@infodir@/p
17867 /@localedir@/p
17868 /@mandir@/p'
17869 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17870 *datarootdir*) ac_datarootdir_seen=yes;;
17871 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17872   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17873 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17874 _ACEOF
17875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17876   ac_datarootdir_hack='
17877   s&@datadir@&$datadir&g
17878   s&@docdir@&$docdir&g
17879   s&@infodir@&$infodir&g
17880   s&@localedir@&$localedir&g
17881   s&@mandir@&$mandir&g
17882   s&\\\${datarootdir}&$datarootdir&g' ;;
17883 esac
17884 _ACEOF
17885
17886 # Neutralize VPATH when `$srcdir' = `.'.
17887 # Shell code in configure.ac might set extrasub.
17888 # FIXME: do we really want to maintain this feature?
17889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17890 ac_sed_extra="$ac_vpsub
17891 $extrasub
17892 _ACEOF
17893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17894 :t
17895 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17896 s|@configure_input@|$ac_sed_conf_input|;t t
17897 s&@top_builddir@&$ac_top_builddir_sub&;t t
17898 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17899 s&@srcdir@&$ac_srcdir&;t t
17900 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17901 s&@top_srcdir@&$ac_top_srcdir&;t t
17902 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17903 s&@builddir@&$ac_builddir&;t t
17904 s&@abs_builddir@&$ac_abs_builddir&;t t
17905 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17906 s&@INSTALL@&$ac_INSTALL&;t t
17907 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17908 $ac_datarootdir_hack
17909 "
17910 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17911   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17912
17913 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17914   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17915   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17916   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17917 which seems to be undefined.  Please make sure it is defined" >&5
17918 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17919 which seems to be undefined.  Please make sure it is defined" >&2;}
17920
17921   rm -f "$tmp/stdin"
17922   case $ac_file in
17923   -) cat "$tmp/out" && rm -f "$tmp/out";;
17924   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17925   esac \
17926   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17927  ;;
17928   :H)
17929   #
17930   # CONFIG_HEADER
17931   #
17932   if test x"$ac_file" != x-; then
17933     {
17934       $as_echo "/* $configure_input  */" \
17935       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17936     } >"$tmp/config.h" \
17937       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17938     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17939       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17940 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17941     else
17942       rm -f "$ac_file"
17943       mv "$tmp/config.h" "$ac_file" \
17944         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17945     fi
17946   else
17947     $as_echo "/* $configure_input  */" \
17948       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17949       || as_fn_error $? "could not create -" "$LINENO" 5
17950   fi
17951 # Compute "$ac_file"'s index in $config_headers.
17952 _am_arg="$ac_file"
17953 _am_stamp_count=1
17954 for _am_header in $config_headers :; do
17955   case $_am_header in
17956     $_am_arg | $_am_arg:* )
17957       break ;;
17958     * )
17959       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17960   esac
17961 done
17962 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17963 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17964          X"$_am_arg" : 'X\(//\)[^/]' \| \
17965          X"$_am_arg" : 'X\(//\)$' \| \
17966          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17967 $as_echo X"$_am_arg" |
17968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17969             s//\1/
17970             q
17971           }
17972           /^X\(\/\/\)[^/].*/{
17973             s//\1/
17974             q
17975           }
17976           /^X\(\/\/\)$/{
17977             s//\1/
17978             q
17979           }
17980           /^X\(\/\).*/{
17981             s//\1/
17982             q
17983           }
17984           s/.*/./; q'`/stamp-h$_am_stamp_count
17985  ;;
17986
17987   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17988 $as_echo "$as_me: executing $ac_file commands" >&6;}
17989  ;;
17990   esac
17991
17992
17993   case $ac_file$ac_mode in
17994     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17995   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17996   # are listed without --file.  Let's play safe and only enable the eval
17997   # if we detect the quoting.
17998   case $CONFIG_FILES in
17999   *\'*) eval set x "$CONFIG_FILES" ;;
18000   *)   set x $CONFIG_FILES ;;
18001   esac
18002   shift
18003   for mf
18004   do
18005     # Strip MF so we end up with the name of the file.
18006     mf=`echo "$mf" | sed -e 's/:.*$//'`
18007     # Check whether this is an Automake generated Makefile or not.
18008     # We used to match only the files named `Makefile.in', but
18009     # some people rename them; so instead we look at the file content.
18010     # Grep'ing the first line is not enough: some people post-process
18011     # each Makefile.in and add a new line on top of each file to say so.
18012     # Grep'ing the whole file is not good either: AIX grep has a line
18013     # limit of 2048, but all sed's we know have understand at least 4000.
18014     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18015       dirpart=`$as_dirname -- "$mf" ||
18016 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18017          X"$mf" : 'X\(//\)[^/]' \| \
18018          X"$mf" : 'X\(//\)$' \| \
18019          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18020 $as_echo X"$mf" |
18021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18022             s//\1/
18023             q
18024           }
18025           /^X\(\/\/\)[^/].*/{
18026             s//\1/
18027             q
18028           }
18029           /^X\(\/\/\)$/{
18030             s//\1/
18031             q
18032           }
18033           /^X\(\/\).*/{
18034             s//\1/
18035             q
18036           }
18037           s/.*/./; q'`
18038     else
18039       continue
18040     fi
18041     # Extract the definition of DEPDIR, am__include, and am__quote
18042     # from the Makefile without running `make'.
18043     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18044     test -z "$DEPDIR" && continue
18045     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18046     test -z "am__include" && continue
18047     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18048     # When using ansi2knr, U may be empty or an underscore; expand it
18049     U=`sed -n 's/^U = //p' < "$mf"`
18050     # Find all dependency output files, they are included files with
18051     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18052     # simplest approach to changing $(DEPDIR) to its actual value in the
18053     # expansion.
18054     for file in `sed -n "
18055       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18056          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18057       # Make sure the directory exists.
18058       test -f "$dirpart/$file" && continue
18059       fdir=`$as_dirname -- "$file" ||
18060 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18061          X"$file" : 'X\(//\)[^/]' \| \
18062          X"$file" : 'X\(//\)$' \| \
18063          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18064 $as_echo X"$file" |
18065     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18066             s//\1/
18067             q
18068           }
18069           /^X\(\/\/\)[^/].*/{
18070             s//\1/
18071             q
18072           }
18073           /^X\(\/\/\)$/{
18074             s//\1/
18075             q
18076           }
18077           /^X\(\/\).*/{
18078             s//\1/
18079             q
18080           }
18081           s/.*/./; q'`
18082       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18083       # echo "creating $dirpart/$file"
18084       echo '# dummy' > "$dirpart/$file"
18085     done
18086   done
18087 }
18088  ;;
18089     "libtool":C)
18090
18091     # See if we are running on zsh, and set the options which allow our
18092     # commands through without removal of \ escapes.
18093     if test -n "${ZSH_VERSION+set}" ; then
18094       setopt NO_GLOB_SUBST
18095     fi
18096
18097     cfgfile="${ofile}T"
18098     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18099     $RM "$cfgfile"
18100
18101     cat <<_LT_EOF >> "$cfgfile"
18102 #! $SHELL
18103
18104 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18105 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18106 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18107 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18108 #
18109 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18110 #                 2006, 2007, 2008 Free Software Foundation, Inc.
18111 #   Written by Gordon Matzigkeit, 1996
18112 #
18113 #   This file is part of GNU Libtool.
18114 #
18115 # GNU Libtool is free software; you can redistribute it and/or
18116 # modify it under the terms of the GNU General Public License as
18117 # published by the Free Software Foundation; either version 2 of
18118 # the License, or (at your option) any later version.
18119 #
18120 # As a special exception to the GNU General Public License,
18121 # if you distribute this file as part of a program or library that
18122 # is built using GNU Libtool, you may include this file under the
18123 # same distribution terms that you use for the rest of that program.
18124 #
18125 # GNU Libtool is distributed in the hope that it will be useful,
18126 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18127 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18128 # GNU General Public License for more details.
18129 #
18130 # You should have received a copy of the GNU General Public License
18131 # along with GNU Libtool; see the file COPYING.  If not, a copy
18132 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18133 # obtained by writing to the Free Software Foundation, Inc.,
18134 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18135
18136
18137 # The names of the tagged configurations supported by this script.
18138 available_tags="CXX "
18139
18140 # ### BEGIN LIBTOOL CONFIG
18141
18142 # Whether or not to build static libraries.
18143 build_old_libs=$enable_static
18144
18145 # Which release of libtool.m4 was used?
18146 macro_version=$macro_version
18147 macro_revision=$macro_revision
18148
18149 # Whether or not to build shared libraries.
18150 build_libtool_libs=$enable_shared
18151
18152 # What type of objects to build.
18153 pic_mode=$pic_mode
18154
18155 # Whether or not to optimize for fast installation.
18156 fast_install=$enable_fast_install
18157
18158 # The host system.
18159 host_alias=$host_alias
18160 host=$host
18161 host_os=$host_os
18162
18163 # The build system.
18164 build_alias=$build_alias
18165 build=$build
18166 build_os=$build_os
18167
18168 # A sed program that does not truncate output.
18169 SED=$lt_SED
18170
18171 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18172 Xsed="\$SED -e 1s/^X//"
18173
18174 # A grep program that handles long lines.
18175 GREP=$lt_GREP
18176
18177 # An ERE matcher.
18178 EGREP=$lt_EGREP
18179
18180 # A literal string matcher.
18181 FGREP=$lt_FGREP
18182
18183 # A BSD- or MS-compatible name lister.
18184 NM=$lt_NM
18185
18186 # Whether we need soft or hard links.
18187 LN_S=$lt_LN_S
18188
18189 # What is the maximum length of a command?
18190 max_cmd_len=$max_cmd_len
18191
18192 # Object file suffix (normally "o").
18193 objext=$ac_objext
18194
18195 # Executable file suffix (normally "").
18196 exeext=$exeext
18197
18198 # whether the shell understands "unset".
18199 lt_unset=$lt_unset
18200
18201 # turn spaces into newlines.
18202 SP2NL=$lt_lt_SP2NL
18203
18204 # turn newlines into spaces.
18205 NL2SP=$lt_lt_NL2SP
18206
18207 # How to create reloadable object files.
18208 reload_flag=$lt_reload_flag
18209 reload_cmds=$lt_reload_cmds
18210
18211 # An object symbol dumper.
18212 OBJDUMP=$lt_OBJDUMP
18213
18214 # Method to check whether dependent libraries are shared objects.
18215 deplibs_check_method=$lt_deplibs_check_method
18216
18217 # Command to use when deplibs_check_method == "file_magic".
18218 file_magic_cmd=$lt_file_magic_cmd
18219
18220 # The archiver.
18221 AR=$lt_AR
18222 AR_FLAGS=$lt_AR_FLAGS
18223
18224 # A symbol stripping program.
18225 STRIP=$lt_STRIP
18226
18227 # Commands used to install an old-style archive.
18228 RANLIB=$lt_RANLIB
18229 old_postinstall_cmds=$lt_old_postinstall_cmds
18230 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18231
18232 # A C compiler.
18233 LTCC=$lt_CC
18234
18235 # LTCC compiler flags.
18236 LTCFLAGS=$lt_CFLAGS
18237
18238 # Take the output of nm and produce a listing of raw symbols and C names.
18239 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18240
18241 # Transform the output of nm in a proper C declaration.
18242 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18243
18244 # Transform the output of nm in a C name address pair.
18245 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18246
18247 # Transform the output of nm in a C name address pair when lib prefix is needed.
18248 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18249
18250 # The name of the directory that contains temporary libtool files.
18251 objdir=$objdir
18252
18253 # Shell to use when invoking shell scripts.
18254 SHELL=$lt_SHELL
18255
18256 # An echo program that does not interpret backslashes.
18257 ECHO=$lt_ECHO
18258
18259 # Used to examine libraries when file_magic_cmd begins with "file".
18260 MAGIC_CMD=$MAGIC_CMD
18261
18262 # Must we lock files when doing compilation?
18263 need_locks=$lt_need_locks
18264
18265 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18266 DSYMUTIL=$lt_DSYMUTIL
18267
18268 # Tool to change global to local symbols on Mac OS X.
18269 NMEDIT=$lt_NMEDIT
18270
18271 # Tool to manipulate fat objects and archives on Mac OS X.
18272 LIPO=$lt_LIPO
18273
18274 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18275 OTOOL=$lt_OTOOL
18276
18277 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18278 OTOOL64=$lt_OTOOL64
18279
18280 # Old archive suffix (normally "a").
18281 libext=$libext
18282
18283 # Shared library suffix (normally ".so").
18284 shrext_cmds=$lt_shrext_cmds
18285
18286 # The commands to extract the exported symbol list from a shared archive.
18287 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18288
18289 # Variables whose values should be saved in libtool wrapper scripts and
18290 # restored at link time.
18291 variables_saved_for_relink=$lt_variables_saved_for_relink
18292
18293 # Do we need the "lib" prefix for modules?
18294 need_lib_prefix=$need_lib_prefix
18295
18296 # Do we need a version for libraries?
18297 need_version=$need_version
18298
18299 # Library versioning type.
18300 version_type=$version_type
18301
18302 # Shared library runtime path variable.
18303 runpath_var=$runpath_var
18304
18305 # Shared library path variable.
18306 shlibpath_var=$shlibpath_var
18307
18308 # Is shlibpath searched before the hard-coded library search path?
18309 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18310
18311 # Format of library name prefix.
18312 libname_spec=$lt_libname_spec
18313
18314 # List of archive names.  First name is the real one, the rest are links.
18315 # The last name is the one that the linker finds with -lNAME
18316 library_names_spec=$lt_library_names_spec
18317
18318 # The coded name of the library, if different from the real name.
18319 soname_spec=$lt_soname_spec
18320
18321 # Command to use after installation of a shared archive.
18322 postinstall_cmds=$lt_postinstall_cmds
18323
18324 # Command to use after uninstallation of a shared archive.
18325 postuninstall_cmds=$lt_postuninstall_cmds
18326
18327 # Commands used to finish a libtool library installation in a directory.
18328 finish_cmds=$lt_finish_cmds
18329
18330 # As "finish_cmds", except a single script fragment to be evaled but
18331 # not shown.
18332 finish_eval=$lt_finish_eval
18333
18334 # Whether we should hardcode library paths into libraries.
18335 hardcode_into_libs=$hardcode_into_libs
18336
18337 # Compile-time system search path for libraries.
18338 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18339
18340 # Run-time system search path for libraries.
18341 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18342
18343 # Whether dlopen is supported.
18344 dlopen_support=$enable_dlopen
18345
18346 # Whether dlopen of programs is supported.
18347 dlopen_self=$enable_dlopen_self
18348
18349 # Whether dlopen of statically linked programs is supported.
18350 dlopen_self_static=$enable_dlopen_self_static
18351
18352 # Commands to strip libraries.
18353 old_striplib=$lt_old_striplib
18354 striplib=$lt_striplib
18355
18356
18357 # The linker used to build libraries.
18358 LD=$lt_LD
18359
18360 # Commands used to build an old-style archive.
18361 old_archive_cmds=$lt_old_archive_cmds
18362
18363 # A language specific compiler.
18364 CC=$lt_compiler
18365
18366 # Is the compiler the GNU compiler?
18367 with_gcc=$GCC
18368
18369 # Compiler flag to turn off builtin functions.
18370 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18371
18372 # How to pass a linker flag through the compiler.
18373 wl=$lt_lt_prog_compiler_wl
18374
18375 # Additional compiler flags for building library objects.
18376 pic_flag=$lt_lt_prog_compiler_pic
18377
18378 # Compiler flag to prevent dynamic linking.
18379 link_static_flag=$lt_lt_prog_compiler_static
18380
18381 # Does compiler simultaneously support -c and -o options?
18382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18383
18384 # Whether or not to add -lc for building shared libraries.
18385 build_libtool_need_lc=$archive_cmds_need_lc
18386
18387 # Whether or not to disallow shared libs when runtime libs are static.
18388 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18389
18390 # Compiler flag to allow reflexive dlopens.
18391 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18392
18393 # Compiler flag to generate shared objects directly from archives.
18394 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18395
18396 # Whether the compiler copes with passing no objects directly.
18397 compiler_needs_object=$lt_compiler_needs_object
18398
18399 # Create an old-style archive from a shared archive.
18400 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18401
18402 # Create a temporary old-style archive to link instead of a shared archive.
18403 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18404
18405 # Commands used to build a shared archive.
18406 archive_cmds=$lt_archive_cmds
18407 archive_expsym_cmds=$lt_archive_expsym_cmds
18408
18409 # Commands used to build a loadable module if different from building
18410 # a shared archive.
18411 module_cmds=$lt_module_cmds
18412 module_expsym_cmds=$lt_module_expsym_cmds
18413
18414 # Whether we are building with GNU ld or not.
18415 with_gnu_ld=$lt_with_gnu_ld
18416
18417 # Flag that allows shared libraries with undefined symbols to be built.
18418 allow_undefined_flag=$lt_allow_undefined_flag
18419
18420 # Flag that enforces no undefined symbols.
18421 no_undefined_flag=$lt_no_undefined_flag
18422
18423 # Flag to hardcode \$libdir into a binary during linking.
18424 # This must work even if \$libdir does not exist
18425 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18426
18427 # If ld is used when linking, flag to hardcode \$libdir into a binary
18428 # during linking.  This must work even if \$libdir does not exist.
18429 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18430
18431 # Whether we need a single "-rpath" flag with a separated argument.
18432 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18433
18434 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18435 # DIR into the resulting binary.
18436 hardcode_direct=$hardcode_direct
18437
18438 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18439 # DIR into the resulting binary and the resulting library dependency is
18440 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18441 # library is relocated.
18442 hardcode_direct_absolute=$hardcode_direct_absolute
18443
18444 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18445 # into the resulting binary.
18446 hardcode_minus_L=$hardcode_minus_L
18447
18448 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18449 # into the resulting binary.
18450 hardcode_shlibpath_var=$hardcode_shlibpath_var
18451
18452 # Set to "yes" if building a shared library automatically hardcodes DIR
18453 # into the library and all subsequent libraries and executables linked
18454 # against it.
18455 hardcode_automatic=$hardcode_automatic
18456
18457 # Set to yes if linker adds runtime paths of dependent libraries
18458 # to runtime path list.
18459 inherit_rpath=$inherit_rpath
18460
18461 # Whether libtool must link a program against all its dependency libraries.
18462 link_all_deplibs=$link_all_deplibs
18463
18464 # Fix the shell variable \$srcfile for the compiler.
18465 fix_srcfile_path=$lt_fix_srcfile_path
18466
18467 # Set to "yes" if exported symbols are required.
18468 always_export_symbols=$always_export_symbols
18469
18470 # The commands to list exported symbols.
18471 export_symbols_cmds=$lt_export_symbols_cmds
18472
18473 # Symbols that should not be listed in the preloaded symbols.
18474 exclude_expsyms=$lt_exclude_expsyms
18475
18476 # Symbols that must always be exported.
18477 include_expsyms=$lt_include_expsyms
18478
18479 # Commands necessary for linking programs (against libraries) with templates.
18480 prelink_cmds=$lt_prelink_cmds
18481
18482 # Specify filename containing input files.
18483 file_list_spec=$lt_file_list_spec
18484
18485 # How to hardcode a shared library path into an executable.
18486 hardcode_action=$hardcode_action
18487
18488 # The directories searched by this compiler when creating a shared library.
18489 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18490
18491 # Dependencies to place before and after the objects being linked to
18492 # create a shared library.
18493 predep_objects=$lt_predep_objects
18494 postdep_objects=$lt_postdep_objects
18495 predeps=$lt_predeps
18496 postdeps=$lt_postdeps
18497
18498 # The library search path used internally by the compiler when linking
18499 # a shared library.
18500 compiler_lib_search_path=$lt_compiler_lib_search_path
18501
18502 # ### END LIBTOOL CONFIG
18503
18504 _LT_EOF
18505
18506   case $host_os in
18507   aix3*)
18508     cat <<\_LT_EOF >> "$cfgfile"
18509 # AIX sometimes has problems with the GCC collect2 program.  For some
18510 # reason, if we set the COLLECT_NAMES environment variable, the problems
18511 # vanish in a puff of smoke.
18512 if test "X${COLLECT_NAMES+set}" != Xset; then
18513   COLLECT_NAMES=
18514   export COLLECT_NAMES
18515 fi
18516 _LT_EOF
18517     ;;
18518   esac
18519
18520
18521 ltmain="$ac_aux_dir/ltmain.sh"
18522
18523
18524   # We use sed instead of cat because bash on DJGPP gets confused if
18525   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18526   # text mode, it properly converts lines to CR/LF.  This bash problem
18527   # is reportedly fixed, but why not run on old versions too?
18528   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18529     || (rm -f "$cfgfile"; exit 1)
18530
18531   case $xsi_shell in
18532   yes)
18533     cat << \_LT_EOF >> "$cfgfile"
18534
18535 # func_dirname file append nondir_replacement
18536 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18537 # otherwise set result to NONDIR_REPLACEMENT.
18538 func_dirname ()
18539 {
18540   case ${1} in
18541     */*) func_dirname_result="${1%/*}${2}" ;;
18542     *  ) func_dirname_result="${3}" ;;
18543   esac
18544 }
18545
18546 # func_basename file
18547 func_basename ()
18548 {
18549   func_basename_result="${1##*/}"
18550 }
18551
18552 # func_dirname_and_basename file append nondir_replacement
18553 # perform func_basename and func_dirname in a single function
18554 # call:
18555 #   dirname:  Compute the dirname of FILE.  If nonempty,
18556 #             add APPEND to the result, otherwise set result
18557 #             to NONDIR_REPLACEMENT.
18558 #             value returned in "$func_dirname_result"
18559 #   basename: Compute filename of FILE.
18560 #             value retuned in "$func_basename_result"
18561 # Implementation must be kept synchronized with func_dirname
18562 # and func_basename. For efficiency, we do not delegate to
18563 # those functions but instead duplicate the functionality here.
18564 func_dirname_and_basename ()
18565 {
18566   case ${1} in
18567     */*) func_dirname_result="${1%/*}${2}" ;;
18568     *  ) func_dirname_result="${3}" ;;
18569   esac
18570   func_basename_result="${1##*/}"
18571 }
18572
18573 # func_stripname prefix suffix name
18574 # strip PREFIX and SUFFIX off of NAME.
18575 # PREFIX and SUFFIX must not contain globbing or regex special
18576 # characters, hashes, percent signs, but SUFFIX may contain a leading
18577 # dot (in which case that matches only a dot).
18578 func_stripname ()
18579 {
18580   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18581   # positional parameters, so assign one to ordinary parameter first.
18582   func_stripname_result=${3}
18583   func_stripname_result=${func_stripname_result#"${1}"}
18584   func_stripname_result=${func_stripname_result%"${2}"}
18585 }
18586
18587 # func_opt_split
18588 func_opt_split ()
18589 {
18590   func_opt_split_opt=${1%%=*}
18591   func_opt_split_arg=${1#*=}
18592 }
18593
18594 # func_lo2o object
18595 func_lo2o ()
18596 {
18597   case ${1} in
18598     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18599     *)    func_lo2o_result=${1} ;;
18600   esac
18601 }
18602
18603 # func_xform libobj-or-source
18604 func_xform ()
18605 {
18606   func_xform_result=${1%.*}.lo
18607 }
18608
18609 # func_arith arithmetic-term...
18610 func_arith ()
18611 {
18612   func_arith_result=$(( $* ))
18613 }
18614
18615 # func_len string
18616 # STRING may not start with a hyphen.
18617 func_len ()
18618 {
18619   func_len_result=${#1}
18620 }
18621
18622 _LT_EOF
18623     ;;
18624   *) # Bourne compatible functions.
18625     cat << \_LT_EOF >> "$cfgfile"
18626
18627 # func_dirname file append nondir_replacement
18628 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18629 # otherwise set result to NONDIR_REPLACEMENT.
18630 func_dirname ()
18631 {
18632   # Extract subdirectory from the argument.
18633   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18634   if test "X$func_dirname_result" = "X${1}"; then
18635     func_dirname_result="${3}"
18636   else
18637     func_dirname_result="$func_dirname_result${2}"
18638   fi
18639 }
18640
18641 # func_basename file
18642 func_basename ()
18643 {
18644   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18645 }
18646
18647
18648 # func_stripname prefix suffix name
18649 # strip PREFIX and SUFFIX off of NAME.
18650 # PREFIX and SUFFIX must not contain globbing or regex special
18651 # characters, hashes, percent signs, but SUFFIX may contain a leading
18652 # dot (in which case that matches only a dot).
18653 # func_strip_suffix prefix name
18654 func_stripname ()
18655 {
18656   case ${2} in
18657     .*) func_stripname_result=`$ECHO "X${3}" \
18658            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18659     *)  func_stripname_result=`$ECHO "X${3}" \
18660            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18661   esac
18662 }
18663
18664 # sed scripts:
18665 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18666 my_sed_long_arg='1s/^-[^=]*=//'
18667
18668 # func_opt_split
18669 func_opt_split ()
18670 {
18671   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18672   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18673 }
18674
18675 # func_lo2o object
18676 func_lo2o ()
18677 {
18678   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18679 }
18680
18681 # func_xform libobj-or-source
18682 func_xform ()
18683 {
18684   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18685 }
18686
18687 # func_arith arithmetic-term...
18688 func_arith ()
18689 {
18690   func_arith_result=`expr "$@"`
18691 }
18692
18693 # func_len string
18694 # STRING may not start with a hyphen.
18695 func_len ()
18696 {
18697   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18698 }
18699
18700 _LT_EOF
18701 esac
18702
18703 case $lt_shell_append in
18704   yes)
18705     cat << \_LT_EOF >> "$cfgfile"
18706
18707 # func_append var value
18708 # Append VALUE to the end of shell variable VAR.
18709 func_append ()
18710 {
18711   eval "$1+=\$2"
18712 }
18713 _LT_EOF
18714     ;;
18715   *)
18716     cat << \_LT_EOF >> "$cfgfile"
18717
18718 # func_append var value
18719 # Append VALUE to the end of shell variable VAR.
18720 func_append ()
18721 {
18722   eval "$1=\$$1\$2"
18723 }
18724
18725 _LT_EOF
18726     ;;
18727   esac
18728
18729
18730   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18731     || (rm -f "$cfgfile"; exit 1)
18732
18733   mv -f "$cfgfile" "$ofile" ||
18734     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18735   chmod +x "$ofile"
18736
18737
18738     cat <<_LT_EOF >> "$ofile"
18739
18740 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18741
18742 # The linker used to build libraries.
18743 LD=$lt_LD_CXX
18744
18745 # Commands used to build an old-style archive.
18746 old_archive_cmds=$lt_old_archive_cmds_CXX
18747
18748 # A language specific compiler.
18749 CC=$lt_compiler_CXX
18750
18751 # Is the compiler the GNU compiler?
18752 with_gcc=$GCC_CXX
18753
18754 # Compiler flag to turn off builtin functions.
18755 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18756
18757 # How to pass a linker flag through the compiler.
18758 wl=$lt_lt_prog_compiler_wl_CXX
18759
18760 # Additional compiler flags for building library objects.
18761 pic_flag=$lt_lt_prog_compiler_pic_CXX
18762
18763 # Compiler flag to prevent dynamic linking.
18764 link_static_flag=$lt_lt_prog_compiler_static_CXX
18765
18766 # Does compiler simultaneously support -c and -o options?
18767 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18768
18769 # Whether or not to add -lc for building shared libraries.
18770 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18771
18772 # Whether or not to disallow shared libs when runtime libs are static.
18773 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18774
18775 # Compiler flag to allow reflexive dlopens.
18776 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18777
18778 # Compiler flag to generate shared objects directly from archives.
18779 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18780
18781 # Whether the compiler copes with passing no objects directly.
18782 compiler_needs_object=$lt_compiler_needs_object_CXX
18783
18784 # Create an old-style archive from a shared archive.
18785 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18786
18787 # Create a temporary old-style archive to link instead of a shared archive.
18788 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18789
18790 # Commands used to build a shared archive.
18791 archive_cmds=$lt_archive_cmds_CXX
18792 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18793
18794 # Commands used to build a loadable module if different from building
18795 # a shared archive.
18796 module_cmds=$lt_module_cmds_CXX
18797 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18798
18799 # Whether we are building with GNU ld or not.
18800 with_gnu_ld=$lt_with_gnu_ld_CXX
18801
18802 # Flag that allows shared libraries with undefined symbols to be built.
18803 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18804
18805 # Flag that enforces no undefined symbols.
18806 no_undefined_flag=$lt_no_undefined_flag_CXX
18807
18808 # Flag to hardcode \$libdir into a binary during linking.
18809 # This must work even if \$libdir does not exist
18810 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18811
18812 # If ld is used when linking, flag to hardcode \$libdir into a binary
18813 # during linking.  This must work even if \$libdir does not exist.
18814 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18815
18816 # Whether we need a single "-rpath" flag with a separated argument.
18817 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18818
18819 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18820 # DIR into the resulting binary.
18821 hardcode_direct=$hardcode_direct_CXX
18822
18823 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18824 # DIR into the resulting binary and the resulting library dependency is
18825 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18826 # library is relocated.
18827 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18828
18829 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18830 # into the resulting binary.
18831 hardcode_minus_L=$hardcode_minus_L_CXX
18832
18833 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18834 # into the resulting binary.
18835 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18836
18837 # Set to "yes" if building a shared library automatically hardcodes DIR
18838 # into the library and all subsequent libraries and executables linked
18839 # against it.
18840 hardcode_automatic=$hardcode_automatic_CXX
18841
18842 # Set to yes if linker adds runtime paths of dependent libraries
18843 # to runtime path list.
18844 inherit_rpath=$inherit_rpath_CXX
18845
18846 # Whether libtool must link a program against all its dependency libraries.
18847 link_all_deplibs=$link_all_deplibs_CXX
18848
18849 # Fix the shell variable \$srcfile for the compiler.
18850 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18851
18852 # Set to "yes" if exported symbols are required.
18853 always_export_symbols=$always_export_symbols_CXX
18854
18855 # The commands to list exported symbols.
18856 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18857
18858 # Symbols that should not be listed in the preloaded symbols.
18859 exclude_expsyms=$lt_exclude_expsyms_CXX
18860
18861 # Symbols that must always be exported.
18862 include_expsyms=$lt_include_expsyms_CXX
18863
18864 # Commands necessary for linking programs (against libraries) with templates.
18865 prelink_cmds=$lt_prelink_cmds_CXX
18866
18867 # Specify filename containing input files.
18868 file_list_spec=$lt_file_list_spec_CXX
18869
18870 # How to hardcode a shared library path into an executable.
18871 hardcode_action=$hardcode_action_CXX
18872
18873 # The directories searched by this compiler when creating a shared library.
18874 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18875
18876 # Dependencies to place before and after the objects being linked to
18877 # create a shared library.
18878 predep_objects=$lt_predep_objects_CXX
18879 postdep_objects=$lt_postdep_objects_CXX
18880 predeps=$lt_predeps_CXX
18881 postdeps=$lt_postdeps_CXX
18882
18883 # The library search path used internally by the compiler when linking
18884 # a shared library.
18885 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18886
18887 # ### END LIBTOOL TAG CONFIG: CXX
18888 _LT_EOF
18889
18890  ;;
18891
18892   esac
18893 done # for ac_tag
18894
18895
18896 as_fn_exit 0
18897 _ACEOF
18898 ac_clean_files=$ac_clean_files_save
18899
18900 test $ac_write_fail = 0 ||
18901   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18902
18903
18904 # configure is writing to config.log, and then calls config.status.
18905 # config.status does its own redirection, appending to config.log.
18906 # Unfortunately, on DOS this fails, as config.log is still kept open
18907 # by configure, so config.status won't be able to write to it; its
18908 # output is simply discarded.  So we exec the FD to /dev/null,
18909 # effectively closing config.log, so it can be properly (re)opened and
18910 # appended to by config.status.  When coming back to configure, we
18911 # need to make the FD available again.
18912 if test "$no_create" != yes; then
18913   ac_cs_success=:
18914   ac_config_status_args=
18915   test "$silent" = yes &&
18916     ac_config_status_args="$ac_config_status_args --quiet"
18917   exec 5>/dev/null
18918   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18919   exec 5>>config.log
18920   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18921   # would make configure fail if this is the last instruction.
18922   $ac_cs_success || as_fn_exit 1
18923 fi
18924 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18925   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18926 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18927 fi
18928