Initialize shib resolver before opensaml
[mech_eap.orig] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for mech_eap 0.1.
4 #
5 # Report bugs to <bugs@project-moonshot.org>.
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: bugs@project-moonshot.org about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: 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='mech_eap'
703 PACKAGE_TARNAME='mech_eap'
704 PACKAGE_VERSION='0.1'
705 PACKAGE_STRING='mech_eap 0.1'
706 PACKAGE_BUGREPORT='bugs@project-moonshot.org'
707 PACKAGE_URL=''
708
709 # Factoring default headers for most tests.
710 ac_includes_default="\
711 #include <stdio.h>
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef STDC_HEADERS
719 # include <stdlib.h>
720 # include <stddef.h>
721 #else
722 # ifdef HAVE_STDLIB_H
723 #  include <stdlib.h>
724 # endif
725 #endif
726 #ifdef HAVE_STRING_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728 #  include <memory.h>
729 # endif
730 # include <string.h>
731 #endif
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
734 #endif
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
737 #endif
738 #ifdef HAVE_STDINT_H
739 # include <stdint.h>
740 #endif
741 #ifdef HAVE_UNISTD_H
742 # include <unistd.h>
743 #endif"
744
745 ac_subst_vars='am__EXEEXT_FALSE
746 am__EXEEXT_TRUE
747 LTLIBOBJS
748 LIBMOONSHOT_FALSE
749 LIBMOONSHOT_TRUE
750 LIBMOONSHOT_LIBS
751 LIBMOONSHOT_LDFLAGS
752 LIBMOONSHOT_CFLAGS
753 JANSSON_LIBS
754 JANSSON_LDFLAGS
755 JANSSON_CFLAGS
756 RADSEC_LIBS
757 RADSEC_LDFLAGS
758 RADSEC_CFLAGS
759 SHIBSP_LIBS
760 SHIBSP_LDFLAGS
761 SHIBSP_CXXFLAGS
762 SHIBRESOLVER_FALSE
763 SHIBRESOLVER_TRUE
764 SHIBRESOLVER_LIBS
765 SHIBRESOLVER_LDFLAGS
766 SHIBRESOLVER_CXXFLAGS
767 OPENSAML_FALSE
768 OPENSAML_TRUE
769 OPENSAML_LIBS
770 OPENSAML_LDFLAGS
771 OPENSAML_CXXFLAGS
772 HEIMDAL_FALSE
773 HEIMDAL_TRUE
774 KRB5_LIBS
775 KRB5_LDFLAGS
776 KRB5_CFLAGS
777 COMPILE_ET
778 TARGET_WINDOWS_FALSE
779 TARGET_WINDOWS_TRUE
780 TARGET_LDFLAGS
781 TARGET_CFLAGS
782 GSSEAP_ENABLE_ACCEPTOR_FALSE
783 GSSEAP_ENABLE_ACCEPTOR_TRUE
784 GSSEAP_ENABLE_REAUTH_FALSE
785 GSSEAP_ENABLE_REAUTH_TRUE
786 LIBOBJS
787 CXXCPP
788 am__fastdepCXX_FALSE
789 am__fastdepCXX_TRUE
790 CXXDEPMODE
791 ac_ct_CXX
792 CXXFLAGS
793 CXX
794 OTOOL64
795 OTOOL
796 LIPO
797 NMEDIT
798 DSYMUTIL
799 lt_ECHO
800 RANLIB
801 AR
802 LN_S
803 NM
804 ac_ct_DUMPBIN
805 DUMPBIN
806 LD
807 FGREP
808 SED
809 host_os
810 host_vendor
811 host_cpu
812 host
813 build_os
814 build_vendor
815 build_cpu
816 build
817 LIBTOOL
818 OBJDUMP
819 DLLTOOL
820 AS
821 MAINT
822 MAINTAINER_MODE_FALSE
823 MAINTAINER_MODE_TRUE
824 am__fastdepCC_FALSE
825 am__fastdepCC_TRUE
826 CCDEPMODE
827 AMDEPBACKSLASH
828 AMDEP_FALSE
829 AMDEP_TRUE
830 am__quote
831 am__include
832 DEPDIR
833 am__untar
834 am__tar
835 AMTAR
836 am__leading_dot
837 SET_MAKE
838 AWK
839 mkdir_p
840 MKDIR_P
841 INSTALL_STRIP_PROGRAM
842 STRIP
843 install_sh
844 MAKEINFO
845 AUTOHEADER
846 AUTOMAKE
847 AUTOCONF
848 ACLOCAL
849 VERSION
850 PACKAGE
851 CYGPATH_W
852 am__isrc
853 INSTALL_DATA
854 INSTALL_SCRIPT
855 INSTALL_PROGRAM
856 EGREP
857 GREP
858 CPP
859 OBJEXT
860 EXEEXT
861 ac_ct_CC
862 CPPFLAGS
863 LDFLAGS
864 CFLAGS
865 CC
866 target_alias
867 host_alias
868 build_alias
869 LIBS
870 ECHO_T
871 ECHO_N
872 ECHO_C
873 DEFS
874 mandir
875 localedir
876 libdir
877 psdir
878 pdfdir
879 dvidir
880 htmldir
881 infodir
882 docdir
883 oldincludedir
884 includedir
885 localstatedir
886 sharedstatedir
887 sysconfdir
888 datadir
889 datarootdir
890 libexecdir
891 sbindir
892 bindir
893 program_transform_name
894 prefix
895 exec_prefix
896 PACKAGE_URL
897 PACKAGE_BUGREPORT
898 PACKAGE_STRING
899 PACKAGE_VERSION
900 PACKAGE_TARNAME
901 PACKAGE_NAME
902 PATH_SEPARATOR
903 SHELL'
904 ac_subst_files=''
905 ac_user_opts='
906 enable_option_checking
907 enable_dependency_tracking
908 enable_maintainer_mode
909 enable_static
910 enable_shared
911 with_pic
912 enable_fast_install
913 with_gnu_ld
914 enable_libtool_lock
915 enable_reauth
916 enable_acceptor
917 with_krb5
918 with_opensaml
919 with_shibresolver
920 with_shibsp
921 with_radsec
922 with_jansson
923 with_libmoonshot
924 '
925       ac_precious_vars='build_alias
926 host_alias
927 target_alias
928 CC
929 CFLAGS
930 LDFLAGS
931 LIBS
932 CPPFLAGS
933 CPP
934 CXX
935 CXXFLAGS
936 CCC
937 CXXCPP'
938
939
940 # Initialize some variables set by options.
941 ac_init_help=
942 ac_init_version=false
943 ac_unrecognized_opts=
944 ac_unrecognized_sep=
945 # The variables have the same names as the options, with
946 # dashes changed to underlines.
947 cache_file=/dev/null
948 exec_prefix=NONE
949 no_create=
950 no_recursion=
951 prefix=NONE
952 program_prefix=NONE
953 program_suffix=NONE
954 program_transform_name=s,x,x,
955 silent=
956 site=
957 srcdir=
958 verbose=
959 x_includes=NONE
960 x_libraries=NONE
961
962 # Installation directory options.
963 # These are left unexpanded so users can "make install exec_prefix=/foo"
964 # and all the variables that are supposed to be based on exec_prefix
965 # by default will actually change.
966 # Use braces instead of parens because sh, perl, etc. also accept them.
967 # (The list follows the same order as the GNU Coding Standards.)
968 bindir='${exec_prefix}/bin'
969 sbindir='${exec_prefix}/sbin'
970 libexecdir='${exec_prefix}/libexec'
971 datarootdir='${prefix}/share'
972 datadir='${datarootdir}'
973 sysconfdir='${prefix}/etc'
974 sharedstatedir='${prefix}/com'
975 localstatedir='${prefix}/var'
976 includedir='${prefix}/include'
977 oldincludedir='/usr/include'
978 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
979 infodir='${datarootdir}/info'
980 htmldir='${docdir}'
981 dvidir='${docdir}'
982 pdfdir='${docdir}'
983 psdir='${docdir}'
984 libdir='${exec_prefix}/lib'
985 localedir='${datarootdir}/locale'
986 mandir='${datarootdir}/man'
987
988 ac_prev=
989 ac_dashdash=
990 for ac_option
991 do
992   # If the previous option needs an argument, assign it.
993   if test -n "$ac_prev"; then
994     eval $ac_prev=\$ac_option
995     ac_prev=
996     continue
997   fi
998
999   case $ac_option in
1000   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001   *=)   ac_optarg= ;;
1002   *)    ac_optarg=yes ;;
1003   esac
1004
1005   # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007   case $ac_dashdash$ac_option in
1008   --)
1009     ac_dashdash=yes ;;
1010
1011   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012     ac_prev=bindir ;;
1013   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014     bindir=$ac_optarg ;;
1015
1016   -build | --build | --buil | --bui | --bu)
1017     ac_prev=build_alias ;;
1018   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019     build_alias=$ac_optarg ;;
1020
1021   -cache-file | --cache-file | --cache-fil | --cache-fi \
1022   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023     ac_prev=cache_file ;;
1024   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026     cache_file=$ac_optarg ;;
1027
1028   --config-cache | -C)
1029     cache_file=config.cache ;;
1030
1031   -datadir | --datadir | --datadi | --datad)
1032     ac_prev=datadir ;;
1033   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034     datadir=$ac_optarg ;;
1035
1036   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037   | --dataroo | --dataro | --datar)
1038     ac_prev=datarootdir ;;
1039   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041     datarootdir=$ac_optarg ;;
1042
1043   -disable-* | --disable-*)
1044     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045     # Reject names that are not valid shell variable names.
1046     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047       as_fn_error $? "invalid feature name: $ac_useropt"
1048     ac_useropt_orig=$ac_useropt
1049     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050     case $ac_user_opts in
1051       *"
1052 "enable_$ac_useropt"
1053 "*) ;;
1054       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055          ac_unrecognized_sep=', ';;
1056     esac
1057     eval enable_$ac_useropt=no ;;
1058
1059   -docdir | --docdir | --docdi | --doc | --do)
1060     ac_prev=docdir ;;
1061   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062     docdir=$ac_optarg ;;
1063
1064   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065     ac_prev=dvidir ;;
1066   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067     dvidir=$ac_optarg ;;
1068
1069   -enable-* | --enable-*)
1070     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071     # Reject names that are not valid shell variable names.
1072     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073       as_fn_error $? "invalid feature name: $ac_useropt"
1074     ac_useropt_orig=$ac_useropt
1075     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076     case $ac_user_opts in
1077       *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081          ac_unrecognized_sep=', ';;
1082     esac
1083     eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087   | --exec | --exe | --ex)
1088     ac_prev=exec_prefix ;;
1089   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091   | --exec=* | --exe=* | --ex=*)
1092     exec_prefix=$ac_optarg ;;
1093
1094   -gas | --gas | --ga | --g)
1095     # Obsolete; use --with-gas.
1096     with_gas=yes ;;
1097
1098   -help | --help | --hel | --he | -h)
1099     ac_init_help=long ;;
1100   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101     ac_init_help=recursive ;;
1102   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103     ac_init_help=short ;;
1104
1105   -host | --host | --hos | --ho)
1106     ac_prev=host_alias ;;
1107   -host=* | --host=* | --hos=* | --ho=*)
1108     host_alias=$ac_optarg ;;
1109
1110   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111     ac_prev=htmldir ;;
1112   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113   | --ht=*)
1114     htmldir=$ac_optarg ;;
1115
1116   -includedir | --includedir | --includedi | --included | --include \
1117   | --includ | --inclu | --incl | --inc)
1118     ac_prev=includedir ;;
1119   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120   | --includ=* | --inclu=* | --incl=* | --inc=*)
1121     includedir=$ac_optarg ;;
1122
1123   -infodir | --infodir | --infodi | --infod | --info | --inf)
1124     ac_prev=infodir ;;
1125   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126     infodir=$ac_optarg ;;
1127
1128   -libdir | --libdir | --libdi | --libd)
1129     ac_prev=libdir ;;
1130   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131     libdir=$ac_optarg ;;
1132
1133   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134   | --libexe | --libex | --libe)
1135     ac_prev=libexecdir ;;
1136   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137   | --libexe=* | --libex=* | --libe=*)
1138     libexecdir=$ac_optarg ;;
1139
1140   -localedir | --localedir | --localedi | --localed | --locale)
1141     ac_prev=localedir ;;
1142   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143     localedir=$ac_optarg ;;
1144
1145   -localstatedir | --localstatedir | --localstatedi | --localstated \
1146   | --localstate | --localstat | --localsta | --localst | --locals)
1147     ac_prev=localstatedir ;;
1148   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150     localstatedir=$ac_optarg ;;
1151
1152   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153     ac_prev=mandir ;;
1154   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155     mandir=$ac_optarg ;;
1156
1157   -nfp | --nfp | --nf)
1158     # Obsolete; use --without-fp.
1159     with_fp=no ;;
1160
1161   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162   | --no-cr | --no-c | -n)
1163     no_create=yes ;;
1164
1165   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167     no_recursion=yes ;;
1168
1169   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171   | --oldin | --oldi | --old | --ol | --o)
1172     ac_prev=oldincludedir ;;
1173   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176     oldincludedir=$ac_optarg ;;
1177
1178   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179     ac_prev=prefix ;;
1180   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181     prefix=$ac_optarg ;;
1182
1183   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184   | --program-pre | --program-pr | --program-p)
1185     ac_prev=program_prefix ;;
1186   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188     program_prefix=$ac_optarg ;;
1189
1190   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191   | --program-suf | --program-su | --program-s)
1192     ac_prev=program_suffix ;;
1193   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195     program_suffix=$ac_optarg ;;
1196
1197   -program-transform-name | --program-transform-name \
1198   | --program-transform-nam | --program-transform-na \
1199   | --program-transform-n | --program-transform- \
1200   | --program-transform | --program-transfor \
1201   | --program-transfo | --program-transf \
1202   | --program-trans | --program-tran \
1203   | --progr-tra | --program-tr | --program-t)
1204     ac_prev=program_transform_name ;;
1205   -program-transform-name=* | --program-transform-name=* \
1206   | --program-transform-nam=* | --program-transform-na=* \
1207   | --program-transform-n=* | --program-transform-=* \
1208   | --program-transform=* | --program-transfor=* \
1209   | --program-transfo=* | --program-transf=* \
1210   | --program-trans=* | --program-tran=* \
1211   | --progr-tra=* | --program-tr=* | --program-t=*)
1212     program_transform_name=$ac_optarg ;;
1213
1214   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215     ac_prev=pdfdir ;;
1216   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217     pdfdir=$ac_optarg ;;
1218
1219   -psdir | --psdir | --psdi | --psd | --ps)
1220     ac_prev=psdir ;;
1221   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222     psdir=$ac_optarg ;;
1223
1224   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225   | -silent | --silent | --silen | --sile | --sil)
1226     silent=yes ;;
1227
1228   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229     ac_prev=sbindir ;;
1230   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231   | --sbi=* | --sb=*)
1232     sbindir=$ac_optarg ;;
1233
1234   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236   | --sharedst | --shareds | --shared | --share | --shar \
1237   | --sha | --sh)
1238     ac_prev=sharedstatedir ;;
1239   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242   | --sha=* | --sh=*)
1243     sharedstatedir=$ac_optarg ;;
1244
1245   -site | --site | --sit)
1246     ac_prev=site ;;
1247   -site=* | --site=* | --sit=*)
1248     site=$ac_optarg ;;
1249
1250   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251     ac_prev=srcdir ;;
1252   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253     srcdir=$ac_optarg ;;
1254
1255   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256   | --syscon | --sysco | --sysc | --sys | --sy)
1257     ac_prev=sysconfdir ;;
1258   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260     sysconfdir=$ac_optarg ;;
1261
1262   -target | --target | --targe | --targ | --tar | --ta | --t)
1263     ac_prev=target_alias ;;
1264   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265     target_alias=$ac_optarg ;;
1266
1267   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268     verbose=yes ;;
1269
1270   -version | --version | --versio | --versi | --vers | -V)
1271     ac_init_version=: ;;
1272
1273   -with-* | --with-*)
1274     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275     # Reject names that are not valid shell variable names.
1276     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277       as_fn_error $? "invalid package name: $ac_useropt"
1278     ac_useropt_orig=$ac_useropt
1279     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280     case $ac_user_opts in
1281       *"
1282 "with_$ac_useropt"
1283 "*) ;;
1284       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285          ac_unrecognized_sep=', ';;
1286     esac
1287     eval with_$ac_useropt=\$ac_optarg ;;
1288
1289   -without-* | --without-*)
1290     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293       as_fn_error $? "invalid package name: $ac_useropt"
1294     ac_useropt_orig=$ac_useropt
1295     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296     case $ac_user_opts in
1297       *"
1298 "with_$ac_useropt"
1299 "*) ;;
1300       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301          ac_unrecognized_sep=', ';;
1302     esac
1303     eval with_$ac_useropt=no ;;
1304
1305   --x)
1306     # Obsolete; use --with-x.
1307     with_x=yes ;;
1308
1309   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310   | --x-incl | --x-inc | --x-in | --x-i)
1311     ac_prev=x_includes ;;
1312   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314     x_includes=$ac_optarg ;;
1315
1316   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318     ac_prev=x_libraries ;;
1319   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321     x_libraries=$ac_optarg ;;
1322
1323   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information"
1325     ;;
1326
1327   *=*)
1328     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329     # Reject names that are not valid shell variable names.
1330     case $ac_envvar in #(
1331       '' | [0-9]* | *[!_$as_cr_alnum]* )
1332       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1333     esac
1334     eval $ac_envvar=\$ac_optarg
1335     export $ac_envvar ;;
1336
1337   *)
1338     # FIXME: should be removed in autoconf 3.0.
1339     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343     ;;
1344
1345   esac
1346 done
1347
1348 if test -n "$ac_prev"; then
1349   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350   as_fn_error $? "missing argument to $ac_option"
1351 fi
1352
1353 if test -n "$ac_unrecognized_opts"; then
1354   case $enable_option_checking in
1355     no) ;;
1356     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1357     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358   esac
1359 fi
1360
1361 # Check all directory arguments for consistency.
1362 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363                 datadir sysconfdir sharedstatedir localstatedir includedir \
1364                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365                 libdir localedir mandir
1366 do
1367   eval ac_val=\$$ac_var
1368   # Remove trailing slashes.
1369   case $ac_val in
1370     */ )
1371       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372       eval $ac_var=\$ac_val;;
1373   esac
1374   # Be sure to have absolute directory names.
1375   case $ac_val in
1376     [\\/$]* | ?:[\\/]* )  continue;;
1377     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378   esac
1379   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1380 done
1381
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1385 build=$build_alias
1386 host=$host_alias
1387 target=$target_alias
1388
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x; then
1391   if test "x$build_alias" = x; then
1392     cross_compiling=maybe
1393     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1394     If a cross compiler is detected then cross compile mode will be used" >&2
1395   elif test "x$build_alias" != "x$host_alias"; then
1396     cross_compiling=yes
1397   fi
1398 fi
1399
1400 ac_tool_prefix=
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403 test "$silent" = yes && exec 6>/dev/null
1404
1405
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409   as_fn_error $? "working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411   as_fn_error $? "pwd does not report name of working directory"
1412
1413
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416   ac_srcdir_defaulted=yes
1417   # Try the directory containing this script, then the parent directory.
1418   ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420          X"$as_myself" : 'X\(//\)[^/]' \| \
1421          X"$as_myself" : 'X\(//\)$' \| \
1422          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425             s//\1/
1426             q
1427           }
1428           /^X\(\/\/\)[^/].*/{
1429             s//\1/
1430             q
1431           }
1432           /^X\(\/\/\)$/{
1433             s//\1/
1434             q
1435           }
1436           /^X\(\/\).*/{
1437             s//\1/
1438             q
1439           }
1440           s/.*/./; q'`
1441   srcdir=$ac_confdir
1442   if test ! -r "$srcdir/$ac_unique_file"; then
1443     srcdir=..
1444   fi
1445 else
1446   ac_srcdir_defaulted=no
1447 fi
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1451 fi
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 ac_abs_confdir=`(
1454         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1455         pwd)`
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458   srcdir=.
1459 fi
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1463 case $srcdir in
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 esac
1466 for ac_var in $ac_precious_vars; do
1467   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468   eval ac_env_${ac_var}_value=\$${ac_var}
1469   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 done
1472
1473 #
1474 # Report the --help message.
1475 #
1476 if test "$ac_init_help" = "long"; then
1477   # Omit some internal or obsolete options to make the list less imposing.
1478   # This message is too long to be a string in the A/UX 3.1 sh.
1479   cat <<_ACEOF
1480 \`configure' configures mech_eap 0.1 to adapt to many kinds of systems.
1481
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE.  See below for descriptions of some of the useful variables.
1486
1487 Defaults for the options are specified in brackets.
1488
1489 Configuration:
1490   -h, --help              display this help and exit
1491       --help=short        display options specific to this package
1492       --help=recursive    display the short help of all the included packages
1493   -V, --version           display version information and exit
1494   -q, --quiet, --silent   do not print \`checking ...' messages
1495       --cache-file=FILE   cache test results in FILE [disabled]
1496   -C, --config-cache      alias for \`--cache-file=config.cache'
1497   -n, --no-create         do not create output files
1498       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1499
1500 Installation directories:
1501   --prefix=PREFIX         install architecture-independent files in PREFIX
1502                           [$ac_default_prefix]
1503   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1504                           [PREFIX]
1505
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1510
1511 For better control, use the options below.
1512
1513 Fine tuning of the installation directories:
1514   --bindir=DIR            user executables [EPREFIX/bin]
1515   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1516   --libexecdir=DIR        program executables [EPREFIX/libexec]
1517   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1518   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1519   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1520   --libdir=DIR            object code libraries [EPREFIX/lib]
1521   --includedir=DIR        C header files [PREFIX/include]
1522   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1523   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1524   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1525   --infodir=DIR           info documentation [DATAROOTDIR/info]
1526   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1527   --mandir=DIR            man documentation [DATAROOTDIR/man]
1528   --docdir=DIR            documentation root [DATAROOTDIR/doc/mech_eap]
1529   --htmldir=DIR           html documentation [DOCDIR]
1530   --dvidir=DIR            dvi documentation [DOCDIR]
1531   --pdfdir=DIR            pdf documentation [DOCDIR]
1532   --psdir=DIR             ps documentation [DOCDIR]
1533 _ACEOF
1534
1535   cat <<\_ACEOF
1536
1537 Program names:
1538   --program-prefix=PREFIX            prepend PREFIX to installed program names
1539   --program-suffix=SUFFIX            append SUFFIX to installed program names
1540   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1541
1542 System types:
1543   --build=BUILD     configure for building on BUILD [guessed]
1544   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1545 _ACEOF
1546 fi
1547
1548 if test -n "$ac_init_help"; then
1549   case $ac_init_help in
1550      short | recursive ) echo "Configuration of mech_eap 0.1:";;
1551    esac
1552   cat <<\_ACEOF
1553
1554 Optional Features:
1555   --disable-option-checking  ignore unrecognized --enable/--with options
1556   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1557   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1558   --disable-dependency-tracking  speeds up one-time build
1559   --enable-dependency-tracking   do not reject slow dependency extractors
1560   --enable-maintainer-mode  enable make rules and dependencies not useful
1561                           (and sometimes confusing) to the casual installer
1562   --enable-static[=PKGS]  build static libraries [default=no]
1563   --enable-shared[=PKGS]  build shared libraries [default=yes]
1564   --enable-fast-install[=PKGS]
1565                           optimize for fast installation [default=yes]
1566   --disable-libtool-lock  avoid locking (might break parallel builds)
1567   --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no
1568   --enable-acceptor whether to enable acceptor codepaths: yes/no; default yes
1569
1570 Optional Packages:
1571   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1572   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1573   --with-pic              try to use only PIC/non-PIC objects [default=use
1574                           both]
1575   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1576   --with-krb5             Use krb5 (in specified installation directory)
1577   --with-opensaml         Use OpenSAML (in specified installation directory)
1578   --with-shibresolver     Use Shibboleth resolver (in specified installation
1579                           directory)
1580   --with-shibsp           Use shibspboleth (in specified installation
1581                           directory)
1582   --with-radsec           Use radsec (in specified installation directory)
1583   --with-jansson          Use jansson (in specified installation directory)
1584   --with-libmoonshot      Use libmoonshot (in specified installation
1585                           directory)
1586
1587 Some influential environment variables:
1588   CC          C compiler command
1589   CFLAGS      C compiler flags
1590   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1591               nonstandard directory <lib dir>
1592   LIBS        libraries to pass to the linker, e.g. -l<library>
1593   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1594               you have headers in a nonstandard directory <include dir>
1595   CPP         C preprocessor
1596   CXX         C++ compiler command
1597   CXXFLAGS    C++ compiler flags
1598   CXXCPP      C++ preprocessor
1599
1600 Use these variables to override the choices made by `configure' or to help
1601 it to find libraries and programs with nonstandard names/locations.
1602
1603 Report bugs to <bugs@project-moonshot.org>.
1604 _ACEOF
1605 ac_status=$?
1606 fi
1607
1608 if test "$ac_init_help" = "recursive"; then
1609   # If there are subdirs, report their specific --help.
1610   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1611     test -d "$ac_dir" ||
1612       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1613       continue
1614     ac_builddir=.
1615
1616 case "$ac_dir" in
1617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *)
1619   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1620   # A ".." for each directory in $ac_dir_suffix.
1621   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1622   case $ac_top_builddir_sub in
1623   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625   esac ;;
1626 esac
1627 ac_abs_top_builddir=$ac_pwd
1628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629 # for backward compatibility:
1630 ac_top_builddir=$ac_top_build_prefix
1631
1632 case $srcdir in
1633   .)  # We are building in place.
1634     ac_srcdir=.
1635     ac_top_srcdir=$ac_top_builddir_sub
1636     ac_abs_top_srcdir=$ac_pwd ;;
1637   [\\/]* | ?:[\\/]* )  # Absolute name.
1638     ac_srcdir=$srcdir$ac_dir_suffix;
1639     ac_top_srcdir=$srcdir
1640     ac_abs_top_srcdir=$srcdir ;;
1641   *) # Relative name.
1642     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643     ac_top_srcdir=$ac_top_build_prefix$srcdir
1644     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645 esac
1646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647
1648     cd "$ac_dir" || { ac_status=$?; continue; }
1649     # Check for guested configure.
1650     if test -f "$ac_srcdir/configure.gnu"; then
1651       echo &&
1652       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653     elif test -f "$ac_srcdir/configure"; then
1654       echo &&
1655       $SHELL "$ac_srcdir/configure" --help=recursive
1656     else
1657       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658     fi || ac_status=$?
1659     cd "$ac_pwd" || { ac_status=$?; break; }
1660   done
1661 fi
1662
1663 test -n "$ac_init_help" && exit $ac_status
1664 if $ac_init_version; then
1665   cat <<\_ACEOF
1666 mech_eap configure 0.1
1667 generated by GNU Autoconf 2.67
1668
1669 Copyright (C) 2010 Free Software Foundation, Inc.
1670 This configure script is free software; the Free Software Foundation
1671 gives unlimited permission to copy, distribute and modify it.
1672 _ACEOF
1673   exit
1674 fi
1675
1676 ## ------------------------ ##
1677 ## Autoconf initialization. ##
1678 ## ------------------------ ##
1679
1680 # ac_fn_c_try_compile LINENO
1681 # --------------------------
1682 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_compile ()
1684 {
1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686   rm -f conftest.$ac_objext
1687   if { { ac_try="$ac_compile"
1688 case "(($ac_try" in
1689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690   *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694   (eval "$ac_compile") 2>conftest.err
1695   ac_status=$?
1696   if test -s conftest.err; then
1697     grep -v '^ *+' conftest.err >conftest.er1
1698     cat conftest.er1 >&5
1699     mv -f conftest.er1 conftest.err
1700   fi
1701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; } && {
1703          test -z "$ac_c_werror_flag" ||
1704          test ! -s conftest.err
1705        } && test -s conftest.$ac_objext; then :
1706   ac_retval=0
1707 else
1708   $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711         ac_retval=1
1712 fi
1713   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1714   as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_compile
1717
1718 # ac_fn_c_try_cpp LINENO
1719 # ----------------------
1720 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_cpp ()
1722 {
1723   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724   if { { ac_try="$ac_cpp conftest.$ac_ext"
1725 case "(($ac_try" in
1726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727   *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1732   ac_status=$?
1733   if test -s conftest.err; then
1734     grep -v '^ *+' conftest.err >conftest.er1
1735     cat conftest.er1 >&5
1736     mv -f conftest.er1 conftest.err
1737   fi
1738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739   test $ac_status = 0; } > conftest.i && {
1740          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1741          test ! -s conftest.err
1742        }; then :
1743   ac_retval=0
1744 else
1745   $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748     ac_retval=1
1749 fi
1750   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751   as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_cpp
1754
1755 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1756 # -------------------------------------------------------
1757 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1758 # the include files in INCLUDES and setting the cache variable VAR
1759 # accordingly.
1760 ac_fn_c_check_header_mongrel ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   if eval "test \"\${$3+set}\"" = set; then :
1764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval "test \"\${$3+set}\"" = set; then :
1767   $as_echo_n "(cached) " >&6
1768 fi
1769 eval ac_res=\$$3
1770                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772 else
1773   # Is the header compilable?
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1775 $as_echo_n "checking $2 usability... " >&6; }
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h.  */
1778 $4
1779 #include <$2>
1780 _ACEOF
1781 if ac_fn_c_try_compile "$LINENO"; then :
1782   ac_header_compiler=yes
1783 else
1784   ac_header_compiler=no
1785 fi
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1788 $as_echo "$ac_header_compiler" >&6; }
1789
1790 # Is the header present?
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1792 $as_echo_n "checking $2 presence... " >&6; }
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h.  */
1795 #include <$2>
1796 _ACEOF
1797 if ac_fn_c_try_cpp "$LINENO"; then :
1798   ac_header_preproc=yes
1799 else
1800   ac_header_preproc=no
1801 fi
1802 rm -f conftest.err conftest.i conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1804 $as_echo "$ac_header_preproc" >&6; }
1805
1806 # So?  What about this header?
1807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1808   yes:no: )
1809     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1810 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1811     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1812 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1813     ;;
1814   no:yes:* )
1815     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1816 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1817     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1818 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1819     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1820 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1821     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1822 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1823     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1824 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1825 ( $as_echo "## ---------------------------------------- ##
1826 ## Report this to bugs@project-moonshot.org ##
1827 ## ---------------------------------------- ##"
1828      ) | sed "s/^/$as_me: WARNING:     /" >&2
1829     ;;
1830 esac
1831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval "test \"\${$3+set}\"" = set; then :
1834   $as_echo_n "(cached) " >&6
1835 else
1836   eval "$3=\$ac_header_compiler"
1837 fi
1838 eval ac_res=\$$3
1839                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 fi
1842   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843
1844 } # ac_fn_c_check_header_mongrel
1845
1846 # ac_fn_c_try_run LINENO
1847 # ----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1849 # that executables *can* be run.
1850 ac_fn_c_try_run ()
1851 {
1852   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853   if { { ac_try="$ac_link"
1854 case "(($ac_try" in
1855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856   *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860   (eval "$ac_link") 2>&5
1861   ac_status=$?
1862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1864   { { case "(($ac_try" in
1865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866   *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870   (eval "$ac_try") 2>&5
1871   ac_status=$?
1872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873   test $ac_status = 0; }; }; then :
1874   ac_retval=0
1875 else
1876   $as_echo "$as_me: program exited with status $ac_status" >&5
1877        $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880        ac_retval=$ac_status
1881 fi
1882   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884   as_fn_set_status $ac_retval
1885
1886 } # ac_fn_c_try_run
1887
1888 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1889 # -------------------------------------------------------
1890 # Tests whether HEADER exists and can be compiled using the include files in
1891 # INCLUDES, setting the cache variable VAR accordingly.
1892 ac_fn_c_check_header_compile ()
1893 {
1894   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval "test \"\${$3+set}\"" = set; then :
1898   $as_echo_n "(cached) " >&6
1899 else
1900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h.  */
1902 $4
1903 #include <$2>
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906   eval "$3=yes"
1907 else
1908   eval "$3=no"
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 fi
1912 eval ac_res=\$$3
1913                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916
1917 } # ac_fn_c_check_header_compile
1918
1919 # ac_fn_c_try_link LINENO
1920 # -----------------------
1921 # Try to link conftest.$ac_ext, and return whether this succeeded.
1922 ac_fn_c_try_link ()
1923 {
1924   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925   rm -f conftest.$ac_objext conftest$ac_exeext
1926   if { { ac_try="$ac_link"
1927 case "(($ac_try" in
1928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929   *) ac_try_echo=$ac_try;;
1930 esac
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 $as_echo "$ac_try_echo"; } >&5
1933   (eval "$ac_link") 2>conftest.err
1934   ac_status=$?
1935   if test -s conftest.err; then
1936     grep -v '^ *+' conftest.err >conftest.er1
1937     cat conftest.er1 >&5
1938     mv -f conftest.er1 conftest.err
1939   fi
1940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941   test $ac_status = 0; } && {
1942          test -z "$ac_c_werror_flag" ||
1943          test ! -s conftest.err
1944        } && test -s conftest$ac_exeext && {
1945          test "$cross_compiling" = yes ||
1946          $as_test_x conftest$ac_exeext
1947        }; then :
1948   ac_retval=0
1949 else
1950   $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1952
1953         ac_retval=1
1954 fi
1955   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1956   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1957   # interfere with the next link command; also delete a directory that is
1958   # left behind by Apple's compiler.  We do this before executing the actions.
1959   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1960   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1961   as_fn_set_status $ac_retval
1962
1963 } # ac_fn_c_try_link
1964
1965 # ac_fn_c_check_func LINENO FUNC VAR
1966 # ----------------------------------
1967 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1968 ac_fn_c_check_func ()
1969 {
1970   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1972 $as_echo_n "checking for $2... " >&6; }
1973 if eval "test \"\${$3+set}\"" = set; then :
1974   $as_echo_n "(cached) " >&6
1975 else
1976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h.  */
1978 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1980 #define $2 innocuous_$2
1981
1982 /* System header to define __stub macros and hopefully few prototypes,
1983     which can conflict with char $2 (); below.
1984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1985     <limits.h> exists even on freestanding compilers.  */
1986
1987 #ifdef __STDC__
1988 # include <limits.h>
1989 #else
1990 # include <assert.h>
1991 #endif
1992
1993 #undef $2
1994
1995 /* Override any GCC internal prototype to avoid an error.
1996    Use char because int might match the return type of a GCC
1997    builtin and then its argument prototype would still apply.  */
1998 #ifdef __cplusplus
1999 extern "C"
2000 #endif
2001 char $2 ();
2002 /* The GNU C library defines this for functions which it implements
2003     to always fail with ENOSYS.  Some functions are actually named
2004     something starting with __ and the normal name is an alias.  */
2005 #if defined __stub_$2 || defined __stub___$2
2006 choke me
2007 #endif
2008
2009 int
2010 main ()
2011 {
2012 return $2 ();
2013   ;
2014   return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_link "$LINENO"; then :
2018   eval "$3=yes"
2019 else
2020   eval "$3=no"
2021 fi
2022 rm -f core conftest.err conftest.$ac_objext \
2023     conftest$ac_exeext conftest.$ac_ext
2024 fi
2025 eval ac_res=\$$3
2026                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029
2030 } # ac_fn_c_check_func
2031
2032 # ac_fn_cxx_try_compile LINENO
2033 # ----------------------------
2034 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2035 ac_fn_cxx_try_compile ()
2036 {
2037   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038   rm -f conftest.$ac_objext
2039   if { { ac_try="$ac_compile"
2040 case "(($ac_try" in
2041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042   *) ac_try_echo=$ac_try;;
2043 esac
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046   (eval "$ac_compile") 2>conftest.err
2047   ac_status=$?
2048   if test -s conftest.err; then
2049     grep -v '^ *+' conftest.err >conftest.er1
2050     cat conftest.er1 >&5
2051     mv -f conftest.er1 conftest.err
2052   fi
2053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054   test $ac_status = 0; } && {
2055          test -z "$ac_cxx_werror_flag" ||
2056          test ! -s conftest.err
2057        } && test -s conftest.$ac_objext; then :
2058   ac_retval=0
2059 else
2060   $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2062
2063         ac_retval=1
2064 fi
2065   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066   as_fn_set_status $ac_retval
2067
2068 } # ac_fn_cxx_try_compile
2069
2070 # ac_fn_cxx_try_cpp LINENO
2071 # ------------------------
2072 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2073 ac_fn_cxx_try_cpp ()
2074 {
2075   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076   if { { ac_try="$ac_cpp conftest.$ac_ext"
2077 case "(($ac_try" in
2078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079   *) ac_try_echo=$ac_try;;
2080 esac
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2084   ac_status=$?
2085   if test -s conftest.err; then
2086     grep -v '^ *+' conftest.err >conftest.er1
2087     cat conftest.er1 >&5
2088     mv -f conftest.er1 conftest.err
2089   fi
2090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091   test $ac_status = 0; } > conftest.i && {
2092          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2093          test ! -s conftest.err
2094        }; then :
2095   ac_retval=0
2096 else
2097   $as_echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2099
2100     ac_retval=1
2101 fi
2102   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103   as_fn_set_status $ac_retval
2104
2105 } # ac_fn_cxx_try_cpp
2106
2107 # ac_fn_cxx_try_link LINENO
2108 # -------------------------
2109 # Try to link conftest.$ac_ext, and return whether this succeeded.
2110 ac_fn_cxx_try_link ()
2111 {
2112   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113   rm -f conftest.$ac_objext conftest$ac_exeext
2114   if { { ac_try="$ac_link"
2115 case "(($ac_try" in
2116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117   *) ac_try_echo=$ac_try;;
2118 esac
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121   (eval "$ac_link") 2>conftest.err
2122   ac_status=$?
2123   if test -s conftest.err; then
2124     grep -v '^ *+' conftest.err >conftest.er1
2125     cat conftest.er1 >&5
2126     mv -f conftest.er1 conftest.err
2127   fi
2128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129   test $ac_status = 0; } && {
2130          test -z "$ac_cxx_werror_flag" ||
2131          test ! -s conftest.err
2132        } && test -s conftest$ac_exeext && {
2133          test "$cross_compiling" = yes ||
2134          $as_test_x conftest$ac_exeext
2135        }; then :
2136   ac_retval=0
2137 else
2138   $as_echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2140
2141         ac_retval=1
2142 fi
2143   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2144   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2145   # interfere with the next link command; also delete a directory that is
2146   # left behind by Apple's compiler.  We do this before executing the actions.
2147   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2148   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2149   as_fn_set_status $ac_retval
2150
2151 } # ac_fn_cxx_try_link
2152 cat >config.log <<_ACEOF
2153 This file contains any messages produced by compilers while
2154 running configure, to aid debugging if configure makes a mistake.
2155
2156 It was created by mech_eap $as_me 0.1, which was
2157 generated by GNU Autoconf 2.67.  Invocation command line was
2158
2159   $ $0 $@
2160
2161 _ACEOF
2162 exec 5>>config.log
2163 {
2164 cat <<_ASUNAME
2165 ## --------- ##
2166 ## Platform. ##
2167 ## --------- ##
2168
2169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2174
2175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2176 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2177
2178 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2179 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2181 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2182 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2183 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2184 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2185
2186 _ASUNAME
2187
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 for as_dir in $PATH
2190 do
2191   IFS=$as_save_IFS
2192   test -z "$as_dir" && as_dir=.
2193     $as_echo "PATH: $as_dir"
2194   done
2195 IFS=$as_save_IFS
2196
2197 } >&5
2198
2199 cat >&5 <<_ACEOF
2200
2201
2202 ## ----------- ##
2203 ## Core tests. ##
2204 ## ----------- ##
2205
2206 _ACEOF
2207
2208
2209 # Keep a trace of the command line.
2210 # Strip out --no-create and --no-recursion so they do not pile up.
2211 # Strip out --silent because we don't want to record it for future runs.
2212 # Also quote any args containing shell meta-characters.
2213 # Make two passes to allow for proper duplicate-argument suppression.
2214 ac_configure_args=
2215 ac_configure_args0=
2216 ac_configure_args1=
2217 ac_must_keep_next=false
2218 for ac_pass in 1 2
2219 do
2220   for ac_arg
2221   do
2222     case $ac_arg in
2223     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2224     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2225     | -silent | --silent | --silen | --sile | --sil)
2226       continue ;;
2227     *\'*)
2228       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2229     esac
2230     case $ac_pass in
2231     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2232     2)
2233       as_fn_append ac_configure_args1 " '$ac_arg'"
2234       if test $ac_must_keep_next = true; then
2235         ac_must_keep_next=false # Got value, back to normal.
2236       else
2237         case $ac_arg in
2238           *=* | --config-cache | -C | -disable-* | --disable-* \
2239           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2240           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2241           | -with-* | --with-* | -without-* | --without-* | --x)
2242             case "$ac_configure_args0 " in
2243               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2244             esac
2245             ;;
2246           -* ) ac_must_keep_next=true ;;
2247         esac
2248       fi
2249       as_fn_append ac_configure_args " '$ac_arg'"
2250       ;;
2251     esac
2252   done
2253 done
2254 { ac_configure_args0=; unset ac_configure_args0;}
2255 { ac_configure_args1=; unset ac_configure_args1;}
2256
2257 # When interrupted or exit'd, cleanup temporary files, and complete
2258 # config.log.  We remove comments because anyway the quotes in there
2259 # would cause problems or look ugly.
2260 # WARNING: Use '\'' to represent an apostrophe within the trap.
2261 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2262 trap 'exit_status=$?
2263   # Save into config.log some information that might help in debugging.
2264   {
2265     echo
2266
2267     $as_echo "## ---------------- ##
2268 ## Cache variables. ##
2269 ## ---------------- ##"
2270     echo
2271     # The following way of writing the cache mishandles newlines in values,
2272 (
2273   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2274     eval ac_val=\$$ac_var
2275     case $ac_val in #(
2276     *${as_nl}*)
2277       case $ac_var in #(
2278       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2279 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2280       esac
2281       case $ac_var in #(
2282       _ | IFS | as_nl) ;; #(
2283       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2284       *) { eval $ac_var=; unset $ac_var;} ;;
2285       esac ;;
2286     esac
2287   done
2288   (set) 2>&1 |
2289     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2290     *${as_nl}ac_space=\ *)
2291       sed -n \
2292         "s/'\''/'\''\\\\'\'''\''/g;
2293           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2294       ;; #(
2295     *)
2296       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2297       ;;
2298     esac |
2299     sort
2300 )
2301     echo
2302
2303     $as_echo "## ----------------- ##
2304 ## Output variables. ##
2305 ## ----------------- ##"
2306     echo
2307     for ac_var in $ac_subst_vars
2308     do
2309       eval ac_val=\$$ac_var
2310       case $ac_val in
2311       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2312       esac
2313       $as_echo "$ac_var='\''$ac_val'\''"
2314     done | sort
2315     echo
2316
2317     if test -n "$ac_subst_files"; then
2318       $as_echo "## ------------------- ##
2319 ## File substitutions. ##
2320 ## ------------------- ##"
2321       echo
2322       for ac_var in $ac_subst_files
2323       do
2324         eval ac_val=\$$ac_var
2325         case $ac_val in
2326         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2327         esac
2328         $as_echo "$ac_var='\''$ac_val'\''"
2329       done | sort
2330       echo
2331     fi
2332
2333     if test -s confdefs.h; then
2334       $as_echo "## ----------- ##
2335 ## confdefs.h. ##
2336 ## ----------- ##"
2337       echo
2338       cat confdefs.h
2339       echo
2340     fi
2341     test "$ac_signal" != 0 &&
2342       $as_echo "$as_me: caught signal $ac_signal"
2343     $as_echo "$as_me: exit $exit_status"
2344   } >&5
2345   rm -f core *.core core.conftest.* &&
2346     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2347     exit $exit_status
2348 ' 0
2349 for ac_signal in 1 2 13 15; do
2350   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2351 done
2352 ac_signal=0
2353
2354 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2355 rm -f -r conftest* confdefs.h
2356
2357 $as_echo "/* confdefs.h */" > confdefs.h
2358
2359 # Predefined preprocessor variables.
2360
2361 cat >>confdefs.h <<_ACEOF
2362 #define PACKAGE_NAME "$PACKAGE_NAME"
2363 _ACEOF
2364
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2367 _ACEOF
2368
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2371 _ACEOF
2372
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_STRING "$PACKAGE_STRING"
2375 _ACEOF
2376
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2379 _ACEOF
2380
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_URL "$PACKAGE_URL"
2383 _ACEOF
2384
2385
2386 # Let the site file select an alternate cache file if it wants to.
2387 # Prefer an explicitly selected file to automatically selected ones.
2388 ac_site_file1=NONE
2389 ac_site_file2=NONE
2390 if test -n "$CONFIG_SITE"; then
2391   # We do not want a PATH search for config.site.
2392   case $CONFIG_SITE in #((
2393     -*)  ac_site_file1=./$CONFIG_SITE;;
2394     */*) ac_site_file1=$CONFIG_SITE;;
2395     *)   ac_site_file1=./$CONFIG_SITE;;
2396   esac
2397 elif test "x$prefix" != xNONE; then
2398   ac_site_file1=$prefix/share/config.site
2399   ac_site_file2=$prefix/etc/config.site
2400 else
2401   ac_site_file1=$ac_default_prefix/share/config.site
2402   ac_site_file2=$ac_default_prefix/etc/config.site
2403 fi
2404 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2405 do
2406   test "x$ac_site_file" = xNONE && continue
2407   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2408     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2409 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2410     sed 's/^/| /' "$ac_site_file" >&5
2411     . "$ac_site_file" \
2412       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2414 as_fn_error $? "failed to load site script $ac_site_file
2415 See \`config.log' for more details" "$LINENO" 5 ; }
2416   fi
2417 done
2418
2419 if test -r "$cache_file"; then
2420   # Some versions of bash will fail to source /dev/null (special files
2421   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2422   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2423     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2424 $as_echo "$as_me: loading cache $cache_file" >&6;}
2425     case $cache_file in
2426       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2427       *)                      . "./$cache_file";;
2428     esac
2429   fi
2430 else
2431   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2432 $as_echo "$as_me: creating cache $cache_file" >&6;}
2433   >$cache_file
2434 fi
2435
2436 # Check that the precious variables saved in the cache have kept the same
2437 # value.
2438 ac_cache_corrupted=false
2439 for ac_var in $ac_precious_vars; do
2440   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2441   eval ac_new_set=\$ac_env_${ac_var}_set
2442   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2443   eval ac_new_val=\$ac_env_${ac_var}_value
2444   case $ac_old_set,$ac_new_set in
2445     set,)
2446       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2447 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2448       ac_cache_corrupted=: ;;
2449     ,set)
2450       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2451 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2452       ac_cache_corrupted=: ;;
2453     ,);;
2454     *)
2455       if test "x$ac_old_val" != "x$ac_new_val"; then
2456         # differences in whitespace do not lead to failure.
2457         ac_old_val_w=`echo x $ac_old_val`
2458         ac_new_val_w=`echo x $ac_new_val`
2459         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2460           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2461 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2462           ac_cache_corrupted=:
2463         else
2464           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2465 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2466           eval $ac_var=\$ac_old_val
2467         fi
2468         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2469 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2470         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2471 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2472       fi;;
2473   esac
2474   # Pass precious variables to config.status.
2475   if test "$ac_new_set" = set; then
2476     case $ac_new_val in
2477     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2478     *) ac_arg=$ac_var=$ac_new_val ;;
2479     esac
2480     case " $ac_configure_args " in
2481       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2482       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2483     esac
2484   fi
2485 done
2486 if $ac_cache_corrupted; then
2487   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2489   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2490 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2491   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2492 fi
2493 ## -------------------- ##
2494 ## Main body of script. ##
2495 ## -------------------- ##
2496
2497 ac_ext=c
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502
2503
2504
2505 ac_aux_dir=
2506 for ac_dir in build-aux "$srcdir"/build-aux; do
2507   if test -f "$ac_dir/install-sh"; then
2508     ac_aux_dir=$ac_dir
2509     ac_install_sh="$ac_aux_dir/install-sh -c"
2510     break
2511   elif test -f "$ac_dir/install.sh"; then
2512     ac_aux_dir=$ac_dir
2513     ac_install_sh="$ac_aux_dir/install.sh -c"
2514     break
2515   elif test -f "$ac_dir/shtool"; then
2516     ac_aux_dir=$ac_dir
2517     ac_install_sh="$ac_aux_dir/shtool install -c"
2518     break
2519   fi
2520 done
2521 if test -z "$ac_aux_dir"; then
2522   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2523 fi
2524
2525 # These three variables are undocumented and unsupported,
2526 # and are intended to be withdrawn in a future Autoconf release.
2527 # They can cause serious problems if a builder's source tree is in a directory
2528 # whose full name contains unusual characters.
2529 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2530 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2531 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2532
2533
2534
2535 ac_ext=c
2536 ac_cpp='$CPP $CPPFLAGS'
2537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540 if test -n "$ac_tool_prefix"; then
2541   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2542 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2544 $as_echo_n "checking for $ac_word... " >&6; }
2545 if test "${ac_cv_prog_CC+set}" = set; then :
2546   $as_echo_n "(cached) " >&6
2547 else
2548   if test -n "$CC"; then
2549   ac_cv_prog_CC="$CC" # Let the user override the test.
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
2554   IFS=$as_save_IFS
2555   test -z "$as_dir" && as_dir=.
2556     for ac_exec_ext in '' $ac_executable_extensions; do
2557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2560     break 2
2561   fi
2562 done
2563   done
2564 IFS=$as_save_IFS
2565
2566 fi
2567 fi
2568 CC=$ac_cv_prog_CC
2569 if test -n "$CC"; then
2570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2571 $as_echo "$CC" >&6; }
2572 else
2573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2574 $as_echo "no" >&6; }
2575 fi
2576
2577
2578 fi
2579 if test -z "$ac_cv_prog_CC"; then
2580   ac_ct_CC=$CC
2581   # Extract the first word of "gcc", so it can be a program name with args.
2582 set dummy gcc; ac_word=$2
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584 $as_echo_n "checking for $ac_word... " >&6; }
2585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2586   $as_echo_n "(cached) " >&6
2587 else
2588   if test -n "$ac_ct_CC"; then
2589   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594   IFS=$as_save_IFS
2595   test -z "$as_dir" && as_dir=.
2596     for ac_exec_ext in '' $ac_executable_extensions; do
2597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598     ac_cv_prog_ac_ct_CC="gcc"
2599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600     break 2
2601   fi
2602 done
2603   done
2604 IFS=$as_save_IFS
2605
2606 fi
2607 fi
2608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2609 if test -n "$ac_ct_CC"; then
2610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2611 $as_echo "$ac_ct_CC" >&6; }
2612 else
2613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614 $as_echo "no" >&6; }
2615 fi
2616
2617   if test "x$ac_ct_CC" = x; then
2618     CC=""
2619   else
2620     case $cross_compiling:$ac_tool_warned in
2621 yes:)
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2624 ac_tool_warned=yes ;;
2625 esac
2626     CC=$ac_ct_CC
2627   fi
2628 else
2629   CC="$ac_cv_prog_CC"
2630 fi
2631
2632 if test -z "$CC"; then
2633           if test -n "$ac_tool_prefix"; then
2634     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2635 set dummy ${ac_tool_prefix}cc; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if test "${ac_cv_prog_CC+set}" = set; then :
2639   $as_echo_n "(cached) " >&6
2640 else
2641   if test -n "$CC"; then
2642   ac_cv_prog_CC="$CC" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647   IFS=$as_save_IFS
2648   test -z "$as_dir" && as_dir=.
2649     for ac_exec_ext in '' $ac_executable_extensions; do
2650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651     ac_cv_prog_CC="${ac_tool_prefix}cc"
2652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653     break 2
2654   fi
2655 done
2656   done
2657 IFS=$as_save_IFS
2658
2659 fi
2660 fi
2661 CC=$ac_cv_prog_CC
2662 if test -n "$CC"; then
2663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2664 $as_echo "$CC" >&6; }
2665 else
2666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 fi
2669
2670
2671   fi
2672 fi
2673 if test -z "$CC"; then
2674   # Extract the first word of "cc", so it can be a program name with args.
2675 set dummy cc; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if test "${ac_cv_prog_CC+set}" = set; then :
2679   $as_echo_n "(cached) " >&6
2680 else
2681   if test -n "$CC"; then
2682   ac_cv_prog_CC="$CC" # Let the user override the test.
2683 else
2684   ac_prog_rejected=no
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
2688   IFS=$as_save_IFS
2689   test -z "$as_dir" && as_dir=.
2690     for ac_exec_ext in '' $ac_executable_extensions; do
2691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2693        ac_prog_rejected=yes
2694        continue
2695      fi
2696     ac_cv_prog_CC="cc"
2697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698     break 2
2699   fi
2700 done
2701   done
2702 IFS=$as_save_IFS
2703
2704 if test $ac_prog_rejected = yes; then
2705   # We found a bogon in the path, so make sure we never use it.
2706   set dummy $ac_cv_prog_CC
2707   shift
2708   if test $# != 0; then
2709     # We chose a different compiler from the bogus one.
2710     # However, it has the same basename, so the bogon will be chosen
2711     # first if we set CC to just the basename; use the full file name.
2712     shift
2713     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2714   fi
2715 fi
2716 fi
2717 fi
2718 CC=$ac_cv_prog_CC
2719 if test -n "$CC"; then
2720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2721 $as_echo "$CC" >&6; }
2722 else
2723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2725 fi
2726
2727
2728 fi
2729 if test -z "$CC"; then
2730   if test -n "$ac_tool_prefix"; then
2731   for ac_prog in cl.exe
2732   do
2733     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if test "${ac_cv_prog_CC+set}" = set; then :
2738   $as_echo_n "(cached) " >&6
2739 else
2740   if test -n "$CC"; then
2741   ac_cv_prog_CC="$CC" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746   IFS=$as_save_IFS
2747   test -z "$as_dir" && as_dir=.
2748     for ac_exec_ext in '' $ac_executable_extensions; do
2749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752     break 2
2753   fi
2754 done
2755   done
2756 IFS=$as_save_IFS
2757
2758 fi
2759 fi
2760 CC=$ac_cv_prog_CC
2761 if test -n "$CC"; then
2762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2763 $as_echo "$CC" >&6; }
2764 else
2765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2767 fi
2768
2769
2770     test -n "$CC" && break
2771   done
2772 fi
2773 if test -z "$CC"; then
2774   ac_ct_CC=$CC
2775   for ac_prog in cl.exe
2776 do
2777   # Extract the first word of "$ac_prog", so it can be a program name with args.
2778 set dummy $ac_prog; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2782   $as_echo_n "(cached) " >&6
2783 else
2784   if test -n "$ac_ct_CC"; then
2785   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790   IFS=$as_save_IFS
2791   test -z "$as_dir" && as_dir=.
2792     for ac_exec_ext in '' $ac_executable_extensions; do
2793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794     ac_cv_prog_ac_ct_CC="$ac_prog"
2795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796     break 2
2797   fi
2798 done
2799   done
2800 IFS=$as_save_IFS
2801
2802 fi
2803 fi
2804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2805 if test -n "$ac_ct_CC"; then
2806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2807 $as_echo "$ac_ct_CC" >&6; }
2808 else
2809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2811 fi
2812
2813
2814   test -n "$ac_ct_CC" && break
2815 done
2816
2817   if test "x$ac_ct_CC" = x; then
2818     CC=""
2819   else
2820     case $cross_compiling:$ac_tool_warned in
2821 yes:)
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2824 ac_tool_warned=yes ;;
2825 esac
2826     CC=$ac_ct_CC
2827   fi
2828 fi
2829
2830 fi
2831
2832
2833 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2835 as_fn_error $? "no acceptable C compiler found in \$PATH
2836 See \`config.log' for more details" "$LINENO" 5 ; }
2837
2838 # Provide some information about the compiler.
2839 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2840 set X $ac_compile
2841 ac_compiler=$2
2842 for ac_option in --version -v -V -qversion; do
2843   { { ac_try="$ac_compiler $ac_option >&5"
2844 case "(($ac_try" in
2845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846   *) ac_try_echo=$ac_try;;
2847 esac
2848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2849 $as_echo "$ac_try_echo"; } >&5
2850   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2851   ac_status=$?
2852   if test -s conftest.err; then
2853     sed '10a\
2854 ... rest of stderr output deleted ...
2855          10q' conftest.err >conftest.er1
2856     cat conftest.er1 >&5
2857   fi
2858   rm -f conftest.er1 conftest.err
2859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2860   test $ac_status = 0; }
2861 done
2862
2863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864 /* end confdefs.h.  */
2865
2866 int
2867 main ()
2868 {
2869
2870   ;
2871   return 0;
2872 }
2873 _ACEOF
2874 ac_clean_files_save=$ac_clean_files
2875 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2876 # Try to create an executable without -o first, disregard a.out.
2877 # It will help us diagnose broken compilers, and finding out an intuition
2878 # of exeext.
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2880 $as_echo_n "checking whether the C compiler works... " >&6; }
2881 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2882
2883 # The possible output files:
2884 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2885
2886 ac_rmfiles=
2887 for ac_file in $ac_files
2888 do
2889   case $ac_file in
2890     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2891     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2892   esac
2893 done
2894 rm -f $ac_rmfiles
2895
2896 if { { ac_try="$ac_link_default"
2897 case "(($ac_try" in
2898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899   *) ac_try_echo=$ac_try;;
2900 esac
2901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2902 $as_echo "$ac_try_echo"; } >&5
2903   (eval "$ac_link_default") 2>&5
2904   ac_status=$?
2905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2906   test $ac_status = 0; }; then :
2907   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2908 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2909 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2910 # so that the user can short-circuit this test for compilers unknown to
2911 # Autoconf.
2912 for ac_file in $ac_files ''
2913 do
2914   test -f "$ac_file" || continue
2915   case $ac_file in
2916     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2917         ;;
2918     [ab].out )
2919         # We found the default executable, but exeext='' is most
2920         # certainly right.
2921         break;;
2922     *.* )
2923         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2924         then :; else
2925            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2926         fi
2927         # We set ac_cv_exeext here because the later test for it is not
2928         # safe: cross compilers may not add the suffix if given an `-o'
2929         # argument, so we may need to know it at that point already.
2930         # Even if this section looks crufty: it has the advantage of
2931         # actually working.
2932         break;;
2933     * )
2934         break;;
2935   esac
2936 done
2937 test "$ac_cv_exeext" = no && ac_cv_exeext=
2938
2939 else
2940   ac_file=''
2941 fi
2942 if test -z "$ac_file"; then :
2943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2945 $as_echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950 as_fn_error 77 "C compiler cannot create executables
2951 See \`config.log' for more details" "$LINENO" 5 ; }
2952 else
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2954 $as_echo "yes" >&6; }
2955 fi
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2957 $as_echo_n "checking for C compiler default output file name... " >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2959 $as_echo "$ac_file" >&6; }
2960 ac_exeext=$ac_cv_exeext
2961
2962 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2963 ac_clean_files=$ac_clean_files_save
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2965 $as_echo_n "checking for suffix of executables... " >&6; }
2966 if { { ac_try="$ac_link"
2967 case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2972 $as_echo "$ac_try_echo"; } >&5
2973   (eval "$ac_link") 2>&5
2974   ac_status=$?
2975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2976   test $ac_status = 0; }; then :
2977   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2978 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2979 # work properly (i.e., refer to `conftest.exe'), while it won't with
2980 # `rm'.
2981 for ac_file in conftest.exe conftest conftest.*; do
2982   test -f "$ac_file" || continue
2983   case $ac_file in
2984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2985     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2986           break;;
2987     * ) break;;
2988   esac
2989 done
2990 else
2991   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2994 See \`config.log' for more details" "$LINENO" 5 ; }
2995 fi
2996 rm -f conftest conftest$ac_cv_exeext
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2998 $as_echo "$ac_cv_exeext" >&6; }
2999
3000 rm -f conftest.$ac_ext
3001 EXEEXT=$ac_cv_exeext
3002 ac_exeext=$EXEEXT
3003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004 /* end confdefs.h.  */
3005 #include <stdio.h>
3006 int
3007 main ()
3008 {
3009 FILE *f = fopen ("conftest.out", "w");
3010  return ferror (f) || fclose (f) != 0;
3011
3012   ;
3013   return 0;
3014 }
3015 _ACEOF
3016 ac_clean_files="$ac_clean_files conftest.out"
3017 # Check that the compiler produces executables we can run.  If not, either
3018 # the compiler is broken, or we cross compile.
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3020 $as_echo_n "checking whether we are cross compiling... " >&6; }
3021 if test "$cross_compiling" != yes; then
3022   { { ac_try="$ac_link"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028 $as_echo "$ac_try_echo"; } >&5
3029   (eval "$ac_link") 2>&5
3030   ac_status=$?
3031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032   test $ac_status = 0; }
3033   if { ac_try='./conftest$ac_cv_exeext'
3034   { { case "(($ac_try" in
3035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036   *) ac_try_echo=$ac_try;;
3037 esac
3038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039 $as_echo "$ac_try_echo"; } >&5
3040   (eval "$ac_try") 2>&5
3041   ac_status=$?
3042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3043   test $ac_status = 0; }; }; then
3044     cross_compiling=no
3045   else
3046     if test "$cross_compiling" = maybe; then
3047         cross_compiling=yes
3048     else
3049         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051 as_fn_error $? "cannot run C compiled programs.
3052 If you meant to cross compile, use \`--host'.
3053 See \`config.log' for more details" "$LINENO" 5 ; }
3054     fi
3055   fi
3056 fi
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3058 $as_echo "$cross_compiling" >&6; }
3059
3060 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3061 ac_clean_files=$ac_clean_files_save
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3063 $as_echo_n "checking for suffix of object files... " >&6; }
3064 if test "${ac_cv_objext+set}" = set; then :
3065   $as_echo_n "(cached) " >&6
3066 else
3067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3068 /* end confdefs.h.  */
3069
3070 int
3071 main ()
3072 {
3073
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 rm -f conftest.o conftest.obj
3079 if { { ac_try="$ac_compile"
3080 case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
3084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085 $as_echo "$ac_try_echo"; } >&5
3086   (eval "$ac_compile") 2>&5
3087   ac_status=$?
3088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3089   test $ac_status = 0; }; then :
3090   for ac_file in conftest.o conftest.obj conftest.*; do
3091   test -f "$ac_file" || continue;
3092   case $ac_file in
3093     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3094     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3095        break;;
3096   esac
3097 done
3098 else
3099   $as_echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104 as_fn_error $? "cannot compute suffix of object files: cannot compile
3105 See \`config.log' for more details" "$LINENO" 5 ; }
3106 fi
3107 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3108 fi
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3110 $as_echo "$ac_cv_objext" >&6; }
3111 OBJEXT=$ac_cv_objext
3112 ac_objext=$OBJEXT
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3114 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3115 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3116   $as_echo_n "(cached) " >&6
3117 else
3118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119 /* end confdefs.h.  */
3120
3121 int
3122 main ()
3123 {
3124 #ifndef __GNUC__
3125        choke me
3126 #endif
3127
3128   ;
3129   return 0;
3130 }
3131 _ACEOF
3132 if ac_fn_c_try_compile "$LINENO"; then :
3133   ac_compiler_gnu=yes
3134 else
3135   ac_compiler_gnu=no
3136 fi
3137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3138 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3139
3140 fi
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3142 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3143 if test $ac_compiler_gnu = yes; then
3144   GCC=yes
3145 else
3146   GCC=
3147 fi
3148 ac_test_CFLAGS=${CFLAGS+set}
3149 ac_save_CFLAGS=$CFLAGS
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3151 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3152 if test "${ac_cv_prog_cc_g+set}" = set; then :
3153   $as_echo_n "(cached) " >&6
3154 else
3155   ac_save_c_werror_flag=$ac_c_werror_flag
3156    ac_c_werror_flag=yes
3157    ac_cv_prog_cc_g=no
3158    CFLAGS="-g"
3159    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h.  */
3161
3162 int
3163 main ()
3164 {
3165
3166   ;
3167   return 0;
3168 }
3169 _ACEOF
3170 if ac_fn_c_try_compile "$LINENO"; then :
3171   ac_cv_prog_cc_g=yes
3172 else
3173   CFLAGS=""
3174       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h.  */
3176
3177 int
3178 main ()
3179 {
3180
3181   ;
3182   return 0;
3183 }
3184 _ACEOF
3185 if ac_fn_c_try_compile "$LINENO"; then :
3186
3187 else
3188   ac_c_werror_flag=$ac_save_c_werror_flag
3189          CFLAGS="-g"
3190          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h.  */
3192
3193 int
3194 main ()
3195 {
3196
3197   ;
3198   return 0;
3199 }
3200 _ACEOF
3201 if ac_fn_c_try_compile "$LINENO"; then :
3202   ac_cv_prog_cc_g=yes
3203 fi
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 fi
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 fi
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209    ac_c_werror_flag=$ac_save_c_werror_flag
3210 fi
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3212 $as_echo "$ac_cv_prog_cc_g" >&6; }
3213 if test "$ac_test_CFLAGS" = set; then
3214   CFLAGS=$ac_save_CFLAGS
3215 elif test $ac_cv_prog_cc_g = yes; then
3216   if test "$GCC" = yes; then
3217     CFLAGS="-g -O2"
3218   else
3219     CFLAGS="-g"
3220   fi
3221 else
3222   if test "$GCC" = yes; then
3223     CFLAGS="-O2"
3224   else
3225     CFLAGS=
3226   fi
3227 fi
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3229 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3230 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3231   $as_echo_n "(cached) " >&6
3232 else
3233   ac_cv_prog_cc_c89=no
3234 ac_save_CC=$CC
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h.  */
3237 #include <stdarg.h>
3238 #include <stdio.h>
3239 #include <sys/types.h>
3240 #include <sys/stat.h>
3241 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3242 struct buf { int x; };
3243 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3244 static char *e (p, i)
3245      char **p;
3246      int i;
3247 {
3248   return p[i];
3249 }
3250 static char *f (char * (*g) (char **, int), char **p, ...)
3251 {
3252   char *s;
3253   va_list v;
3254   va_start (v,p);
3255   s = g (p, va_arg (v,int));
3256   va_end (v);
3257   return s;
3258 }
3259
3260 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3261    function prototypes and stuff, but not '\xHH' hex character constants.
3262    These don't provoke an error unfortunately, instead are silently treated
3263    as 'x'.  The following induces an error, until -std is added to get
3264    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3265    array size at least.  It's necessary to write '\x00'==0 to get something
3266    that's true only with -std.  */
3267 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3268
3269 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3270    inside strings and character constants.  */
3271 #define FOO(x) 'x'
3272 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3273
3274 int test (int i, double x);
3275 struct s1 {int (*f) (int a);};
3276 struct s2 {int (*f) (double a);};
3277 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3278 int argc;
3279 char **argv;
3280 int
3281 main ()
3282 {
3283 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3284   ;
3285   return 0;
3286 }
3287 _ACEOF
3288 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3289         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3290 do
3291   CC="$ac_save_CC $ac_arg"
3292   if ac_fn_c_try_compile "$LINENO"; then :
3293   ac_cv_prog_cc_c89=$ac_arg
3294 fi
3295 rm -f core conftest.err conftest.$ac_objext
3296   test "x$ac_cv_prog_cc_c89" != "xno" && break
3297 done
3298 rm -f conftest.$ac_ext
3299 CC=$ac_save_CC
3300
3301 fi
3302 # AC_CACHE_VAL
3303 case "x$ac_cv_prog_cc_c89" in
3304   x)
3305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3306 $as_echo "none needed" >&6; } ;;
3307   xno)
3308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3309 $as_echo "unsupported" >&6; } ;;
3310   *)
3311     CC="$CC $ac_cv_prog_cc_c89"
3312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3313 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3314 esac
3315 if test "x$ac_cv_prog_cc_c89" != xno; then :
3316
3317 fi
3318
3319 ac_ext=c
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324
3325
3326 ac_ext=c
3327 ac_cpp='$CPP $CPPFLAGS'
3328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3332 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3333 # On Suns, sometimes $CPP names a directory.
3334 if test -n "$CPP" && test -d "$CPP"; then
3335   CPP=
3336 fi
3337 if test -z "$CPP"; then
3338   if test "${ac_cv_prog_CPP+set}" = set; then :
3339   $as_echo_n "(cached) " >&6
3340 else
3341       # Double quotes because CPP needs to be expanded
3342     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3343     do
3344       ac_preproc_ok=false
3345 for ac_c_preproc_warn_flag in '' yes
3346 do
3347   # Use a header file that comes with gcc, so configuring glibc
3348   # with a fresh cross-compiler works.
3349   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3350   # <limits.h> exists even on freestanding compilers.
3351   # On the NeXT, cc -E runs the code through the compiler's parser,
3352   # not just through cpp. "Syntax error" is here to catch this case.
3353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h.  */
3355 #ifdef __STDC__
3356 # include <limits.h>
3357 #else
3358 # include <assert.h>
3359 #endif
3360                      Syntax error
3361 _ACEOF
3362 if ac_fn_c_try_cpp "$LINENO"; then :
3363
3364 else
3365   # Broken: fails on valid input.
3366 continue
3367 fi
3368 rm -f conftest.err conftest.i conftest.$ac_ext
3369
3370   # OK, works on sane cases.  Now check whether nonexistent headers
3371   # can be detected and how.
3372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h.  */
3374 #include <ac_nonexistent.h>
3375 _ACEOF
3376 if ac_fn_c_try_cpp "$LINENO"; then :
3377   # Broken: success on invalid input.
3378 continue
3379 else
3380   # Passes both tests.
3381 ac_preproc_ok=:
3382 break
3383 fi
3384 rm -f conftest.err conftest.i conftest.$ac_ext
3385
3386 done
3387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3388 rm -f conftest.i conftest.err conftest.$ac_ext
3389 if $ac_preproc_ok; then :
3390   break
3391 fi
3392
3393     done
3394     ac_cv_prog_CPP=$CPP
3395
3396 fi
3397   CPP=$ac_cv_prog_CPP
3398 else
3399   ac_cv_prog_CPP=$CPP
3400 fi
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3402 $as_echo "$CPP" >&6; }
3403 ac_preproc_ok=false
3404 for ac_c_preproc_warn_flag in '' yes
3405 do
3406   # Use a header file that comes with gcc, so configuring glibc
3407   # with a fresh cross-compiler works.
3408   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3409   # <limits.h> exists even on freestanding compilers.
3410   # On the NeXT, cc -E runs the code through the compiler's parser,
3411   # not just through cpp. "Syntax error" is here to catch this case.
3412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h.  */
3414 #ifdef __STDC__
3415 # include <limits.h>
3416 #else
3417 # include <assert.h>
3418 #endif
3419                      Syntax error
3420 _ACEOF
3421 if ac_fn_c_try_cpp "$LINENO"; then :
3422
3423 else
3424   # Broken: fails on valid input.
3425 continue
3426 fi
3427 rm -f conftest.err conftest.i conftest.$ac_ext
3428
3429   # OK, works on sane cases.  Now check whether nonexistent headers
3430   # can be detected and how.
3431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h.  */
3433 #include <ac_nonexistent.h>
3434 _ACEOF
3435 if ac_fn_c_try_cpp "$LINENO"; then :
3436   # Broken: success on invalid input.
3437 continue
3438 else
3439   # Passes both tests.
3440 ac_preproc_ok=:
3441 break
3442 fi
3443 rm -f conftest.err conftest.i conftest.$ac_ext
3444
3445 done
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.i conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then :
3449
3450 else
3451   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details" "$LINENO" 5 ; }
3455 fi
3456
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3465 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3466 if test "${ac_cv_path_GREP+set}" = set; then :
3467   $as_echo_n "(cached) " >&6
3468 else
3469   if test -z "$GREP"; then
3470   ac_path_GREP_found=false
3471   # Loop through the user's path and test for each of PROGNAME-LIST
3472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3474 do
3475   IFS=$as_save_IFS
3476   test -z "$as_dir" && as_dir=.
3477     for ac_prog in grep ggrep; do
3478     for ac_exec_ext in '' $ac_executable_extensions; do
3479       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3480       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3481 # Check for GNU ac_path_GREP and select it if it is found.
3482   # Check for GNU $ac_path_GREP
3483 case `"$ac_path_GREP" --version 2>&1` in
3484 *GNU*)
3485   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3486 *)
3487   ac_count=0
3488   $as_echo_n 0123456789 >"conftest.in"
3489   while :
3490   do
3491     cat "conftest.in" "conftest.in" >"conftest.tmp"
3492     mv "conftest.tmp" "conftest.in"
3493     cp "conftest.in" "conftest.nl"
3494     $as_echo 'GREP' >> "conftest.nl"
3495     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3496     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3497     as_fn_arith $ac_count + 1 && ac_count=$as_val
3498     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3499       # Best one so far, save it but keep looking for a better one
3500       ac_cv_path_GREP="$ac_path_GREP"
3501       ac_path_GREP_max=$ac_count
3502     fi
3503     # 10*(2^10) chars as input seems more than enough
3504     test $ac_count -gt 10 && break
3505   done
3506   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3507 esac
3508
3509       $ac_path_GREP_found && break 3
3510     done
3511   done
3512   done
3513 IFS=$as_save_IFS
3514   if test -z "$ac_cv_path_GREP"; then
3515     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3516   fi
3517 else
3518   ac_cv_path_GREP=$GREP
3519 fi
3520
3521 fi
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3523 $as_echo "$ac_cv_path_GREP" >&6; }
3524  GREP="$ac_cv_path_GREP"
3525
3526
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3528 $as_echo_n "checking for egrep... " >&6; }
3529 if test "${ac_cv_path_EGREP+set}" = set; then :
3530   $as_echo_n "(cached) " >&6
3531 else
3532   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3533    then ac_cv_path_EGREP="$GREP -E"
3534    else
3535      if test -z "$EGREP"; then
3536   ac_path_EGREP_found=false
3537   # Loop through the user's path and test for each of PROGNAME-LIST
3538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3540 do
3541   IFS=$as_save_IFS
3542   test -z "$as_dir" && as_dir=.
3543     for ac_prog in egrep; do
3544     for ac_exec_ext in '' $ac_executable_extensions; do
3545       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3546       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3547 # Check for GNU ac_path_EGREP and select it if it is found.
3548   # Check for GNU $ac_path_EGREP
3549 case `"$ac_path_EGREP" --version 2>&1` in
3550 *GNU*)
3551   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3552 *)
3553   ac_count=0
3554   $as_echo_n 0123456789 >"conftest.in"
3555   while :
3556   do
3557     cat "conftest.in" "conftest.in" >"conftest.tmp"
3558     mv "conftest.tmp" "conftest.in"
3559     cp "conftest.in" "conftest.nl"
3560     $as_echo 'EGREP' >> "conftest.nl"
3561     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3562     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3563     as_fn_arith $ac_count + 1 && ac_count=$as_val
3564     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3565       # Best one so far, save it but keep looking for a better one
3566       ac_cv_path_EGREP="$ac_path_EGREP"
3567       ac_path_EGREP_max=$ac_count
3568     fi
3569     # 10*(2^10) chars as input seems more than enough
3570     test $ac_count -gt 10 && break
3571   done
3572   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3573 esac
3574
3575       $ac_path_EGREP_found && break 3
3576     done
3577   done
3578   done
3579 IFS=$as_save_IFS
3580   if test -z "$ac_cv_path_EGREP"; then
3581     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3582   fi
3583 else
3584   ac_cv_path_EGREP=$EGREP
3585 fi
3586
3587    fi
3588 fi
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3590 $as_echo "$ac_cv_path_EGREP" >&6; }
3591  EGREP="$ac_cv_path_EGREP"
3592
3593
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3595 $as_echo_n "checking for ANSI C header files... " >&6; }
3596 if test "${ac_cv_header_stdc+set}" = set; then :
3597   $as_echo_n "(cached) " >&6
3598 else
3599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h.  */
3601 #include <stdlib.h>
3602 #include <stdarg.h>
3603 #include <string.h>
3604 #include <float.h>
3605
3606 int
3607 main ()
3608 {
3609
3610   ;
3611   return 0;
3612 }
3613 _ACEOF
3614 if ac_fn_c_try_compile "$LINENO"; then :
3615   ac_cv_header_stdc=yes
3616 else
3617   ac_cv_header_stdc=no
3618 fi
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620
3621 if test $ac_cv_header_stdc = yes; then
3622   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h.  */
3625 #include <string.h>
3626
3627 _ACEOF
3628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3629   $EGREP "memchr" >/dev/null 2>&1; then :
3630
3631 else
3632   ac_cv_header_stdc=no
3633 fi
3634 rm -f conftest*
3635
3636 fi
3637
3638 if test $ac_cv_header_stdc = yes; then
3639   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h.  */
3642 #include <stdlib.h>
3643
3644 _ACEOF
3645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3646   $EGREP "free" >/dev/null 2>&1; then :
3647
3648 else
3649   ac_cv_header_stdc=no
3650 fi
3651 rm -f conftest*
3652
3653 fi
3654
3655 if test $ac_cv_header_stdc = yes; then
3656   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3657   if test "$cross_compiling" = yes; then :
3658   :
3659 else
3660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h.  */
3662 #include <ctype.h>
3663 #include <stdlib.h>
3664 #if ((' ' & 0x0FF) == 0x020)
3665 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3666 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3667 #else
3668 # define ISLOWER(c) \
3669                    (('a' <= (c) && (c) <= 'i') \
3670                      || ('j' <= (c) && (c) <= 'r') \
3671                      || ('s' <= (c) && (c) <= 'z'))
3672 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3673 #endif
3674
3675 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3676 int
3677 main ()
3678 {
3679   int i;
3680   for (i = 0; i < 256; i++)
3681     if (XOR (islower (i), ISLOWER (i))
3682         || toupper (i) != TOUPPER (i))
3683       return 2;
3684   return 0;
3685 }
3686 _ACEOF
3687 if ac_fn_c_try_run "$LINENO"; then :
3688
3689 else
3690   ac_cv_header_stdc=no
3691 fi
3692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3693   conftest.$ac_objext conftest.beam conftest.$ac_ext
3694 fi
3695
3696 fi
3697 fi
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3699 $as_echo "$ac_cv_header_stdc" >&6; }
3700 if test $ac_cv_header_stdc = yes; then
3701
3702 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3703
3704 fi
3705
3706 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3707 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3708                   inttypes.h stdint.h unistd.h
3709 do :
3710   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3711 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3712 "
3713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3714   cat >>confdefs.h <<_ACEOF
3715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3716 _ACEOF
3717
3718 fi
3719
3720 done
3721
3722
3723
3724   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3725 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3726   MINIX=yes
3727 else
3728   MINIX=
3729 fi
3730
3731
3732   if test "$MINIX" = yes; then
3733
3734 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3735
3736
3737 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3738
3739
3740 $as_echo "#define _MINIX 1" >>confdefs.h
3741
3742   fi
3743
3744
3745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3746 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3747 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3748   $as_echo_n "(cached) " >&6
3749 else
3750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h.  */
3752
3753 #         define __EXTENSIONS__ 1
3754           $ac_includes_default
3755 int
3756 main ()
3757 {
3758
3759   ;
3760   return 0;
3761 }
3762 _ACEOF
3763 if ac_fn_c_try_compile "$LINENO"; then :
3764   ac_cv_safe_to_define___extensions__=yes
3765 else
3766   ac_cv_safe_to_define___extensions__=no
3767 fi
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 fi
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3771 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3772   test $ac_cv_safe_to_define___extensions__ = yes &&
3773     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3774
3775   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3776
3777   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3778
3779   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3780
3781   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3782
3783
3784 am__api_version='1.11'
3785
3786 # Find a good install program.  We prefer a C program (faster),
3787 # so one script is as good as another.  But avoid the broken or
3788 # incompatible versions:
3789 # SysV /etc/install, /usr/sbin/install
3790 # SunOS /usr/etc/install
3791 # IRIX /sbin/install
3792 # AIX /bin/install
3793 # AmigaOS /C/install, which installs bootblocks on floppy discs
3794 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3795 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3796 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3797 # OS/2's system install, which has a completely different semantic
3798 # ./install, which can be erroneously created by make from ./install.sh.
3799 # Reject install programs that cannot install multiple files.
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3801 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3802 if test -z "$INSTALL"; then
3803 if test "${ac_cv_path_install+set}" = set; then :
3804   $as_echo_n "(cached) " >&6
3805 else
3806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3808 do
3809   IFS=$as_save_IFS
3810   test -z "$as_dir" && as_dir=.
3811     # Account for people who put trailing slashes in PATH elements.
3812 case $as_dir/ in #((
3813   ./ | .// | /[cC]/* | \
3814   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3815   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3816   /usr/ucb/* ) ;;
3817   *)
3818     # OSF1 and SCO ODT 3.0 have their own names for install.
3819     # Don't use installbsd from OSF since it installs stuff as root
3820     # by default.
3821     for ac_prog in ginstall scoinst install; do
3822       for ac_exec_ext in '' $ac_executable_extensions; do
3823         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3824           if test $ac_prog = install &&
3825             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3826             # AIX install.  It has an incompatible calling convention.
3827             :
3828           elif test $ac_prog = install &&
3829             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3830             # program-specific install script used by HP pwplus--don't use.
3831             :
3832           else
3833             rm -rf conftest.one conftest.two conftest.dir
3834             echo one > conftest.one
3835             echo two > conftest.two
3836             mkdir conftest.dir
3837             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3838               test -s conftest.one && test -s conftest.two &&
3839               test -s conftest.dir/conftest.one &&
3840               test -s conftest.dir/conftest.two
3841             then
3842               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3843               break 3
3844             fi
3845           fi
3846         fi
3847       done
3848     done
3849     ;;
3850 esac
3851
3852   done
3853 IFS=$as_save_IFS
3854
3855 rm -rf conftest.one conftest.two conftest.dir
3856
3857 fi
3858   if test "${ac_cv_path_install+set}" = set; then
3859     INSTALL=$ac_cv_path_install
3860   else
3861     # As a last resort, use the slow shell script.  Don't cache a
3862     # value for INSTALL within a source directory, because that will
3863     # break other packages using the cache if that directory is
3864     # removed, or if the value is a relative name.
3865     INSTALL=$ac_install_sh
3866   fi
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3869 $as_echo "$INSTALL" >&6; }
3870
3871 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3872 # It thinks the first close brace ends the variable substitution.
3873 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3874
3875 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3876
3877 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3878
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3880 $as_echo_n "checking whether build environment is sane... " >&6; }
3881 # Just in case
3882 sleep 1
3883 echo timestamp > conftest.file
3884 # Reject unsafe characters in $srcdir or the absolute working directory
3885 # name.  Accept space and tab only in the latter.
3886 am_lf='
3887 '
3888 case `pwd` in
3889   *[\\\"\#\$\&\'\`$am_lf]*)
3890     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3891 esac
3892 case $srcdir in
3893   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3894     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3895 esac
3896
3897 # Do `set' in a subshell so we don't clobber the current shell's
3898 # arguments.  Must try -L first in case configure is actually a
3899 # symlink; some systems play weird games with the mod time of symlinks
3900 # (eg FreeBSD returns the mod time of the symlink's containing
3901 # directory).
3902 if (
3903    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3904    if test "$*" = "X"; then
3905       # -L didn't work.
3906       set X `ls -t "$srcdir/configure" conftest.file`
3907    fi
3908    rm -f conftest.file
3909    if test "$*" != "X $srcdir/configure conftest.file" \
3910       && test "$*" != "X conftest.file $srcdir/configure"; then
3911
3912       # If neither matched, then we have a broken ls.  This can happen
3913       # if, for instance, CONFIG_SHELL is bash and it inherits a
3914       # broken ls alias from the environment.  This has actually
3915       # happened.  Such a system could not be considered "sane".
3916       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3917 alias in your environment" "$LINENO" 5
3918    fi
3919
3920    test "$2" = conftest.file
3921    )
3922 then
3923    # Ok.
3924    :
3925 else
3926    as_fn_error $? "newly created file is older than distributed files!
3927 Check your system clock" "$LINENO" 5
3928 fi
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3930 $as_echo "yes" >&6; }
3931 test "$program_prefix" != NONE &&
3932   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3933 # Use a double $ so make ignores it.
3934 test "$program_suffix" != NONE &&
3935   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3936 # Double any \ or $.
3937 # By default was `s,x,x', remove it if useless.
3938 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3939 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3940
3941 # expand $ac_aux_dir to an absolute path
3942 am_aux_dir=`cd $ac_aux_dir && pwd`
3943
3944 if test x"${MISSING+set}" != xset; then
3945   case $am_aux_dir in
3946   *\ * | *\     *)
3947     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3948   *)
3949     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3950   esac
3951 fi
3952 # Use eval to expand $SHELL
3953 if eval "$MISSING --run true"; then
3954   am_missing_run="$MISSING --run "
3955 else
3956   am_missing_run=
3957   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3958 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3959 fi
3960
3961 if test x"${install_sh}" != xset; then
3962   case $am_aux_dir in
3963   *\ * | *\     *)
3964     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3965   *)
3966     install_sh="\${SHELL} $am_aux_dir/install-sh"
3967   esac
3968 fi
3969
3970 # Installed binaries are usually stripped using `strip' when the user
3971 # run `make install-strip'.  However `strip' might not be the right
3972 # tool to use in cross-compilation environments, therefore Automake
3973 # will honor the `STRIP' environment variable to overrule this program.
3974 if test "$cross_compiling" != no; then
3975   if test -n "$ac_tool_prefix"; then
3976   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}strip; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if test "${ac_cv_prog_STRIP+set}" = set; then :
3981   $as_echo_n "(cached) " >&6
3982 else
3983   if test -n "$STRIP"; then
3984   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989   IFS=$as_save_IFS
3990   test -z "$as_dir" && as_dir=.
3991     for ac_exec_ext in '' $ac_executable_extensions; do
3992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3993     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995     break 2
3996   fi
3997 done
3998   done
3999 IFS=$as_save_IFS
4000
4001 fi
4002 fi
4003 STRIP=$ac_cv_prog_STRIP
4004 if test -n "$STRIP"; then
4005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4006 $as_echo "$STRIP" >&6; }
4007 else
4008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4010 fi
4011
4012
4013 fi
4014 if test -z "$ac_cv_prog_STRIP"; then
4015   ac_ct_STRIP=$STRIP
4016   # Extract the first word of "strip", so it can be a program name with args.
4017 set dummy strip; ac_word=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4021   $as_echo_n "(cached) " >&6
4022 else
4023   if test -n "$ac_ct_STRIP"; then
4024   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4028 do
4029   IFS=$as_save_IFS
4030   test -z "$as_dir" && as_dir=.
4031     for ac_exec_ext in '' $ac_executable_extensions; do
4032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033     ac_cv_prog_ac_ct_STRIP="strip"
4034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035     break 2
4036   fi
4037 done
4038   done
4039 IFS=$as_save_IFS
4040
4041 fi
4042 fi
4043 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4044 if test -n "$ac_ct_STRIP"; then
4045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4046 $as_echo "$ac_ct_STRIP" >&6; }
4047 else
4048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4050 fi
4051
4052   if test "x$ac_ct_STRIP" = x; then
4053     STRIP=":"
4054   else
4055     case $cross_compiling:$ac_tool_warned in
4056 yes:)
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4059 ac_tool_warned=yes ;;
4060 esac
4061     STRIP=$ac_ct_STRIP
4062   fi
4063 else
4064   STRIP="$ac_cv_prog_STRIP"
4065 fi
4066
4067 fi
4068 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4069
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4071 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4072 if test -z "$MKDIR_P"; then
4073   if test "${ac_cv_path_mkdir+set}" = set; then :
4074   $as_echo_n "(cached) " >&6
4075 else
4076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4078 do
4079   IFS=$as_save_IFS
4080   test -z "$as_dir" && as_dir=.
4081     for ac_prog in mkdir gmkdir; do
4082          for ac_exec_ext in '' $ac_executable_extensions; do
4083            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4084            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4085              'mkdir (GNU coreutils) '* | \
4086              'mkdir (coreutils) '* | \
4087              'mkdir (fileutils) '4.1*)
4088                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4089                break 3;;
4090            esac
4091          done
4092        done
4093   done
4094 IFS=$as_save_IFS
4095
4096 fi
4097
4098   test -d ./--version && rmdir ./--version
4099   if test "${ac_cv_path_mkdir+set}" = set; then
4100     MKDIR_P="$ac_cv_path_mkdir -p"
4101   else
4102     # As a last resort, use the slow shell script.  Don't cache a
4103     # value for MKDIR_P within a source directory, because that will
4104     # break other packages using the cache if that directory is
4105     # removed, or if the value is a relative name.
4106     MKDIR_P="$ac_install_sh -d"
4107   fi
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4110 $as_echo "$MKDIR_P" >&6; }
4111
4112 mkdir_p="$MKDIR_P"
4113 case $mkdir_p in
4114   [\\/$]* | ?:[\\/]*) ;;
4115   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4116 esac
4117
4118 for ac_prog in gawk mawk nawk awk
4119 do
4120   # Extract the first word of "$ac_prog", so it can be a program name with args.
4121 set dummy $ac_prog; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if test "${ac_cv_prog_AWK+set}" = set; then :
4125   $as_echo_n "(cached) " >&6
4126 else
4127   if test -n "$AWK"; then
4128   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4132 do
4133   IFS=$as_save_IFS
4134   test -z "$as_dir" && as_dir=.
4135     for ac_exec_ext in '' $ac_executable_extensions; do
4136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4137     ac_cv_prog_AWK="$ac_prog"
4138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139     break 2
4140   fi
4141 done
4142   done
4143 IFS=$as_save_IFS
4144
4145 fi
4146 fi
4147 AWK=$ac_cv_prog_AWK
4148 if test -n "$AWK"; then
4149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4150 $as_echo "$AWK" >&6; }
4151 else
4152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4154 fi
4155
4156
4157   test -n "$AWK" && break
4158 done
4159
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4161 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4162 set x ${MAKE-make}
4163 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4164 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4165   $as_echo_n "(cached) " >&6
4166 else
4167   cat >conftest.make <<\_ACEOF
4168 SHELL = /bin/sh
4169 all:
4170         @echo '@@@%%%=$(MAKE)=@@@%%%'
4171 _ACEOF
4172 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4173 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4174   *@@@%%%=?*=@@@%%%*)
4175     eval ac_cv_prog_make_${ac_make}_set=yes;;
4176   *)
4177     eval ac_cv_prog_make_${ac_make}_set=no;;
4178 esac
4179 rm -f conftest.make
4180 fi
4181 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4183 $as_echo "yes" >&6; }
4184   SET_MAKE=
4185 else
4186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 $as_echo "no" >&6; }
4188   SET_MAKE="MAKE=${MAKE-make}"
4189 fi
4190
4191 rm -rf .tst 2>/dev/null
4192 mkdir .tst 2>/dev/null
4193 if test -d .tst; then
4194   am__leading_dot=.
4195 else
4196   am__leading_dot=_
4197 fi
4198 rmdir .tst 2>/dev/null
4199
4200 DEPDIR="${am__leading_dot}deps"
4201
4202 ac_config_commands="$ac_config_commands depfiles"
4203
4204
4205 am_make=${MAKE-make}
4206 cat > confinc << 'END'
4207 am__doit:
4208         @echo this is the am__doit target
4209 .PHONY: am__doit
4210 END
4211 # If we don't find an include directive, just comment out the code.
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4213 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4214 am__include="#"
4215 am__quote=
4216 _am_result=none
4217 # First try GNU make style include.
4218 echo "include confinc" > confmf
4219 # Ignore all kinds of additional output from `make'.
4220 case `$am_make -s -f confmf 2> /dev/null` in #(
4221 *the\ am__doit\ target*)
4222   am__include=include
4223   am__quote=
4224   _am_result=GNU
4225   ;;
4226 esac
4227 # Now try BSD make style include.
4228 if test "$am__include" = "#"; then
4229    echo '.include "confinc"' > confmf
4230    case `$am_make -s -f confmf 2> /dev/null` in #(
4231    *the\ am__doit\ target*)
4232      am__include=.include
4233      am__quote="\""
4234      _am_result=BSD
4235      ;;
4236    esac
4237 fi
4238
4239
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4241 $as_echo "$_am_result" >&6; }
4242 rm -f confinc confmf
4243
4244 # Check whether --enable-dependency-tracking was given.
4245 if test "${enable_dependency_tracking+set}" = set; then :
4246   enableval=$enable_dependency_tracking;
4247 fi
4248
4249 if test "x$enable_dependency_tracking" != xno; then
4250   am_depcomp="$ac_aux_dir/depcomp"
4251   AMDEPBACKSLASH='\'
4252 fi
4253  if test "x$enable_dependency_tracking" != xno; then
4254   AMDEP_TRUE=
4255   AMDEP_FALSE='#'
4256 else
4257   AMDEP_TRUE='#'
4258   AMDEP_FALSE=
4259 fi
4260
4261
4262 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4263   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4264   # is not polluted with repeated "-I."
4265   am__isrc=' -I$(srcdir)'
4266   # test to see if srcdir already configured
4267   if test -f $srcdir/config.status; then
4268     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4269   fi
4270 fi
4271
4272 # test whether we have cygpath
4273 if test -z "$CYGPATH_W"; then
4274   if (cygpath --version) >/dev/null 2>/dev/null; then
4275     CYGPATH_W='cygpath -w'
4276   else
4277     CYGPATH_W=echo
4278   fi
4279 fi
4280
4281
4282 # Define the identity of the package.
4283  PACKAGE='mech_eap'
4284  VERSION='0.1'
4285
4286
4287 cat >>confdefs.h <<_ACEOF
4288 #define PACKAGE "$PACKAGE"
4289 _ACEOF
4290
4291
4292 cat >>confdefs.h <<_ACEOF
4293 #define VERSION "$VERSION"
4294 _ACEOF
4295
4296 # Some tools Automake needs.
4297
4298 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4299
4300
4301 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4302
4303
4304 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4305
4306
4307 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4308
4309
4310 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4311
4312 # We need awk for the "check" target.  The system "awk" is bad on
4313 # some platforms.
4314 # Always define AMTAR for backward compatibility.
4315
4316 AMTAR=${AMTAR-"${am_missing_run}tar"}
4317
4318 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4319
4320
4321
4322
4323 depcc="$CC"   am_compiler_list=
4324
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4326 $as_echo_n "checking dependency style of $depcc... " >&6; }
4327 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4328   $as_echo_n "(cached) " >&6
4329 else
4330   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4331   # We make a subdir and do the tests there.  Otherwise we can end up
4332   # making bogus files that we don't know about and never remove.  For
4333   # instance it was reported that on HP-UX the gcc test will end up
4334   # making a dummy file named `D' -- because `-MD' means `put the output
4335   # in D'.
4336   mkdir conftest.dir
4337   # Copy depcomp to subdir because otherwise we won't find it if we're
4338   # using a relative directory.
4339   cp "$am_depcomp" conftest.dir
4340   cd conftest.dir
4341   # We will build objects and dependencies in a subdirectory because
4342   # it helps to detect inapplicable dependency modes.  For instance
4343   # both Tru64's cc and ICC support -MD to output dependencies as a
4344   # side effect of compilation, but ICC will put the dependencies in
4345   # the current directory while Tru64 will put them in the object
4346   # directory.
4347   mkdir sub
4348
4349   am_cv_CC_dependencies_compiler_type=none
4350   if test "$am_compiler_list" = ""; then
4351      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4352   fi
4353   am__universal=false
4354   case " $depcc " in #(
4355      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4356      esac
4357
4358   for depmode in $am_compiler_list; do
4359     # Setup a source with many dependencies, because some compilers
4360     # like to wrap large dependency lists on column 80 (with \), and
4361     # we should not choose a depcomp mode which is confused by this.
4362     #
4363     # We need to recreate these files for each test, as the compiler may
4364     # overwrite some of them when testing with obscure command lines.
4365     # This happens at least with the AIX C compiler.
4366     : > sub/conftest.c
4367     for i in 1 2 3 4 5 6; do
4368       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4369       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4370       # Solaris 8's {/usr,}/bin/sh.
4371       touch sub/conftst$i.h
4372     done
4373     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4374
4375     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4376     # mode.  It turns out that the SunPro C++ compiler does not properly
4377     # handle `-M -o', and we need to detect this.  Also, some Intel
4378     # versions had trouble with output in subdirs
4379     am__obj=sub/conftest.${OBJEXT-o}
4380     am__minus_obj="-o $am__obj"
4381     case $depmode in
4382     gcc)
4383       # This depmode causes a compiler race in universal mode.
4384       test "$am__universal" = false || continue
4385       ;;
4386     nosideeffect)
4387       # after this tag, mechanisms are not by side-effect, so they'll
4388       # only be used when explicitly requested
4389       if test "x$enable_dependency_tracking" = xyes; then
4390         continue
4391       else
4392         break
4393       fi
4394       ;;
4395     msvisualcpp | msvcmsys)
4396       # This compiler won't grok `-c -o', but also, the minuso test has
4397       # not run yet.  These depmodes are late enough in the game, and
4398       # so weak that their functioning should not be impacted.
4399       am__obj=conftest.${OBJEXT-o}
4400       am__minus_obj=
4401       ;;
4402     none) break ;;
4403     esac
4404     if depmode=$depmode \
4405        source=sub/conftest.c object=$am__obj \
4406        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4407        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4408          >/dev/null 2>conftest.err &&
4409        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4410        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4411        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4412        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4413       # icc doesn't choke on unknown options, it will just issue warnings
4414       # or remarks (even with -Werror).  So we grep stderr for any message
4415       # that says an option was ignored or not supported.
4416       # When given -MP, icc 7.0 and 7.1 complain thusly:
4417       #   icc: Command line warning: ignoring option '-M'; no argument required
4418       # The diagnosis changed in icc 8.0:
4419       #   icc: Command line remark: option '-MP' not supported
4420       if (grep 'ignoring option' conftest.err ||
4421           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4422         am_cv_CC_dependencies_compiler_type=$depmode
4423         break
4424       fi
4425     fi
4426   done
4427
4428   cd ..
4429   rm -rf conftest.dir
4430 else
4431   am_cv_CC_dependencies_compiler_type=none
4432 fi
4433
4434 fi
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4436 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4437 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4438
4439  if
4440   test "x$enable_dependency_tracking" != xno \
4441   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4442   am__fastdepCC_TRUE=
4443   am__fastdepCC_FALSE='#'
4444 else
4445   am__fastdepCC_TRUE='#'
4446   am__fastdepCC_FALSE=
4447 fi
4448
4449
4450
4451 if test "x$CC" != xcc; then
4452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4453 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4454 else
4455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4456 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4457 fi
4458 set dummy $CC; ac_cc=`$as_echo "$2" |
4459                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4460 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
4461   $as_echo_n "(cached) " >&6
4462 else
4463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h.  */
4465
4466 int
4467 main ()
4468 {
4469
4470   ;
4471   return 0;
4472 }
4473 _ACEOF
4474 # Make sure it works both with $CC and with simple cc.
4475 # We do the test twice because some compilers refuse to overwrite an
4476 # existing .o file with -o, though they will create one.
4477 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4478 rm -f conftest2.*
4479 if { { case "(($ac_try" in
4480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481   *) ac_try_echo=$ac_try;;
4482 esac
4483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4484 $as_echo "$ac_try_echo"; } >&5
4485   (eval "$ac_try") 2>&5
4486   ac_status=$?
4487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488   test $ac_status = 0; } &&
4489    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491   *) ac_try_echo=$ac_try;;
4492 esac
4493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4494 $as_echo "$ac_try_echo"; } >&5
4495   (eval "$ac_try") 2>&5
4496   ac_status=$?
4497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498   test $ac_status = 0; };
4499 then
4500   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4501   if test "x$CC" != xcc; then
4502     # Test first that cc exists at all.
4503     if { ac_try='cc -c conftest.$ac_ext >&5'
4504   { { case "(($ac_try" in
4505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506   *) ac_try_echo=$ac_try;;
4507 esac
4508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509 $as_echo "$ac_try_echo"; } >&5
4510   (eval "$ac_try") 2>&5
4511   ac_status=$?
4512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513   test $ac_status = 0; }; }; then
4514       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4515       rm -f conftest2.*
4516       if { { case "(($ac_try" in
4517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518   *) ac_try_echo=$ac_try;;
4519 esac
4520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4521 $as_echo "$ac_try_echo"; } >&5
4522   (eval "$ac_try") 2>&5
4523   ac_status=$?
4524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525   test $ac_status = 0; } &&
4526          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528   *) ac_try_echo=$ac_try;;
4529 esac
4530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4531 $as_echo "$ac_try_echo"; } >&5
4532   (eval "$ac_try") 2>&5
4533   ac_status=$?
4534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535   test $ac_status = 0; };
4536       then
4537         # cc works too.
4538         :
4539       else
4540         # cc exists but doesn't like -o.
4541         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4542       fi
4543     fi
4544   fi
4545 else
4546   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4547 fi
4548 rm -f core conftest*
4549
4550 fi
4551 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553 $as_echo "yes" >&6; }
4554 else
4555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4557
4558 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4559
4560 fi
4561
4562 # FIXME: we rely on the cache variable name because
4563 # there is no other way.
4564 set dummy $CC
4565 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4566 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4567 if test "$am_t" != yes; then
4568    # Losing compiler, so override with the script.
4569    # FIXME: It is wrong to rewrite CC.
4570    # But if we don't then we get into trouble of one sort or another.
4571    # A longer-term fix would be to have automake use am__CC in this case,
4572    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4573    CC="$am_aux_dir/compile $CC"
4574 fi
4575
4576
4577
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4579 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4580     # Check whether --enable-maintainer-mode was given.
4581 if test "${enable_maintainer_mode+set}" = set; then :
4582   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4583 else
4584   USE_MAINTAINER_MODE=no
4585 fi
4586
4587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4588 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4589    if test $USE_MAINTAINER_MODE = yes; then
4590   MAINTAINER_MODE_TRUE=
4591   MAINTAINER_MODE_FALSE='#'
4592 else
4593   MAINTAINER_MODE_TRUE='#'
4594   MAINTAINER_MODE_FALSE=
4595 fi
4596
4597   MAINT=$MAINTAINER_MODE_TRUE
4598
4599
4600
4601 case `pwd` in
4602   *\ * | *\     *)
4603     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4604 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4605 esac
4606
4607
4608
4609 macro_version='2.2.6b'
4610 macro_revision='1.3017'
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624 ltmain="$ac_aux_dir/ltmain.sh"
4625
4626 # Make sure we can run config.sub.
4627 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4628   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4629
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4631 $as_echo_n "checking build system type... " >&6; }
4632 if test "${ac_cv_build+set}" = set; then :
4633   $as_echo_n "(cached) " >&6
4634 else
4635   ac_build_alias=$build_alias
4636 test "x$ac_build_alias" = x &&
4637   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4638 test "x$ac_build_alias" = x &&
4639   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4640 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4641   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4642
4643 fi
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4645 $as_echo "$ac_cv_build" >&6; }
4646 case $ac_cv_build in
4647 *-*-*) ;;
4648 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4649 esac
4650 build=$ac_cv_build
4651 ac_save_IFS=$IFS; IFS='-'
4652 set x $ac_cv_build
4653 shift
4654 build_cpu=$1
4655 build_vendor=$2
4656 shift; shift
4657 # Remember, the first character of IFS is used to create $*,
4658 # except with old shells:
4659 build_os=$*
4660 IFS=$ac_save_IFS
4661 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4662
4663
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4665 $as_echo_n "checking host system type... " >&6; }
4666 if test "${ac_cv_host+set}" = set; then :
4667   $as_echo_n "(cached) " >&6
4668 else
4669   if test "x$host_alias" = x; then
4670   ac_cv_host=$ac_cv_build
4671 else
4672   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4673     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4674 fi
4675
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4678 $as_echo "$ac_cv_host" >&6; }
4679 case $ac_cv_host in
4680 *-*-*) ;;
4681 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4682 esac
4683 host=$ac_cv_host
4684 ac_save_IFS=$IFS; IFS='-'
4685 set x $ac_cv_host
4686 shift
4687 host_cpu=$1
4688 host_vendor=$2
4689 shift; shift
4690 # Remember, the first character of IFS is used to create $*,
4691 # except with old shells:
4692 host_os=$*
4693 IFS=$ac_save_IFS
4694 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4695
4696
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4698 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4699 if test "${ac_cv_path_SED+set}" = set; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4703      for ac_i in 1 2 3 4 5 6 7; do
4704        ac_script="$ac_script$as_nl$ac_script"
4705      done
4706      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4707      { ac_script=; unset ac_script;}
4708      if test -z "$SED"; then
4709   ac_path_SED_found=false
4710   # Loop through the user's path and test for each of PROGNAME-LIST
4711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714   IFS=$as_save_IFS
4715   test -z "$as_dir" && as_dir=.
4716     for ac_prog in sed gsed; do
4717     for ac_exec_ext in '' $ac_executable_extensions; do
4718       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4719       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4720 # Check for GNU ac_path_SED and select it if it is found.
4721   # Check for GNU $ac_path_SED
4722 case `"$ac_path_SED" --version 2>&1` in
4723 *GNU*)
4724   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4725 *)
4726   ac_count=0
4727   $as_echo_n 0123456789 >"conftest.in"
4728   while :
4729   do
4730     cat "conftest.in" "conftest.in" >"conftest.tmp"
4731     mv "conftest.tmp" "conftest.in"
4732     cp "conftest.in" "conftest.nl"
4733     $as_echo '' >> "conftest.nl"
4734     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4735     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4736     as_fn_arith $ac_count + 1 && ac_count=$as_val
4737     if test $ac_count -gt ${ac_path_SED_max-0}; then
4738       # Best one so far, save it but keep looking for a better one
4739       ac_cv_path_SED="$ac_path_SED"
4740       ac_path_SED_max=$ac_count
4741     fi
4742     # 10*(2^10) chars as input seems more than enough
4743     test $ac_count -gt 10 && break
4744   done
4745   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4746 esac
4747
4748       $ac_path_SED_found && break 3
4749     done
4750   done
4751   done
4752 IFS=$as_save_IFS
4753   if test -z "$ac_cv_path_SED"; then
4754     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4755   fi
4756 else
4757   ac_cv_path_SED=$SED
4758 fi
4759
4760 fi
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4762 $as_echo "$ac_cv_path_SED" >&6; }
4763  SED="$ac_cv_path_SED"
4764   rm -f conftest.sed
4765
4766 test -z "$SED" && SED=sed
4767 Xsed="$SED -e 1s/^X//"
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4780 $as_echo_n "checking for fgrep... " >&6; }
4781 if test "${ac_cv_path_FGREP+set}" = set; then :
4782   $as_echo_n "(cached) " >&6
4783 else
4784   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4785    then ac_cv_path_FGREP="$GREP -F"
4786    else
4787      if test -z "$FGREP"; then
4788   ac_path_FGREP_found=false
4789   # Loop through the user's path and test for each of PROGNAME-LIST
4790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4792 do
4793   IFS=$as_save_IFS
4794   test -z "$as_dir" && as_dir=.
4795     for ac_prog in fgrep; do
4796     for ac_exec_ext in '' $ac_executable_extensions; do
4797       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4798       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4799 # Check for GNU ac_path_FGREP and select it if it is found.
4800   # Check for GNU $ac_path_FGREP
4801 case `"$ac_path_FGREP" --version 2>&1` in
4802 *GNU*)
4803   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4804 *)
4805   ac_count=0
4806   $as_echo_n 0123456789 >"conftest.in"
4807   while :
4808   do
4809     cat "conftest.in" "conftest.in" >"conftest.tmp"
4810     mv "conftest.tmp" "conftest.in"
4811     cp "conftest.in" "conftest.nl"
4812     $as_echo 'FGREP' >> "conftest.nl"
4813     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4814     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4815     as_fn_arith $ac_count + 1 && ac_count=$as_val
4816     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4817       # Best one so far, save it but keep looking for a better one
4818       ac_cv_path_FGREP="$ac_path_FGREP"
4819       ac_path_FGREP_max=$ac_count
4820     fi
4821     # 10*(2^10) chars as input seems more than enough
4822     test $ac_count -gt 10 && break
4823   done
4824   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4825 esac
4826
4827       $ac_path_FGREP_found && break 3
4828     done
4829   done
4830   done
4831 IFS=$as_save_IFS
4832   if test -z "$ac_cv_path_FGREP"; then
4833     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4834   fi
4835 else
4836   ac_cv_path_FGREP=$FGREP
4837 fi
4838
4839    fi
4840 fi
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4842 $as_echo "$ac_cv_path_FGREP" >&6; }
4843  FGREP="$ac_cv_path_FGREP"
4844
4845
4846 test -z "$GREP" && GREP=grep
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866 # Check whether --with-gnu-ld was given.
4867 if test "${with_gnu_ld+set}" = set; then :
4868   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4869 else
4870   with_gnu_ld=no
4871 fi
4872
4873 ac_prog=ld
4874 if test "$GCC" = yes; then
4875   # Check if gcc -print-prog-name=ld gives a path.
4876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4877 $as_echo_n "checking for ld used by $CC... " >&6; }
4878   case $host in
4879   *-*-mingw*)
4880     # gcc leaves a trailing carriage return which upsets mingw
4881     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4882   *)
4883     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4884   esac
4885   case $ac_prog in
4886     # Accept absolute paths.
4887     [\\/]* | ?:[\\/]*)
4888       re_direlt='/[^/][^/]*/\.\./'
4889       # Canonicalize the pathname of ld
4890       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4891       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4892         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4893       done
4894       test -z "$LD" && LD="$ac_prog"
4895       ;;
4896   "")
4897     # If it fails, then pretend we aren't using GCC.
4898     ac_prog=ld
4899     ;;
4900   *)
4901     # If it is relative, then search for the first ld in PATH.
4902     with_gnu_ld=unknown
4903     ;;
4904   esac
4905 elif test "$with_gnu_ld" = yes; then
4906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4907 $as_echo_n "checking for GNU ld... " >&6; }
4908 else
4909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4910 $as_echo_n "checking for non-GNU ld... " >&6; }
4911 fi
4912 if test "${lt_cv_path_LD+set}" = set; then :
4913   $as_echo_n "(cached) " >&6
4914 else
4915   if test -z "$LD"; then
4916   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4917   for ac_dir in $PATH; do
4918     IFS="$lt_save_ifs"
4919     test -z "$ac_dir" && ac_dir=.
4920     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4921       lt_cv_path_LD="$ac_dir/$ac_prog"
4922       # Check to see if the program is GNU ld.  I'd rather use --version,
4923       # but apparently some variants of GNU ld only accept -v.
4924       # Break only if it was the GNU/non-GNU ld that we prefer.
4925       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4926       *GNU* | *'with BFD'*)
4927         test "$with_gnu_ld" != no && break
4928         ;;
4929       *)
4930         test "$with_gnu_ld" != yes && break
4931         ;;
4932       esac
4933     fi
4934   done
4935   IFS="$lt_save_ifs"
4936 else
4937   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4938 fi
4939 fi
4940
4941 LD="$lt_cv_path_LD"
4942 if test -n "$LD"; then
4943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4944 $as_echo "$LD" >&6; }
4945 else
4946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4948 fi
4949 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4951 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4952 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4953   $as_echo_n "(cached) " >&6
4954 else
4955   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4956 case `$LD -v 2>&1 </dev/null` in
4957 *GNU* | *'with BFD'*)
4958   lt_cv_prog_gnu_ld=yes
4959   ;;
4960 *)
4961   lt_cv_prog_gnu_ld=no
4962   ;;
4963 esac
4964 fi
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4966 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4967 with_gnu_ld=$lt_cv_prog_gnu_ld
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4978 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4979 if test "${lt_cv_path_NM+set}" = set; then :
4980   $as_echo_n "(cached) " >&6
4981 else
4982   if test -n "$NM"; then
4983   # Let the user override the test.
4984   lt_cv_path_NM="$NM"
4985 else
4986   lt_nm_to_check="${ac_tool_prefix}nm"
4987   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4988     lt_nm_to_check="$lt_nm_to_check nm"
4989   fi
4990   for lt_tmp_nm in $lt_nm_to_check; do
4991     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4992     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4993       IFS="$lt_save_ifs"
4994       test -z "$ac_dir" && ac_dir=.
4995       tmp_nm="$ac_dir/$lt_tmp_nm"
4996       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4997         # Check to see if the nm accepts a BSD-compat flag.
4998         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4999         #   nm: unknown option "B" ignored
5000         # Tru64's nm complains that /dev/null is an invalid object file
5001         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5002         */dev/null* | *'Invalid file or object type'*)
5003           lt_cv_path_NM="$tmp_nm -B"
5004           break
5005           ;;
5006         *)
5007           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5008           */dev/null*)
5009             lt_cv_path_NM="$tmp_nm -p"
5010             break
5011             ;;
5012           *)
5013             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5014             continue # so that we can try to find one that supports BSD flags
5015             ;;
5016           esac
5017           ;;
5018         esac
5019       fi
5020     done
5021     IFS="$lt_save_ifs"
5022   done
5023   : ${lt_cv_path_NM=no}
5024 fi
5025 fi
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5027 $as_echo "$lt_cv_path_NM" >&6; }
5028 if test "$lt_cv_path_NM" != "no"; then
5029   NM="$lt_cv_path_NM"
5030 else
5031   # Didn't find any BSD compatible name lister, look for dumpbin.
5032   if test -n "$ac_tool_prefix"; then
5033   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5034   do
5035     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5040   $as_echo_n "(cached) " >&6
5041 else
5042   if test -n "$DUMPBIN"; then
5043   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5044 else
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5047 do
5048   IFS=$as_save_IFS
5049   test -z "$as_dir" && as_dir=.
5050     for ac_exec_ext in '' $ac_executable_extensions; do
5051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5052     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054     break 2
5055   fi
5056 done
5057   done
5058 IFS=$as_save_IFS
5059
5060 fi
5061 fi
5062 DUMPBIN=$ac_cv_prog_DUMPBIN
5063 if test -n "$DUMPBIN"; then
5064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5065 $as_echo "$DUMPBIN" >&6; }
5066 else
5067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068 $as_echo "no" >&6; }
5069 fi
5070
5071
5072     test -n "$DUMPBIN" && break
5073   done
5074 fi
5075 if test -z "$DUMPBIN"; then
5076   ac_ct_DUMPBIN=$DUMPBIN
5077   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5078 do
5079   # Extract the first word of "$ac_prog", so it can be a program name with args.
5080 set dummy $ac_prog; ac_word=$2
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5084   $as_echo_n "(cached) " >&6
5085 else
5086   if test -n "$ac_ct_DUMPBIN"; then
5087   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5091 do
5092   IFS=$as_save_IFS
5093   test -z "$as_dir" && as_dir=.
5094     for ac_exec_ext in '' $ac_executable_extensions; do
5095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098     break 2
5099   fi
5100 done
5101   done
5102 IFS=$as_save_IFS
5103
5104 fi
5105 fi
5106 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5107 if test -n "$ac_ct_DUMPBIN"; then
5108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5109 $as_echo "$ac_ct_DUMPBIN" >&6; }
5110 else
5111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5113 fi
5114
5115
5116   test -n "$ac_ct_DUMPBIN" && break
5117 done
5118
5119   if test "x$ac_ct_DUMPBIN" = x; then
5120     DUMPBIN=":"
5121   else
5122     case $cross_compiling:$ac_tool_warned in
5123 yes:)
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126 ac_tool_warned=yes ;;
5127 esac
5128     DUMPBIN=$ac_ct_DUMPBIN
5129   fi
5130 fi
5131
5132
5133   if test "$DUMPBIN" != ":"; then
5134     NM="$DUMPBIN"
5135   fi
5136 fi
5137 test -z "$NM" && NM=nm
5138
5139
5140
5141
5142
5143
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5145 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5146 if test "${lt_cv_nm_interface+set}" = set; then :
5147   $as_echo_n "(cached) " >&6
5148 else
5149   lt_cv_nm_interface="BSD nm"
5150   echo "int some_variable = 0;" > conftest.$ac_ext
5151   (eval echo "\"\$as_me:5151: $ac_compile\"" >&5)
5152   (eval "$ac_compile" 2>conftest.err)
5153   cat conftest.err >&5
5154   (eval echo "\"\$as_me:5154: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5155   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5156   cat conftest.err >&5
5157   (eval echo "\"\$as_me:5157: output\"" >&5)
5158   cat conftest.out >&5
5159   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5160     lt_cv_nm_interface="MS dumpbin"
5161   fi
5162   rm -f conftest*
5163 fi
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5165 $as_echo "$lt_cv_nm_interface" >&6; }
5166
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5168 $as_echo_n "checking whether ln -s works... " >&6; }
5169 LN_S=$as_ln_s
5170 if test "$LN_S" = "ln -s"; then
5171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5172 $as_echo "yes" >&6; }
5173 else
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5175 $as_echo "no, using $LN_S" >&6; }
5176 fi
5177
5178 # find the maximum length of command line arguments
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5180 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5181 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5182   $as_echo_n "(cached) " >&6
5183 else
5184     i=0
5185   teststring="ABCD"
5186
5187   case $build_os in
5188   msdosdjgpp*)
5189     # On DJGPP, this test can blow up pretty badly due to problems in libc
5190     # (any single argument exceeding 2000 bytes causes a buffer overrun
5191     # during glob expansion).  Even if it were fixed, the result of this
5192     # check would be larger than it should be.
5193     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5194     ;;
5195
5196   gnu*)
5197     # Under GNU Hurd, this test is not required because there is
5198     # no limit to the length of command line arguments.
5199     # Libtool will interpret -1 as no limit whatsoever
5200     lt_cv_sys_max_cmd_len=-1;
5201     ;;
5202
5203   cygwin* | mingw* | cegcc*)
5204     # On Win9x/ME, this test blows up -- it succeeds, but takes
5205     # about 5 minutes as the teststring grows exponentially.
5206     # Worse, since 9x/ME are not pre-emptively multitasking,
5207     # you end up with a "frozen" computer, even though with patience
5208     # the test eventually succeeds (with a max line length of 256k).
5209     # Instead, let's just punt: use the minimum linelength reported by
5210     # all of the supported platforms: 8192 (on NT/2K/XP).
5211     lt_cv_sys_max_cmd_len=8192;
5212     ;;
5213
5214   amigaos*)
5215     # On AmigaOS with pdksh, this test takes hours, literally.
5216     # So we just punt and use a minimum line length of 8192.
5217     lt_cv_sys_max_cmd_len=8192;
5218     ;;
5219
5220   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5221     # This has been around since 386BSD, at least.  Likely further.
5222     if test -x /sbin/sysctl; then
5223       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5224     elif test -x /usr/sbin/sysctl; then
5225       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5226     else
5227       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5228     fi
5229     # And add a safety zone
5230     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5231     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5232     ;;
5233
5234   interix*)
5235     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5236     lt_cv_sys_max_cmd_len=196608
5237     ;;
5238
5239   osf*)
5240     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5241     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5242     # nice to cause kernel panics so lets avoid the loop below.
5243     # First set a reasonable default.
5244     lt_cv_sys_max_cmd_len=16384
5245     #
5246     if test -x /sbin/sysconfig; then
5247       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5248         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5249       esac
5250     fi
5251     ;;
5252   sco3.2v5*)
5253     lt_cv_sys_max_cmd_len=102400
5254     ;;
5255   sysv5* | sco5v6* | sysv4.2uw2*)
5256     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5257     if test -n "$kargmax"; then
5258       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5259     else
5260       lt_cv_sys_max_cmd_len=32768
5261     fi
5262     ;;
5263   *)
5264     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5265     if test -n "$lt_cv_sys_max_cmd_len"; then
5266       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5267       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5268     else
5269       # Make teststring a little bigger before we do anything with it.
5270       # a 1K string should be a reasonable start.
5271       for i in 1 2 3 4 5 6 7 8 ; do
5272         teststring=$teststring$teststring
5273       done
5274       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5275       # If test is not a shell built-in, we'll probably end up computing a
5276       # maximum length that is only half of the actual maximum length, but
5277       # we can't tell.
5278       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5279                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5280               test $i != 17 # 1/2 MB should be enough
5281       do
5282         i=`expr $i + 1`
5283         teststring=$teststring$teststring
5284       done
5285       # Only check the string length outside the loop.
5286       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5287       teststring=
5288       # Add a significant safety factor because C++ compilers can tack on
5289       # massive amounts of additional arguments before passing them to the
5290       # linker.  It appears as though 1/2 is a usable value.
5291       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5292     fi
5293     ;;
5294   esac
5295
5296 fi
5297
5298 if test -n $lt_cv_sys_max_cmd_len ; then
5299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5300 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5301 else
5302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5303 $as_echo "none" >&6; }
5304 fi
5305 max_cmd_len=$lt_cv_sys_max_cmd_len
5306
5307
5308
5309
5310
5311
5312 : ${CP="cp -f"}
5313 : ${MV="mv -f"}
5314 : ${RM="rm -f"}
5315
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5317 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5318 # Try some XSI features
5319 xsi_shell=no
5320 ( _lt_dummy="a/b/c"
5321   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5322       = c,a/b,, \
5323     && eval 'test $(( 1 + 1 )) -eq 2 \
5324     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5325   && xsi_shell=yes
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5327 $as_echo "$xsi_shell" >&6; }
5328
5329
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5331 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5332 lt_shell_append=no
5333 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5334     >/dev/null 2>&1 \
5335   && lt_shell_append=yes
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5337 $as_echo "$lt_shell_append" >&6; }
5338
5339
5340 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5341   lt_unset=unset
5342 else
5343   lt_unset=false
5344 fi
5345
5346
5347
5348
5349
5350 # test EBCDIC or ASCII
5351 case `echo X|tr X '\101'` in
5352  A) # ASCII based system
5353     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5354   lt_SP2NL='tr \040 \012'
5355   lt_NL2SP='tr \015\012 \040\040'
5356   ;;
5357  *) # EBCDIC based system
5358   lt_SP2NL='tr \100 \n'
5359   lt_NL2SP='tr \r\n \100\100'
5360   ;;
5361 esac
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5372 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5373 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5374   $as_echo_n "(cached) " >&6
5375 else
5376   lt_cv_ld_reload_flag='-r'
5377 fi
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5379 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5380 reload_flag=$lt_cv_ld_reload_flag
5381 case $reload_flag in
5382 "" | " "*) ;;
5383 *) reload_flag=" $reload_flag" ;;
5384 esac
5385 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5386 case $host_os in
5387   darwin*)
5388     if test "$GCC" = yes; then
5389       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5390     else
5391       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5392     fi
5393     ;;
5394 esac
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404 if test -n "$ac_tool_prefix"; then
5405   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5406 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5410   $as_echo_n "(cached) " >&6
5411 else
5412   if test -n "$OBJDUMP"; then
5413   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5417 do
5418   IFS=$as_save_IFS
5419   test -z "$as_dir" && as_dir=.
5420     for ac_exec_ext in '' $ac_executable_extensions; do
5421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424     break 2
5425   fi
5426 done
5427   done
5428 IFS=$as_save_IFS
5429
5430 fi
5431 fi
5432 OBJDUMP=$ac_cv_prog_OBJDUMP
5433 if test -n "$OBJDUMP"; then
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5435 $as_echo "$OBJDUMP" >&6; }
5436 else
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5439 fi
5440
5441
5442 fi
5443 if test -z "$ac_cv_prog_OBJDUMP"; then
5444   ac_ct_OBJDUMP=$OBJDUMP
5445   # Extract the first word of "objdump", so it can be a program name with args.
5446 set dummy objdump; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5450   $as_echo_n "(cached) " >&6
5451 else
5452   if test -n "$ac_ct_OBJDUMP"; then
5453   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458   IFS=$as_save_IFS
5459   test -z "$as_dir" && as_dir=.
5460     for ac_exec_ext in '' $ac_executable_extensions; do
5461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464     break 2
5465   fi
5466 done
5467   done
5468 IFS=$as_save_IFS
5469
5470 fi
5471 fi
5472 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5473 if test -n "$ac_ct_OBJDUMP"; then
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5475 $as_echo "$ac_ct_OBJDUMP" >&6; }
5476 else
5477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5479 fi
5480
5481   if test "x$ac_ct_OBJDUMP" = x; then
5482     OBJDUMP="false"
5483   else
5484     case $cross_compiling:$ac_tool_warned in
5485 yes:)
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5488 ac_tool_warned=yes ;;
5489 esac
5490     OBJDUMP=$ac_ct_OBJDUMP
5491   fi
5492 else
5493   OBJDUMP="$ac_cv_prog_OBJDUMP"
5494 fi
5495
5496 test -z "$OBJDUMP" && OBJDUMP=objdump
5497
5498
5499
5500
5501
5502
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5504 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5505 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5506   $as_echo_n "(cached) " >&6
5507 else
5508   lt_cv_file_magic_cmd='$MAGIC_CMD'
5509 lt_cv_file_magic_test_file=
5510 lt_cv_deplibs_check_method='unknown'
5511 # Need to set the preceding variable on all platforms that support
5512 # interlibrary dependencies.
5513 # 'none' -- dependencies not supported.
5514 # `unknown' -- same as none, but documents that we really don't know.
5515 # 'pass_all' -- all dependencies passed with no checks.
5516 # 'test_compile' -- check by making test program.
5517 # 'file_magic [[regex]]' -- check by looking for files in library path
5518 # which responds to the $file_magic_cmd with a given extended regex.
5519 # If you have `file' or equivalent on your system and you're not sure
5520 # whether `pass_all' will *always* work, you probably want this one.
5521
5522 case $host_os in
5523 aix[4-9]*)
5524   lt_cv_deplibs_check_method=pass_all
5525   ;;
5526
5527 beos*)
5528   lt_cv_deplibs_check_method=pass_all
5529   ;;
5530
5531 bsdi[45]*)
5532   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5533   lt_cv_file_magic_cmd='/usr/bin/file -L'
5534   lt_cv_file_magic_test_file=/shlib/libc.so
5535   ;;
5536
5537 cygwin*)
5538   # func_win32_libid is a shell function defined in ltmain.sh
5539   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5540   lt_cv_file_magic_cmd='func_win32_libid'
5541   ;;
5542
5543 mingw* | pw32*)
5544   # Base MSYS/MinGW do not provide the 'file' command needed by
5545   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5546   # unless we find 'file', for example because we are cross-compiling.
5547   if ( file / ) >/dev/null 2>&1; then
5548     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5549     lt_cv_file_magic_cmd='func_win32_libid'
5550   else
5551     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5552     lt_cv_file_magic_cmd='$OBJDUMP -f'
5553   fi
5554   ;;
5555
5556 cegcc)
5557   # use the weaker test based on 'objdump'. See mingw*.
5558   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5559   lt_cv_file_magic_cmd='$OBJDUMP -f'
5560   ;;
5561
5562 darwin* | rhapsody*)
5563   lt_cv_deplibs_check_method=pass_all
5564   ;;
5565
5566 freebsd* | dragonfly*)
5567   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5568     case $host_cpu in
5569     i*86 )
5570       # Not sure whether the presence of OpenBSD here was a mistake.
5571       # Let's accept both of them until this is cleared up.
5572       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5573       lt_cv_file_magic_cmd=/usr/bin/file
5574       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5575       ;;
5576     esac
5577   else
5578     lt_cv_deplibs_check_method=pass_all
5579   fi
5580   ;;
5581
5582 gnu*)
5583   lt_cv_deplibs_check_method=pass_all
5584   ;;
5585
5586 hpux10.20* | hpux11*)
5587   lt_cv_file_magic_cmd=/usr/bin/file
5588   case $host_cpu in
5589   ia64*)
5590     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5591     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5592     ;;
5593   hppa*64*)
5594     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]'
5595     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5596     ;;
5597   *)
5598     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5599     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5600     ;;
5601   esac
5602   ;;
5603
5604 interix[3-9]*)
5605   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5606   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5607   ;;
5608
5609 irix5* | irix6* | nonstopux*)
5610   case $LD in
5611   *-32|*"-32 ") libmagic=32-bit;;
5612   *-n32|*"-n32 ") libmagic=N32;;
5613   *-64|*"-64 ") libmagic=64-bit;;
5614   *) libmagic=never-match;;
5615   esac
5616   lt_cv_deplibs_check_method=pass_all
5617   ;;
5618
5619 # This must be Linux ELF.
5620 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5621   lt_cv_deplibs_check_method=pass_all
5622   ;;
5623
5624 netbsd* | netbsdelf*-gnu)
5625   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5626     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5627   else
5628     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5629   fi
5630   ;;
5631
5632 newos6*)
5633   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5634   lt_cv_file_magic_cmd=/usr/bin/file
5635   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5636   ;;
5637
5638 *nto* | *qnx*)
5639   lt_cv_deplibs_check_method=pass_all
5640   ;;
5641
5642 openbsd*)
5643   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5644     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5645   else
5646     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5647   fi
5648   ;;
5649
5650 osf3* | osf4* | osf5*)
5651   lt_cv_deplibs_check_method=pass_all
5652   ;;
5653
5654 rdos*)
5655   lt_cv_deplibs_check_method=pass_all
5656   ;;
5657
5658 solaris*)
5659   lt_cv_deplibs_check_method=pass_all
5660   ;;
5661
5662 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5663   lt_cv_deplibs_check_method=pass_all
5664   ;;
5665
5666 sysv4 | sysv4.3*)
5667   case $host_vendor in
5668   motorola)
5669     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]'
5670     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5671     ;;
5672   ncr)
5673     lt_cv_deplibs_check_method=pass_all
5674     ;;
5675   sequent)
5676     lt_cv_file_magic_cmd='/bin/file'
5677     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5678     ;;
5679   sni)
5680     lt_cv_file_magic_cmd='/bin/file'
5681     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5682     lt_cv_file_magic_test_file=/lib/libc.so
5683     ;;
5684   siemens)
5685     lt_cv_deplibs_check_method=pass_all
5686     ;;
5687   pc)
5688     lt_cv_deplibs_check_method=pass_all
5689     ;;
5690   esac
5691   ;;
5692
5693 tpf*)
5694   lt_cv_deplibs_check_method=pass_all
5695   ;;
5696 esac
5697
5698 fi
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5700 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5701 file_magic_cmd=$lt_cv_file_magic_cmd
5702 deplibs_check_method=$lt_cv_deplibs_check_method
5703 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716 if test -n "$ac_tool_prefix"; then
5717   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5718 set dummy ${ac_tool_prefix}ar; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if test "${ac_cv_prog_AR+set}" = set; then :
5722   $as_echo_n "(cached) " >&6
5723 else
5724   if test -n "$AR"; then
5725   ac_cv_prog_AR="$AR" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5729 do
5730   IFS=$as_save_IFS
5731   test -z "$as_dir" && as_dir=.
5732     for ac_exec_ext in '' $ac_executable_extensions; do
5733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734     ac_cv_prog_AR="${ac_tool_prefix}ar"
5735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736     break 2
5737   fi
5738 done
5739   done
5740 IFS=$as_save_IFS
5741
5742 fi
5743 fi
5744 AR=$ac_cv_prog_AR
5745 if test -n "$AR"; then
5746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5747 $as_echo "$AR" >&6; }
5748 else
5749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5751 fi
5752
5753
5754 fi
5755 if test -z "$ac_cv_prog_AR"; then
5756   ac_ct_AR=$AR
5757   # Extract the first word of "ar", so it can be a program name with args.
5758 set dummy ar; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5762   $as_echo_n "(cached) " >&6
5763 else
5764   if test -n "$ac_ct_AR"; then
5765   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5769 do
5770   IFS=$as_save_IFS
5771   test -z "$as_dir" && as_dir=.
5772     for ac_exec_ext in '' $ac_executable_extensions; do
5773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774     ac_cv_prog_ac_ct_AR="ar"
5775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776     break 2
5777   fi
5778 done
5779   done
5780 IFS=$as_save_IFS
5781
5782 fi
5783 fi
5784 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5785 if test -n "$ac_ct_AR"; then
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5787 $as_echo "$ac_ct_AR" >&6; }
5788 else
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5791 fi
5792
5793   if test "x$ac_ct_AR" = x; then
5794     AR="false"
5795   else
5796     case $cross_compiling:$ac_tool_warned in
5797 yes:)
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5800 ac_tool_warned=yes ;;
5801 esac
5802     AR=$ac_ct_AR
5803   fi
5804 else
5805   AR="$ac_cv_prog_AR"
5806 fi
5807
5808 test -z "$AR" && AR=ar
5809 test -z "$AR_FLAGS" && AR_FLAGS=cru
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821 if test -n "$ac_tool_prefix"; then
5822   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}strip; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if test "${ac_cv_prog_STRIP+set}" = set; then :
5827   $as_echo_n "(cached) " >&6
5828 else
5829   if test -n "$STRIP"; then
5830   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835   IFS=$as_save_IFS
5836   test -z "$as_dir" && as_dir=.
5837     for ac_exec_ext in '' $ac_executable_extensions; do
5838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841     break 2
5842   fi
5843 done
5844   done
5845 IFS=$as_save_IFS
5846
5847 fi
5848 fi
5849 STRIP=$ac_cv_prog_STRIP
5850 if test -n "$STRIP"; then
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5852 $as_echo "$STRIP" >&6; }
5853 else
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5856 fi
5857
5858
5859 fi
5860 if test -z "$ac_cv_prog_STRIP"; then
5861   ac_ct_STRIP=$STRIP
5862   # Extract the first word of "strip", so it can be a program name with args.
5863 set dummy strip; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5867   $as_echo_n "(cached) " >&6
5868 else
5869   if test -n "$ac_ct_STRIP"; then
5870   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877     for ac_exec_ext in '' $ac_executable_extensions; do
5878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879     ac_cv_prog_ac_ct_STRIP="strip"
5880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884   done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5890 if test -n "$ac_ct_STRIP"; then
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5892 $as_echo "$ac_ct_STRIP" >&6; }
5893 else
5894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898   if test "x$ac_ct_STRIP" = x; then
5899     STRIP=":"
5900   else
5901     case $cross_compiling:$ac_tool_warned in
5902 yes:)
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5905 ac_tool_warned=yes ;;
5906 esac
5907     STRIP=$ac_ct_STRIP
5908   fi
5909 else
5910   STRIP="$ac_cv_prog_STRIP"
5911 fi
5912
5913 test -z "$STRIP" && STRIP=:
5914
5915
5916
5917
5918
5919
5920 if test -n "$ac_tool_prefix"; then
5921   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5922 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924 $as_echo_n "checking for $ac_word... " >&6; }
5925 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5926   $as_echo_n "(cached) " >&6
5927 else
5928   if test -n "$RANLIB"; then
5929   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934   IFS=$as_save_IFS
5935   test -z "$as_dir" && as_dir=.
5936     for ac_exec_ext in '' $ac_executable_extensions; do
5937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940     break 2
5941   fi
5942 done
5943   done
5944 IFS=$as_save_IFS
5945
5946 fi
5947 fi
5948 RANLIB=$ac_cv_prog_RANLIB
5949 if test -n "$RANLIB"; then
5950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5951 $as_echo "$RANLIB" >&6; }
5952 else
5953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954 $as_echo "no" >&6; }
5955 fi
5956
5957
5958 fi
5959 if test -z "$ac_cv_prog_RANLIB"; then
5960   ac_ct_RANLIB=$RANLIB
5961   # Extract the first word of "ranlib", so it can be a program name with args.
5962 set dummy ranlib; ac_word=$2
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5964 $as_echo_n "checking for $ac_word... " >&6; }
5965 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5966   $as_echo_n "(cached) " >&6
5967 else
5968   if test -n "$ac_ct_RANLIB"; then
5969   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5970 else
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 for as_dir in $PATH
5973 do
5974   IFS=$as_save_IFS
5975   test -z "$as_dir" && as_dir=.
5976     for ac_exec_ext in '' $ac_executable_extensions; do
5977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5978     ac_cv_prog_ac_ct_RANLIB="ranlib"
5979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980     break 2
5981   fi
5982 done
5983   done
5984 IFS=$as_save_IFS
5985
5986 fi
5987 fi
5988 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5989 if test -n "$ac_ct_RANLIB"; then
5990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5991 $as_echo "$ac_ct_RANLIB" >&6; }
5992 else
5993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994 $as_echo "no" >&6; }
5995 fi
5996
5997   if test "x$ac_ct_RANLIB" = x; then
5998     RANLIB=":"
5999   else
6000     case $cross_compiling:$ac_tool_warned in
6001 yes:)
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6004 ac_tool_warned=yes ;;
6005 esac
6006     RANLIB=$ac_ct_RANLIB
6007   fi
6008 else
6009   RANLIB="$ac_cv_prog_RANLIB"
6010 fi
6011
6012 test -z "$RANLIB" && RANLIB=:
6013
6014
6015
6016
6017
6018
6019 # Determine commands to create old-style static archives.
6020 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6021 old_postinstall_cmds='chmod 644 $oldlib'
6022 old_postuninstall_cmds=
6023
6024 if test -n "$RANLIB"; then
6025   case $host_os in
6026   openbsd*)
6027     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6028     ;;
6029   *)
6030     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6031     ;;
6032   esac
6033   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6034 fi
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069 # If no C compiler was specified, use CC.
6070 LTCC=${LTCC-"$CC"}
6071
6072 # If no C compiler flags were specified, use CFLAGS.
6073 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6074
6075 # Allow CC to be a program name with arguments.
6076 compiler=$CC
6077
6078
6079 # Check for command to grab the raw symbol name followed by C symbol from nm.
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6081 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6082 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6083   $as_echo_n "(cached) " >&6
6084 else
6085
6086 # These are sane defaults that work on at least a few old systems.
6087 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6088
6089 # Character class describing NM global symbol codes.
6090 symcode='[BCDEGRST]'
6091
6092 # Regexp to match symbols that can be accessed directly from C.
6093 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6094
6095 # Define system-specific variables.
6096 case $host_os in
6097 aix*)
6098   symcode='[BCDT]'
6099   ;;
6100 cygwin* | mingw* | pw32* | cegcc*)
6101   symcode='[ABCDGISTW]'
6102   ;;
6103 hpux*)
6104   if test "$host_cpu" = ia64; then
6105     symcode='[ABCDEGRST]'
6106   fi
6107   ;;
6108 irix* | nonstopux*)
6109   symcode='[BCDEGRST]'
6110   ;;
6111 osf*)
6112   symcode='[BCDEGQRST]'
6113   ;;
6114 solaris*)
6115   symcode='[BDRT]'
6116   ;;
6117 sco3.2v5*)
6118   symcode='[DT]'
6119   ;;
6120 sysv4.2uw2*)
6121   symcode='[DT]'
6122   ;;
6123 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6124   symcode='[ABDT]'
6125   ;;
6126 sysv4)
6127   symcode='[DFNSTU]'
6128   ;;
6129 esac
6130
6131 # If we're using GNU nm, then use its standard symbol codes.
6132 case `$NM -V 2>&1` in
6133 *GNU* | *'with BFD'*)
6134   symcode='[ABCDGIRSTW]' ;;
6135 esac
6136
6137 # Transform an extracted symbol line into a proper C declaration.
6138 # Some systems (esp. on ia64) link data and code symbols differently,
6139 # so use this general approach.
6140 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6141
6142 # Transform an extracted symbol line into symbol name and symbol address
6143 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6144 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'"
6145
6146 # Handle CRLF in mingw tool chain
6147 opt_cr=
6148 case $build_os in
6149 mingw*)
6150   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6151   ;;
6152 esac
6153
6154 # Try without a prefix underscore, then with it.
6155 for ac_symprfx in "" "_"; do
6156
6157   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6158   symxfrm="\\1 $ac_symprfx\\2 \\2"
6159
6160   # Write the raw and C identifiers.
6161   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6162     # Fake it for dumpbin and say T for any non-static function
6163     # and D for any global variable.
6164     # Also find C++ and __fastcall symbols from MSVC++,
6165     # which start with @ or ?.
6166     lt_cv_sys_global_symbol_pipe="$AWK '"\
6167 "     {last_section=section; section=\$ 3};"\
6168 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6169 "     \$ 0!~/External *\|/{next};"\
6170 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6171 "     {if(hide[section]) next};"\
6172 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6173 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6174 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6175 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6176 "     ' prfx=^$ac_symprfx"
6177   else
6178     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6179   fi
6180
6181   # Check to see that the pipe works correctly.
6182   pipe_works=no
6183
6184   rm -f conftest*
6185   cat > conftest.$ac_ext <<_LT_EOF
6186 #ifdef __cplusplus
6187 extern "C" {
6188 #endif
6189 char nm_test_var;
6190 void nm_test_func(void);
6191 void nm_test_func(void){}
6192 #ifdef __cplusplus
6193 }
6194 #endif
6195 int main(){nm_test_var='a';nm_test_func();return(0);}
6196 _LT_EOF
6197
6198   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6199   (eval $ac_compile) 2>&5
6200   ac_status=$?
6201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202   test $ac_status = 0; }; then
6203     # Now try to grab the symbols.
6204     nlist=conftest.nm
6205     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6206   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6207   ac_status=$?
6208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209   test $ac_status = 0; } && test -s "$nlist"; then
6210       # Try sorting and uniquifying the output.
6211       if sort "$nlist" | uniq > "$nlist"T; then
6212         mv -f "$nlist"T "$nlist"
6213       else
6214         rm -f "$nlist"T
6215       fi
6216
6217       # Make sure that we snagged all the symbols we need.
6218       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6219         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6220           cat <<_LT_EOF > conftest.$ac_ext
6221 #ifdef __cplusplus
6222 extern "C" {
6223 #endif
6224
6225 _LT_EOF
6226           # Now generate the symbol file.
6227           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6228
6229           cat <<_LT_EOF >> conftest.$ac_ext
6230
6231 /* The mapping between symbol names and symbols.  */
6232 const struct {
6233   const char *name;
6234   void       *address;
6235 }
6236 lt__PROGRAM__LTX_preloaded_symbols[] =
6237 {
6238   { "@PROGRAM@", (void *) 0 },
6239 _LT_EOF
6240           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6241           cat <<\_LT_EOF >> conftest.$ac_ext
6242   {0, (void *) 0}
6243 };
6244
6245 /* This works around a problem in FreeBSD linker */
6246 #ifdef FREEBSD_WORKAROUND
6247 static const void *lt_preloaded_setup() {
6248   return lt__PROGRAM__LTX_preloaded_symbols;
6249 }
6250 #endif
6251
6252 #ifdef __cplusplus
6253 }
6254 #endif
6255 _LT_EOF
6256           # Now try linking the two files.
6257           mv conftest.$ac_objext conftstm.$ac_objext
6258           lt_save_LIBS="$LIBS"
6259           lt_save_CFLAGS="$CFLAGS"
6260           LIBS="conftstm.$ac_objext"
6261           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6262           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6263   (eval $ac_link) 2>&5
6264   ac_status=$?
6265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6266   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6267             pipe_works=yes
6268           fi
6269           LIBS="$lt_save_LIBS"
6270           CFLAGS="$lt_save_CFLAGS"
6271         else
6272           echo "cannot find nm_test_func in $nlist" >&5
6273         fi
6274       else
6275         echo "cannot find nm_test_var in $nlist" >&5
6276       fi
6277     else
6278       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6279     fi
6280   else
6281     echo "$progname: failed program was:" >&5
6282     cat conftest.$ac_ext >&5
6283   fi
6284   rm -rf conftest* conftst*
6285
6286   # Do not use the global_symbol_pipe unless it works.
6287   if test "$pipe_works" = yes; then
6288     break
6289   else
6290     lt_cv_sys_global_symbol_pipe=
6291   fi
6292 done
6293
6294 fi
6295
6296 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6297   lt_cv_sys_global_symbol_to_cdecl=
6298 fi
6299 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6301 $as_echo "failed" >&6; }
6302 else
6303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6304 $as_echo "ok" >&6; }
6305 fi
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328 # Check whether --enable-libtool-lock was given.
6329 if test "${enable_libtool_lock+set}" = set; then :
6330   enableval=$enable_libtool_lock;
6331 fi
6332
6333 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6334
6335 # Some flags need to be propagated to the compiler or linker for good
6336 # libtool support.
6337 case $host in
6338 ia64-*-hpux*)
6339   # Find out which ABI we are using.
6340   echo 'int i;' > conftest.$ac_ext
6341   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6342   (eval $ac_compile) 2>&5
6343   ac_status=$?
6344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6345   test $ac_status = 0; }; then
6346     case `/usr/bin/file conftest.$ac_objext` in
6347       *ELF-32*)
6348         HPUX_IA64_MODE="32"
6349         ;;
6350       *ELF-64*)
6351         HPUX_IA64_MODE="64"
6352         ;;
6353     esac
6354   fi
6355   rm -rf conftest*
6356   ;;
6357 *-*-irix6*)
6358   # Find out which ABI we are using.
6359   echo '#line 6359 "configure"' > conftest.$ac_ext
6360   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6361   (eval $ac_compile) 2>&5
6362   ac_status=$?
6363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6364   test $ac_status = 0; }; then
6365     if test "$lt_cv_prog_gnu_ld" = yes; then
6366       case `/usr/bin/file conftest.$ac_objext` in
6367         *32-bit*)
6368           LD="${LD-ld} -melf32bsmip"
6369           ;;
6370         *N32*)
6371           LD="${LD-ld} -melf32bmipn32"
6372           ;;
6373         *64-bit*)
6374           LD="${LD-ld} -melf64bmip"
6375         ;;
6376       esac
6377     else
6378       case `/usr/bin/file conftest.$ac_objext` in
6379         *32-bit*)
6380           LD="${LD-ld} -32"
6381           ;;
6382         *N32*)
6383           LD="${LD-ld} -n32"
6384           ;;
6385         *64-bit*)
6386           LD="${LD-ld} -64"
6387           ;;
6388       esac
6389     fi
6390   fi
6391   rm -rf conftest*
6392   ;;
6393
6394 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6395 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6396   # Find out which ABI we are using.
6397   echo 'int i;' > conftest.$ac_ext
6398   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6399   (eval $ac_compile) 2>&5
6400   ac_status=$?
6401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402   test $ac_status = 0; }; then
6403     case `/usr/bin/file conftest.o` in
6404       *32-bit*)
6405         case $host in
6406           x86_64-*kfreebsd*-gnu)
6407             LD="${LD-ld} -m elf_i386_fbsd"
6408             ;;
6409           x86_64-*linux*)
6410             LD="${LD-ld} -m elf_i386"
6411             ;;
6412           ppc64-*linux*|powerpc64-*linux*)
6413             LD="${LD-ld} -m elf32ppclinux"
6414             ;;
6415           s390x-*linux*)
6416             LD="${LD-ld} -m elf_s390"
6417             ;;
6418           sparc64-*linux*)
6419             LD="${LD-ld} -m elf32_sparc"
6420             ;;
6421         esac
6422         ;;
6423       *64-bit*)
6424         case $host in
6425           x86_64-*kfreebsd*-gnu)
6426             LD="${LD-ld} -m elf_x86_64_fbsd"
6427             ;;
6428           x86_64-*linux*)
6429             LD="${LD-ld} -m elf_x86_64"
6430             ;;
6431           ppc*-*linux*|powerpc*-*linux*)
6432             LD="${LD-ld} -m elf64ppc"
6433             ;;
6434           s390*-*linux*|s390*-*tpf*)
6435             LD="${LD-ld} -m elf64_s390"
6436             ;;
6437           sparc*-*linux*)
6438             LD="${LD-ld} -m elf64_sparc"
6439             ;;
6440         esac
6441         ;;
6442     esac
6443   fi
6444   rm -rf conftest*
6445   ;;
6446
6447 *-*-sco3.2v5*)
6448   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6449   SAVE_CFLAGS="$CFLAGS"
6450   CFLAGS="$CFLAGS -belf"
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6452 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6453 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6454   $as_echo_n "(cached) " >&6
6455 else
6456   ac_ext=c
6457 ac_cpp='$CPP $CPPFLAGS'
6458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6461
6462      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h.  */
6464
6465 int
6466 main ()
6467 {
6468
6469   ;
6470   return 0;
6471 }
6472 _ACEOF
6473 if ac_fn_c_try_link "$LINENO"; then :
6474   lt_cv_cc_needs_belf=yes
6475 else
6476   lt_cv_cc_needs_belf=no
6477 fi
6478 rm -f core conftest.err conftest.$ac_objext \
6479     conftest$ac_exeext conftest.$ac_ext
6480      ac_ext=c
6481 ac_cpp='$CPP $CPPFLAGS'
6482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6485
6486 fi
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6488 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6489   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6490     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6491     CFLAGS="$SAVE_CFLAGS"
6492   fi
6493   ;;
6494 sparc*-*solaris*)
6495   # Find out which ABI we are using.
6496   echo 'int i;' > conftest.$ac_ext
6497   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6498   (eval $ac_compile) 2>&5
6499   ac_status=$?
6500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6501   test $ac_status = 0; }; then
6502     case `/usr/bin/file conftest.o` in
6503     *64-bit*)
6504       case $lt_cv_prog_gnu_ld in
6505       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6506       *)
6507         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6508           LD="${LD-ld} -64"
6509         fi
6510         ;;
6511       esac
6512       ;;
6513     esac
6514   fi
6515   rm -rf conftest*
6516   ;;
6517 esac
6518
6519 need_locks="$enable_libtool_lock"
6520
6521
6522   case $host_os in
6523     rhapsody* | darwin*)
6524     if test -n "$ac_tool_prefix"; then
6525   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6526 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6530   $as_echo_n "(cached) " >&6
6531 else
6532   if test -n "$DSYMUTIL"; then
6533   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538   IFS=$as_save_IFS
6539   test -z "$as_dir" && as_dir=.
6540     for ac_exec_ext in '' $ac_executable_extensions; do
6541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544     break 2
6545   fi
6546 done
6547   done
6548 IFS=$as_save_IFS
6549
6550 fi
6551 fi
6552 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6553 if test -n "$DSYMUTIL"; then
6554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6555 $as_echo "$DSYMUTIL" >&6; }
6556 else
6557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 $as_echo "no" >&6; }
6559 fi
6560
6561
6562 fi
6563 if test -z "$ac_cv_prog_DSYMUTIL"; then
6564   ac_ct_DSYMUTIL=$DSYMUTIL
6565   # Extract the first word of "dsymutil", so it can be a program name with args.
6566 set dummy dsymutil; ac_word=$2
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568 $as_echo_n "checking for $ac_word... " >&6; }
6569 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6570   $as_echo_n "(cached) " >&6
6571 else
6572   if test -n "$ac_ct_DSYMUTIL"; then
6573   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578   IFS=$as_save_IFS
6579   test -z "$as_dir" && as_dir=.
6580     for ac_exec_ext in '' $ac_executable_extensions; do
6581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584     break 2
6585   fi
6586 done
6587   done
6588 IFS=$as_save_IFS
6589
6590 fi
6591 fi
6592 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6593 if test -n "$ac_ct_DSYMUTIL"; then
6594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6595 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6596 else
6597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 $as_echo "no" >&6; }
6599 fi
6600
6601   if test "x$ac_ct_DSYMUTIL" = x; then
6602     DSYMUTIL=":"
6603   else
6604     case $cross_compiling:$ac_tool_warned in
6605 yes:)
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6608 ac_tool_warned=yes ;;
6609 esac
6610     DSYMUTIL=$ac_ct_DSYMUTIL
6611   fi
6612 else
6613   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6614 fi
6615
6616     if test -n "$ac_tool_prefix"; then
6617   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6618 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620 $as_echo_n "checking for $ac_word... " >&6; }
6621 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6622   $as_echo_n "(cached) " >&6
6623 else
6624   if test -n "$NMEDIT"; then
6625   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6626 else
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH
6629 do
6630   IFS=$as_save_IFS
6631   test -z "$as_dir" && as_dir=.
6632     for ac_exec_ext in '' $ac_executable_extensions; do
6633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636     break 2
6637   fi
6638 done
6639   done
6640 IFS=$as_save_IFS
6641
6642 fi
6643 fi
6644 NMEDIT=$ac_cv_prog_NMEDIT
6645 if test -n "$NMEDIT"; then
6646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6647 $as_echo "$NMEDIT" >&6; }
6648 else
6649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650 $as_echo "no" >&6; }
6651 fi
6652
6653
6654 fi
6655 if test -z "$ac_cv_prog_NMEDIT"; then
6656   ac_ct_NMEDIT=$NMEDIT
6657   # Extract the first word of "nmedit", so it can be a program name with args.
6658 set dummy nmedit; ac_word=$2
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6660 $as_echo_n "checking for $ac_word... " >&6; }
6661 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6662   $as_echo_n "(cached) " >&6
6663 else
6664   if test -n "$ac_ct_NMEDIT"; then
6665   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6666 else
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 for as_dir in $PATH
6669 do
6670   IFS=$as_save_IFS
6671   test -z "$as_dir" && as_dir=.
6672     for ac_exec_ext in '' $ac_executable_extensions; do
6673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6674     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676     break 2
6677   fi
6678 done
6679   done
6680 IFS=$as_save_IFS
6681
6682 fi
6683 fi
6684 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6685 if test -n "$ac_ct_NMEDIT"; then
6686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6687 $as_echo "$ac_ct_NMEDIT" >&6; }
6688 else
6689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6691 fi
6692
6693   if test "x$ac_ct_NMEDIT" = x; then
6694     NMEDIT=":"
6695   else
6696     case $cross_compiling:$ac_tool_warned in
6697 yes:)
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6700 ac_tool_warned=yes ;;
6701 esac
6702     NMEDIT=$ac_ct_NMEDIT
6703   fi
6704 else
6705   NMEDIT="$ac_cv_prog_NMEDIT"
6706 fi
6707
6708     if test -n "$ac_tool_prefix"; then
6709   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6710 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if test "${ac_cv_prog_LIPO+set}" = set; then :
6714   $as_echo_n "(cached) " >&6
6715 else
6716   if test -n "$LIPO"; then
6717   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722   IFS=$as_save_IFS
6723   test -z "$as_dir" && as_dir=.
6724     for ac_exec_ext in '' $ac_executable_extensions; do
6725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731   done
6732 IFS=$as_save_IFS
6733
6734 fi
6735 fi
6736 LIPO=$ac_cv_prog_LIPO
6737 if test -n "$LIPO"; then
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6739 $as_echo "$LIPO" >&6; }
6740 else
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6743 fi
6744
6745
6746 fi
6747 if test -z "$ac_cv_prog_LIPO"; then
6748   ac_ct_LIPO=$LIPO
6749   # Extract the first word of "lipo", so it can be a program name with args.
6750 set dummy lipo; ac_word=$2
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6754   $as_echo_n "(cached) " >&6
6755 else
6756   if test -n "$ac_ct_LIPO"; then
6757   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6758 else
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6761 do
6762   IFS=$as_save_IFS
6763   test -z "$as_dir" && as_dir=.
6764     for ac_exec_ext in '' $ac_executable_extensions; do
6765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6766     ac_cv_prog_ac_ct_LIPO="lipo"
6767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6768     break 2
6769   fi
6770 done
6771   done
6772 IFS=$as_save_IFS
6773
6774 fi
6775 fi
6776 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6777 if test -n "$ac_ct_LIPO"; then
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6779 $as_echo "$ac_ct_LIPO" >&6; }
6780 else
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6783 fi
6784
6785   if test "x$ac_ct_LIPO" = x; then
6786     LIPO=":"
6787   else
6788     case $cross_compiling:$ac_tool_warned in
6789 yes:)
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6792 ac_tool_warned=yes ;;
6793 esac
6794     LIPO=$ac_ct_LIPO
6795   fi
6796 else
6797   LIPO="$ac_cv_prog_LIPO"
6798 fi
6799
6800     if test -n "$ac_tool_prefix"; then
6801   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6802 set dummy ${ac_tool_prefix}otool; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6806   $as_echo_n "(cached) " >&6
6807 else
6808   if test -n "$OTOOL"; then
6809   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6810 else
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6813 do
6814   IFS=$as_save_IFS
6815   test -z "$as_dir" && as_dir=.
6816     for ac_exec_ext in '' $ac_executable_extensions; do
6817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6818     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820     break 2
6821   fi
6822 done
6823   done
6824 IFS=$as_save_IFS
6825
6826 fi
6827 fi
6828 OTOOL=$ac_cv_prog_OTOOL
6829 if test -n "$OTOOL"; then
6830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6831 $as_echo "$OTOOL" >&6; }
6832 else
6833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6835 fi
6836
6837
6838 fi
6839 if test -z "$ac_cv_prog_OTOOL"; then
6840   ac_ct_OTOOL=$OTOOL
6841   # Extract the first word of "otool", so it can be a program name with args.
6842 set dummy otool; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6846   $as_echo_n "(cached) " >&6
6847 else
6848   if test -n "$ac_ct_OTOOL"; then
6849   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6850 else
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854   IFS=$as_save_IFS
6855   test -z "$as_dir" && as_dir=.
6856     for ac_exec_ext in '' $ac_executable_extensions; do
6857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6858     ac_cv_prog_ac_ct_OTOOL="otool"
6859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860     break 2
6861   fi
6862 done
6863   done
6864 IFS=$as_save_IFS
6865
6866 fi
6867 fi
6868 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6869 if test -n "$ac_ct_OTOOL"; then
6870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6871 $as_echo "$ac_ct_OTOOL" >&6; }
6872 else
6873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6875 fi
6876
6877   if test "x$ac_ct_OTOOL" = x; then
6878     OTOOL=":"
6879   else
6880     case $cross_compiling:$ac_tool_warned in
6881 yes:)
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884 ac_tool_warned=yes ;;
6885 esac
6886     OTOOL=$ac_ct_OTOOL
6887   fi
6888 else
6889   OTOOL="$ac_cv_prog_OTOOL"
6890 fi
6891
6892     if test -n "$ac_tool_prefix"; then
6893   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6894 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6898   $as_echo_n "(cached) " >&6
6899 else
6900   if test -n "$OTOOL64"; then
6901   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6905 do
6906   IFS=$as_save_IFS
6907   test -z "$as_dir" && as_dir=.
6908     for ac_exec_ext in '' $ac_executable_extensions; do
6909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6910     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912     break 2
6913   fi
6914 done
6915   done
6916 IFS=$as_save_IFS
6917
6918 fi
6919 fi
6920 OTOOL64=$ac_cv_prog_OTOOL64
6921 if test -n "$OTOOL64"; then
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6923 $as_echo "$OTOOL64" >&6; }
6924 else
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6927 fi
6928
6929
6930 fi
6931 if test -z "$ac_cv_prog_OTOOL64"; then
6932   ac_ct_OTOOL64=$OTOOL64
6933   # Extract the first word of "otool64", so it can be a program name with args.
6934 set dummy otool64; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6938   $as_echo_n "(cached) " >&6
6939 else
6940   if test -n "$ac_ct_OTOOL64"; then
6941   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946   IFS=$as_save_IFS
6947   test -z "$as_dir" && as_dir=.
6948     for ac_exec_ext in '' $ac_executable_extensions; do
6949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6950     ac_cv_prog_ac_ct_OTOOL64="otool64"
6951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952     break 2
6953   fi
6954 done
6955   done
6956 IFS=$as_save_IFS
6957
6958 fi
6959 fi
6960 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6961 if test -n "$ac_ct_OTOOL64"; then
6962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6963 $as_echo "$ac_ct_OTOOL64" >&6; }
6964 else
6965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6967 fi
6968
6969   if test "x$ac_ct_OTOOL64" = x; then
6970     OTOOL64=":"
6971   else
6972     case $cross_compiling:$ac_tool_warned in
6973 yes:)
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976 ac_tool_warned=yes ;;
6977 esac
6978     OTOOL64=$ac_ct_OTOOL64
6979   fi
6980 else
6981   OTOOL64="$ac_cv_prog_OTOOL64"
6982 fi
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7011 $as_echo_n "checking for -single_module linker flag... " >&6; }
7012 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7013   $as_echo_n "(cached) " >&6
7014 else
7015   lt_cv_apple_cc_single_mod=no
7016       if test -z "${LT_MULTI_MODULE}"; then
7017         # By default we will add the -single_module flag. You can override
7018         # by either setting the environment variable LT_MULTI_MODULE
7019         # non-empty at configure time, or by adding -multi_module to the
7020         # link flags.
7021         rm -rf libconftest.dylib*
7022         echo "int foo(void){return 1;}" > conftest.c
7023         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7024 -dynamiclib -Wl,-single_module conftest.c" >&5
7025         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7026           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7027         _lt_result=$?
7028         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7029           lt_cv_apple_cc_single_mod=yes
7030         else
7031           cat conftest.err >&5
7032         fi
7033         rm -rf libconftest.dylib*
7034         rm -f conftest.*
7035       fi
7036 fi
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7038 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7040 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7041 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7042   $as_echo_n "(cached) " >&6
7043 else
7044   lt_cv_ld_exported_symbols_list=no
7045       save_LDFLAGS=$LDFLAGS
7046       echo "_main" > conftest.sym
7047       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7048       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h.  */
7050
7051 int
7052 main ()
7053 {
7054
7055   ;
7056   return 0;
7057 }
7058 _ACEOF
7059 if ac_fn_c_try_link "$LINENO"; then :
7060   lt_cv_ld_exported_symbols_list=yes
7061 else
7062   lt_cv_ld_exported_symbols_list=no
7063 fi
7064 rm -f core conftest.err conftest.$ac_objext \
7065     conftest$ac_exeext conftest.$ac_ext
7066         LDFLAGS="$save_LDFLAGS"
7067
7068 fi
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7070 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7071     case $host_os in
7072     rhapsody* | darwin1.[012])
7073       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7074     darwin1.*)
7075       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7076     darwin*) # darwin 5.x on
7077       # if running on 10.5 or later, the deployment target defaults
7078       # to the OS version, if on x86, and 10.4, the deployment
7079       # target defaults to 10.4. Don't you love it?
7080       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7081         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7082           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7083         10.[012]*)
7084           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7085         10.*)
7086           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7087       esac
7088     ;;
7089   esac
7090     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7091       _lt_dar_single_mod='$single_module'
7092     fi
7093     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7094       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7095     else
7096       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7097     fi
7098     if test "$DSYMUTIL" != ":"; then
7099       _lt_dsymutil='~$DSYMUTIL $lib || :'
7100     else
7101       _lt_dsymutil=
7102     fi
7103     ;;
7104   esac
7105
7106 for ac_header in dlfcn.h
7107 do :
7108   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7109 "
7110 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7111   cat >>confdefs.h <<_ACEOF
7112 #define HAVE_DLFCN_H 1
7113 _ACEOF
7114
7115 fi
7116
7117 done
7118
7119
7120
7121 # Set options
7122 enable_dlopen=yes
7123 # Check whether --enable-static was given.
7124 if test "${enable_static+set}" = set; then :
7125   enableval=$enable_static; p=${PACKAGE-default}
7126     case $enableval in
7127     yes) enable_static=yes ;;
7128     no) enable_static=no ;;
7129     *)
7130      enable_static=no
7131       # Look at the argument we got.  We use all the common list separators.
7132       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7133       for pkg in $enableval; do
7134         IFS="$lt_save_ifs"
7135         if test "X$pkg" = "X$p"; then
7136           enable_static=yes
7137         fi
7138       done
7139       IFS="$lt_save_ifs"
7140       ;;
7141     esac
7142 else
7143   enable_static=no
7144 fi
7145
7146
7147
7148
7149
7150
7151
7152 enable_win32_dll=yes
7153
7154 case $host in
7155 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7156   if test -n "$ac_tool_prefix"; then
7157   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}as; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if test "${ac_cv_prog_AS+set}" = set; then :
7162   $as_echo_n "(cached) " >&6
7163 else
7164   if test -n "$AS"; then
7165   ac_cv_prog_AS="$AS" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170   IFS=$as_save_IFS
7171   test -z "$as_dir" && as_dir=.
7172     for ac_exec_ext in '' $ac_executable_extensions; do
7173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174     ac_cv_prog_AS="${ac_tool_prefix}as"
7175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176     break 2
7177   fi
7178 done
7179   done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 AS=$ac_cv_prog_AS
7185 if test -n "$AS"; then
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7187 $as_echo "$AS" >&6; }
7188 else
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7192
7193
7194 fi
7195 if test -z "$ac_cv_prog_AS"; then
7196   ac_ct_AS=$AS
7197   # Extract the first word of "as", so it can be a program name with args.
7198 set dummy as; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7202   $as_echo_n "(cached) " >&6
7203 else
7204   if test -n "$ac_ct_AS"; then
7205   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210   IFS=$as_save_IFS
7211   test -z "$as_dir" && as_dir=.
7212     for ac_exec_ext in '' $ac_executable_extensions; do
7213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214     ac_cv_prog_ac_ct_AS="as"
7215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216     break 2
7217   fi
7218 done
7219   done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7225 if test -n "$ac_ct_AS"; then
7226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7227 $as_echo "$ac_ct_AS" >&6; }
7228 else
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7231 fi
7232
7233   if test "x$ac_ct_AS" = x; then
7234     AS="false"
7235   else
7236     case $cross_compiling:$ac_tool_warned in
7237 yes:)
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240 ac_tool_warned=yes ;;
7241 esac
7242     AS=$ac_ct_AS
7243   fi
7244 else
7245   AS="$ac_cv_prog_AS"
7246 fi
7247
7248   if test -n "$ac_tool_prefix"; then
7249   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7250 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7254   $as_echo_n "(cached) " >&6
7255 else
7256   if test -n "$DLLTOOL"; then
7257   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7258 else
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262   IFS=$as_save_IFS
7263   test -z "$as_dir" && as_dir=.
7264     for ac_exec_ext in '' $ac_executable_extensions; do
7265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268     break 2
7269   fi
7270 done
7271   done
7272 IFS=$as_save_IFS
7273
7274 fi
7275 fi
7276 DLLTOOL=$ac_cv_prog_DLLTOOL
7277 if test -n "$DLLTOOL"; then
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7279 $as_echo "$DLLTOOL" >&6; }
7280 else
7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284
7285
7286 fi
7287 if test -z "$ac_cv_prog_DLLTOOL"; then
7288   ac_ct_DLLTOOL=$DLLTOOL
7289   # Extract the first word of "dlltool", so it can be a program name with args.
7290 set dummy dlltool; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7294   $as_echo_n "(cached) " >&6
7295 else
7296   if test -n "$ac_ct_DLLTOOL"; then
7297   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304     for ac_exec_ext in '' $ac_executable_extensions; do
7305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311   done
7312 IFS=$as_save_IFS
7313
7314 fi
7315 fi
7316 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7317 if test -n "$ac_ct_DLLTOOL"; then
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7319 $as_echo "$ac_ct_DLLTOOL" >&6; }
7320 else
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324
7325   if test "x$ac_ct_DLLTOOL" = x; then
7326     DLLTOOL="false"
7327   else
7328     case $cross_compiling:$ac_tool_warned in
7329 yes:)
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332 ac_tool_warned=yes ;;
7333 esac
7334     DLLTOOL=$ac_ct_DLLTOOL
7335   fi
7336 else
7337   DLLTOOL="$ac_cv_prog_DLLTOOL"
7338 fi
7339
7340   if test -n "$ac_tool_prefix"; then
7341   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7346   $as_echo_n "(cached) " >&6
7347 else
7348   if test -n "$OBJDUMP"; then
7349   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356     for ac_exec_ext in '' $ac_executable_extensions; do
7357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363   done
7364 IFS=$as_save_IFS
7365
7366 fi
7367 fi
7368 OBJDUMP=$ac_cv_prog_OBJDUMP
7369 if test -n "$OBJDUMP"; then
7370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7371 $as_echo "$OBJDUMP" >&6; }
7372 else
7373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7375 fi
7376
7377
7378 fi
7379 if test -z "$ac_cv_prog_OBJDUMP"; then
7380   ac_ct_OBJDUMP=$OBJDUMP
7381   # Extract the first word of "objdump", so it can be a program name with args.
7382 set dummy objdump; ac_word=$2
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7386   $as_echo_n "(cached) " >&6
7387 else
7388   if test -n "$ac_ct_OBJDUMP"; then
7389   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7390 else
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394   IFS=$as_save_IFS
7395   test -z "$as_dir" && as_dir=.
7396     for ac_exec_ext in '' $ac_executable_extensions; do
7397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400     break 2
7401   fi
7402 done
7403   done
7404 IFS=$as_save_IFS
7405
7406 fi
7407 fi
7408 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7409 if test -n "$ac_ct_OBJDUMP"; then
7410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7411 $as_echo "$ac_ct_OBJDUMP" >&6; }
7412 else
7413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7415 fi
7416
7417   if test "x$ac_ct_OBJDUMP" = x; then
7418     OBJDUMP="false"
7419   else
7420     case $cross_compiling:$ac_tool_warned in
7421 yes:)
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424 ac_tool_warned=yes ;;
7425 esac
7426     OBJDUMP=$ac_ct_OBJDUMP
7427   fi
7428 else
7429   OBJDUMP="$ac_cv_prog_OBJDUMP"
7430 fi
7431
7432   ;;
7433 esac
7434
7435 test -z "$AS" && AS=as
7436
7437
7438
7439
7440
7441 test -z "$DLLTOOL" && DLLTOOL=dlltool
7442
7443
7444
7445
7446
7447 test -z "$OBJDUMP" && OBJDUMP=objdump
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457             # Check whether --enable-shared was given.
7458 if test "${enable_shared+set}" = set; then :
7459   enableval=$enable_shared; p=${PACKAGE-default}
7460     case $enableval in
7461     yes) enable_shared=yes ;;
7462     no) enable_shared=no ;;
7463     *)
7464       enable_shared=no
7465       # Look at the argument we got.  We use all the common list separators.
7466       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7467       for pkg in $enableval; do
7468         IFS="$lt_save_ifs"
7469         if test "X$pkg" = "X$p"; then
7470           enable_shared=yes
7471         fi
7472       done
7473       IFS="$lt_save_ifs"
7474       ;;
7475     esac
7476 else
7477   enable_shared=yes
7478 fi
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490 # Check whether --with-pic was given.
7491 if test "${with_pic+set}" = set; then :
7492   withval=$with_pic; pic_mode="$withval"
7493 else
7494   pic_mode=default
7495 fi
7496
7497
7498 test -z "$pic_mode" && pic_mode=default
7499
7500
7501
7502
7503
7504
7505
7506   # Check whether --enable-fast-install was given.
7507 if test "${enable_fast_install+set}" = set; then :
7508   enableval=$enable_fast_install; p=${PACKAGE-default}
7509     case $enableval in
7510     yes) enable_fast_install=yes ;;
7511     no) enable_fast_install=no ;;
7512     *)
7513       enable_fast_install=no
7514       # Look at the argument we got.  We use all the common list separators.
7515       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7516       for pkg in $enableval; do
7517         IFS="$lt_save_ifs"
7518         if test "X$pkg" = "X$p"; then
7519           enable_fast_install=yes
7520         fi
7521       done
7522       IFS="$lt_save_ifs"
7523       ;;
7524     esac
7525 else
7526   enable_fast_install=yes
7527 fi
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539 # This can be used to rebuild libtool when needed
7540 LIBTOOL_DEPS="$ltmain"
7541
7542 # Always use our own libtool.
7543 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569 test -z "$LN_S" && LN_S="ln -s"
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584 if test -n "${ZSH_VERSION+set}" ; then
7585    setopt NO_GLOB_SUBST
7586 fi
7587
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7589 $as_echo_n "checking for objdir... " >&6; }
7590 if test "${lt_cv_objdir+set}" = set; then :
7591   $as_echo_n "(cached) " >&6
7592 else
7593   rm -f .libs 2>/dev/null
7594 mkdir .libs 2>/dev/null
7595 if test -d .libs; then
7596   lt_cv_objdir=.libs
7597 else
7598   # MS-DOS does not allow filenames that begin with a dot.
7599   lt_cv_objdir=_libs
7600 fi
7601 rmdir .libs 2>/dev/null
7602 fi
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7604 $as_echo "$lt_cv_objdir" >&6; }
7605 objdir=$lt_cv_objdir
7606
7607
7608
7609
7610
7611 cat >>confdefs.h <<_ACEOF
7612 #define LT_OBJDIR "$lt_cv_objdir/"
7613 _ACEOF
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631 case $host_os in
7632 aix3*)
7633   # AIX sometimes has problems with the GCC collect2 program.  For some
7634   # reason, if we set the COLLECT_NAMES environment variable, the problems
7635   # vanish in a puff of smoke.
7636   if test "X${COLLECT_NAMES+set}" != Xset; then
7637     COLLECT_NAMES=
7638     export COLLECT_NAMES
7639   fi
7640   ;;
7641 esac
7642
7643 # Sed substitution that helps us do robust quoting.  It backslashifies
7644 # metacharacters that are still active within double-quoted strings.
7645 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7646
7647 # Same as above, but do not quote variable references.
7648 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7649
7650 # Sed substitution to delay expansion of an escaped shell variable in a
7651 # double_quote_subst'ed string.
7652 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7653
7654 # Sed substitution to delay expansion of an escaped single quote.
7655 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7656
7657 # Sed substitution to avoid accidental globbing in evaled expressions
7658 no_glob_subst='s/\*/\\\*/g'
7659
7660 # Global variables:
7661 ofile=libtool
7662 can_build_shared=yes
7663
7664 # All known linkers require a `.a' archive for static linking (except MSVC,
7665 # which needs '.lib').
7666 libext=a
7667
7668 with_gnu_ld="$lt_cv_prog_gnu_ld"
7669
7670 old_CC="$CC"
7671 old_CFLAGS="$CFLAGS"
7672
7673 # Set sane defaults for various variables
7674 test -z "$CC" && CC=cc
7675 test -z "$LTCC" && LTCC=$CC
7676 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7677 test -z "$LD" && LD=ld
7678 test -z "$ac_objext" && ac_objext=o
7679
7680 for cc_temp in $compiler""; do
7681   case $cc_temp in
7682     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7683     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7684     \-*) ;;
7685     *) break;;
7686   esac
7687 done
7688 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7689
7690
7691 # Only perform the check for file, if the check method requires it
7692 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7693 case $deplibs_check_method in
7694 file_magic*)
7695   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7697 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7698 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7699   $as_echo_n "(cached) " >&6
7700 else
7701   case $MAGIC_CMD in
7702 [\\/*] |  ?:[\\/]*)
7703   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7704   ;;
7705 *)
7706   lt_save_MAGIC_CMD="$MAGIC_CMD"
7707   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7708   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7709   for ac_dir in $ac_dummy; do
7710     IFS="$lt_save_ifs"
7711     test -z "$ac_dir" && ac_dir=.
7712     if test -f $ac_dir/${ac_tool_prefix}file; then
7713       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7714       if test -n "$file_magic_test_file"; then
7715         case $deplibs_check_method in
7716         "file_magic "*)
7717           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7718           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7719           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7720             $EGREP "$file_magic_regex" > /dev/null; then
7721             :
7722           else
7723             cat <<_LT_EOF 1>&2
7724
7725 *** Warning: the command libtool uses to detect shared libraries,
7726 *** $file_magic_cmd, produces output that libtool cannot recognize.
7727 *** The result is that libtool may fail to recognize shared libraries
7728 *** as such.  This will affect the creation of libtool libraries that
7729 *** depend on shared libraries, but programs linked with such libtool
7730 *** libraries will work regardless of this problem.  Nevertheless, you
7731 *** may want to report the problem to your system manager and/or to
7732 *** bug-libtool@gnu.org
7733
7734 _LT_EOF
7735           fi ;;
7736         esac
7737       fi
7738       break
7739     fi
7740   done
7741   IFS="$lt_save_ifs"
7742   MAGIC_CMD="$lt_save_MAGIC_CMD"
7743   ;;
7744 esac
7745 fi
7746
7747 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7748 if test -n "$MAGIC_CMD"; then
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7750 $as_echo "$MAGIC_CMD" >&6; }
7751 else
7752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7754 fi
7755
7756
7757
7758
7759
7760 if test -z "$lt_cv_path_MAGIC_CMD"; then
7761   if test -n "$ac_tool_prefix"; then
7762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7763 $as_echo_n "checking for file... " >&6; }
7764 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7765   $as_echo_n "(cached) " >&6
7766 else
7767   case $MAGIC_CMD in
7768 [\\/*] |  ?:[\\/]*)
7769   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7770   ;;
7771 *)
7772   lt_save_MAGIC_CMD="$MAGIC_CMD"
7773   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7774   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7775   for ac_dir in $ac_dummy; do
7776     IFS="$lt_save_ifs"
7777     test -z "$ac_dir" && ac_dir=.
7778     if test -f $ac_dir/file; then
7779       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7780       if test -n "$file_magic_test_file"; then
7781         case $deplibs_check_method in
7782         "file_magic "*)
7783           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7784           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7785           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7786             $EGREP "$file_magic_regex" > /dev/null; then
7787             :
7788           else
7789             cat <<_LT_EOF 1>&2
7790
7791 *** Warning: the command libtool uses to detect shared libraries,
7792 *** $file_magic_cmd, produces output that libtool cannot recognize.
7793 *** The result is that libtool may fail to recognize shared libraries
7794 *** as such.  This will affect the creation of libtool libraries that
7795 *** depend on shared libraries, but programs linked with such libtool
7796 *** libraries will work regardless of this problem.  Nevertheless, you
7797 *** may want to report the problem to your system manager and/or to
7798 *** bug-libtool@gnu.org
7799
7800 _LT_EOF
7801           fi ;;
7802         esac
7803       fi
7804       break
7805     fi
7806   done
7807   IFS="$lt_save_ifs"
7808   MAGIC_CMD="$lt_save_MAGIC_CMD"
7809   ;;
7810 esac
7811 fi
7812
7813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7814 if test -n "$MAGIC_CMD"; then
7815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7816 $as_echo "$MAGIC_CMD" >&6; }
7817 else
7818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7820 fi
7821
7822
7823   else
7824     MAGIC_CMD=:
7825   fi
7826 fi
7827
7828   fi
7829   ;;
7830 esac
7831
7832 # Use C for the default configuration in the libtool script
7833
7834 lt_save_CC="$CC"
7835 ac_ext=c
7836 ac_cpp='$CPP $CPPFLAGS'
7837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7840
7841
7842 # Source file extension for C test sources.
7843 ac_ext=c
7844
7845 # Object file extension for compiled C test sources.
7846 objext=o
7847 objext=$objext
7848
7849 # Code to be used in simple compile tests
7850 lt_simple_compile_test_code="int some_variable = 0;"
7851
7852 # Code to be used in simple link tests
7853 lt_simple_link_test_code='int main(){return(0);}'
7854
7855
7856
7857
7858
7859
7860
7861 # If no C compiler was specified, use CC.
7862 LTCC=${LTCC-"$CC"}
7863
7864 # If no C compiler flags were specified, use CFLAGS.
7865 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7866
7867 # Allow CC to be a program name with arguments.
7868 compiler=$CC
7869
7870 # Save the default compiler, since it gets overwritten when the other
7871 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7872 compiler_DEFAULT=$CC
7873
7874 # save warnings/boilerplate of simple test code
7875 ac_outfile=conftest.$ac_objext
7876 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7877 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7878 _lt_compiler_boilerplate=`cat conftest.err`
7879 $RM conftest*
7880
7881 ac_outfile=conftest.$ac_objext
7882 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7884 _lt_linker_boilerplate=`cat conftest.err`
7885 $RM -r conftest*
7886
7887
7888 ## CAVEAT EMPTOR:
7889 ## There is no encapsulation within the following macros, do not change
7890 ## the running order or otherwise move them around unless you know exactly
7891 ## what you are doing...
7892 if test -n "$compiler"; then
7893
7894 lt_prog_compiler_no_builtin_flag=
7895
7896 if test "$GCC" = yes; then
7897   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7898
7899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7900 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7901 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7902   $as_echo_n "(cached) " >&6
7903 else
7904   lt_cv_prog_compiler_rtti_exceptions=no
7905    ac_outfile=conftest.$ac_objext
7906    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7907    lt_compiler_flag="-fno-rtti -fno-exceptions"
7908    # Insert the option either (1) after the last *FLAGS variable, or
7909    # (2) before a word containing "conftest.", or (3) at the end.
7910    # Note that $ac_compile itself does not contain backslashes and begins
7911    # with a dollar sign (not a hyphen), so the echo should work correctly.
7912    # The option is referenced via a variable to avoid confusing sed.
7913    lt_compile=`echo "$ac_compile" | $SED \
7914    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7915    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7916    -e 's:$: $lt_compiler_flag:'`
7917    (eval echo "\"\$as_me:7917: $lt_compile\"" >&5)
7918    (eval "$lt_compile" 2>conftest.err)
7919    ac_status=$?
7920    cat conftest.err >&5
7921    echo "$as_me:7921: \$? = $ac_status" >&5
7922    if (exit $ac_status) && test -s "$ac_outfile"; then
7923      # The compiler can only warn and ignore the option if not recognized
7924      # So say no if there are warnings other than the usual output.
7925      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7926      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7927      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7928        lt_cv_prog_compiler_rtti_exceptions=yes
7929      fi
7930    fi
7931    $RM conftest*
7932
7933 fi
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7935 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7936
7937 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7938     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7939 else
7940     :
7941 fi
7942
7943 fi
7944
7945
7946
7947
7948
7949
7950   lt_prog_compiler_wl=
7951 lt_prog_compiler_pic=
7952 lt_prog_compiler_static=
7953
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7955 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7956
7957   if test "$GCC" = yes; then
7958     lt_prog_compiler_wl='-Wl,'
7959     lt_prog_compiler_static='-static'
7960
7961     case $host_os in
7962       aix*)
7963       # All AIX code is PIC.
7964       if test "$host_cpu" = ia64; then
7965         # AIX 5 now supports IA64 processor
7966         lt_prog_compiler_static='-Bstatic'
7967       fi
7968       ;;
7969
7970     amigaos*)
7971       case $host_cpu in
7972       powerpc)
7973             # see comment about AmigaOS4 .so support
7974             lt_prog_compiler_pic='-fPIC'
7975         ;;
7976       m68k)
7977             # FIXME: we need at least 68020 code to build shared libraries, but
7978             # adding the `-m68020' flag to GCC prevents building anything better,
7979             # like `-m68040'.
7980             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7981         ;;
7982       esac
7983       ;;
7984
7985     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7986       # PIC is the default for these OSes.
7987       ;;
7988
7989     mingw* | cygwin* | pw32* | os2* | cegcc*)
7990       # This hack is so that the source file can tell whether it is being
7991       # built for inclusion in a dll (and should export symbols for example).
7992       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7993       # (--disable-auto-import) libraries
7994       lt_prog_compiler_pic='-DDLL_EXPORT'
7995       ;;
7996
7997     darwin* | rhapsody*)
7998       # PIC is the default on this platform
7999       # Common symbols not allowed in MH_DYLIB files
8000       lt_prog_compiler_pic='-fno-common'
8001       ;;
8002
8003     hpux*)
8004       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8005       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8006       # sets the default TLS model and affects inlining.
8007       case $host_cpu in
8008       hppa*64*)
8009         # +Z the default
8010         ;;
8011       *)
8012         lt_prog_compiler_pic='-fPIC'
8013         ;;
8014       esac
8015       ;;
8016
8017     interix[3-9]*)
8018       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8019       # Instead, we relocate shared libraries at runtime.
8020       ;;
8021
8022     msdosdjgpp*)
8023       # Just because we use GCC doesn't mean we suddenly get shared libraries
8024       # on systems that don't support them.
8025       lt_prog_compiler_can_build_shared=no
8026       enable_shared=no
8027       ;;
8028
8029     *nto* | *qnx*)
8030       # QNX uses GNU C++, but need to define -shared option too, otherwise
8031       # it will coredump.
8032       lt_prog_compiler_pic='-fPIC -shared'
8033       ;;
8034
8035     sysv4*MP*)
8036       if test -d /usr/nec; then
8037         lt_prog_compiler_pic=-Kconform_pic
8038       fi
8039       ;;
8040
8041     *)
8042       lt_prog_compiler_pic='-fPIC'
8043       ;;
8044     esac
8045   else
8046     # PORTME Check for flag to pass linker flags through the system compiler.
8047     case $host_os in
8048     aix*)
8049       lt_prog_compiler_wl='-Wl,'
8050       if test "$host_cpu" = ia64; then
8051         # AIX 5 now supports IA64 processor
8052         lt_prog_compiler_static='-Bstatic'
8053       else
8054         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8055       fi
8056       ;;
8057
8058     mingw* | cygwin* | pw32* | os2* | cegcc*)
8059       # This hack is so that the source file can tell whether it is being
8060       # built for inclusion in a dll (and should export symbols for example).
8061       lt_prog_compiler_pic='-DDLL_EXPORT'
8062       ;;
8063
8064     hpux9* | hpux10* | hpux11*)
8065       lt_prog_compiler_wl='-Wl,'
8066       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8067       # not for PA HP-UX.
8068       case $host_cpu in
8069       hppa*64*|ia64*)
8070         # +Z the default
8071         ;;
8072       *)
8073         lt_prog_compiler_pic='+Z'
8074         ;;
8075       esac
8076       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8077       lt_prog_compiler_static='${wl}-a ${wl}archive'
8078       ;;
8079
8080     irix5* | irix6* | nonstopux*)
8081       lt_prog_compiler_wl='-Wl,'
8082       # PIC (with -KPIC) is the default.
8083       lt_prog_compiler_static='-non_shared'
8084       ;;
8085
8086     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8087       case $cc_basename in
8088       # old Intel for x86_64 which still supported -KPIC.
8089       ecc*)
8090         lt_prog_compiler_wl='-Wl,'
8091         lt_prog_compiler_pic='-KPIC'
8092         lt_prog_compiler_static='-static'
8093         ;;
8094       # icc used to be incompatible with GCC.
8095       # ICC 10 doesn't accept -KPIC any more.
8096       icc* | ifort*)
8097         lt_prog_compiler_wl='-Wl,'
8098         lt_prog_compiler_pic='-fPIC'
8099         lt_prog_compiler_static='-static'
8100         ;;
8101       # Lahey Fortran 8.1.
8102       lf95*)
8103         lt_prog_compiler_wl='-Wl,'
8104         lt_prog_compiler_pic='--shared'
8105         lt_prog_compiler_static='--static'
8106         ;;
8107       pgcc* | pgf77* | pgf90* | pgf95*)
8108         # Portland Group compilers (*not* the Pentium gcc compiler,
8109         # which looks to be a dead project)
8110         lt_prog_compiler_wl='-Wl,'
8111         lt_prog_compiler_pic='-fpic'
8112         lt_prog_compiler_static='-Bstatic'
8113         ;;
8114       ccc*)
8115         lt_prog_compiler_wl='-Wl,'
8116         # All Alpha code is PIC.
8117         lt_prog_compiler_static='-non_shared'
8118         ;;
8119       xl*)
8120         # IBM XL C 8.0/Fortran 10.1 on PPC
8121         lt_prog_compiler_wl='-Wl,'
8122         lt_prog_compiler_pic='-qpic'
8123         lt_prog_compiler_static='-qstaticlink'
8124         ;;
8125       *)
8126         case `$CC -V 2>&1 | sed 5q` in
8127         *Sun\ C*)
8128           # Sun C 5.9
8129           lt_prog_compiler_pic='-KPIC'
8130           lt_prog_compiler_static='-Bstatic'
8131           lt_prog_compiler_wl='-Wl,'
8132           ;;
8133         *Sun\ F*)
8134           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8135           lt_prog_compiler_pic='-KPIC'
8136           lt_prog_compiler_static='-Bstatic'
8137           lt_prog_compiler_wl=''
8138           ;;
8139         esac
8140         ;;
8141       esac
8142       ;;
8143
8144     newsos6)
8145       lt_prog_compiler_pic='-KPIC'
8146       lt_prog_compiler_static='-Bstatic'
8147       ;;
8148
8149     *nto* | *qnx*)
8150       # QNX uses GNU C++, but need to define -shared option too, otherwise
8151       # it will coredump.
8152       lt_prog_compiler_pic='-fPIC -shared'
8153       ;;
8154
8155     osf3* | osf4* | osf5*)
8156       lt_prog_compiler_wl='-Wl,'
8157       # All OSF/1 code is PIC.
8158       lt_prog_compiler_static='-non_shared'
8159       ;;
8160
8161     rdos*)
8162       lt_prog_compiler_static='-non_shared'
8163       ;;
8164
8165     solaris*)
8166       lt_prog_compiler_pic='-KPIC'
8167       lt_prog_compiler_static='-Bstatic'
8168       case $cc_basename in
8169       f77* | f90* | f95*)
8170         lt_prog_compiler_wl='-Qoption ld ';;
8171       *)
8172         lt_prog_compiler_wl='-Wl,';;
8173       esac
8174       ;;
8175
8176     sunos4*)
8177       lt_prog_compiler_wl='-Qoption ld '
8178       lt_prog_compiler_pic='-PIC'
8179       lt_prog_compiler_static='-Bstatic'
8180       ;;
8181
8182     sysv4 | sysv4.2uw2* | sysv4.3*)
8183       lt_prog_compiler_wl='-Wl,'
8184       lt_prog_compiler_pic='-KPIC'
8185       lt_prog_compiler_static='-Bstatic'
8186       ;;
8187
8188     sysv4*MP*)
8189       if test -d /usr/nec ;then
8190         lt_prog_compiler_pic='-Kconform_pic'
8191         lt_prog_compiler_static='-Bstatic'
8192       fi
8193       ;;
8194
8195     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8196       lt_prog_compiler_wl='-Wl,'
8197       lt_prog_compiler_pic='-KPIC'
8198       lt_prog_compiler_static='-Bstatic'
8199       ;;
8200
8201     unicos*)
8202       lt_prog_compiler_wl='-Wl,'
8203       lt_prog_compiler_can_build_shared=no
8204       ;;
8205
8206     uts4*)
8207       lt_prog_compiler_pic='-pic'
8208       lt_prog_compiler_static='-Bstatic'
8209       ;;
8210
8211     *)
8212       lt_prog_compiler_can_build_shared=no
8213       ;;
8214     esac
8215   fi
8216
8217 case $host_os in
8218   # For platforms which do not support PIC, -DPIC is meaningless:
8219   *djgpp*)
8220     lt_prog_compiler_pic=
8221     ;;
8222   *)
8223     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8224     ;;
8225 esac
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8227 $as_echo "$lt_prog_compiler_pic" >&6; }
8228
8229
8230
8231
8232
8233
8234 #
8235 # Check to make sure the PIC flag actually works.
8236 #
8237 if test -n "$lt_prog_compiler_pic"; then
8238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8239 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8240 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8241   $as_echo_n "(cached) " >&6
8242 else
8243   lt_cv_prog_compiler_pic_works=no
8244    ac_outfile=conftest.$ac_objext
8245    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8246    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8247    # Insert the option either (1) after the last *FLAGS variable, or
8248    # (2) before a word containing "conftest.", or (3) at the end.
8249    # Note that $ac_compile itself does not contain backslashes and begins
8250    # with a dollar sign (not a hyphen), so the echo should work correctly.
8251    # The option is referenced via a variable to avoid confusing sed.
8252    lt_compile=`echo "$ac_compile" | $SED \
8253    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8254    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8255    -e 's:$: $lt_compiler_flag:'`
8256    (eval echo "\"\$as_me:8256: $lt_compile\"" >&5)
8257    (eval "$lt_compile" 2>conftest.err)
8258    ac_status=$?
8259    cat conftest.err >&5
8260    echo "$as_me:8260: \$? = $ac_status" >&5
8261    if (exit $ac_status) && test -s "$ac_outfile"; then
8262      # The compiler can only warn and ignore the option if not recognized
8263      # So say no if there are warnings other than the usual output.
8264      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8265      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8266      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8267        lt_cv_prog_compiler_pic_works=yes
8268      fi
8269    fi
8270    $RM conftest*
8271
8272 fi
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8274 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8275
8276 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8277     case $lt_prog_compiler_pic in
8278      "" | " "*) ;;
8279      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8280      esac
8281 else
8282     lt_prog_compiler_pic=
8283      lt_prog_compiler_can_build_shared=no
8284 fi
8285
8286 fi
8287
8288
8289
8290
8291
8292
8293 #
8294 # Check to make sure the static flag actually works.
8295 #
8296 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8298 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8299 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8300   $as_echo_n "(cached) " >&6
8301 else
8302   lt_cv_prog_compiler_static_works=no
8303    save_LDFLAGS="$LDFLAGS"
8304    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8305    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8306    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8307      # The linker can only warn and ignore the option if not recognized
8308      # So say no if there are warnings
8309      if test -s conftest.err; then
8310        # Append any errors to the config.log.
8311        cat conftest.err 1>&5
8312        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8313        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8314        if diff conftest.exp conftest.er2 >/dev/null; then
8315          lt_cv_prog_compiler_static_works=yes
8316        fi
8317      else
8318        lt_cv_prog_compiler_static_works=yes
8319      fi
8320    fi
8321    $RM -r conftest*
8322    LDFLAGS="$save_LDFLAGS"
8323
8324 fi
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8326 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8327
8328 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8329     :
8330 else
8331     lt_prog_compiler_static=
8332 fi
8333
8334
8335
8336
8337
8338
8339
8340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8342 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8343   $as_echo_n "(cached) " >&6
8344 else
8345   lt_cv_prog_compiler_c_o=no
8346    $RM -r conftest 2>/dev/null
8347    mkdir conftest
8348    cd conftest
8349    mkdir out
8350    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8351
8352    lt_compiler_flag="-o out/conftest2.$ac_objext"
8353    # Insert the option either (1) after the last *FLAGS variable, or
8354    # (2) before a word containing "conftest.", or (3) at the end.
8355    # Note that $ac_compile itself does not contain backslashes and begins
8356    # with a dollar sign (not a hyphen), so the echo should work correctly.
8357    lt_compile=`echo "$ac_compile" | $SED \
8358    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8359    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8360    -e 's:$: $lt_compiler_flag:'`
8361    (eval echo "\"\$as_me:8361: $lt_compile\"" >&5)
8362    (eval "$lt_compile" 2>out/conftest.err)
8363    ac_status=$?
8364    cat out/conftest.err >&5
8365    echo "$as_me:8365: \$? = $ac_status" >&5
8366    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8367    then
8368      # The compiler can only warn and ignore the option if not recognized
8369      # So say no if there are warnings
8370      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8371      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8372      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8373        lt_cv_prog_compiler_c_o=yes
8374      fi
8375    fi
8376    chmod u+w . 2>&5
8377    $RM conftest*
8378    # SGI C++ compiler will create directory out/ii_files/ for
8379    # template instantiation
8380    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8381    $RM out/* && rmdir out
8382    cd ..
8383    $RM -r conftest
8384    $RM conftest*
8385
8386 fi
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8388 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8389
8390
8391
8392
8393
8394
8395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8397 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8398   $as_echo_n "(cached) " >&6
8399 else
8400   lt_cv_prog_compiler_c_o=no
8401    $RM -r conftest 2>/dev/null
8402    mkdir conftest
8403    cd conftest
8404    mkdir out
8405    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8406
8407    lt_compiler_flag="-o out/conftest2.$ac_objext"
8408    # Insert the option either (1) after the last *FLAGS variable, or
8409    # (2) before a word containing "conftest.", or (3) at the end.
8410    # Note that $ac_compile itself does not contain backslashes and begins
8411    # with a dollar sign (not a hyphen), so the echo should work correctly.
8412    lt_compile=`echo "$ac_compile" | $SED \
8413    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8414    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8415    -e 's:$: $lt_compiler_flag:'`
8416    (eval echo "\"\$as_me:8416: $lt_compile\"" >&5)
8417    (eval "$lt_compile" 2>out/conftest.err)
8418    ac_status=$?
8419    cat out/conftest.err >&5
8420    echo "$as_me:8420: \$? = $ac_status" >&5
8421    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8422    then
8423      # The compiler can only warn and ignore the option if not recognized
8424      # So say no if there are warnings
8425      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8426      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8427      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8428        lt_cv_prog_compiler_c_o=yes
8429      fi
8430    fi
8431    chmod u+w . 2>&5
8432    $RM conftest*
8433    # SGI C++ compiler will create directory out/ii_files/ for
8434    # template instantiation
8435    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8436    $RM out/* && rmdir out
8437    cd ..
8438    $RM -r conftest
8439    $RM conftest*
8440
8441 fi
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8443 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8444
8445
8446
8447
8448 hard_links="nottested"
8449 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8450   # do not overwrite the value of need_locks provided by the user
8451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8452 $as_echo_n "checking if we can lock with hard links... " >&6; }
8453   hard_links=yes
8454   $RM conftest*
8455   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8456   touch conftest.a
8457   ln conftest.a conftest.b 2>&5 || hard_links=no
8458   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8460 $as_echo "$hard_links" >&6; }
8461   if test "$hard_links" = no; then
8462     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8463 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8464     need_locks=warn
8465   fi
8466 else
8467   need_locks=no
8468 fi
8469
8470
8471
8472
8473
8474
8475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8476 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8477
8478   runpath_var=
8479   allow_undefined_flag=
8480   always_export_symbols=no
8481   archive_cmds=
8482   archive_expsym_cmds=
8483   compiler_needs_object=no
8484   enable_shared_with_static_runtimes=no
8485   export_dynamic_flag_spec=
8486   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8487   hardcode_automatic=no
8488   hardcode_direct=no
8489   hardcode_direct_absolute=no
8490   hardcode_libdir_flag_spec=
8491   hardcode_libdir_flag_spec_ld=
8492   hardcode_libdir_separator=
8493   hardcode_minus_L=no
8494   hardcode_shlibpath_var=unsupported
8495   inherit_rpath=no
8496   link_all_deplibs=unknown
8497   module_cmds=
8498   module_expsym_cmds=
8499   old_archive_from_new_cmds=
8500   old_archive_from_expsyms_cmds=
8501   thread_safe_flag_spec=
8502   whole_archive_flag_spec=
8503   # include_expsyms should be a list of space-separated symbols to be *always*
8504   # included in the symbol list
8505   include_expsyms=
8506   # exclude_expsyms can be an extended regexp of symbols to exclude
8507   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8508   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8509   # as well as any symbol that contains `d'.
8510   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8511   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8512   # platforms (ab)use it in PIC code, but their linkers get confused if
8513   # the symbol is explicitly referenced.  Since portable code cannot
8514   # rely on this symbol name, it's probably fine to never include it in
8515   # preloaded symbol tables.
8516   # Exclude shared library initialization/finalization symbols.
8517   extract_expsyms_cmds=
8518
8519   case $host_os in
8520   cygwin* | mingw* | pw32* | cegcc*)
8521     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8522     # When not using gcc, we currently assume that we are using
8523     # Microsoft Visual C++.
8524     if test "$GCC" != yes; then
8525       with_gnu_ld=no
8526     fi
8527     ;;
8528   interix*)
8529     # we just hope/assume this is gcc and not c89 (= MSVC++)
8530     with_gnu_ld=yes
8531     ;;
8532   openbsd*)
8533     with_gnu_ld=no
8534     ;;
8535   linux* | k*bsd*-gnu)
8536     link_all_deplibs=no
8537     ;;
8538   esac
8539
8540   ld_shlibs=yes
8541   if test "$with_gnu_ld" = yes; then
8542     # If archive_cmds runs LD, not CC, wlarc should be empty
8543     wlarc='${wl}'
8544
8545     # Set some defaults for GNU ld with shared library support. These
8546     # are reset later if shared libraries are not supported. Putting them
8547     # here allows them to be overridden if necessary.
8548     runpath_var=LD_RUN_PATH
8549     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8550     export_dynamic_flag_spec='${wl}--export-dynamic'
8551     # ancient GNU ld didn't support --whole-archive et. al.
8552     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8553       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8554     else
8555       whole_archive_flag_spec=
8556     fi
8557     supports_anon_versioning=no
8558     case `$LD -v 2>&1` in
8559       *GNU\ gold*) supports_anon_versioning=yes ;;
8560       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8561       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8562       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8563       *\ 2.11.*) ;; # other 2.11 versions
8564       *) supports_anon_versioning=yes ;;
8565     esac
8566
8567     # See if GNU ld supports shared libraries.
8568     case $host_os in
8569     aix[3-9]*)
8570       # On AIX/PPC, the GNU linker is very broken
8571       if test "$host_cpu" != ia64; then
8572         ld_shlibs=no
8573         cat <<_LT_EOF 1>&2
8574
8575 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8576 *** to be unable to reliably create shared libraries on AIX.
8577 *** Therefore, libtool is disabling shared libraries support.  If you
8578 *** really care for shared libraries, you may want to modify your PATH
8579 *** so that a non-GNU linker is found, and then restart.
8580
8581 _LT_EOF
8582       fi
8583       ;;
8584
8585     amigaos*)
8586       case $host_cpu in
8587       powerpc)
8588             # see comment about AmigaOS4 .so support
8589             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8590             archive_expsym_cmds=''
8591         ;;
8592       m68k)
8593             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)'
8594             hardcode_libdir_flag_spec='-L$libdir'
8595             hardcode_minus_L=yes
8596         ;;
8597       esac
8598       ;;
8599
8600     beos*)
8601       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8602         allow_undefined_flag=unsupported
8603         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8604         # support --undefined.  This deserves some investigation.  FIXME
8605         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8606       else
8607         ld_shlibs=no
8608       fi
8609       ;;
8610
8611     cygwin* | mingw* | pw32* | cegcc*)
8612       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8613       # as there is no search path for DLLs.
8614       hardcode_libdir_flag_spec='-L$libdir'
8615       allow_undefined_flag=unsupported
8616       always_export_symbols=no
8617       enable_shared_with_static_runtimes=yes
8618       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8619
8620       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8621         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8622         # If the export-symbols file already is a .def file (1st line
8623         # is EXPORTS), use it as is; otherwise, prepend...
8624         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8625           cp $export_symbols $output_objdir/$soname.def;
8626         else
8627           echo EXPORTS > $output_objdir/$soname.def;
8628           cat $export_symbols >> $output_objdir/$soname.def;
8629         fi~
8630         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8631       else
8632         ld_shlibs=no
8633       fi
8634       ;;
8635
8636     interix[3-9]*)
8637       hardcode_direct=no
8638       hardcode_shlibpath_var=no
8639       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8640       export_dynamic_flag_spec='${wl}-E'
8641       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8642       # Instead, shared libraries are loaded at an image base (0x10000000 by
8643       # default) and relocated if they conflict, which is a slow very memory
8644       # consuming and fragmenting process.  To avoid this, we pick a random,
8645       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8646       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8647       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8648       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'
8649       ;;
8650
8651     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8652       tmp_diet=no
8653       if test "$host_os" = linux-dietlibc; then
8654         case $cc_basename in
8655           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8656         esac
8657       fi
8658       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8659          && test "$tmp_diet" = no
8660       then
8661         tmp_addflag=
8662         tmp_sharedflag='-shared'
8663         case $cc_basename,$host_cpu in
8664         pgcc*)                          # Portland Group C compiler
8665           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'
8666           tmp_addflag=' $pic_flag'
8667           ;;
8668         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8669           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'
8670           tmp_addflag=' $pic_flag -Mnomain' ;;
8671         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8672           tmp_addflag=' -i_dynamic' ;;
8673         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8674           tmp_addflag=' -i_dynamic -nofor_main' ;;
8675         ifc* | ifort*)                  # Intel Fortran compiler
8676           tmp_addflag=' -nofor_main' ;;
8677         lf95*)                          # Lahey Fortran 8.1
8678           whole_archive_flag_spec=
8679           tmp_sharedflag='--shared' ;;
8680         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8681           tmp_sharedflag='-qmkshrobj'
8682           tmp_addflag= ;;
8683         esac
8684         case `$CC -V 2>&1 | sed 5q` in
8685         *Sun\ C*)                       # Sun C 5.9
8686           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'
8687           compiler_needs_object=yes
8688           tmp_sharedflag='-G' ;;
8689         *Sun\ F*)                       # Sun Fortran 8.3
8690           tmp_sharedflag='-G' ;;
8691         esac
8692         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693
8694         if test "x$supports_anon_versioning" = xyes; then
8695           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8696             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8697             echo "local: *; };" >> $output_objdir/$libname.ver~
8698             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8699         fi
8700
8701         case $cc_basename in
8702         xlf*)
8703           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8704           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8705           hardcode_libdir_flag_spec=
8706           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8707           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8708           if test "x$supports_anon_versioning" = xyes; then
8709             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8710               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8711               echo "local: *; };" >> $output_objdir/$libname.ver~
8712               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8713           fi
8714           ;;
8715         esac
8716       else
8717         ld_shlibs=no
8718       fi
8719       ;;
8720
8721     netbsd* | netbsdelf*-gnu)
8722       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8723         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8724         wlarc=
8725       else
8726         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8728       fi
8729       ;;
8730
8731     solaris*)
8732       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8733         ld_shlibs=no
8734         cat <<_LT_EOF 1>&2
8735
8736 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8737 *** create shared libraries on Solaris systems.  Therefore, libtool
8738 *** is disabling shared libraries support.  We urge you to upgrade GNU
8739 *** binutils to release 2.9.1 or newer.  Another option is to modify
8740 *** your PATH or compiler configuration so that the native linker is
8741 *** used, and then restart.
8742
8743 _LT_EOF
8744       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8745         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8747       else
8748         ld_shlibs=no
8749       fi
8750       ;;
8751
8752     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8753       case `$LD -v 2>&1` in
8754         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8755         ld_shlibs=no
8756         cat <<_LT_EOF 1>&2
8757
8758 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8759 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8760 *** is disabling shared libraries support.  We urge you to upgrade GNU
8761 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8762 *** your PATH or compiler configuration so that the native linker is
8763 *** used, and then restart.
8764
8765 _LT_EOF
8766         ;;
8767         *)
8768           # For security reasons, it is highly recommended that you always
8769           # use absolute paths for naming shared libraries, and exclude the
8770           # DT_RUNPATH tag from executables and libraries.  But doing so
8771           # requires that you compile everything twice, which is a pain.
8772           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8773             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8774             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8775             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8776           else
8777             ld_shlibs=no
8778           fi
8779         ;;
8780       esac
8781       ;;
8782
8783     sunos4*)
8784       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8785       wlarc=
8786       hardcode_direct=yes
8787       hardcode_shlibpath_var=no
8788       ;;
8789
8790     *)
8791       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8792         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8794       else
8795         ld_shlibs=no
8796       fi
8797       ;;
8798     esac
8799
8800     if test "$ld_shlibs" = no; then
8801       runpath_var=
8802       hardcode_libdir_flag_spec=
8803       export_dynamic_flag_spec=
8804       whole_archive_flag_spec=
8805     fi
8806   else
8807     # PORTME fill in a description of your system's linker (not GNU ld)
8808     case $host_os in
8809     aix3*)
8810       allow_undefined_flag=unsupported
8811       always_export_symbols=yes
8812       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'
8813       # Note: this linker hardcodes the directories in LIBPATH if there
8814       # are no directories specified by -L.
8815       hardcode_minus_L=yes
8816       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8817         # Neither direct hardcoding nor static linking is supported with a
8818         # broken collect2.
8819         hardcode_direct=unsupported
8820       fi
8821       ;;
8822
8823     aix[4-9]*)
8824       if test "$host_cpu" = ia64; then
8825         # On IA64, the linker does run time linking by default, so we don't
8826         # have to do anything special.
8827         aix_use_runtimelinking=no
8828         exp_sym_flag='-Bexport'
8829         no_entry_flag=""
8830       else
8831         # If we're using GNU nm, then we don't want the "-C" option.
8832         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8833         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8834           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'
8835         else
8836           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'
8837         fi
8838         aix_use_runtimelinking=no
8839
8840         # Test if we are trying to use run time linking or normal
8841         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8842         # need to do runtime linking.
8843         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8844           for ld_flag in $LDFLAGS; do
8845           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8846             aix_use_runtimelinking=yes
8847             break
8848           fi
8849           done
8850           ;;
8851         esac
8852
8853         exp_sym_flag='-bexport'
8854         no_entry_flag='-bnoentry'
8855       fi
8856
8857       # When large executables or shared objects are built, AIX ld can
8858       # have problems creating the table of contents.  If linking a library
8859       # or program results in "error TOC overflow" add -mminimal-toc to
8860       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8861       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8862
8863       archive_cmds=''
8864       hardcode_direct=yes
8865       hardcode_direct_absolute=yes
8866       hardcode_libdir_separator=':'
8867       link_all_deplibs=yes
8868       file_list_spec='${wl}-f,'
8869
8870       if test "$GCC" = yes; then
8871         case $host_os in aix4.[012]|aix4.[012].*)
8872         # We only want to do this on AIX 4.2 and lower, the check
8873         # below for broken collect2 doesn't work under 4.3+
8874           collect2name=`${CC} -print-prog-name=collect2`
8875           if test -f "$collect2name" &&
8876            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8877           then
8878           # We have reworked collect2
8879           :
8880           else
8881           # We have old collect2
8882           hardcode_direct=unsupported
8883           # It fails to find uninstalled libraries when the uninstalled
8884           # path is not listed in the libpath.  Setting hardcode_minus_L
8885           # to unsupported forces relinking
8886           hardcode_minus_L=yes
8887           hardcode_libdir_flag_spec='-L$libdir'
8888           hardcode_libdir_separator=
8889           fi
8890           ;;
8891         esac
8892         shared_flag='-shared'
8893         if test "$aix_use_runtimelinking" = yes; then
8894           shared_flag="$shared_flag "'${wl}-G'
8895         fi
8896         link_all_deplibs=no
8897       else
8898         # not using gcc
8899         if test "$host_cpu" = ia64; then
8900         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8901         # chokes on -Wl,-G. The following line is correct:
8902           shared_flag='-G'
8903         else
8904           if test "$aix_use_runtimelinking" = yes; then
8905             shared_flag='${wl}-G'
8906           else
8907             shared_flag='${wl}-bM:SRE'
8908           fi
8909         fi
8910       fi
8911
8912       export_dynamic_flag_spec='${wl}-bexpall'
8913       # It seems that -bexpall does not export symbols beginning with
8914       # underscore (_), so it is better to generate a list of symbols to export.
8915       always_export_symbols=yes
8916       if test "$aix_use_runtimelinking" = yes; then
8917         # Warning - without using the other runtime loading flags (-brtl),
8918         # -berok will link without error, but may produce a broken library.
8919         allow_undefined_flag='-berok'
8920         # Determine the default libpath from the value encoded in an
8921         # empty executable.
8922         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923 /* end confdefs.h.  */
8924
8925 int
8926 main ()
8927 {
8928
8929   ;
8930   return 0;
8931 }
8932 _ACEOF
8933 if ac_fn_c_try_link "$LINENO"; then :
8934
8935 lt_aix_libpath_sed='
8936     /Import File Strings/,/^$/ {
8937         /^0/ {
8938             s/^0  *\(.*\)$/\1/
8939             p
8940         }
8941     }'
8942 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8943 # Check for a 64-bit object if we didn't find anything.
8944 if test -z "$aix_libpath"; then
8945   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8946 fi
8947 fi
8948 rm -f core conftest.err conftest.$ac_objext \
8949     conftest$ac_exeext conftest.$ac_ext
8950 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8951
8952         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8953         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"
8954       else
8955         if test "$host_cpu" = ia64; then
8956           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8957           allow_undefined_flag="-z nodefs"
8958           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"
8959         else
8960          # Determine the default libpath from the value encoded in an
8961          # empty executable.
8962          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h.  */
8964
8965 int
8966 main ()
8967 {
8968
8969   ;
8970   return 0;
8971 }
8972 _ACEOF
8973 if ac_fn_c_try_link "$LINENO"; then :
8974
8975 lt_aix_libpath_sed='
8976     /Import File Strings/,/^$/ {
8977         /^0/ {
8978             s/^0  *\(.*\)$/\1/
8979             p
8980         }
8981     }'
8982 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8983 # Check for a 64-bit object if we didn't find anything.
8984 if test -z "$aix_libpath"; then
8985   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8986 fi
8987 fi
8988 rm -f core conftest.err conftest.$ac_objext \
8989     conftest$ac_exeext conftest.$ac_ext
8990 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8991
8992          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8993           # Warning - without using the other run time loading flags,
8994           # -berok will link without error, but may produce a broken library.
8995           no_undefined_flag=' ${wl}-bernotok'
8996           allow_undefined_flag=' ${wl}-berok'
8997           # Exported symbols can be pulled into shared objects from archives
8998           whole_archive_flag_spec='$convenience'
8999           archive_cmds_need_lc=yes
9000           # This is similar to how AIX traditionally builds its shared libraries.
9001           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'
9002         fi
9003       fi
9004       ;;
9005
9006     amigaos*)
9007       case $host_cpu in
9008       powerpc)
9009             # see comment about AmigaOS4 .so support
9010             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9011             archive_expsym_cmds=''
9012         ;;
9013       m68k)
9014             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)'
9015             hardcode_libdir_flag_spec='-L$libdir'
9016             hardcode_minus_L=yes
9017         ;;
9018       esac
9019       ;;
9020
9021     bsdi[45]*)
9022       export_dynamic_flag_spec=-rdynamic
9023       ;;
9024
9025     cygwin* | mingw* | pw32* | cegcc*)
9026       # When not using gcc, we currently assume that we are using
9027       # Microsoft Visual C++.
9028       # hardcode_libdir_flag_spec is actually meaningless, as there is
9029       # no search path for DLLs.
9030       hardcode_libdir_flag_spec=' '
9031       allow_undefined_flag=unsupported
9032       # Tell ltmain to make .lib files, not .a files.
9033       libext=lib
9034       # Tell ltmain to make .dll files, not .so files.
9035       shrext_cmds=".dll"
9036       # FIXME: Setting linknames here is a bad hack.
9037       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9038       # The linker will automatically build a .lib file if we build a DLL.
9039       old_archive_from_new_cmds='true'
9040       # FIXME: Should let the user specify the lib program.
9041       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9042       fix_srcfile_path='`cygpath -w "$srcfile"`'
9043       enable_shared_with_static_runtimes=yes
9044       ;;
9045
9046     darwin* | rhapsody*)
9047
9048
9049   archive_cmds_need_lc=no
9050   hardcode_direct=no
9051   hardcode_automatic=yes
9052   hardcode_shlibpath_var=unsupported
9053   whole_archive_flag_spec=''
9054   link_all_deplibs=yes
9055   allow_undefined_flag="$_lt_dar_allow_undefined"
9056   case $cc_basename in
9057      ifort*) _lt_dar_can_shared=yes ;;
9058      *) _lt_dar_can_shared=$GCC ;;
9059   esac
9060   if test "$_lt_dar_can_shared" = "yes"; then
9061     output_verbose_link_cmd=echo
9062     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9063     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9064     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}"
9065     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}"
9066
9067   else
9068   ld_shlibs=no
9069   fi
9070
9071       ;;
9072
9073     dgux*)
9074       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9075       hardcode_libdir_flag_spec='-L$libdir'
9076       hardcode_shlibpath_var=no
9077       ;;
9078
9079     freebsd1*)
9080       ld_shlibs=no
9081       ;;
9082
9083     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9084     # support.  Future versions do this automatically, but an explicit c++rt0.o
9085     # does not break anything, and helps significantly (at the cost of a little
9086     # extra space).
9087     freebsd2.2*)
9088       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9089       hardcode_libdir_flag_spec='-R$libdir'
9090       hardcode_direct=yes
9091       hardcode_shlibpath_var=no
9092       ;;
9093
9094     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9095     freebsd2*)
9096       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9097       hardcode_direct=yes
9098       hardcode_minus_L=yes
9099       hardcode_shlibpath_var=no
9100       ;;
9101
9102     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9103     freebsd* | dragonfly*)
9104       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9105       hardcode_libdir_flag_spec='-R$libdir'
9106       hardcode_direct=yes
9107       hardcode_shlibpath_var=no
9108       ;;
9109
9110     hpux9*)
9111       if test "$GCC" = yes; then
9112         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'
9113       else
9114         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'
9115       fi
9116       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9117       hardcode_libdir_separator=:
9118       hardcode_direct=yes
9119
9120       # hardcode_minus_L: Not really in the search PATH,
9121       # but as the default location of the library.
9122       hardcode_minus_L=yes
9123       export_dynamic_flag_spec='${wl}-E'
9124       ;;
9125
9126     hpux10*)
9127       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9128         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9129       else
9130         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9131       fi
9132       if test "$with_gnu_ld" = no; then
9133         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9134         hardcode_libdir_flag_spec_ld='+b $libdir'
9135         hardcode_libdir_separator=:
9136         hardcode_direct=yes
9137         hardcode_direct_absolute=yes
9138         export_dynamic_flag_spec='${wl}-E'
9139         # hardcode_minus_L: Not really in the search PATH,
9140         # but as the default location of the library.
9141         hardcode_minus_L=yes
9142       fi
9143       ;;
9144
9145     hpux11*)
9146       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9147         case $host_cpu in
9148         hppa*64*)
9149           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9150           ;;
9151         ia64*)
9152           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9153           ;;
9154         *)
9155           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9156           ;;
9157         esac
9158       else
9159         case $host_cpu in
9160         hppa*64*)
9161           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9162           ;;
9163         ia64*)
9164           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9165           ;;
9166         *)
9167           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9168           ;;
9169         esac
9170       fi
9171       if test "$with_gnu_ld" = no; then
9172         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9173         hardcode_libdir_separator=:
9174
9175         case $host_cpu in
9176         hppa*64*|ia64*)
9177           hardcode_direct=no
9178           hardcode_shlibpath_var=no
9179           ;;
9180         *)
9181           hardcode_direct=yes
9182           hardcode_direct_absolute=yes
9183           export_dynamic_flag_spec='${wl}-E'
9184
9185           # hardcode_minus_L: Not really in the search PATH,
9186           # but as the default location of the library.
9187           hardcode_minus_L=yes
9188           ;;
9189         esac
9190       fi
9191       ;;
9192
9193     irix5* | irix6* | nonstopux*)
9194       if test "$GCC" = yes; then
9195         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'
9196         # Try to use the -exported_symbol ld option, if it does not
9197         # work, assume that -exports_file does not work either and
9198         # implicitly export all symbols.
9199         save_LDFLAGS="$LDFLAGS"
9200         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9201         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h.  */
9203 int foo(void) {}
9204 _ACEOF
9205 if ac_fn_c_try_link "$LINENO"; then :
9206   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'
9207
9208 fi
9209 rm -f core conftest.err conftest.$ac_objext \
9210     conftest$ac_exeext conftest.$ac_ext
9211         LDFLAGS="$save_LDFLAGS"
9212       else
9213         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'
9214         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'
9215       fi
9216       archive_cmds_need_lc='no'
9217       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9218       hardcode_libdir_separator=:
9219       inherit_rpath=yes
9220       link_all_deplibs=yes
9221       ;;
9222
9223     netbsd* | netbsdelf*-gnu)
9224       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9225         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9226       else
9227         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9228       fi
9229       hardcode_libdir_flag_spec='-R$libdir'
9230       hardcode_direct=yes
9231       hardcode_shlibpath_var=no
9232       ;;
9233
9234     newsos6)
9235       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9236       hardcode_direct=yes
9237       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9238       hardcode_libdir_separator=:
9239       hardcode_shlibpath_var=no
9240       ;;
9241
9242     *nto* | *qnx*)
9243       ;;
9244
9245     openbsd*)
9246       if test -f /usr/libexec/ld.so; then
9247         hardcode_direct=yes
9248         hardcode_shlibpath_var=no
9249         hardcode_direct_absolute=yes
9250         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9251           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9252           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9253           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9254           export_dynamic_flag_spec='${wl}-E'
9255         else
9256           case $host_os in
9257            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9258              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9259              hardcode_libdir_flag_spec='-R$libdir'
9260              ;;
9261            *)
9262              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9263              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9264              ;;
9265           esac
9266         fi
9267       else
9268         ld_shlibs=no
9269       fi
9270       ;;
9271
9272     os2*)
9273       hardcode_libdir_flag_spec='-L$libdir'
9274       hardcode_minus_L=yes
9275       allow_undefined_flag=unsupported
9276       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'
9277       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9278       ;;
9279
9280     osf3*)
9281       if test "$GCC" = yes; then
9282         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9283         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'
9284       else
9285         allow_undefined_flag=' -expect_unresolved \*'
9286         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'
9287       fi
9288       archive_cmds_need_lc='no'
9289       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9290       hardcode_libdir_separator=:
9291       ;;
9292
9293     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9294       if test "$GCC" = yes; then
9295         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9296         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'
9297         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9298       else
9299         allow_undefined_flag=' -expect_unresolved \*'
9300         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'
9301         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~
9302         $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'
9303
9304         # Both c and cxx compiler support -rpath directly
9305         hardcode_libdir_flag_spec='-rpath $libdir'
9306       fi
9307       archive_cmds_need_lc='no'
9308       hardcode_libdir_separator=:
9309       ;;
9310
9311     solaris*)
9312       no_undefined_flag=' -z defs'
9313       if test "$GCC" = yes; then
9314         wlarc='${wl}'
9315         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9316         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9317           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9318       else
9319         case `$CC -V 2>&1` in
9320         *"Compilers 5.0"*)
9321           wlarc=''
9322           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9323           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9324           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9325           ;;
9326         *)
9327           wlarc='${wl}'
9328           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9329           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9330           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9331           ;;
9332         esac
9333       fi
9334       hardcode_libdir_flag_spec='-R$libdir'
9335       hardcode_shlibpath_var=no
9336       case $host_os in
9337       solaris2.[0-5] | solaris2.[0-5].*) ;;
9338       *)
9339         # The compiler driver will combine and reorder linker options,
9340         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9341         # but is careful enough not to reorder.
9342         # Supported since Solaris 2.6 (maybe 2.5.1?)
9343         if test "$GCC" = yes; then
9344           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9345         else
9346           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9347         fi
9348         ;;
9349       esac
9350       link_all_deplibs=yes
9351       ;;
9352
9353     sunos4*)
9354       if test "x$host_vendor" = xsequent; then
9355         # Use $CC to link under sequent, because it throws in some extra .o
9356         # files that make .init and .fini sections work.
9357         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9358       else
9359         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9360       fi
9361       hardcode_libdir_flag_spec='-L$libdir'
9362       hardcode_direct=yes
9363       hardcode_minus_L=yes
9364       hardcode_shlibpath_var=no
9365       ;;
9366
9367     sysv4)
9368       case $host_vendor in
9369         sni)
9370           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371           hardcode_direct=yes # is this really true???
9372         ;;
9373         siemens)
9374           ## LD is ld it makes a PLAMLIB
9375           ## CC just makes a GrossModule.
9376           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9377           reload_cmds='$CC -r -o $output$reload_objs'
9378           hardcode_direct=no
9379         ;;
9380         motorola)
9381           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9383         ;;
9384       esac
9385       runpath_var='LD_RUN_PATH'
9386       hardcode_shlibpath_var=no
9387       ;;
9388
9389     sysv4.3*)
9390       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391       hardcode_shlibpath_var=no
9392       export_dynamic_flag_spec='-Bexport'
9393       ;;
9394
9395     sysv4*MP*)
9396       if test -d /usr/nec; then
9397         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9398         hardcode_shlibpath_var=no
9399         runpath_var=LD_RUN_PATH
9400         hardcode_runpath_var=yes
9401         ld_shlibs=yes
9402       fi
9403       ;;
9404
9405     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9406       no_undefined_flag='${wl}-z,text'
9407       archive_cmds_need_lc=no
9408       hardcode_shlibpath_var=no
9409       runpath_var='LD_RUN_PATH'
9410
9411       if test "$GCC" = yes; then
9412         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9413         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9414       else
9415         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9416         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9417       fi
9418       ;;
9419
9420     sysv5* | sco3.2v5* | sco5v6*)
9421       # Note: We can NOT use -z defs as we might desire, because we do not
9422       # link with -lc, and that would cause any symbols used from libc to
9423       # always be unresolved, which means just about no library would
9424       # ever link correctly.  If we're not using GNU ld we use -z text
9425       # though, which does catch some bad symbols but isn't as heavy-handed
9426       # as -z defs.
9427       no_undefined_flag='${wl}-z,text'
9428       allow_undefined_flag='${wl}-z,nodefs'
9429       archive_cmds_need_lc=no
9430       hardcode_shlibpath_var=no
9431       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9432       hardcode_libdir_separator=':'
9433       link_all_deplibs=yes
9434       export_dynamic_flag_spec='${wl}-Bexport'
9435       runpath_var='LD_RUN_PATH'
9436
9437       if test "$GCC" = yes; then
9438         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440       else
9441         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9443       fi
9444       ;;
9445
9446     uts4*)
9447       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9448       hardcode_libdir_flag_spec='-L$libdir'
9449       hardcode_shlibpath_var=no
9450       ;;
9451
9452     *)
9453       ld_shlibs=no
9454       ;;
9455     esac
9456
9457     if test x$host_vendor = xsni; then
9458       case $host in
9459       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9460         export_dynamic_flag_spec='${wl}-Blargedynsym'
9461         ;;
9462       esac
9463     fi
9464   fi
9465
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9467 $as_echo "$ld_shlibs" >&6; }
9468 test "$ld_shlibs" = no && can_build_shared=no
9469
9470 with_gnu_ld=$with_gnu_ld
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486 #
9487 # Do we need to explicitly link libc?
9488 #
9489 case "x$archive_cmds_need_lc" in
9490 x|xyes)
9491   # Assume -lc should be added
9492   archive_cmds_need_lc=yes
9493
9494   if test "$enable_shared" = yes && test "$GCC" = yes; then
9495     case $archive_cmds in
9496     *'~'*)
9497       # FIXME: we may have to deal with multi-command sequences.
9498       ;;
9499     '$CC '*)
9500       # Test whether the compiler implicitly links with -lc since on some
9501       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9502       # to ld, don't add -lc before -lgcc.
9503       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9504 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9505       $RM conftest*
9506       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9507
9508       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9509   (eval $ac_compile) 2>&5
9510   ac_status=$?
9511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9512   test $ac_status = 0; } 2>conftest.err; then
9513         soname=conftest
9514         lib=conftest
9515         libobjs=conftest.$ac_objext
9516         deplibs=
9517         wl=$lt_prog_compiler_wl
9518         pic_flag=$lt_prog_compiler_pic
9519         compiler_flags=-v
9520         linker_flags=-v
9521         verstring=
9522         output_objdir=.
9523         libname=conftest
9524         lt_save_allow_undefined_flag=$allow_undefined_flag
9525         allow_undefined_flag=
9526         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9527   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9528   ac_status=$?
9529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9530   test $ac_status = 0; }
9531         then
9532           archive_cmds_need_lc=no
9533         else
9534           archive_cmds_need_lc=yes
9535         fi
9536         allow_undefined_flag=$lt_save_allow_undefined_flag
9537       else
9538         cat conftest.err 1>&5
9539       fi
9540       $RM conftest*
9541       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9542 $as_echo "$archive_cmds_need_lc" >&6; }
9543       ;;
9544     esac
9545   fi
9546   ;;
9547 esac
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9706 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9707
9708 if test "$GCC" = yes; then
9709   case $host_os in
9710     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9711     *) lt_awk_arg="/^libraries:/" ;;
9712   esac
9713   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9714   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9715     # if the path contains ";" then we assume it to be the separator
9716     # otherwise default to the standard path separator (i.e. ":") - it is
9717     # assumed that no part of a normal pathname contains ";" but that should
9718     # okay in the real world where ";" in dirpaths is itself problematic.
9719     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9720   else
9721     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9722   fi
9723   # Ok, now we have the path, separated by spaces, we can step through it
9724   # and add multilib dir if necessary.
9725   lt_tmp_lt_search_path_spec=
9726   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9727   for lt_sys_path in $lt_search_path_spec; do
9728     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9729       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9730     else
9731       test -d "$lt_sys_path" && \
9732         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9733     fi
9734   done
9735   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9736 BEGIN {RS=" "; FS="/|\n";} {
9737   lt_foo="";
9738   lt_count=0;
9739   for (lt_i = NF; lt_i > 0; lt_i--) {
9740     if ($lt_i != "" && $lt_i != ".") {
9741       if ($lt_i == "..") {
9742         lt_count++;
9743       } else {
9744         if (lt_count == 0) {
9745           lt_foo="/" $lt_i lt_foo;
9746         } else {
9747           lt_count--;
9748         }
9749       }
9750     }
9751   }
9752   if (lt_foo != "") { lt_freq[lt_foo]++; }
9753   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9754 }'`
9755   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9756 else
9757   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9758 fi
9759 library_names_spec=
9760 libname_spec='lib$name'
9761 soname_spec=
9762 shrext_cmds=".so"
9763 postinstall_cmds=
9764 postuninstall_cmds=
9765 finish_cmds=
9766 finish_eval=
9767 shlibpath_var=
9768 shlibpath_overrides_runpath=unknown
9769 version_type=none
9770 dynamic_linker="$host_os ld.so"
9771 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9772 need_lib_prefix=unknown
9773 hardcode_into_libs=no
9774
9775 # when you set need_version to no, make sure it does not cause -set_version
9776 # flags to be left without arguments
9777 need_version=unknown
9778
9779 case $host_os in
9780 aix3*)
9781   version_type=linux
9782   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9783   shlibpath_var=LIBPATH
9784
9785   # AIX 3 has no versioning support, so we append a major version to the name.
9786   soname_spec='${libname}${release}${shared_ext}$major'
9787   ;;
9788
9789 aix[4-9]*)
9790   version_type=linux
9791   need_lib_prefix=no
9792   need_version=no
9793   hardcode_into_libs=yes
9794   if test "$host_cpu" = ia64; then
9795     # AIX 5 supports IA64
9796     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9797     shlibpath_var=LD_LIBRARY_PATH
9798   else
9799     # With GCC up to 2.95.x, collect2 would create an import file
9800     # for dependence libraries.  The import file would start with
9801     # the line `#! .'.  This would cause the generated library to
9802     # depend on `.', always an invalid library.  This was fixed in
9803     # development snapshots of GCC prior to 3.0.
9804     case $host_os in
9805       aix4 | aix4.[01] | aix4.[01].*)
9806       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9807            echo ' yes '
9808            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9809         :
9810       else
9811         can_build_shared=no
9812       fi
9813       ;;
9814     esac
9815     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9816     # soname into executable. Probably we can add versioning support to
9817     # collect2, so additional links can be useful in future.
9818     if test "$aix_use_runtimelinking" = yes; then
9819       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9820       # instead of lib<name>.a to let people know that these are not
9821       # typical AIX shared libraries.
9822       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9823     else
9824       # We preserve .a as extension for shared libraries through AIX4.2
9825       # and later when we are not doing run time linking.
9826       library_names_spec='${libname}${release}.a $libname.a'
9827       soname_spec='${libname}${release}${shared_ext}$major'
9828     fi
9829     shlibpath_var=LIBPATH
9830   fi
9831   ;;
9832
9833 amigaos*)
9834   case $host_cpu in
9835   powerpc)
9836     # Since July 2007 AmigaOS4 officially supports .so libraries.
9837     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9839     ;;
9840   m68k)
9841     library_names_spec='$libname.ixlibrary $libname.a'
9842     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9843     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'
9844     ;;
9845   esac
9846   ;;
9847
9848 beos*)
9849   library_names_spec='${libname}${shared_ext}'
9850   dynamic_linker="$host_os ld.so"
9851   shlibpath_var=LIBRARY_PATH
9852   ;;
9853
9854 bsdi[45]*)
9855   version_type=linux
9856   need_version=no
9857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858   soname_spec='${libname}${release}${shared_ext}$major'
9859   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9860   shlibpath_var=LD_LIBRARY_PATH
9861   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9862   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9863   # the default ld.so.conf also contains /usr/contrib/lib and
9864   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9865   # libtool to hard-code these into programs
9866   ;;
9867
9868 cygwin* | mingw* | pw32* | cegcc*)
9869   version_type=windows
9870   shrext_cmds=".dll"
9871   need_version=no
9872   need_lib_prefix=no
9873
9874   case $GCC,$host_os in
9875   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9876     library_names_spec='$libname.dll.a'
9877     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9878     postinstall_cmds='base_file=`basename \${file}`~
9879       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9880       dldir=$destdir/`dirname \$dlpath`~
9881       test -d \$dldir || mkdir -p \$dldir~
9882       $install_prog $dir/$dlname \$dldir/$dlname~
9883       chmod a+x \$dldir/$dlname~
9884       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9885         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9886       fi'
9887     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9888       dlpath=$dir/\$dldll~
9889        $RM \$dlpath'
9890     shlibpath_overrides_runpath=yes
9891
9892     case $host_os in
9893     cygwin*)
9894       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9895       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9896       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9897       ;;
9898     mingw* | cegcc*)
9899       # MinGW DLLs use traditional 'lib' prefix
9900       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9901       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9902       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9903         # It is most probably a Windows format PATH printed by
9904         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9905         # path with ; separators, and with drive letters. We can handle the
9906         # drive letters (cygwin fileutils understands them), so leave them,
9907         # especially as we might pass files found there to a mingw objdump,
9908         # which wouldn't understand a cygwinified path. Ahh.
9909         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9910       else
9911         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9912       fi
9913       ;;
9914     pw32*)
9915       # pw32 DLLs use 'pw' prefix rather than 'lib'
9916       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9917       ;;
9918     esac
9919     ;;
9920
9921   *)
9922     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9923     ;;
9924   esac
9925   dynamic_linker='Win32 ld.exe'
9926   # FIXME: first we should search . and the directory the executable is in
9927   shlibpath_var=PATH
9928   ;;
9929
9930 darwin* | rhapsody*)
9931   dynamic_linker="$host_os dyld"
9932   version_type=darwin
9933   need_lib_prefix=no
9934   need_version=no
9935   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9936   soname_spec='${libname}${release}${major}$shared_ext'
9937   shlibpath_overrides_runpath=yes
9938   shlibpath_var=DYLD_LIBRARY_PATH
9939   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9940
9941   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9942   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9943   ;;
9944
9945 dgux*)
9946   version_type=linux
9947   need_lib_prefix=no
9948   need_version=no
9949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9950   soname_spec='${libname}${release}${shared_ext}$major'
9951   shlibpath_var=LD_LIBRARY_PATH
9952   ;;
9953
9954 freebsd1*)
9955   dynamic_linker=no
9956   ;;
9957
9958 freebsd* | dragonfly*)
9959   # DragonFly does not have aout.  When/if they implement a new
9960   # versioning mechanism, adjust this.
9961   if test -x /usr/bin/objformat; then
9962     objformat=`/usr/bin/objformat`
9963   else
9964     case $host_os in
9965     freebsd[123]*) objformat=aout ;;
9966     *) objformat=elf ;;
9967     esac
9968   fi
9969   version_type=freebsd-$objformat
9970   case $version_type in
9971     freebsd-elf*)
9972       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9973       need_version=no
9974       need_lib_prefix=no
9975       ;;
9976     freebsd-*)
9977       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9978       need_version=yes
9979       ;;
9980   esac
9981   shlibpath_var=LD_LIBRARY_PATH
9982   case $host_os in
9983   freebsd2*)
9984     shlibpath_overrides_runpath=yes
9985     ;;
9986   freebsd3.[01]* | freebsdelf3.[01]*)
9987     shlibpath_overrides_runpath=yes
9988     hardcode_into_libs=yes
9989     ;;
9990   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9991   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9992     shlibpath_overrides_runpath=no
9993     hardcode_into_libs=yes
9994     ;;
9995   *) # from 4.6 on, and DragonFly
9996     shlibpath_overrides_runpath=yes
9997     hardcode_into_libs=yes
9998     ;;
9999   esac
10000   ;;
10001
10002 gnu*)
10003   version_type=linux
10004   need_lib_prefix=no
10005   need_version=no
10006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10007   soname_spec='${libname}${release}${shared_ext}$major'
10008   shlibpath_var=LD_LIBRARY_PATH
10009   hardcode_into_libs=yes
10010   ;;
10011
10012 hpux9* | hpux10* | hpux11*)
10013   # Give a soname corresponding to the major version so that dld.sl refuses to
10014   # link against other versions.
10015   version_type=sunos
10016   need_lib_prefix=no
10017   need_version=no
10018   case $host_cpu in
10019   ia64*)
10020     shrext_cmds='.so'
10021     hardcode_into_libs=yes
10022     dynamic_linker="$host_os dld.so"
10023     shlibpath_var=LD_LIBRARY_PATH
10024     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10025     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10026     soname_spec='${libname}${release}${shared_ext}$major'
10027     if test "X$HPUX_IA64_MODE" = X32; then
10028       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10029     else
10030       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10031     fi
10032     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10033     ;;
10034   hppa*64*)
10035     shrext_cmds='.sl'
10036     hardcode_into_libs=yes
10037     dynamic_linker="$host_os dld.sl"
10038     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10039     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10040     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10041     soname_spec='${libname}${release}${shared_ext}$major'
10042     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10043     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10044     ;;
10045   *)
10046     shrext_cmds='.sl'
10047     dynamic_linker="$host_os dld.sl"
10048     shlibpath_var=SHLIB_PATH
10049     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10050     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051     soname_spec='${libname}${release}${shared_ext}$major'
10052     ;;
10053   esac
10054   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10055   postinstall_cmds='chmod 555 $lib'
10056   ;;
10057
10058 interix[3-9]*)
10059   version_type=linux
10060   need_lib_prefix=no
10061   need_version=no
10062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10063   soname_spec='${libname}${release}${shared_ext}$major'
10064   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10065   shlibpath_var=LD_LIBRARY_PATH
10066   shlibpath_overrides_runpath=no
10067   hardcode_into_libs=yes
10068   ;;
10069
10070 irix5* | irix6* | nonstopux*)
10071   case $host_os in
10072     nonstopux*) version_type=nonstopux ;;
10073     *)
10074         if test "$lt_cv_prog_gnu_ld" = yes; then
10075                 version_type=linux
10076         else
10077                 version_type=irix
10078         fi ;;
10079   esac
10080   need_lib_prefix=no
10081   need_version=no
10082   soname_spec='${libname}${release}${shared_ext}$major'
10083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10084   case $host_os in
10085   irix5* | nonstopux*)
10086     libsuff= shlibsuff=
10087     ;;
10088   *)
10089     case $LD in # libtool.m4 will add one of these switches to LD
10090     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10091       libsuff= shlibsuff= libmagic=32-bit;;
10092     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10093       libsuff=32 shlibsuff=N32 libmagic=N32;;
10094     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10095       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10096     *) libsuff= shlibsuff= libmagic=never-match;;
10097     esac
10098     ;;
10099   esac
10100   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10101   shlibpath_overrides_runpath=no
10102   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10103   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10104   hardcode_into_libs=yes
10105   ;;
10106
10107 # No shared lib support for Linux oldld, aout, or coff.
10108 linux*oldld* | linux*aout* | linux*coff*)
10109   dynamic_linker=no
10110   ;;
10111
10112 # This must be Linux ELF.
10113 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10114   version_type=linux
10115   need_lib_prefix=no
10116   need_version=no
10117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118   soname_spec='${libname}${release}${shared_ext}$major'
10119   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10120   shlibpath_var=LD_LIBRARY_PATH
10121   shlibpath_overrides_runpath=no
10122   # Some binutils ld are patched to set DT_RUNPATH
10123   save_LDFLAGS=$LDFLAGS
10124   save_libdir=$libdir
10125   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10126        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h.  */
10129
10130 int
10131 main ()
10132 {
10133
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
10138 if ac_fn_c_try_link "$LINENO"; then :
10139   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10140   shlibpath_overrides_runpath=yes
10141 fi
10142 fi
10143 rm -f core conftest.err conftest.$ac_objext \
10144     conftest$ac_exeext conftest.$ac_ext
10145   LDFLAGS=$save_LDFLAGS
10146   libdir=$save_libdir
10147
10148   # This implies no fast_install, which is unacceptable.
10149   # Some rework will be needed to allow for fast_install
10150   # before this can be enabled.
10151   hardcode_into_libs=yes
10152
10153   # Append ld.so.conf contents to the search path
10154   if test -f /etc/ld.so.conf; then
10155     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' ' '`
10156     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10157   fi
10158
10159   # We used to test for /lib/ld.so.1 and disable shared libraries on
10160   # powerpc, because MkLinux only supported shared libraries with the
10161   # GNU dynamic linker.  Since this was broken with cross compilers,
10162   # most powerpc-linux boxes support dynamic linking these days and
10163   # people can always --disable-shared, the test was removed, and we
10164   # assume the GNU/Linux dynamic linker is in use.
10165   dynamic_linker='GNU/Linux ld.so'
10166   ;;
10167
10168 netbsdelf*-gnu)
10169   version_type=linux
10170   need_lib_prefix=no
10171   need_version=no
10172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10173   soname_spec='${libname}${release}${shared_ext}$major'
10174   shlibpath_var=LD_LIBRARY_PATH
10175   shlibpath_overrides_runpath=no
10176   hardcode_into_libs=yes
10177   dynamic_linker='NetBSD ld.elf_so'
10178   ;;
10179
10180 netbsd*)
10181   version_type=sunos
10182   need_lib_prefix=no
10183   need_version=no
10184   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10186     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10187     dynamic_linker='NetBSD (a.out) ld.so'
10188   else
10189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10190     soname_spec='${libname}${release}${shared_ext}$major'
10191     dynamic_linker='NetBSD ld.elf_so'
10192   fi
10193   shlibpath_var=LD_LIBRARY_PATH
10194   shlibpath_overrides_runpath=yes
10195   hardcode_into_libs=yes
10196   ;;
10197
10198 newsos6)
10199   version_type=linux
10200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10201   shlibpath_var=LD_LIBRARY_PATH
10202   shlibpath_overrides_runpath=yes
10203   ;;
10204
10205 *nto* | *qnx*)
10206   version_type=qnx
10207   need_lib_prefix=no
10208   need_version=no
10209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210   soname_spec='${libname}${release}${shared_ext}$major'
10211   shlibpath_var=LD_LIBRARY_PATH
10212   shlibpath_overrides_runpath=no
10213   hardcode_into_libs=yes
10214   dynamic_linker='ldqnx.so'
10215   ;;
10216
10217 openbsd*)
10218   version_type=sunos
10219   sys_lib_dlsearch_path_spec="/usr/lib"
10220   need_lib_prefix=no
10221   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10222   case $host_os in
10223     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10224     *)                          need_version=no  ;;
10225   esac
10226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10227   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10228   shlibpath_var=LD_LIBRARY_PATH
10229   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10230     case $host_os in
10231       openbsd2.[89] | openbsd2.[89].*)
10232         shlibpath_overrides_runpath=no
10233         ;;
10234       *)
10235         shlibpath_overrides_runpath=yes
10236         ;;
10237       esac
10238   else
10239     shlibpath_overrides_runpath=yes
10240   fi
10241   ;;
10242
10243 os2*)
10244   libname_spec='$name'
10245   shrext_cmds=".dll"
10246   need_lib_prefix=no
10247   library_names_spec='$libname${shared_ext} $libname.a'
10248   dynamic_linker='OS/2 ld.exe'
10249   shlibpath_var=LIBPATH
10250   ;;
10251
10252 osf3* | osf4* | osf5*)
10253   version_type=osf
10254   need_lib_prefix=no
10255   need_version=no
10256   soname_spec='${libname}${release}${shared_ext}$major'
10257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258   shlibpath_var=LD_LIBRARY_PATH
10259   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10260   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10261   ;;
10262
10263 rdos*)
10264   dynamic_linker=no
10265   ;;
10266
10267 solaris*)
10268   version_type=linux
10269   need_lib_prefix=no
10270   need_version=no
10271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10272   soname_spec='${libname}${release}${shared_ext}$major'
10273   shlibpath_var=LD_LIBRARY_PATH
10274   shlibpath_overrides_runpath=yes
10275   hardcode_into_libs=yes
10276   # ldd complains unless libraries are executable
10277   postinstall_cmds='chmod +x $lib'
10278   ;;
10279
10280 sunos4*)
10281   version_type=sunos
10282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10283   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10284   shlibpath_var=LD_LIBRARY_PATH
10285   shlibpath_overrides_runpath=yes
10286   if test "$with_gnu_ld" = yes; then
10287     need_lib_prefix=no
10288   fi
10289   need_version=yes
10290   ;;
10291
10292 sysv4 | sysv4.3*)
10293   version_type=linux
10294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295   soname_spec='${libname}${release}${shared_ext}$major'
10296   shlibpath_var=LD_LIBRARY_PATH
10297   case $host_vendor in
10298     sni)
10299       shlibpath_overrides_runpath=no
10300       need_lib_prefix=no
10301       runpath_var=LD_RUN_PATH
10302       ;;
10303     siemens)
10304       need_lib_prefix=no
10305       ;;
10306     motorola)
10307       need_lib_prefix=no
10308       need_version=no
10309       shlibpath_overrides_runpath=no
10310       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10311       ;;
10312   esac
10313   ;;
10314
10315 sysv4*MP*)
10316   if test -d /usr/nec ;then
10317     version_type=linux
10318     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10319     soname_spec='$libname${shared_ext}.$major'
10320     shlibpath_var=LD_LIBRARY_PATH
10321   fi
10322   ;;
10323
10324 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10325   version_type=freebsd-elf
10326   need_lib_prefix=no
10327   need_version=no
10328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10329   soname_spec='${libname}${release}${shared_ext}$major'
10330   shlibpath_var=LD_LIBRARY_PATH
10331   shlibpath_overrides_runpath=yes
10332   hardcode_into_libs=yes
10333   if test "$with_gnu_ld" = yes; then
10334     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10335   else
10336     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10337     case $host_os in
10338       sco3.2v5*)
10339         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10340         ;;
10341     esac
10342   fi
10343   sys_lib_dlsearch_path_spec='/usr/lib'
10344   ;;
10345
10346 tpf*)
10347   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10348   version_type=linux
10349   need_lib_prefix=no
10350   need_version=no
10351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352   shlibpath_var=LD_LIBRARY_PATH
10353   shlibpath_overrides_runpath=no
10354   hardcode_into_libs=yes
10355   ;;
10356
10357 uts4*)
10358   version_type=linux
10359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360   soname_spec='${libname}${release}${shared_ext}$major'
10361   shlibpath_var=LD_LIBRARY_PATH
10362   ;;
10363
10364 *)
10365   dynamic_linker=no
10366   ;;
10367 esac
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10369 $as_echo "$dynamic_linker" >&6; }
10370 test "$dynamic_linker" = no && can_build_shared=no
10371
10372 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10373 if test "$GCC" = yes; then
10374   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10375 fi
10376
10377 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10378   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10379 fi
10380 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10381   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10382 fi
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10471 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10472 hardcode_action=
10473 if test -n "$hardcode_libdir_flag_spec" ||
10474    test -n "$runpath_var" ||
10475    test "X$hardcode_automatic" = "Xyes" ; then
10476
10477   # We can hardcode non-existent directories.
10478   if test "$hardcode_direct" != no &&
10479      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10480      # have to relink, otherwise we might link with an installed library
10481      # when we should be linking with a yet-to-be-installed one
10482      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10483      test "$hardcode_minus_L" != no; then
10484     # Linking always hardcodes the temporary library directory.
10485     hardcode_action=relink
10486   else
10487     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10488     hardcode_action=immediate
10489   fi
10490 else
10491   # We cannot hardcode anything, or else we can only hardcode existing
10492   # directories.
10493   hardcode_action=unsupported
10494 fi
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10496 $as_echo "$hardcode_action" >&6; }
10497
10498 if test "$hardcode_action" = relink ||
10499    test "$inherit_rpath" = yes; then
10500   # Fast installation is not supported
10501   enable_fast_install=no
10502 elif test "$shlibpath_overrides_runpath" = yes ||
10503      test "$enable_shared" = no; then
10504   # Fast installation is not necessary
10505   enable_fast_install=needless
10506 fi
10507
10508
10509
10510
10511
10512
10513   if test "x$enable_dlopen" != xyes; then
10514   enable_dlopen=unknown
10515   enable_dlopen_self=unknown
10516   enable_dlopen_self_static=unknown
10517 else
10518   lt_cv_dlopen=no
10519   lt_cv_dlopen_libs=
10520
10521   case $host_os in
10522   beos*)
10523     lt_cv_dlopen="load_add_on"
10524     lt_cv_dlopen_libs=
10525     lt_cv_dlopen_self=yes
10526     ;;
10527
10528   mingw* | pw32* | cegcc*)
10529     lt_cv_dlopen="LoadLibrary"
10530     lt_cv_dlopen_libs=
10531     ;;
10532
10533   cygwin*)
10534     lt_cv_dlopen="dlopen"
10535     lt_cv_dlopen_libs=
10536     ;;
10537
10538   darwin*)
10539   # if libdl is installed we need to link against it
10540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10541 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10542 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10543   $as_echo_n "(cached) " >&6
10544 else
10545   ac_check_lib_save_LIBS=$LIBS
10546 LIBS="-ldl  $LIBS"
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h.  */
10549
10550 /* Override any GCC internal prototype to avoid an error.
10551    Use char because int might match the return type of a GCC
10552    builtin and then its argument prototype would still apply.  */
10553 #ifdef __cplusplus
10554 extern "C"
10555 #endif
10556 char dlopen ();
10557 int
10558 main ()
10559 {
10560 return dlopen ();
10561   ;
10562   return 0;
10563 }
10564 _ACEOF
10565 if ac_fn_c_try_link "$LINENO"; then :
10566   ac_cv_lib_dl_dlopen=yes
10567 else
10568   ac_cv_lib_dl_dlopen=no
10569 fi
10570 rm -f core conftest.err conftest.$ac_objext \
10571     conftest$ac_exeext conftest.$ac_ext
10572 LIBS=$ac_check_lib_save_LIBS
10573 fi
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10575 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10576 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10577   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10578 else
10579
10580     lt_cv_dlopen="dyld"
10581     lt_cv_dlopen_libs=
10582     lt_cv_dlopen_self=yes
10583
10584 fi
10585
10586     ;;
10587
10588   *)
10589     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10590 if test "x$ac_cv_func_shl_load" = x""yes; then :
10591   lt_cv_dlopen="shl_load"
10592 else
10593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10594 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10595 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10596   $as_echo_n "(cached) " >&6
10597 else
10598   ac_check_lib_save_LIBS=$LIBS
10599 LIBS="-ldld  $LIBS"
10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h.  */
10602
10603 /* Override any GCC internal prototype to avoid an error.
10604    Use char because int might match the return type of a GCC
10605    builtin and then its argument prototype would still apply.  */
10606 #ifdef __cplusplus
10607 extern "C"
10608 #endif
10609 char shl_load ();
10610 int
10611 main ()
10612 {
10613 return shl_load ();
10614   ;
10615   return 0;
10616 }
10617 _ACEOF
10618 if ac_fn_c_try_link "$LINENO"; then :
10619   ac_cv_lib_dld_shl_load=yes
10620 else
10621   ac_cv_lib_dld_shl_load=no
10622 fi
10623 rm -f core conftest.err conftest.$ac_objext \
10624     conftest$ac_exeext conftest.$ac_ext
10625 LIBS=$ac_check_lib_save_LIBS
10626 fi
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10628 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10629 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10630   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10631 else
10632   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10633 if test "x$ac_cv_func_dlopen" = x""yes; then :
10634   lt_cv_dlopen="dlopen"
10635 else
10636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10637 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10639   $as_echo_n "(cached) " >&6
10640 else
10641   ac_check_lib_save_LIBS=$LIBS
10642 LIBS="-ldl  $LIBS"
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h.  */
10645
10646 /* Override any GCC internal prototype to avoid an error.
10647    Use char because int might match the return type of a GCC
10648    builtin and then its argument prototype would still apply.  */
10649 #ifdef __cplusplus
10650 extern "C"
10651 #endif
10652 char dlopen ();
10653 int
10654 main ()
10655 {
10656 return dlopen ();
10657   ;
10658   return 0;
10659 }
10660 _ACEOF
10661 if ac_fn_c_try_link "$LINENO"; then :
10662   ac_cv_lib_dl_dlopen=yes
10663 else
10664   ac_cv_lib_dl_dlopen=no
10665 fi
10666 rm -f core conftest.err conftest.$ac_objext \
10667     conftest$ac_exeext conftest.$ac_ext
10668 LIBS=$ac_check_lib_save_LIBS
10669 fi
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10671 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10672 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10673   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10674 else
10675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10676 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10677 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10678   $as_echo_n "(cached) " >&6
10679 else
10680   ac_check_lib_save_LIBS=$LIBS
10681 LIBS="-lsvld  $LIBS"
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h.  */
10684
10685 /* Override any GCC internal prototype to avoid an error.
10686    Use char because int might match the return type of a GCC
10687    builtin and then its argument prototype would still apply.  */
10688 #ifdef __cplusplus
10689 extern "C"
10690 #endif
10691 char dlopen ();
10692 int
10693 main ()
10694 {
10695 return dlopen ();
10696   ;
10697   return 0;
10698 }
10699 _ACEOF
10700 if ac_fn_c_try_link "$LINENO"; then :
10701   ac_cv_lib_svld_dlopen=yes
10702 else
10703   ac_cv_lib_svld_dlopen=no
10704 fi
10705 rm -f core conftest.err conftest.$ac_objext \
10706     conftest$ac_exeext conftest.$ac_ext
10707 LIBS=$ac_check_lib_save_LIBS
10708 fi
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10710 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10711 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10712   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10713 else
10714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10715 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10716 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10717   $as_echo_n "(cached) " >&6
10718 else
10719   ac_check_lib_save_LIBS=$LIBS
10720 LIBS="-ldld  $LIBS"
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h.  */
10723
10724 /* Override any GCC internal prototype to avoid an error.
10725    Use char because int might match the return type of a GCC
10726    builtin and then its argument prototype would still apply.  */
10727 #ifdef __cplusplus
10728 extern "C"
10729 #endif
10730 char dld_link ();
10731 int
10732 main ()
10733 {
10734 return dld_link ();
10735   ;
10736   return 0;
10737 }
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"; then :
10740   ac_cv_lib_dld_dld_link=yes
10741 else
10742   ac_cv_lib_dld_dld_link=no
10743 fi
10744 rm -f core conftest.err conftest.$ac_objext \
10745     conftest$ac_exeext conftest.$ac_ext
10746 LIBS=$ac_check_lib_save_LIBS
10747 fi
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10749 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10750 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10751   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10752 fi
10753
10754
10755 fi
10756
10757
10758 fi
10759
10760
10761 fi
10762
10763
10764 fi
10765
10766
10767 fi
10768
10769     ;;
10770   esac
10771
10772   if test "x$lt_cv_dlopen" != xno; then
10773     enable_dlopen=yes
10774   else
10775     enable_dlopen=no
10776   fi
10777
10778   case $lt_cv_dlopen in
10779   dlopen)
10780     save_CPPFLAGS="$CPPFLAGS"
10781     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10782
10783     save_LDFLAGS="$LDFLAGS"
10784     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10785
10786     save_LIBS="$LIBS"
10787     LIBS="$lt_cv_dlopen_libs $LIBS"
10788
10789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10790 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10791 if test "${lt_cv_dlopen_self+set}" = set; then :
10792   $as_echo_n "(cached) " >&6
10793 else
10794           if test "$cross_compiling" = yes; then :
10795   lt_cv_dlopen_self=cross
10796 else
10797   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10798   lt_status=$lt_dlunknown
10799   cat > conftest.$ac_ext <<_LT_EOF
10800 #line 10800 "configure"
10801 #include "confdefs.h"
10802
10803 #if HAVE_DLFCN_H
10804 #include <dlfcn.h>
10805 #endif
10806
10807 #include <stdio.h>
10808
10809 #ifdef RTLD_GLOBAL
10810 #  define LT_DLGLOBAL           RTLD_GLOBAL
10811 #else
10812 #  ifdef DL_GLOBAL
10813 #    define LT_DLGLOBAL         DL_GLOBAL
10814 #  else
10815 #    define LT_DLGLOBAL         0
10816 #  endif
10817 #endif
10818
10819 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10820    find out it does not work in some platform. */
10821 #ifndef LT_DLLAZY_OR_NOW
10822 #  ifdef RTLD_LAZY
10823 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10824 #  else
10825 #    ifdef DL_LAZY
10826 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10827 #    else
10828 #      ifdef RTLD_NOW
10829 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10830 #      else
10831 #        ifdef DL_NOW
10832 #          define LT_DLLAZY_OR_NOW      DL_NOW
10833 #        else
10834 #          define LT_DLLAZY_OR_NOW      0
10835 #        endif
10836 #      endif
10837 #    endif
10838 #  endif
10839 #endif
10840
10841 void fnord() { int i=42;}
10842 int main ()
10843 {
10844   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10845   int status = $lt_dlunknown;
10846
10847   if (self)
10848     {
10849       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10850       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10851       /* dlclose (self); */
10852     }
10853   else
10854     puts (dlerror ());
10855
10856   return status;
10857 }
10858 _LT_EOF
10859   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10860   (eval $ac_link) 2>&5
10861   ac_status=$?
10862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10863   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10864     (./conftest; exit; ) >&5 2>/dev/null
10865     lt_status=$?
10866     case x$lt_status in
10867       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10868       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10869       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10870     esac
10871   else :
10872     # compilation failed
10873     lt_cv_dlopen_self=no
10874   fi
10875 fi
10876 rm -fr conftest*
10877
10878
10879 fi
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10881 $as_echo "$lt_cv_dlopen_self" >&6; }
10882
10883     if test "x$lt_cv_dlopen_self" = xyes; then
10884       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10885       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10886 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10887 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10888   $as_echo_n "(cached) " >&6
10889 else
10890           if test "$cross_compiling" = yes; then :
10891   lt_cv_dlopen_self_static=cross
10892 else
10893   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10894   lt_status=$lt_dlunknown
10895   cat > conftest.$ac_ext <<_LT_EOF
10896 #line 10896 "configure"
10897 #include "confdefs.h"
10898
10899 #if HAVE_DLFCN_H
10900 #include <dlfcn.h>
10901 #endif
10902
10903 #include <stdio.h>
10904
10905 #ifdef RTLD_GLOBAL
10906 #  define LT_DLGLOBAL           RTLD_GLOBAL
10907 #else
10908 #  ifdef DL_GLOBAL
10909 #    define LT_DLGLOBAL         DL_GLOBAL
10910 #  else
10911 #    define LT_DLGLOBAL         0
10912 #  endif
10913 #endif
10914
10915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10916    find out it does not work in some platform. */
10917 #ifndef LT_DLLAZY_OR_NOW
10918 #  ifdef RTLD_LAZY
10919 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10920 #  else
10921 #    ifdef DL_LAZY
10922 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10923 #    else
10924 #      ifdef RTLD_NOW
10925 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10926 #      else
10927 #        ifdef DL_NOW
10928 #          define LT_DLLAZY_OR_NOW      DL_NOW
10929 #        else
10930 #          define LT_DLLAZY_OR_NOW      0
10931 #        endif
10932 #      endif
10933 #    endif
10934 #  endif
10935 #endif
10936
10937 void fnord() { int i=42;}
10938 int main ()
10939 {
10940   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10941   int status = $lt_dlunknown;
10942
10943   if (self)
10944     {
10945       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10946       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10947       /* dlclose (self); */
10948     }
10949   else
10950     puts (dlerror ());
10951
10952   return status;
10953 }
10954 _LT_EOF
10955   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10956   (eval $ac_link) 2>&5
10957   ac_status=$?
10958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10959   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10960     (./conftest; exit; ) >&5 2>/dev/null
10961     lt_status=$?
10962     case x$lt_status in
10963       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10964       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10965       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10966     esac
10967   else :
10968     # compilation failed
10969     lt_cv_dlopen_self_static=no
10970   fi
10971 fi
10972 rm -fr conftest*
10973
10974
10975 fi
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10977 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10978     fi
10979
10980     CPPFLAGS="$save_CPPFLAGS"
10981     LDFLAGS="$save_LDFLAGS"
10982     LIBS="$save_LIBS"
10983     ;;
10984   esac
10985
10986   case $lt_cv_dlopen_self in
10987   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10988   *) enable_dlopen_self=unknown ;;
10989   esac
10990
10991   case $lt_cv_dlopen_self_static in
10992   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10993   *) enable_dlopen_self_static=unknown ;;
10994   esac
10995 fi
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013 striplib=
11014 old_striplib=
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11016 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11017 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11018   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11019   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11021 $as_echo "yes" >&6; }
11022 else
11023 # FIXME - insert some real tests, host_os isn't really good enough
11024   case $host_os in
11025   darwin*)
11026     if test -n "$STRIP" ; then
11027       striplib="$STRIP -x"
11028       old_striplib="$STRIP -S"
11029       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11030 $as_echo "yes" >&6; }
11031     else
11032       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; }
11034     fi
11035     ;;
11036   *)
11037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11039     ;;
11040   esac
11041 fi
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054   # Report which library types will actually be built
11055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11056 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11058 $as_echo "$can_build_shared" >&6; }
11059
11060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11061 $as_echo_n "checking whether to build shared libraries... " >&6; }
11062   test "$can_build_shared" = "no" && enable_shared=no
11063
11064   # On AIX, shared libraries and static libraries use the same namespace, and
11065   # are all built from PIC.
11066   case $host_os in
11067   aix3*)
11068     test "$enable_shared" = yes && enable_static=no
11069     if test -n "$RANLIB"; then
11070       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11071       postinstall_cmds='$RANLIB $lib'
11072     fi
11073     ;;
11074
11075   aix[4-9]*)
11076     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11077       test "$enable_shared" = yes && enable_static=no
11078     fi
11079     ;;
11080   esac
11081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11082 $as_echo "$enable_shared" >&6; }
11083
11084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11085 $as_echo_n "checking whether to build static libraries... " >&6; }
11086   # Make sure either enable_shared or enable_static is yes.
11087   test "$enable_shared" = yes || enable_static=yes
11088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11089 $as_echo "$enable_static" >&6; }
11090
11091
11092
11093
11094 fi
11095 ac_ext=c
11096 ac_cpp='$CPP $CPPFLAGS'
11097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11100
11101 CC="$lt_save_CC"
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115         ac_config_commands="$ac_config_commands libtool"
11116
11117
11118
11119
11120 # Only expand once:
11121
11122
11123
11124 ac_ext=cpp
11125 ac_cpp='$CXXCPP $CPPFLAGS'
11126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11129 if test -z "$CXX"; then
11130   if test -n "$CCC"; then
11131     CXX=$CCC
11132   else
11133     if test -n "$ac_tool_prefix"; then
11134   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11135   do
11136     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11139 $as_echo_n "checking for $ac_word... " >&6; }
11140 if test "${ac_cv_prog_CXX+set}" = set; then :
11141   $as_echo_n "(cached) " >&6
11142 else
11143   if test -n "$CXX"; then
11144   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11145 else
11146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147 for as_dir in $PATH
11148 do
11149   IFS=$as_save_IFS
11150   test -z "$as_dir" && as_dir=.
11151     for ac_exec_ext in '' $ac_executable_extensions; do
11152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11153     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11155     break 2
11156   fi
11157 done
11158   done
11159 IFS=$as_save_IFS
11160
11161 fi
11162 fi
11163 CXX=$ac_cv_prog_CXX
11164 if test -n "$CXX"; then
11165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11166 $as_echo "$CXX" >&6; }
11167 else
11168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11170 fi
11171
11172
11173     test -n "$CXX" && break
11174   done
11175 fi
11176 if test -z "$CXX"; then
11177   ac_ct_CXX=$CXX
11178   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11179 do
11180   # Extract the first word of "$ac_prog", so it can be a program name with args.
11181 set dummy $ac_prog; ac_word=$2
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11183 $as_echo_n "checking for $ac_word... " >&6; }
11184 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11185   $as_echo_n "(cached) " >&6
11186 else
11187   if test -n "$ac_ct_CXX"; then
11188   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11189 else
11190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191 for as_dir in $PATH
11192 do
11193   IFS=$as_save_IFS
11194   test -z "$as_dir" && as_dir=.
11195     for ac_exec_ext in '' $ac_executable_extensions; do
11196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11197     ac_cv_prog_ac_ct_CXX="$ac_prog"
11198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11199     break 2
11200   fi
11201 done
11202   done
11203 IFS=$as_save_IFS
11204
11205 fi
11206 fi
11207 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11208 if test -n "$ac_ct_CXX"; then
11209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11210 $as_echo "$ac_ct_CXX" >&6; }
11211 else
11212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 $as_echo "no" >&6; }
11214 fi
11215
11216
11217   test -n "$ac_ct_CXX" && break
11218 done
11219
11220   if test "x$ac_ct_CXX" = x; then
11221     CXX="g++"
11222   else
11223     case $cross_compiling:$ac_tool_warned in
11224 yes:)
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11227 ac_tool_warned=yes ;;
11228 esac
11229     CXX=$ac_ct_CXX
11230   fi
11231 fi
11232
11233   fi
11234 fi
11235 # Provide some information about the compiler.
11236 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11237 set X $ac_compile
11238 ac_compiler=$2
11239 for ac_option in --version -v -V -qversion; do
11240   { { ac_try="$ac_compiler $ac_option >&5"
11241 case "(($ac_try" in
11242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243   *) ac_try_echo=$ac_try;;
11244 esac
11245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11246 $as_echo "$ac_try_echo"; } >&5
11247   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11248   ac_status=$?
11249   if test -s conftest.err; then
11250     sed '10a\
11251 ... rest of stderr output deleted ...
11252          10q' conftest.err >conftest.er1
11253     cat conftest.er1 >&5
11254   fi
11255   rm -f conftest.er1 conftest.err
11256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11257   test $ac_status = 0; }
11258 done
11259
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11261 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11262 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11263   $as_echo_n "(cached) " >&6
11264 else
11265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h.  */
11267
11268 int
11269 main ()
11270 {
11271 #ifndef __GNUC__
11272        choke me
11273 #endif
11274
11275   ;
11276   return 0;
11277 }
11278 _ACEOF
11279 if ac_fn_cxx_try_compile "$LINENO"; then :
11280   ac_compiler_gnu=yes
11281 else
11282   ac_compiler_gnu=no
11283 fi
11284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11286
11287 fi
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11289 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11290 if test $ac_compiler_gnu = yes; then
11291   GXX=yes
11292 else
11293   GXX=
11294 fi
11295 ac_test_CXXFLAGS=${CXXFLAGS+set}
11296 ac_save_CXXFLAGS=$CXXFLAGS
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11298 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11299 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11300   $as_echo_n "(cached) " >&6
11301 else
11302   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11303    ac_cxx_werror_flag=yes
11304    ac_cv_prog_cxx_g=no
11305    CXXFLAGS="-g"
11306    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h.  */
11308
11309 int
11310 main ()
11311 {
11312
11313   ;
11314   return 0;
11315 }
11316 _ACEOF
11317 if ac_fn_cxx_try_compile "$LINENO"; then :
11318   ac_cv_prog_cxx_g=yes
11319 else
11320   CXXFLAGS=""
11321       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h.  */
11323
11324 int
11325 main ()
11326 {
11327
11328   ;
11329   return 0;
11330 }
11331 _ACEOF
11332 if ac_fn_cxx_try_compile "$LINENO"; then :
11333
11334 else
11335   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11336          CXXFLAGS="-g"
11337          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338 /* end confdefs.h.  */
11339
11340 int
11341 main ()
11342 {
11343
11344   ;
11345   return 0;
11346 }
11347 _ACEOF
11348 if ac_fn_cxx_try_compile "$LINENO"; then :
11349   ac_cv_prog_cxx_g=yes
11350 fi
11351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11352 fi
11353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354 fi
11355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11357 fi
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11359 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11360 if test "$ac_test_CXXFLAGS" = set; then
11361   CXXFLAGS=$ac_save_CXXFLAGS
11362 elif test $ac_cv_prog_cxx_g = yes; then
11363   if test "$GXX" = yes; then
11364     CXXFLAGS="-g -O2"
11365   else
11366     CXXFLAGS="-g"
11367   fi
11368 else
11369   if test "$GXX" = yes; then
11370     CXXFLAGS="-O2"
11371   else
11372     CXXFLAGS=
11373   fi
11374 fi
11375 ac_ext=c
11376 ac_cpp='$CPP $CPPFLAGS'
11377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11380
11381 depcc="$CXX"  am_compiler_list=
11382
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11384 $as_echo_n "checking dependency style of $depcc... " >&6; }
11385 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11386   $as_echo_n "(cached) " >&6
11387 else
11388   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11389   # We make a subdir and do the tests there.  Otherwise we can end up
11390   # making bogus files that we don't know about and never remove.  For
11391   # instance it was reported that on HP-UX the gcc test will end up
11392   # making a dummy file named `D' -- because `-MD' means `put the output
11393   # in D'.
11394   mkdir conftest.dir
11395   # Copy depcomp to subdir because otherwise we won't find it if we're
11396   # using a relative directory.
11397   cp "$am_depcomp" conftest.dir
11398   cd conftest.dir
11399   # We will build objects and dependencies in a subdirectory because
11400   # it helps to detect inapplicable dependency modes.  For instance
11401   # both Tru64's cc and ICC support -MD to output dependencies as a
11402   # side effect of compilation, but ICC will put the dependencies in
11403   # the current directory while Tru64 will put them in the object
11404   # directory.
11405   mkdir sub
11406
11407   am_cv_CXX_dependencies_compiler_type=none
11408   if test "$am_compiler_list" = ""; then
11409      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11410   fi
11411   am__universal=false
11412   case " $depcc " in #(
11413      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11414      esac
11415
11416   for depmode in $am_compiler_list; do
11417     # Setup a source with many dependencies, because some compilers
11418     # like to wrap large dependency lists on column 80 (with \), and
11419     # we should not choose a depcomp mode which is confused by this.
11420     #
11421     # We need to recreate these files for each test, as the compiler may
11422     # overwrite some of them when testing with obscure command lines.
11423     # This happens at least with the AIX C compiler.
11424     : > sub/conftest.c
11425     for i in 1 2 3 4 5 6; do
11426       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11427       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11428       # Solaris 8's {/usr,}/bin/sh.
11429       touch sub/conftst$i.h
11430     done
11431     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11432
11433     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11434     # mode.  It turns out that the SunPro C++ compiler does not properly
11435     # handle `-M -o', and we need to detect this.  Also, some Intel
11436     # versions had trouble with output in subdirs
11437     am__obj=sub/conftest.${OBJEXT-o}
11438     am__minus_obj="-o $am__obj"
11439     case $depmode in
11440     gcc)
11441       # This depmode causes a compiler race in universal mode.
11442       test "$am__universal" = false || continue
11443       ;;
11444     nosideeffect)
11445       # after this tag, mechanisms are not by side-effect, so they'll
11446       # only be used when explicitly requested
11447       if test "x$enable_dependency_tracking" = xyes; then
11448         continue
11449       else
11450         break
11451       fi
11452       ;;
11453     msvisualcpp | msvcmsys)
11454       # This compiler won't grok `-c -o', but also, the minuso test has
11455       # not run yet.  These depmodes are late enough in the game, and
11456       # so weak that their functioning should not be impacted.
11457       am__obj=conftest.${OBJEXT-o}
11458       am__minus_obj=
11459       ;;
11460     none) break ;;
11461     esac
11462     if depmode=$depmode \
11463        source=sub/conftest.c object=$am__obj \
11464        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11465        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11466          >/dev/null 2>conftest.err &&
11467        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11468        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11469        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11470        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11471       # icc doesn't choke on unknown options, it will just issue warnings
11472       # or remarks (even with -Werror).  So we grep stderr for any message
11473       # that says an option was ignored or not supported.
11474       # When given -MP, icc 7.0 and 7.1 complain thusly:
11475       #   icc: Command line warning: ignoring option '-M'; no argument required
11476       # The diagnosis changed in icc 8.0:
11477       #   icc: Command line remark: option '-MP' not supported
11478       if (grep 'ignoring option' conftest.err ||
11479           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11480         am_cv_CXX_dependencies_compiler_type=$depmode
11481         break
11482       fi
11483     fi
11484   done
11485
11486   cd ..
11487   rm -rf conftest.dir
11488 else
11489   am_cv_CXX_dependencies_compiler_type=none
11490 fi
11491
11492 fi
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11494 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11495 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11496
11497  if
11498   test "x$enable_dependency_tracking" != xno \
11499   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11500   am__fastdepCXX_TRUE=
11501   am__fastdepCXX_FALSE='#'
11502 else
11503   am__fastdepCXX_TRUE='#'
11504   am__fastdepCXX_FALSE=
11505 fi
11506
11507
11508
11509 ac_ext=cpp
11510 ac_cpp='$CXXCPP $CPPFLAGS'
11511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11514 if test -z "$CXX"; then
11515   if test -n "$CCC"; then
11516     CXX=$CCC
11517   else
11518     if test -n "$ac_tool_prefix"; then
11519   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11520   do
11521     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524 $as_echo_n "checking for $ac_word... " >&6; }
11525 if test "${ac_cv_prog_CXX+set}" = set; then :
11526   $as_echo_n "(cached) " >&6
11527 else
11528   if test -n "$CXX"; then
11529   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11530 else
11531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532 for as_dir in $PATH
11533 do
11534   IFS=$as_save_IFS
11535   test -z "$as_dir" && as_dir=.
11536     for ac_exec_ext in '' $ac_executable_extensions; do
11537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11538     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11540     break 2
11541   fi
11542 done
11543   done
11544 IFS=$as_save_IFS
11545
11546 fi
11547 fi
11548 CXX=$ac_cv_prog_CXX
11549 if test -n "$CXX"; then
11550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11551 $as_echo "$CXX" >&6; }
11552 else
11553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11555 fi
11556
11557
11558     test -n "$CXX" && break
11559   done
11560 fi
11561 if test -z "$CXX"; then
11562   ac_ct_CXX=$CXX
11563   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11564 do
11565   # Extract the first word of "$ac_prog", so it can be a program name with args.
11566 set dummy $ac_prog; ac_word=$2
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568 $as_echo_n "checking for $ac_word... " >&6; }
11569 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11570   $as_echo_n "(cached) " >&6
11571 else
11572   if test -n "$ac_ct_CXX"; then
11573   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11574 else
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576 for as_dir in $PATH
11577 do
11578   IFS=$as_save_IFS
11579   test -z "$as_dir" && as_dir=.
11580     for ac_exec_ext in '' $ac_executable_extensions; do
11581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11582     ac_cv_prog_ac_ct_CXX="$ac_prog"
11583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11584     break 2
11585   fi
11586 done
11587   done
11588 IFS=$as_save_IFS
11589
11590 fi
11591 fi
11592 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11593 if test -n "$ac_ct_CXX"; then
11594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11595 $as_echo "$ac_ct_CXX" >&6; }
11596 else
11597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11599 fi
11600
11601
11602   test -n "$ac_ct_CXX" && break
11603 done
11604
11605   if test "x$ac_ct_CXX" = x; then
11606     CXX="g++"
11607   else
11608     case $cross_compiling:$ac_tool_warned in
11609 yes:)
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11612 ac_tool_warned=yes ;;
11613 esac
11614     CXX=$ac_ct_CXX
11615   fi
11616 fi
11617
11618   fi
11619 fi
11620 # Provide some information about the compiler.
11621 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11622 set X $ac_compile
11623 ac_compiler=$2
11624 for ac_option in --version -v -V -qversion; do
11625   { { ac_try="$ac_compiler $ac_option >&5"
11626 case "(($ac_try" in
11627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628   *) ac_try_echo=$ac_try;;
11629 esac
11630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11631 $as_echo "$ac_try_echo"; } >&5
11632   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11633   ac_status=$?
11634   if test -s conftest.err; then
11635     sed '10a\
11636 ... rest of stderr output deleted ...
11637          10q' conftest.err >conftest.er1
11638     cat conftest.er1 >&5
11639   fi
11640   rm -f conftest.er1 conftest.err
11641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11642   test $ac_status = 0; }
11643 done
11644
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11646 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11647 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11648   $as_echo_n "(cached) " >&6
11649 else
11650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h.  */
11652
11653 int
11654 main ()
11655 {
11656 #ifndef __GNUC__
11657        choke me
11658 #endif
11659
11660   ;
11661   return 0;
11662 }
11663 _ACEOF
11664 if ac_fn_cxx_try_compile "$LINENO"; then :
11665   ac_compiler_gnu=yes
11666 else
11667   ac_compiler_gnu=no
11668 fi
11669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11670 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11671
11672 fi
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11674 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11675 if test $ac_compiler_gnu = yes; then
11676   GXX=yes
11677 else
11678   GXX=
11679 fi
11680 ac_test_CXXFLAGS=${CXXFLAGS+set}
11681 ac_save_CXXFLAGS=$CXXFLAGS
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11683 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11684 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11685   $as_echo_n "(cached) " >&6
11686 else
11687   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11688    ac_cxx_werror_flag=yes
11689    ac_cv_prog_cxx_g=no
11690    CXXFLAGS="-g"
11691    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h.  */
11693
11694 int
11695 main ()
11696 {
11697
11698   ;
11699   return 0;
11700 }
11701 _ACEOF
11702 if ac_fn_cxx_try_compile "$LINENO"; then :
11703   ac_cv_prog_cxx_g=yes
11704 else
11705   CXXFLAGS=""
11706       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h.  */
11708
11709 int
11710 main ()
11711 {
11712
11713   ;
11714   return 0;
11715 }
11716 _ACEOF
11717 if ac_fn_cxx_try_compile "$LINENO"; then :
11718
11719 else
11720   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11721          CXXFLAGS="-g"
11722          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h.  */
11724
11725 int
11726 main ()
11727 {
11728
11729   ;
11730   return 0;
11731 }
11732 _ACEOF
11733 if ac_fn_cxx_try_compile "$LINENO"; then :
11734   ac_cv_prog_cxx_g=yes
11735 fi
11736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11737 fi
11738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739 fi
11740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11742 fi
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11744 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11745 if test "$ac_test_CXXFLAGS" = set; then
11746   CXXFLAGS=$ac_save_CXXFLAGS
11747 elif test $ac_cv_prog_cxx_g = yes; then
11748   if test "$GXX" = yes; then
11749     CXXFLAGS="-g -O2"
11750   else
11751     CXXFLAGS="-g"
11752   fi
11753 else
11754   if test "$GXX" = yes; then
11755     CXXFLAGS="-O2"
11756   else
11757     CXXFLAGS=
11758   fi
11759 fi
11760 ac_ext=c
11761 ac_cpp='$CPP $CPPFLAGS'
11762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11765
11766 depcc="$CXX"  am_compiler_list=
11767
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11769 $as_echo_n "checking dependency style of $depcc... " >&6; }
11770 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11771   $as_echo_n "(cached) " >&6
11772 else
11773   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11774   # We make a subdir and do the tests there.  Otherwise we can end up
11775   # making bogus files that we don't know about and never remove.  For
11776   # instance it was reported that on HP-UX the gcc test will end up
11777   # making a dummy file named `D' -- because `-MD' means `put the output
11778   # in D'.
11779   mkdir conftest.dir
11780   # Copy depcomp to subdir because otherwise we won't find it if we're
11781   # using a relative directory.
11782   cp "$am_depcomp" conftest.dir
11783   cd conftest.dir
11784   # We will build objects and dependencies in a subdirectory because
11785   # it helps to detect inapplicable dependency modes.  For instance
11786   # both Tru64's cc and ICC support -MD to output dependencies as a
11787   # side effect of compilation, but ICC will put the dependencies in
11788   # the current directory while Tru64 will put them in the object
11789   # directory.
11790   mkdir sub
11791
11792   am_cv_CXX_dependencies_compiler_type=none
11793   if test "$am_compiler_list" = ""; then
11794      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11795   fi
11796   am__universal=false
11797   case " $depcc " in #(
11798      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11799      esac
11800
11801   for depmode in $am_compiler_list; do
11802     # Setup a source with many dependencies, because some compilers
11803     # like to wrap large dependency lists on column 80 (with \), and
11804     # we should not choose a depcomp mode which is confused by this.
11805     #
11806     # We need to recreate these files for each test, as the compiler may
11807     # overwrite some of them when testing with obscure command lines.
11808     # This happens at least with the AIX C compiler.
11809     : > sub/conftest.c
11810     for i in 1 2 3 4 5 6; do
11811       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11812       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11813       # Solaris 8's {/usr,}/bin/sh.
11814       touch sub/conftst$i.h
11815     done
11816     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11817
11818     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11819     # mode.  It turns out that the SunPro C++ compiler does not properly
11820     # handle `-M -o', and we need to detect this.  Also, some Intel
11821     # versions had trouble with output in subdirs
11822     am__obj=sub/conftest.${OBJEXT-o}
11823     am__minus_obj="-o $am__obj"
11824     case $depmode in
11825     gcc)
11826       # This depmode causes a compiler race in universal mode.
11827       test "$am__universal" = false || continue
11828       ;;
11829     nosideeffect)
11830       # after this tag, mechanisms are not by side-effect, so they'll
11831       # only be used when explicitly requested
11832       if test "x$enable_dependency_tracking" = xyes; then
11833         continue
11834       else
11835         break
11836       fi
11837       ;;
11838     msvisualcpp | msvcmsys)
11839       # This compiler won't grok `-c -o', but also, the minuso test has
11840       # not run yet.  These depmodes are late enough in the game, and
11841       # so weak that their functioning should not be impacted.
11842       am__obj=conftest.${OBJEXT-o}
11843       am__minus_obj=
11844       ;;
11845     none) break ;;
11846     esac
11847     if depmode=$depmode \
11848        source=sub/conftest.c object=$am__obj \
11849        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11850        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11851          >/dev/null 2>conftest.err &&
11852        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11853        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11854        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11855        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11856       # icc doesn't choke on unknown options, it will just issue warnings
11857       # or remarks (even with -Werror).  So we grep stderr for any message
11858       # that says an option was ignored or not supported.
11859       # When given -MP, icc 7.0 and 7.1 complain thusly:
11860       #   icc: Command line warning: ignoring option '-M'; no argument required
11861       # The diagnosis changed in icc 8.0:
11862       #   icc: Command line remark: option '-MP' not supported
11863       if (grep 'ignoring option' conftest.err ||
11864           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11865         am_cv_CXX_dependencies_compiler_type=$depmode
11866         break
11867       fi
11868     fi
11869   done
11870
11871   cd ..
11872   rm -rf conftest.dir
11873 else
11874   am_cv_CXX_dependencies_compiler_type=none
11875 fi
11876
11877 fi
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11879 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11880 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11881
11882  if
11883   test "x$enable_dependency_tracking" != xno \
11884   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11885   am__fastdepCXX_TRUE=
11886   am__fastdepCXX_FALSE='#'
11887 else
11888   am__fastdepCXX_TRUE='#'
11889   am__fastdepCXX_FALSE=
11890 fi
11891
11892
11893 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11894     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11895     (test "X$CXX" != "Xg++"))) ; then
11896   ac_ext=cpp
11897 ac_cpp='$CXXCPP $CPPFLAGS'
11898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11902 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11903 if test -z "$CXXCPP"; then
11904   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11905   $as_echo_n "(cached) " >&6
11906 else
11907       # Double quotes because CXXCPP needs to be expanded
11908     for CXXCPP in "$CXX -E" "/lib/cpp"
11909     do
11910       ac_preproc_ok=false
11911 for ac_cxx_preproc_warn_flag in '' yes
11912 do
11913   # Use a header file that comes with gcc, so configuring glibc
11914   # with a fresh cross-compiler works.
11915   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11916   # <limits.h> exists even on freestanding compilers.
11917   # On the NeXT, cc -E runs the code through the compiler's parser,
11918   # not just through cpp. "Syntax error" is here to catch this case.
11919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920 /* end confdefs.h.  */
11921 #ifdef __STDC__
11922 # include <limits.h>
11923 #else
11924 # include <assert.h>
11925 #endif
11926                      Syntax error
11927 _ACEOF
11928 if ac_fn_cxx_try_cpp "$LINENO"; then :
11929
11930 else
11931   # Broken: fails on valid input.
11932 continue
11933 fi
11934 rm -f conftest.err conftest.i conftest.$ac_ext
11935
11936   # OK, works on sane cases.  Now check whether nonexistent headers
11937   # can be detected and how.
11938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h.  */
11940 #include <ac_nonexistent.h>
11941 _ACEOF
11942 if ac_fn_cxx_try_cpp "$LINENO"; then :
11943   # Broken: success on invalid input.
11944 continue
11945 else
11946   # Passes both tests.
11947 ac_preproc_ok=:
11948 break
11949 fi
11950 rm -f conftest.err conftest.i conftest.$ac_ext
11951
11952 done
11953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11954 rm -f conftest.i conftest.err conftest.$ac_ext
11955 if $ac_preproc_ok; then :
11956   break
11957 fi
11958
11959     done
11960     ac_cv_prog_CXXCPP=$CXXCPP
11961
11962 fi
11963   CXXCPP=$ac_cv_prog_CXXCPP
11964 else
11965   ac_cv_prog_CXXCPP=$CXXCPP
11966 fi
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11968 $as_echo "$CXXCPP" >&6; }
11969 ac_preproc_ok=false
11970 for ac_cxx_preproc_warn_flag in '' yes
11971 do
11972   # Use a header file that comes with gcc, so configuring glibc
11973   # with a fresh cross-compiler works.
11974   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11975   # <limits.h> exists even on freestanding compilers.
11976   # On the NeXT, cc -E runs the code through the compiler's parser,
11977   # not just through cpp. "Syntax error" is here to catch this case.
11978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h.  */
11980 #ifdef __STDC__
11981 # include <limits.h>
11982 #else
11983 # include <assert.h>
11984 #endif
11985                      Syntax error
11986 _ACEOF
11987 if ac_fn_cxx_try_cpp "$LINENO"; then :
11988
11989 else
11990   # Broken: fails on valid input.
11991 continue
11992 fi
11993 rm -f conftest.err conftest.i conftest.$ac_ext
11994
11995   # OK, works on sane cases.  Now check whether nonexistent headers
11996   # can be detected and how.
11997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h.  */
11999 #include <ac_nonexistent.h>
12000 _ACEOF
12001 if ac_fn_cxx_try_cpp "$LINENO"; then :
12002   # Broken: success on invalid input.
12003 continue
12004 else
12005   # Passes both tests.
12006 ac_preproc_ok=:
12007 break
12008 fi
12009 rm -f conftest.err conftest.i conftest.$ac_ext
12010
12011 done
12012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12013 rm -f conftest.i conftest.err conftest.$ac_ext
12014 if $ac_preproc_ok; then :
12015
12016 else
12017   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12019 _lt_caught_CXX_error=yes; }
12020 fi
12021
12022 ac_ext=c
12023 ac_cpp='$CPP $CPPFLAGS'
12024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12027
12028 else
12029   _lt_caught_CXX_error=yes
12030 fi
12031
12032
12033
12034
12035 ac_ext=cpp
12036 ac_cpp='$CXXCPP $CPPFLAGS'
12037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12040
12041 archive_cmds_need_lc_CXX=no
12042 allow_undefined_flag_CXX=
12043 always_export_symbols_CXX=no
12044 archive_expsym_cmds_CXX=
12045 compiler_needs_object_CXX=no
12046 export_dynamic_flag_spec_CXX=
12047 hardcode_direct_CXX=no
12048 hardcode_direct_absolute_CXX=no
12049 hardcode_libdir_flag_spec_CXX=
12050 hardcode_libdir_flag_spec_ld_CXX=
12051 hardcode_libdir_separator_CXX=
12052 hardcode_minus_L_CXX=no
12053 hardcode_shlibpath_var_CXX=unsupported
12054 hardcode_automatic_CXX=no
12055 inherit_rpath_CXX=no
12056 module_cmds_CXX=
12057 module_expsym_cmds_CXX=
12058 link_all_deplibs_CXX=unknown
12059 old_archive_cmds_CXX=$old_archive_cmds
12060 no_undefined_flag_CXX=
12061 whole_archive_flag_spec_CXX=
12062 enable_shared_with_static_runtimes_CXX=no
12063
12064 # Source file extension for C++ test sources.
12065 ac_ext=cpp
12066
12067 # Object file extension for compiled C++ test sources.
12068 objext=o
12069 objext_CXX=$objext
12070
12071 # No sense in running all these tests if we already determined that
12072 # the CXX compiler isn't working.  Some variables (like enable_shared)
12073 # are currently assumed to apply to all compilers on this platform,
12074 # and will be corrupted by setting them based on a non-working compiler.
12075 if test "$_lt_caught_CXX_error" != yes; then
12076   # Code to be used in simple compile tests
12077   lt_simple_compile_test_code="int some_variable = 0;"
12078
12079   # Code to be used in simple link tests
12080   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12081
12082   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12083
12084
12085
12086
12087
12088
12089 # If no C compiler was specified, use CC.
12090 LTCC=${LTCC-"$CC"}
12091
12092 # If no C compiler flags were specified, use CFLAGS.
12093 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12094
12095 # Allow CC to be a program name with arguments.
12096 compiler=$CC
12097
12098
12099   # save warnings/boilerplate of simple test code
12100   ac_outfile=conftest.$ac_objext
12101 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12102 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12103 _lt_compiler_boilerplate=`cat conftest.err`
12104 $RM conftest*
12105
12106   ac_outfile=conftest.$ac_objext
12107 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12108 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12109 _lt_linker_boilerplate=`cat conftest.err`
12110 $RM -r conftest*
12111
12112
12113   # Allow CC to be a program name with arguments.
12114   lt_save_CC=$CC
12115   lt_save_LD=$LD
12116   lt_save_GCC=$GCC
12117   GCC=$GXX
12118   lt_save_with_gnu_ld=$with_gnu_ld
12119   lt_save_path_LD=$lt_cv_path_LD
12120   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12121     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12122   else
12123     $as_unset lt_cv_prog_gnu_ld
12124   fi
12125   if test -n "${lt_cv_path_LDCXX+set}"; then
12126     lt_cv_path_LD=$lt_cv_path_LDCXX
12127   else
12128     $as_unset lt_cv_path_LD
12129   fi
12130   test -z "${LDCXX+set}" || LD=$LDCXX
12131   CC=${CXX-"c++"}
12132   compiler=$CC
12133   compiler_CXX=$CC
12134   for cc_temp in $compiler""; do
12135   case $cc_temp in
12136     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12137     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12138     \-*) ;;
12139     *) break;;
12140   esac
12141 done
12142 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12143
12144
12145   if test -n "$compiler"; then
12146     # We don't want -fno-exception when compiling C++ code, so set the
12147     # no_builtin_flag separately
12148     if test "$GXX" = yes; then
12149       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12150     else
12151       lt_prog_compiler_no_builtin_flag_CXX=
12152     fi
12153
12154     if test "$GXX" = yes; then
12155       # Set up default GNU C++ configuration
12156
12157
12158
12159 # Check whether --with-gnu-ld was given.
12160 if test "${with_gnu_ld+set}" = set; then :
12161   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12162 else
12163   with_gnu_ld=no
12164 fi
12165
12166 ac_prog=ld
12167 if test "$GCC" = yes; then
12168   # Check if gcc -print-prog-name=ld gives a path.
12169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12170 $as_echo_n "checking for ld used by $CC... " >&6; }
12171   case $host in
12172   *-*-mingw*)
12173     # gcc leaves a trailing carriage return which upsets mingw
12174     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12175   *)
12176     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12177   esac
12178   case $ac_prog in
12179     # Accept absolute paths.
12180     [\\/]* | ?:[\\/]*)
12181       re_direlt='/[^/][^/]*/\.\./'
12182       # Canonicalize the pathname of ld
12183       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12184       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12185         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12186       done
12187       test -z "$LD" && LD="$ac_prog"
12188       ;;
12189   "")
12190     # If it fails, then pretend we aren't using GCC.
12191     ac_prog=ld
12192     ;;
12193   *)
12194     # If it is relative, then search for the first ld in PATH.
12195     with_gnu_ld=unknown
12196     ;;
12197   esac
12198 elif test "$with_gnu_ld" = yes; then
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12200 $as_echo_n "checking for GNU ld... " >&6; }
12201 else
12202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12203 $as_echo_n "checking for non-GNU ld... " >&6; }
12204 fi
12205 if test "${lt_cv_path_LD+set}" = set; then :
12206   $as_echo_n "(cached) " >&6
12207 else
12208   if test -z "$LD"; then
12209   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12210   for ac_dir in $PATH; do
12211     IFS="$lt_save_ifs"
12212     test -z "$ac_dir" && ac_dir=.
12213     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12214       lt_cv_path_LD="$ac_dir/$ac_prog"
12215       # Check to see if the program is GNU ld.  I'd rather use --version,
12216       # but apparently some variants of GNU ld only accept -v.
12217       # Break only if it was the GNU/non-GNU ld that we prefer.
12218       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12219       *GNU* | *'with BFD'*)
12220         test "$with_gnu_ld" != no && break
12221         ;;
12222       *)
12223         test "$with_gnu_ld" != yes && break
12224         ;;
12225       esac
12226     fi
12227   done
12228   IFS="$lt_save_ifs"
12229 else
12230   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12231 fi
12232 fi
12233
12234 LD="$lt_cv_path_LD"
12235 if test -n "$LD"; then
12236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12237 $as_echo "$LD" >&6; }
12238 else
12239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12241 fi
12242 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12244 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12245 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12246   $as_echo_n "(cached) " >&6
12247 else
12248   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12249 case `$LD -v 2>&1 </dev/null` in
12250 *GNU* | *'with BFD'*)
12251   lt_cv_prog_gnu_ld=yes
12252   ;;
12253 *)
12254   lt_cv_prog_gnu_ld=no
12255   ;;
12256 esac
12257 fi
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12259 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12260 with_gnu_ld=$lt_cv_prog_gnu_ld
12261
12262
12263
12264
12265
12266
12267
12268       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12269       # archiving commands below assume that GNU ld is being used.
12270       if test "$with_gnu_ld" = yes; then
12271         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12272         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'
12273
12274         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12275         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12276
12277         # If archive_cmds runs LD, not CC, wlarc should be empty
12278         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12279         #     investigate it a little bit more. (MM)
12280         wlarc='${wl}'
12281
12282         # ancient GNU ld didn't support --whole-archive et. al.
12283         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12284           $GREP 'no-whole-archive' > /dev/null; then
12285           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12286         else
12287           whole_archive_flag_spec_CXX=
12288         fi
12289       else
12290         with_gnu_ld=no
12291         wlarc=
12292
12293         # A generic and very simple default shared library creation
12294         # command for GNU C++ for the case where it uses the native
12295         # linker, instead of GNU ld.  If possible, this setting should
12296         # overridden to take advantage of the native linker features on
12297         # the platform it is being used on.
12298         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12299       fi
12300
12301       # Commands to make compiler produce verbose output that lists
12302       # what "hidden" libraries, object files and flags are used when
12303       # linking a shared library.
12304       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12305
12306     else
12307       GXX=no
12308       with_gnu_ld=no
12309       wlarc=
12310     fi
12311
12312     # PORTME: fill in a description of your system's C++ link characteristics
12313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12314 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12315     ld_shlibs_CXX=yes
12316     case $host_os in
12317       aix3*)
12318         # FIXME: insert proper C++ library support
12319         ld_shlibs_CXX=no
12320         ;;
12321       aix[4-9]*)
12322         if test "$host_cpu" = ia64; then
12323           # On IA64, the linker does run time linking by default, so we don't
12324           # have to do anything special.
12325           aix_use_runtimelinking=no
12326           exp_sym_flag='-Bexport'
12327           no_entry_flag=""
12328         else
12329           aix_use_runtimelinking=no
12330
12331           # Test if we are trying to use run time linking or normal
12332           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12333           # need to do runtime linking.
12334           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12335             for ld_flag in $LDFLAGS; do
12336               case $ld_flag in
12337               *-brtl*)
12338                 aix_use_runtimelinking=yes
12339                 break
12340                 ;;
12341               esac
12342             done
12343             ;;
12344           esac
12345
12346           exp_sym_flag='-bexport'
12347           no_entry_flag='-bnoentry'
12348         fi
12349
12350         # When large executables or shared objects are built, AIX ld can
12351         # have problems creating the table of contents.  If linking a library
12352         # or program results in "error TOC overflow" add -mminimal-toc to
12353         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12354         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12355
12356         archive_cmds_CXX=''
12357         hardcode_direct_CXX=yes
12358         hardcode_direct_absolute_CXX=yes
12359         hardcode_libdir_separator_CXX=':'
12360         link_all_deplibs_CXX=yes
12361         file_list_spec_CXX='${wl}-f,'
12362
12363         if test "$GXX" = yes; then
12364           case $host_os in aix4.[012]|aix4.[012].*)
12365           # We only want to do this on AIX 4.2 and lower, the check
12366           # below for broken collect2 doesn't work under 4.3+
12367           collect2name=`${CC} -print-prog-name=collect2`
12368           if test -f "$collect2name" &&
12369              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12370           then
12371             # We have reworked collect2
12372             :
12373           else
12374             # We have old collect2
12375             hardcode_direct_CXX=unsupported
12376             # It fails to find uninstalled libraries when the uninstalled
12377             # path is not listed in the libpath.  Setting hardcode_minus_L
12378             # to unsupported forces relinking
12379             hardcode_minus_L_CXX=yes
12380             hardcode_libdir_flag_spec_CXX='-L$libdir'
12381             hardcode_libdir_separator_CXX=
12382           fi
12383           esac
12384           shared_flag='-shared'
12385           if test "$aix_use_runtimelinking" = yes; then
12386             shared_flag="$shared_flag "'${wl}-G'
12387           fi
12388         else
12389           # not using gcc
12390           if test "$host_cpu" = ia64; then
12391           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12392           # chokes on -Wl,-G. The following line is correct:
12393           shared_flag='-G'
12394           else
12395             if test "$aix_use_runtimelinking" = yes; then
12396               shared_flag='${wl}-G'
12397             else
12398               shared_flag='${wl}-bM:SRE'
12399             fi
12400           fi
12401         fi
12402
12403         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12404         # It seems that -bexpall does not export symbols beginning with
12405         # underscore (_), so it is better to generate a list of symbols to
12406         # export.
12407         always_export_symbols_CXX=yes
12408         if test "$aix_use_runtimelinking" = yes; then
12409           # Warning - without using the other runtime loading flags (-brtl),
12410           # -berok will link without error, but may produce a broken library.
12411           allow_undefined_flag_CXX='-berok'
12412           # Determine the default libpath from the value encoded in an empty
12413           # executable.
12414           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h.  */
12416
12417 int
12418 main ()
12419 {
12420
12421   ;
12422   return 0;
12423 }
12424 _ACEOF
12425 if ac_fn_cxx_try_link "$LINENO"; then :
12426
12427 lt_aix_libpath_sed='
12428     /Import File Strings/,/^$/ {
12429         /^0/ {
12430             s/^0  *\(.*\)$/\1/
12431             p
12432         }
12433     }'
12434 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12435 # Check for a 64-bit object if we didn't find anything.
12436 if test -z "$aix_libpath"; then
12437   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12438 fi
12439 fi
12440 rm -f core conftest.err conftest.$ac_objext \
12441     conftest$ac_exeext conftest.$ac_ext
12442 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12443
12444           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12445
12446           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"
12447         else
12448           if test "$host_cpu" = ia64; then
12449             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12450             allow_undefined_flag_CXX="-z nodefs"
12451             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"
12452           else
12453             # Determine the default libpath from the value encoded in an
12454             # empty executable.
12455             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h.  */
12457
12458 int
12459 main ()
12460 {
12461
12462   ;
12463   return 0;
12464 }
12465 _ACEOF
12466 if ac_fn_cxx_try_link "$LINENO"; then :
12467
12468 lt_aix_libpath_sed='
12469     /Import File Strings/,/^$/ {
12470         /^0/ {
12471             s/^0  *\(.*\)$/\1/
12472             p
12473         }
12474     }'
12475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12476 # Check for a 64-bit object if we didn't find anything.
12477 if test -z "$aix_libpath"; then
12478   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12479 fi
12480 fi
12481 rm -f core conftest.err conftest.$ac_objext \
12482     conftest$ac_exeext conftest.$ac_ext
12483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12484
12485             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12486             # Warning - without using the other run time loading flags,
12487             # -berok will link without error, but may produce a broken library.
12488             no_undefined_flag_CXX=' ${wl}-bernotok'
12489             allow_undefined_flag_CXX=' ${wl}-berok'
12490             # Exported symbols can be pulled into shared objects from archives
12491             whole_archive_flag_spec_CXX='$convenience'
12492             archive_cmds_need_lc_CXX=yes
12493             # This is similar to how AIX traditionally builds its shared
12494             # libraries.
12495             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'
12496           fi
12497         fi
12498         ;;
12499
12500       beos*)
12501         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12502           allow_undefined_flag_CXX=unsupported
12503           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12504           # support --undefined.  This deserves some investigation.  FIXME
12505           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12506         else
12507           ld_shlibs_CXX=no
12508         fi
12509         ;;
12510
12511       chorus*)
12512         case $cc_basename in
12513           *)
12514           # FIXME: insert proper C++ library support
12515           ld_shlibs_CXX=no
12516           ;;
12517         esac
12518         ;;
12519
12520       cygwin* | mingw* | pw32* | cegcc*)
12521         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12522         # as there is no search path for DLLs.
12523         hardcode_libdir_flag_spec_CXX='-L$libdir'
12524         allow_undefined_flag_CXX=unsupported
12525         always_export_symbols_CXX=no
12526         enable_shared_with_static_runtimes_CXX=yes
12527
12528         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12529           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'
12530           # If the export-symbols file already is a .def file (1st line
12531           # is EXPORTS), use it as is; otherwise, prepend...
12532           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12533             cp $export_symbols $output_objdir/$soname.def;
12534           else
12535             echo EXPORTS > $output_objdir/$soname.def;
12536             cat $export_symbols >> $output_objdir/$soname.def;
12537           fi~
12538           $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'
12539         else
12540           ld_shlibs_CXX=no
12541         fi
12542         ;;
12543       darwin* | rhapsody*)
12544
12545
12546   archive_cmds_need_lc_CXX=no
12547   hardcode_direct_CXX=no
12548   hardcode_automatic_CXX=yes
12549   hardcode_shlibpath_var_CXX=unsupported
12550   whole_archive_flag_spec_CXX=''
12551   link_all_deplibs_CXX=yes
12552   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12553   case $cc_basename in
12554      ifort*) _lt_dar_can_shared=yes ;;
12555      *) _lt_dar_can_shared=$GCC ;;
12556   esac
12557   if test "$_lt_dar_can_shared" = "yes"; then
12558     output_verbose_link_cmd=echo
12559     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}"
12560     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12561     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}"
12562     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}"
12563        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12564       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}"
12565       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}"
12566     fi
12567
12568   else
12569   ld_shlibs_CXX=no
12570   fi
12571
12572         ;;
12573
12574       dgux*)
12575         case $cc_basename in
12576           ec++*)
12577             # FIXME: insert proper C++ library support
12578             ld_shlibs_CXX=no
12579             ;;
12580           ghcx*)
12581             # Green Hills C++ Compiler
12582             # FIXME: insert proper C++ library support
12583             ld_shlibs_CXX=no
12584             ;;
12585           *)
12586             # FIXME: insert proper C++ library support
12587             ld_shlibs_CXX=no
12588             ;;
12589         esac
12590         ;;
12591
12592       freebsd[12]*)
12593         # C++ shared libraries reported to be fairly broken before
12594         # switch to ELF
12595         ld_shlibs_CXX=no
12596         ;;
12597
12598       freebsd-elf*)
12599         archive_cmds_need_lc_CXX=no
12600         ;;
12601
12602       freebsd* | dragonfly*)
12603         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12604         # conventions
12605         ld_shlibs_CXX=yes
12606         ;;
12607
12608       gnu*)
12609         ;;
12610
12611       hpux9*)
12612         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12613         hardcode_libdir_separator_CXX=:
12614         export_dynamic_flag_spec_CXX='${wl}-E'
12615         hardcode_direct_CXX=yes
12616         hardcode_minus_L_CXX=yes # Not in the search PATH,
12617                                              # but as the default
12618                                              # location of the library.
12619
12620         case $cc_basename in
12621           CC*)
12622             # FIXME: insert proper C++ library support
12623             ld_shlibs_CXX=no
12624             ;;
12625           aCC*)
12626             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'
12627             # Commands to make compiler produce verbose output that lists
12628             # what "hidden" libraries, object files and flags are used when
12629             # linking a shared library.
12630             #
12631             # There doesn't appear to be a way to prevent this compiler from
12632             # explicitly linking system object files so we need to strip them
12633             # from the output so that they don't get included in the library
12634             # dependencies.
12635             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'
12636             ;;
12637           *)
12638             if test "$GXX" = yes; then
12639               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'
12640             else
12641               # FIXME: insert proper C++ library support
12642               ld_shlibs_CXX=no
12643             fi
12644             ;;
12645         esac
12646         ;;
12647
12648       hpux10*|hpux11*)
12649         if test $with_gnu_ld = no; then
12650           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12651           hardcode_libdir_separator_CXX=:
12652
12653           case $host_cpu in
12654             hppa*64*|ia64*)
12655               ;;
12656             *)
12657               export_dynamic_flag_spec_CXX='${wl}-E'
12658               ;;
12659           esac
12660         fi
12661         case $host_cpu in
12662           hppa*64*|ia64*)
12663             hardcode_direct_CXX=no
12664             hardcode_shlibpath_var_CXX=no
12665             ;;
12666           *)
12667             hardcode_direct_CXX=yes
12668             hardcode_direct_absolute_CXX=yes
12669             hardcode_minus_L_CXX=yes # Not in the search PATH,
12670                                                  # but as the default
12671                                                  # location of the library.
12672             ;;
12673         esac
12674
12675         case $cc_basename in
12676           CC*)
12677             # FIXME: insert proper C++ library support
12678             ld_shlibs_CXX=no
12679             ;;
12680           aCC*)
12681             case $host_cpu in
12682               hppa*64*)
12683                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12684                 ;;
12685               ia64*)
12686                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12687                 ;;
12688               *)
12689                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12690                 ;;
12691             esac
12692             # Commands to make compiler produce verbose output that lists
12693             # what "hidden" libraries, object files and flags are used when
12694             # linking a shared library.
12695             #
12696             # There doesn't appear to be a way to prevent this compiler from
12697             # explicitly linking system object files so we need to strip them
12698             # from the output so that they don't get included in the library
12699             # dependencies.
12700             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'
12701             ;;
12702           *)
12703             if test "$GXX" = yes; then
12704               if test $with_gnu_ld = no; then
12705                 case $host_cpu in
12706                   hppa*64*)
12707                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12708                     ;;
12709                   ia64*)
12710                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12711                     ;;
12712                   *)
12713                     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'
12714                     ;;
12715                 esac
12716               fi
12717             else
12718               # FIXME: insert proper C++ library support
12719               ld_shlibs_CXX=no
12720             fi
12721             ;;
12722         esac
12723         ;;
12724
12725       interix[3-9]*)
12726         hardcode_direct_CXX=no
12727         hardcode_shlibpath_var_CXX=no
12728         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12729         export_dynamic_flag_spec_CXX='${wl}-E'
12730         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12731         # Instead, shared libraries are loaded at an image base (0x10000000 by
12732         # default) and relocated if they conflict, which is a slow very memory
12733         # consuming and fragmenting process.  To avoid this, we pick a random,
12734         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12735         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12736         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'
12737         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'
12738         ;;
12739       irix5* | irix6*)
12740         case $cc_basename in
12741           CC*)
12742             # SGI C++
12743             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'
12744
12745             # Archives containing C++ object files must be created using
12746             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12747             # necessary to make sure instantiated templates are included
12748             # in the archive.
12749             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12750             ;;
12751           *)
12752             if test "$GXX" = yes; then
12753               if test "$with_gnu_ld" = no; then
12754                 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'
12755               else
12756                 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'
12757               fi
12758             fi
12759             link_all_deplibs_CXX=yes
12760             ;;
12761         esac
12762         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12763         hardcode_libdir_separator_CXX=:
12764         inherit_rpath_CXX=yes
12765         ;;
12766
12767       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12768         case $cc_basename in
12769           KCC*)
12770             # Kuck and Associates, Inc. (KAI) C++ Compiler
12771
12772             # KCC will only create a shared library if the output file
12773             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12774             # to its proper name (with version) after linking.
12775             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'
12776             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'
12777             # Commands to make compiler produce verbose output that lists
12778             # what "hidden" libraries, object files and flags are used when
12779             # linking a shared library.
12780             #
12781             # There doesn't appear to be a way to prevent this compiler from
12782             # explicitly linking system object files so we need to strip them
12783             # from the output so that they don't get included in the library
12784             # dependencies.
12785             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'
12786
12787             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12788             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12789
12790             # Archives containing C++ object files must be created using
12791             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12792             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12793             ;;
12794           icpc* | ecpc* )
12795             # Intel C++
12796             with_gnu_ld=yes
12797             # version 8.0 and above of icpc choke on multiply defined symbols
12798             # if we add $predep_objects and $postdep_objects, however 7.1 and
12799             # earlier do not add the objects themselves.
12800             case `$CC -V 2>&1` in
12801               *"Version 7."*)
12802                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12803                 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'
12804                 ;;
12805               *)  # Version 8.0 or newer
12806                 tmp_idyn=
12807                 case $host_cpu in
12808                   ia64*) tmp_idyn=' -i_dynamic';;
12809                 esac
12810                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12811                 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'
12812                 ;;
12813             esac
12814             archive_cmds_need_lc_CXX=no
12815             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12816             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12817             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12818             ;;
12819           pgCC* | pgcpp*)
12820             # Portland Group C++ compiler
12821             case `$CC -V` in
12822             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12823               prelink_cmds_CXX='tpldir=Template.dir~
12824                 rm -rf $tpldir~
12825                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12826                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12827               old_archive_cmds_CXX='tpldir=Template.dir~
12828                 rm -rf $tpldir~
12829                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12830                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12831                 $RANLIB $oldlib'
12832               archive_cmds_CXX='tpldir=Template.dir~
12833                 rm -rf $tpldir~
12834                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12835                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12836               archive_expsym_cmds_CXX='tpldir=Template.dir~
12837                 rm -rf $tpldir~
12838                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12839                 $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'
12840               ;;
12841             *) # Version 6 will use weak symbols
12842               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12843               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'
12844               ;;
12845             esac
12846
12847             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12848             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12849             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'
12850             ;;
12851           cxx*)
12852             # Compaq C++
12853             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12854             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'
12855
12856             runpath_var=LD_RUN_PATH
12857             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12858             hardcode_libdir_separator_CXX=:
12859
12860             # Commands to make compiler produce verbose output that lists
12861             # what "hidden" libraries, object files and flags are used when
12862             # linking a shared library.
12863             #
12864             # There doesn't appear to be a way to prevent this compiler from
12865             # explicitly linking system object files so we need to strip them
12866             # from the output so that they don't get included in the library
12867             # dependencies.
12868             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'
12869             ;;
12870           xl*)
12871             # IBM XL 8.0 on PPC, with GNU ld
12872             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12873             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12874             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12875             if test "x$supports_anon_versioning" = xyes; then
12876               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12877                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12878                 echo "local: *; };" >> $output_objdir/$libname.ver~
12879                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12880             fi
12881             ;;
12882           *)
12883             case `$CC -V 2>&1 | sed 5q` in
12884             *Sun\ C*)
12885               # Sun C++ 5.9
12886               no_undefined_flag_CXX=' -zdefs'
12887               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12888               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'
12889               hardcode_libdir_flag_spec_CXX='-R$libdir'
12890               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'
12891               compiler_needs_object_CXX=yes
12892
12893               # Not sure whether something based on
12894               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12895               # would be better.
12896               output_verbose_link_cmd='echo'
12897
12898               # Archives containing C++ object files must be created using
12899               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12900               # necessary to make sure instantiated templates are included
12901               # in the archive.
12902               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12903               ;;
12904             esac
12905             ;;
12906         esac
12907         ;;
12908
12909       lynxos*)
12910         # FIXME: insert proper C++ library support
12911         ld_shlibs_CXX=no
12912         ;;
12913
12914       m88k*)
12915         # FIXME: insert proper C++ library support
12916         ld_shlibs_CXX=no
12917         ;;
12918
12919       mvs*)
12920         case $cc_basename in
12921           cxx*)
12922             # FIXME: insert proper C++ library support
12923             ld_shlibs_CXX=no
12924             ;;
12925           *)
12926             # FIXME: insert proper C++ library support
12927             ld_shlibs_CXX=no
12928             ;;
12929         esac
12930         ;;
12931
12932       netbsd*)
12933         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12934           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12935           wlarc=
12936           hardcode_libdir_flag_spec_CXX='-R$libdir'
12937           hardcode_direct_CXX=yes
12938           hardcode_shlibpath_var_CXX=no
12939         fi
12940         # Workaround some broken pre-1.5 toolchains
12941         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12942         ;;
12943
12944       *nto* | *qnx*)
12945         ld_shlibs_CXX=yes
12946         ;;
12947
12948       openbsd2*)
12949         # C++ shared libraries are fairly broken
12950         ld_shlibs_CXX=no
12951         ;;
12952
12953       openbsd*)
12954         if test -f /usr/libexec/ld.so; then
12955           hardcode_direct_CXX=yes
12956           hardcode_shlibpath_var_CXX=no
12957           hardcode_direct_absolute_CXX=yes
12958           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12959           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12960           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12961             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12962             export_dynamic_flag_spec_CXX='${wl}-E'
12963             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12964           fi
12965           output_verbose_link_cmd=echo
12966         else
12967           ld_shlibs_CXX=no
12968         fi
12969         ;;
12970
12971       osf3* | osf4* | osf5*)
12972         case $cc_basename in
12973           KCC*)
12974             # Kuck and Associates, Inc. (KAI) C++ Compiler
12975
12976             # KCC will only create a shared library if the output file
12977             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12978             # to its proper name (with version) after linking.
12979             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'
12980
12981             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12982             hardcode_libdir_separator_CXX=:
12983
12984             # Archives containing C++ object files must be created using
12985             # the KAI C++ compiler.
12986             case $host in
12987               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12988               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12989             esac
12990             ;;
12991           RCC*)
12992             # Rational C++ 2.4.1
12993             # FIXME: insert proper C++ library support
12994             ld_shlibs_CXX=no
12995             ;;
12996           cxx*)
12997             case $host in
12998               osf3*)
12999                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13000                 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'
13001                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13002                 ;;
13003               *)
13004                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13005                 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'
13006                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13007                   echo "-hidden">> $lib.exp~
13008                   $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~
13009                   $RM $lib.exp'
13010                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13011                 ;;
13012             esac
13013
13014             hardcode_libdir_separator_CXX=:
13015
13016             # Commands to make compiler produce verbose output that lists
13017             # what "hidden" libraries, object files and flags are used when
13018             # linking a shared library.
13019             #
13020             # There doesn't appear to be a way to prevent this compiler from
13021             # explicitly linking system object files so we need to strip them
13022             # from the output so that they don't get included in the library
13023             # dependencies.
13024             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'
13025             ;;
13026           *)
13027             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13028               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13029               case $host in
13030                 osf3*)
13031                   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'
13032                   ;;
13033                 *)
13034                   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'
13035                   ;;
13036               esac
13037
13038               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13039               hardcode_libdir_separator_CXX=:
13040
13041               # Commands to make compiler produce verbose output that lists
13042               # what "hidden" libraries, object files and flags are used when
13043               # linking a shared library.
13044               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13045
13046             else
13047               # FIXME: insert proper C++ library support
13048               ld_shlibs_CXX=no
13049             fi
13050             ;;
13051         esac
13052         ;;
13053
13054       psos*)
13055         # FIXME: insert proper C++ library support
13056         ld_shlibs_CXX=no
13057         ;;
13058
13059       sunos4*)
13060         case $cc_basename in
13061           CC*)
13062             # Sun C++ 4.x
13063             # FIXME: insert proper C++ library support
13064             ld_shlibs_CXX=no
13065             ;;
13066           lcc*)
13067             # Lucid
13068             # FIXME: insert proper C++ library support
13069             ld_shlibs_CXX=no
13070             ;;
13071           *)
13072             # FIXME: insert proper C++ library support
13073             ld_shlibs_CXX=no
13074             ;;
13075         esac
13076         ;;
13077
13078       solaris*)
13079         case $cc_basename in
13080           CC*)
13081             # Sun C++ 4.2, 5.x and Centerline C++
13082             archive_cmds_need_lc_CXX=yes
13083             no_undefined_flag_CXX=' -zdefs'
13084             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13085             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13086               $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'
13087
13088             hardcode_libdir_flag_spec_CXX='-R$libdir'
13089             hardcode_shlibpath_var_CXX=no
13090             case $host_os in
13091               solaris2.[0-5] | solaris2.[0-5].*) ;;
13092               *)
13093                 # The compiler driver will combine and reorder linker options,
13094                 # but understands `-z linker_flag'.
13095                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13096                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13097                 ;;
13098             esac
13099             link_all_deplibs_CXX=yes
13100
13101             output_verbose_link_cmd='echo'
13102
13103             # Archives containing C++ object files must be created using
13104             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13105             # necessary to make sure instantiated templates are included
13106             # in the archive.
13107             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13108             ;;
13109           gcx*)
13110             # Green Hills C++ Compiler
13111             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13112
13113             # The C++ compiler must be used to create the archive.
13114             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13115             ;;
13116           *)
13117             # GNU C++ compiler with Solaris linker
13118             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13119               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13120               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13121                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13122                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13123                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13124
13125                 # Commands to make compiler produce verbose output that lists
13126                 # what "hidden" libraries, object files and flags are used when
13127                 # linking a shared library.
13128                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13129               else
13130                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13131                 # platform.
13132                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13133                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13134                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13135
13136                 # Commands to make compiler produce verbose output that lists
13137                 # what "hidden" libraries, object files and flags are used when
13138                 # linking a shared library.
13139                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13140               fi
13141
13142               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13143               case $host_os in
13144                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13145                 *)
13146                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13147                   ;;
13148               esac
13149             fi
13150             ;;
13151         esac
13152         ;;
13153
13154     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13155       no_undefined_flag_CXX='${wl}-z,text'
13156       archive_cmds_need_lc_CXX=no
13157       hardcode_shlibpath_var_CXX=no
13158       runpath_var='LD_RUN_PATH'
13159
13160       case $cc_basename in
13161         CC*)
13162           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13163           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13164           ;;
13165         *)
13166           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13167           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13168           ;;
13169       esac
13170       ;;
13171
13172       sysv5* | sco3.2v5* | sco5v6*)
13173         # Note: We can NOT use -z defs as we might desire, because we do not
13174         # link with -lc, and that would cause any symbols used from libc to
13175         # always be unresolved, which means just about no library would
13176         # ever link correctly.  If we're not using GNU ld we use -z text
13177         # though, which does catch some bad symbols but isn't as heavy-handed
13178         # as -z defs.
13179         no_undefined_flag_CXX='${wl}-z,text'
13180         allow_undefined_flag_CXX='${wl}-z,nodefs'
13181         archive_cmds_need_lc_CXX=no
13182         hardcode_shlibpath_var_CXX=no
13183         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13184         hardcode_libdir_separator_CXX=':'
13185         link_all_deplibs_CXX=yes
13186         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13187         runpath_var='LD_RUN_PATH'
13188
13189         case $cc_basename in
13190           CC*)
13191             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13192             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13193             ;;
13194           *)
13195             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13196             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13197             ;;
13198         esac
13199       ;;
13200
13201       tandem*)
13202         case $cc_basename in
13203           NCC*)
13204             # NonStop-UX NCC 3.20
13205             # FIXME: insert proper C++ library support
13206             ld_shlibs_CXX=no
13207             ;;
13208           *)
13209             # FIXME: insert proper C++ library support
13210             ld_shlibs_CXX=no
13211             ;;
13212         esac
13213         ;;
13214
13215       vxworks*)
13216         # FIXME: insert proper C++ library support
13217         ld_shlibs_CXX=no
13218         ;;
13219
13220       *)
13221         # FIXME: insert proper C++ library support
13222         ld_shlibs_CXX=no
13223         ;;
13224     esac
13225
13226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13227 $as_echo "$ld_shlibs_CXX" >&6; }
13228     test "$ld_shlibs_CXX" = no && can_build_shared=no
13229
13230     GCC_CXX="$GXX"
13231     LD_CXX="$LD"
13232
13233     ## CAVEAT EMPTOR:
13234     ## There is no encapsulation within the following macros, do not change
13235     ## the running order or otherwise move them around unless you know exactly
13236     ## what you are doing...
13237     # Dependencies to place before and after the object being linked:
13238 predep_objects_CXX=
13239 postdep_objects_CXX=
13240 predeps_CXX=
13241 postdeps_CXX=
13242 compiler_lib_search_path_CXX=
13243
13244 cat > conftest.$ac_ext <<_LT_EOF
13245 class Foo
13246 {
13247 public:
13248   Foo (void) { a = 0; }
13249 private:
13250   int a;
13251 };
13252 _LT_EOF
13253
13254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13255   (eval $ac_compile) 2>&5
13256   ac_status=$?
13257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13258   test $ac_status = 0; }; then
13259   # Parse the compiler output and extract the necessary
13260   # objects, libraries and library flags.
13261
13262   # Sentinel used to keep track of whether or not we are before
13263   # the conftest object file.
13264   pre_test_object_deps_done=no
13265
13266   for p in `eval "$output_verbose_link_cmd"`; do
13267     case $p in
13268
13269     -L* | -R* | -l*)
13270        # Some compilers place space between "-{L,R}" and the path.
13271        # Remove the space.
13272        if test $p = "-L" ||
13273           test $p = "-R"; then
13274          prev=$p
13275          continue
13276        else
13277          prev=
13278        fi
13279
13280        if test "$pre_test_object_deps_done" = no; then
13281          case $p in
13282          -L* | -R*)
13283            # Internal compiler library paths should come after those
13284            # provided the user.  The postdeps already come after the
13285            # user supplied libs so there is no need to process them.
13286            if test -z "$compiler_lib_search_path_CXX"; then
13287              compiler_lib_search_path_CXX="${prev}${p}"
13288            else
13289              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13290            fi
13291            ;;
13292          # The "-l" case would never come before the object being
13293          # linked, so don't bother handling this case.
13294          esac
13295        else
13296          if test -z "$postdeps_CXX"; then
13297            postdeps_CXX="${prev}${p}"
13298          else
13299            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13300          fi
13301        fi
13302        ;;
13303
13304     *.$objext)
13305        # This assumes that the test object file only shows up
13306        # once in the compiler output.
13307        if test "$p" = "conftest.$objext"; then
13308          pre_test_object_deps_done=yes
13309          continue
13310        fi
13311
13312        if test "$pre_test_object_deps_done" = no; then
13313          if test -z "$predep_objects_CXX"; then
13314            predep_objects_CXX="$p"
13315          else
13316            predep_objects_CXX="$predep_objects_CXX $p"
13317          fi
13318        else
13319          if test -z "$postdep_objects_CXX"; then
13320            postdep_objects_CXX="$p"
13321          else
13322            postdep_objects_CXX="$postdep_objects_CXX $p"
13323          fi
13324        fi
13325        ;;
13326
13327     *) ;; # Ignore the rest.
13328
13329     esac
13330   done
13331
13332   # Clean up.
13333   rm -f a.out a.exe
13334 else
13335   echo "libtool.m4: error: problem compiling CXX test program"
13336 fi
13337
13338 $RM -f confest.$objext
13339
13340 # PORTME: override above test on systems where it is broken
13341 case $host_os in
13342 interix[3-9]*)
13343   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13344   # hack all around it, let's just trust "g++" to DTRT.
13345   predep_objects_CXX=
13346   postdep_objects_CXX=
13347   postdeps_CXX=
13348   ;;
13349
13350 linux*)
13351   case `$CC -V 2>&1 | sed 5q` in
13352   *Sun\ C*)
13353     # Sun C++ 5.9
13354
13355     # The more standards-conforming stlport4 library is
13356     # incompatible with the Cstd library. Avoid specifying
13357     # it if it's in CXXFLAGS. Ignore libCrun as
13358     # -library=stlport4 depends on it.
13359     case " $CXX $CXXFLAGS " in
13360     *" -library=stlport4 "*)
13361       solaris_use_stlport4=yes
13362       ;;
13363     esac
13364
13365     if test "$solaris_use_stlport4" != yes; then
13366       postdeps_CXX='-library=Cstd -library=Crun'
13367     fi
13368     ;;
13369   esac
13370   ;;
13371
13372 solaris*)
13373   case $cc_basename in
13374   CC*)
13375     # The more standards-conforming stlport4 library is
13376     # incompatible with the Cstd library. Avoid specifying
13377     # it if it's in CXXFLAGS. Ignore libCrun as
13378     # -library=stlport4 depends on it.
13379     case " $CXX $CXXFLAGS " in
13380     *" -library=stlport4 "*)
13381       solaris_use_stlport4=yes
13382       ;;
13383     esac
13384
13385     # Adding this requires a known-good setup of shared libraries for
13386     # Sun compiler versions before 5.6, else PIC objects from an old
13387     # archive will be linked into the output, leading to subtle bugs.
13388     if test "$solaris_use_stlport4" != yes; then
13389       postdeps_CXX='-library=Cstd -library=Crun'
13390     fi
13391     ;;
13392   esac
13393   ;;
13394 esac
13395
13396
13397 case " $postdeps_CXX " in
13398 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13399 esac
13400  compiler_lib_search_dirs_CXX=
13401 if test -n "${compiler_lib_search_path_CXX}"; then
13402  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13403 fi
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435     lt_prog_compiler_wl_CXX=
13436 lt_prog_compiler_pic_CXX=
13437 lt_prog_compiler_static_CXX=
13438
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13440 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13441
13442   # C++ specific cases for pic, static, wl, etc.
13443   if test "$GXX" = yes; then
13444     lt_prog_compiler_wl_CXX='-Wl,'
13445     lt_prog_compiler_static_CXX='-static'
13446
13447     case $host_os in
13448     aix*)
13449       # All AIX code is PIC.
13450       if test "$host_cpu" = ia64; then
13451         # AIX 5 now supports IA64 processor
13452         lt_prog_compiler_static_CXX='-Bstatic'
13453       fi
13454       ;;
13455
13456     amigaos*)
13457       case $host_cpu in
13458       powerpc)
13459             # see comment about AmigaOS4 .so support
13460             lt_prog_compiler_pic_CXX='-fPIC'
13461         ;;
13462       m68k)
13463             # FIXME: we need at least 68020 code to build shared libraries, but
13464             # adding the `-m68020' flag to GCC prevents building anything better,
13465             # like `-m68040'.
13466             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13467         ;;
13468       esac
13469       ;;
13470
13471     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13472       # PIC is the default for these OSes.
13473       ;;
13474     mingw* | cygwin* | os2* | pw32* | cegcc*)
13475       # This hack is so that the source file can tell whether it is being
13476       # built for inclusion in a dll (and should export symbols for example).
13477       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13478       # (--disable-auto-import) libraries
13479       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13480       ;;
13481     darwin* | rhapsody*)
13482       # PIC is the default on this platform
13483       # Common symbols not allowed in MH_DYLIB files
13484       lt_prog_compiler_pic_CXX='-fno-common'
13485       ;;
13486     *djgpp*)
13487       # DJGPP does not support shared libraries at all
13488       lt_prog_compiler_pic_CXX=
13489       ;;
13490     interix[3-9]*)
13491       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13492       # Instead, we relocate shared libraries at runtime.
13493       ;;
13494     sysv4*MP*)
13495       if test -d /usr/nec; then
13496         lt_prog_compiler_pic_CXX=-Kconform_pic
13497       fi
13498       ;;
13499     hpux*)
13500       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13501       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13502       # sets the default TLS model and affects inlining.
13503       case $host_cpu in
13504       hppa*64*)
13505         ;;
13506       *)
13507         lt_prog_compiler_pic_CXX='-fPIC'
13508         ;;
13509       esac
13510       ;;
13511     *qnx* | *nto*)
13512       # QNX uses GNU C++, but need to define -shared option too, otherwise
13513       # it will coredump.
13514       lt_prog_compiler_pic_CXX='-fPIC -shared'
13515       ;;
13516     *)
13517       lt_prog_compiler_pic_CXX='-fPIC'
13518       ;;
13519     esac
13520   else
13521     case $host_os in
13522       aix[4-9]*)
13523         # All AIX code is PIC.
13524         if test "$host_cpu" = ia64; then
13525           # AIX 5 now supports IA64 processor
13526           lt_prog_compiler_static_CXX='-Bstatic'
13527         else
13528           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13529         fi
13530         ;;
13531       chorus*)
13532         case $cc_basename in
13533         cxch68*)
13534           # Green Hills C++ Compiler
13535           # _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"
13536           ;;
13537         esac
13538         ;;
13539       dgux*)
13540         case $cc_basename in
13541           ec++*)
13542             lt_prog_compiler_pic_CXX='-KPIC'
13543             ;;
13544           ghcx*)
13545             # Green Hills C++ Compiler
13546             lt_prog_compiler_pic_CXX='-pic'
13547             ;;
13548           *)
13549             ;;
13550         esac
13551         ;;
13552       freebsd* | dragonfly*)
13553         # FreeBSD uses GNU C++
13554         ;;
13555       hpux9* | hpux10* | hpux11*)
13556         case $cc_basename in
13557           CC*)
13558             lt_prog_compiler_wl_CXX='-Wl,'
13559             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13560             if test "$host_cpu" != ia64; then
13561               lt_prog_compiler_pic_CXX='+Z'
13562             fi
13563             ;;
13564           aCC*)
13565             lt_prog_compiler_wl_CXX='-Wl,'
13566             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13567             case $host_cpu in
13568             hppa*64*|ia64*)
13569               # +Z the default
13570               ;;
13571             *)
13572               lt_prog_compiler_pic_CXX='+Z'
13573               ;;
13574             esac
13575             ;;
13576           *)
13577             ;;
13578         esac
13579         ;;
13580       interix*)
13581         # This is c89, which is MS Visual C++ (no shared libs)
13582         # Anyone wants to do a port?
13583         ;;
13584       irix5* | irix6* | nonstopux*)
13585         case $cc_basename in
13586           CC*)
13587             lt_prog_compiler_wl_CXX='-Wl,'
13588             lt_prog_compiler_static_CXX='-non_shared'
13589             # CC pic flag -KPIC is the default.
13590             ;;
13591           *)
13592             ;;
13593         esac
13594         ;;
13595       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13596         case $cc_basename in
13597           KCC*)
13598             # KAI C++ Compiler
13599             lt_prog_compiler_wl_CXX='--backend -Wl,'
13600             lt_prog_compiler_pic_CXX='-fPIC'
13601             ;;
13602           ecpc* )
13603             # old Intel C++ for x86_64 which still supported -KPIC.
13604             lt_prog_compiler_wl_CXX='-Wl,'
13605             lt_prog_compiler_pic_CXX='-KPIC'
13606             lt_prog_compiler_static_CXX='-static'
13607             ;;
13608           icpc* )
13609             # Intel C++, used to be incompatible with GCC.
13610             # ICC 10 doesn't accept -KPIC any more.
13611             lt_prog_compiler_wl_CXX='-Wl,'
13612             lt_prog_compiler_pic_CXX='-fPIC'
13613             lt_prog_compiler_static_CXX='-static'
13614             ;;
13615           pgCC* | pgcpp*)
13616             # Portland Group C++ compiler
13617             lt_prog_compiler_wl_CXX='-Wl,'
13618             lt_prog_compiler_pic_CXX='-fpic'
13619             lt_prog_compiler_static_CXX='-Bstatic'
13620             ;;
13621           cxx*)
13622             # Compaq C++
13623             # Make sure the PIC flag is empty.  It appears that all Alpha
13624             # Linux and Compaq Tru64 Unix objects are PIC.
13625             lt_prog_compiler_pic_CXX=
13626             lt_prog_compiler_static_CXX='-non_shared'
13627             ;;
13628           xlc* | xlC*)
13629             # IBM XL 8.0 on PPC
13630             lt_prog_compiler_wl_CXX='-Wl,'
13631             lt_prog_compiler_pic_CXX='-qpic'
13632             lt_prog_compiler_static_CXX='-qstaticlink'
13633             ;;
13634           *)
13635             case `$CC -V 2>&1 | sed 5q` in
13636             *Sun\ C*)
13637               # Sun C++ 5.9
13638               lt_prog_compiler_pic_CXX='-KPIC'
13639               lt_prog_compiler_static_CXX='-Bstatic'
13640               lt_prog_compiler_wl_CXX='-Qoption ld '
13641               ;;
13642             esac
13643             ;;
13644         esac
13645         ;;
13646       lynxos*)
13647         ;;
13648       m88k*)
13649         ;;
13650       mvs*)
13651         case $cc_basename in
13652           cxx*)
13653             lt_prog_compiler_pic_CXX='-W c,exportall'
13654             ;;
13655           *)
13656             ;;
13657         esac
13658         ;;
13659       netbsd* | netbsdelf*-gnu)
13660         ;;
13661       *qnx* | *nto*)
13662         # QNX uses GNU C++, but need to define -shared option too, otherwise
13663         # it will coredump.
13664         lt_prog_compiler_pic_CXX='-fPIC -shared'
13665         ;;
13666       osf3* | osf4* | osf5*)
13667         case $cc_basename in
13668           KCC*)
13669             lt_prog_compiler_wl_CXX='--backend -Wl,'
13670             ;;
13671           RCC*)
13672             # Rational C++ 2.4.1
13673             lt_prog_compiler_pic_CXX='-pic'
13674             ;;
13675           cxx*)
13676             # Digital/Compaq C++
13677             lt_prog_compiler_wl_CXX='-Wl,'
13678             # Make sure the PIC flag is empty.  It appears that all Alpha
13679             # Linux and Compaq Tru64 Unix objects are PIC.
13680             lt_prog_compiler_pic_CXX=
13681             lt_prog_compiler_static_CXX='-non_shared'
13682             ;;
13683           *)
13684             ;;
13685         esac
13686         ;;
13687       psos*)
13688         ;;
13689       solaris*)
13690         case $cc_basename in
13691           CC*)
13692             # Sun C++ 4.2, 5.x and Centerline C++
13693             lt_prog_compiler_pic_CXX='-KPIC'
13694             lt_prog_compiler_static_CXX='-Bstatic'
13695             lt_prog_compiler_wl_CXX='-Qoption ld '
13696             ;;
13697           gcx*)
13698             # Green Hills C++ Compiler
13699             lt_prog_compiler_pic_CXX='-PIC'
13700             ;;
13701           *)
13702             ;;
13703         esac
13704         ;;
13705       sunos4*)
13706         case $cc_basename in
13707           CC*)
13708             # Sun C++ 4.x
13709             lt_prog_compiler_pic_CXX='-pic'
13710             lt_prog_compiler_static_CXX='-Bstatic'
13711             ;;
13712           lcc*)
13713             # Lucid
13714             lt_prog_compiler_pic_CXX='-pic'
13715             ;;
13716           *)
13717             ;;
13718         esac
13719         ;;
13720       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13721         case $cc_basename in
13722           CC*)
13723             lt_prog_compiler_wl_CXX='-Wl,'
13724             lt_prog_compiler_pic_CXX='-KPIC'
13725             lt_prog_compiler_static_CXX='-Bstatic'
13726             ;;
13727         esac
13728         ;;
13729       tandem*)
13730         case $cc_basename in
13731           NCC*)
13732             # NonStop-UX NCC 3.20
13733             lt_prog_compiler_pic_CXX='-KPIC'
13734             ;;
13735           *)
13736             ;;
13737         esac
13738         ;;
13739       vxworks*)
13740         ;;
13741       *)
13742         lt_prog_compiler_can_build_shared_CXX=no
13743         ;;
13744     esac
13745   fi
13746
13747 case $host_os in
13748   # For platforms which do not support PIC, -DPIC is meaningless:
13749   *djgpp*)
13750     lt_prog_compiler_pic_CXX=
13751     ;;
13752   *)
13753     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13754     ;;
13755 esac
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13757 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13758
13759
13760
13761 #
13762 # Check to make sure the PIC flag actually works.
13763 #
13764 if test -n "$lt_prog_compiler_pic_CXX"; then
13765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13766 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13767 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13768   $as_echo_n "(cached) " >&6
13769 else
13770   lt_cv_prog_compiler_pic_works_CXX=no
13771    ac_outfile=conftest.$ac_objext
13772    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13773    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13774    # Insert the option either (1) after the last *FLAGS variable, or
13775    # (2) before a word containing "conftest.", or (3) at the end.
13776    # Note that $ac_compile itself does not contain backslashes and begins
13777    # with a dollar sign (not a hyphen), so the echo should work correctly.
13778    # The option is referenced via a variable to avoid confusing sed.
13779    lt_compile=`echo "$ac_compile" | $SED \
13780    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13781    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13782    -e 's:$: $lt_compiler_flag:'`
13783    (eval echo "\"\$as_me:13783: $lt_compile\"" >&5)
13784    (eval "$lt_compile" 2>conftest.err)
13785    ac_status=$?
13786    cat conftest.err >&5
13787    echo "$as_me:13787: \$? = $ac_status" >&5
13788    if (exit $ac_status) && test -s "$ac_outfile"; then
13789      # The compiler can only warn and ignore the option if not recognized
13790      # So say no if there are warnings other than the usual output.
13791      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13792      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13793      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13794        lt_cv_prog_compiler_pic_works_CXX=yes
13795      fi
13796    fi
13797    $RM conftest*
13798
13799 fi
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13801 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13802
13803 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13804     case $lt_prog_compiler_pic_CXX in
13805      "" | " "*) ;;
13806      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13807      esac
13808 else
13809     lt_prog_compiler_pic_CXX=
13810      lt_prog_compiler_can_build_shared_CXX=no
13811 fi
13812
13813 fi
13814
13815
13816
13817 #
13818 # Check to make sure the static flag actually works.
13819 #
13820 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13822 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13823 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13824   $as_echo_n "(cached) " >&6
13825 else
13826   lt_cv_prog_compiler_static_works_CXX=no
13827    save_LDFLAGS="$LDFLAGS"
13828    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13829    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13830    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13831      # The linker can only warn and ignore the option if not recognized
13832      # So say no if there are warnings
13833      if test -s conftest.err; then
13834        # Append any errors to the config.log.
13835        cat conftest.err 1>&5
13836        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13837        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13838        if diff conftest.exp conftest.er2 >/dev/null; then
13839          lt_cv_prog_compiler_static_works_CXX=yes
13840        fi
13841      else
13842        lt_cv_prog_compiler_static_works_CXX=yes
13843      fi
13844    fi
13845    $RM -r conftest*
13846    LDFLAGS="$save_LDFLAGS"
13847
13848 fi
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13850 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13851
13852 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13853     :
13854 else
13855     lt_prog_compiler_static_CXX=
13856 fi
13857
13858
13859
13860
13861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13862 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13863 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13864   $as_echo_n "(cached) " >&6
13865 else
13866   lt_cv_prog_compiler_c_o_CXX=no
13867    $RM -r conftest 2>/dev/null
13868    mkdir conftest
13869    cd conftest
13870    mkdir out
13871    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13872
13873    lt_compiler_flag="-o out/conftest2.$ac_objext"
13874    # Insert the option either (1) after the last *FLAGS variable, or
13875    # (2) before a word containing "conftest.", or (3) at the end.
13876    # Note that $ac_compile itself does not contain backslashes and begins
13877    # with a dollar sign (not a hyphen), so the echo should work correctly.
13878    lt_compile=`echo "$ac_compile" | $SED \
13879    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13880    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13881    -e 's:$: $lt_compiler_flag:'`
13882    (eval echo "\"\$as_me:13882: $lt_compile\"" >&5)
13883    (eval "$lt_compile" 2>out/conftest.err)
13884    ac_status=$?
13885    cat out/conftest.err >&5
13886    echo "$as_me:13886: \$? = $ac_status" >&5
13887    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13888    then
13889      # The compiler can only warn and ignore the option if not recognized
13890      # So say no if there are warnings
13891      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13892      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13893      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13894        lt_cv_prog_compiler_c_o_CXX=yes
13895      fi
13896    fi
13897    chmod u+w . 2>&5
13898    $RM conftest*
13899    # SGI C++ compiler will create directory out/ii_files/ for
13900    # template instantiation
13901    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13902    $RM out/* && rmdir out
13903    cd ..
13904    $RM -r conftest
13905    $RM conftest*
13906
13907 fi
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13909 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13910
13911
13912
13913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13914 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13915 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13916   $as_echo_n "(cached) " >&6
13917 else
13918   lt_cv_prog_compiler_c_o_CXX=no
13919    $RM -r conftest 2>/dev/null
13920    mkdir conftest
13921    cd conftest
13922    mkdir out
13923    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13924
13925    lt_compiler_flag="-o out/conftest2.$ac_objext"
13926    # Insert the option either (1) after the last *FLAGS variable, or
13927    # (2) before a word containing "conftest.", or (3) at the end.
13928    # Note that $ac_compile itself does not contain backslashes and begins
13929    # with a dollar sign (not a hyphen), so the echo should work correctly.
13930    lt_compile=`echo "$ac_compile" | $SED \
13931    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13932    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13933    -e 's:$: $lt_compiler_flag:'`
13934    (eval echo "\"\$as_me:13934: $lt_compile\"" >&5)
13935    (eval "$lt_compile" 2>out/conftest.err)
13936    ac_status=$?
13937    cat out/conftest.err >&5
13938    echo "$as_me:13938: \$? = $ac_status" >&5
13939    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13940    then
13941      # The compiler can only warn and ignore the option if not recognized
13942      # So say no if there are warnings
13943      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13944      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13945      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13946        lt_cv_prog_compiler_c_o_CXX=yes
13947      fi
13948    fi
13949    chmod u+w . 2>&5
13950    $RM conftest*
13951    # SGI C++ compiler will create directory out/ii_files/ for
13952    # template instantiation
13953    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13954    $RM out/* && rmdir out
13955    cd ..
13956    $RM -r conftest
13957    $RM conftest*
13958
13959 fi
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13961 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13962
13963
13964
13965
13966 hard_links="nottested"
13967 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13968   # do not overwrite the value of need_locks provided by the user
13969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13970 $as_echo_n "checking if we can lock with hard links... " >&6; }
13971   hard_links=yes
13972   $RM conftest*
13973   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13974   touch conftest.a
13975   ln conftest.a conftest.b 2>&5 || hard_links=no
13976   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13978 $as_echo "$hard_links" >&6; }
13979   if test "$hard_links" = no; then
13980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13981 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13982     need_locks=warn
13983   fi
13984 else
13985   need_locks=no
13986 fi
13987
13988
13989
13990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13991 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13992
13993   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13994   case $host_os in
13995   aix[4-9]*)
13996     # If we're using GNU nm, then we don't want the "-C" option.
13997     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13998     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13999       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'
14000     else
14001       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'
14002     fi
14003     ;;
14004   pw32*)
14005     export_symbols_cmds_CXX="$ltdll_cmds"
14006   ;;
14007   cygwin* | mingw* | cegcc*)
14008     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'
14009   ;;
14010   linux* | k*bsd*-gnu)
14011     link_all_deplibs_CXX=no
14012   ;;
14013   *)
14014     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14015   ;;
14016   esac
14017   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14018
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14020 $as_echo "$ld_shlibs_CXX" >&6; }
14021 test "$ld_shlibs_CXX" = no && can_build_shared=no
14022
14023 with_gnu_ld_CXX=$with_gnu_ld
14024
14025
14026
14027
14028
14029
14030 #
14031 # Do we need to explicitly link libc?
14032 #
14033 case "x$archive_cmds_need_lc_CXX" in
14034 x|xyes)
14035   # Assume -lc should be added
14036   archive_cmds_need_lc_CXX=yes
14037
14038   if test "$enable_shared" = yes && test "$GCC" = yes; then
14039     case $archive_cmds_CXX in
14040     *'~'*)
14041       # FIXME: we may have to deal with multi-command sequences.
14042       ;;
14043     '$CC '*)
14044       # Test whether the compiler implicitly links with -lc since on some
14045       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14046       # to ld, don't add -lc before -lgcc.
14047       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14048 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14049       $RM conftest*
14050       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14051
14052       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14053   (eval $ac_compile) 2>&5
14054   ac_status=$?
14055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14056   test $ac_status = 0; } 2>conftest.err; then
14057         soname=conftest
14058         lib=conftest
14059         libobjs=conftest.$ac_objext
14060         deplibs=
14061         wl=$lt_prog_compiler_wl_CXX
14062         pic_flag=$lt_prog_compiler_pic_CXX
14063         compiler_flags=-v
14064         linker_flags=-v
14065         verstring=
14066         output_objdir=.
14067         libname=conftest
14068         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14069         allow_undefined_flag_CXX=
14070         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14071   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14072   ac_status=$?
14073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14074   test $ac_status = 0; }
14075         then
14076           archive_cmds_need_lc_CXX=no
14077         else
14078           archive_cmds_need_lc_CXX=yes
14079         fi
14080         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14081       else
14082         cat conftest.err 1>&5
14083       fi
14084       $RM conftest*
14085       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14086 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14087       ;;
14088     esac
14089   fi
14090   ;;
14091 esac
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14157 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14158
14159 library_names_spec=
14160 libname_spec='lib$name'
14161 soname_spec=
14162 shrext_cmds=".so"
14163 postinstall_cmds=
14164 postuninstall_cmds=
14165 finish_cmds=
14166 finish_eval=
14167 shlibpath_var=
14168 shlibpath_overrides_runpath=unknown
14169 version_type=none
14170 dynamic_linker="$host_os ld.so"
14171 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14172 need_lib_prefix=unknown
14173 hardcode_into_libs=no
14174
14175 # when you set need_version to no, make sure it does not cause -set_version
14176 # flags to be left without arguments
14177 need_version=unknown
14178
14179 case $host_os in
14180 aix3*)
14181   version_type=linux
14182   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14183   shlibpath_var=LIBPATH
14184
14185   # AIX 3 has no versioning support, so we append a major version to the name.
14186   soname_spec='${libname}${release}${shared_ext}$major'
14187   ;;
14188
14189 aix[4-9]*)
14190   version_type=linux
14191   need_lib_prefix=no
14192   need_version=no
14193   hardcode_into_libs=yes
14194   if test "$host_cpu" = ia64; then
14195     # AIX 5 supports IA64
14196     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14197     shlibpath_var=LD_LIBRARY_PATH
14198   else
14199     # With GCC up to 2.95.x, collect2 would create an import file
14200     # for dependence libraries.  The import file would start with
14201     # the line `#! .'.  This would cause the generated library to
14202     # depend on `.', always an invalid library.  This was fixed in
14203     # development snapshots of GCC prior to 3.0.
14204     case $host_os in
14205       aix4 | aix4.[01] | aix4.[01].*)
14206       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14207            echo ' yes '
14208            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14209         :
14210       else
14211         can_build_shared=no
14212       fi
14213       ;;
14214     esac
14215     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14216     # soname into executable. Probably we can add versioning support to
14217     # collect2, so additional links can be useful in future.
14218     if test "$aix_use_runtimelinking" = yes; then
14219       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14220       # instead of lib<name>.a to let people know that these are not
14221       # typical AIX shared libraries.
14222       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14223     else
14224       # We preserve .a as extension for shared libraries through AIX4.2
14225       # and later when we are not doing run time linking.
14226       library_names_spec='${libname}${release}.a $libname.a'
14227       soname_spec='${libname}${release}${shared_ext}$major'
14228     fi
14229     shlibpath_var=LIBPATH
14230   fi
14231   ;;
14232
14233 amigaos*)
14234   case $host_cpu in
14235   powerpc)
14236     # Since July 2007 AmigaOS4 officially supports .so libraries.
14237     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14238     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14239     ;;
14240   m68k)
14241     library_names_spec='$libname.ixlibrary $libname.a'
14242     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14243     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'
14244     ;;
14245   esac
14246   ;;
14247
14248 beos*)
14249   library_names_spec='${libname}${shared_ext}'
14250   dynamic_linker="$host_os ld.so"
14251   shlibpath_var=LIBRARY_PATH
14252   ;;
14253
14254 bsdi[45]*)
14255   version_type=linux
14256   need_version=no
14257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14258   soname_spec='${libname}${release}${shared_ext}$major'
14259   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14260   shlibpath_var=LD_LIBRARY_PATH
14261   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14262   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14263   # the default ld.so.conf also contains /usr/contrib/lib and
14264   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14265   # libtool to hard-code these into programs
14266   ;;
14267
14268 cygwin* | mingw* | pw32* | cegcc*)
14269   version_type=windows
14270   shrext_cmds=".dll"
14271   need_version=no
14272   need_lib_prefix=no
14273
14274   case $GCC,$host_os in
14275   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14276     library_names_spec='$libname.dll.a'
14277     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14278     postinstall_cmds='base_file=`basename \${file}`~
14279       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14280       dldir=$destdir/`dirname \$dlpath`~
14281       test -d \$dldir || mkdir -p \$dldir~
14282       $install_prog $dir/$dlname \$dldir/$dlname~
14283       chmod a+x \$dldir/$dlname~
14284       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14285         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14286       fi'
14287     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14288       dlpath=$dir/\$dldll~
14289        $RM \$dlpath'
14290     shlibpath_overrides_runpath=yes
14291
14292     case $host_os in
14293     cygwin*)
14294       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14295       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14296       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14297       ;;
14298     mingw* | cegcc*)
14299       # MinGW DLLs use traditional 'lib' prefix
14300       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14301       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14302       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14303         # It is most probably a Windows format PATH printed by
14304         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14305         # path with ; separators, and with drive letters. We can handle the
14306         # drive letters (cygwin fileutils understands them), so leave them,
14307         # especially as we might pass files found there to a mingw objdump,
14308         # which wouldn't understand a cygwinified path. Ahh.
14309         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14310       else
14311         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14312       fi
14313       ;;
14314     pw32*)
14315       # pw32 DLLs use 'pw' prefix rather than 'lib'
14316       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14317       ;;
14318     esac
14319     ;;
14320
14321   *)
14322     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14323     ;;
14324   esac
14325   dynamic_linker='Win32 ld.exe'
14326   # FIXME: first we should search . and the directory the executable is in
14327   shlibpath_var=PATH
14328   ;;
14329
14330 darwin* | rhapsody*)
14331   dynamic_linker="$host_os dyld"
14332   version_type=darwin
14333   need_lib_prefix=no
14334   need_version=no
14335   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14336   soname_spec='${libname}${release}${major}$shared_ext'
14337   shlibpath_overrides_runpath=yes
14338   shlibpath_var=DYLD_LIBRARY_PATH
14339   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14340
14341   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14342   ;;
14343
14344 dgux*)
14345   version_type=linux
14346   need_lib_prefix=no
14347   need_version=no
14348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14349   soname_spec='${libname}${release}${shared_ext}$major'
14350   shlibpath_var=LD_LIBRARY_PATH
14351   ;;
14352
14353 freebsd1*)
14354   dynamic_linker=no
14355   ;;
14356
14357 freebsd* | dragonfly*)
14358   # DragonFly does not have aout.  When/if they implement a new
14359   # versioning mechanism, adjust this.
14360   if test -x /usr/bin/objformat; then
14361     objformat=`/usr/bin/objformat`
14362   else
14363     case $host_os in
14364     freebsd[123]*) objformat=aout ;;
14365     *) objformat=elf ;;
14366     esac
14367   fi
14368   version_type=freebsd-$objformat
14369   case $version_type in
14370     freebsd-elf*)
14371       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14372       need_version=no
14373       need_lib_prefix=no
14374       ;;
14375     freebsd-*)
14376       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14377       need_version=yes
14378       ;;
14379   esac
14380   shlibpath_var=LD_LIBRARY_PATH
14381   case $host_os in
14382   freebsd2*)
14383     shlibpath_overrides_runpath=yes
14384     ;;
14385   freebsd3.[01]* | freebsdelf3.[01]*)
14386     shlibpath_overrides_runpath=yes
14387     hardcode_into_libs=yes
14388     ;;
14389   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14390   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14391     shlibpath_overrides_runpath=no
14392     hardcode_into_libs=yes
14393     ;;
14394   *) # from 4.6 on, and DragonFly
14395     shlibpath_overrides_runpath=yes
14396     hardcode_into_libs=yes
14397     ;;
14398   esac
14399   ;;
14400
14401 gnu*)
14402   version_type=linux
14403   need_lib_prefix=no
14404   need_version=no
14405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14406   soname_spec='${libname}${release}${shared_ext}$major'
14407   shlibpath_var=LD_LIBRARY_PATH
14408   hardcode_into_libs=yes
14409   ;;
14410
14411 hpux9* | hpux10* | hpux11*)
14412   # Give a soname corresponding to the major version so that dld.sl refuses to
14413   # link against other versions.
14414   version_type=sunos
14415   need_lib_prefix=no
14416   need_version=no
14417   case $host_cpu in
14418   ia64*)
14419     shrext_cmds='.so'
14420     hardcode_into_libs=yes
14421     dynamic_linker="$host_os dld.so"
14422     shlibpath_var=LD_LIBRARY_PATH
14423     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14424     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425     soname_spec='${libname}${release}${shared_ext}$major'
14426     if test "X$HPUX_IA64_MODE" = X32; then
14427       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14428     else
14429       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14430     fi
14431     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14432     ;;
14433   hppa*64*)
14434     shrext_cmds='.sl'
14435     hardcode_into_libs=yes
14436     dynamic_linker="$host_os dld.sl"
14437     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14438     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14439     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14440     soname_spec='${libname}${release}${shared_ext}$major'
14441     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14442     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14443     ;;
14444   *)
14445     shrext_cmds='.sl'
14446     dynamic_linker="$host_os dld.sl"
14447     shlibpath_var=SHLIB_PATH
14448     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14449     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14450     soname_spec='${libname}${release}${shared_ext}$major'
14451     ;;
14452   esac
14453   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14454   postinstall_cmds='chmod 555 $lib'
14455   ;;
14456
14457 interix[3-9]*)
14458   version_type=linux
14459   need_lib_prefix=no
14460   need_version=no
14461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14462   soname_spec='${libname}${release}${shared_ext}$major'
14463   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14464   shlibpath_var=LD_LIBRARY_PATH
14465   shlibpath_overrides_runpath=no
14466   hardcode_into_libs=yes
14467   ;;
14468
14469 irix5* | irix6* | nonstopux*)
14470   case $host_os in
14471     nonstopux*) version_type=nonstopux ;;
14472     *)
14473         if test "$lt_cv_prog_gnu_ld" = yes; then
14474                 version_type=linux
14475         else
14476                 version_type=irix
14477         fi ;;
14478   esac
14479   need_lib_prefix=no
14480   need_version=no
14481   soname_spec='${libname}${release}${shared_ext}$major'
14482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14483   case $host_os in
14484   irix5* | nonstopux*)
14485     libsuff= shlibsuff=
14486     ;;
14487   *)
14488     case $LD in # libtool.m4 will add one of these switches to LD
14489     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14490       libsuff= shlibsuff= libmagic=32-bit;;
14491     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14492       libsuff=32 shlibsuff=N32 libmagic=N32;;
14493     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14494       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14495     *) libsuff= shlibsuff= libmagic=never-match;;
14496     esac
14497     ;;
14498   esac
14499   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14500   shlibpath_overrides_runpath=no
14501   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14502   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14503   hardcode_into_libs=yes
14504   ;;
14505
14506 # No shared lib support for Linux oldld, aout, or coff.
14507 linux*oldld* | linux*aout* | linux*coff*)
14508   dynamic_linker=no
14509   ;;
14510
14511 # This must be Linux ELF.
14512 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14513   version_type=linux
14514   need_lib_prefix=no
14515   need_version=no
14516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14517   soname_spec='${libname}${release}${shared_ext}$major'
14518   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14519   shlibpath_var=LD_LIBRARY_PATH
14520   shlibpath_overrides_runpath=no
14521   # Some binutils ld are patched to set DT_RUNPATH
14522   save_LDFLAGS=$LDFLAGS
14523   save_libdir=$libdir
14524   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14525        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h.  */
14528
14529 int
14530 main ()
14531 {
14532
14533   ;
14534   return 0;
14535 }
14536 _ACEOF
14537 if ac_fn_cxx_try_link "$LINENO"; then :
14538   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14539   shlibpath_overrides_runpath=yes
14540 fi
14541 fi
14542 rm -f core conftest.err conftest.$ac_objext \
14543     conftest$ac_exeext conftest.$ac_ext
14544   LDFLAGS=$save_LDFLAGS
14545   libdir=$save_libdir
14546
14547   # This implies no fast_install, which is unacceptable.
14548   # Some rework will be needed to allow for fast_install
14549   # before this can be enabled.
14550   hardcode_into_libs=yes
14551
14552   # Append ld.so.conf contents to the search path
14553   if test -f /etc/ld.so.conf; then
14554     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' ' '`
14555     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14556   fi
14557
14558   # We used to test for /lib/ld.so.1 and disable shared libraries on
14559   # powerpc, because MkLinux only supported shared libraries with the
14560   # GNU dynamic linker.  Since this was broken with cross compilers,
14561   # most powerpc-linux boxes support dynamic linking these days and
14562   # people can always --disable-shared, the test was removed, and we
14563   # assume the GNU/Linux dynamic linker is in use.
14564   dynamic_linker='GNU/Linux ld.so'
14565   ;;
14566
14567 netbsdelf*-gnu)
14568   version_type=linux
14569   need_lib_prefix=no
14570   need_version=no
14571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14572   soname_spec='${libname}${release}${shared_ext}$major'
14573   shlibpath_var=LD_LIBRARY_PATH
14574   shlibpath_overrides_runpath=no
14575   hardcode_into_libs=yes
14576   dynamic_linker='NetBSD ld.elf_so'
14577   ;;
14578
14579 netbsd*)
14580   version_type=sunos
14581   need_lib_prefix=no
14582   need_version=no
14583   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14584     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14585     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14586     dynamic_linker='NetBSD (a.out) ld.so'
14587   else
14588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14589     soname_spec='${libname}${release}${shared_ext}$major'
14590     dynamic_linker='NetBSD ld.elf_so'
14591   fi
14592   shlibpath_var=LD_LIBRARY_PATH
14593   shlibpath_overrides_runpath=yes
14594   hardcode_into_libs=yes
14595   ;;
14596
14597 newsos6)
14598   version_type=linux
14599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14600   shlibpath_var=LD_LIBRARY_PATH
14601   shlibpath_overrides_runpath=yes
14602   ;;
14603
14604 *nto* | *qnx*)
14605   version_type=qnx
14606   need_lib_prefix=no
14607   need_version=no
14608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609   soname_spec='${libname}${release}${shared_ext}$major'
14610   shlibpath_var=LD_LIBRARY_PATH
14611   shlibpath_overrides_runpath=no
14612   hardcode_into_libs=yes
14613   dynamic_linker='ldqnx.so'
14614   ;;
14615
14616 openbsd*)
14617   version_type=sunos
14618   sys_lib_dlsearch_path_spec="/usr/lib"
14619   need_lib_prefix=no
14620   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14621   case $host_os in
14622     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14623     *)                          need_version=no  ;;
14624   esac
14625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14626   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14627   shlibpath_var=LD_LIBRARY_PATH
14628   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14629     case $host_os in
14630       openbsd2.[89] | openbsd2.[89].*)
14631         shlibpath_overrides_runpath=no
14632         ;;
14633       *)
14634         shlibpath_overrides_runpath=yes
14635         ;;
14636       esac
14637   else
14638     shlibpath_overrides_runpath=yes
14639   fi
14640   ;;
14641
14642 os2*)
14643   libname_spec='$name'
14644   shrext_cmds=".dll"
14645   need_lib_prefix=no
14646   library_names_spec='$libname${shared_ext} $libname.a'
14647   dynamic_linker='OS/2 ld.exe'
14648   shlibpath_var=LIBPATH
14649   ;;
14650
14651 osf3* | osf4* | osf5*)
14652   version_type=osf
14653   need_lib_prefix=no
14654   need_version=no
14655   soname_spec='${libname}${release}${shared_ext}$major'
14656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657   shlibpath_var=LD_LIBRARY_PATH
14658   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14659   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14660   ;;
14661
14662 rdos*)
14663   dynamic_linker=no
14664   ;;
14665
14666 solaris*)
14667   version_type=linux
14668   need_lib_prefix=no
14669   need_version=no
14670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671   soname_spec='${libname}${release}${shared_ext}$major'
14672   shlibpath_var=LD_LIBRARY_PATH
14673   shlibpath_overrides_runpath=yes
14674   hardcode_into_libs=yes
14675   # ldd complains unless libraries are executable
14676   postinstall_cmds='chmod +x $lib'
14677   ;;
14678
14679 sunos4*)
14680   version_type=sunos
14681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14682   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14683   shlibpath_var=LD_LIBRARY_PATH
14684   shlibpath_overrides_runpath=yes
14685   if test "$with_gnu_ld" = yes; then
14686     need_lib_prefix=no
14687   fi
14688   need_version=yes
14689   ;;
14690
14691 sysv4 | sysv4.3*)
14692   version_type=linux
14693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694   soname_spec='${libname}${release}${shared_ext}$major'
14695   shlibpath_var=LD_LIBRARY_PATH
14696   case $host_vendor in
14697     sni)
14698       shlibpath_overrides_runpath=no
14699       need_lib_prefix=no
14700       runpath_var=LD_RUN_PATH
14701       ;;
14702     siemens)
14703       need_lib_prefix=no
14704       ;;
14705     motorola)
14706       need_lib_prefix=no
14707       need_version=no
14708       shlibpath_overrides_runpath=no
14709       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14710       ;;
14711   esac
14712   ;;
14713
14714 sysv4*MP*)
14715   if test -d /usr/nec ;then
14716     version_type=linux
14717     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14718     soname_spec='$libname${shared_ext}.$major'
14719     shlibpath_var=LD_LIBRARY_PATH
14720   fi
14721   ;;
14722
14723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14724   version_type=freebsd-elf
14725   need_lib_prefix=no
14726   need_version=no
14727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14728   soname_spec='${libname}${release}${shared_ext}$major'
14729   shlibpath_var=LD_LIBRARY_PATH
14730   shlibpath_overrides_runpath=yes
14731   hardcode_into_libs=yes
14732   if test "$with_gnu_ld" = yes; then
14733     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14734   else
14735     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14736     case $host_os in
14737       sco3.2v5*)
14738         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14739         ;;
14740     esac
14741   fi
14742   sys_lib_dlsearch_path_spec='/usr/lib'
14743   ;;
14744
14745 tpf*)
14746   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14747   version_type=linux
14748   need_lib_prefix=no
14749   need_version=no
14750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14751   shlibpath_var=LD_LIBRARY_PATH
14752   shlibpath_overrides_runpath=no
14753   hardcode_into_libs=yes
14754   ;;
14755
14756 uts4*)
14757   version_type=linux
14758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14759   soname_spec='${libname}${release}${shared_ext}$major'
14760   shlibpath_var=LD_LIBRARY_PATH
14761   ;;
14762
14763 *)
14764   dynamic_linker=no
14765   ;;
14766 esac
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14768 $as_echo "$dynamic_linker" >&6; }
14769 test "$dynamic_linker" = no && can_build_shared=no
14770
14771 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14772 if test "$GCC" = yes; then
14773   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14774 fi
14775
14776 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14777   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14778 fi
14779 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14780   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14781 fi
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14819 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14820 hardcode_action_CXX=
14821 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14822    test -n "$runpath_var_CXX" ||
14823    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14824
14825   # We can hardcode non-existent directories.
14826   if test "$hardcode_direct_CXX" != no &&
14827      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14828      # have to relink, otherwise we might link with an installed library
14829      # when we should be linking with a yet-to-be-installed one
14830      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14831      test "$hardcode_minus_L_CXX" != no; then
14832     # Linking always hardcodes the temporary library directory.
14833     hardcode_action_CXX=relink
14834   else
14835     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14836     hardcode_action_CXX=immediate
14837   fi
14838 else
14839   # We cannot hardcode anything, or else we can only hardcode existing
14840   # directories.
14841   hardcode_action_CXX=unsupported
14842 fi
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14844 $as_echo "$hardcode_action_CXX" >&6; }
14845
14846 if test "$hardcode_action_CXX" = relink ||
14847    test "$inherit_rpath_CXX" = yes; then
14848   # Fast installation is not supported
14849   enable_fast_install=no
14850 elif test "$shlibpath_overrides_runpath" = yes ||
14851      test "$enable_shared" = no; then
14852   # Fast installation is not necessary
14853   enable_fast_install=needless
14854 fi
14855
14856
14857
14858
14859
14860
14861
14862   fi # test -n "$compiler"
14863
14864   CC=$lt_save_CC
14865   LDCXX=$LD
14866   LD=$lt_save_LD
14867   GCC=$lt_save_GCC
14868   with_gnu_ld=$lt_save_with_gnu_ld
14869   lt_cv_path_LDCXX=$lt_cv_path_LD
14870   lt_cv_path_LD=$lt_save_path_LD
14871   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14872   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14873 fi # test "$_lt_caught_CXX_error" != yes
14874
14875 ac_ext=c
14876 ac_cpp='$CPP $CPPFLAGS'
14877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14880
14881
14882 ac_config_headers="$ac_config_headers config.h"
14883
14884 for ac_header in stdarg.h stdio.h stdint.h sys/param.h
14885 do :
14886   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14887 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14888 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14889   cat >>confdefs.h <<_ACEOF
14890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14891 _ACEOF
14892
14893 fi
14894
14895 done
14896
14897 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14898 if test "x$ac_cv_func_vasprintf" = x""yes; then :
14899   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
14900
14901 else
14902   case " $LIBOBJS " in
14903   *" vasprintf.$ac_objext "* ) ;;
14904   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
14905  ;;
14906 esac
14907
14908 fi
14909
14910
14911
14912
14913 reauth=no
14914 # Check whether --enable-reauth was given.
14915 if test "${enable_reauth+set}" = set; then :
14916   enableval=$enable_reauth;  if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
14917       reauth=$enableval
14918     else
14919       echo "--enable-reauth argument must be yes or no"
14920       exit -1
14921     fi
14922
14923 fi
14924
14925
14926 if test "x$reauth" = "xyes" ; then
14927   echo "Fast reauthentication protocol enabled"
14928   TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
14929 fi
14930  if test "x$reauth" != "xno"; then
14931   GSSEAP_ENABLE_REAUTH_TRUE=
14932   GSSEAP_ENABLE_REAUTH_FALSE='#'
14933 else
14934   GSSEAP_ENABLE_REAUTH_TRUE='#'
14935   GSSEAP_ENABLE_REAUTH_FALSE=
14936 fi
14937
14938
14939 acceptor=yes
14940 # Check whether --enable-acceptor was given.
14941 if test "${enable_acceptor+set}" = set; then :
14942   enableval=$enable_acceptor;  if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
14943       acceptor=$enableval
14944     else
14945       echo "--enable-acceptor argument must be yes or no"
14946       exit -1
14947     fi
14948
14949 fi
14950
14951
14952 if test "x$acceptor" = "xyes" ; then
14953   echo "acceptor enabled"
14954   TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_ACCEPTOR"
14955 fi
14956  if test "x$acceptor" != "xno"; then
14957   GSSEAP_ENABLE_ACCEPTOR_TRUE=
14958   GSSEAP_ENABLE_ACCEPTOR_FALSE='#'
14959 else
14960   GSSEAP_ENABLE_ACCEPTOR_TRUE='#'
14961   GSSEAP_ENABLE_ACCEPTOR_FALSE=
14962 fi
14963
14964
14965
14966
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows" >&5
14968 $as_echo_n "checking for windows... " >&6; }
14969 target_windows="no"
14970 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
14971 if test "x$ac_cv_header_windows_h" = x""yes; then :
14972   target_windows="yes"
14973 else
14974   target_windows="no"
14975 fi
14976
14977
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_windows" >&5
14979 $as_echo "$target_windows" >&6; }
14980  if test "x$target_windows" = "xyes"; then
14981   TARGET_WINDOWS_TRUE=
14982   TARGET_WINDOWS_FALSE='#'
14983 else
14984   TARGET_WINDOWS_TRUE='#'
14985   TARGET_WINDOWS_FALSE=
14986 fi
14987
14988
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS-API and Kerberos implementation" >&5
14990 $as_echo_n "checking for GSS-API and Kerberos implementation... " >&6; }
14991 KRB5_DIR=
14992 found_krb5="no"
14993
14994 # Check whether --with-krb5 was given.
14995 if test "${with_krb5+set}" = set; then :
14996   withval=$with_krb5; check_krb5_dir="$withval"
14997 else
14998   check_krb5_dir=
14999 fi
15000
15001 for dir in $check_krb5_dir $prefix /usr/local /usr ; do
15002    krb5dir="$dir"
15003    if test -x "$dir/bin/krb5-config"; then
15004      found_krb5="yes";
15005      if test "x$target_windows" = "xyes"; then
15006         KRB5_CFLAGS=-I"$check_krb5_dir/include";
15007         KRB5_LDFLAGS="-L$check_krb5_dir/lib/";
15008         KRB5_LIBS="-lkrb5_32 -lgssapi32";
15009         COMPILE_ET="$check_krb5_dir/bin/compile_et";
15010         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15011 $as_echo "yes" >&6; }
15012      else
15013         KRB5_CFLAGS=`$dir/bin/krb5-config gssapi --cflags`;
15014         KRB5_LDFLAGS="-L$dir/lib";
15015         KRB5_LIBS=`$dir/bin/krb5-config gssapi --libs`
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15017 $as_echo "yes" >&6; }
15018         # Extract the first word of "compile_et", so it can be a program name with args.
15019 set dummy compile_et; ac_word=$2
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15021 $as_echo_n "checking for $ac_word... " >&6; }
15022 if test "${ac_cv_path_COMPILE_ET+set}" = set; then :
15023   $as_echo_n "(cached) " >&6
15024 else
15025   case $COMPILE_ET in
15026   [\\/]* | ?:[\\/]*)
15027   ac_cv_path_COMPILE_ET="$COMPILE_ET" # Let the user override the test with a path.
15028   ;;
15029   *)
15030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15031 for as_dir in $dir/bin$PATH_SEPARATOr
15032 do
15033   IFS=$as_save_IFS
15034   test -z "$as_dir" && as_dir=.
15035     for ac_exec_ext in '' $ac_executable_extensions; do
15036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15037     ac_cv_path_COMPILE_ET="$as_dir/$ac_word$ac_exec_ext"
15038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15039     break 2
15040   fi
15041 done
15042   done
15043 IFS=$as_save_IFS
15044
15045   test -z "$ac_cv_path_COMPILE_ET" && ac_cv_path_COMPILE_ET="compile_et"
15046   ;;
15047 esac
15048 fi
15049 COMPILE_ET=$ac_cv_path_COMPILE_ET
15050 if test -n "$COMPILE_ET"; then
15051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
15052 $as_echo "$COMPILE_ET" >&6; }
15053 else
15054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15055 $as_echo "no" >&6; }
15056 fi
15057
15058
15059      fi
15060      break;
15061    fi
15062 done
15063 if test x_$found_krb5 != x_yes; then
15064    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_krb5" >&5
15065 $as_echo "$found_krb5" >&6; }
15066    as_fn_error $? "
15067 ----------------------------------------------------------------------
15068   Cannot find GSS-API/Kerberos libraries.
15069
15070   Please install MIT or Heimdal or specify installation directory with
15071   --with-krb5=(dir).
15072 ----------------------------------------------------------------------
15073 " "$LINENO" 5
15074 else
15075         printf "Kerberos found in $krb5dir\n";
15076
15077
15078
15079
15080         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5" >&5
15081 $as_echo_n "checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5... " >&6; }
15082 if test "${ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT+set}" = set; then :
15083   $as_echo_n "(cached) " >&6
15084 else
15085   ac_check_lib_save_LIBS=$LIBS
15086 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h.  */
15089
15090 /* Override any GCC internal prototype to avoid an error.
15091    Use char because int might match the return type of a GCC
15092    builtin and then its argument prototype would still apply.  */
15093 #ifdef __cplusplus
15094 extern "C"
15095 #endif
15096 char GSS_C_NT_COMPOSITE_EXPORT ();
15097 int
15098 main ()
15099 {
15100 return GSS_C_NT_COMPOSITE_EXPORT ();
15101   ;
15102   return 0;
15103 }
15104 _ACEOF
15105 if ac_fn_c_try_link "$LINENO"; then :
15106   ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=yes
15107 else
15108   ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=no
15109 fi
15110 rm -f core conftest.err conftest.$ac_objext \
15111     conftest$ac_exeext conftest.$ac_ext
15112 LIBS=$ac_check_lib_save_LIBS
15113 fi
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&5
15115 $as_echo "$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&6; }
15116 if test "x$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" = x""yes; then :
15117
15118 cat >>confdefs.h <<_ACEOF
15119 #define HAVE_GSS_C_NT_COMPOSITE_EXPORT 1
15120 _ACEOF
15121
15122 fi
15123
15124         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_inquire_attrs_for_mech in -lkrb5" >&5
15125 $as_echo_n "checking for gss_inquire_attrs_for_mech in -lkrb5... " >&6; }
15126 if test "${ac_cv_lib_krb5_gss_inquire_attrs_for_mech+set}" = set; then :
15127   $as_echo_n "(cached) " >&6
15128 else
15129   ac_check_lib_save_LIBS=$LIBS
15130 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h.  */
15133
15134 /* Override any GCC internal prototype to avoid an error.
15135    Use char because int might match the return type of a GCC
15136    builtin and then its argument prototype would still apply.  */
15137 #ifdef __cplusplus
15138 extern "C"
15139 #endif
15140 char gss_inquire_attrs_for_mech ();
15141 int
15142 main ()
15143 {
15144 return gss_inquire_attrs_for_mech ();
15145   ;
15146   return 0;
15147 }
15148 _ACEOF
15149 if ac_fn_c_try_link "$LINENO"; then :
15150   ac_cv_lib_krb5_gss_inquire_attrs_for_mech=yes
15151 else
15152   ac_cv_lib_krb5_gss_inquire_attrs_for_mech=no
15153 fi
15154 rm -f core conftest.err conftest.$ac_objext \
15155     conftest$ac_exeext conftest.$ac_ext
15156 LIBS=$ac_check_lib_save_LIBS
15157 fi
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&5
15159 $as_echo "$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&6; }
15160 if test "x$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" = x""yes; then :
15161
15162 cat >>confdefs.h <<_ACEOF
15163 #define HAVE_GSS_INQUIRE_ATTRS_FOR_MECH 1
15164 _ACEOF
15165
15166 fi
15167
15168         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_import_cred in -lkrb5" >&5
15169 $as_echo_n "checking for gss_krb5_import_cred in -lkrb5... " >&6; }
15170 if test "${ac_cv_lib_krb5_gss_krb5_import_cred+set}" = set; then :
15171   $as_echo_n "(cached) " >&6
15172 else
15173   ac_check_lib_save_LIBS=$LIBS
15174 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h.  */
15177
15178 /* Override any GCC internal prototype to avoid an error.
15179    Use char because int might match the return type of a GCC
15180    builtin and then its argument prototype would still apply.  */
15181 #ifdef __cplusplus
15182 extern "C"
15183 #endif
15184 char gss_krb5_import_cred ();
15185 int
15186 main ()
15187 {
15188 return gss_krb5_import_cred ();
15189   ;
15190   return 0;
15191 }
15192 _ACEOF
15193 if ac_fn_c_try_link "$LINENO"; then :
15194   ac_cv_lib_krb5_gss_krb5_import_cred=yes
15195 else
15196   ac_cv_lib_krb5_gss_krb5_import_cred=no
15197 fi
15198 rm -f core conftest.err conftest.$ac_objext \
15199     conftest$ac_exeext conftest.$ac_ext
15200 LIBS=$ac_check_lib_save_LIBS
15201 fi
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_krb5_import_cred" >&5
15203 $as_echo "$ac_cv_lib_krb5_gss_krb5_import_cred" >&6; }
15204 if test "x$ac_cv_lib_krb5_gss_krb5_import_cred" = x""yes; then :
15205
15206 cat >>confdefs.h <<_ACEOF
15207 #define HAVE_GSS_KRB5_IMPORT_CRED 1
15208 _ACEOF
15209
15210 fi
15211
15212         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heimdal_version in -lkrb5" >&5
15213 $as_echo_n "checking for heimdal_version in -lkrb5... " >&6; }
15214 if test "${ac_cv_lib_krb5_heimdal_version+set}" = set; then :
15215   $as_echo_n "(cached) " >&6
15216 else
15217   ac_check_lib_save_LIBS=$LIBS
15218 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h.  */
15221
15222 /* Override any GCC internal prototype to avoid an error.
15223    Use char because int might match the return type of a GCC
15224    builtin and then its argument prototype would still apply.  */
15225 #ifdef __cplusplus
15226 extern "C"
15227 #endif
15228 char heimdal_version ();
15229 int
15230 main ()
15231 {
15232 return heimdal_version ();
15233   ;
15234   return 0;
15235 }
15236 _ACEOF
15237 if ac_fn_c_try_link "$LINENO"; then :
15238   ac_cv_lib_krb5_heimdal_version=yes
15239 else
15240   ac_cv_lib_krb5_heimdal_version=no
15241 fi
15242 rm -f core conftest.err conftest.$ac_objext \
15243     conftest$ac_exeext conftest.$ac_ext
15244 LIBS=$ac_check_lib_save_LIBS
15245 fi
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_heimdal_version" >&5
15247 $as_echo "$ac_cv_lib_krb5_heimdal_version" >&6; }
15248 if test "x$ac_cv_lib_krb5_heimdal_version" = x""yes; then :
15249
15250 cat >>confdefs.h <<_ACEOF
15251 #define HAVE_HEIMDAL_VERSION 1
15252 _ACEOF
15253 , heimdal=yes
15254 else
15255   heimdal=no
15256 fi
15257
15258          if test "x$heimdal" != "xno"; then
15259   HEIMDAL_TRUE=
15260   HEIMDAL_FALSE='#'
15261 else
15262   HEIMDAL_TRUE='#'
15263   HEIMDAL_FALSE=
15264 fi
15265
15266 fi
15267
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSAML implementation" >&5
15269 $as_echo_n "checking for OpenSAML implementation... " >&6; }
15270 OPENSAML_DIR=
15271 found_opensaml="no"
15272
15273 # Check whether --with-opensaml was given.
15274 if test "${with_opensaml+set}" = set; then :
15275   withval=$with_opensaml; check_opensaml_dir="$withval"
15276 else
15277   check_opensaml_dir=
15278 fi
15279
15280 if test x_$check_opensaml_dir != x_no; then
15281 for dir in $check_opensaml_dir $prefix /usr /usr/local ; do
15282    opensamldir="$dir"
15283    if test -f "$dir/include/saml/Assertion.h"; then
15284      found_opensaml="yes";
15285      OPENSAML_DIR="${opensamldir}"
15286      OPENSAML_CXXFLAGS="-I$opensamldir/include";
15287      break;
15288    fi
15289 done
15290 fi
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_opensaml" >&5
15292 $as_echo "$found_opensaml" >&6; }
15293 if test x_$check_opensaml_dir != x_no; then
15294 if test x_$found_opensaml != x_yes; then
15295    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15296 ----------------------------------------------------------------------
15297   Cannot find OpenSAML libraries, building without OpenSAML support.
15298
15299   Please install OpenSAML or specify installation directory with
15300   --with-opensaml=(dir).
15301 ----------------------------------------------------------------------
15302 " >&5
15303 $as_echo "$as_me: WARNING:
15304 ----------------------------------------------------------------------
15305   Cannot find OpenSAML libraries, building without OpenSAML support.
15306
15307   Please install OpenSAML or specify installation directory with
15308   --with-opensaml=(dir).
15309 ----------------------------------------------------------------------
15310 " >&2;}
15311 else
15312         printf "OpenSAML found in $opensamldir\n";
15313         OPENSAML_LIBS="-lsaml -lxml-security-c -lxmltooling -lxerces-c";
15314         OPENSAML_LDFLAGS="-L$opensamldir/lib";
15315
15316
15317
15318
15319 cat >>confdefs.h <<_ACEOF
15320 #define HAVE_OPENSAML 1
15321 _ACEOF
15322
15323 fi
15324 fi
15325
15326  if test "x_$check_opensaml_dir" != "x_no"; then
15327   OPENSAML_TRUE=
15328   OPENSAML_FALSE='#'
15329 else
15330   OPENSAML_TRUE='#'
15331   OPENSAML_FALSE=
15332 fi
15333
15334
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth resolver implementation" >&5
15336 $as_echo_n "checking for Shibboleth resolver implementation... " >&6; }
15337 SHIBRESOLVER_DIR=
15338 found_shibresolver="no"
15339
15340 # Check whether --with-shibresolver was given.
15341 if test "${with_shibresolver+set}" = set; then :
15342   withval=$with_shibresolver; check_shibresolver_dir="$withval"
15343 else
15344   check_shibresolver_dir=
15345 fi
15346
15347 if test x_$check_shibresolver_dir != x_no; then
15348 for dir in $check_shibresolver_dir $prefix /usr /usr/local ; do
15349    shibresolverdir="$dir"
15350    if test -f "$dir/include/shibresolver/resolver.h"; then
15351      found_shibresolver="yes";
15352      SHIBRESOLVER_DIR="${shibresolverdir}"
15353      SHIBRESOLVER_CXXFLAGS="-I$shibresolverdir/include";
15354      break;
15355    fi
15356 done
15357 fi
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibresolver" >&5
15359 $as_echo "$found_shibresolver" >&6; }
15360 if test x_$check_shibresolver_dir != x_no; then
15361 if test x_$found_shibresolver != x_yes; then
15362    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15363 ----------------------------------------------------------------------
15364   Cannot find Shibboleth resolver libraries, building without
15365   Shibboleth support.
15366
15367   Please install Shibboleth or specify installation directory with
15368   --with-shibresolver=(dir).
15369 ----------------------------------------------------------------------
15370 " >&5
15371 $as_echo "$as_me: WARNING:
15372 ----------------------------------------------------------------------
15373   Cannot find Shibboleth resolver libraries, building without
15374   Shibboleth support.
15375
15376   Please install Shibboleth or specify installation directory with
15377   --with-shibresolver=(dir).
15378 ----------------------------------------------------------------------
15379 " >&2;}
15380 else
15381         printf "Shibboleth resolver found in $shibresolverdir\n";
15382         SHIBRESOLVER_LIBS="-lshibresolver";
15383         SHIBRESOLVER_LDFLAGS="-L$shibresolverdir/lib";
15384
15385
15386
15387
15388 cat >>confdefs.h <<_ACEOF
15389 #define HAVE_SHIBRESOLVER 1
15390 _ACEOF
15391
15392 fi
15393 fi
15394
15395  if test "x_$check_shibresolver_dir" != "x_no"; then
15396   SHIBRESOLVER_TRUE=
15397   SHIBRESOLVER_FALSE='#'
15398 else
15399   SHIBRESOLVER_TRUE='#'
15400   SHIBRESOLVER_FALSE=
15401 fi
15402
15403 if test x_$found_shibresolver = x_yes; then
15404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth implementation" >&5
15405 $as_echo_n "checking for Shibboleth implementation... " >&6; }
15406 SHIBSP_DIR=
15407 found_shibsp="no"
15408
15409 # Check whether --with-shibsp was given.
15410 if test "${with_shibsp+set}" = set; then :
15411   withval=$with_shibsp; check_shibsp_dir="$withval"
15412 else
15413   check_shibsp_dir=
15414 fi
15415
15416 for dir in $check_shibsp_dir $prefix /usr /usr/local ; do
15417    shibspdir="$dir"
15418    if test -f "$dir/include/shibsp/SPConfig.h"; then
15419      found_shibsp="yes";
15420      SHIBSP_DIR="${shibspdir}"
15421      SHIBSP_CXXFLAGS="-I$shibspdir/include";
15422      break;
15423    fi
15424 done
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibsp" >&5
15426 $as_echo "$found_shibsp" >&6; }
15427 if test x_$found_shibsp != x_yes; then
15428    as_fn_error $? "
15429 ----------------------------------------------------------------------
15430   Cannot find Shibboleth libraries.
15431
15432   Please install Shibboleth or specify installation directory with
15433   --with-shibsp=(dir).
15434 ----------------------------------------------------------------------
15435 " "$LINENO" 5
15436 else
15437         printf "Shibboleth found in $shibspdir\n";
15438         SHIBSP_LIBS="-lshibsp -lsaml -lxml-security-c -lxmltooling -lxerces-c";
15439         SHIBSP_LDFLAGS="-L$shibspdir/lib";
15440
15441
15442
15443
15444 cat >>confdefs.h <<_ACEOF
15445 #define HAVE_SHIBSP 1
15446 _ACEOF
15447
15448 fi
15449
15450 fi
15451
15452 if test "x$acceptor" = "xyes" ; then
15453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for radsec" >&5
15454 $as_echo_n "checking for radsec... " >&6; }
15455 RADSEC_DIR=
15456 found_radsec="no"
15457
15458 # Check whether --with-radsec was given.
15459 if test "${with_radsec+set}" = set; then :
15460   withval=$with_radsec; check_radsec_dir="$withval"
15461 else
15462   check_radsec_dir=
15463 fi
15464
15465 for dir in $check_radsec_dir $prefix /usr /usr/local ; do
15466    radsecdir="$dir"
15467    if test -f "$dir/include/radsec/radsec.h"; then
15468      found_radsec="yes";
15469      RADSEC_DIR="${radsecdir}"
15470      RADSEC_CFLAGS="-I$radsecdir/include";
15471      break;
15472    fi
15473 done
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_radsec" >&5
15475 $as_echo "$found_radsec" >&6; }
15476 if test x_$found_radsec != x_yes; then
15477    as_fn_error $? "
15478 ----------------------------------------------------------------------
15479   Cannot find radsec libraries.
15480
15481   Please install libradsec or specify installation directory with
15482   --with-radsec=(dir).
15483 ----------------------------------------------------------------------
15484 " "$LINENO" 5
15485 else
15486         printf "radsec found in $radsecdir\n";
15487         RADSEC_LIBS="-lradsec";
15488         RADSEC_LDFLAGS="-L$radsecdir/lib";
15489
15490
15491
15492 fi
15493
15494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15495 $as_echo_n "checking for jansson... " >&6; }
15496 JANSSON_DIR=
15497 found_jansson="no"
15498
15499 # Check whether --with-jansson was given.
15500 if test "${with_jansson+set}" = set; then :
15501   withval=$with_jansson; check_jansson_dir="$withval"
15502 else
15503   check_jansson_dir=
15504 fi
15505
15506 for dir in $check_jansson_dir $prefix /usr /usr/local ; do
15507    janssondir="$dir"
15508    if test -f "$dir/include/jansson.h"; then
15509      found_jansson="yes";
15510      JANSSON_DIR="${janssondir}"
15511      JANSSON_CFLAGS="-I$janssondir/include";
15512      break;
15513    fi
15514 done
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_jansson" >&5
15516 $as_echo "$found_jansson" >&6; }
15517 if test x_$found_jansson != x_yes; then
15518    as_fn_error $? "
15519 ----------------------------------------------------------------------
15520   Cannot find jansson libraries.
15521
15522   Please install libjansson or specify installation directory with
15523   --with-jansson=(dir).
15524 ----------------------------------------------------------------------
15525 " "$LINENO" 5
15526 else
15527         printf "jansson found in $janssondir\n";
15528         JANSSON_LIBS="-ljansson";
15529         JANSSON_LDFLAGS="-L$janssondir/lib";
15530
15531
15532
15533 fi
15534
15535 fi
15536
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Moonshot identity selector implementation" >&5
15538 $as_echo_n "checking for Moonshot identity selector implementation... " >&6; }
15539 LIBMOONSHOT_DIR=
15540 LIBMOONSHOT_CFLAGS=
15541 LIBMOONSHOT_LDFLAGS=
15542 LIBMOONSHOT_LIBS=
15543 found_libmoonshot="no"
15544
15545 # Check whether --with-libmoonshot was given.
15546 if test "${with_libmoonshot+set}" = set; then :
15547   withval=$with_libmoonshot; check_libmoonshot_dir="$withval"
15548 else
15549   check_libmoonshot_dir=
15550 fi
15551
15552 for dir in $check_libmoonshot_dir $prefix /usr /usr/local ; do
15553    libmoonshotdir="$dir"
15554    if test -f "$dir/include/libmoonshot.h"; then
15555      found_libmoonshot="yes";
15556      LIBMOONSHOT_DIR="${libmoonshotdir}"
15557      LIBMOONSHOT_CFLAGS="-I$libmoonshotdir/include";
15558      break;
15559    fi
15560 done
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_libmoonshot" >&5
15562 $as_echo "$found_libmoonshot" >&6; }
15563 if test x_$found_libmoonshot = x_yes; then
15564     printf "libmoonshot found in $libmoonshotdir\n";
15565     LIBMOONSHOT_LIBS="-lmoonshot";
15566     LIBMOONSHOT_LDFLAGS="-L$libmoonshot/lib";
15567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot_get_identity in -lmoonshot" >&5
15568 $as_echo_n "checking for moonshot_get_identity in -lmoonshot... " >&6; }
15569 if test "${ac_cv_lib_moonshot_moonshot_get_identity+set}" = set; then :
15570   $as_echo_n "(cached) " >&6
15571 else
15572   ac_check_lib_save_LIBS=$LIBS
15573 LIBS="-lmoonshot "$LIBMOONSHOT_LIBS" $LIBS"
15574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h.  */
15576
15577 /* Override any GCC internal prototype to avoid an error.
15578    Use char because int might match the return type of a GCC
15579    builtin and then its argument prototype would still apply.  */
15580 #ifdef __cplusplus
15581 extern "C"
15582 #endif
15583 char moonshot_get_identity ();
15584 int
15585 main ()
15586 {
15587 return moonshot_get_identity ();
15588   ;
15589   return 0;
15590 }
15591 _ACEOF
15592 if ac_fn_c_try_link "$LINENO"; then :
15593   ac_cv_lib_moonshot_moonshot_get_identity=yes
15594 else
15595   ac_cv_lib_moonshot_moonshot_get_identity=no
15596 fi
15597 rm -f core conftest.err conftest.$ac_objext \
15598     conftest$ac_exeext conftest.$ac_ext
15599 LIBS=$ac_check_lib_save_LIBS
15600 fi
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_moonshot_moonshot_get_identity" >&5
15602 $as_echo "$ac_cv_lib_moonshot_moonshot_get_identity" >&6; }
15603 if test "x$ac_cv_lib_moonshot_moonshot_get_identity" = x""yes; then :
15604
15605 cat >>confdefs.h <<_ACEOF
15606 #define HAVE_MOONSHOT_GET_IDENTITY 1
15607 _ACEOF
15608
15609 fi
15610
15611 fi
15612
15613
15614
15615      if test "x$found_libmoonshot" != "xno"; then
15616   LIBMOONSHOT_TRUE=
15617   LIBMOONSHOT_FALSE='#'
15618 else
15619   LIBMOONSHOT_TRUE='#'
15620   LIBMOONSHOT_FALSE=
15621 fi
15622
15623
15624 ac_config_files="$ac_config_files Makefile libeap/Makefile mech_eap/Makefile mech_eap.spec"
15625
15626 cat >confcache <<\_ACEOF
15627 # This file is a shell script that caches the results of configure
15628 # tests run on this system so they can be shared between configure
15629 # scripts and configure runs, see configure's option --config-cache.
15630 # It is not useful on other systems.  If it contains results you don't
15631 # want to keep, you may remove or edit it.
15632 #
15633 # config.status only pays attention to the cache file if you give it
15634 # the --recheck option to rerun configure.
15635 #
15636 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15637 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15638 # following values.
15639
15640 _ACEOF
15641
15642 # The following way of writing the cache mishandles newlines in values,
15643 # but we know of no workaround that is simple, portable, and efficient.
15644 # So, we kill variables containing newlines.
15645 # Ultrix sh set writes to stderr and can't be redirected directly,
15646 # and sets the high bit in the cache file unless we assign to the vars.
15647 (
15648   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15649     eval ac_val=\$$ac_var
15650     case $ac_val in #(
15651     *${as_nl}*)
15652       case $ac_var in #(
15653       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15654 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15655       esac
15656       case $ac_var in #(
15657       _ | IFS | as_nl) ;; #(
15658       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15659       *) { eval $ac_var=; unset $ac_var;} ;;
15660       esac ;;
15661     esac
15662   done
15663
15664   (set) 2>&1 |
15665     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15666     *${as_nl}ac_space=\ *)
15667       # `set' does not quote correctly, so add quotes: double-quote
15668       # substitution turns \\\\ into \\, and sed turns \\ into \.
15669       sed -n \
15670         "s/'/'\\\\''/g;
15671           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15672       ;; #(
15673     *)
15674       # `set' quotes correctly as required by POSIX, so do not add quotes.
15675       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15676       ;;
15677     esac |
15678     sort
15679 ) |
15680   sed '
15681      /^ac_cv_env_/b end
15682      t clear
15683      :clear
15684      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15685      t end
15686      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15687      :end' >>confcache
15688 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15689   if test -w "$cache_file"; then
15690     test "x$cache_file" != "x/dev/null" &&
15691       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15692 $as_echo "$as_me: updating cache $cache_file" >&6;}
15693     cat confcache >$cache_file
15694   else
15695     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15696 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15697   fi
15698 fi
15699 rm -f confcache
15700
15701 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15702 # Let make expand exec_prefix.
15703 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15704
15705 DEFS=-DHAVE_CONFIG_H
15706
15707 ac_libobjs=
15708 ac_ltlibobjs=
15709 U=
15710 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15711   # 1. Remove the extension, and $U if already installed.
15712   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15713   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15714   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15715   #    will be set to the directory where LIBOBJS objects are built.
15716   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15717   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15718 done
15719 LIBOBJS=$ac_libobjs
15720
15721 LTLIBOBJS=$ac_ltlibobjs
15722
15723
15724 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15725   as_fn_error $? "conditional \"AMDEP\" was never defined.
15726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15727 fi
15728 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15729   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15731 fi
15732  if test -n "$EXEEXT"; then
15733   am__EXEEXT_TRUE=
15734   am__EXEEXT_FALSE='#'
15735 else
15736   am__EXEEXT_TRUE='#'
15737   am__EXEEXT_FALSE=
15738 fi
15739
15740 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15741   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15743 fi
15744 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15745   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15747 fi
15748 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15749   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15751 fi
15752 if test -z "${GSSEAP_ENABLE_REAUTH_TRUE}" && test -z "${GSSEAP_ENABLE_REAUTH_FALSE}"; then
15753   as_fn_error $? "conditional \"GSSEAP_ENABLE_REAUTH\" was never defined.
15754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15755 fi
15756 if test -z "${GSSEAP_ENABLE_ACCEPTOR_TRUE}" && test -z "${GSSEAP_ENABLE_ACCEPTOR_FALSE}"; then
15757   as_fn_error $? "conditional \"GSSEAP_ENABLE_ACCEPTOR\" was never defined.
15758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15759 fi
15760 if test -z "${TARGET_WINDOWS_TRUE}" && test -z "${TARGET_WINDOWS_FALSE}"; then
15761   as_fn_error $? "conditional \"TARGET_WINDOWS\" was never defined.
15762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15763 fi
15764 if test -z "${HEIMDAL_TRUE}" && test -z "${HEIMDAL_FALSE}"; then
15765   as_fn_error $? "conditional \"HEIMDAL\" was never defined.
15766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15767 fi
15768 if test -z "${OPENSAML_TRUE}" && test -z "${OPENSAML_FALSE}"; then
15769   as_fn_error $? "conditional \"OPENSAML\" was never defined.
15770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15771 fi
15772 if test -z "${SHIBRESOLVER_TRUE}" && test -z "${SHIBRESOLVER_FALSE}"; then
15773   as_fn_error $? "conditional \"SHIBRESOLVER\" was never defined.
15774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15775 fi
15776 if test -z "${LIBMOONSHOT_TRUE}" && test -z "${LIBMOONSHOT_FALSE}"; then
15777   as_fn_error $? "conditional \"LIBMOONSHOT\" was never defined.
15778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15779 fi
15780
15781 : ${CONFIG_STATUS=./config.status}
15782 ac_write_fail=0
15783 ac_clean_files_save=$ac_clean_files
15784 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15786 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15787 as_write_fail=0
15788 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15789 #! $SHELL
15790 # Generated by $as_me.
15791 # Run this file to recreate the current configuration.
15792 # Compiler output produced by configure, useful for debugging
15793 # configure, is in config.log if it exists.
15794
15795 debug=false
15796 ac_cs_recheck=false
15797 ac_cs_silent=false
15798
15799 SHELL=\${CONFIG_SHELL-$SHELL}
15800 export SHELL
15801 _ASEOF
15802 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15803 ## -------------------- ##
15804 ## M4sh Initialization. ##
15805 ## -------------------- ##
15806
15807 # Be more Bourne compatible
15808 DUALCASE=1; export DUALCASE # for MKS sh
15809 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15810   emulate sh
15811   NULLCMD=:
15812   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15813   # is contrary to our usage.  Disable this feature.
15814   alias -g '${1+"$@"}'='"$@"'
15815   setopt NO_GLOB_SUBST
15816 else
15817   case `(set -o) 2>/dev/null` in #(
15818   *posix*) :
15819     set -o posix ;; #(
15820   *) :
15821      ;;
15822 esac
15823 fi
15824
15825
15826 as_nl='
15827 '
15828 export as_nl
15829 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15830 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15831 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15832 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15833 # Prefer a ksh shell builtin over an external printf program on Solaris,
15834 # but without wasting forks for bash or zsh.
15835 if test -z "$BASH_VERSION$ZSH_VERSION" \
15836     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15837   as_echo='print -r --'
15838   as_echo_n='print -rn --'
15839 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15840   as_echo='printf %s\n'
15841   as_echo_n='printf %s'
15842 else
15843   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15844     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15845     as_echo_n='/usr/ucb/echo -n'
15846   else
15847     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15848     as_echo_n_body='eval
15849       arg=$1;
15850       case $arg in #(
15851       *"$as_nl"*)
15852         expr "X$arg" : "X\\(.*\\)$as_nl";
15853         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15854       esac;
15855       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15856     '
15857     export as_echo_n_body
15858     as_echo_n='sh -c $as_echo_n_body as_echo'
15859   fi
15860   export as_echo_body
15861   as_echo='sh -c $as_echo_body as_echo'
15862 fi
15863
15864 # The user is always right.
15865 if test "${PATH_SEPARATOR+set}" != set; then
15866   PATH_SEPARATOR=:
15867   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15868     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15869       PATH_SEPARATOR=';'
15870   }
15871 fi
15872
15873
15874 # IFS
15875 # We need space, tab and new line, in precisely that order.  Quoting is
15876 # there to prevent editors from complaining about space-tab.
15877 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15878 # splitting by setting IFS to empty value.)
15879 IFS=" ""        $as_nl"
15880
15881 # Find who we are.  Look in the path if we contain no directory separator.
15882 case $0 in #((
15883   *[\\/]* ) as_myself=$0 ;;
15884   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15885 for as_dir in $PATH
15886 do
15887   IFS=$as_save_IFS
15888   test -z "$as_dir" && as_dir=.
15889     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15890   done
15891 IFS=$as_save_IFS
15892
15893      ;;
15894 esac
15895 # We did not find ourselves, most probably we were run as `sh COMMAND'
15896 # in which case we are not to be found in the path.
15897 if test "x$as_myself" = x; then
15898   as_myself=$0
15899 fi
15900 if test ! -f "$as_myself"; then
15901   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15902   exit 1
15903 fi
15904
15905 # Unset variables that we do not need and which cause bugs (e.g. in
15906 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15907 # suppresses any "Segmentation fault" message there.  '((' could
15908 # trigger a bug in pdksh 5.2.14.
15909 for as_var in BASH_ENV ENV MAIL MAILPATH
15910 do eval test x\${$as_var+set} = xset \
15911   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15912 done
15913 PS1='$ '
15914 PS2='> '
15915 PS4='+ '
15916
15917 # NLS nuisances.
15918 LC_ALL=C
15919 export LC_ALL
15920 LANGUAGE=C
15921 export LANGUAGE
15922
15923 # CDPATH.
15924 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15925
15926
15927 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15928 # ----------------------------------------
15929 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15930 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15931 # script with STATUS, using 1 if that was 0.
15932 as_fn_error ()
15933 {
15934   as_status=$1; test $as_status -eq 0 && as_status=1
15935   if test "$4"; then
15936     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15937     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15938   fi
15939   $as_echo "$as_me: error: $2" >&2
15940   as_fn_exit $as_status
15941 } # as_fn_error
15942
15943
15944 # as_fn_set_status STATUS
15945 # -----------------------
15946 # Set $? to STATUS, without forking.
15947 as_fn_set_status ()
15948 {
15949   return $1
15950 } # as_fn_set_status
15951
15952 # as_fn_exit STATUS
15953 # -----------------
15954 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15955 as_fn_exit ()
15956 {
15957   set +e
15958   as_fn_set_status $1
15959   exit $1
15960 } # as_fn_exit
15961
15962 # as_fn_unset VAR
15963 # ---------------
15964 # Portably unset VAR.
15965 as_fn_unset ()
15966 {
15967   { eval $1=; unset $1;}
15968 }
15969 as_unset=as_fn_unset
15970 # as_fn_append VAR VALUE
15971 # ----------------------
15972 # Append the text in VALUE to the end of the definition contained in VAR. Take
15973 # advantage of any shell optimizations that allow amortized linear growth over
15974 # repeated appends, instead of the typical quadratic growth present in naive
15975 # implementations.
15976 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15977   eval 'as_fn_append ()
15978   {
15979     eval $1+=\$2
15980   }'
15981 else
15982   as_fn_append ()
15983   {
15984     eval $1=\$$1\$2
15985   }
15986 fi # as_fn_append
15987
15988 # as_fn_arith ARG...
15989 # ------------------
15990 # Perform arithmetic evaluation on the ARGs, and store the result in the
15991 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15992 # must be portable across $(()) and expr.
15993 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15994   eval 'as_fn_arith ()
15995   {
15996     as_val=$(( $* ))
15997   }'
15998 else
15999   as_fn_arith ()
16000   {
16001     as_val=`expr "$@" || test $? -eq 1`
16002   }
16003 fi # as_fn_arith
16004
16005
16006 if expr a : '\(a\)' >/dev/null 2>&1 &&
16007    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16008   as_expr=expr
16009 else
16010   as_expr=false
16011 fi
16012
16013 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16014   as_basename=basename
16015 else
16016   as_basename=false
16017 fi
16018
16019 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16020   as_dirname=dirname
16021 else
16022   as_dirname=false
16023 fi
16024
16025 as_me=`$as_basename -- "$0" ||
16026 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16027          X"$0" : 'X\(//\)$' \| \
16028          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16029 $as_echo X/"$0" |
16030     sed '/^.*\/\([^/][^/]*\)\/*$/{
16031             s//\1/
16032             q
16033           }
16034           /^X\/\(\/\/\)$/{
16035             s//\1/
16036             q
16037           }
16038           /^X\/\(\/\).*/{
16039             s//\1/
16040             q
16041           }
16042           s/.*/./; q'`
16043
16044 # Avoid depending upon Character Ranges.
16045 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16046 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16047 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16048 as_cr_digits='0123456789'
16049 as_cr_alnum=$as_cr_Letters$as_cr_digits
16050
16051 ECHO_C= ECHO_N= ECHO_T=
16052 case `echo -n x` in #(((((
16053 -n*)
16054   case `echo 'xy\c'` in
16055   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16056   xy)  ECHO_C='\c';;
16057   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16058        ECHO_T=' ';;
16059   esac;;
16060 *)
16061   ECHO_N='-n';;
16062 esac
16063
16064 rm -f conf$$ conf$$.exe conf$$.file
16065 if test -d conf$$.dir; then
16066   rm -f conf$$.dir/conf$$.file
16067 else
16068   rm -f conf$$.dir
16069   mkdir conf$$.dir 2>/dev/null
16070 fi
16071 if (echo >conf$$.file) 2>/dev/null; then
16072   if ln -s conf$$.file conf$$ 2>/dev/null; then
16073     as_ln_s='ln -s'
16074     # ... but there are two gotchas:
16075     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16076     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16077     # In both cases, we have to default to `cp -p'.
16078     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16079       as_ln_s='cp -p'
16080   elif ln conf$$.file conf$$ 2>/dev/null; then
16081     as_ln_s=ln
16082   else
16083     as_ln_s='cp -p'
16084   fi
16085 else
16086   as_ln_s='cp -p'
16087 fi
16088 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16089 rmdir conf$$.dir 2>/dev/null
16090
16091
16092 # as_fn_mkdir_p
16093 # -------------
16094 # Create "$as_dir" as a directory, including parents if necessary.
16095 as_fn_mkdir_p ()
16096 {
16097
16098   case $as_dir in #(
16099   -*) as_dir=./$as_dir;;
16100   esac
16101   test -d "$as_dir" || eval $as_mkdir_p || {
16102     as_dirs=
16103     while :; do
16104       case $as_dir in #(
16105       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16106       *) as_qdir=$as_dir;;
16107       esac
16108       as_dirs="'$as_qdir' $as_dirs"
16109       as_dir=`$as_dirname -- "$as_dir" ||
16110 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16111          X"$as_dir" : 'X\(//\)[^/]' \| \
16112          X"$as_dir" : 'X\(//\)$' \| \
16113          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16114 $as_echo X"$as_dir" |
16115     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16116             s//\1/
16117             q
16118           }
16119           /^X\(\/\/\)[^/].*/{
16120             s//\1/
16121             q
16122           }
16123           /^X\(\/\/\)$/{
16124             s//\1/
16125             q
16126           }
16127           /^X\(\/\).*/{
16128             s//\1/
16129             q
16130           }
16131           s/.*/./; q'`
16132       test -d "$as_dir" && break
16133     done
16134     test -z "$as_dirs" || eval "mkdir $as_dirs"
16135   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16136
16137
16138 } # as_fn_mkdir_p
16139 if mkdir -p . 2>/dev/null; then
16140   as_mkdir_p='mkdir -p "$as_dir"'
16141 else
16142   test -d ./-p && rmdir ./-p
16143   as_mkdir_p=false
16144 fi
16145
16146 if test -x / >/dev/null 2>&1; then
16147   as_test_x='test -x'
16148 else
16149   if ls -dL / >/dev/null 2>&1; then
16150     as_ls_L_option=L
16151   else
16152     as_ls_L_option=
16153   fi
16154   as_test_x='
16155     eval sh -c '\''
16156       if test -d "$1"; then
16157         test -d "$1/.";
16158       else
16159         case $1 in #(
16160         -*)set "./$1";;
16161         esac;
16162         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16163         ???[sx]*):;;*)false;;esac;fi
16164     '\'' sh
16165   '
16166 fi
16167 as_executable_p=$as_test_x
16168
16169 # Sed expression to map a string onto a valid CPP name.
16170 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16171
16172 # Sed expression to map a string onto a valid variable name.
16173 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16174
16175
16176 exec 6>&1
16177 ## ----------------------------------- ##
16178 ## Main body of $CONFIG_STATUS script. ##
16179 ## ----------------------------------- ##
16180 _ASEOF
16181 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16182
16183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16184 # Save the log message, to keep $0 and so on meaningful, and to
16185 # report actual input values of CONFIG_FILES etc. instead of their
16186 # values after options handling.
16187 ac_log="
16188 This file was extended by mech_eap $as_me 0.1, which was
16189 generated by GNU Autoconf 2.67.  Invocation command line was
16190
16191   CONFIG_FILES    = $CONFIG_FILES
16192   CONFIG_HEADERS  = $CONFIG_HEADERS
16193   CONFIG_LINKS    = $CONFIG_LINKS
16194   CONFIG_COMMANDS = $CONFIG_COMMANDS
16195   $ $0 $@
16196
16197 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16198 "
16199
16200 _ACEOF
16201
16202 case $ac_config_files in *"
16203 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16204 esac
16205
16206 case $ac_config_headers in *"
16207 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16208 esac
16209
16210
16211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16212 # Files that config.status was made for.
16213 config_files="$ac_config_files"
16214 config_headers="$ac_config_headers"
16215 config_commands="$ac_config_commands"
16216
16217 _ACEOF
16218
16219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16220 ac_cs_usage="\
16221 \`$as_me' instantiates files and other configuration actions
16222 from templates according to the current configuration.  Unless the files
16223 and actions are specified as TAGs, all are instantiated by default.
16224
16225 Usage: $0 [OPTION]... [TAG]...
16226
16227   -h, --help       print this help, then exit
16228   -V, --version    print version number and configuration settings, then exit
16229       --config     print configuration, then exit
16230   -q, --quiet, --silent
16231                    do not print progress messages
16232   -d, --debug      don't remove temporary files
16233       --recheck    update $as_me by reconfiguring in the same conditions
16234       --file=FILE[:TEMPLATE]
16235                    instantiate the configuration file FILE
16236       --header=FILE[:TEMPLATE]
16237                    instantiate the configuration header FILE
16238
16239 Configuration files:
16240 $config_files
16241
16242 Configuration headers:
16243 $config_headers
16244
16245 Configuration commands:
16246 $config_commands
16247
16248 Report bugs to <bugs@project-moonshot.org>."
16249
16250 _ACEOF
16251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16252 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16253 ac_cs_version="\\
16254 mech_eap config.status 0.1
16255 configured by $0, generated by GNU Autoconf 2.67,
16256   with options \\"\$ac_cs_config\\"
16257
16258 Copyright (C) 2010 Free Software Foundation, Inc.
16259 This config.status script is free software; the Free Software Foundation
16260 gives unlimited permission to copy, distribute and modify it."
16261
16262 ac_pwd='$ac_pwd'
16263 srcdir='$srcdir'
16264 INSTALL='$INSTALL'
16265 MKDIR_P='$MKDIR_P'
16266 AWK='$AWK'
16267 test -n "\$AWK" || AWK=awk
16268 _ACEOF
16269
16270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16271 # The default lists apply if the user does not specify any file.
16272 ac_need_defaults=:
16273 while test $# != 0
16274 do
16275   case $1 in
16276   --*=?*)
16277     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16278     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16279     ac_shift=:
16280     ;;
16281   --*=)
16282     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16283     ac_optarg=
16284     ac_shift=:
16285     ;;
16286   *)
16287     ac_option=$1
16288     ac_optarg=$2
16289     ac_shift=shift
16290     ;;
16291   esac
16292
16293   case $ac_option in
16294   # Handling of the options.
16295   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16296     ac_cs_recheck=: ;;
16297   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16298     $as_echo "$ac_cs_version"; exit ;;
16299   --config | --confi | --conf | --con | --co | --c )
16300     $as_echo "$ac_cs_config"; exit ;;
16301   --debug | --debu | --deb | --de | --d | -d )
16302     debug=: ;;
16303   --file | --fil | --fi | --f )
16304     $ac_shift
16305     case $ac_optarg in
16306     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16307     '') as_fn_error $? "missing file argument" ;;
16308     esac
16309     as_fn_append CONFIG_FILES " '$ac_optarg'"
16310     ac_need_defaults=false;;
16311   --header | --heade | --head | --hea )
16312     $ac_shift
16313     case $ac_optarg in
16314     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16315     esac
16316     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16317     ac_need_defaults=false;;
16318   --he | --h)
16319     # Conflict between --help and --header
16320     as_fn_error $? "ambiguous option: \`$1'
16321 Try \`$0 --help' for more information.";;
16322   --help | --hel | -h )
16323     $as_echo "$ac_cs_usage"; exit ;;
16324   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16325   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16326     ac_cs_silent=: ;;
16327
16328   # This is an error.
16329   -*) as_fn_error $? "unrecognized option: \`$1'
16330 Try \`$0 --help' for more information." ;;
16331
16332   *) as_fn_append ac_config_targets " $1"
16333      ac_need_defaults=false ;;
16334
16335   esac
16336   shift
16337 done
16338
16339 ac_configure_extra_args=
16340
16341 if $ac_cs_silent; then
16342   exec 6>/dev/null
16343   ac_configure_extra_args="$ac_configure_extra_args --silent"
16344 fi
16345
16346 _ACEOF
16347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16348 if \$ac_cs_recheck; then
16349   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16350   shift
16351   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16352   CONFIG_SHELL='$SHELL'
16353   export CONFIG_SHELL
16354   exec "\$@"
16355 fi
16356
16357 _ACEOF
16358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16359 exec 5>>config.log
16360 {
16361   echo
16362   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16363 ## Running $as_me. ##
16364 _ASBOX
16365   $as_echo "$ac_log"
16366 } >&5
16367
16368 _ACEOF
16369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16370 #
16371 # INIT-COMMANDS
16372 #
16373 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16374
16375
16376 # The HP-UX ksh and POSIX shell print the target directory to stdout
16377 # if CDPATH is set.
16378 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16379
16380 sed_quote_subst='$sed_quote_subst'
16381 double_quote_subst='$double_quote_subst'
16382 delay_variable_subst='$delay_variable_subst'
16383 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16384 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16385 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16386 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16387 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16388 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16389 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16390 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16391 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16392 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16393 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16394 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16395 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16396 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16397 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16398 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16399 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16400 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16401 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16402 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16403 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16404 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16405 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16406 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16407 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16408 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16409 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16410 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16411 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16412 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16413 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16414 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16415 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16416 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16417 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16418 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16419 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16420 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16421 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16422 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16423 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16424 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16425 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16426 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16427 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16428 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16429 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"`'
16430 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"`'
16431 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16432 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16433 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16434 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16435 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16436 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16437 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16438 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16439 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16440 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16441 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16442 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16443 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16444 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16445 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16446 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16447 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16448 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16449 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16450 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16451 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16452 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16453 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16454 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16455 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16456 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16457 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16458 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16459 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16460 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16461 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16462 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16463 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16464 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16465 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16466 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16467 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16468 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16469 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16470 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16471 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16472 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16473 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16474 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16475 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16476 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16477 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16478 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16479 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16480 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16481 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16482 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16483 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16484 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16485 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16486 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16487 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16488 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16489 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16490 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16491 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16492 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16493 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16494 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16495 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16496 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16497 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16498 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16499 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16500 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16501 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16502 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16503 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16504 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16505 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16506 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16507 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16508 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16509 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16510 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16511 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16512 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16513 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16514 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16515 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16516 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16517 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16518 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16519 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16520 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16521 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16522 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16523 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16524 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16525 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16526 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16527 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16528 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16529 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16530 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16531 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16532 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16533 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16534 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16535 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16536 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16537 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16538 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16539 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16540 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16541 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16542 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16543 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16544 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16545 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16546 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16547 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16548 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16549 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16550 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16551 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16552 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16553 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16554 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16555 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16556
16557 LTCC='$LTCC'
16558 LTCFLAGS='$LTCFLAGS'
16559 compiler='$compiler_DEFAULT'
16560
16561 # Quote evaled strings.
16562 for var in SED \
16563 GREP \
16564 EGREP \
16565 FGREP \
16566 LD \
16567 NM \
16568 LN_S \
16569 lt_SP2NL \
16570 lt_NL2SP \
16571 reload_flag \
16572 deplibs_check_method \
16573 file_magic_cmd \
16574 AR \
16575 AR_FLAGS \
16576 STRIP \
16577 RANLIB \
16578 CC \
16579 CFLAGS \
16580 compiler \
16581 lt_cv_sys_global_symbol_pipe \
16582 lt_cv_sys_global_symbol_to_cdecl \
16583 lt_cv_sys_global_symbol_to_c_name_address \
16584 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16585 SHELL \
16586 ECHO \
16587 lt_prog_compiler_no_builtin_flag \
16588 lt_prog_compiler_wl \
16589 lt_prog_compiler_pic \
16590 lt_prog_compiler_static \
16591 lt_cv_prog_compiler_c_o \
16592 need_locks \
16593 DSYMUTIL \
16594 NMEDIT \
16595 LIPO \
16596 OTOOL \
16597 OTOOL64 \
16598 shrext_cmds \
16599 export_dynamic_flag_spec \
16600 whole_archive_flag_spec \
16601 compiler_needs_object \
16602 with_gnu_ld \
16603 allow_undefined_flag \
16604 no_undefined_flag \
16605 hardcode_libdir_flag_spec \
16606 hardcode_libdir_flag_spec_ld \
16607 hardcode_libdir_separator \
16608 fix_srcfile_path \
16609 exclude_expsyms \
16610 include_expsyms \
16611 file_list_spec \
16612 variables_saved_for_relink \
16613 libname_spec \
16614 library_names_spec \
16615 soname_spec \
16616 finish_eval \
16617 old_striplib \
16618 striplib \
16619 compiler_lib_search_dirs \
16620 predep_objects \
16621 postdep_objects \
16622 predeps \
16623 postdeps \
16624 compiler_lib_search_path \
16625 LD_CXX \
16626 compiler_CXX \
16627 lt_prog_compiler_no_builtin_flag_CXX \
16628 lt_prog_compiler_wl_CXX \
16629 lt_prog_compiler_pic_CXX \
16630 lt_prog_compiler_static_CXX \
16631 lt_cv_prog_compiler_c_o_CXX \
16632 export_dynamic_flag_spec_CXX \
16633 whole_archive_flag_spec_CXX \
16634 compiler_needs_object_CXX \
16635 with_gnu_ld_CXX \
16636 allow_undefined_flag_CXX \
16637 no_undefined_flag_CXX \
16638 hardcode_libdir_flag_spec_CXX \
16639 hardcode_libdir_flag_spec_ld_CXX \
16640 hardcode_libdir_separator_CXX \
16641 fix_srcfile_path_CXX \
16642 exclude_expsyms_CXX \
16643 include_expsyms_CXX \
16644 file_list_spec_CXX \
16645 compiler_lib_search_dirs_CXX \
16646 predep_objects_CXX \
16647 postdep_objects_CXX \
16648 predeps_CXX \
16649 postdeps_CXX \
16650 compiler_lib_search_path_CXX; do
16651     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16652     *[\\\\\\\`\\"\\\$]*)
16653       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16654       ;;
16655     *)
16656       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16657       ;;
16658     esac
16659 done
16660
16661 # Double-quote double-evaled strings.
16662 for var in reload_cmds \
16663 old_postinstall_cmds \
16664 old_postuninstall_cmds \
16665 old_archive_cmds \
16666 extract_expsyms_cmds \
16667 old_archive_from_new_cmds \
16668 old_archive_from_expsyms_cmds \
16669 archive_cmds \
16670 archive_expsym_cmds \
16671 module_cmds \
16672 module_expsym_cmds \
16673 export_symbols_cmds \
16674 prelink_cmds \
16675 postinstall_cmds \
16676 postuninstall_cmds \
16677 finish_cmds \
16678 sys_lib_search_path_spec \
16679 sys_lib_dlsearch_path_spec \
16680 old_archive_cmds_CXX \
16681 old_archive_from_new_cmds_CXX \
16682 old_archive_from_expsyms_cmds_CXX \
16683 archive_cmds_CXX \
16684 archive_expsym_cmds_CXX \
16685 module_cmds_CXX \
16686 module_expsym_cmds_CXX \
16687 export_symbols_cmds_CXX \
16688 prelink_cmds_CXX; do
16689     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16690     *[\\\\\\\`\\"\\\$]*)
16691       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16692       ;;
16693     *)
16694       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16695       ;;
16696     esac
16697 done
16698
16699 # Fix-up fallback echo if it was mangled by the above quoting rules.
16700 case \$lt_ECHO in
16701 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16702   ;;
16703 esac
16704
16705 ac_aux_dir='$ac_aux_dir'
16706 xsi_shell='$xsi_shell'
16707 lt_shell_append='$lt_shell_append'
16708
16709 # See if we are running on zsh, and set the options which allow our
16710 # commands through without removal of \ escapes INIT.
16711 if test -n "\${ZSH_VERSION+set}" ; then
16712    setopt NO_GLOB_SUBST
16713 fi
16714
16715
16716     PACKAGE='$PACKAGE'
16717     VERSION='$VERSION'
16718     TIMESTAMP='$TIMESTAMP'
16719     RM='$RM'
16720     ofile='$ofile'
16721
16722
16723
16724
16725
16726
16727 _ACEOF
16728
16729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16730
16731 # Handling of arguments.
16732 for ac_config_target in $ac_config_targets
16733 do
16734   case $ac_config_target in
16735     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16736     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16737     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16738     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16739     "libeap/Makefile") CONFIG_FILES="$CONFIG_FILES libeap/Makefile" ;;
16740     "mech_eap/Makefile") CONFIG_FILES="$CONFIG_FILES mech_eap/Makefile" ;;
16741     "mech_eap.spec") CONFIG_FILES="$CONFIG_FILES mech_eap.spec" ;;
16742
16743   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16744   esac
16745 done
16746
16747
16748 # If the user did not use the arguments to specify the items to instantiate,
16749 # then the envvar interface is used.  Set only those that are not.
16750 # We use the long form for the default assignment because of an extremely
16751 # bizarre bug on SunOS 4.1.3.
16752 if $ac_need_defaults; then
16753   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16754   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16755   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16756 fi
16757
16758 # Have a temporary directory for convenience.  Make it in the build tree
16759 # simply because there is no reason against having it here, and in addition,
16760 # creating and moving files from /tmp can sometimes cause problems.
16761 # Hook for its removal unless debugging.
16762 # Note that there is a small window in which the directory will not be cleaned:
16763 # after its creation but before its name has been assigned to `$tmp'.
16764 $debug ||
16765 {
16766   tmp=
16767   trap 'exit_status=$?
16768   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16769 ' 0
16770   trap 'as_fn_exit 1' 1 2 13 15
16771 }
16772 # Create a (secure) tmp directory for tmp files.
16773
16774 {
16775   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16776   test -n "$tmp" && test -d "$tmp"
16777 }  ||
16778 {
16779   tmp=./conf$$-$RANDOM
16780   (umask 077 && mkdir "$tmp")
16781 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16782
16783 # Set up the scripts for CONFIG_FILES section.
16784 # No need to generate them if there are no CONFIG_FILES.
16785 # This happens for instance with `./config.status config.h'.
16786 if test -n "$CONFIG_FILES"; then
16787
16788
16789 ac_cr=`echo X | tr X '\015'`
16790 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16791 # But we know of no other shell where ac_cr would be empty at this
16792 # point, so we can use a bashism as a fallback.
16793 if test "x$ac_cr" = x; then
16794   eval ac_cr=\$\'\\r\'
16795 fi
16796 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16797 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16798   ac_cs_awk_cr='\\r'
16799 else
16800   ac_cs_awk_cr=$ac_cr
16801 fi
16802
16803 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16804 _ACEOF
16805
16806
16807 {
16808   echo "cat >conf$$subs.awk <<_ACEOF" &&
16809   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16810   echo "_ACEOF"
16811 } >conf$$subs.sh ||
16812   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16813 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16814 ac_delim='%!_!# '
16815 for ac_last_try in false false false false false :; do
16816   . ./conf$$subs.sh ||
16817     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16818
16819   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16820   if test $ac_delim_n = $ac_delim_num; then
16821     break
16822   elif $ac_last_try; then
16823     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16824   else
16825     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16826   fi
16827 done
16828 rm -f conf$$subs.sh
16829
16830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16831 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16832 _ACEOF
16833 sed -n '
16834 h
16835 s/^/S["/; s/!.*/"]=/
16836 p
16837 g
16838 s/^[^!]*!//
16839 :repl
16840 t repl
16841 s/'"$ac_delim"'$//
16842 t delim
16843 :nl
16844 h
16845 s/\(.\{148\}\)..*/\1/
16846 t more1
16847 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16848 p
16849 n
16850 b repl
16851 :more1
16852 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16853 p
16854 g
16855 s/.\{148\}//
16856 t nl
16857 :delim
16858 h
16859 s/\(.\{148\}\)..*/\1/
16860 t more2
16861 s/["\\]/\\&/g; s/^/"/; s/$/"/
16862 p
16863 b
16864 :more2
16865 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16866 p
16867 g
16868 s/.\{148\}//
16869 t delim
16870 ' <conf$$subs.awk | sed '
16871 /^[^""]/{
16872   N
16873   s/\n//
16874 }
16875 ' >>$CONFIG_STATUS || ac_write_fail=1
16876 rm -f conf$$subs.awk
16877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16878 _ACAWK
16879 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16880   for (key in S) S_is_set[key] = 1
16881   FS = "\a"
16882
16883 }
16884 {
16885   line = $ 0
16886   nfields = split(line, field, "@")
16887   substed = 0
16888   len = length(field[1])
16889   for (i = 2; i < nfields; i++) {
16890     key = field[i]
16891     keylen = length(key)
16892     if (S_is_set[key]) {
16893       value = S[key]
16894       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16895       len += length(value) + length(field[++i])
16896       substed = 1
16897     } else
16898       len += 1 + keylen
16899   }
16900
16901   print line
16902 }
16903
16904 _ACAWK
16905 _ACEOF
16906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16907 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16908   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16909 else
16910   cat
16911 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16912   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16913 _ACEOF
16914
16915 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16916 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16917 # trailing colons and then remove the whole line if VPATH becomes empty
16918 # (actually we leave an empty line to preserve line numbers).
16919 if test "x$srcdir" = x.; then
16920   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16921 h
16922 s///
16923 s/^/:/
16924 s/[      ]*$/:/
16925 s/:\$(srcdir):/:/g
16926 s/:\${srcdir}:/:/g
16927 s/:@srcdir@:/:/g
16928 s/^:*//
16929 s/:*$//
16930 x
16931 s/\(=[   ]*\).*/\1/
16932 G
16933 s/\n//
16934 s/^[^=]*=[       ]*$//
16935 }'
16936 fi
16937
16938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16939 fi # test -n "$CONFIG_FILES"
16940
16941 # Set up the scripts for CONFIG_HEADERS section.
16942 # No need to generate them if there are no CONFIG_HEADERS.
16943 # This happens for instance with `./config.status Makefile'.
16944 if test -n "$CONFIG_HEADERS"; then
16945 cat >"$tmp/defines.awk" <<\_ACAWK ||
16946 BEGIN {
16947 _ACEOF
16948
16949 # Transform confdefs.h into an awk script `defines.awk', embedded as
16950 # here-document in config.status, that substitutes the proper values into
16951 # config.h.in to produce config.h.
16952
16953 # Create a delimiter string that does not exist in confdefs.h, to ease
16954 # handling of long lines.
16955 ac_delim='%!_!# '
16956 for ac_last_try in false false :; do
16957   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16958   if test -z "$ac_t"; then
16959     break
16960   elif $ac_last_try; then
16961     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16962   else
16963     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16964   fi
16965 done
16966
16967 # For the awk script, D is an array of macro values keyed by name,
16968 # likewise P contains macro parameters if any.  Preserve backslash
16969 # newline sequences.
16970
16971 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16972 sed -n '
16973 s/.\{148\}/&'"$ac_delim"'/g
16974 t rset
16975 :rset
16976 s/^[     ]*#[    ]*define[       ][      ]*/ /
16977 t def
16978 d
16979 :def
16980 s/\\$//
16981 t bsnl
16982 s/["\\]/\\&/g
16983 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16984 D["\1"]=" \3"/p
16985 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16986 d
16987 :bsnl
16988 s/["\\]/\\&/g
16989 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16990 D["\1"]=" \3\\\\\\n"\\/p
16991 t cont
16992 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16993 t cont
16994 d
16995 :cont
16996 n
16997 s/.\{148\}/&'"$ac_delim"'/g
16998 t clear
16999 :clear
17000 s/\\$//
17001 t bsnlc
17002 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17003 d
17004 :bsnlc
17005 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17006 b cont
17007 ' <confdefs.h | sed '
17008 s/'"$ac_delim"'/"\\\
17009 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17010
17011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17012   for (key in D) D_is_set[key] = 1
17013   FS = "\a"
17014 }
17015 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17016   line = \$ 0
17017   split(line, arg, " ")
17018   if (arg[1] == "#") {
17019     defundef = arg[2]
17020     mac1 = arg[3]
17021   } else {
17022     defundef = substr(arg[1], 2)
17023     mac1 = arg[2]
17024   }
17025   split(mac1, mac2, "(") #)
17026   macro = mac2[1]
17027   prefix = substr(line, 1, index(line, defundef) - 1)
17028   if (D_is_set[macro]) {
17029     # Preserve the white space surrounding the "#".
17030     print prefix "define", macro P[macro] D[macro]
17031     next
17032   } else {
17033     # Replace #undef with comments.  This is necessary, for example,
17034     # in the case of _POSIX_SOURCE, which is predefined and required
17035     # on some systems where configure will not decide to define it.
17036     if (defundef == "undef") {
17037       print "/*", prefix defundef, macro, "*/"
17038       next
17039     }
17040   }
17041 }
17042 { print }
17043 _ACAWK
17044 _ACEOF
17045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17046   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17047 fi # test -n "$CONFIG_HEADERS"
17048
17049
17050 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17051 shift
17052 for ac_tag
17053 do
17054   case $ac_tag in
17055   :[FHLC]) ac_mode=$ac_tag; continue;;
17056   esac
17057   case $ac_mode$ac_tag in
17058   :[FHL]*:*);;
17059   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17060   :[FH]-) ac_tag=-:-;;
17061   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17062   esac
17063   ac_save_IFS=$IFS
17064   IFS=:
17065   set x $ac_tag
17066   IFS=$ac_save_IFS
17067   shift
17068   ac_file=$1
17069   shift
17070
17071   case $ac_mode in
17072   :L) ac_source=$1;;
17073   :[FH])
17074     ac_file_inputs=
17075     for ac_f
17076     do
17077       case $ac_f in
17078       -) ac_f="$tmp/stdin";;
17079       *) # Look for the file first in the build tree, then in the source tree
17080          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17081          # because $ac_f cannot contain `:'.
17082          test -f "$ac_f" ||
17083            case $ac_f in
17084            [\\/$]*) false;;
17085            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17086            esac ||
17087            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17088       esac
17089       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17090       as_fn_append ac_file_inputs " '$ac_f'"
17091     done
17092
17093     # Let's still pretend it is `configure' which instantiates (i.e., don't
17094     # use $as_me), people would be surprised to read:
17095     #    /* config.h.  Generated by config.status.  */
17096     configure_input='Generated from '`
17097           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17098         `' by configure.'
17099     if test x"$ac_file" != x-; then
17100       configure_input="$ac_file.  $configure_input"
17101       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17102 $as_echo "$as_me: creating $ac_file" >&6;}
17103     fi
17104     # Neutralize special characters interpreted by sed in replacement strings.
17105     case $configure_input in #(
17106     *\&* | *\|* | *\\* )
17107        ac_sed_conf_input=`$as_echo "$configure_input" |
17108        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17109     *) ac_sed_conf_input=$configure_input;;
17110     esac
17111
17112     case $ac_tag in
17113     *:-:* | *:-) cat >"$tmp/stdin" \
17114       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
17115     esac
17116     ;;
17117   esac
17118
17119   ac_dir=`$as_dirname -- "$ac_file" ||
17120 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17121          X"$ac_file" : 'X\(//\)[^/]' \| \
17122          X"$ac_file" : 'X\(//\)$' \| \
17123          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17124 $as_echo X"$ac_file" |
17125     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17126             s//\1/
17127             q
17128           }
17129           /^X\(\/\/\)[^/].*/{
17130             s//\1/
17131             q
17132           }
17133           /^X\(\/\/\)$/{
17134             s//\1/
17135             q
17136           }
17137           /^X\(\/\).*/{
17138             s//\1/
17139             q
17140           }
17141           s/.*/./; q'`
17142   as_dir="$ac_dir"; as_fn_mkdir_p
17143   ac_builddir=.
17144
17145 case "$ac_dir" in
17146 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17147 *)
17148   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17149   # A ".." for each directory in $ac_dir_suffix.
17150   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17151   case $ac_top_builddir_sub in
17152   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17153   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17154   esac ;;
17155 esac
17156 ac_abs_top_builddir=$ac_pwd
17157 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17158 # for backward compatibility:
17159 ac_top_builddir=$ac_top_build_prefix
17160
17161 case $srcdir in
17162   .)  # We are building in place.
17163     ac_srcdir=.
17164     ac_top_srcdir=$ac_top_builddir_sub
17165     ac_abs_top_srcdir=$ac_pwd ;;
17166   [\\/]* | ?:[\\/]* )  # Absolute name.
17167     ac_srcdir=$srcdir$ac_dir_suffix;
17168     ac_top_srcdir=$srcdir
17169     ac_abs_top_srcdir=$srcdir ;;
17170   *) # Relative name.
17171     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17172     ac_top_srcdir=$ac_top_build_prefix$srcdir
17173     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17174 esac
17175 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17176
17177
17178   case $ac_mode in
17179   :F)
17180   #
17181   # CONFIG_FILE
17182   #
17183
17184   case $INSTALL in
17185   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17186   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17187   esac
17188   ac_MKDIR_P=$MKDIR_P
17189   case $MKDIR_P in
17190   [\\/$]* | ?:[\\/]* ) ;;
17191   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17192   esac
17193 _ACEOF
17194
17195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17196 # If the template does not know about datarootdir, expand it.
17197 # FIXME: This hack should be removed a few years after 2.60.
17198 ac_datarootdir_hack=; ac_datarootdir_seen=
17199 ac_sed_dataroot='
17200 /datarootdir/ {
17201   p
17202   q
17203 }
17204 /@datadir@/p
17205 /@docdir@/p
17206 /@infodir@/p
17207 /@localedir@/p
17208 /@mandir@/p'
17209 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17210 *datarootdir*) ac_datarootdir_seen=yes;;
17211 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17212   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17213 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17214 _ACEOF
17215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17216   ac_datarootdir_hack='
17217   s&@datadir@&$datadir&g
17218   s&@docdir@&$docdir&g
17219   s&@infodir@&$infodir&g
17220   s&@localedir@&$localedir&g
17221   s&@mandir@&$mandir&g
17222   s&\\\${datarootdir}&$datarootdir&g' ;;
17223 esac
17224 _ACEOF
17225
17226 # Neutralize VPATH when `$srcdir' = `.'.
17227 # Shell code in configure.ac might set extrasub.
17228 # FIXME: do we really want to maintain this feature?
17229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17230 ac_sed_extra="$ac_vpsub
17231 $extrasub
17232 _ACEOF
17233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17234 :t
17235 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17236 s|@configure_input@|$ac_sed_conf_input|;t t
17237 s&@top_builddir@&$ac_top_builddir_sub&;t t
17238 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17239 s&@srcdir@&$ac_srcdir&;t t
17240 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17241 s&@top_srcdir@&$ac_top_srcdir&;t t
17242 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17243 s&@builddir@&$ac_builddir&;t t
17244 s&@abs_builddir@&$ac_abs_builddir&;t t
17245 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17246 s&@INSTALL@&$ac_INSTALL&;t t
17247 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17248 $ac_datarootdir_hack
17249 "
17250 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17251   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17252
17253 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17254   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17255   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17256   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17257 which seems to be undefined.  Please make sure it is defined" >&5
17258 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17259 which seems to be undefined.  Please make sure it is defined" >&2;}
17260
17261   rm -f "$tmp/stdin"
17262   case $ac_file in
17263   -) cat "$tmp/out" && rm -f "$tmp/out";;
17264   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17265   esac \
17266   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17267  ;;
17268   :H)
17269   #
17270   # CONFIG_HEADER
17271   #
17272   if test x"$ac_file" != x-; then
17273     {
17274       $as_echo "/* $configure_input  */" \
17275       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17276     } >"$tmp/config.h" \
17277       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17278     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17279       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17280 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17281     else
17282       rm -f "$ac_file"
17283       mv "$tmp/config.h" "$ac_file" \
17284         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17285     fi
17286   else
17287     $as_echo "/* $configure_input  */" \
17288       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17289       || as_fn_error $? "could not create -" "$LINENO" 5
17290   fi
17291 # Compute "$ac_file"'s index in $config_headers.
17292 _am_arg="$ac_file"
17293 _am_stamp_count=1
17294 for _am_header in $config_headers :; do
17295   case $_am_header in
17296     $_am_arg | $_am_arg:* )
17297       break ;;
17298     * )
17299       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17300   esac
17301 done
17302 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17303 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17304          X"$_am_arg" : 'X\(//\)[^/]' \| \
17305          X"$_am_arg" : 'X\(//\)$' \| \
17306          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17307 $as_echo X"$_am_arg" |
17308     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17309             s//\1/
17310             q
17311           }
17312           /^X\(\/\/\)[^/].*/{
17313             s//\1/
17314             q
17315           }
17316           /^X\(\/\/\)$/{
17317             s//\1/
17318             q
17319           }
17320           /^X\(\/\).*/{
17321             s//\1/
17322             q
17323           }
17324           s/.*/./; q'`/stamp-h$_am_stamp_count
17325  ;;
17326
17327   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17328 $as_echo "$as_me: executing $ac_file commands" >&6;}
17329  ;;
17330   esac
17331
17332
17333   case $ac_file$ac_mode in
17334     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17335   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17336   # are listed without --file.  Let's play safe and only enable the eval
17337   # if we detect the quoting.
17338   case $CONFIG_FILES in
17339   *\'*) eval set x "$CONFIG_FILES" ;;
17340   *)   set x $CONFIG_FILES ;;
17341   esac
17342   shift
17343   for mf
17344   do
17345     # Strip MF so we end up with the name of the file.
17346     mf=`echo "$mf" | sed -e 's/:.*$//'`
17347     # Check whether this is an Automake generated Makefile or not.
17348     # We used to match only the files named `Makefile.in', but
17349     # some people rename them; so instead we look at the file content.
17350     # Grep'ing the first line is not enough: some people post-process
17351     # each Makefile.in and add a new line on top of each file to say so.
17352     # Grep'ing the whole file is not good either: AIX grep has a line
17353     # limit of 2048, but all sed's we know have understand at least 4000.
17354     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17355       dirpart=`$as_dirname -- "$mf" ||
17356 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17357          X"$mf" : 'X\(//\)[^/]' \| \
17358          X"$mf" : 'X\(//\)$' \| \
17359          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17360 $as_echo X"$mf" |
17361     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17362             s//\1/
17363             q
17364           }
17365           /^X\(\/\/\)[^/].*/{
17366             s//\1/
17367             q
17368           }
17369           /^X\(\/\/\)$/{
17370             s//\1/
17371             q
17372           }
17373           /^X\(\/\).*/{
17374             s//\1/
17375             q
17376           }
17377           s/.*/./; q'`
17378     else
17379       continue
17380     fi
17381     # Extract the definition of DEPDIR, am__include, and am__quote
17382     # from the Makefile without running `make'.
17383     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17384     test -z "$DEPDIR" && continue
17385     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17386     test -z "am__include" && continue
17387     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17388     # When using ansi2knr, U may be empty or an underscore; expand it
17389     U=`sed -n 's/^U = //p' < "$mf"`
17390     # Find all dependency output files, they are included files with
17391     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17392     # simplest approach to changing $(DEPDIR) to its actual value in the
17393     # expansion.
17394     for file in `sed -n "
17395       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17396          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17397       # Make sure the directory exists.
17398       test -f "$dirpart/$file" && continue
17399       fdir=`$as_dirname -- "$file" ||
17400 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17401          X"$file" : 'X\(//\)[^/]' \| \
17402          X"$file" : 'X\(//\)$' \| \
17403          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17404 $as_echo X"$file" |
17405     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17406             s//\1/
17407             q
17408           }
17409           /^X\(\/\/\)[^/].*/{
17410             s//\1/
17411             q
17412           }
17413           /^X\(\/\/\)$/{
17414             s//\1/
17415             q
17416           }
17417           /^X\(\/\).*/{
17418             s//\1/
17419             q
17420           }
17421           s/.*/./; q'`
17422       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17423       # echo "creating $dirpart/$file"
17424       echo '# dummy' > "$dirpart/$file"
17425     done
17426   done
17427 }
17428  ;;
17429     "libtool":C)
17430
17431     # See if we are running on zsh, and set the options which allow our
17432     # commands through without removal of \ escapes.
17433     if test -n "${ZSH_VERSION+set}" ; then
17434       setopt NO_GLOB_SUBST
17435     fi
17436
17437     cfgfile="${ofile}T"
17438     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17439     $RM "$cfgfile"
17440
17441     cat <<_LT_EOF >> "$cfgfile"
17442 #! $SHELL
17443
17444 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17445 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17446 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17447 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17448 #
17449 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17450 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17451 #   Written by Gordon Matzigkeit, 1996
17452 #
17453 #   This file is part of GNU Libtool.
17454 #
17455 # GNU Libtool is free software; you can redistribute it and/or
17456 # modify it under the terms of the GNU General Public License as
17457 # published by the Free Software Foundation; either version 2 of
17458 # the License, or (at your option) any later version.
17459 #
17460 # As a special exception to the GNU General Public License,
17461 # if you distribute this file as part of a program or library that
17462 # is built using GNU Libtool, you may include this file under the
17463 # same distribution terms that you use for the rest of that program.
17464 #
17465 # GNU Libtool is distributed in the hope that it will be useful,
17466 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17467 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17468 # GNU General Public License for more details.
17469 #
17470 # You should have received a copy of the GNU General Public License
17471 # along with GNU Libtool; see the file COPYING.  If not, a copy
17472 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17473 # obtained by writing to the Free Software Foundation, Inc.,
17474 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17475
17476
17477 # The names of the tagged configurations supported by this script.
17478 available_tags="CXX "
17479
17480 # ### BEGIN LIBTOOL CONFIG
17481
17482 # Which release of libtool.m4 was used?
17483 macro_version=$macro_version
17484 macro_revision=$macro_revision
17485
17486 # Whether or not to build static libraries.
17487 build_old_libs=$enable_static
17488
17489 # Assembler program.
17490 AS=$AS
17491
17492 # DLL creation program.
17493 DLLTOOL=$DLLTOOL
17494
17495 # Object dumper program.
17496 OBJDUMP=$OBJDUMP
17497
17498 # Whether or not to build shared libraries.
17499 build_libtool_libs=$enable_shared
17500
17501 # What type of objects to build.
17502 pic_mode=$pic_mode
17503
17504 # Whether or not to optimize for fast installation.
17505 fast_install=$enable_fast_install
17506
17507 # The host system.
17508 host_alias=$host_alias
17509 host=$host
17510 host_os=$host_os
17511
17512 # The build system.
17513 build_alias=$build_alias
17514 build=$build
17515 build_os=$build_os
17516
17517 # A sed program that does not truncate output.
17518 SED=$lt_SED
17519
17520 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17521 Xsed="\$SED -e 1s/^X//"
17522
17523 # A grep program that handles long lines.
17524 GREP=$lt_GREP
17525
17526 # An ERE matcher.
17527 EGREP=$lt_EGREP
17528
17529 # A literal string matcher.
17530 FGREP=$lt_FGREP
17531
17532 # A BSD- or MS-compatible name lister.
17533 NM=$lt_NM
17534
17535 # Whether we need soft or hard links.
17536 LN_S=$lt_LN_S
17537
17538 # What is the maximum length of a command?
17539 max_cmd_len=$max_cmd_len
17540
17541 # Object file suffix (normally "o").
17542 objext=$ac_objext
17543
17544 # Executable file suffix (normally "").
17545 exeext=$exeext
17546
17547 # whether the shell understands "unset".
17548 lt_unset=$lt_unset
17549
17550 # turn spaces into newlines.
17551 SP2NL=$lt_lt_SP2NL
17552
17553 # turn newlines into spaces.
17554 NL2SP=$lt_lt_NL2SP
17555
17556 # How to create reloadable object files.
17557 reload_flag=$lt_reload_flag
17558 reload_cmds=$lt_reload_cmds
17559
17560 # Method to check whether dependent libraries are shared objects.
17561 deplibs_check_method=$lt_deplibs_check_method
17562
17563 # Command to use when deplibs_check_method == "file_magic".
17564 file_magic_cmd=$lt_file_magic_cmd
17565
17566 # The archiver.
17567 AR=$lt_AR
17568 AR_FLAGS=$lt_AR_FLAGS
17569
17570 # A symbol stripping program.
17571 STRIP=$lt_STRIP
17572
17573 # Commands used to install an old-style archive.
17574 RANLIB=$lt_RANLIB
17575 old_postinstall_cmds=$lt_old_postinstall_cmds
17576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17577
17578 # A C compiler.
17579 LTCC=$lt_CC
17580
17581 # LTCC compiler flags.
17582 LTCFLAGS=$lt_CFLAGS
17583
17584 # Take the output of nm and produce a listing of raw symbols and C names.
17585 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17586
17587 # Transform the output of nm in a proper C declaration.
17588 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17589
17590 # Transform the output of nm in a C name address pair.
17591 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17592
17593 # Transform the output of nm in a C name address pair when lib prefix is needed.
17594 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17595
17596 # The name of the directory that contains temporary libtool files.
17597 objdir=$objdir
17598
17599 # Shell to use when invoking shell scripts.
17600 SHELL=$lt_SHELL
17601
17602 # An echo program that does not interpret backslashes.
17603 ECHO=$lt_ECHO
17604
17605 # Used to examine libraries when file_magic_cmd begins with "file".
17606 MAGIC_CMD=$MAGIC_CMD
17607
17608 # Must we lock files when doing compilation?
17609 need_locks=$lt_need_locks
17610
17611 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17612 DSYMUTIL=$lt_DSYMUTIL
17613
17614 # Tool to change global to local symbols on Mac OS X.
17615 NMEDIT=$lt_NMEDIT
17616
17617 # Tool to manipulate fat objects and archives on Mac OS X.
17618 LIPO=$lt_LIPO
17619
17620 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17621 OTOOL=$lt_OTOOL
17622
17623 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17624 OTOOL64=$lt_OTOOL64
17625
17626 # Old archive suffix (normally "a").
17627 libext=$libext
17628
17629 # Shared library suffix (normally ".so").
17630 shrext_cmds=$lt_shrext_cmds
17631
17632 # The commands to extract the exported symbol list from a shared archive.
17633 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17634
17635 # Variables whose values should be saved in libtool wrapper scripts and
17636 # restored at link time.
17637 variables_saved_for_relink=$lt_variables_saved_for_relink
17638
17639 # Do we need the "lib" prefix for modules?
17640 need_lib_prefix=$need_lib_prefix
17641
17642 # Do we need a version for libraries?
17643 need_version=$need_version
17644
17645 # Library versioning type.
17646 version_type=$version_type
17647
17648 # Shared library runtime path variable.
17649 runpath_var=$runpath_var
17650
17651 # Shared library path variable.
17652 shlibpath_var=$shlibpath_var
17653
17654 # Is shlibpath searched before the hard-coded library search path?
17655 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17656
17657 # Format of library name prefix.
17658 libname_spec=$lt_libname_spec
17659
17660 # List of archive names.  First name is the real one, the rest are links.
17661 # The last name is the one that the linker finds with -lNAME
17662 library_names_spec=$lt_library_names_spec
17663
17664 # The coded name of the library, if different from the real name.
17665 soname_spec=$lt_soname_spec
17666
17667 # Command to use after installation of a shared archive.
17668 postinstall_cmds=$lt_postinstall_cmds
17669
17670 # Command to use after uninstallation of a shared archive.
17671 postuninstall_cmds=$lt_postuninstall_cmds
17672
17673 # Commands used to finish a libtool library installation in a directory.
17674 finish_cmds=$lt_finish_cmds
17675
17676 # As "finish_cmds", except a single script fragment to be evaled but
17677 # not shown.
17678 finish_eval=$lt_finish_eval
17679
17680 # Whether we should hardcode library paths into libraries.
17681 hardcode_into_libs=$hardcode_into_libs
17682
17683 # Compile-time system search path for libraries.
17684 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17685
17686 # Run-time system search path for libraries.
17687 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17688
17689 # Whether dlopen is supported.
17690 dlopen_support=$enable_dlopen
17691
17692 # Whether dlopen of programs is supported.
17693 dlopen_self=$enable_dlopen_self
17694
17695 # Whether dlopen of statically linked programs is supported.
17696 dlopen_self_static=$enable_dlopen_self_static
17697
17698 # Commands to strip libraries.
17699 old_striplib=$lt_old_striplib
17700 striplib=$lt_striplib
17701
17702
17703 # The linker used to build libraries.
17704 LD=$lt_LD
17705
17706 # Commands used to build an old-style archive.
17707 old_archive_cmds=$lt_old_archive_cmds
17708
17709 # A language specific compiler.
17710 CC=$lt_compiler
17711
17712 # Is the compiler the GNU compiler?
17713 with_gcc=$GCC
17714
17715 # Compiler flag to turn off builtin functions.
17716 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17717
17718 # How to pass a linker flag through the compiler.
17719 wl=$lt_lt_prog_compiler_wl
17720
17721 # Additional compiler flags for building library objects.
17722 pic_flag=$lt_lt_prog_compiler_pic
17723
17724 # Compiler flag to prevent dynamic linking.
17725 link_static_flag=$lt_lt_prog_compiler_static
17726
17727 # Does compiler simultaneously support -c and -o options?
17728 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17729
17730 # Whether or not to add -lc for building shared libraries.
17731 build_libtool_need_lc=$archive_cmds_need_lc
17732
17733 # Whether or not to disallow shared libs when runtime libs are static.
17734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17735
17736 # Compiler flag to allow reflexive dlopens.
17737 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17738
17739 # Compiler flag to generate shared objects directly from archives.
17740 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17741
17742 # Whether the compiler copes with passing no objects directly.
17743 compiler_needs_object=$lt_compiler_needs_object
17744
17745 # Create an old-style archive from a shared archive.
17746 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17747
17748 # Create a temporary old-style archive to link instead of a shared archive.
17749 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17750
17751 # Commands used to build a shared archive.
17752 archive_cmds=$lt_archive_cmds
17753 archive_expsym_cmds=$lt_archive_expsym_cmds
17754
17755 # Commands used to build a loadable module if different from building
17756 # a shared archive.
17757 module_cmds=$lt_module_cmds
17758 module_expsym_cmds=$lt_module_expsym_cmds
17759
17760 # Whether we are building with GNU ld or not.
17761 with_gnu_ld=$lt_with_gnu_ld
17762
17763 # Flag that allows shared libraries with undefined symbols to be built.
17764 allow_undefined_flag=$lt_allow_undefined_flag
17765
17766 # Flag that enforces no undefined symbols.
17767 no_undefined_flag=$lt_no_undefined_flag
17768
17769 # Flag to hardcode \$libdir into a binary during linking.
17770 # This must work even if \$libdir does not exist
17771 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17772
17773 # If ld is used when linking, flag to hardcode \$libdir into a binary
17774 # during linking.  This must work even if \$libdir does not exist.
17775 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17776
17777 # Whether we need a single "-rpath" flag with a separated argument.
17778 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17779
17780 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17781 # DIR into the resulting binary.
17782 hardcode_direct=$hardcode_direct
17783
17784 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17785 # DIR into the resulting binary and the resulting library dependency is
17786 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17787 # library is relocated.
17788 hardcode_direct_absolute=$hardcode_direct_absolute
17789
17790 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17791 # into the resulting binary.
17792 hardcode_minus_L=$hardcode_minus_L
17793
17794 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17795 # into the resulting binary.
17796 hardcode_shlibpath_var=$hardcode_shlibpath_var
17797
17798 # Set to "yes" if building a shared library automatically hardcodes DIR
17799 # into the library and all subsequent libraries and executables linked
17800 # against it.
17801 hardcode_automatic=$hardcode_automatic
17802
17803 # Set to yes if linker adds runtime paths of dependent libraries
17804 # to runtime path list.
17805 inherit_rpath=$inherit_rpath
17806
17807 # Whether libtool must link a program against all its dependency libraries.
17808 link_all_deplibs=$link_all_deplibs
17809
17810 # Fix the shell variable \$srcfile for the compiler.
17811 fix_srcfile_path=$lt_fix_srcfile_path
17812
17813 # Set to "yes" if exported symbols are required.
17814 always_export_symbols=$always_export_symbols
17815
17816 # The commands to list exported symbols.
17817 export_symbols_cmds=$lt_export_symbols_cmds
17818
17819 # Symbols that should not be listed in the preloaded symbols.
17820 exclude_expsyms=$lt_exclude_expsyms
17821
17822 # Symbols that must always be exported.
17823 include_expsyms=$lt_include_expsyms
17824
17825 # Commands necessary for linking programs (against libraries) with templates.
17826 prelink_cmds=$lt_prelink_cmds
17827
17828 # Specify filename containing input files.
17829 file_list_spec=$lt_file_list_spec
17830
17831 # How to hardcode a shared library path into an executable.
17832 hardcode_action=$hardcode_action
17833
17834 # The directories searched by this compiler when creating a shared library.
17835 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17836
17837 # Dependencies to place before and after the objects being linked to
17838 # create a shared library.
17839 predep_objects=$lt_predep_objects
17840 postdep_objects=$lt_postdep_objects
17841 predeps=$lt_predeps
17842 postdeps=$lt_postdeps
17843
17844 # The library search path used internally by the compiler when linking
17845 # a shared library.
17846 compiler_lib_search_path=$lt_compiler_lib_search_path
17847
17848 # ### END LIBTOOL CONFIG
17849
17850 _LT_EOF
17851
17852   case $host_os in
17853   aix3*)
17854     cat <<\_LT_EOF >> "$cfgfile"
17855 # AIX sometimes has problems with the GCC collect2 program.  For some
17856 # reason, if we set the COLLECT_NAMES environment variable, the problems
17857 # vanish in a puff of smoke.
17858 if test "X${COLLECT_NAMES+set}" != Xset; then
17859   COLLECT_NAMES=
17860   export COLLECT_NAMES
17861 fi
17862 _LT_EOF
17863     ;;
17864   esac
17865
17866
17867 ltmain="$ac_aux_dir/ltmain.sh"
17868
17869
17870   # We use sed instead of cat because bash on DJGPP gets confused if
17871   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17872   # text mode, it properly converts lines to CR/LF.  This bash problem
17873   # is reportedly fixed, but why not run on old versions too?
17874   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17875     || (rm -f "$cfgfile"; exit 1)
17876
17877   case $xsi_shell in
17878   yes)
17879     cat << \_LT_EOF >> "$cfgfile"
17880
17881 # func_dirname file append nondir_replacement
17882 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17883 # otherwise set result to NONDIR_REPLACEMENT.
17884 func_dirname ()
17885 {
17886   case ${1} in
17887     */*) func_dirname_result="${1%/*}${2}" ;;
17888     *  ) func_dirname_result="${3}" ;;
17889   esac
17890 }
17891
17892 # func_basename file
17893 func_basename ()
17894 {
17895   func_basename_result="${1##*/}"
17896 }
17897
17898 # func_dirname_and_basename file append nondir_replacement
17899 # perform func_basename and func_dirname in a single function
17900 # call:
17901 #   dirname:  Compute the dirname of FILE.  If nonempty,
17902 #             add APPEND to the result, otherwise set result
17903 #             to NONDIR_REPLACEMENT.
17904 #             value returned in "$func_dirname_result"
17905 #   basename: Compute filename of FILE.
17906 #             value retuned in "$func_basename_result"
17907 # Implementation must be kept synchronized with func_dirname
17908 # and func_basename. For efficiency, we do not delegate to
17909 # those functions but instead duplicate the functionality here.
17910 func_dirname_and_basename ()
17911 {
17912   case ${1} in
17913     */*) func_dirname_result="${1%/*}${2}" ;;
17914     *  ) func_dirname_result="${3}" ;;
17915   esac
17916   func_basename_result="${1##*/}"
17917 }
17918
17919 # func_stripname prefix suffix name
17920 # strip PREFIX and SUFFIX off of NAME.
17921 # PREFIX and SUFFIX must not contain globbing or regex special
17922 # characters, hashes, percent signs, but SUFFIX may contain a leading
17923 # dot (in which case that matches only a dot).
17924 func_stripname ()
17925 {
17926   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17927   # positional parameters, so assign one to ordinary parameter first.
17928   func_stripname_result=${3}
17929   func_stripname_result=${func_stripname_result#"${1}"}
17930   func_stripname_result=${func_stripname_result%"${2}"}
17931 }
17932
17933 # func_opt_split
17934 func_opt_split ()
17935 {
17936   func_opt_split_opt=${1%%=*}
17937   func_opt_split_arg=${1#*=}
17938 }
17939
17940 # func_lo2o object
17941 func_lo2o ()
17942 {
17943   case ${1} in
17944     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17945     *)    func_lo2o_result=${1} ;;
17946   esac
17947 }
17948
17949 # func_xform libobj-or-source
17950 func_xform ()
17951 {
17952   func_xform_result=${1%.*}.lo
17953 }
17954
17955 # func_arith arithmetic-term...
17956 func_arith ()
17957 {
17958   func_arith_result=$(( $* ))
17959 }
17960
17961 # func_len string
17962 # STRING may not start with a hyphen.
17963 func_len ()
17964 {
17965   func_len_result=${#1}
17966 }
17967
17968 _LT_EOF
17969     ;;
17970   *) # Bourne compatible functions.
17971     cat << \_LT_EOF >> "$cfgfile"
17972
17973 # func_dirname file append nondir_replacement
17974 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17975 # otherwise set result to NONDIR_REPLACEMENT.
17976 func_dirname ()
17977 {
17978   # Extract subdirectory from the argument.
17979   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17980   if test "X$func_dirname_result" = "X${1}"; then
17981     func_dirname_result="${3}"
17982   else
17983     func_dirname_result="$func_dirname_result${2}"
17984   fi
17985 }
17986
17987 # func_basename file
17988 func_basename ()
17989 {
17990   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17991 }
17992
17993
17994 # func_stripname prefix suffix name
17995 # strip PREFIX and SUFFIX off of NAME.
17996 # PREFIX and SUFFIX must not contain globbing or regex special
17997 # characters, hashes, percent signs, but SUFFIX may contain a leading
17998 # dot (in which case that matches only a dot).
17999 # func_strip_suffix prefix name
18000 func_stripname ()
18001 {
18002   case ${2} in
18003     .*) func_stripname_result=`$ECHO "X${3}" \
18004            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18005     *)  func_stripname_result=`$ECHO "X${3}" \
18006            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18007   esac
18008 }
18009
18010 # sed scripts:
18011 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18012 my_sed_long_arg='1s/^-[^=]*=//'
18013
18014 # func_opt_split
18015 func_opt_split ()
18016 {
18017   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18018   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18019 }
18020
18021 # func_lo2o object
18022 func_lo2o ()
18023 {
18024   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18025 }
18026
18027 # func_xform libobj-or-source
18028 func_xform ()
18029 {
18030   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18031 }
18032
18033 # func_arith arithmetic-term...
18034 func_arith ()
18035 {
18036   func_arith_result=`expr "$@"`
18037 }
18038
18039 # func_len string
18040 # STRING may not start with a hyphen.
18041 func_len ()
18042 {
18043   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18044 }
18045
18046 _LT_EOF
18047 esac
18048
18049 case $lt_shell_append in
18050   yes)
18051     cat << \_LT_EOF >> "$cfgfile"
18052
18053 # func_append var value
18054 # Append VALUE to the end of shell variable VAR.
18055 func_append ()
18056 {
18057   eval "$1+=\$2"
18058 }
18059 _LT_EOF
18060     ;;
18061   *)
18062     cat << \_LT_EOF >> "$cfgfile"
18063
18064 # func_append var value
18065 # Append VALUE to the end of shell variable VAR.
18066 func_append ()
18067 {
18068   eval "$1=\$$1\$2"
18069 }
18070
18071 _LT_EOF
18072     ;;
18073   esac
18074
18075
18076   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18077     || (rm -f "$cfgfile"; exit 1)
18078
18079   mv -f "$cfgfile" "$ofile" ||
18080     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18081   chmod +x "$ofile"
18082
18083
18084     cat <<_LT_EOF >> "$ofile"
18085
18086 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18087
18088 # The linker used to build libraries.
18089 LD=$lt_LD_CXX
18090
18091 # Commands used to build an old-style archive.
18092 old_archive_cmds=$lt_old_archive_cmds_CXX
18093
18094 # A language specific compiler.
18095 CC=$lt_compiler_CXX
18096
18097 # Is the compiler the GNU compiler?
18098 with_gcc=$GCC_CXX
18099
18100 # Compiler flag to turn off builtin functions.
18101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18102
18103 # How to pass a linker flag through the compiler.
18104 wl=$lt_lt_prog_compiler_wl_CXX
18105
18106 # Additional compiler flags for building library objects.
18107 pic_flag=$lt_lt_prog_compiler_pic_CXX
18108
18109 # Compiler flag to prevent dynamic linking.
18110 link_static_flag=$lt_lt_prog_compiler_static_CXX
18111
18112 # Does compiler simultaneously support -c and -o options?
18113 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18114
18115 # Whether or not to add -lc for building shared libraries.
18116 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18117
18118 # Whether or not to disallow shared libs when runtime libs are static.
18119 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18120
18121 # Compiler flag to allow reflexive dlopens.
18122 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18123
18124 # Compiler flag to generate shared objects directly from archives.
18125 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18126
18127 # Whether the compiler copes with passing no objects directly.
18128 compiler_needs_object=$lt_compiler_needs_object_CXX
18129
18130 # Create an old-style archive from a shared archive.
18131 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18132
18133 # Create a temporary old-style archive to link instead of a shared archive.
18134 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18135
18136 # Commands used to build a shared archive.
18137 archive_cmds=$lt_archive_cmds_CXX
18138 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18139
18140 # Commands used to build a loadable module if different from building
18141 # a shared archive.
18142 module_cmds=$lt_module_cmds_CXX
18143 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18144
18145 # Whether we are building with GNU ld or not.
18146 with_gnu_ld=$lt_with_gnu_ld_CXX
18147
18148 # Flag that allows shared libraries with undefined symbols to be built.
18149 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18150
18151 # Flag that enforces no undefined symbols.
18152 no_undefined_flag=$lt_no_undefined_flag_CXX
18153
18154 # Flag to hardcode \$libdir into a binary during linking.
18155 # This must work even if \$libdir does not exist
18156 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18157
18158 # If ld is used when linking, flag to hardcode \$libdir into a binary
18159 # during linking.  This must work even if \$libdir does not exist.
18160 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18161
18162 # Whether we need a single "-rpath" flag with a separated argument.
18163 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18164
18165 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18166 # DIR into the resulting binary.
18167 hardcode_direct=$hardcode_direct_CXX
18168
18169 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18170 # DIR into the resulting binary and the resulting library dependency is
18171 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18172 # library is relocated.
18173 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18174
18175 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18176 # into the resulting binary.
18177 hardcode_minus_L=$hardcode_minus_L_CXX
18178
18179 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18180 # into the resulting binary.
18181 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18182
18183 # Set to "yes" if building a shared library automatically hardcodes DIR
18184 # into the library and all subsequent libraries and executables linked
18185 # against it.
18186 hardcode_automatic=$hardcode_automatic_CXX
18187
18188 # Set to yes if linker adds runtime paths of dependent libraries
18189 # to runtime path list.
18190 inherit_rpath=$inherit_rpath_CXX
18191
18192 # Whether libtool must link a program against all its dependency libraries.
18193 link_all_deplibs=$link_all_deplibs_CXX
18194
18195 # Fix the shell variable \$srcfile for the compiler.
18196 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18197
18198 # Set to "yes" if exported symbols are required.
18199 always_export_symbols=$always_export_symbols_CXX
18200
18201 # The commands to list exported symbols.
18202 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18203
18204 # Symbols that should not be listed in the preloaded symbols.
18205 exclude_expsyms=$lt_exclude_expsyms_CXX
18206
18207 # Symbols that must always be exported.
18208 include_expsyms=$lt_include_expsyms_CXX
18209
18210 # Commands necessary for linking programs (against libraries) with templates.
18211 prelink_cmds=$lt_prelink_cmds_CXX
18212
18213 # Specify filename containing input files.
18214 file_list_spec=$lt_file_list_spec_CXX
18215
18216 # How to hardcode a shared library path into an executable.
18217 hardcode_action=$hardcode_action_CXX
18218
18219 # The directories searched by this compiler when creating a shared library.
18220 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18221
18222 # Dependencies to place before and after the objects being linked to
18223 # create a shared library.
18224 predep_objects=$lt_predep_objects_CXX
18225 postdep_objects=$lt_postdep_objects_CXX
18226 predeps=$lt_predeps_CXX
18227 postdeps=$lt_postdeps_CXX
18228
18229 # The library search path used internally by the compiler when linking
18230 # a shared library.
18231 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18232
18233 # ### END LIBTOOL TAG CONFIG: CXX
18234 _LT_EOF
18235
18236  ;;
18237
18238   esac
18239 done # for ac_tag
18240
18241
18242 as_fn_exit 0
18243 _ACEOF
18244 ac_clean_files=$ac_clean_files_save
18245
18246 test $ac_write_fail = 0 ||
18247   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18248
18249
18250 # configure is writing to config.log, and then calls config.status.
18251 # config.status does its own redirection, appending to config.log.
18252 # Unfortunately, on DOS this fails, as config.log is still kept open
18253 # by configure, so config.status won't be able to write to it; its
18254 # output is simply discarded.  So we exec the FD to /dev/null,
18255 # effectively closing config.log, so it can be properly (re)opened and
18256 # appended to by config.status.  When coming back to configure, we
18257 # need to make the FD available again.
18258 if test "$no_create" != yes; then
18259   ac_cs_success=:
18260   ac_config_status_args=
18261   test "$silent" = yes &&
18262     ac_config_status_args="$ac_config_status_args --quiet"
18263   exec 5>/dev/null
18264   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18265   exec 5>>config.log
18266   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18267   # would make configure fail if this is the last instruction.
18268   $ac_cs_success || as_fn_exit 1
18269 fi
18270 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18271   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18272 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18273 fi
18274