autoreconf
[mech_eap.git] / 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.9.
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.9'
705 PACKAGE_STRING='mech_eap 0.9'
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 OPENSSL_LIBS
760 OPENSSL_LDFLAGS
761 OPENSSL_CFLAGS
762 SHIBSP_LIBS
763 SHIBSP_LDFLAGS
764 SHIBSP_CXXFLAGS
765 SHIBRESOLVER_FALSE
766 SHIBRESOLVER_TRUE
767 SHIBRESOLVER_LIBS
768 SHIBRESOLVER_LDFLAGS
769 SHIBRESOLVER_CXXFLAGS
770 OPENSAML_FALSE
771 OPENSAML_TRUE
772 OPENSAML_LIBS
773 OPENSAML_LDFLAGS
774 OPENSAML_CXXFLAGS
775 HEIMDAL_FALSE
776 HEIMDAL_TRUE
777 KRB5_LIBS
778 KRB5_LDFLAGS
779 KRB5_CFLAGS
780 COMPILE_ET
781 TARGET_WINDOWS_FALSE
782 TARGET_WINDOWS_TRUE
783 TARGET_LDFLAGS
784 TARGET_CFLAGS
785 GSSEAP_ENABLE_ACCEPTOR_FALSE
786 GSSEAP_ENABLE_ACCEPTOR_TRUE
787 GSSEAP_ENABLE_REAUTH_FALSE
788 GSSEAP_ENABLE_REAUTH_TRUE
789 LIBOBJS
790 CXXCPP
791 am__fastdepCXX_FALSE
792 am__fastdepCXX_TRUE
793 CXXDEPMODE
794 ac_ct_CXX
795 CXXFLAGS
796 CXX
797 OTOOL64
798 OTOOL
799 LIPO
800 NMEDIT
801 DSYMUTIL
802 lt_ECHO
803 RANLIB
804 AR
805 LN_S
806 NM
807 ac_ct_DUMPBIN
808 DUMPBIN
809 LD
810 FGREP
811 SED
812 host_os
813 host_vendor
814 host_cpu
815 host
816 build_os
817 build_vendor
818 build_cpu
819 build
820 LIBTOOL
821 OBJDUMP
822 DLLTOOL
823 AS
824 MAINT
825 MAINTAINER_MODE_FALSE
826 MAINTAINER_MODE_TRUE
827 am__fastdepCC_FALSE
828 am__fastdepCC_TRUE
829 CCDEPMODE
830 AMDEPBACKSLASH
831 AMDEP_FALSE
832 AMDEP_TRUE
833 am__quote
834 am__include
835 DEPDIR
836 am__untar
837 am__tar
838 AMTAR
839 am__leading_dot
840 SET_MAKE
841 AWK
842 mkdir_p
843 MKDIR_P
844 INSTALL_STRIP_PROGRAM
845 STRIP
846 install_sh
847 MAKEINFO
848 AUTOHEADER
849 AUTOMAKE
850 AUTOCONF
851 ACLOCAL
852 VERSION
853 PACKAGE
854 CYGPATH_W
855 am__isrc
856 INSTALL_DATA
857 INSTALL_SCRIPT
858 INSTALL_PROGRAM
859 EGREP
860 GREP
861 CPP
862 OBJEXT
863 EXEEXT
864 ac_ct_CC
865 CPPFLAGS
866 LDFLAGS
867 CFLAGS
868 CC
869 target_alias
870 host_alias
871 build_alias
872 LIBS
873 ECHO_T
874 ECHO_N
875 ECHO_C
876 DEFS
877 mandir
878 localedir
879 libdir
880 psdir
881 pdfdir
882 dvidir
883 htmldir
884 infodir
885 docdir
886 oldincludedir
887 includedir
888 localstatedir
889 sharedstatedir
890 sysconfdir
891 datadir
892 datarootdir
893 libexecdir
894 sbindir
895 bindir
896 program_transform_name
897 prefix
898 exec_prefix
899 PACKAGE_URL
900 PACKAGE_BUGREPORT
901 PACKAGE_STRING
902 PACKAGE_VERSION
903 PACKAGE_TARNAME
904 PACKAGE_NAME
905 PATH_SEPARATOR
906 SHELL'
907 ac_subst_files=''
908 ac_user_opts='
909 enable_option_checking
910 enable_dependency_tracking
911 enable_maintainer_mode
912 enable_static
913 enable_shared
914 with_pic
915 enable_fast_install
916 with_gnu_ld
917 enable_libtool_lock
918 enable_reauth
919 enable_acceptor
920 with_krb5
921 with_opensaml
922 with_shibresolver
923 with_shibsp
924 with_openssl
925 with_radsec
926 with_jansson
927 with_libmoonshot
928 '
929       ac_precious_vars='build_alias
930 host_alias
931 target_alias
932 CC
933 CFLAGS
934 LDFLAGS
935 LIBS
936 CPPFLAGS
937 CPP
938 CXX
939 CXXFLAGS
940 CCC
941 CXXCPP'
942
943
944 # Initialize some variables set by options.
945 ac_init_help=
946 ac_init_version=false
947 ac_unrecognized_opts=
948 ac_unrecognized_sep=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
951 cache_file=/dev/null
952 exec_prefix=NONE
953 no_create=
954 no_recursion=
955 prefix=NONE
956 program_prefix=NONE
957 program_suffix=NONE
958 program_transform_name=s,x,x,
959 silent=
960 site=
961 srcdir=
962 verbose=
963 x_includes=NONE
964 x_libraries=NONE
965
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir='${exec_prefix}/bin'
973 sbindir='${exec_prefix}/sbin'
974 libexecdir='${exec_prefix}/libexec'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
977 sysconfdir='${prefix}/etc'
978 sharedstatedir='${prefix}/com'
979 localstatedir='${prefix}/var'
980 includedir='${prefix}/include'
981 oldincludedir='/usr/include'
982 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
983 infodir='${datarootdir}/info'
984 htmldir='${docdir}'
985 dvidir='${docdir}'
986 pdfdir='${docdir}'
987 psdir='${docdir}'
988 libdir='${exec_prefix}/lib'
989 localedir='${datarootdir}/locale'
990 mandir='${datarootdir}/man'
991
992 ac_prev=
993 ac_dashdash=
994 for ac_option
995 do
996   # If the previous option needs an argument, assign it.
997   if test -n "$ac_prev"; then
998     eval $ac_prev=\$ac_option
999     ac_prev=
1000     continue
1001   fi
1002
1003   case $ac_option in
1004   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005   *=)   ac_optarg= ;;
1006   *)    ac_optarg=yes ;;
1007   esac
1008
1009   # Accept the important Cygnus configure options, so we can diagnose typos.
1010
1011   case $ac_dashdash$ac_option in
1012   --)
1013     ac_dashdash=yes ;;
1014
1015   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016     ac_prev=bindir ;;
1017   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018     bindir=$ac_optarg ;;
1019
1020   -build | --build | --buil | --bui | --bu)
1021     ac_prev=build_alias ;;
1022   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023     build_alias=$ac_optarg ;;
1024
1025   -cache-file | --cache-file | --cache-fil | --cache-fi \
1026   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027     ac_prev=cache_file ;;
1028   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030     cache_file=$ac_optarg ;;
1031
1032   --config-cache | -C)
1033     cache_file=config.cache ;;
1034
1035   -datadir | --datadir | --datadi | --datad)
1036     ac_prev=datadir ;;
1037   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038     datadir=$ac_optarg ;;
1039
1040   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041   | --dataroo | --dataro | --datar)
1042     ac_prev=datarootdir ;;
1043   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045     datarootdir=$ac_optarg ;;
1046
1047   -disable-* | --disable-*)
1048     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049     # Reject names that are not valid shell variable names.
1050     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051       as_fn_error $? "invalid feature name: $ac_useropt"
1052     ac_useropt_orig=$ac_useropt
1053     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054     case $ac_user_opts in
1055       *"
1056 "enable_$ac_useropt"
1057 "*) ;;
1058       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059          ac_unrecognized_sep=', ';;
1060     esac
1061     eval enable_$ac_useropt=no ;;
1062
1063   -docdir | --docdir | --docdi | --doc | --do)
1064     ac_prev=docdir ;;
1065   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066     docdir=$ac_optarg ;;
1067
1068   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069     ac_prev=dvidir ;;
1070   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071     dvidir=$ac_optarg ;;
1072
1073   -enable-* | --enable-*)
1074     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075     # Reject names that are not valid shell variable names.
1076     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077       as_fn_error $? "invalid feature name: $ac_useropt"
1078     ac_useropt_orig=$ac_useropt
1079     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080     case $ac_user_opts in
1081       *"
1082 "enable_$ac_useropt"
1083 "*) ;;
1084       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1085          ac_unrecognized_sep=', ';;
1086     esac
1087     eval enable_$ac_useropt=\$ac_optarg ;;
1088
1089   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091   | --exec | --exe | --ex)
1092     ac_prev=exec_prefix ;;
1093   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095   | --exec=* | --exe=* | --ex=*)
1096     exec_prefix=$ac_optarg ;;
1097
1098   -gas | --gas | --ga | --g)
1099     # Obsolete; use --with-gas.
1100     with_gas=yes ;;
1101
1102   -help | --help | --hel | --he | -h)
1103     ac_init_help=long ;;
1104   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105     ac_init_help=recursive ;;
1106   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107     ac_init_help=short ;;
1108
1109   -host | --host | --hos | --ho)
1110     ac_prev=host_alias ;;
1111   -host=* | --host=* | --hos=* | --ho=*)
1112     host_alias=$ac_optarg ;;
1113
1114   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115     ac_prev=htmldir ;;
1116   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117   | --ht=*)
1118     htmldir=$ac_optarg ;;
1119
1120   -includedir | --includedir | --includedi | --included | --include \
1121   | --includ | --inclu | --incl | --inc)
1122     ac_prev=includedir ;;
1123   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124   | --includ=* | --inclu=* | --incl=* | --inc=*)
1125     includedir=$ac_optarg ;;
1126
1127   -infodir | --infodir | --infodi | --infod | --info | --inf)
1128     ac_prev=infodir ;;
1129   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130     infodir=$ac_optarg ;;
1131
1132   -libdir | --libdir | --libdi | --libd)
1133     ac_prev=libdir ;;
1134   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135     libdir=$ac_optarg ;;
1136
1137   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138   | --libexe | --libex | --libe)
1139     ac_prev=libexecdir ;;
1140   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141   | --libexe=* | --libex=* | --libe=*)
1142     libexecdir=$ac_optarg ;;
1143
1144   -localedir | --localedir | --localedi | --localed | --locale)
1145     ac_prev=localedir ;;
1146   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147     localedir=$ac_optarg ;;
1148
1149   -localstatedir | --localstatedir | --localstatedi | --localstated \
1150   | --localstate | --localstat | --localsta | --localst | --locals)
1151     ac_prev=localstatedir ;;
1152   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154     localstatedir=$ac_optarg ;;
1155
1156   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157     ac_prev=mandir ;;
1158   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159     mandir=$ac_optarg ;;
1160
1161   -nfp | --nfp | --nf)
1162     # Obsolete; use --without-fp.
1163     with_fp=no ;;
1164
1165   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166   | --no-cr | --no-c | -n)
1167     no_create=yes ;;
1168
1169   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171     no_recursion=yes ;;
1172
1173   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175   | --oldin | --oldi | --old | --ol | --o)
1176     ac_prev=oldincludedir ;;
1177   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180     oldincludedir=$ac_optarg ;;
1181
1182   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183     ac_prev=prefix ;;
1184   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185     prefix=$ac_optarg ;;
1186
1187   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188   | --program-pre | --program-pr | --program-p)
1189     ac_prev=program_prefix ;;
1190   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192     program_prefix=$ac_optarg ;;
1193
1194   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195   | --program-suf | --program-su | --program-s)
1196     ac_prev=program_suffix ;;
1197   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199     program_suffix=$ac_optarg ;;
1200
1201   -program-transform-name | --program-transform-name \
1202   | --program-transform-nam | --program-transform-na \
1203   | --program-transform-n | --program-transform- \
1204   | --program-transform | --program-transfor \
1205   | --program-transfo | --program-transf \
1206   | --program-trans | --program-tran \
1207   | --progr-tra | --program-tr | --program-t)
1208     ac_prev=program_transform_name ;;
1209   -program-transform-name=* | --program-transform-name=* \
1210   | --program-transform-nam=* | --program-transform-na=* \
1211   | --program-transform-n=* | --program-transform-=* \
1212   | --program-transform=* | --program-transfor=* \
1213   | --program-transfo=* | --program-transf=* \
1214   | --program-trans=* | --program-tran=* \
1215   | --progr-tra=* | --program-tr=* | --program-t=*)
1216     program_transform_name=$ac_optarg ;;
1217
1218   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219     ac_prev=pdfdir ;;
1220   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221     pdfdir=$ac_optarg ;;
1222
1223   -psdir | --psdir | --psdi | --psd | --ps)
1224     ac_prev=psdir ;;
1225   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226     psdir=$ac_optarg ;;
1227
1228   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229   | -silent | --silent | --silen | --sile | --sil)
1230     silent=yes ;;
1231
1232   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233     ac_prev=sbindir ;;
1234   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235   | --sbi=* | --sb=*)
1236     sbindir=$ac_optarg ;;
1237
1238   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240   | --sharedst | --shareds | --shared | --share | --shar \
1241   | --sha | --sh)
1242     ac_prev=sharedstatedir ;;
1243   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246   | --sha=* | --sh=*)
1247     sharedstatedir=$ac_optarg ;;
1248
1249   -site | --site | --sit)
1250     ac_prev=site ;;
1251   -site=* | --site=* | --sit=*)
1252     site=$ac_optarg ;;
1253
1254   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255     ac_prev=srcdir ;;
1256   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257     srcdir=$ac_optarg ;;
1258
1259   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260   | --syscon | --sysco | --sysc | --sys | --sy)
1261     ac_prev=sysconfdir ;;
1262   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264     sysconfdir=$ac_optarg ;;
1265
1266   -target | --target | --targe | --targ | --tar | --ta | --t)
1267     ac_prev=target_alias ;;
1268   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269     target_alias=$ac_optarg ;;
1270
1271   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272     verbose=yes ;;
1273
1274   -version | --version | --versio | --versi | --vers | -V)
1275     ac_init_version=: ;;
1276
1277   -with-* | --with-*)
1278     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279     # Reject names that are not valid shell variable names.
1280     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281       as_fn_error $? "invalid package name: $ac_useropt"
1282     ac_useropt_orig=$ac_useropt
1283     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284     case $ac_user_opts in
1285       *"
1286 "with_$ac_useropt"
1287 "*) ;;
1288       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289          ac_unrecognized_sep=', ';;
1290     esac
1291     eval with_$ac_useropt=\$ac_optarg ;;
1292
1293   -without-* | --without-*)
1294     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295     # Reject names that are not valid shell variable names.
1296     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297       as_fn_error $? "invalid package name: $ac_useropt"
1298     ac_useropt_orig=$ac_useropt
1299     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300     case $ac_user_opts in
1301       *"
1302 "with_$ac_useropt"
1303 "*) ;;
1304       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305          ac_unrecognized_sep=', ';;
1306     esac
1307     eval with_$ac_useropt=no ;;
1308
1309   --x)
1310     # Obsolete; use --with-x.
1311     with_x=yes ;;
1312
1313   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314   | --x-incl | --x-inc | --x-in | --x-i)
1315     ac_prev=x_includes ;;
1316   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318     x_includes=$ac_optarg ;;
1319
1320   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322     ac_prev=x_libraries ;;
1323   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325     x_libraries=$ac_optarg ;;
1326
1327   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1328 Try \`$0 --help' for more information"
1329     ;;
1330
1331   *=*)
1332     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333     # Reject names that are not valid shell variable names.
1334     case $ac_envvar in #(
1335       '' | [0-9]* | *[!_$as_cr_alnum]* )
1336       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1337     esac
1338     eval $ac_envvar=\$ac_optarg
1339     export $ac_envvar ;;
1340
1341   *)
1342     # FIXME: should be removed in autoconf 3.0.
1343     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347     ;;
1348
1349   esac
1350 done
1351
1352 if test -n "$ac_prev"; then
1353   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354   as_fn_error $? "missing argument to $ac_option"
1355 fi
1356
1357 if test -n "$ac_unrecognized_opts"; then
1358   case $enable_option_checking in
1359     no) ;;
1360     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1361     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362   esac
1363 fi
1364
1365 # Check all directory arguments for consistency.
1366 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367                 datadir sysconfdir sharedstatedir localstatedir includedir \
1368                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369                 libdir localedir mandir
1370 do
1371   eval ac_val=\$$ac_var
1372   # Remove trailing slashes.
1373   case $ac_val in
1374     */ )
1375       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1376       eval $ac_var=\$ac_val;;
1377   esac
1378   # Be sure to have absolute directory names.
1379   case $ac_val in
1380     [\\/$]* | ?:[\\/]* )  continue;;
1381     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1382   esac
1383   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1384 done
1385
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1389 build=$build_alias
1390 host=$host_alias
1391 target=$target_alias
1392
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x; then
1395   if test "x$build_alias" = x; then
1396     cross_compiling=maybe
1397     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1398     If a cross compiler is detected then cross compile mode will be used" >&2
1399   elif test "x$build_alias" != "x$host_alias"; then
1400     cross_compiling=yes
1401   fi
1402 fi
1403
1404 ac_tool_prefix=
1405 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406
1407 test "$silent" = yes && exec 6>/dev/null
1408
1409
1410 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di=`ls -di .` &&
1412 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413   as_fn_error $? "working directory cannot be determined"
1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415   as_fn_error $? "pwd does not report name of working directory"
1416
1417
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420   ac_srcdir_defaulted=yes
1421   # Try the directory containing this script, then the parent directory.
1422   ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424          X"$as_myself" : 'X\(//\)[^/]' \| \
1425          X"$as_myself" : 'X\(//\)$' \| \
1426          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429             s//\1/
1430             q
1431           }
1432           /^X\(\/\/\)[^/].*/{
1433             s//\1/
1434             q
1435           }
1436           /^X\(\/\/\)$/{
1437             s//\1/
1438             q
1439           }
1440           /^X\(\/\).*/{
1441             s//\1/
1442             q
1443           }
1444           s/.*/./; q'`
1445   srcdir=$ac_confdir
1446   if test ! -r "$srcdir/$ac_unique_file"; then
1447     srcdir=..
1448   fi
1449 else
1450   ac_srcdir_defaulted=no
1451 fi
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1455 fi
1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 ac_abs_confdir=`(
1458         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1459         pwd)`
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462   srcdir=.
1463 fi
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1467 case $srcdir in
1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 esac
1470 for ac_var in $ac_precious_vars; do
1471   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472   eval ac_env_${ac_var}_value=\$${ac_var}
1473   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 done
1476
1477 #
1478 # Report the --help message.
1479 #
1480 if test "$ac_init_help" = "long"; then
1481   # Omit some internal or obsolete options to make the list less imposing.
1482   # This message is too long to be a string in the A/UX 3.1 sh.
1483   cat <<_ACEOF
1484 \`configure' configures mech_eap 0.9 to adapt to many kinds of systems.
1485
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1487
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE.  See below for descriptions of some of the useful variables.
1490
1491 Defaults for the options are specified in brackets.
1492
1493 Configuration:
1494   -h, --help              display this help and exit
1495       --help=short        display options specific to this package
1496       --help=recursive    display the short help of all the included packages
1497   -V, --version           display version information and exit
1498   -q, --quiet, --silent   do not print \`checking ...' messages
1499       --cache-file=FILE   cache test results in FILE [disabled]
1500   -C, --config-cache      alias for \`--cache-file=config.cache'
1501   -n, --no-create         do not create output files
1502       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1503
1504 Installation directories:
1505   --prefix=PREFIX         install architecture-independent files in PREFIX
1506                           [$ac_default_prefix]
1507   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1508                           [PREFIX]
1509
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1514
1515 For better control, use the options below.
1516
1517 Fine tuning of the installation directories:
1518   --bindir=DIR            user executables [EPREFIX/bin]
1519   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1520   --libexecdir=DIR        program executables [EPREFIX/libexec]
1521   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1522   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1523   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1524   --libdir=DIR            object code libraries [EPREFIX/lib]
1525   --includedir=DIR        C header files [PREFIX/include]
1526   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1527   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1528   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1529   --infodir=DIR           info documentation [DATAROOTDIR/info]
1530   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1531   --mandir=DIR            man documentation [DATAROOTDIR/man]
1532   --docdir=DIR            documentation root [DATAROOTDIR/doc/mech_eap]
1533   --htmldir=DIR           html documentation [DOCDIR]
1534   --dvidir=DIR            dvi documentation [DOCDIR]
1535   --pdfdir=DIR            pdf documentation [DOCDIR]
1536   --psdir=DIR             ps documentation [DOCDIR]
1537 _ACEOF
1538
1539   cat <<\_ACEOF
1540
1541 Program names:
1542   --program-prefix=PREFIX            prepend PREFIX to installed program names
1543   --program-suffix=SUFFIX            append SUFFIX to installed program names
1544   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1545
1546 System types:
1547   --build=BUILD     configure for building on BUILD [guessed]
1548   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1549 _ACEOF
1550 fi
1551
1552 if test -n "$ac_init_help"; then
1553   case $ac_init_help in
1554      short | recursive ) echo "Configuration of mech_eap 0.9:";;
1555    esac
1556   cat <<\_ACEOF
1557
1558 Optional Features:
1559   --disable-option-checking  ignore unrecognized --enable/--with options
1560   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1561   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1562   --disable-dependency-tracking  speeds up one-time build
1563   --enable-dependency-tracking   do not reject slow dependency extractors
1564   --enable-maintainer-mode  enable make rules and dependencies not useful
1565                           (and sometimes confusing) to the casual installer
1566   --enable-static[=PKGS]  build static libraries [default=no]
1567   --enable-shared[=PKGS]  build shared libraries [default=yes]
1568   --enable-fast-install[=PKGS]
1569                           optimize for fast installation [default=yes]
1570   --disable-libtool-lock  avoid locking (might break parallel builds)
1571   --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no
1572   --enable-acceptor whether to enable acceptor codepaths: yes/no; default yes
1573
1574 Optional Packages:
1575   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1576   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1577   --with-pic              try to use only PIC/non-PIC objects [default=use
1578                           both]
1579   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1580   --with-krb5             Use krb5 (in specified installation directory)
1581   --with-opensaml         Use OpenSAML (in specified installation directory)
1582   --with-shibresolver     Use Shibboleth resolver (in specified installation
1583                           directory)
1584   --with-shibsp           Use shibspboleth (in specified installation
1585                           directory)
1586   --with-openssl          Use OpenSSL (in specified installation directory)
1587   --with-radsec           Use radsec (in specified installation directory)
1588   --with-jansson          Use jansson (in specified installation directory)
1589   --with-libmoonshot      Use libmoonshot (in specified installation
1590                           directory)
1591
1592 Some influential environment variables:
1593   CC          C compiler command
1594   CFLAGS      C compiler flags
1595   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1596               nonstandard directory <lib dir>
1597   LIBS        libraries to pass to the linker, e.g. -l<library>
1598   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1599               you have headers in a nonstandard directory <include dir>
1600   CPP         C preprocessor
1601   CXX         C++ compiler command
1602   CXXFLAGS    C++ compiler flags
1603   CXXCPP      C++ preprocessor
1604
1605 Use these variables to override the choices made by `configure' or to help
1606 it to find libraries and programs with nonstandard names/locations.
1607
1608 Report bugs to <bugs@project-moonshot.org>.
1609 _ACEOF
1610 ac_status=$?
1611 fi
1612
1613 if test "$ac_init_help" = "recursive"; then
1614   # If there are subdirs, report their specific --help.
1615   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1616     test -d "$ac_dir" ||
1617       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1618       continue
1619     ac_builddir=.
1620
1621 case "$ac_dir" in
1622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *)
1624   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1625   # A ".." for each directory in $ac_dir_suffix.
1626   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627   case $ac_top_builddir_sub in
1628   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630   esac ;;
1631 esac
1632 ac_abs_top_builddir=$ac_pwd
1633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir=$ac_top_build_prefix
1636
1637 case $srcdir in
1638   .)  # We are building in place.
1639     ac_srcdir=.
1640     ac_top_srcdir=$ac_top_builddir_sub
1641     ac_abs_top_srcdir=$ac_pwd ;;
1642   [\\/]* | ?:[\\/]* )  # Absolute name.
1643     ac_srcdir=$srcdir$ac_dir_suffix;
1644     ac_top_srcdir=$srcdir
1645     ac_abs_top_srcdir=$srcdir ;;
1646   *) # Relative name.
1647     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648     ac_top_srcdir=$ac_top_build_prefix$srcdir
1649     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1650 esac
1651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1652
1653     cd "$ac_dir" || { ac_status=$?; continue; }
1654     # Check for guested configure.
1655     if test -f "$ac_srcdir/configure.gnu"; then
1656       echo &&
1657       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658     elif test -f "$ac_srcdir/configure"; then
1659       echo &&
1660       $SHELL "$ac_srcdir/configure" --help=recursive
1661     else
1662       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1663     fi || ac_status=$?
1664     cd "$ac_pwd" || { ac_status=$?; break; }
1665   done
1666 fi
1667
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1670   cat <<\_ACEOF
1671 mech_eap configure 0.9
1672 generated by GNU Autoconf 2.67
1673
1674 Copyright (C) 2010 Free Software Foundation, Inc.
1675 This configure script is free software; the Free Software Foundation
1676 gives unlimited permission to copy, distribute and modify it.
1677 _ACEOF
1678   exit
1679 fi
1680
1681 ## ------------------------ ##
1682 ## Autoconf initialization. ##
1683 ## ------------------------ ##
1684
1685 # ac_fn_c_try_compile LINENO
1686 # --------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_compile ()
1689 {
1690   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691   rm -f conftest.$ac_objext
1692   if { { ac_try="$ac_compile"
1693 case "(($ac_try" in
1694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695   *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699   (eval "$ac_compile") 2>conftest.err
1700   ac_status=$?
1701   if test -s conftest.err; then
1702     grep -v '^ *+' conftest.err >conftest.er1
1703     cat conftest.er1 >&5
1704     mv -f conftest.er1 conftest.err
1705   fi
1706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707   test $ac_status = 0; } && {
1708          test -z "$ac_c_werror_flag" ||
1709          test ! -s conftest.err
1710        } && test -s conftest.$ac_objext; then :
1711   ac_retval=0
1712 else
1713   $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716         ac_retval=1
1717 fi
1718   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719   as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_compile
1722
1723 # ac_fn_c_try_cpp LINENO
1724 # ----------------------
1725 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_cpp ()
1727 {
1728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729   if { { ac_try="$ac_cpp conftest.$ac_ext"
1730 case "(($ac_try" in
1731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732   *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1737   ac_status=$?
1738   if test -s conftest.err; then
1739     grep -v '^ *+' conftest.err >conftest.er1
1740     cat conftest.er1 >&5
1741     mv -f conftest.er1 conftest.err
1742   fi
1743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744   test $ac_status = 0; } > conftest.i && {
1745          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1746          test ! -s conftest.err
1747        }; then :
1748   ac_retval=0
1749 else
1750   $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753     ac_retval=1
1754 fi
1755   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756   as_fn_set_status $ac_retval
1757
1758 } # ac_fn_c_try_cpp
1759
1760 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1761 # -------------------------------------------------------
1762 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1763 # the include files in INCLUDES and setting the cache variable VAR
1764 # accordingly.
1765 ac_fn_c_check_header_mongrel ()
1766 {
1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768   if eval "test \"\${$3+set}\"" = set; then :
1769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval "test \"\${$3+set}\"" = set; then :
1772   $as_echo_n "(cached) " >&6
1773 fi
1774 eval ac_res=\$$3
1775                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 else
1778   # Is the header compilable?
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1780 $as_echo_n "checking $2 usability... " >&6; }
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h.  */
1783 $4
1784 #include <$2>
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787   ac_header_compiler=yes
1788 else
1789   ac_header_compiler=no
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1793 $as_echo "$ac_header_compiler" >&6; }
1794
1795 # Is the header present?
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1797 $as_echo_n "checking $2 presence... " >&6; }
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h.  */
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_cpp "$LINENO"; then :
1803   ac_header_preproc=yes
1804 else
1805   ac_header_preproc=no
1806 fi
1807 rm -f conftest.err conftest.i conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1809 $as_echo "$ac_header_preproc" >&6; }
1810
1811 # So?  What about this header?
1812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1813   yes:no: )
1814     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1815 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1816     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818     ;;
1819   no:yes:* )
1820     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1821 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1822     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1823 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1825 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1827 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1828     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830 ( $as_echo "## ---------------------------------------- ##
1831 ## Report this to bugs@project-moonshot.org ##
1832 ## ---------------------------------------- ##"
1833      ) | sed "s/^/$as_me: WARNING:     /" >&2
1834     ;;
1835 esac
1836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval "test \"\${$3+set}\"" = set; then :
1839   $as_echo_n "(cached) " >&6
1840 else
1841   eval "$3=\$ac_header_compiler"
1842 fi
1843 eval ac_res=\$$3
1844                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1846 fi
1847   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848
1849 } # ac_fn_c_check_header_mongrel
1850
1851 # ac_fn_c_try_run LINENO
1852 # ----------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854 # that executables *can* be run.
1855 ac_fn_c_try_run ()
1856 {
1857   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858   if { { ac_try="$ac_link"
1859 case "(($ac_try" in
1860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861   *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865   (eval "$ac_link") 2>&5
1866   ac_status=$?
1867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1869   { { case "(($ac_try" in
1870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871   *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875   (eval "$ac_try") 2>&5
1876   ac_status=$?
1877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878   test $ac_status = 0; }; }; then :
1879   ac_retval=0
1880 else
1881   $as_echo "$as_me: program exited with status $ac_status" >&5
1882        $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885        ac_retval=$ac_status
1886 fi
1887   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889   as_fn_set_status $ac_retval
1890
1891 } # ac_fn_c_try_run
1892
1893 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1894 # -------------------------------------------------------
1895 # Tests whether HEADER exists and can be compiled using the include files in
1896 # INCLUDES, setting the cache variable VAR accordingly.
1897 ac_fn_c_check_header_compile ()
1898 {
1899   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval "test \"\${$3+set}\"" = set; then :
1903   $as_echo_n "(cached) " >&6
1904 else
1905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h.  */
1907 $4
1908 #include <$2>
1909 _ACEOF
1910 if ac_fn_c_try_compile "$LINENO"; then :
1911   eval "$3=yes"
1912 else
1913   eval "$3=no"
1914 fi
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 fi
1917 eval ac_res=\$$3
1918                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1921
1922 } # ac_fn_c_check_header_compile
1923
1924 # ac_fn_c_try_link LINENO
1925 # -----------------------
1926 # Try to link conftest.$ac_ext, and return whether this succeeded.
1927 ac_fn_c_try_link ()
1928 {
1929   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930   rm -f conftest.$ac_objext conftest$ac_exeext
1931   if { { ac_try="$ac_link"
1932 case "(($ac_try" in
1933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934   *) ac_try_echo=$ac_try;;
1935 esac
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938   (eval "$ac_link") 2>conftest.err
1939   ac_status=$?
1940   if test -s conftest.err; then
1941     grep -v '^ *+' conftest.err >conftest.er1
1942     cat conftest.er1 >&5
1943     mv -f conftest.er1 conftest.err
1944   fi
1945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946   test $ac_status = 0; } && {
1947          test -z "$ac_c_werror_flag" ||
1948          test ! -s conftest.err
1949        } && test -s conftest$ac_exeext && {
1950          test "$cross_compiling" = yes ||
1951          $as_test_x conftest$ac_exeext
1952        }; then :
1953   ac_retval=0
1954 else
1955   $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1957
1958         ac_retval=1
1959 fi
1960   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1961   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1962   # interfere with the next link command; also delete a directory that is
1963   # left behind by Apple's compiler.  We do this before executing the actions.
1964   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1965   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1966   as_fn_set_status $ac_retval
1967
1968 } # ac_fn_c_try_link
1969
1970 # ac_fn_c_check_func LINENO FUNC VAR
1971 # ----------------------------------
1972 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1973 ac_fn_c_check_func ()
1974 {
1975   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval "test \"\${$3+set}\"" = set; then :
1979   $as_echo_n "(cached) " >&6
1980 else
1981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h.  */
1983 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1985 #define $2 innocuous_$2
1986
1987 /* System header to define __stub macros and hopefully few prototypes,
1988     which can conflict with char $2 (); below.
1989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1990     <limits.h> exists even on freestanding compilers.  */
1991
1992 #ifdef __STDC__
1993 # include <limits.h>
1994 #else
1995 # include <assert.h>
1996 #endif
1997
1998 #undef $2
1999
2000 /* Override any GCC internal prototype to avoid an error.
2001    Use char because int might match the return type of a GCC
2002    builtin and then its argument prototype would still apply.  */
2003 #ifdef __cplusplus
2004 extern "C"
2005 #endif
2006 char $2 ();
2007 /* The GNU C library defines this for functions which it implements
2008     to always fail with ENOSYS.  Some functions are actually named
2009     something starting with __ and the normal name is an alias.  */
2010 #if defined __stub_$2 || defined __stub___$2
2011 choke me
2012 #endif
2013
2014 int
2015 main ()
2016 {
2017 return $2 ();
2018   ;
2019   return 0;
2020 }
2021 _ACEOF
2022 if ac_fn_c_try_link "$LINENO"; then :
2023   eval "$3=yes"
2024 else
2025   eval "$3=no"
2026 fi
2027 rm -f core conftest.err conftest.$ac_objext \
2028     conftest$ac_exeext conftest.$ac_ext
2029 fi
2030 eval ac_res=\$$3
2031                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2034
2035 } # ac_fn_c_check_func
2036
2037 # ac_fn_cxx_try_compile LINENO
2038 # ----------------------------
2039 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2040 ac_fn_cxx_try_compile ()
2041 {
2042   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043   rm -f conftest.$ac_objext
2044   if { { ac_try="$ac_compile"
2045 case "(($ac_try" in
2046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047   *) ac_try_echo=$ac_try;;
2048 esac
2049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050 $as_echo "$ac_try_echo"; } >&5
2051   (eval "$ac_compile") 2>conftest.err
2052   ac_status=$?
2053   if test -s conftest.err; then
2054     grep -v '^ *+' conftest.err >conftest.er1
2055     cat conftest.er1 >&5
2056     mv -f conftest.er1 conftest.err
2057   fi
2058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059   test $ac_status = 0; } && {
2060          test -z "$ac_cxx_werror_flag" ||
2061          test ! -s conftest.err
2062        } && test -s conftest.$ac_objext; then :
2063   ac_retval=0
2064 else
2065   $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2067
2068         ac_retval=1
2069 fi
2070   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2071   as_fn_set_status $ac_retval
2072
2073 } # ac_fn_cxx_try_compile
2074
2075 # ac_fn_cxx_try_cpp LINENO
2076 # ------------------------
2077 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2078 ac_fn_cxx_try_cpp ()
2079 {
2080   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081   if { { ac_try="$ac_cpp conftest.$ac_ext"
2082 case "(($ac_try" in
2083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084   *) ac_try_echo=$ac_try;;
2085 esac
2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087 $as_echo "$ac_try_echo"; } >&5
2088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2089   ac_status=$?
2090   if test -s conftest.err; then
2091     grep -v '^ *+' conftest.err >conftest.er1
2092     cat conftest.er1 >&5
2093     mv -f conftest.er1 conftest.err
2094   fi
2095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096   test $ac_status = 0; } > conftest.i && {
2097          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2098          test ! -s conftest.err
2099        }; then :
2100   ac_retval=0
2101 else
2102   $as_echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2104
2105     ac_retval=1
2106 fi
2107   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108   as_fn_set_status $ac_retval
2109
2110 } # ac_fn_cxx_try_cpp
2111
2112 # ac_fn_cxx_try_link LINENO
2113 # -------------------------
2114 # Try to link conftest.$ac_ext, and return whether this succeeded.
2115 ac_fn_cxx_try_link ()
2116 {
2117   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118   rm -f conftest.$ac_objext conftest$ac_exeext
2119   if { { ac_try="$ac_link"
2120 case "(($ac_try" in
2121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122   *) ac_try_echo=$ac_try;;
2123 esac
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126   (eval "$ac_link") 2>conftest.err
2127   ac_status=$?
2128   if test -s conftest.err; then
2129     grep -v '^ *+' conftest.err >conftest.er1
2130     cat conftest.er1 >&5
2131     mv -f conftest.er1 conftest.err
2132   fi
2133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134   test $ac_status = 0; } && {
2135          test -z "$ac_cxx_werror_flag" ||
2136          test ! -s conftest.err
2137        } && test -s conftest$ac_exeext && {
2138          test "$cross_compiling" = yes ||
2139          $as_test_x conftest$ac_exeext
2140        }; then :
2141   ac_retval=0
2142 else
2143   $as_echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.$ac_ext >&5
2145
2146         ac_retval=1
2147 fi
2148   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2149   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2150   # interfere with the next link command; also delete a directory that is
2151   # left behind by Apple's compiler.  We do this before executing the actions.
2152   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2153   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2154   as_fn_set_status $ac_retval
2155
2156 } # ac_fn_cxx_try_link
2157 cat >config.log <<_ACEOF
2158 This file contains any messages produced by compilers while
2159 running configure, to aid debugging if configure makes a mistake.
2160
2161 It was created by mech_eap $as_me 0.9, which was
2162 generated by GNU Autoconf 2.67.  Invocation command line was
2163
2164   $ $0 $@
2165
2166 _ACEOF
2167 exec 5>>config.log
2168 {
2169 cat <<_ASUNAME
2170 ## --------- ##
2171 ## Platform. ##
2172 ## --------- ##
2173
2174 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2175 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2176 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2177 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2178 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2179
2180 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2181 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2182
2183 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2184 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2185 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2186 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2187 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2188 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2189 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2190
2191 _ASUNAME
2192
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2195 do
2196   IFS=$as_save_IFS
2197   test -z "$as_dir" && as_dir=.
2198     $as_echo "PATH: $as_dir"
2199   done
2200 IFS=$as_save_IFS
2201
2202 } >&5
2203
2204 cat >&5 <<_ACEOF
2205
2206
2207 ## ----------- ##
2208 ## Core tests. ##
2209 ## ----------- ##
2210
2211 _ACEOF
2212
2213
2214 # Keep a trace of the command line.
2215 # Strip out --no-create and --no-recursion so they do not pile up.
2216 # Strip out --silent because we don't want to record it for future runs.
2217 # Also quote any args containing shell meta-characters.
2218 # Make two passes to allow for proper duplicate-argument suppression.
2219 ac_configure_args=
2220 ac_configure_args0=
2221 ac_configure_args1=
2222 ac_must_keep_next=false
2223 for ac_pass in 1 2
2224 do
2225   for ac_arg
2226   do
2227     case $ac_arg in
2228     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2229     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2230     | -silent | --silent | --silen | --sile | --sil)
2231       continue ;;
2232     *\'*)
2233       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2234     esac
2235     case $ac_pass in
2236     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2237     2)
2238       as_fn_append ac_configure_args1 " '$ac_arg'"
2239       if test $ac_must_keep_next = true; then
2240         ac_must_keep_next=false # Got value, back to normal.
2241       else
2242         case $ac_arg in
2243           *=* | --config-cache | -C | -disable-* | --disable-* \
2244           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2245           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2246           | -with-* | --with-* | -without-* | --without-* | --x)
2247             case "$ac_configure_args0 " in
2248               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2249             esac
2250             ;;
2251           -* ) ac_must_keep_next=true ;;
2252         esac
2253       fi
2254       as_fn_append ac_configure_args " '$ac_arg'"
2255       ;;
2256     esac
2257   done
2258 done
2259 { ac_configure_args0=; unset ac_configure_args0;}
2260 { ac_configure_args1=; unset ac_configure_args1;}
2261
2262 # When interrupted or exit'd, cleanup temporary files, and complete
2263 # config.log.  We remove comments because anyway the quotes in there
2264 # would cause problems or look ugly.
2265 # WARNING: Use '\'' to represent an apostrophe within the trap.
2266 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2267 trap 'exit_status=$?
2268   # Save into config.log some information that might help in debugging.
2269   {
2270     echo
2271
2272     $as_echo "## ---------------- ##
2273 ## Cache variables. ##
2274 ## ---------------- ##"
2275     echo
2276     # The following way of writing the cache mishandles newlines in values,
2277 (
2278   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2279     eval ac_val=\$$ac_var
2280     case $ac_val in #(
2281     *${as_nl}*)
2282       case $ac_var in #(
2283       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2284 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2285       esac
2286       case $ac_var in #(
2287       _ | IFS | as_nl) ;; #(
2288       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2289       *) { eval $ac_var=; unset $ac_var;} ;;
2290       esac ;;
2291     esac
2292   done
2293   (set) 2>&1 |
2294     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2295     *${as_nl}ac_space=\ *)
2296       sed -n \
2297         "s/'\''/'\''\\\\'\'''\''/g;
2298           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2299       ;; #(
2300     *)
2301       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2302       ;;
2303     esac |
2304     sort
2305 )
2306     echo
2307
2308     $as_echo "## ----------------- ##
2309 ## Output variables. ##
2310 ## ----------------- ##"
2311     echo
2312     for ac_var in $ac_subst_vars
2313     do
2314       eval ac_val=\$$ac_var
2315       case $ac_val in
2316       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317       esac
2318       $as_echo "$ac_var='\''$ac_val'\''"
2319     done | sort
2320     echo
2321
2322     if test -n "$ac_subst_files"; then
2323       $as_echo "## ------------------- ##
2324 ## File substitutions. ##
2325 ## ------------------- ##"
2326       echo
2327       for ac_var in $ac_subst_files
2328       do
2329         eval ac_val=\$$ac_var
2330         case $ac_val in
2331         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2332         esac
2333         $as_echo "$ac_var='\''$ac_val'\''"
2334       done | sort
2335       echo
2336     fi
2337
2338     if test -s confdefs.h; then
2339       $as_echo "## ----------- ##
2340 ## confdefs.h. ##
2341 ## ----------- ##"
2342       echo
2343       cat confdefs.h
2344       echo
2345     fi
2346     test "$ac_signal" != 0 &&
2347       $as_echo "$as_me: caught signal $ac_signal"
2348     $as_echo "$as_me: exit $exit_status"
2349   } >&5
2350   rm -f core *.core core.conftest.* &&
2351     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2352     exit $exit_status
2353 ' 0
2354 for ac_signal in 1 2 13 15; do
2355   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2356 done
2357 ac_signal=0
2358
2359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2360 rm -f -r conftest* confdefs.h
2361
2362 $as_echo "/* confdefs.h */" > confdefs.h
2363
2364 # Predefined preprocessor variables.
2365
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_NAME "$PACKAGE_NAME"
2368 _ACEOF
2369
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2372 _ACEOF
2373
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2376 _ACEOF
2377
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_STRING "$PACKAGE_STRING"
2380 _ACEOF
2381
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2384 _ACEOF
2385
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_URL "$PACKAGE_URL"
2388 _ACEOF
2389
2390
2391 # Let the site file select an alternate cache file if it wants to.
2392 # Prefer an explicitly selected file to automatically selected ones.
2393 ac_site_file1=NONE
2394 ac_site_file2=NONE
2395 if test -n "$CONFIG_SITE"; then
2396   # We do not want a PATH search for config.site.
2397   case $CONFIG_SITE in #((
2398     -*)  ac_site_file1=./$CONFIG_SITE;;
2399     */*) ac_site_file1=$CONFIG_SITE;;
2400     *)   ac_site_file1=./$CONFIG_SITE;;
2401   esac
2402 elif test "x$prefix" != xNONE; then
2403   ac_site_file1=$prefix/share/config.site
2404   ac_site_file2=$prefix/etc/config.site
2405 else
2406   ac_site_file1=$ac_default_prefix/share/config.site
2407   ac_site_file2=$ac_default_prefix/etc/config.site
2408 fi
2409 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2410 do
2411   test "x$ac_site_file" = xNONE && continue
2412   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2413     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2414 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2415     sed 's/^/| /' "$ac_site_file" >&5
2416     . "$ac_site_file" \
2417       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2419 as_fn_error $? "failed to load site script $ac_site_file
2420 See \`config.log' for more details" "$LINENO" 5 ; }
2421   fi
2422 done
2423
2424 if test -r "$cache_file"; then
2425   # Some versions of bash will fail to source /dev/null (special files
2426   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2427   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2428     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2429 $as_echo "$as_me: loading cache $cache_file" >&6;}
2430     case $cache_file in
2431       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2432       *)                      . "./$cache_file";;
2433     esac
2434   fi
2435 else
2436   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2437 $as_echo "$as_me: creating cache $cache_file" >&6;}
2438   >$cache_file
2439 fi
2440
2441 # Check that the precious variables saved in the cache have kept the same
2442 # value.
2443 ac_cache_corrupted=false
2444 for ac_var in $ac_precious_vars; do
2445   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2446   eval ac_new_set=\$ac_env_${ac_var}_set
2447   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2448   eval ac_new_val=\$ac_env_${ac_var}_value
2449   case $ac_old_set,$ac_new_set in
2450     set,)
2451       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2452 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2453       ac_cache_corrupted=: ;;
2454     ,set)
2455       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2456 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2457       ac_cache_corrupted=: ;;
2458     ,);;
2459     *)
2460       if test "x$ac_old_val" != "x$ac_new_val"; then
2461         # differences in whitespace do not lead to failure.
2462         ac_old_val_w=`echo x $ac_old_val`
2463         ac_new_val_w=`echo x $ac_new_val`
2464         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2465           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2466 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2467           ac_cache_corrupted=:
2468         else
2469           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2470 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2471           eval $ac_var=\$ac_old_val
2472         fi
2473         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2474 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2475         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2476 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2477       fi;;
2478   esac
2479   # Pass precious variables to config.status.
2480   if test "$ac_new_set" = set; then
2481     case $ac_new_val in
2482     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2483     *) ac_arg=$ac_var=$ac_new_val ;;
2484     esac
2485     case " $ac_configure_args " in
2486       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2487       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2488     esac
2489   fi
2490 done
2491 if $ac_cache_corrupted; then
2492   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2494   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2495 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2496   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2497 fi
2498 ## -------------------- ##
2499 ## Main body of script. ##
2500 ## -------------------- ##
2501
2502 ac_ext=c
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2507
2508
2509
2510 ac_aux_dir=
2511 for ac_dir in build-aux "$srcdir"/build-aux; do
2512   if test -f "$ac_dir/install-sh"; then
2513     ac_aux_dir=$ac_dir
2514     ac_install_sh="$ac_aux_dir/install-sh -c"
2515     break
2516   elif test -f "$ac_dir/install.sh"; then
2517     ac_aux_dir=$ac_dir
2518     ac_install_sh="$ac_aux_dir/install.sh -c"
2519     break
2520   elif test -f "$ac_dir/shtool"; then
2521     ac_aux_dir=$ac_dir
2522     ac_install_sh="$ac_aux_dir/shtool install -c"
2523     break
2524   fi
2525 done
2526 if test -z "$ac_aux_dir"; then
2527   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2528 fi
2529
2530 # These three variables are undocumented and unsupported,
2531 # and are intended to be withdrawn in a future Autoconf release.
2532 # They can cause serious problems if a builder's source tree is in a directory
2533 # whose full name contains unusual characters.
2534 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2535 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2536 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2537
2538
2539
2540 ac_ext=c
2541 ac_cpp='$CPP $CPPFLAGS'
2542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545 if test -n "$ac_tool_prefix"; then
2546   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2547 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if test "${ac_cv_prog_CC+set}" = set; then :
2551   $as_echo_n "(cached) " >&6
2552 else
2553   if test -n "$CC"; then
2554   ac_cv_prog_CC="$CC" # Let the user override the test.
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559   IFS=$as_save_IFS
2560   test -z "$as_dir" && as_dir=.
2561     for ac_exec_ext in '' $ac_executable_extensions; do
2562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565     break 2
2566   fi
2567 done
2568   done
2569 IFS=$as_save_IFS
2570
2571 fi
2572 fi
2573 CC=$ac_cv_prog_CC
2574 if test -n "$CC"; then
2575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2576 $as_echo "$CC" >&6; }
2577 else
2578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579 $as_echo "no" >&6; }
2580 fi
2581
2582
2583 fi
2584 if test -z "$ac_cv_prog_CC"; then
2585   ac_ct_CC=$CC
2586   # Extract the first word of "gcc", so it can be a program name with args.
2587 set dummy gcc; ac_word=$2
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2591   $as_echo_n "(cached) " >&6
2592 else
2593   if test -n "$ac_ct_CC"; then
2594   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599   IFS=$as_save_IFS
2600   test -z "$as_dir" && as_dir=.
2601     for ac_exec_ext in '' $ac_executable_extensions; do
2602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603     ac_cv_prog_ac_ct_CC="gcc"
2604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605     break 2
2606   fi
2607 done
2608   done
2609 IFS=$as_save_IFS
2610
2611 fi
2612 fi
2613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2614 if test -n "$ac_ct_CC"; then
2615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2616 $as_echo "$ac_ct_CC" >&6; }
2617 else
2618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619 $as_echo "no" >&6; }
2620 fi
2621
2622   if test "x$ac_ct_CC" = x; then
2623     CC=""
2624   else
2625     case $cross_compiling:$ac_tool_warned in
2626 yes:)
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2629 ac_tool_warned=yes ;;
2630 esac
2631     CC=$ac_ct_CC
2632   fi
2633 else
2634   CC="$ac_cv_prog_CC"
2635 fi
2636
2637 if test -z "$CC"; then
2638           if test -n "$ac_tool_prefix"; then
2639     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2640 set dummy ${ac_tool_prefix}cc; ac_word=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if test "${ac_cv_prog_CC+set}" = set; then :
2644   $as_echo_n "(cached) " >&6
2645 else
2646   if test -n "$CC"; then
2647   ac_cv_prog_CC="$CC" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654     for ac_exec_ext in '' $ac_executable_extensions; do
2655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656     ac_cv_prog_CC="${ac_tool_prefix}cc"
2657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658     break 2
2659   fi
2660 done
2661   done
2662 IFS=$as_save_IFS
2663
2664 fi
2665 fi
2666 CC=$ac_cv_prog_CC
2667 if test -n "$CC"; then
2668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2669 $as_echo "$CC" >&6; }
2670 else
2671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2673 fi
2674
2675
2676   fi
2677 fi
2678 if test -z "$CC"; then
2679   # Extract the first word of "cc", so it can be a program name with args.
2680 set dummy cc; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_prog_CC+set}" = set; then :
2684   $as_echo_n "(cached) " >&6
2685 else
2686   if test -n "$CC"; then
2687   ac_cv_prog_CC="$CC" # Let the user override the test.
2688 else
2689   ac_prog_rejected=no
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695     for ac_exec_ext in '' $ac_executable_extensions; do
2696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2698        ac_prog_rejected=yes
2699        continue
2700      fi
2701     ac_cv_prog_CC="cc"
2702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703     break 2
2704   fi
2705 done
2706   done
2707 IFS=$as_save_IFS
2708
2709 if test $ac_prog_rejected = yes; then
2710   # We found a bogon in the path, so make sure we never use it.
2711   set dummy $ac_cv_prog_CC
2712   shift
2713   if test $# != 0; then
2714     # We chose a different compiler from the bogus one.
2715     # However, it has the same basename, so the bogon will be chosen
2716     # first if we set CC to just the basename; use the full file name.
2717     shift
2718     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2719   fi
2720 fi
2721 fi
2722 fi
2723 CC=$ac_cv_prog_CC
2724 if test -n "$CC"; then
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2726 $as_echo "$CC" >&6; }
2727 else
2728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732
2733 fi
2734 if test -z "$CC"; then
2735   if test -n "$ac_tool_prefix"; then
2736   for ac_prog in cl.exe
2737   do
2738     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if test "${ac_cv_prog_CC+set}" = set; then :
2743   $as_echo_n "(cached) " >&6
2744 else
2745   if test -n "$CC"; then
2746   ac_cv_prog_CC="$CC" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751   IFS=$as_save_IFS
2752   test -z "$as_dir" && as_dir=.
2753     for ac_exec_ext in '' $ac_executable_extensions; do
2754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757     break 2
2758   fi
2759 done
2760   done
2761 IFS=$as_save_IFS
2762
2763 fi
2764 fi
2765 CC=$ac_cv_prog_CC
2766 if test -n "$CC"; then
2767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768 $as_echo "$CC" >&6; }
2769 else
2770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 fi
2773
2774
2775     test -n "$CC" && break
2776   done
2777 fi
2778 if test -z "$CC"; then
2779   ac_ct_CC=$CC
2780   for ac_prog in cl.exe
2781 do
2782   # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2787   $as_echo_n "(cached) " >&6
2788 else
2789   if test -n "$ac_ct_CC"; then
2790   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797     for ac_exec_ext in '' $ac_executable_extensions; do
2798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799     ac_cv_prog_ac_ct_CC="$ac_prog"
2800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804   done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810 if test -n "$ac_ct_CC"; then
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2812 $as_echo "$ac_ct_CC" >&6; }
2813 else
2814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818
2819   test -n "$ac_ct_CC" && break
2820 done
2821
2822   if test "x$ac_ct_CC" = x; then
2823     CC=""
2824   else
2825     case $cross_compiling:$ac_tool_warned in
2826 yes:)
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2829 ac_tool_warned=yes ;;
2830 esac
2831     CC=$ac_ct_CC
2832   fi
2833 fi
2834
2835 fi
2836
2837
2838 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2840 as_fn_error $? "no acceptable C compiler found in \$PATH
2841 See \`config.log' for more details" "$LINENO" 5 ; }
2842
2843 # Provide some information about the compiler.
2844 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2845 set X $ac_compile
2846 ac_compiler=$2
2847 for ac_option in --version -v -V -qversion; do
2848   { { ac_try="$ac_compiler $ac_option >&5"
2849 case "(($ac_try" in
2850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851   *) ac_try_echo=$ac_try;;
2852 esac
2853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854 $as_echo "$ac_try_echo"; } >&5
2855   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2856   ac_status=$?
2857   if test -s conftest.err; then
2858     sed '10a\
2859 ... rest of stderr output deleted ...
2860          10q' conftest.err >conftest.er1
2861     cat conftest.er1 >&5
2862   fi
2863   rm -f conftest.er1 conftest.err
2864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2865   test $ac_status = 0; }
2866 done
2867
2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869 /* end confdefs.h.  */
2870
2871 int
2872 main ()
2873 {
2874
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 ac_clean_files_save=$ac_clean_files
2880 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2881 # Try to create an executable without -o first, disregard a.out.
2882 # It will help us diagnose broken compilers, and finding out an intuition
2883 # of exeext.
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2885 $as_echo_n "checking whether the C compiler works... " >&6; }
2886 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2887
2888 # The possible output files:
2889 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2890
2891 ac_rmfiles=
2892 for ac_file in $ac_files
2893 do
2894   case $ac_file in
2895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2896     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2897   esac
2898 done
2899 rm -f $ac_rmfiles
2900
2901 if { { ac_try="$ac_link_default"
2902 case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2907 $as_echo "$ac_try_echo"; } >&5
2908   (eval "$ac_link_default") 2>&5
2909   ac_status=$?
2910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2911   test $ac_status = 0; }; then :
2912   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2913 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2914 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2915 # so that the user can short-circuit this test for compilers unknown to
2916 # Autoconf.
2917 for ac_file in $ac_files ''
2918 do
2919   test -f "$ac_file" || continue
2920   case $ac_file in
2921     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2922         ;;
2923     [ab].out )
2924         # We found the default executable, but exeext='' is most
2925         # certainly right.
2926         break;;
2927     *.* )
2928         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2929         then :; else
2930            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931         fi
2932         # We set ac_cv_exeext here because the later test for it is not
2933         # safe: cross compilers may not add the suffix if given an `-o'
2934         # argument, so we may need to know it at that point already.
2935         # Even if this section looks crufty: it has the advantage of
2936         # actually working.
2937         break;;
2938     * )
2939         break;;
2940   esac
2941 done
2942 test "$ac_cv_exeext" = no && ac_cv_exeext=
2943
2944 else
2945   ac_file=''
2946 fi
2947 if test -z "$ac_file"; then :
2948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2950 $as_echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2955 as_fn_error 77 "C compiler cannot create executables
2956 See \`config.log' for more details" "$LINENO" 5 ; }
2957 else
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2959 $as_echo "yes" >&6; }
2960 fi
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2962 $as_echo_n "checking for C compiler default output file name... " >&6; }
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2964 $as_echo "$ac_file" >&6; }
2965 ac_exeext=$ac_cv_exeext
2966
2967 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2968 ac_clean_files=$ac_clean_files_save
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2970 $as_echo_n "checking for suffix of executables... " >&6; }
2971 if { { ac_try="$ac_link"
2972 case "(($ac_try" in
2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974   *) ac_try_echo=$ac_try;;
2975 esac
2976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978   (eval "$ac_link") 2>&5
2979   ac_status=$?
2980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981   test $ac_status = 0; }; then :
2982   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2983 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2984 # work properly (i.e., refer to `conftest.exe'), while it won't with
2985 # `rm'.
2986 for ac_file in conftest.exe conftest conftest.*; do
2987   test -f "$ac_file" || continue
2988   case $ac_file in
2989     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2990     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2991           break;;
2992     * ) break;;
2993   esac
2994 done
2995 else
2996   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2998 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2999 See \`config.log' for more details" "$LINENO" 5 ; }
3000 fi
3001 rm -f conftest conftest$ac_cv_exeext
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3003 $as_echo "$ac_cv_exeext" >&6; }
3004
3005 rm -f conftest.$ac_ext
3006 EXEEXT=$ac_cv_exeext
3007 ac_exeext=$EXEEXT
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009 /* end confdefs.h.  */
3010 #include <stdio.h>
3011 int
3012 main ()
3013 {
3014 FILE *f = fopen ("conftest.out", "w");
3015  return ferror (f) || fclose (f) != 0;
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 ac_clean_files="$ac_clean_files conftest.out"
3022 # Check that the compiler produces executables we can run.  If not, either
3023 # the compiler is broken, or we cross compile.
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3025 $as_echo_n "checking whether we are cross compiling... " >&6; }
3026 if test "$cross_compiling" != yes; then
3027   { { ac_try="$ac_link"
3028 case "(($ac_try" in
3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030   *) ac_try_echo=$ac_try;;
3031 esac
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034   (eval "$ac_link") 2>&5
3035   ac_status=$?
3036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037   test $ac_status = 0; }
3038   if { ac_try='./conftest$ac_cv_exeext'
3039   { { case "(($ac_try" in
3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041   *) ac_try_echo=$ac_try;;
3042 esac
3043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044 $as_echo "$ac_try_echo"; } >&5
3045   (eval "$ac_try") 2>&5
3046   ac_status=$?
3047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048   test $ac_status = 0; }; }; then
3049     cross_compiling=no
3050   else
3051     if test "$cross_compiling" = maybe; then
3052         cross_compiling=yes
3053     else
3054         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056 as_fn_error $? "cannot run C compiled programs.
3057 If you meant to cross compile, use \`--host'.
3058 See \`config.log' for more details" "$LINENO" 5 ; }
3059     fi
3060   fi
3061 fi
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3063 $as_echo "$cross_compiling" >&6; }
3064
3065 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3066 ac_clean_files=$ac_clean_files_save
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3068 $as_echo_n "checking for suffix of object files... " >&6; }
3069 if test "${ac_cv_objext+set}" = set; then :
3070   $as_echo_n "(cached) " >&6
3071 else
3072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h.  */
3074
3075 int
3076 main ()
3077 {
3078
3079   ;
3080   return 0;
3081 }
3082 _ACEOF
3083 rm -f conftest.o conftest.obj
3084 if { { ac_try="$ac_compile"
3085 case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091   (eval "$ac_compile") 2>&5
3092   ac_status=$?
3093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094   test $ac_status = 0; }; then :
3095   for ac_file in conftest.o conftest.obj conftest.*; do
3096   test -f "$ac_file" || continue;
3097   case $ac_file in
3098     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3099     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3100        break;;
3101   esac
3102 done
3103 else
3104   $as_echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error $? "cannot compute suffix of object files: cannot compile
3110 See \`config.log' for more details" "$LINENO" 5 ; }
3111 fi
3112 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3113 fi
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3115 $as_echo "$ac_cv_objext" >&6; }
3116 OBJEXT=$ac_cv_objext
3117 ac_objext=$OBJEXT
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3119 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3120 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3121   $as_echo_n "(cached) " >&6
3122 else
3123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124 /* end confdefs.h.  */
3125
3126 int
3127 main ()
3128 {
3129 #ifndef __GNUC__
3130        choke me
3131 #endif
3132
3133   ;
3134   return 0;
3135 }
3136 _ACEOF
3137 if ac_fn_c_try_compile "$LINENO"; then :
3138   ac_compiler_gnu=yes
3139 else
3140   ac_compiler_gnu=no
3141 fi
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3144
3145 fi
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3147 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3148 if test $ac_compiler_gnu = yes; then
3149   GCC=yes
3150 else
3151   GCC=
3152 fi
3153 ac_test_CFLAGS=${CFLAGS+set}
3154 ac_save_CFLAGS=$CFLAGS
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3156 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3157 if test "${ac_cv_prog_cc_g+set}" = set; then :
3158   $as_echo_n "(cached) " >&6
3159 else
3160   ac_save_c_werror_flag=$ac_c_werror_flag
3161    ac_c_werror_flag=yes
3162    ac_cv_prog_cc_g=no
3163    CFLAGS="-g"
3164    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h.  */
3166
3167 int
3168 main ()
3169 {
3170
3171   ;
3172   return 0;
3173 }
3174 _ACEOF
3175 if ac_fn_c_try_compile "$LINENO"; then :
3176   ac_cv_prog_cc_g=yes
3177 else
3178   CFLAGS=""
3179       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h.  */
3181
3182 int
3183 main ()
3184 {
3185
3186   ;
3187   return 0;
3188 }
3189 _ACEOF
3190 if ac_fn_c_try_compile "$LINENO"; then :
3191
3192 else
3193   ac_c_werror_flag=$ac_save_c_werror_flag
3194          CFLAGS="-g"
3195          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h.  */
3197
3198 int
3199 main ()
3200 {
3201
3202   ;
3203   return 0;
3204 }
3205 _ACEOF
3206 if ac_fn_c_try_compile "$LINENO"; then :
3207   ac_cv_prog_cc_g=yes
3208 fi
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 fi
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 fi
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214    ac_c_werror_flag=$ac_save_c_werror_flag
3215 fi
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3217 $as_echo "$ac_cv_prog_cc_g" >&6; }
3218 if test "$ac_test_CFLAGS" = set; then
3219   CFLAGS=$ac_save_CFLAGS
3220 elif test $ac_cv_prog_cc_g = yes; then
3221   if test "$GCC" = yes; then
3222     CFLAGS="-g -O2"
3223   else
3224     CFLAGS="-g"
3225   fi
3226 else
3227   if test "$GCC" = yes; then
3228     CFLAGS="-O2"
3229   else
3230     CFLAGS=
3231   fi
3232 fi
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3234 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3235 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3236   $as_echo_n "(cached) " >&6
3237 else
3238   ac_cv_prog_cc_c89=no
3239 ac_save_CC=$CC
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h.  */
3242 #include <stdarg.h>
3243 #include <stdio.h>
3244 #include <sys/types.h>
3245 #include <sys/stat.h>
3246 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3247 struct buf { int x; };
3248 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3249 static char *e (p, i)
3250      char **p;
3251      int i;
3252 {
3253   return p[i];
3254 }
3255 static char *f (char * (*g) (char **, int), char **p, ...)
3256 {
3257   char *s;
3258   va_list v;
3259   va_start (v,p);
3260   s = g (p, va_arg (v,int));
3261   va_end (v);
3262   return s;
3263 }
3264
3265 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3266    function prototypes and stuff, but not '\xHH' hex character constants.
3267    These don't provoke an error unfortunately, instead are silently treated
3268    as 'x'.  The following induces an error, until -std is added to get
3269    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3270    array size at least.  It's necessary to write '\x00'==0 to get something
3271    that's true only with -std.  */
3272 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3273
3274 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3275    inside strings and character constants.  */
3276 #define FOO(x) 'x'
3277 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3278
3279 int test (int i, double x);
3280 struct s1 {int (*f) (int a);};
3281 struct s2 {int (*f) (double a);};
3282 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3283 int argc;
3284 char **argv;
3285 int
3286 main ()
3287 {
3288 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3289   ;
3290   return 0;
3291 }
3292 _ACEOF
3293 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3294         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3295 do
3296   CC="$ac_save_CC $ac_arg"
3297   if ac_fn_c_try_compile "$LINENO"; then :
3298   ac_cv_prog_cc_c89=$ac_arg
3299 fi
3300 rm -f core conftest.err conftest.$ac_objext
3301   test "x$ac_cv_prog_cc_c89" != "xno" && break
3302 done
3303 rm -f conftest.$ac_ext
3304 CC=$ac_save_CC
3305
3306 fi
3307 # AC_CACHE_VAL
3308 case "x$ac_cv_prog_cc_c89" in
3309   x)
3310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3311 $as_echo "none needed" >&6; } ;;
3312   xno)
3313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3314 $as_echo "unsupported" >&6; } ;;
3315   *)
3316     CC="$CC $ac_cv_prog_cc_c89"
3317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3318 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3319 esac
3320 if test "x$ac_cv_prog_cc_c89" != xno; then :
3321
3322 fi
3323
3324 ac_ext=c
3325 ac_cpp='$CPP $CPPFLAGS'
3326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329
3330
3331 ac_ext=c
3332 ac_cpp='$CPP $CPPFLAGS'
3333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3337 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3338 # On Suns, sometimes $CPP names a directory.
3339 if test -n "$CPP" && test -d "$CPP"; then
3340   CPP=
3341 fi
3342 if test -z "$CPP"; then
3343   if test "${ac_cv_prog_CPP+set}" = set; then :
3344   $as_echo_n "(cached) " >&6
3345 else
3346       # Double quotes because CPP needs to be expanded
3347     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3348     do
3349       ac_preproc_ok=false
3350 for ac_c_preproc_warn_flag in '' yes
3351 do
3352   # Use a header file that comes with gcc, so configuring glibc
3353   # with a fresh cross-compiler works.
3354   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355   # <limits.h> exists even on freestanding compilers.
3356   # On the NeXT, cc -E runs the code through the compiler's parser,
3357   # not just through cpp. "Syntax error" is here to catch this case.
3358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h.  */
3360 #ifdef __STDC__
3361 # include <limits.h>
3362 #else
3363 # include <assert.h>
3364 #endif
3365                      Syntax error
3366 _ACEOF
3367 if ac_fn_c_try_cpp "$LINENO"; then :
3368
3369 else
3370   # Broken: fails on valid input.
3371 continue
3372 fi
3373 rm -f conftest.err conftest.i conftest.$ac_ext
3374
3375   # OK, works on sane cases.  Now check whether nonexistent headers
3376   # can be detected and how.
3377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h.  */
3379 #include <ac_nonexistent.h>
3380 _ACEOF
3381 if ac_fn_c_try_cpp "$LINENO"; then :
3382   # Broken: success on invalid input.
3383 continue
3384 else
3385   # Passes both tests.
3386 ac_preproc_ok=:
3387 break
3388 fi
3389 rm -f conftest.err conftest.i conftest.$ac_ext
3390
3391 done
3392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3393 rm -f conftest.i conftest.err conftest.$ac_ext
3394 if $ac_preproc_ok; then :
3395   break
3396 fi
3397
3398     done
3399     ac_cv_prog_CPP=$CPP
3400
3401 fi
3402   CPP=$ac_cv_prog_CPP
3403 else
3404   ac_cv_prog_CPP=$CPP
3405 fi
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3407 $as_echo "$CPP" >&6; }
3408 ac_preproc_ok=false
3409 for ac_c_preproc_warn_flag in '' yes
3410 do
3411   # Use a header file that comes with gcc, so configuring glibc
3412   # with a fresh cross-compiler works.
3413   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3414   # <limits.h> exists even on freestanding compilers.
3415   # On the NeXT, cc -E runs the code through the compiler's parser,
3416   # not just through cpp. "Syntax error" is here to catch this case.
3417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h.  */
3419 #ifdef __STDC__
3420 # include <limits.h>
3421 #else
3422 # include <assert.h>
3423 #endif
3424                      Syntax error
3425 _ACEOF
3426 if ac_fn_c_try_cpp "$LINENO"; then :
3427
3428 else
3429   # Broken: fails on valid input.
3430 continue
3431 fi
3432 rm -f conftest.err conftest.i conftest.$ac_ext
3433
3434   # OK, works on sane cases.  Now check whether nonexistent headers
3435   # can be detected and how.
3436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h.  */
3438 #include <ac_nonexistent.h>
3439 _ACEOF
3440 if ac_fn_c_try_cpp "$LINENO"; then :
3441   # Broken: success on invalid input.
3442 continue
3443 else
3444   # Passes both tests.
3445 ac_preproc_ok=:
3446 break
3447 fi
3448 rm -f conftest.err conftest.i conftest.$ac_ext
3449
3450 done
3451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3452 rm -f conftest.i conftest.err conftest.$ac_ext
3453 if $ac_preproc_ok; then :
3454
3455 else
3456   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3459 See \`config.log' for more details" "$LINENO" 5 ; }
3460 fi
3461
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467
3468
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3470 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3471 if test "${ac_cv_path_GREP+set}" = set; then :
3472   $as_echo_n "(cached) " >&6
3473 else
3474   if test -z "$GREP"; then
3475   ac_path_GREP_found=false
3476   # Loop through the user's path and test for each of PROGNAME-LIST
3477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3479 do
3480   IFS=$as_save_IFS
3481   test -z "$as_dir" && as_dir=.
3482     for ac_prog in grep ggrep; do
3483     for ac_exec_ext in '' $ac_executable_extensions; do
3484       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3485       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3486 # Check for GNU ac_path_GREP and select it if it is found.
3487   # Check for GNU $ac_path_GREP
3488 case `"$ac_path_GREP" --version 2>&1` in
3489 *GNU*)
3490   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3491 *)
3492   ac_count=0
3493   $as_echo_n 0123456789 >"conftest.in"
3494   while :
3495   do
3496     cat "conftest.in" "conftest.in" >"conftest.tmp"
3497     mv "conftest.tmp" "conftest.in"
3498     cp "conftest.in" "conftest.nl"
3499     $as_echo 'GREP' >> "conftest.nl"
3500     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3501     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3502     as_fn_arith $ac_count + 1 && ac_count=$as_val
3503     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3504       # Best one so far, save it but keep looking for a better one
3505       ac_cv_path_GREP="$ac_path_GREP"
3506       ac_path_GREP_max=$ac_count
3507     fi
3508     # 10*(2^10) chars as input seems more than enough
3509     test $ac_count -gt 10 && break
3510   done
3511   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3512 esac
3513
3514       $ac_path_GREP_found && break 3
3515     done
3516   done
3517   done
3518 IFS=$as_save_IFS
3519   if test -z "$ac_cv_path_GREP"; then
3520     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3521   fi
3522 else
3523   ac_cv_path_GREP=$GREP
3524 fi
3525
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3528 $as_echo "$ac_cv_path_GREP" >&6; }
3529  GREP="$ac_cv_path_GREP"
3530
3531
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3533 $as_echo_n "checking for egrep... " >&6; }
3534 if test "${ac_cv_path_EGREP+set}" = set; then :
3535   $as_echo_n "(cached) " >&6
3536 else
3537   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3538    then ac_cv_path_EGREP="$GREP -E"
3539    else
3540      if test -z "$EGREP"; then
3541   ac_path_EGREP_found=false
3542   # Loop through the user's path and test for each of PROGNAME-LIST
3543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3545 do
3546   IFS=$as_save_IFS
3547   test -z "$as_dir" && as_dir=.
3548     for ac_prog in egrep; do
3549     for ac_exec_ext in '' $ac_executable_extensions; do
3550       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3551       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3552 # Check for GNU ac_path_EGREP and select it if it is found.
3553   # Check for GNU $ac_path_EGREP
3554 case `"$ac_path_EGREP" --version 2>&1` in
3555 *GNU*)
3556   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3557 *)
3558   ac_count=0
3559   $as_echo_n 0123456789 >"conftest.in"
3560   while :
3561   do
3562     cat "conftest.in" "conftest.in" >"conftest.tmp"
3563     mv "conftest.tmp" "conftest.in"
3564     cp "conftest.in" "conftest.nl"
3565     $as_echo 'EGREP' >> "conftest.nl"
3566     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3567     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3568     as_fn_arith $ac_count + 1 && ac_count=$as_val
3569     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3570       # Best one so far, save it but keep looking for a better one
3571       ac_cv_path_EGREP="$ac_path_EGREP"
3572       ac_path_EGREP_max=$ac_count
3573     fi
3574     # 10*(2^10) chars as input seems more than enough
3575     test $ac_count -gt 10 && break
3576   done
3577   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3578 esac
3579
3580       $ac_path_EGREP_found && break 3
3581     done
3582   done
3583   done
3584 IFS=$as_save_IFS
3585   if test -z "$ac_cv_path_EGREP"; then
3586     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3587   fi
3588 else
3589   ac_cv_path_EGREP=$EGREP
3590 fi
3591
3592    fi
3593 fi
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3595 $as_echo "$ac_cv_path_EGREP" >&6; }
3596  EGREP="$ac_cv_path_EGREP"
3597
3598
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3600 $as_echo_n "checking for ANSI C header files... " >&6; }
3601 if test "${ac_cv_header_stdc+set}" = set; then :
3602   $as_echo_n "(cached) " >&6
3603 else
3604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h.  */
3606 #include <stdlib.h>
3607 #include <stdarg.h>
3608 #include <string.h>
3609 #include <float.h>
3610
3611 int
3612 main ()
3613 {
3614
3615   ;
3616   return 0;
3617 }
3618 _ACEOF
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620   ac_cv_header_stdc=yes
3621 else
3622   ac_cv_header_stdc=no
3623 fi
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625
3626 if test $ac_cv_header_stdc = yes; then
3627   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h.  */
3630 #include <string.h>
3631
3632 _ACEOF
3633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3634   $EGREP "memchr" >/dev/null 2>&1; then :
3635
3636 else
3637   ac_cv_header_stdc=no
3638 fi
3639 rm -f conftest*
3640
3641 fi
3642
3643 if test $ac_cv_header_stdc = yes; then
3644   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h.  */
3647 #include <stdlib.h>
3648
3649 _ACEOF
3650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3651   $EGREP "free" >/dev/null 2>&1; then :
3652
3653 else
3654   ac_cv_header_stdc=no
3655 fi
3656 rm -f conftest*
3657
3658 fi
3659
3660 if test $ac_cv_header_stdc = yes; then
3661   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3662   if test "$cross_compiling" = yes; then :
3663   :
3664 else
3665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h.  */
3667 #include <ctype.h>
3668 #include <stdlib.h>
3669 #if ((' ' & 0x0FF) == 0x020)
3670 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3671 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3672 #else
3673 # define ISLOWER(c) \
3674                    (('a' <= (c) && (c) <= 'i') \
3675                      || ('j' <= (c) && (c) <= 'r') \
3676                      || ('s' <= (c) && (c) <= 'z'))
3677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3678 #endif
3679
3680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3681 int
3682 main ()
3683 {
3684   int i;
3685   for (i = 0; i < 256; i++)
3686     if (XOR (islower (i), ISLOWER (i))
3687         || toupper (i) != TOUPPER (i))
3688       return 2;
3689   return 0;
3690 }
3691 _ACEOF
3692 if ac_fn_c_try_run "$LINENO"; then :
3693
3694 else
3695   ac_cv_header_stdc=no
3696 fi
3697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3698   conftest.$ac_objext conftest.beam conftest.$ac_ext
3699 fi
3700
3701 fi
3702 fi
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3704 $as_echo "$ac_cv_header_stdc" >&6; }
3705 if test $ac_cv_header_stdc = yes; then
3706
3707 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3708
3709 fi
3710
3711 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3712 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3713                   inttypes.h stdint.h unistd.h
3714 do :
3715   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3716 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3717 "
3718 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3719   cat >>confdefs.h <<_ACEOF
3720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3721 _ACEOF
3722
3723 fi
3724
3725 done
3726
3727
3728
3729   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3730 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3731   MINIX=yes
3732 else
3733   MINIX=
3734 fi
3735
3736
3737   if test "$MINIX" = yes; then
3738
3739 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3740
3741
3742 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3743
3744
3745 $as_echo "#define _MINIX 1" >>confdefs.h
3746
3747   fi
3748
3749
3750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3751 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3752 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3753   $as_echo_n "(cached) " >&6
3754 else
3755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h.  */
3757
3758 #         define __EXTENSIONS__ 1
3759           $ac_includes_default
3760 int
3761 main ()
3762 {
3763
3764   ;
3765   return 0;
3766 }
3767 _ACEOF
3768 if ac_fn_c_try_compile "$LINENO"; then :
3769   ac_cv_safe_to_define___extensions__=yes
3770 else
3771   ac_cv_safe_to_define___extensions__=no
3772 fi
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 fi
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3776 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3777   test $ac_cv_safe_to_define___extensions__ = yes &&
3778     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3779
3780   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3781
3782   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3783
3784   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3785
3786   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3787
3788
3789 am__api_version='1.11'
3790
3791 # Find a good install program.  We prefer a C program (faster),
3792 # so one script is as good as another.  But avoid the broken or
3793 # incompatible versions:
3794 # SysV /etc/install, /usr/sbin/install
3795 # SunOS /usr/etc/install
3796 # IRIX /sbin/install
3797 # AIX /bin/install
3798 # AmigaOS /C/install, which installs bootblocks on floppy discs
3799 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3800 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3801 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3802 # OS/2's system install, which has a completely different semantic
3803 # ./install, which can be erroneously created by make from ./install.sh.
3804 # Reject install programs that cannot install multiple files.
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3806 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3807 if test -z "$INSTALL"; then
3808 if test "${ac_cv_path_install+set}" = set; then :
3809   $as_echo_n "(cached) " >&6
3810 else
3811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3813 do
3814   IFS=$as_save_IFS
3815   test -z "$as_dir" && as_dir=.
3816     # Account for people who put trailing slashes in PATH elements.
3817 case $as_dir/ in #((
3818   ./ | .// | /[cC]/* | \
3819   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3820   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3821   /usr/ucb/* ) ;;
3822   *)
3823     # OSF1 and SCO ODT 3.0 have their own names for install.
3824     # Don't use installbsd from OSF since it installs stuff as root
3825     # by default.
3826     for ac_prog in ginstall scoinst install; do
3827       for ac_exec_ext in '' $ac_executable_extensions; do
3828         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3829           if test $ac_prog = install &&
3830             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3831             # AIX install.  It has an incompatible calling convention.
3832             :
3833           elif test $ac_prog = install &&
3834             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3835             # program-specific install script used by HP pwplus--don't use.
3836             :
3837           else
3838             rm -rf conftest.one conftest.two conftest.dir
3839             echo one > conftest.one
3840             echo two > conftest.two
3841             mkdir conftest.dir
3842             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3843               test -s conftest.one && test -s conftest.two &&
3844               test -s conftest.dir/conftest.one &&
3845               test -s conftest.dir/conftest.two
3846             then
3847               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3848               break 3
3849             fi
3850           fi
3851         fi
3852       done
3853     done
3854     ;;
3855 esac
3856
3857   done
3858 IFS=$as_save_IFS
3859
3860 rm -rf conftest.one conftest.two conftest.dir
3861
3862 fi
3863   if test "${ac_cv_path_install+set}" = set; then
3864     INSTALL=$ac_cv_path_install
3865   else
3866     # As a last resort, use the slow shell script.  Don't cache a
3867     # value for INSTALL within a source directory, because that will
3868     # break other packages using the cache if that directory is
3869     # removed, or if the value is a relative name.
3870     INSTALL=$ac_install_sh
3871   fi
3872 fi
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3874 $as_echo "$INSTALL" >&6; }
3875
3876 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3877 # It thinks the first close brace ends the variable substitution.
3878 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3879
3880 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3881
3882 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3883
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3885 $as_echo_n "checking whether build environment is sane... " >&6; }
3886 # Just in case
3887 sleep 1
3888 echo timestamp > conftest.file
3889 # Reject unsafe characters in $srcdir or the absolute working directory
3890 # name.  Accept space and tab only in the latter.
3891 am_lf='
3892 '
3893 case `pwd` in
3894   *[\\\"\#\$\&\'\`$am_lf]*)
3895     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3896 esac
3897 case $srcdir in
3898   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3899     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3900 esac
3901
3902 # Do `set' in a subshell so we don't clobber the current shell's
3903 # arguments.  Must try -L first in case configure is actually a
3904 # symlink; some systems play weird games with the mod time of symlinks
3905 # (eg FreeBSD returns the mod time of the symlink's containing
3906 # directory).
3907 if (
3908    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3909    if test "$*" = "X"; then
3910       # -L didn't work.
3911       set X `ls -t "$srcdir/configure" conftest.file`
3912    fi
3913    rm -f conftest.file
3914    if test "$*" != "X $srcdir/configure conftest.file" \
3915       && test "$*" != "X conftest.file $srcdir/configure"; then
3916
3917       # If neither matched, then we have a broken ls.  This can happen
3918       # if, for instance, CONFIG_SHELL is bash and it inherits a
3919       # broken ls alias from the environment.  This has actually
3920       # happened.  Such a system could not be considered "sane".
3921       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3922 alias in your environment" "$LINENO" 5
3923    fi
3924
3925    test "$2" = conftest.file
3926    )
3927 then
3928    # Ok.
3929    :
3930 else
3931    as_fn_error $? "newly created file is older than distributed files!
3932 Check your system clock" "$LINENO" 5
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3935 $as_echo "yes" >&6; }
3936 test "$program_prefix" != NONE &&
3937   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3938 # Use a double $ so make ignores it.
3939 test "$program_suffix" != NONE &&
3940   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3941 # Double any \ or $.
3942 # By default was `s,x,x', remove it if useless.
3943 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3944 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3945
3946 # expand $ac_aux_dir to an absolute path
3947 am_aux_dir=`cd $ac_aux_dir && pwd`
3948
3949 if test x"${MISSING+set}" != xset; then
3950   case $am_aux_dir in
3951   *\ * | *\     *)
3952     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3953   *)
3954     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3955   esac
3956 fi
3957 # Use eval to expand $SHELL
3958 if eval "$MISSING --run true"; then
3959   am_missing_run="$MISSING --run "
3960 else
3961   am_missing_run=
3962   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3963 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3964 fi
3965
3966 if test x"${install_sh}" != xset; then
3967   case $am_aux_dir in
3968   *\ * | *\     *)
3969     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3970   *)
3971     install_sh="\${SHELL} $am_aux_dir/install-sh"
3972   esac
3973 fi
3974
3975 # Installed binaries are usually stripped using `strip' when the user
3976 # run `make install-strip'.  However `strip' might not be the right
3977 # tool to use in cross-compilation environments, therefore Automake
3978 # will honor the `STRIP' environment variable to overrule this program.
3979 if test "$cross_compiling" != no; then
3980   if test -n "$ac_tool_prefix"; then
3981   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3982 set dummy ${ac_tool_prefix}strip; ac_word=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if test "${ac_cv_prog_STRIP+set}" = set; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   if test -n "$STRIP"; then
3989   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3990 else
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
3994   IFS=$as_save_IFS
3995   test -z "$as_dir" && as_dir=.
3996     for ac_exec_ext in '' $ac_executable_extensions; do
3997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000     break 2
4001   fi
4002 done
4003   done
4004 IFS=$as_save_IFS
4005
4006 fi
4007 fi
4008 STRIP=$ac_cv_prog_STRIP
4009 if test -n "$STRIP"; then
4010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4011 $as_echo "$STRIP" >&6; }
4012 else
4013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4015 fi
4016
4017
4018 fi
4019 if test -z "$ac_cv_prog_STRIP"; then
4020   ac_ct_STRIP=$STRIP
4021   # Extract the first word of "strip", so it can be a program name with args.
4022 set dummy strip; ac_word=$2
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024 $as_echo_n "checking for $ac_word... " >&6; }
4025 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4026   $as_echo_n "(cached) " >&6
4027 else
4028   if test -n "$ac_ct_STRIP"; then
4029   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034   IFS=$as_save_IFS
4035   test -z "$as_dir" && as_dir=.
4036     for ac_exec_ext in '' $ac_executable_extensions; do
4037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038     ac_cv_prog_ac_ct_STRIP="strip"
4039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040     break 2
4041   fi
4042 done
4043   done
4044 IFS=$as_save_IFS
4045
4046 fi
4047 fi
4048 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4049 if test -n "$ac_ct_STRIP"; then
4050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4051 $as_echo "$ac_ct_STRIP" >&6; }
4052 else
4053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 $as_echo "no" >&6; }
4055 fi
4056
4057   if test "x$ac_ct_STRIP" = x; then
4058     STRIP=":"
4059   else
4060     case $cross_compiling:$ac_tool_warned in
4061 yes:)
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4064 ac_tool_warned=yes ;;
4065 esac
4066     STRIP=$ac_ct_STRIP
4067   fi
4068 else
4069   STRIP="$ac_cv_prog_STRIP"
4070 fi
4071
4072 fi
4073 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4074
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4076 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4077 if test -z "$MKDIR_P"; then
4078   if test "${ac_cv_path_mkdir+set}" = set; then :
4079   $as_echo_n "(cached) " >&6
4080 else
4081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4083 do
4084   IFS=$as_save_IFS
4085   test -z "$as_dir" && as_dir=.
4086     for ac_prog in mkdir gmkdir; do
4087          for ac_exec_ext in '' $ac_executable_extensions; do
4088            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4089            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4090              'mkdir (GNU coreutils) '* | \
4091              'mkdir (coreutils) '* | \
4092              'mkdir (fileutils) '4.1*)
4093                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4094                break 3;;
4095            esac
4096          done
4097        done
4098   done
4099 IFS=$as_save_IFS
4100
4101 fi
4102
4103   test -d ./--version && rmdir ./--version
4104   if test "${ac_cv_path_mkdir+set}" = set; then
4105     MKDIR_P="$ac_cv_path_mkdir -p"
4106   else
4107     # As a last resort, use the slow shell script.  Don't cache a
4108     # value for MKDIR_P within a source directory, because that will
4109     # break other packages using the cache if that directory is
4110     # removed, or if the value is a relative name.
4111     MKDIR_P="$ac_install_sh -d"
4112   fi
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4115 $as_echo "$MKDIR_P" >&6; }
4116
4117 mkdir_p="$MKDIR_P"
4118 case $mkdir_p in
4119   [\\/$]* | ?:[\\/]*) ;;
4120   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4121 esac
4122
4123 for ac_prog in gawk mawk nawk awk
4124 do
4125   # Extract the first word of "$ac_prog", so it can be a program name with args.
4126 set dummy $ac_prog; ac_word=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if test "${ac_cv_prog_AWK+set}" = set; then :
4130   $as_echo_n "(cached) " >&6
4131 else
4132   if test -n "$AWK"; then
4133   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138   IFS=$as_save_IFS
4139   test -z "$as_dir" && as_dir=.
4140     for ac_exec_ext in '' $ac_executable_extensions; do
4141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142     ac_cv_prog_AWK="$ac_prog"
4143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144     break 2
4145   fi
4146 done
4147   done
4148 IFS=$as_save_IFS
4149
4150 fi
4151 fi
4152 AWK=$ac_cv_prog_AWK
4153 if test -n "$AWK"; then
4154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4155 $as_echo "$AWK" >&6; }
4156 else
4157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4159 fi
4160
4161
4162   test -n "$AWK" && break
4163 done
4164
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4166 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4167 set x ${MAKE-make}
4168 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4169 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4170   $as_echo_n "(cached) " >&6
4171 else
4172   cat >conftest.make <<\_ACEOF
4173 SHELL = /bin/sh
4174 all:
4175         @echo '@@@%%%=$(MAKE)=@@@%%%'
4176 _ACEOF
4177 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4178 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4179   *@@@%%%=?*=@@@%%%*)
4180     eval ac_cv_prog_make_${ac_make}_set=yes;;
4181   *)
4182     eval ac_cv_prog_make_${ac_make}_set=no;;
4183 esac
4184 rm -f conftest.make
4185 fi
4186 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4188 $as_echo "yes" >&6; }
4189   SET_MAKE=
4190 else
4191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192 $as_echo "no" >&6; }
4193   SET_MAKE="MAKE=${MAKE-make}"
4194 fi
4195
4196 rm -rf .tst 2>/dev/null
4197 mkdir .tst 2>/dev/null
4198 if test -d .tst; then
4199   am__leading_dot=.
4200 else
4201   am__leading_dot=_
4202 fi
4203 rmdir .tst 2>/dev/null
4204
4205 DEPDIR="${am__leading_dot}deps"
4206
4207 ac_config_commands="$ac_config_commands depfiles"
4208
4209
4210 am_make=${MAKE-make}
4211 cat > confinc << 'END'
4212 am__doit:
4213         @echo this is the am__doit target
4214 .PHONY: am__doit
4215 END
4216 # If we don't find an include directive, just comment out the code.
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4218 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4219 am__include="#"
4220 am__quote=
4221 _am_result=none
4222 # First try GNU make style include.
4223 echo "include confinc" > confmf
4224 # Ignore all kinds of additional output from `make'.
4225 case `$am_make -s -f confmf 2> /dev/null` in #(
4226 *the\ am__doit\ target*)
4227   am__include=include
4228   am__quote=
4229   _am_result=GNU
4230   ;;
4231 esac
4232 # Now try BSD make style include.
4233 if test "$am__include" = "#"; then
4234    echo '.include "confinc"' > confmf
4235    case `$am_make -s -f confmf 2> /dev/null` in #(
4236    *the\ am__doit\ target*)
4237      am__include=.include
4238      am__quote="\""
4239      _am_result=BSD
4240      ;;
4241    esac
4242 fi
4243
4244
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4246 $as_echo "$_am_result" >&6; }
4247 rm -f confinc confmf
4248
4249 # Check whether --enable-dependency-tracking was given.
4250 if test "${enable_dependency_tracking+set}" = set; then :
4251   enableval=$enable_dependency_tracking;
4252 fi
4253
4254 if test "x$enable_dependency_tracking" != xno; then
4255   am_depcomp="$ac_aux_dir/depcomp"
4256   AMDEPBACKSLASH='\'
4257 fi
4258  if test "x$enable_dependency_tracking" != xno; then
4259   AMDEP_TRUE=
4260   AMDEP_FALSE='#'
4261 else
4262   AMDEP_TRUE='#'
4263   AMDEP_FALSE=
4264 fi
4265
4266
4267 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4268   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4269   # is not polluted with repeated "-I."
4270   am__isrc=' -I$(srcdir)'
4271   # test to see if srcdir already configured
4272   if test -f $srcdir/config.status; then
4273     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4274   fi
4275 fi
4276
4277 # test whether we have cygpath
4278 if test -z "$CYGPATH_W"; then
4279   if (cygpath --version) >/dev/null 2>/dev/null; then
4280     CYGPATH_W='cygpath -w'
4281   else
4282     CYGPATH_W=echo
4283   fi
4284 fi
4285
4286
4287 # Define the identity of the package.
4288  PACKAGE='mech_eap'
4289  VERSION='0.9'
4290
4291
4292 cat >>confdefs.h <<_ACEOF
4293 #define PACKAGE "$PACKAGE"
4294 _ACEOF
4295
4296
4297 cat >>confdefs.h <<_ACEOF
4298 #define VERSION "$VERSION"
4299 _ACEOF
4300
4301 # Some tools Automake needs.
4302
4303 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4304
4305
4306 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4307
4308
4309 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4310
4311
4312 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4313
4314
4315 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4316
4317 # We need awk for the "check" target.  The system "awk" is bad on
4318 # some platforms.
4319 # Always define AMTAR for backward compatibility.
4320
4321 AMTAR=${AMTAR-"${am_missing_run}tar"}
4322
4323 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4324
4325
4326
4327
4328 depcc="$CC"   am_compiler_list=
4329
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4331 $as_echo_n "checking dependency style of $depcc... " >&6; }
4332 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4333   $as_echo_n "(cached) " >&6
4334 else
4335   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4336   # We make a subdir and do the tests there.  Otherwise we can end up
4337   # making bogus files that we don't know about and never remove.  For
4338   # instance it was reported that on HP-UX the gcc test will end up
4339   # making a dummy file named `D' -- because `-MD' means `put the output
4340   # in D'.
4341   mkdir conftest.dir
4342   # Copy depcomp to subdir because otherwise we won't find it if we're
4343   # using a relative directory.
4344   cp "$am_depcomp" conftest.dir
4345   cd conftest.dir
4346   # We will build objects and dependencies in a subdirectory because
4347   # it helps to detect inapplicable dependency modes.  For instance
4348   # both Tru64's cc and ICC support -MD to output dependencies as a
4349   # side effect of compilation, but ICC will put the dependencies in
4350   # the current directory while Tru64 will put them in the object
4351   # directory.
4352   mkdir sub
4353
4354   am_cv_CC_dependencies_compiler_type=none
4355   if test "$am_compiler_list" = ""; then
4356      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4357   fi
4358   am__universal=false
4359   case " $depcc " in #(
4360      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4361      esac
4362
4363   for depmode in $am_compiler_list; do
4364     # Setup a source with many dependencies, because some compilers
4365     # like to wrap large dependency lists on column 80 (with \), and
4366     # we should not choose a depcomp mode which is confused by this.
4367     #
4368     # We need to recreate these files for each test, as the compiler may
4369     # overwrite some of them when testing with obscure command lines.
4370     # This happens at least with the AIX C compiler.
4371     : > sub/conftest.c
4372     for i in 1 2 3 4 5 6; do
4373       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4374       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4375       # Solaris 8's {/usr,}/bin/sh.
4376       touch sub/conftst$i.h
4377     done
4378     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4379
4380     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4381     # mode.  It turns out that the SunPro C++ compiler does not properly
4382     # handle `-M -o', and we need to detect this.  Also, some Intel
4383     # versions had trouble with output in subdirs
4384     am__obj=sub/conftest.${OBJEXT-o}
4385     am__minus_obj="-o $am__obj"
4386     case $depmode in
4387     gcc)
4388       # This depmode causes a compiler race in universal mode.
4389       test "$am__universal" = false || continue
4390       ;;
4391     nosideeffect)
4392       # after this tag, mechanisms are not by side-effect, so they'll
4393       # only be used when explicitly requested
4394       if test "x$enable_dependency_tracking" = xyes; then
4395         continue
4396       else
4397         break
4398       fi
4399       ;;
4400     msvisualcpp | msvcmsys)
4401       # This compiler won't grok `-c -o', but also, the minuso test has
4402       # not run yet.  These depmodes are late enough in the game, and
4403       # so weak that their functioning should not be impacted.
4404       am__obj=conftest.${OBJEXT-o}
4405       am__minus_obj=
4406       ;;
4407     none) break ;;
4408     esac
4409     if depmode=$depmode \
4410        source=sub/conftest.c object=$am__obj \
4411        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4412        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4413          >/dev/null 2>conftest.err &&
4414        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4415        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4416        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4417        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4418       # icc doesn't choke on unknown options, it will just issue warnings
4419       # or remarks (even with -Werror).  So we grep stderr for any message
4420       # that says an option was ignored or not supported.
4421       # When given -MP, icc 7.0 and 7.1 complain thusly:
4422       #   icc: Command line warning: ignoring option '-M'; no argument required
4423       # The diagnosis changed in icc 8.0:
4424       #   icc: Command line remark: option '-MP' not supported
4425       if (grep 'ignoring option' conftest.err ||
4426           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4427         am_cv_CC_dependencies_compiler_type=$depmode
4428         break
4429       fi
4430     fi
4431   done
4432
4433   cd ..
4434   rm -rf conftest.dir
4435 else
4436   am_cv_CC_dependencies_compiler_type=none
4437 fi
4438
4439 fi
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4441 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4442 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4443
4444  if
4445   test "x$enable_dependency_tracking" != xno \
4446   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4447   am__fastdepCC_TRUE=
4448   am__fastdepCC_FALSE='#'
4449 else
4450   am__fastdepCC_TRUE='#'
4451   am__fastdepCC_FALSE=
4452 fi
4453
4454
4455
4456 if test "x$CC" != xcc; then
4457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4458 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4459 else
4460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4461 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4462 fi
4463 set dummy $CC; ac_cc=`$as_echo "$2" |
4464                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4465 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
4466   $as_echo_n "(cached) " >&6
4467 else
4468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h.  */
4470
4471 int
4472 main ()
4473 {
4474
4475   ;
4476   return 0;
4477 }
4478 _ACEOF
4479 # Make sure it works both with $CC and with simple cc.
4480 # We do the test twice because some compilers refuse to overwrite an
4481 # existing .o file with -o, though they will create one.
4482 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4483 rm -f conftest2.*
4484 if { { case "(($ac_try" in
4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486   *) ac_try_echo=$ac_try;;
4487 esac
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490   (eval "$ac_try") 2>&5
4491   ac_status=$?
4492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493   test $ac_status = 0; } &&
4494    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496   *) ac_try_echo=$ac_try;;
4497 esac
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 $as_echo "$ac_try_echo"; } >&5
4500   (eval "$ac_try") 2>&5
4501   ac_status=$?
4502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503   test $ac_status = 0; };
4504 then
4505   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4506   if test "x$CC" != xcc; then
4507     # Test first that cc exists at all.
4508     if { ac_try='cc -c conftest.$ac_ext >&5'
4509   { { case "(($ac_try" in
4510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511   *) ac_try_echo=$ac_try;;
4512 esac
4513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4514 $as_echo "$ac_try_echo"; } >&5
4515   (eval "$ac_try") 2>&5
4516   ac_status=$?
4517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4518   test $ac_status = 0; }; }; then
4519       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4520       rm -f conftest2.*
4521       if { { case "(($ac_try" in
4522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523   *) ac_try_echo=$ac_try;;
4524 esac
4525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4526 $as_echo "$ac_try_echo"; } >&5
4527   (eval "$ac_try") 2>&5
4528   ac_status=$?
4529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4530   test $ac_status = 0; } &&
4531          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533   *) ac_try_echo=$ac_try;;
4534 esac
4535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4536 $as_echo "$ac_try_echo"; } >&5
4537   (eval "$ac_try") 2>&5
4538   ac_status=$?
4539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4540   test $ac_status = 0; };
4541       then
4542         # cc works too.
4543         :
4544       else
4545         # cc exists but doesn't like -o.
4546         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4547       fi
4548     fi
4549   fi
4550 else
4551   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4552 fi
4553 rm -f core conftest*
4554
4555 fi
4556 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4558 $as_echo "yes" >&6; }
4559 else
4560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561 $as_echo "no" >&6; }
4562
4563 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4564
4565 fi
4566
4567 # FIXME: we rely on the cache variable name because
4568 # there is no other way.
4569 set dummy $CC
4570 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4571 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4572 if test "$am_t" != yes; then
4573    # Losing compiler, so override with the script.
4574    # FIXME: It is wrong to rewrite CC.
4575    # But if we don't then we get into trouble of one sort or another.
4576    # A longer-term fix would be to have automake use am__CC in this case,
4577    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4578    CC="$am_aux_dir/compile $CC"
4579 fi
4580
4581
4582
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4584 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4585     # Check whether --enable-maintainer-mode was given.
4586 if test "${enable_maintainer_mode+set}" = set; then :
4587   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4588 else
4589   USE_MAINTAINER_MODE=no
4590 fi
4591
4592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4593 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4594    if test $USE_MAINTAINER_MODE = yes; then
4595   MAINTAINER_MODE_TRUE=
4596   MAINTAINER_MODE_FALSE='#'
4597 else
4598   MAINTAINER_MODE_TRUE='#'
4599   MAINTAINER_MODE_FALSE=
4600 fi
4601
4602   MAINT=$MAINTAINER_MODE_TRUE
4603
4604
4605
4606 case `pwd` in
4607   *\ * | *\     *)
4608     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4609 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4610 esac
4611
4612
4613
4614 macro_version='2.2.6b'
4615 macro_revision='1.3017'
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629 ltmain="$ac_aux_dir/ltmain.sh"
4630
4631 # Make sure we can run config.sub.
4632 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4633   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4636 $as_echo_n "checking build system type... " >&6; }
4637 if test "${ac_cv_build+set}" = set; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640   ac_build_alias=$build_alias
4641 test "x$ac_build_alias" = x &&
4642   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4643 test "x$ac_build_alias" = x &&
4644   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4645 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4646   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4647
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4650 $as_echo "$ac_cv_build" >&6; }
4651 case $ac_cv_build in
4652 *-*-*) ;;
4653 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4654 esac
4655 build=$ac_cv_build
4656 ac_save_IFS=$IFS; IFS='-'
4657 set x $ac_cv_build
4658 shift
4659 build_cpu=$1
4660 build_vendor=$2
4661 shift; shift
4662 # Remember, the first character of IFS is used to create $*,
4663 # except with old shells:
4664 build_os=$*
4665 IFS=$ac_save_IFS
4666 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4667
4668
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4670 $as_echo_n "checking host system type... " >&6; }
4671 if test "${ac_cv_host+set}" = set; then :
4672   $as_echo_n "(cached) " >&6
4673 else
4674   if test "x$host_alias" = x; then
4675   ac_cv_host=$ac_cv_build
4676 else
4677   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4678     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4679 fi
4680
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4683 $as_echo "$ac_cv_host" >&6; }
4684 case $ac_cv_host in
4685 *-*-*) ;;
4686 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4687 esac
4688 host=$ac_cv_host
4689 ac_save_IFS=$IFS; IFS='-'
4690 set x $ac_cv_host
4691 shift
4692 host_cpu=$1
4693 host_vendor=$2
4694 shift; shift
4695 # Remember, the first character of IFS is used to create $*,
4696 # except with old shells:
4697 host_os=$*
4698 IFS=$ac_save_IFS
4699 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4700
4701
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4703 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4704 if test "${ac_cv_path_SED+set}" = set; then :
4705   $as_echo_n "(cached) " >&6
4706 else
4707             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4708      for ac_i in 1 2 3 4 5 6 7; do
4709        ac_script="$ac_script$as_nl$ac_script"
4710      done
4711      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4712      { ac_script=; unset ac_script;}
4713      if test -z "$SED"; then
4714   ac_path_SED_found=false
4715   # Loop through the user's path and test for each of PROGNAME-LIST
4716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719   IFS=$as_save_IFS
4720   test -z "$as_dir" && as_dir=.
4721     for ac_prog in sed gsed; do
4722     for ac_exec_ext in '' $ac_executable_extensions; do
4723       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4724       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4725 # Check for GNU ac_path_SED and select it if it is found.
4726   # Check for GNU $ac_path_SED
4727 case `"$ac_path_SED" --version 2>&1` in
4728 *GNU*)
4729   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4730 *)
4731   ac_count=0
4732   $as_echo_n 0123456789 >"conftest.in"
4733   while :
4734   do
4735     cat "conftest.in" "conftest.in" >"conftest.tmp"
4736     mv "conftest.tmp" "conftest.in"
4737     cp "conftest.in" "conftest.nl"
4738     $as_echo '' >> "conftest.nl"
4739     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4740     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4741     as_fn_arith $ac_count + 1 && ac_count=$as_val
4742     if test $ac_count -gt ${ac_path_SED_max-0}; then
4743       # Best one so far, save it but keep looking for a better one
4744       ac_cv_path_SED="$ac_path_SED"
4745       ac_path_SED_max=$ac_count
4746     fi
4747     # 10*(2^10) chars as input seems more than enough
4748     test $ac_count -gt 10 && break
4749   done
4750   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4751 esac
4752
4753       $ac_path_SED_found && break 3
4754     done
4755   done
4756   done
4757 IFS=$as_save_IFS
4758   if test -z "$ac_cv_path_SED"; then
4759     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4760   fi
4761 else
4762   ac_cv_path_SED=$SED
4763 fi
4764
4765 fi
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4767 $as_echo "$ac_cv_path_SED" >&6; }
4768  SED="$ac_cv_path_SED"
4769   rm -f conftest.sed
4770
4771 test -z "$SED" && SED=sed
4772 Xsed="$SED -e 1s/^X//"
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4785 $as_echo_n "checking for fgrep... " >&6; }
4786 if test "${ac_cv_path_FGREP+set}" = set; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4790    then ac_cv_path_FGREP="$GREP -F"
4791    else
4792      if test -z "$FGREP"; then
4793   ac_path_FGREP_found=false
4794   # Loop through the user's path and test for each of PROGNAME-LIST
4795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800     for ac_prog in fgrep; do
4801     for ac_exec_ext in '' $ac_executable_extensions; do
4802       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4803       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4804 # Check for GNU ac_path_FGREP and select it if it is found.
4805   # Check for GNU $ac_path_FGREP
4806 case `"$ac_path_FGREP" --version 2>&1` in
4807 *GNU*)
4808   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4809 *)
4810   ac_count=0
4811   $as_echo_n 0123456789 >"conftest.in"
4812   while :
4813   do
4814     cat "conftest.in" "conftest.in" >"conftest.tmp"
4815     mv "conftest.tmp" "conftest.in"
4816     cp "conftest.in" "conftest.nl"
4817     $as_echo 'FGREP' >> "conftest.nl"
4818     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4819     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4820     as_fn_arith $ac_count + 1 && ac_count=$as_val
4821     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4822       # Best one so far, save it but keep looking for a better one
4823       ac_cv_path_FGREP="$ac_path_FGREP"
4824       ac_path_FGREP_max=$ac_count
4825     fi
4826     # 10*(2^10) chars as input seems more than enough
4827     test $ac_count -gt 10 && break
4828   done
4829   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4830 esac
4831
4832       $ac_path_FGREP_found && break 3
4833     done
4834   done
4835   done
4836 IFS=$as_save_IFS
4837   if test -z "$ac_cv_path_FGREP"; then
4838     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4839   fi
4840 else
4841   ac_cv_path_FGREP=$FGREP
4842 fi
4843
4844    fi
4845 fi
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4847 $as_echo "$ac_cv_path_FGREP" >&6; }
4848  FGREP="$ac_cv_path_FGREP"
4849
4850
4851 test -z "$GREP" && GREP=grep
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871 # Check whether --with-gnu-ld was given.
4872 if test "${with_gnu_ld+set}" = set; then :
4873   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4874 else
4875   with_gnu_ld=no
4876 fi
4877
4878 ac_prog=ld
4879 if test "$GCC" = yes; then
4880   # Check if gcc -print-prog-name=ld gives a path.
4881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4882 $as_echo_n "checking for ld used by $CC... " >&6; }
4883   case $host in
4884   *-*-mingw*)
4885     # gcc leaves a trailing carriage return which upsets mingw
4886     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4887   *)
4888     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4889   esac
4890   case $ac_prog in
4891     # Accept absolute paths.
4892     [\\/]* | ?:[\\/]*)
4893       re_direlt='/[^/][^/]*/\.\./'
4894       # Canonicalize the pathname of ld
4895       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4896       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4897         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4898       done
4899       test -z "$LD" && LD="$ac_prog"
4900       ;;
4901   "")
4902     # If it fails, then pretend we aren't using GCC.
4903     ac_prog=ld
4904     ;;
4905   *)
4906     # If it is relative, then search for the first ld in PATH.
4907     with_gnu_ld=unknown
4908     ;;
4909   esac
4910 elif test "$with_gnu_ld" = yes; then
4911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4912 $as_echo_n "checking for GNU ld... " >&6; }
4913 else
4914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4915 $as_echo_n "checking for non-GNU ld... " >&6; }
4916 fi
4917 if test "${lt_cv_path_LD+set}" = set; then :
4918   $as_echo_n "(cached) " >&6
4919 else
4920   if test -z "$LD"; then
4921   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4922   for ac_dir in $PATH; do
4923     IFS="$lt_save_ifs"
4924     test -z "$ac_dir" && ac_dir=.
4925     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4926       lt_cv_path_LD="$ac_dir/$ac_prog"
4927       # Check to see if the program is GNU ld.  I'd rather use --version,
4928       # but apparently some variants of GNU ld only accept -v.
4929       # Break only if it was the GNU/non-GNU ld that we prefer.
4930       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4931       *GNU* | *'with BFD'*)
4932         test "$with_gnu_ld" != no && break
4933         ;;
4934       *)
4935         test "$with_gnu_ld" != yes && break
4936         ;;
4937       esac
4938     fi
4939   done
4940   IFS="$lt_save_ifs"
4941 else
4942   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4943 fi
4944 fi
4945
4946 LD="$lt_cv_path_LD"
4947 if test -n "$LD"; then
4948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4949 $as_echo "$LD" >&6; }
4950 else
4951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4953 fi
4954 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4956 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4957 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4958   $as_echo_n "(cached) " >&6
4959 else
4960   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4961 case `$LD -v 2>&1 </dev/null` in
4962 *GNU* | *'with BFD'*)
4963   lt_cv_prog_gnu_ld=yes
4964   ;;
4965 *)
4966   lt_cv_prog_gnu_ld=no
4967   ;;
4968 esac
4969 fi
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4971 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4972 with_gnu_ld=$lt_cv_prog_gnu_ld
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4983 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4984 if test "${lt_cv_path_NM+set}" = set; then :
4985   $as_echo_n "(cached) " >&6
4986 else
4987   if test -n "$NM"; then
4988   # Let the user override the test.
4989   lt_cv_path_NM="$NM"
4990 else
4991   lt_nm_to_check="${ac_tool_prefix}nm"
4992   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4993     lt_nm_to_check="$lt_nm_to_check nm"
4994   fi
4995   for lt_tmp_nm in $lt_nm_to_check; do
4996     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4997     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4998       IFS="$lt_save_ifs"
4999       test -z "$ac_dir" && ac_dir=.
5000       tmp_nm="$ac_dir/$lt_tmp_nm"
5001       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5002         # Check to see if the nm accepts a BSD-compat flag.
5003         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5004         #   nm: unknown option "B" ignored
5005         # Tru64's nm complains that /dev/null is an invalid object file
5006         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5007         */dev/null* | *'Invalid file or object type'*)
5008           lt_cv_path_NM="$tmp_nm -B"
5009           break
5010           ;;
5011         *)
5012           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5013           */dev/null*)
5014             lt_cv_path_NM="$tmp_nm -p"
5015             break
5016             ;;
5017           *)
5018             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5019             continue # so that we can try to find one that supports BSD flags
5020             ;;
5021           esac
5022           ;;
5023         esac
5024       fi
5025     done
5026     IFS="$lt_save_ifs"
5027   done
5028   : ${lt_cv_path_NM=no}
5029 fi
5030 fi
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5032 $as_echo "$lt_cv_path_NM" >&6; }
5033 if test "$lt_cv_path_NM" != "no"; then
5034   NM="$lt_cv_path_NM"
5035 else
5036   # Didn't find any BSD compatible name lister, look for dumpbin.
5037   if test -n "$ac_tool_prefix"; then
5038   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5039   do
5040     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5045   $as_echo_n "(cached) " >&6
5046 else
5047   if test -n "$DUMPBIN"; then
5048   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053   IFS=$as_save_IFS
5054   test -z "$as_dir" && as_dir=.
5055     for ac_exec_ext in '' $ac_executable_extensions; do
5056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059     break 2
5060   fi
5061 done
5062   done
5063 IFS=$as_save_IFS
5064
5065 fi
5066 fi
5067 DUMPBIN=$ac_cv_prog_DUMPBIN
5068 if test -n "$DUMPBIN"; then
5069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5070 $as_echo "$DUMPBIN" >&6; }
5071 else
5072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5074 fi
5075
5076
5077     test -n "$DUMPBIN" && break
5078   done
5079 fi
5080 if test -z "$DUMPBIN"; then
5081   ac_ct_DUMPBIN=$DUMPBIN
5082   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5083 do
5084   # Extract the first word of "$ac_prog", so it can be a program name with args.
5085 set dummy $ac_prog; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5089   $as_echo_n "(cached) " >&6
5090 else
5091   if test -n "$ac_ct_DUMPBIN"; then
5092   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5096 do
5097   IFS=$as_save_IFS
5098   test -z "$as_dir" && as_dir=.
5099     for ac_exec_ext in '' $ac_executable_extensions; do
5100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103     break 2
5104   fi
5105 done
5106   done
5107 IFS=$as_save_IFS
5108
5109 fi
5110 fi
5111 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5112 if test -n "$ac_ct_DUMPBIN"; then
5113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5114 $as_echo "$ac_ct_DUMPBIN" >&6; }
5115 else
5116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5118 fi
5119
5120
5121   test -n "$ac_ct_DUMPBIN" && break
5122 done
5123
5124   if test "x$ac_ct_DUMPBIN" = x; then
5125     DUMPBIN=":"
5126   else
5127     case $cross_compiling:$ac_tool_warned in
5128 yes:)
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5131 ac_tool_warned=yes ;;
5132 esac
5133     DUMPBIN=$ac_ct_DUMPBIN
5134   fi
5135 fi
5136
5137
5138   if test "$DUMPBIN" != ":"; then
5139     NM="$DUMPBIN"
5140   fi
5141 fi
5142 test -z "$NM" && NM=nm
5143
5144
5145
5146
5147
5148
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5150 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5151 if test "${lt_cv_nm_interface+set}" = set; then :
5152   $as_echo_n "(cached) " >&6
5153 else
5154   lt_cv_nm_interface="BSD nm"
5155   echo "int some_variable = 0;" > conftest.$ac_ext
5156   (eval echo "\"\$as_me:5156: $ac_compile\"" >&5)
5157   (eval "$ac_compile" 2>conftest.err)
5158   cat conftest.err >&5
5159   (eval echo "\"\$as_me:5159: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5160   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5161   cat conftest.err >&5
5162   (eval echo "\"\$as_me:5162: output\"" >&5)
5163   cat conftest.out >&5
5164   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5165     lt_cv_nm_interface="MS dumpbin"
5166   fi
5167   rm -f conftest*
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5170 $as_echo "$lt_cv_nm_interface" >&6; }
5171
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5173 $as_echo_n "checking whether ln -s works... " >&6; }
5174 LN_S=$as_ln_s
5175 if test "$LN_S" = "ln -s"; then
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5177 $as_echo "yes" >&6; }
5178 else
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5180 $as_echo "no, using $LN_S" >&6; }
5181 fi
5182
5183 # find the maximum length of command line arguments
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5185 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5186 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5187   $as_echo_n "(cached) " >&6
5188 else
5189     i=0
5190   teststring="ABCD"
5191
5192   case $build_os in
5193   msdosdjgpp*)
5194     # On DJGPP, this test can blow up pretty badly due to problems in libc
5195     # (any single argument exceeding 2000 bytes causes a buffer overrun
5196     # during glob expansion).  Even if it were fixed, the result of this
5197     # check would be larger than it should be.
5198     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5199     ;;
5200
5201   gnu*)
5202     # Under GNU Hurd, this test is not required because there is
5203     # no limit to the length of command line arguments.
5204     # Libtool will interpret -1 as no limit whatsoever
5205     lt_cv_sys_max_cmd_len=-1;
5206     ;;
5207
5208   cygwin* | mingw* | cegcc*)
5209     # On Win9x/ME, this test blows up -- it succeeds, but takes
5210     # about 5 minutes as the teststring grows exponentially.
5211     # Worse, since 9x/ME are not pre-emptively multitasking,
5212     # you end up with a "frozen" computer, even though with patience
5213     # the test eventually succeeds (with a max line length of 256k).
5214     # Instead, let's just punt: use the minimum linelength reported by
5215     # all of the supported platforms: 8192 (on NT/2K/XP).
5216     lt_cv_sys_max_cmd_len=8192;
5217     ;;
5218
5219   amigaos*)
5220     # On AmigaOS with pdksh, this test takes hours, literally.
5221     # So we just punt and use a minimum line length of 8192.
5222     lt_cv_sys_max_cmd_len=8192;
5223     ;;
5224
5225   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5226     # This has been around since 386BSD, at least.  Likely further.
5227     if test -x /sbin/sysctl; then
5228       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5229     elif test -x /usr/sbin/sysctl; then
5230       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5231     else
5232       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5233     fi
5234     # And add a safety zone
5235     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5236     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5237     ;;
5238
5239   interix*)
5240     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5241     lt_cv_sys_max_cmd_len=196608
5242     ;;
5243
5244   osf*)
5245     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5246     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5247     # nice to cause kernel panics so lets avoid the loop below.
5248     # First set a reasonable default.
5249     lt_cv_sys_max_cmd_len=16384
5250     #
5251     if test -x /sbin/sysconfig; then
5252       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5253         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5254       esac
5255     fi
5256     ;;
5257   sco3.2v5*)
5258     lt_cv_sys_max_cmd_len=102400
5259     ;;
5260   sysv5* | sco5v6* | sysv4.2uw2*)
5261     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5262     if test -n "$kargmax"; then
5263       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5264     else
5265       lt_cv_sys_max_cmd_len=32768
5266     fi
5267     ;;
5268   *)
5269     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5270     if test -n "$lt_cv_sys_max_cmd_len"; then
5271       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5272       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5273     else
5274       # Make teststring a little bigger before we do anything with it.
5275       # a 1K string should be a reasonable start.
5276       for i in 1 2 3 4 5 6 7 8 ; do
5277         teststring=$teststring$teststring
5278       done
5279       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5280       # If test is not a shell built-in, we'll probably end up computing a
5281       # maximum length that is only half of the actual maximum length, but
5282       # we can't tell.
5283       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5284                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5285               test $i != 17 # 1/2 MB should be enough
5286       do
5287         i=`expr $i + 1`
5288         teststring=$teststring$teststring
5289       done
5290       # Only check the string length outside the loop.
5291       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5292       teststring=
5293       # Add a significant safety factor because C++ compilers can tack on
5294       # massive amounts of additional arguments before passing them to the
5295       # linker.  It appears as though 1/2 is a usable value.
5296       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5297     fi
5298     ;;
5299   esac
5300
5301 fi
5302
5303 if test -n $lt_cv_sys_max_cmd_len ; then
5304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5305 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5306 else
5307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5308 $as_echo "none" >&6; }
5309 fi
5310 max_cmd_len=$lt_cv_sys_max_cmd_len
5311
5312
5313
5314
5315
5316
5317 : ${CP="cp -f"}
5318 : ${MV="mv -f"}
5319 : ${RM="rm -f"}
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5322 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5323 # Try some XSI features
5324 xsi_shell=no
5325 ( _lt_dummy="a/b/c"
5326   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5327       = c,a/b,, \
5328     && eval 'test $(( 1 + 1 )) -eq 2 \
5329     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5330   && xsi_shell=yes
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5332 $as_echo "$xsi_shell" >&6; }
5333
5334
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5336 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5337 lt_shell_append=no
5338 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5339     >/dev/null 2>&1 \
5340   && lt_shell_append=yes
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5342 $as_echo "$lt_shell_append" >&6; }
5343
5344
5345 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5346   lt_unset=unset
5347 else
5348   lt_unset=false
5349 fi
5350
5351
5352
5353
5354
5355 # test EBCDIC or ASCII
5356 case `echo X|tr X '\101'` in
5357  A) # ASCII based system
5358     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5359   lt_SP2NL='tr \040 \012'
5360   lt_NL2SP='tr \015\012 \040\040'
5361   ;;
5362  *) # EBCDIC based system
5363   lt_SP2NL='tr \100 \n'
5364   lt_NL2SP='tr \r\n \100\100'
5365   ;;
5366 esac
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5377 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5378 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5379   $as_echo_n "(cached) " >&6
5380 else
5381   lt_cv_ld_reload_flag='-r'
5382 fi
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5384 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5385 reload_flag=$lt_cv_ld_reload_flag
5386 case $reload_flag in
5387 "" | " "*) ;;
5388 *) reload_flag=" $reload_flag" ;;
5389 esac
5390 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5391 case $host_os in
5392   darwin*)
5393     if test "$GCC" = yes; then
5394       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5395     else
5396       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5397     fi
5398     ;;
5399 esac
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409 if test -n "$ac_tool_prefix"; then
5410   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5411 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413 $as_echo_n "checking for $ac_word... " >&6; }
5414 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5415   $as_echo_n "(cached) " >&6
5416 else
5417   if test -n "$OBJDUMP"; then
5418   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5419 else
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5422 do
5423   IFS=$as_save_IFS
5424   test -z "$as_dir" && as_dir=.
5425     for ac_exec_ext in '' $ac_executable_extensions; do
5426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429     break 2
5430   fi
5431 done
5432   done
5433 IFS=$as_save_IFS
5434
5435 fi
5436 fi
5437 OBJDUMP=$ac_cv_prog_OBJDUMP
5438 if test -n "$OBJDUMP"; then
5439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5440 $as_echo "$OBJDUMP" >&6; }
5441 else
5442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5444 fi
5445
5446
5447 fi
5448 if test -z "$ac_cv_prog_OBJDUMP"; then
5449   ac_ct_OBJDUMP=$OBJDUMP
5450   # Extract the first word of "objdump", so it can be a program name with args.
5451 set dummy objdump; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5455   $as_echo_n "(cached) " >&6
5456 else
5457   if test -n "$ac_ct_OBJDUMP"; then
5458   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463   IFS=$as_save_IFS
5464   test -z "$as_dir" && as_dir=.
5465     for ac_exec_ext in '' $ac_executable_extensions; do
5466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469     break 2
5470   fi
5471 done
5472   done
5473 IFS=$as_save_IFS
5474
5475 fi
5476 fi
5477 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5478 if test -n "$ac_ct_OBJDUMP"; then
5479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5480 $as_echo "$ac_ct_OBJDUMP" >&6; }
5481 else
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485
5486   if test "x$ac_ct_OBJDUMP" = x; then
5487     OBJDUMP="false"
5488   else
5489     case $cross_compiling:$ac_tool_warned in
5490 yes:)
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493 ac_tool_warned=yes ;;
5494 esac
5495     OBJDUMP=$ac_ct_OBJDUMP
5496   fi
5497 else
5498   OBJDUMP="$ac_cv_prog_OBJDUMP"
5499 fi
5500
5501 test -z "$OBJDUMP" && OBJDUMP=objdump
5502
5503
5504
5505
5506
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5509 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5510 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   lt_cv_file_magic_cmd='$MAGIC_CMD'
5514 lt_cv_file_magic_test_file=
5515 lt_cv_deplibs_check_method='unknown'
5516 # Need to set the preceding variable on all platforms that support
5517 # interlibrary dependencies.
5518 # 'none' -- dependencies not supported.
5519 # `unknown' -- same as none, but documents that we really don't know.
5520 # 'pass_all' -- all dependencies passed with no checks.
5521 # 'test_compile' -- check by making test program.
5522 # 'file_magic [[regex]]' -- check by looking for files in library path
5523 # which responds to the $file_magic_cmd with a given extended regex.
5524 # If you have `file' or equivalent on your system and you're not sure
5525 # whether `pass_all' will *always* work, you probably want this one.
5526
5527 case $host_os in
5528 aix[4-9]*)
5529   lt_cv_deplibs_check_method=pass_all
5530   ;;
5531
5532 beos*)
5533   lt_cv_deplibs_check_method=pass_all
5534   ;;
5535
5536 bsdi[45]*)
5537   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5538   lt_cv_file_magic_cmd='/usr/bin/file -L'
5539   lt_cv_file_magic_test_file=/shlib/libc.so
5540   ;;
5541
5542 cygwin*)
5543   # func_win32_libid is a shell function defined in ltmain.sh
5544   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5545   lt_cv_file_magic_cmd='func_win32_libid'
5546   ;;
5547
5548 mingw* | pw32*)
5549   # Base MSYS/MinGW do not provide the 'file' command needed by
5550   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5551   # unless we find 'file', for example because we are cross-compiling.
5552   if ( file / ) >/dev/null 2>&1; then
5553     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5554     lt_cv_file_magic_cmd='func_win32_libid'
5555   else
5556     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5557     lt_cv_file_magic_cmd='$OBJDUMP -f'
5558   fi
5559   ;;
5560
5561 cegcc)
5562   # use the weaker test based on 'objdump'. See mingw*.
5563   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5564   lt_cv_file_magic_cmd='$OBJDUMP -f'
5565   ;;
5566
5567 darwin* | rhapsody*)
5568   lt_cv_deplibs_check_method=pass_all
5569   ;;
5570
5571 freebsd* | dragonfly*)
5572   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5573     case $host_cpu in
5574     i*86 )
5575       # Not sure whether the presence of OpenBSD here was a mistake.
5576       # Let's accept both of them until this is cleared up.
5577       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5578       lt_cv_file_magic_cmd=/usr/bin/file
5579       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5580       ;;
5581     esac
5582   else
5583     lt_cv_deplibs_check_method=pass_all
5584   fi
5585   ;;
5586
5587 gnu*)
5588   lt_cv_deplibs_check_method=pass_all
5589   ;;
5590
5591 hpux10.20* | hpux11*)
5592   lt_cv_file_magic_cmd=/usr/bin/file
5593   case $host_cpu in
5594   ia64*)
5595     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5596     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5597     ;;
5598   hppa*64*)
5599     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]'
5600     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5601     ;;
5602   *)
5603     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5604     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5605     ;;
5606   esac
5607   ;;
5608
5609 interix[3-9]*)
5610   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5611   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5612   ;;
5613
5614 irix5* | irix6* | nonstopux*)
5615   case $LD in
5616   *-32|*"-32 ") libmagic=32-bit;;
5617   *-n32|*"-n32 ") libmagic=N32;;
5618   *-64|*"-64 ") libmagic=64-bit;;
5619   *) libmagic=never-match;;
5620   esac
5621   lt_cv_deplibs_check_method=pass_all
5622   ;;
5623
5624 # This must be Linux ELF.
5625 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5626   lt_cv_deplibs_check_method=pass_all
5627   ;;
5628
5629 netbsd* | netbsdelf*-gnu)
5630   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5631     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5632   else
5633     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5634   fi
5635   ;;
5636
5637 newos6*)
5638   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5639   lt_cv_file_magic_cmd=/usr/bin/file
5640   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5641   ;;
5642
5643 *nto* | *qnx*)
5644   lt_cv_deplibs_check_method=pass_all
5645   ;;
5646
5647 openbsd*)
5648   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5649     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5650   else
5651     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5652   fi
5653   ;;
5654
5655 osf3* | osf4* | osf5*)
5656   lt_cv_deplibs_check_method=pass_all
5657   ;;
5658
5659 rdos*)
5660   lt_cv_deplibs_check_method=pass_all
5661   ;;
5662
5663 solaris*)
5664   lt_cv_deplibs_check_method=pass_all
5665   ;;
5666
5667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5668   lt_cv_deplibs_check_method=pass_all
5669   ;;
5670
5671 sysv4 | sysv4.3*)
5672   case $host_vendor in
5673   motorola)
5674     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]'
5675     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5676     ;;
5677   ncr)
5678     lt_cv_deplibs_check_method=pass_all
5679     ;;
5680   sequent)
5681     lt_cv_file_magic_cmd='/bin/file'
5682     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5683     ;;
5684   sni)
5685     lt_cv_file_magic_cmd='/bin/file'
5686     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5687     lt_cv_file_magic_test_file=/lib/libc.so
5688     ;;
5689   siemens)
5690     lt_cv_deplibs_check_method=pass_all
5691     ;;
5692   pc)
5693     lt_cv_deplibs_check_method=pass_all
5694     ;;
5695   esac
5696   ;;
5697
5698 tpf*)
5699   lt_cv_deplibs_check_method=pass_all
5700   ;;
5701 esac
5702
5703 fi
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5705 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5706 file_magic_cmd=$lt_cv_file_magic_cmd
5707 deplibs_check_method=$lt_cv_deplibs_check_method
5708 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721 if test -n "$ac_tool_prefix"; then
5722   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5723 set dummy ${ac_tool_prefix}ar; ac_word=$2
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 $as_echo_n "checking for $ac_word... " >&6; }
5726 if test "${ac_cv_prog_AR+set}" = set; then :
5727   $as_echo_n "(cached) " >&6
5728 else
5729   if test -n "$AR"; then
5730   ac_cv_prog_AR="$AR" # Let the user override the test.
5731 else
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5734 do
5735   IFS=$as_save_IFS
5736   test -z "$as_dir" && as_dir=.
5737     for ac_exec_ext in '' $ac_executable_extensions; do
5738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5739     ac_cv_prog_AR="${ac_tool_prefix}ar"
5740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741     break 2
5742   fi
5743 done
5744   done
5745 IFS=$as_save_IFS
5746
5747 fi
5748 fi
5749 AR=$ac_cv_prog_AR
5750 if test -n "$AR"; then
5751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5752 $as_echo "$AR" >&6; }
5753 else
5754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5756 fi
5757
5758
5759 fi
5760 if test -z "$ac_cv_prog_AR"; then
5761   ac_ct_AR=$AR
5762   # Extract the first word of "ar", so it can be a program name with args.
5763 set dummy ar; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5767   $as_echo_n "(cached) " >&6
5768 else
5769   if test -n "$ac_ct_AR"; then
5770   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5771 else
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775   IFS=$as_save_IFS
5776   test -z "$as_dir" && as_dir=.
5777     for ac_exec_ext in '' $ac_executable_extensions; do
5778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5779     ac_cv_prog_ac_ct_AR="ar"
5780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781     break 2
5782   fi
5783 done
5784   done
5785 IFS=$as_save_IFS
5786
5787 fi
5788 fi
5789 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5790 if test -n "$ac_ct_AR"; then
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5792 $as_echo "$ac_ct_AR" >&6; }
5793 else
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5796 fi
5797
5798   if test "x$ac_ct_AR" = x; then
5799     AR="false"
5800   else
5801     case $cross_compiling:$ac_tool_warned in
5802 yes:)
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5805 ac_tool_warned=yes ;;
5806 esac
5807     AR=$ac_ct_AR
5808   fi
5809 else
5810   AR="$ac_cv_prog_AR"
5811 fi
5812
5813 test -z "$AR" && AR=ar
5814 test -z "$AR_FLAGS" && AR_FLAGS=cru
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826 if test -n "$ac_tool_prefix"; then
5827   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5828 set dummy ${ac_tool_prefix}strip; ac_word=$2
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 $as_echo_n "checking for $ac_word... " >&6; }
5831 if test "${ac_cv_prog_STRIP+set}" = set; then :
5832   $as_echo_n "(cached) " >&6
5833 else
5834   if test -n "$STRIP"; then
5835   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5836 else
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5839 do
5840   IFS=$as_save_IFS
5841   test -z "$as_dir" && as_dir=.
5842     for ac_exec_ext in '' $ac_executable_extensions; do
5843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846     break 2
5847   fi
5848 done
5849   done
5850 IFS=$as_save_IFS
5851
5852 fi
5853 fi
5854 STRIP=$ac_cv_prog_STRIP
5855 if test -n "$STRIP"; then
5856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5857 $as_echo "$STRIP" >&6; }
5858 else
5859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860 $as_echo "no" >&6; }
5861 fi
5862
5863
5864 fi
5865 if test -z "$ac_cv_prog_STRIP"; then
5866   ac_ct_STRIP=$STRIP
5867   # Extract the first word of "strip", so it can be a program name with args.
5868 set dummy strip; ac_word=$2
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5870 $as_echo_n "checking for $ac_word... " >&6; }
5871 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5872   $as_echo_n "(cached) " >&6
5873 else
5874   if test -n "$ac_ct_STRIP"; then
5875   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5876 else
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880   IFS=$as_save_IFS
5881   test -z "$as_dir" && as_dir=.
5882     for ac_exec_ext in '' $ac_executable_extensions; do
5883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884     ac_cv_prog_ac_ct_STRIP="strip"
5885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886     break 2
5887   fi
5888 done
5889   done
5890 IFS=$as_save_IFS
5891
5892 fi
5893 fi
5894 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5895 if test -n "$ac_ct_STRIP"; then
5896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5897 $as_echo "$ac_ct_STRIP" >&6; }
5898 else
5899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5901 fi
5902
5903   if test "x$ac_ct_STRIP" = x; then
5904     STRIP=":"
5905   else
5906     case $cross_compiling:$ac_tool_warned in
5907 yes:)
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5910 ac_tool_warned=yes ;;
5911 esac
5912     STRIP=$ac_ct_STRIP
5913   fi
5914 else
5915   STRIP="$ac_cv_prog_STRIP"
5916 fi
5917
5918 test -z "$STRIP" && STRIP=:
5919
5920
5921
5922
5923
5924
5925 if test -n "$ac_tool_prefix"; then
5926   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5927 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 $as_echo_n "checking for $ac_word... " >&6; }
5930 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5931   $as_echo_n "(cached) " >&6
5932 else
5933   if test -n "$RANLIB"; then
5934   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939   IFS=$as_save_IFS
5940   test -z "$as_dir" && as_dir=.
5941     for ac_exec_ext in '' $ac_executable_extensions; do
5942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5943     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945     break 2
5946   fi
5947 done
5948   done
5949 IFS=$as_save_IFS
5950
5951 fi
5952 fi
5953 RANLIB=$ac_cv_prog_RANLIB
5954 if test -n "$RANLIB"; then
5955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5956 $as_echo "$RANLIB" >&6; }
5957 else
5958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5960 fi
5961
5962
5963 fi
5964 if test -z "$ac_cv_prog_RANLIB"; then
5965   ac_ct_RANLIB=$RANLIB
5966   # Extract the first word of "ranlib", so it can be a program name with args.
5967 set dummy ranlib; ac_word=$2
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969 $as_echo_n "checking for $ac_word... " >&6; }
5970 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5971   $as_echo_n "(cached) " >&6
5972 else
5973   if test -n "$ac_ct_RANLIB"; then
5974   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5975 else
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979   IFS=$as_save_IFS
5980   test -z "$as_dir" && as_dir=.
5981     for ac_exec_ext in '' $ac_executable_extensions; do
5982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5983     ac_cv_prog_ac_ct_RANLIB="ranlib"
5984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985     break 2
5986   fi
5987 done
5988   done
5989 IFS=$as_save_IFS
5990
5991 fi
5992 fi
5993 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5994 if test -n "$ac_ct_RANLIB"; then
5995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5996 $as_echo "$ac_ct_RANLIB" >&6; }
5997 else
5998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6000 fi
6001
6002   if test "x$ac_ct_RANLIB" = x; then
6003     RANLIB=":"
6004   else
6005     case $cross_compiling:$ac_tool_warned in
6006 yes:)
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6009 ac_tool_warned=yes ;;
6010 esac
6011     RANLIB=$ac_ct_RANLIB
6012   fi
6013 else
6014   RANLIB="$ac_cv_prog_RANLIB"
6015 fi
6016
6017 test -z "$RANLIB" && RANLIB=:
6018
6019
6020
6021
6022
6023
6024 # Determine commands to create old-style static archives.
6025 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6026 old_postinstall_cmds='chmod 644 $oldlib'
6027 old_postuninstall_cmds=
6028
6029 if test -n "$RANLIB"; then
6030   case $host_os in
6031   openbsd*)
6032     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6033     ;;
6034   *)
6035     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6036     ;;
6037   esac
6038   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6039 fi
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
6070
6071
6072
6073
6074 # If no C compiler was specified, use CC.
6075 LTCC=${LTCC-"$CC"}
6076
6077 # If no C compiler flags were specified, use CFLAGS.
6078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6079
6080 # Allow CC to be a program name with arguments.
6081 compiler=$CC
6082
6083
6084 # Check for command to grab the raw symbol name followed by C symbol from nm.
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6086 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6087 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6088   $as_echo_n "(cached) " >&6
6089 else
6090
6091 # These are sane defaults that work on at least a few old systems.
6092 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6093
6094 # Character class describing NM global symbol codes.
6095 symcode='[BCDEGRST]'
6096
6097 # Regexp to match symbols that can be accessed directly from C.
6098 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6099
6100 # Define system-specific variables.
6101 case $host_os in
6102 aix*)
6103   symcode='[BCDT]'
6104   ;;
6105 cygwin* | mingw* | pw32* | cegcc*)
6106   symcode='[ABCDGISTW]'
6107   ;;
6108 hpux*)
6109   if test "$host_cpu" = ia64; then
6110     symcode='[ABCDEGRST]'
6111   fi
6112   ;;
6113 irix* | nonstopux*)
6114   symcode='[BCDEGRST]'
6115   ;;
6116 osf*)
6117   symcode='[BCDEGQRST]'
6118   ;;
6119 solaris*)
6120   symcode='[BDRT]'
6121   ;;
6122 sco3.2v5*)
6123   symcode='[DT]'
6124   ;;
6125 sysv4.2uw2*)
6126   symcode='[DT]'
6127   ;;
6128 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6129   symcode='[ABDT]'
6130   ;;
6131 sysv4)
6132   symcode='[DFNSTU]'
6133   ;;
6134 esac
6135
6136 # If we're using GNU nm, then use its standard symbol codes.
6137 case `$NM -V 2>&1` in
6138 *GNU* | *'with BFD'*)
6139   symcode='[ABCDGIRSTW]' ;;
6140 esac
6141
6142 # Transform an extracted symbol line into a proper C declaration.
6143 # Some systems (esp. on ia64) link data and code symbols differently,
6144 # so use this general approach.
6145 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6146
6147 # Transform an extracted symbol line into symbol name and symbol address
6148 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6149 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'"
6150
6151 # Handle CRLF in mingw tool chain
6152 opt_cr=
6153 case $build_os in
6154 mingw*)
6155   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6156   ;;
6157 esac
6158
6159 # Try without a prefix underscore, then with it.
6160 for ac_symprfx in "" "_"; do
6161
6162   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6163   symxfrm="\\1 $ac_symprfx\\2 \\2"
6164
6165   # Write the raw and C identifiers.
6166   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6167     # Fake it for dumpbin and say T for any non-static function
6168     # and D for any global variable.
6169     # Also find C++ and __fastcall symbols from MSVC++,
6170     # which start with @ or ?.
6171     lt_cv_sys_global_symbol_pipe="$AWK '"\
6172 "     {last_section=section; section=\$ 3};"\
6173 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6174 "     \$ 0!~/External *\|/{next};"\
6175 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6176 "     {if(hide[section]) next};"\
6177 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6178 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6179 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6180 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6181 "     ' prfx=^$ac_symprfx"
6182   else
6183     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6184   fi
6185
6186   # Check to see that the pipe works correctly.
6187   pipe_works=no
6188
6189   rm -f conftest*
6190   cat > conftest.$ac_ext <<_LT_EOF
6191 #ifdef __cplusplus
6192 extern "C" {
6193 #endif
6194 char nm_test_var;
6195 void nm_test_func(void);
6196 void nm_test_func(void){}
6197 #ifdef __cplusplus
6198 }
6199 #endif
6200 int main(){nm_test_var='a';nm_test_func();return(0);}
6201 _LT_EOF
6202
6203   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6204   (eval $ac_compile) 2>&5
6205   ac_status=$?
6206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6207   test $ac_status = 0; }; then
6208     # Now try to grab the symbols.
6209     nlist=conftest.nm
6210     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6211   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6212   ac_status=$?
6213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6214   test $ac_status = 0; } && test -s "$nlist"; then
6215       # Try sorting and uniquifying the output.
6216       if sort "$nlist" | uniq > "$nlist"T; then
6217         mv -f "$nlist"T "$nlist"
6218       else
6219         rm -f "$nlist"T
6220       fi
6221
6222       # Make sure that we snagged all the symbols we need.
6223       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6224         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6225           cat <<_LT_EOF > conftest.$ac_ext
6226 #ifdef __cplusplus
6227 extern "C" {
6228 #endif
6229
6230 _LT_EOF
6231           # Now generate the symbol file.
6232           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6233
6234           cat <<_LT_EOF >> conftest.$ac_ext
6235
6236 /* The mapping between symbol names and symbols.  */
6237 const struct {
6238   const char *name;
6239   void       *address;
6240 }
6241 lt__PROGRAM__LTX_preloaded_symbols[] =
6242 {
6243   { "@PROGRAM@", (void *) 0 },
6244 _LT_EOF
6245           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6246           cat <<\_LT_EOF >> conftest.$ac_ext
6247   {0, (void *) 0}
6248 };
6249
6250 /* This works around a problem in FreeBSD linker */
6251 #ifdef FREEBSD_WORKAROUND
6252 static const void *lt_preloaded_setup() {
6253   return lt__PROGRAM__LTX_preloaded_symbols;
6254 }
6255 #endif
6256
6257 #ifdef __cplusplus
6258 }
6259 #endif
6260 _LT_EOF
6261           # Now try linking the two files.
6262           mv conftest.$ac_objext conftstm.$ac_objext
6263           lt_save_LIBS="$LIBS"
6264           lt_save_CFLAGS="$CFLAGS"
6265           LIBS="conftstm.$ac_objext"
6266           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6267           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6268   (eval $ac_link) 2>&5
6269   ac_status=$?
6270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6272             pipe_works=yes
6273           fi
6274           LIBS="$lt_save_LIBS"
6275           CFLAGS="$lt_save_CFLAGS"
6276         else
6277           echo "cannot find nm_test_func in $nlist" >&5
6278         fi
6279       else
6280         echo "cannot find nm_test_var in $nlist" >&5
6281       fi
6282     else
6283       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6284     fi
6285   else
6286     echo "$progname: failed program was:" >&5
6287     cat conftest.$ac_ext >&5
6288   fi
6289   rm -rf conftest* conftst*
6290
6291   # Do not use the global_symbol_pipe unless it works.
6292   if test "$pipe_works" = yes; then
6293     break
6294   else
6295     lt_cv_sys_global_symbol_pipe=
6296   fi
6297 done
6298
6299 fi
6300
6301 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6302   lt_cv_sys_global_symbol_to_cdecl=
6303 fi
6304 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6306 $as_echo "failed" >&6; }
6307 else
6308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6309 $as_echo "ok" >&6; }
6310 fi
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333 # Check whether --enable-libtool-lock was given.
6334 if test "${enable_libtool_lock+set}" = set; then :
6335   enableval=$enable_libtool_lock;
6336 fi
6337
6338 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6339
6340 # Some flags need to be propagated to the compiler or linker for good
6341 # libtool support.
6342 case $host in
6343 ia64-*-hpux*)
6344   # Find out which ABI we are using.
6345   echo 'int i;' > conftest.$ac_ext
6346   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6347   (eval $ac_compile) 2>&5
6348   ac_status=$?
6349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350   test $ac_status = 0; }; then
6351     case `/usr/bin/file conftest.$ac_objext` in
6352       *ELF-32*)
6353         HPUX_IA64_MODE="32"
6354         ;;
6355       *ELF-64*)
6356         HPUX_IA64_MODE="64"
6357         ;;
6358     esac
6359   fi
6360   rm -rf conftest*
6361   ;;
6362 *-*-irix6*)
6363   # Find out which ABI we are using.
6364   echo '#line 6364 "configure"' > conftest.$ac_ext
6365   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6366   (eval $ac_compile) 2>&5
6367   ac_status=$?
6368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6369   test $ac_status = 0; }; then
6370     if test "$lt_cv_prog_gnu_ld" = yes; then
6371       case `/usr/bin/file conftest.$ac_objext` in
6372         *32-bit*)
6373           LD="${LD-ld} -melf32bsmip"
6374           ;;
6375         *N32*)
6376           LD="${LD-ld} -melf32bmipn32"
6377           ;;
6378         *64-bit*)
6379           LD="${LD-ld} -melf64bmip"
6380         ;;
6381       esac
6382     else
6383       case `/usr/bin/file conftest.$ac_objext` in
6384         *32-bit*)
6385           LD="${LD-ld} -32"
6386           ;;
6387         *N32*)
6388           LD="${LD-ld} -n32"
6389           ;;
6390         *64-bit*)
6391           LD="${LD-ld} -64"
6392           ;;
6393       esac
6394     fi
6395   fi
6396   rm -rf conftest*
6397   ;;
6398
6399 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6400 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6401   # Find out which ABI we are using.
6402   echo 'int i;' > conftest.$ac_ext
6403   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6404   (eval $ac_compile) 2>&5
6405   ac_status=$?
6406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407   test $ac_status = 0; }; then
6408     case `/usr/bin/file conftest.o` in
6409       *32-bit*)
6410         case $host in
6411           x86_64-*kfreebsd*-gnu)
6412             LD="${LD-ld} -m elf_i386_fbsd"
6413             ;;
6414           x86_64-*linux*)
6415             LD="${LD-ld} -m elf_i386"
6416             ;;
6417           ppc64-*linux*|powerpc64-*linux*)
6418             LD="${LD-ld} -m elf32ppclinux"
6419             ;;
6420           s390x-*linux*)
6421             LD="${LD-ld} -m elf_s390"
6422             ;;
6423           sparc64-*linux*)
6424             LD="${LD-ld} -m elf32_sparc"
6425             ;;
6426         esac
6427         ;;
6428       *64-bit*)
6429         case $host in
6430           x86_64-*kfreebsd*-gnu)
6431             LD="${LD-ld} -m elf_x86_64_fbsd"
6432             ;;
6433           x86_64-*linux*)
6434             LD="${LD-ld} -m elf_x86_64"
6435             ;;
6436           ppc*-*linux*|powerpc*-*linux*)
6437             LD="${LD-ld} -m elf64ppc"
6438             ;;
6439           s390*-*linux*|s390*-*tpf*)
6440             LD="${LD-ld} -m elf64_s390"
6441             ;;
6442           sparc*-*linux*)
6443             LD="${LD-ld} -m elf64_sparc"
6444             ;;
6445         esac
6446         ;;
6447     esac
6448   fi
6449   rm -rf conftest*
6450   ;;
6451
6452 *-*-sco3.2v5*)
6453   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6454   SAVE_CFLAGS="$CFLAGS"
6455   CFLAGS="$CFLAGS -belf"
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6457 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6458 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   ac_ext=c
6462 ac_cpp='$CPP $CPPFLAGS'
6463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6466
6467      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h.  */
6469
6470 int
6471 main ()
6472 {
6473
6474   ;
6475   return 0;
6476 }
6477 _ACEOF
6478 if ac_fn_c_try_link "$LINENO"; then :
6479   lt_cv_cc_needs_belf=yes
6480 else
6481   lt_cv_cc_needs_belf=no
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext \
6484     conftest$ac_exeext conftest.$ac_ext
6485      ac_ext=c
6486 ac_cpp='$CPP $CPPFLAGS'
6487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6490
6491 fi
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6493 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6494   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6495     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6496     CFLAGS="$SAVE_CFLAGS"
6497   fi
6498   ;;
6499 sparc*-*solaris*)
6500   # Find out which ABI we are using.
6501   echo 'int i;' > conftest.$ac_ext
6502   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6503   (eval $ac_compile) 2>&5
6504   ac_status=$?
6505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6506   test $ac_status = 0; }; then
6507     case `/usr/bin/file conftest.o` in
6508     *64-bit*)
6509       case $lt_cv_prog_gnu_ld in
6510       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6511       *)
6512         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6513           LD="${LD-ld} -64"
6514         fi
6515         ;;
6516       esac
6517       ;;
6518     esac
6519   fi
6520   rm -rf conftest*
6521   ;;
6522 esac
6523
6524 need_locks="$enable_libtool_lock"
6525
6526
6527   case $host_os in
6528     rhapsody* | darwin*)
6529     if test -n "$ac_tool_prefix"; then
6530   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6535   $as_echo_n "(cached) " >&6
6536 else
6537   if test -n "$DSYMUTIL"; then
6538   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543   IFS=$as_save_IFS
6544   test -z "$as_dir" && as_dir=.
6545     for ac_exec_ext in '' $ac_executable_extensions; do
6546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549     break 2
6550   fi
6551 done
6552   done
6553 IFS=$as_save_IFS
6554
6555 fi
6556 fi
6557 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6558 if test -n "$DSYMUTIL"; then
6559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6560 $as_echo "$DSYMUTIL" >&6; }
6561 else
6562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6564 fi
6565
6566
6567 fi
6568 if test -z "$ac_cv_prog_DSYMUTIL"; then
6569   ac_ct_DSYMUTIL=$DSYMUTIL
6570   # Extract the first word of "dsymutil", so it can be a program name with args.
6571 set dummy dsymutil; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6575   $as_echo_n "(cached) " >&6
6576 else
6577   if test -n "$ac_ct_DSYMUTIL"; then
6578   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585     for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592   done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6598 if test -n "$ac_ct_DSYMUTIL"; then
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6600 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6601 else
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606   if test "x$ac_ct_DSYMUTIL" = x; then
6607     DSYMUTIL=":"
6608   else
6609     case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615     DSYMUTIL=$ac_ct_DSYMUTIL
6616   fi
6617 else
6618   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6619 fi
6620
6621     if test -n "$ac_tool_prefix"; then
6622   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6627   $as_echo_n "(cached) " >&6
6628 else
6629   if test -n "$NMEDIT"; then
6630   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635   IFS=$as_save_IFS
6636   test -z "$as_dir" && as_dir=.
6637     for ac_exec_ext in '' $ac_executable_extensions; do
6638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641     break 2
6642   fi
6643 done
6644   done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 NMEDIT=$ac_cv_prog_NMEDIT
6650 if test -n "$NMEDIT"; then
6651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6652 $as_echo "$NMEDIT" >&6; }
6653 else
6654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6656 fi
6657
6658
6659 fi
6660 if test -z "$ac_cv_prog_NMEDIT"; then
6661   ac_ct_NMEDIT=$NMEDIT
6662   # Extract the first word of "nmedit", so it can be a program name with args.
6663 set dummy nmedit; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6667   $as_echo_n "(cached) " >&6
6668 else
6669   if test -n "$ac_ct_NMEDIT"; then
6670   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677     for ac_exec_ext in '' $ac_executable_extensions; do
6678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684   done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6690 if test -n "$ac_ct_NMEDIT"; then
6691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6692 $as_echo "$ac_ct_NMEDIT" >&6; }
6693 else
6694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6697
6698   if test "x$ac_ct_NMEDIT" = x; then
6699     NMEDIT=":"
6700   else
6701     case $cross_compiling:$ac_tool_warned in
6702 yes:)
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6705 ac_tool_warned=yes ;;
6706 esac
6707     NMEDIT=$ac_ct_NMEDIT
6708   fi
6709 else
6710   NMEDIT="$ac_cv_prog_NMEDIT"
6711 fi
6712
6713     if test -n "$ac_tool_prefix"; then
6714   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6715 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if test "${ac_cv_prog_LIPO+set}" = set; then :
6719   $as_echo_n "(cached) " >&6
6720 else
6721   if test -n "$LIPO"; then
6722   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727   IFS=$as_save_IFS
6728   test -z "$as_dir" && as_dir=.
6729     for ac_exec_ext in '' $ac_executable_extensions; do
6730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733     break 2
6734   fi
6735 done
6736   done
6737 IFS=$as_save_IFS
6738
6739 fi
6740 fi
6741 LIPO=$ac_cv_prog_LIPO
6742 if test -n "$LIPO"; then
6743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6744 $as_echo "$LIPO" >&6; }
6745 else
6746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6748 fi
6749
6750
6751 fi
6752 if test -z "$ac_cv_prog_LIPO"; then
6753   ac_ct_LIPO=$LIPO
6754   # Extract the first word of "lipo", so it can be a program name with args.
6755 set dummy lipo; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6759   $as_echo_n "(cached) " >&6
6760 else
6761   if test -n "$ac_ct_LIPO"; then
6762   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769     for ac_exec_ext in '' $ac_executable_extensions; do
6770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771     ac_cv_prog_ac_ct_LIPO="lipo"
6772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776   done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6782 if test -n "$ac_ct_LIPO"; then
6783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6784 $as_echo "$ac_ct_LIPO" >&6; }
6785 else
6786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790   if test "x$ac_ct_LIPO" = x; then
6791     LIPO=":"
6792   else
6793     case $cross_compiling:$ac_tool_warned in
6794 yes:)
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797 ac_tool_warned=yes ;;
6798 esac
6799     LIPO=$ac_ct_LIPO
6800   fi
6801 else
6802   LIPO="$ac_cv_prog_LIPO"
6803 fi
6804
6805     if test -n "$ac_tool_prefix"; then
6806   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6807 set dummy ${ac_tool_prefix}otool; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6811   $as_echo_n "(cached) " >&6
6812 else
6813   if test -n "$OTOOL"; then
6814   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819   IFS=$as_save_IFS
6820   test -z "$as_dir" && as_dir=.
6821     for ac_exec_ext in '' $ac_executable_extensions; do
6822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825     break 2
6826   fi
6827 done
6828   done
6829 IFS=$as_save_IFS
6830
6831 fi
6832 fi
6833 OTOOL=$ac_cv_prog_OTOOL
6834 if test -n "$OTOOL"; then
6835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6836 $as_echo "$OTOOL" >&6; }
6837 else
6838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6840 fi
6841
6842
6843 fi
6844 if test -z "$ac_cv_prog_OTOOL"; then
6845   ac_ct_OTOOL=$OTOOL
6846   # Extract the first word of "otool", so it can be a program name with args.
6847 set dummy otool; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6851   $as_echo_n "(cached) " >&6
6852 else
6853   if test -n "$ac_ct_OTOOL"; then
6854   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859   IFS=$as_save_IFS
6860   test -z "$as_dir" && as_dir=.
6861     for ac_exec_ext in '' $ac_executable_extensions; do
6862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863     ac_cv_prog_ac_ct_OTOOL="otool"
6864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865     break 2
6866   fi
6867 done
6868   done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6874 if test -n "$ac_ct_OTOOL"; then
6875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6876 $as_echo "$ac_ct_OTOOL" >&6; }
6877 else
6878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882   if test "x$ac_ct_OTOOL" = x; then
6883     OTOOL=":"
6884   else
6885     case $cross_compiling:$ac_tool_warned in
6886 yes:)
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889 ac_tool_warned=yes ;;
6890 esac
6891     OTOOL=$ac_ct_OTOOL
6892   fi
6893 else
6894   OTOOL="$ac_cv_prog_OTOOL"
6895 fi
6896
6897     if test -n "$ac_tool_prefix"; then
6898   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6899 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6903   $as_echo_n "(cached) " >&6
6904 else
6905   if test -n "$OTOOL64"; then
6906   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6910 do
6911   IFS=$as_save_IFS
6912   test -z "$as_dir" && as_dir=.
6913     for ac_exec_ext in '' $ac_executable_extensions; do
6914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917     break 2
6918   fi
6919 done
6920   done
6921 IFS=$as_save_IFS
6922
6923 fi
6924 fi
6925 OTOOL64=$ac_cv_prog_OTOOL64
6926 if test -n "$OTOOL64"; then
6927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6928 $as_echo "$OTOOL64" >&6; }
6929 else
6930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6932 fi
6933
6934
6935 fi
6936 if test -z "$ac_cv_prog_OTOOL64"; then
6937   ac_ct_OTOOL64=$OTOOL64
6938   # Extract the first word of "otool64", so it can be a program name with args.
6939 set dummy otool64; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6943   $as_echo_n "(cached) " >&6
6944 else
6945   if test -n "$ac_ct_OTOOL64"; then
6946   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951   IFS=$as_save_IFS
6952   test -z "$as_dir" && as_dir=.
6953     for ac_exec_ext in '' $ac_executable_extensions; do
6954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955     ac_cv_prog_ac_ct_OTOOL64="otool64"
6956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957     break 2
6958   fi
6959 done
6960   done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6966 if test -n "$ac_ct_OTOOL64"; then
6967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6968 $as_echo "$ac_ct_OTOOL64" >&6; }
6969 else
6970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974   if test "x$ac_ct_OTOOL64" = x; then
6975     OTOOL64=":"
6976   else
6977     case $cross_compiling:$ac_tool_warned in
6978 yes:)
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981 ac_tool_warned=yes ;;
6982 esac
6983     OTOOL64=$ac_ct_OTOOL64
6984   fi
6985 else
6986   OTOOL64="$ac_cv_prog_OTOOL64"
6987 fi
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7016 $as_echo_n "checking for -single_module linker flag... " >&6; }
7017 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7018   $as_echo_n "(cached) " >&6
7019 else
7020   lt_cv_apple_cc_single_mod=no
7021       if test -z "${LT_MULTI_MODULE}"; then
7022         # By default we will add the -single_module flag. You can override
7023         # by either setting the environment variable LT_MULTI_MODULE
7024         # non-empty at configure time, or by adding -multi_module to the
7025         # link flags.
7026         rm -rf libconftest.dylib*
7027         echo "int foo(void){return 1;}" > conftest.c
7028         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7029 -dynamiclib -Wl,-single_module conftest.c" >&5
7030         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7031           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7032         _lt_result=$?
7033         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7034           lt_cv_apple_cc_single_mod=yes
7035         else
7036           cat conftest.err >&5
7037         fi
7038         rm -rf libconftest.dylib*
7039         rm -f conftest.*
7040       fi
7041 fi
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7043 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7045 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7046 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7047   $as_echo_n "(cached) " >&6
7048 else
7049   lt_cv_ld_exported_symbols_list=no
7050       save_LDFLAGS=$LDFLAGS
7051       echo "_main" > conftest.sym
7052       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7053       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h.  */
7055
7056 int
7057 main ()
7058 {
7059
7060   ;
7061   return 0;
7062 }
7063 _ACEOF
7064 if ac_fn_c_try_link "$LINENO"; then :
7065   lt_cv_ld_exported_symbols_list=yes
7066 else
7067   lt_cv_ld_exported_symbols_list=no
7068 fi
7069 rm -f core conftest.err conftest.$ac_objext \
7070     conftest$ac_exeext conftest.$ac_ext
7071         LDFLAGS="$save_LDFLAGS"
7072
7073 fi
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7075 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7076     case $host_os in
7077     rhapsody* | darwin1.[012])
7078       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7079     darwin1.*)
7080       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7081     darwin*) # darwin 5.x on
7082       # if running on 10.5 or later, the deployment target defaults
7083       # to the OS version, if on x86, and 10.4, the deployment
7084       # target defaults to 10.4. Don't you love it?
7085       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7086         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7087           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7088         10.[012]*)
7089           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7090         10.*)
7091           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7092       esac
7093     ;;
7094   esac
7095     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7096       _lt_dar_single_mod='$single_module'
7097     fi
7098     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7099       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7100     else
7101       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7102     fi
7103     if test "$DSYMUTIL" != ":"; then
7104       _lt_dsymutil='~$DSYMUTIL $lib || :'
7105     else
7106       _lt_dsymutil=
7107     fi
7108     ;;
7109   esac
7110
7111 for ac_header in dlfcn.h
7112 do :
7113   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7114 "
7115 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7116   cat >>confdefs.h <<_ACEOF
7117 #define HAVE_DLFCN_H 1
7118 _ACEOF
7119
7120 fi
7121
7122 done
7123
7124
7125
7126 # Set options
7127 enable_dlopen=yes
7128 # Check whether --enable-static was given.
7129 if test "${enable_static+set}" = set; then :
7130   enableval=$enable_static; p=${PACKAGE-default}
7131     case $enableval in
7132     yes) enable_static=yes ;;
7133     no) enable_static=no ;;
7134     *)
7135      enable_static=no
7136       # Look at the argument we got.  We use all the common list separators.
7137       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7138       for pkg in $enableval; do
7139         IFS="$lt_save_ifs"
7140         if test "X$pkg" = "X$p"; then
7141           enable_static=yes
7142         fi
7143       done
7144       IFS="$lt_save_ifs"
7145       ;;
7146     esac
7147 else
7148   enable_static=no
7149 fi
7150
7151
7152
7153
7154
7155
7156
7157 enable_win32_dll=yes
7158
7159 case $host in
7160 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7161   if test -n "$ac_tool_prefix"; then
7162   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7163 set dummy ${ac_tool_prefix}as; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if test "${ac_cv_prog_AS+set}" = set; then :
7167   $as_echo_n "(cached) " >&6
7168 else
7169   if test -n "$AS"; then
7170   ac_cv_prog_AS="$AS" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177     for ac_exec_ext in '' $ac_executable_extensions; do
7178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7179     ac_cv_prog_AS="${ac_tool_prefix}as"
7180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184   done
7185 IFS=$as_save_IFS
7186
7187 fi
7188 fi
7189 AS=$ac_cv_prog_AS
7190 if test -n "$AS"; then
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7192 $as_echo "$AS" >&6; }
7193 else
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 fi
7197
7198
7199 fi
7200 if test -z "$ac_cv_prog_AS"; then
7201   ac_ct_AS=$AS
7202   # Extract the first word of "as", so it can be a program name with args.
7203 set dummy as; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   if test -n "$ac_ct_AS"; then
7210   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217     for ac_exec_ext in '' $ac_executable_extensions; do
7218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219     ac_cv_prog_ac_ct_AS="as"
7220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224   done
7225 IFS=$as_save_IFS
7226
7227 fi
7228 fi
7229 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7230 if test -n "$ac_ct_AS"; then
7231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7232 $as_echo "$ac_ct_AS" >&6; }
7233 else
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238   if test "x$ac_ct_AS" = x; then
7239     AS="false"
7240   else
7241     case $cross_compiling:$ac_tool_warned in
7242 yes:)
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7245 ac_tool_warned=yes ;;
7246 esac
7247     AS=$ac_ct_AS
7248   fi
7249 else
7250   AS="$ac_cv_prog_AS"
7251 fi
7252
7253   if test -n "$ac_tool_prefix"; then
7254   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7255 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 $as_echo_n "checking for $ac_word... " >&6; }
7258 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7259   $as_echo_n "(cached) " >&6
7260 else
7261   if test -n "$DLLTOOL"; then
7262   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7263 else
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 for as_dir in $PATH
7266 do
7267   IFS=$as_save_IFS
7268   test -z "$as_dir" && as_dir=.
7269     for ac_exec_ext in '' $ac_executable_extensions; do
7270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7271     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273     break 2
7274   fi
7275 done
7276   done
7277 IFS=$as_save_IFS
7278
7279 fi
7280 fi
7281 DLLTOOL=$ac_cv_prog_DLLTOOL
7282 if test -n "$DLLTOOL"; then
7283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7284 $as_echo "$DLLTOOL" >&6; }
7285 else
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7288 fi
7289
7290
7291 fi
7292 if test -z "$ac_cv_prog_DLLTOOL"; then
7293   ac_ct_DLLTOOL=$DLLTOOL
7294   # Extract the first word of "dlltool", so it can be a program name with args.
7295 set dummy dlltool; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7299   $as_echo_n "(cached) " >&6
7300 else
7301   if test -n "$ac_ct_DLLTOOL"; then
7302   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309     for ac_exec_ext in '' $ac_executable_extensions; do
7310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316   done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7322 if test -n "$ac_ct_DLLTOOL"; then
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7324 $as_echo "$ac_ct_DLLTOOL" >&6; }
7325 else
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329
7330   if test "x$ac_ct_DLLTOOL" = x; then
7331     DLLTOOL="false"
7332   else
7333     case $cross_compiling:$ac_tool_warned in
7334 yes:)
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7337 ac_tool_warned=yes ;;
7338 esac
7339     DLLTOOL=$ac_ct_DLLTOOL
7340   fi
7341 else
7342   DLLTOOL="$ac_cv_prog_DLLTOOL"
7343 fi
7344
7345   if test -n "$ac_tool_prefix"; then
7346   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7347 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7351   $as_echo_n "(cached) " >&6
7352 else
7353   if test -n "$OBJDUMP"; then
7354   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7355 else
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359   IFS=$as_save_IFS
7360   test -z "$as_dir" && as_dir=.
7361     for ac_exec_ext in '' $ac_executable_extensions; do
7362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7363     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365     break 2
7366   fi
7367 done
7368   done
7369 IFS=$as_save_IFS
7370
7371 fi
7372 fi
7373 OBJDUMP=$ac_cv_prog_OBJDUMP
7374 if test -n "$OBJDUMP"; then
7375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7376 $as_echo "$OBJDUMP" >&6; }
7377 else
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7380 fi
7381
7382
7383 fi
7384 if test -z "$ac_cv_prog_OBJDUMP"; then
7385   ac_ct_OBJDUMP=$OBJDUMP
7386   # Extract the first word of "objdump", so it can be a program name with args.
7387 set dummy objdump; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7391   $as_echo_n "(cached) " >&6
7392 else
7393   if test -n "$ac_ct_OBJDUMP"; then
7394   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399   IFS=$as_save_IFS
7400   test -z "$as_dir" && as_dir=.
7401     for ac_exec_ext in '' $ac_executable_extensions; do
7402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7403     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405     break 2
7406   fi
7407 done
7408   done
7409 IFS=$as_save_IFS
7410
7411 fi
7412 fi
7413 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7414 if test -n "$ac_ct_OBJDUMP"; then
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7416 $as_echo "$ac_ct_OBJDUMP" >&6; }
7417 else
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7420 fi
7421
7422   if test "x$ac_ct_OBJDUMP" = x; then
7423     OBJDUMP="false"
7424   else
7425     case $cross_compiling:$ac_tool_warned in
7426 yes:)
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7429 ac_tool_warned=yes ;;
7430 esac
7431     OBJDUMP=$ac_ct_OBJDUMP
7432   fi
7433 else
7434   OBJDUMP="$ac_cv_prog_OBJDUMP"
7435 fi
7436
7437   ;;
7438 esac
7439
7440 test -z "$AS" && AS=as
7441
7442
7443
7444
7445
7446 test -z "$DLLTOOL" && DLLTOOL=dlltool
7447
7448
7449
7450
7451
7452 test -z "$OBJDUMP" && OBJDUMP=objdump
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462             # Check whether --enable-shared was given.
7463 if test "${enable_shared+set}" = set; then :
7464   enableval=$enable_shared; p=${PACKAGE-default}
7465     case $enableval in
7466     yes) enable_shared=yes ;;
7467     no) enable_shared=no ;;
7468     *)
7469       enable_shared=no
7470       # Look at the argument we got.  We use all the common list separators.
7471       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7472       for pkg in $enableval; do
7473         IFS="$lt_save_ifs"
7474         if test "X$pkg" = "X$p"; then
7475           enable_shared=yes
7476         fi
7477       done
7478       IFS="$lt_save_ifs"
7479       ;;
7480     esac
7481 else
7482   enable_shared=yes
7483 fi
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495 # Check whether --with-pic was given.
7496 if test "${with_pic+set}" = set; then :
7497   withval=$with_pic; pic_mode="$withval"
7498 else
7499   pic_mode=default
7500 fi
7501
7502
7503 test -z "$pic_mode" && pic_mode=default
7504
7505
7506
7507
7508
7509
7510
7511   # Check whether --enable-fast-install was given.
7512 if test "${enable_fast_install+set}" = set; then :
7513   enableval=$enable_fast_install; p=${PACKAGE-default}
7514     case $enableval in
7515     yes) enable_fast_install=yes ;;
7516     no) enable_fast_install=no ;;
7517     *)
7518       enable_fast_install=no
7519       # Look at the argument we got.  We use all the common list separators.
7520       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7521       for pkg in $enableval; do
7522         IFS="$lt_save_ifs"
7523         if test "X$pkg" = "X$p"; then
7524           enable_fast_install=yes
7525         fi
7526       done
7527       IFS="$lt_save_ifs"
7528       ;;
7529     esac
7530 else
7531   enable_fast_install=yes
7532 fi
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544 # This can be used to rebuild libtool when needed
7545 LIBTOOL_DEPS="$ltmain"
7546
7547 # Always use our own libtool.
7548 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574 test -z "$LN_S" && LN_S="ln -s"
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589 if test -n "${ZSH_VERSION+set}" ; then
7590    setopt NO_GLOB_SUBST
7591 fi
7592
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7594 $as_echo_n "checking for objdir... " >&6; }
7595 if test "${lt_cv_objdir+set}" = set; then :
7596   $as_echo_n "(cached) " >&6
7597 else
7598   rm -f .libs 2>/dev/null
7599 mkdir .libs 2>/dev/null
7600 if test -d .libs; then
7601   lt_cv_objdir=.libs
7602 else
7603   # MS-DOS does not allow filenames that begin with a dot.
7604   lt_cv_objdir=_libs
7605 fi
7606 rmdir .libs 2>/dev/null
7607 fi
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7609 $as_echo "$lt_cv_objdir" >&6; }
7610 objdir=$lt_cv_objdir
7611
7612
7613
7614
7615
7616 cat >>confdefs.h <<_ACEOF
7617 #define LT_OBJDIR "$lt_cv_objdir/"
7618 _ACEOF
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636 case $host_os in
7637 aix3*)
7638   # AIX sometimes has problems with the GCC collect2 program.  For some
7639   # reason, if we set the COLLECT_NAMES environment variable, the problems
7640   # vanish in a puff of smoke.
7641   if test "X${COLLECT_NAMES+set}" != Xset; then
7642     COLLECT_NAMES=
7643     export COLLECT_NAMES
7644   fi
7645   ;;
7646 esac
7647
7648 # Sed substitution that helps us do robust quoting.  It backslashifies
7649 # metacharacters that are still active within double-quoted strings.
7650 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7651
7652 # Same as above, but do not quote variable references.
7653 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7654
7655 # Sed substitution to delay expansion of an escaped shell variable in a
7656 # double_quote_subst'ed string.
7657 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7658
7659 # Sed substitution to delay expansion of an escaped single quote.
7660 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7661
7662 # Sed substitution to avoid accidental globbing in evaled expressions
7663 no_glob_subst='s/\*/\\\*/g'
7664
7665 # Global variables:
7666 ofile=libtool
7667 can_build_shared=yes
7668
7669 # All known linkers require a `.a' archive for static linking (except MSVC,
7670 # which needs '.lib').
7671 libext=a
7672
7673 with_gnu_ld="$lt_cv_prog_gnu_ld"
7674
7675 old_CC="$CC"
7676 old_CFLAGS="$CFLAGS"
7677
7678 # Set sane defaults for various variables
7679 test -z "$CC" && CC=cc
7680 test -z "$LTCC" && LTCC=$CC
7681 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7682 test -z "$LD" && LD=ld
7683 test -z "$ac_objext" && ac_objext=o
7684
7685 for cc_temp in $compiler""; do
7686   case $cc_temp in
7687     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7688     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7689     \-*) ;;
7690     *) break;;
7691   esac
7692 done
7693 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7694
7695
7696 # Only perform the check for file, if the check method requires it
7697 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7698 case $deplibs_check_method in
7699 file_magic*)
7700   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7702 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7703 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7704   $as_echo_n "(cached) " >&6
7705 else
7706   case $MAGIC_CMD in
7707 [\\/*] |  ?:[\\/]*)
7708   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7709   ;;
7710 *)
7711   lt_save_MAGIC_CMD="$MAGIC_CMD"
7712   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7713   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7714   for ac_dir in $ac_dummy; do
7715     IFS="$lt_save_ifs"
7716     test -z "$ac_dir" && ac_dir=.
7717     if test -f $ac_dir/${ac_tool_prefix}file; then
7718       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7719       if test -n "$file_magic_test_file"; then
7720         case $deplibs_check_method in
7721         "file_magic "*)
7722           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7723           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7724           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7725             $EGREP "$file_magic_regex" > /dev/null; then
7726             :
7727           else
7728             cat <<_LT_EOF 1>&2
7729
7730 *** Warning: the command libtool uses to detect shared libraries,
7731 *** $file_magic_cmd, produces output that libtool cannot recognize.
7732 *** The result is that libtool may fail to recognize shared libraries
7733 *** as such.  This will affect the creation of libtool libraries that
7734 *** depend on shared libraries, but programs linked with such libtool
7735 *** libraries will work regardless of this problem.  Nevertheless, you
7736 *** may want to report the problem to your system manager and/or to
7737 *** bug-libtool@gnu.org
7738
7739 _LT_EOF
7740           fi ;;
7741         esac
7742       fi
7743       break
7744     fi
7745   done
7746   IFS="$lt_save_ifs"
7747   MAGIC_CMD="$lt_save_MAGIC_CMD"
7748   ;;
7749 esac
7750 fi
7751
7752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7753 if test -n "$MAGIC_CMD"; then
7754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7755 $as_echo "$MAGIC_CMD" >&6; }
7756 else
7757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7759 fi
7760
7761
7762
7763
7764
7765 if test -z "$lt_cv_path_MAGIC_CMD"; then
7766   if test -n "$ac_tool_prefix"; then
7767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7768 $as_echo_n "checking for file... " >&6; }
7769 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7770   $as_echo_n "(cached) " >&6
7771 else
7772   case $MAGIC_CMD in
7773 [\\/*] |  ?:[\\/]*)
7774   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7775   ;;
7776 *)
7777   lt_save_MAGIC_CMD="$MAGIC_CMD"
7778   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7779   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7780   for ac_dir in $ac_dummy; do
7781     IFS="$lt_save_ifs"
7782     test -z "$ac_dir" && ac_dir=.
7783     if test -f $ac_dir/file; then
7784       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7785       if test -n "$file_magic_test_file"; then
7786         case $deplibs_check_method in
7787         "file_magic "*)
7788           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7789           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7790           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7791             $EGREP "$file_magic_regex" > /dev/null; then
7792             :
7793           else
7794             cat <<_LT_EOF 1>&2
7795
7796 *** Warning: the command libtool uses to detect shared libraries,
7797 *** $file_magic_cmd, produces output that libtool cannot recognize.
7798 *** The result is that libtool may fail to recognize shared libraries
7799 *** as such.  This will affect the creation of libtool libraries that
7800 *** depend on shared libraries, but programs linked with such libtool
7801 *** libraries will work regardless of this problem.  Nevertheless, you
7802 *** may want to report the problem to your system manager and/or to
7803 *** bug-libtool@gnu.org
7804
7805 _LT_EOF
7806           fi ;;
7807         esac
7808       fi
7809       break
7810     fi
7811   done
7812   IFS="$lt_save_ifs"
7813   MAGIC_CMD="$lt_save_MAGIC_CMD"
7814   ;;
7815 esac
7816 fi
7817
7818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7819 if test -n "$MAGIC_CMD"; then
7820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7821 $as_echo "$MAGIC_CMD" >&6; }
7822 else
7823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7825 fi
7826
7827
7828   else
7829     MAGIC_CMD=:
7830   fi
7831 fi
7832
7833   fi
7834   ;;
7835 esac
7836
7837 # Use C for the default configuration in the libtool script
7838
7839 lt_save_CC="$CC"
7840 ac_ext=c
7841 ac_cpp='$CPP $CPPFLAGS'
7842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7845
7846
7847 # Source file extension for C test sources.
7848 ac_ext=c
7849
7850 # Object file extension for compiled C test sources.
7851 objext=o
7852 objext=$objext
7853
7854 # Code to be used in simple compile tests
7855 lt_simple_compile_test_code="int some_variable = 0;"
7856
7857 # Code to be used in simple link tests
7858 lt_simple_link_test_code='int main(){return(0);}'
7859
7860
7861
7862
7863
7864
7865
7866 # If no C compiler was specified, use CC.
7867 LTCC=${LTCC-"$CC"}
7868
7869 # If no C compiler flags were specified, use CFLAGS.
7870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7871
7872 # Allow CC to be a program name with arguments.
7873 compiler=$CC
7874
7875 # Save the default compiler, since it gets overwritten when the other
7876 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7877 compiler_DEFAULT=$CC
7878
7879 # save warnings/boilerplate of simple test code
7880 ac_outfile=conftest.$ac_objext
7881 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7882 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7883 _lt_compiler_boilerplate=`cat conftest.err`
7884 $RM conftest*
7885
7886 ac_outfile=conftest.$ac_objext
7887 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7888 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7889 _lt_linker_boilerplate=`cat conftest.err`
7890 $RM -r conftest*
7891
7892
7893 ## CAVEAT EMPTOR:
7894 ## There is no encapsulation within the following macros, do not change
7895 ## the running order or otherwise move them around unless you know exactly
7896 ## what you are doing...
7897 if test -n "$compiler"; then
7898
7899 lt_prog_compiler_no_builtin_flag=
7900
7901 if test "$GCC" = yes; then
7902   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7903
7904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7905 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7906 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7907   $as_echo_n "(cached) " >&6
7908 else
7909   lt_cv_prog_compiler_rtti_exceptions=no
7910    ac_outfile=conftest.$ac_objext
7911    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7912    lt_compiler_flag="-fno-rtti -fno-exceptions"
7913    # Insert the option either (1) after the last *FLAGS variable, or
7914    # (2) before a word containing "conftest.", or (3) at the end.
7915    # Note that $ac_compile itself does not contain backslashes and begins
7916    # with a dollar sign (not a hyphen), so the echo should work correctly.
7917    # The option is referenced via a variable to avoid confusing sed.
7918    lt_compile=`echo "$ac_compile" | $SED \
7919    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7920    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7921    -e 's:$: $lt_compiler_flag:'`
7922    (eval echo "\"\$as_me:7922: $lt_compile\"" >&5)
7923    (eval "$lt_compile" 2>conftest.err)
7924    ac_status=$?
7925    cat conftest.err >&5
7926    echo "$as_me:7926: \$? = $ac_status" >&5
7927    if (exit $ac_status) && test -s "$ac_outfile"; then
7928      # The compiler can only warn and ignore the option if not recognized
7929      # So say no if there are warnings other than the usual output.
7930      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7931      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7933        lt_cv_prog_compiler_rtti_exceptions=yes
7934      fi
7935    fi
7936    $RM conftest*
7937
7938 fi
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7940 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7941
7942 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7943     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7944 else
7945     :
7946 fi
7947
7948 fi
7949
7950
7951
7952
7953
7954
7955   lt_prog_compiler_wl=
7956 lt_prog_compiler_pic=
7957 lt_prog_compiler_static=
7958
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7960 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7961
7962   if test "$GCC" = yes; then
7963     lt_prog_compiler_wl='-Wl,'
7964     lt_prog_compiler_static='-static'
7965
7966     case $host_os in
7967       aix*)
7968       # All AIX code is PIC.
7969       if test "$host_cpu" = ia64; then
7970         # AIX 5 now supports IA64 processor
7971         lt_prog_compiler_static='-Bstatic'
7972       fi
7973       ;;
7974
7975     amigaos*)
7976       case $host_cpu in
7977       powerpc)
7978             # see comment about AmigaOS4 .so support
7979             lt_prog_compiler_pic='-fPIC'
7980         ;;
7981       m68k)
7982             # FIXME: we need at least 68020 code to build shared libraries, but
7983             # adding the `-m68020' flag to GCC prevents building anything better,
7984             # like `-m68040'.
7985             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7986         ;;
7987       esac
7988       ;;
7989
7990     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7991       # PIC is the default for these OSes.
7992       ;;
7993
7994     mingw* | cygwin* | pw32* | os2* | cegcc*)
7995       # This hack is so that the source file can tell whether it is being
7996       # built for inclusion in a dll (and should export symbols for example).
7997       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7998       # (--disable-auto-import) libraries
7999       lt_prog_compiler_pic='-DDLL_EXPORT'
8000       ;;
8001
8002     darwin* | rhapsody*)
8003       # PIC is the default on this platform
8004       # Common symbols not allowed in MH_DYLIB files
8005       lt_prog_compiler_pic='-fno-common'
8006       ;;
8007
8008     hpux*)
8009       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8010       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8011       # sets the default TLS model and affects inlining.
8012       case $host_cpu in
8013       hppa*64*)
8014         # +Z the default
8015         ;;
8016       *)
8017         lt_prog_compiler_pic='-fPIC'
8018         ;;
8019       esac
8020       ;;
8021
8022     interix[3-9]*)
8023       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8024       # Instead, we relocate shared libraries at runtime.
8025       ;;
8026
8027     msdosdjgpp*)
8028       # Just because we use GCC doesn't mean we suddenly get shared libraries
8029       # on systems that don't support them.
8030       lt_prog_compiler_can_build_shared=no
8031       enable_shared=no
8032       ;;
8033
8034     *nto* | *qnx*)
8035       # QNX uses GNU C++, but need to define -shared option too, otherwise
8036       # it will coredump.
8037       lt_prog_compiler_pic='-fPIC -shared'
8038       ;;
8039
8040     sysv4*MP*)
8041       if test -d /usr/nec; then
8042         lt_prog_compiler_pic=-Kconform_pic
8043       fi
8044       ;;
8045
8046     *)
8047       lt_prog_compiler_pic='-fPIC'
8048       ;;
8049     esac
8050   else
8051     # PORTME Check for flag to pass linker flags through the system compiler.
8052     case $host_os in
8053     aix*)
8054       lt_prog_compiler_wl='-Wl,'
8055       if test "$host_cpu" = ia64; then
8056         # AIX 5 now supports IA64 processor
8057         lt_prog_compiler_static='-Bstatic'
8058       else
8059         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8060       fi
8061       ;;
8062
8063     mingw* | cygwin* | pw32* | os2* | cegcc*)
8064       # This hack is so that the source file can tell whether it is being
8065       # built for inclusion in a dll (and should export symbols for example).
8066       lt_prog_compiler_pic='-DDLL_EXPORT'
8067       ;;
8068
8069     hpux9* | hpux10* | hpux11*)
8070       lt_prog_compiler_wl='-Wl,'
8071       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8072       # not for PA HP-UX.
8073       case $host_cpu in
8074       hppa*64*|ia64*)
8075         # +Z the default
8076         ;;
8077       *)
8078         lt_prog_compiler_pic='+Z'
8079         ;;
8080       esac
8081       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8082       lt_prog_compiler_static='${wl}-a ${wl}archive'
8083       ;;
8084
8085     irix5* | irix6* | nonstopux*)
8086       lt_prog_compiler_wl='-Wl,'
8087       # PIC (with -KPIC) is the default.
8088       lt_prog_compiler_static='-non_shared'
8089       ;;
8090
8091     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8092       case $cc_basename in
8093       # old Intel for x86_64 which still supported -KPIC.
8094       ecc*)
8095         lt_prog_compiler_wl='-Wl,'
8096         lt_prog_compiler_pic='-KPIC'
8097         lt_prog_compiler_static='-static'
8098         ;;
8099       # icc used to be incompatible with GCC.
8100       # ICC 10 doesn't accept -KPIC any more.
8101       icc* | ifort*)
8102         lt_prog_compiler_wl='-Wl,'
8103         lt_prog_compiler_pic='-fPIC'
8104         lt_prog_compiler_static='-static'
8105         ;;
8106       # Lahey Fortran 8.1.
8107       lf95*)
8108         lt_prog_compiler_wl='-Wl,'
8109         lt_prog_compiler_pic='--shared'
8110         lt_prog_compiler_static='--static'
8111         ;;
8112       pgcc* | pgf77* | pgf90* | pgf95*)
8113         # Portland Group compilers (*not* the Pentium gcc compiler,
8114         # which looks to be a dead project)
8115         lt_prog_compiler_wl='-Wl,'
8116         lt_prog_compiler_pic='-fpic'
8117         lt_prog_compiler_static='-Bstatic'
8118         ;;
8119       ccc*)
8120         lt_prog_compiler_wl='-Wl,'
8121         # All Alpha code is PIC.
8122         lt_prog_compiler_static='-non_shared'
8123         ;;
8124       xl*)
8125         # IBM XL C 8.0/Fortran 10.1 on PPC
8126         lt_prog_compiler_wl='-Wl,'
8127         lt_prog_compiler_pic='-qpic'
8128         lt_prog_compiler_static='-qstaticlink'
8129         ;;
8130       *)
8131         case `$CC -V 2>&1 | sed 5q` in
8132         *Sun\ C*)
8133           # Sun C 5.9
8134           lt_prog_compiler_pic='-KPIC'
8135           lt_prog_compiler_static='-Bstatic'
8136           lt_prog_compiler_wl='-Wl,'
8137           ;;
8138         *Sun\ F*)
8139           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8140           lt_prog_compiler_pic='-KPIC'
8141           lt_prog_compiler_static='-Bstatic'
8142           lt_prog_compiler_wl=''
8143           ;;
8144         esac
8145         ;;
8146       esac
8147       ;;
8148
8149     newsos6)
8150       lt_prog_compiler_pic='-KPIC'
8151       lt_prog_compiler_static='-Bstatic'
8152       ;;
8153
8154     *nto* | *qnx*)
8155       # QNX uses GNU C++, but need to define -shared option too, otherwise
8156       # it will coredump.
8157       lt_prog_compiler_pic='-fPIC -shared'
8158       ;;
8159
8160     osf3* | osf4* | osf5*)
8161       lt_prog_compiler_wl='-Wl,'
8162       # All OSF/1 code is PIC.
8163       lt_prog_compiler_static='-non_shared'
8164       ;;
8165
8166     rdos*)
8167       lt_prog_compiler_static='-non_shared'
8168       ;;
8169
8170     solaris*)
8171       lt_prog_compiler_pic='-KPIC'
8172       lt_prog_compiler_static='-Bstatic'
8173       case $cc_basename in
8174       f77* | f90* | f95*)
8175         lt_prog_compiler_wl='-Qoption ld ';;
8176       *)
8177         lt_prog_compiler_wl='-Wl,';;
8178       esac
8179       ;;
8180
8181     sunos4*)
8182       lt_prog_compiler_wl='-Qoption ld '
8183       lt_prog_compiler_pic='-PIC'
8184       lt_prog_compiler_static='-Bstatic'
8185       ;;
8186
8187     sysv4 | sysv4.2uw2* | sysv4.3*)
8188       lt_prog_compiler_wl='-Wl,'
8189       lt_prog_compiler_pic='-KPIC'
8190       lt_prog_compiler_static='-Bstatic'
8191       ;;
8192
8193     sysv4*MP*)
8194       if test -d /usr/nec ;then
8195         lt_prog_compiler_pic='-Kconform_pic'
8196         lt_prog_compiler_static='-Bstatic'
8197       fi
8198       ;;
8199
8200     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8201       lt_prog_compiler_wl='-Wl,'
8202       lt_prog_compiler_pic='-KPIC'
8203       lt_prog_compiler_static='-Bstatic'
8204       ;;
8205
8206     unicos*)
8207       lt_prog_compiler_wl='-Wl,'
8208       lt_prog_compiler_can_build_shared=no
8209       ;;
8210
8211     uts4*)
8212       lt_prog_compiler_pic='-pic'
8213       lt_prog_compiler_static='-Bstatic'
8214       ;;
8215
8216     *)
8217       lt_prog_compiler_can_build_shared=no
8218       ;;
8219     esac
8220   fi
8221
8222 case $host_os in
8223   # For platforms which do not support PIC, -DPIC is meaningless:
8224   *djgpp*)
8225     lt_prog_compiler_pic=
8226     ;;
8227   *)
8228     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8229     ;;
8230 esac
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8232 $as_echo "$lt_prog_compiler_pic" >&6; }
8233
8234
8235
8236
8237
8238
8239 #
8240 # Check to make sure the PIC flag actually works.
8241 #
8242 if test -n "$lt_prog_compiler_pic"; then
8243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8244 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8245 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8246   $as_echo_n "(cached) " >&6
8247 else
8248   lt_cv_prog_compiler_pic_works=no
8249    ac_outfile=conftest.$ac_objext
8250    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8251    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8252    # Insert the option either (1) after the last *FLAGS variable, or
8253    # (2) before a word containing "conftest.", or (3) at the end.
8254    # Note that $ac_compile itself does not contain backslashes and begins
8255    # with a dollar sign (not a hyphen), so the echo should work correctly.
8256    # The option is referenced via a variable to avoid confusing sed.
8257    lt_compile=`echo "$ac_compile" | $SED \
8258    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8259    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8260    -e 's:$: $lt_compiler_flag:'`
8261    (eval echo "\"\$as_me:8261: $lt_compile\"" >&5)
8262    (eval "$lt_compile" 2>conftest.err)
8263    ac_status=$?
8264    cat conftest.err >&5
8265    echo "$as_me:8265: \$? = $ac_status" >&5
8266    if (exit $ac_status) && test -s "$ac_outfile"; then
8267      # The compiler can only warn and ignore the option if not recognized
8268      # So say no if there are warnings other than the usual output.
8269      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8270      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8271      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8272        lt_cv_prog_compiler_pic_works=yes
8273      fi
8274    fi
8275    $RM conftest*
8276
8277 fi
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8279 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8280
8281 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8282     case $lt_prog_compiler_pic in
8283      "" | " "*) ;;
8284      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8285      esac
8286 else
8287     lt_prog_compiler_pic=
8288      lt_prog_compiler_can_build_shared=no
8289 fi
8290
8291 fi
8292
8293
8294
8295
8296
8297
8298 #
8299 # Check to make sure the static flag actually works.
8300 #
8301 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8303 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8304 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8305   $as_echo_n "(cached) " >&6
8306 else
8307   lt_cv_prog_compiler_static_works=no
8308    save_LDFLAGS="$LDFLAGS"
8309    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8310    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8311    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8312      # The linker can only warn and ignore the option if not recognized
8313      # So say no if there are warnings
8314      if test -s conftest.err; then
8315        # Append any errors to the config.log.
8316        cat conftest.err 1>&5
8317        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8318        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8319        if diff conftest.exp conftest.er2 >/dev/null; then
8320          lt_cv_prog_compiler_static_works=yes
8321        fi
8322      else
8323        lt_cv_prog_compiler_static_works=yes
8324      fi
8325    fi
8326    $RM -r conftest*
8327    LDFLAGS="$save_LDFLAGS"
8328
8329 fi
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8331 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8332
8333 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8334     :
8335 else
8336     lt_prog_compiler_static=
8337 fi
8338
8339
8340
8341
8342
8343
8344
8345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8346 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8347 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8348   $as_echo_n "(cached) " >&6
8349 else
8350   lt_cv_prog_compiler_c_o=no
8351    $RM -r conftest 2>/dev/null
8352    mkdir conftest
8353    cd conftest
8354    mkdir out
8355    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8356
8357    lt_compiler_flag="-o out/conftest2.$ac_objext"
8358    # Insert the option either (1) after the last *FLAGS variable, or
8359    # (2) before a word containing "conftest.", or (3) at the end.
8360    # Note that $ac_compile itself does not contain backslashes and begins
8361    # with a dollar sign (not a hyphen), so the echo should work correctly.
8362    lt_compile=`echo "$ac_compile" | $SED \
8363    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8364    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8365    -e 's:$: $lt_compiler_flag:'`
8366    (eval echo "\"\$as_me:8366: $lt_compile\"" >&5)
8367    (eval "$lt_compile" 2>out/conftest.err)
8368    ac_status=$?
8369    cat out/conftest.err >&5
8370    echo "$as_me:8370: \$? = $ac_status" >&5
8371    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8372    then
8373      # The compiler can only warn and ignore the option if not recognized
8374      # So say no if there are warnings
8375      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8376      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8377      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8378        lt_cv_prog_compiler_c_o=yes
8379      fi
8380    fi
8381    chmod u+w . 2>&5
8382    $RM conftest*
8383    # SGI C++ compiler will create directory out/ii_files/ for
8384    # template instantiation
8385    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8386    $RM out/* && rmdir out
8387    cd ..
8388    $RM -r conftest
8389    $RM conftest*
8390
8391 fi
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8393 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8394
8395
8396
8397
8398
8399
8400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8401 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8402 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8403   $as_echo_n "(cached) " >&6
8404 else
8405   lt_cv_prog_compiler_c_o=no
8406    $RM -r conftest 2>/dev/null
8407    mkdir conftest
8408    cd conftest
8409    mkdir out
8410    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8411
8412    lt_compiler_flag="-o out/conftest2.$ac_objext"
8413    # Insert the option either (1) after the last *FLAGS variable, or
8414    # (2) before a word containing "conftest.", or (3) at the end.
8415    # Note that $ac_compile itself does not contain backslashes and begins
8416    # with a dollar sign (not a hyphen), so the echo should work correctly.
8417    lt_compile=`echo "$ac_compile" | $SED \
8418    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8419    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8420    -e 's:$: $lt_compiler_flag:'`
8421    (eval echo "\"\$as_me:8421: $lt_compile\"" >&5)
8422    (eval "$lt_compile" 2>out/conftest.err)
8423    ac_status=$?
8424    cat out/conftest.err >&5
8425    echo "$as_me:8425: \$? = $ac_status" >&5
8426    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8427    then
8428      # The compiler can only warn and ignore the option if not recognized
8429      # So say no if there are warnings
8430      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8431      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8432      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8433        lt_cv_prog_compiler_c_o=yes
8434      fi
8435    fi
8436    chmod u+w . 2>&5
8437    $RM conftest*
8438    # SGI C++ compiler will create directory out/ii_files/ for
8439    # template instantiation
8440    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8441    $RM out/* && rmdir out
8442    cd ..
8443    $RM -r conftest
8444    $RM conftest*
8445
8446 fi
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8448 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8449
8450
8451
8452
8453 hard_links="nottested"
8454 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8455   # do not overwrite the value of need_locks provided by the user
8456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8457 $as_echo_n "checking if we can lock with hard links... " >&6; }
8458   hard_links=yes
8459   $RM conftest*
8460   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8461   touch conftest.a
8462   ln conftest.a conftest.b 2>&5 || hard_links=no
8463   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8465 $as_echo "$hard_links" >&6; }
8466   if test "$hard_links" = no; then
8467     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8468 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8469     need_locks=warn
8470   fi
8471 else
8472   need_locks=no
8473 fi
8474
8475
8476
8477
8478
8479
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8481 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8482
8483   runpath_var=
8484   allow_undefined_flag=
8485   always_export_symbols=no
8486   archive_cmds=
8487   archive_expsym_cmds=
8488   compiler_needs_object=no
8489   enable_shared_with_static_runtimes=no
8490   export_dynamic_flag_spec=
8491   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8492   hardcode_automatic=no
8493   hardcode_direct=no
8494   hardcode_direct_absolute=no
8495   hardcode_libdir_flag_spec=
8496   hardcode_libdir_flag_spec_ld=
8497   hardcode_libdir_separator=
8498   hardcode_minus_L=no
8499   hardcode_shlibpath_var=unsupported
8500   inherit_rpath=no
8501   link_all_deplibs=unknown
8502   module_cmds=
8503   module_expsym_cmds=
8504   old_archive_from_new_cmds=
8505   old_archive_from_expsyms_cmds=
8506   thread_safe_flag_spec=
8507   whole_archive_flag_spec=
8508   # include_expsyms should be a list of space-separated symbols to be *always*
8509   # included in the symbol list
8510   include_expsyms=
8511   # exclude_expsyms can be an extended regexp of symbols to exclude
8512   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8513   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8514   # as well as any symbol that contains `d'.
8515   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8516   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8517   # platforms (ab)use it in PIC code, but their linkers get confused if
8518   # the symbol is explicitly referenced.  Since portable code cannot
8519   # rely on this symbol name, it's probably fine to never include it in
8520   # preloaded symbol tables.
8521   # Exclude shared library initialization/finalization symbols.
8522   extract_expsyms_cmds=
8523
8524   case $host_os in
8525   cygwin* | mingw* | pw32* | cegcc*)
8526     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8527     # When not using gcc, we currently assume that we are using
8528     # Microsoft Visual C++.
8529     if test "$GCC" != yes; then
8530       with_gnu_ld=no
8531     fi
8532     ;;
8533   interix*)
8534     # we just hope/assume this is gcc and not c89 (= MSVC++)
8535     with_gnu_ld=yes
8536     ;;
8537   openbsd*)
8538     with_gnu_ld=no
8539     ;;
8540   linux* | k*bsd*-gnu)
8541     link_all_deplibs=no
8542     ;;
8543   esac
8544
8545   ld_shlibs=yes
8546   if test "$with_gnu_ld" = yes; then
8547     # If archive_cmds runs LD, not CC, wlarc should be empty
8548     wlarc='${wl}'
8549
8550     # Set some defaults for GNU ld with shared library support. These
8551     # are reset later if shared libraries are not supported. Putting them
8552     # here allows them to be overridden if necessary.
8553     runpath_var=LD_RUN_PATH
8554     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555     export_dynamic_flag_spec='${wl}--export-dynamic'
8556     # ancient GNU ld didn't support --whole-archive et. al.
8557     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8558       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8559     else
8560       whole_archive_flag_spec=
8561     fi
8562     supports_anon_versioning=no
8563     case `$LD -v 2>&1` in
8564       *GNU\ gold*) supports_anon_versioning=yes ;;
8565       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8566       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8567       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8568       *\ 2.11.*) ;; # other 2.11 versions
8569       *) supports_anon_versioning=yes ;;
8570     esac
8571
8572     # See if GNU ld supports shared libraries.
8573     case $host_os in
8574     aix[3-9]*)
8575       # On AIX/PPC, the GNU linker is very broken
8576       if test "$host_cpu" != ia64; then
8577         ld_shlibs=no
8578         cat <<_LT_EOF 1>&2
8579
8580 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8581 *** to be unable to reliably create shared libraries on AIX.
8582 *** Therefore, libtool is disabling shared libraries support.  If you
8583 *** really care for shared libraries, you may want to modify your PATH
8584 *** so that a non-GNU linker is found, and then restart.
8585
8586 _LT_EOF
8587       fi
8588       ;;
8589
8590     amigaos*)
8591       case $host_cpu in
8592       powerpc)
8593             # see comment about AmigaOS4 .so support
8594             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8595             archive_expsym_cmds=''
8596         ;;
8597       m68k)
8598             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)'
8599             hardcode_libdir_flag_spec='-L$libdir'
8600             hardcode_minus_L=yes
8601         ;;
8602       esac
8603       ;;
8604
8605     beos*)
8606       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8607         allow_undefined_flag=unsupported
8608         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8609         # support --undefined.  This deserves some investigation.  FIXME
8610         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8611       else
8612         ld_shlibs=no
8613       fi
8614       ;;
8615
8616     cygwin* | mingw* | pw32* | cegcc*)
8617       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8618       # as there is no search path for DLLs.
8619       hardcode_libdir_flag_spec='-L$libdir'
8620       allow_undefined_flag=unsupported
8621       always_export_symbols=no
8622       enable_shared_with_static_runtimes=yes
8623       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8624
8625       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8626         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8627         # If the export-symbols file already is a .def file (1st line
8628         # is EXPORTS), use it as is; otherwise, prepend...
8629         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8630           cp $export_symbols $output_objdir/$soname.def;
8631         else
8632           echo EXPORTS > $output_objdir/$soname.def;
8633           cat $export_symbols >> $output_objdir/$soname.def;
8634         fi~
8635         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8636       else
8637         ld_shlibs=no
8638       fi
8639       ;;
8640
8641     interix[3-9]*)
8642       hardcode_direct=no
8643       hardcode_shlibpath_var=no
8644       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8645       export_dynamic_flag_spec='${wl}-E'
8646       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8647       # Instead, shared libraries are loaded at an image base (0x10000000 by
8648       # default) and relocated if they conflict, which is a slow very memory
8649       # consuming and fragmenting process.  To avoid this, we pick a random,
8650       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8651       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8652       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8653       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'
8654       ;;
8655
8656     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8657       tmp_diet=no
8658       if test "$host_os" = linux-dietlibc; then
8659         case $cc_basename in
8660           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8661         esac
8662       fi
8663       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8664          && test "$tmp_diet" = no
8665       then
8666         tmp_addflag=
8667         tmp_sharedflag='-shared'
8668         case $cc_basename,$host_cpu in
8669         pgcc*)                          # Portland Group C compiler
8670           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'
8671           tmp_addflag=' $pic_flag'
8672           ;;
8673         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8674           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'
8675           tmp_addflag=' $pic_flag -Mnomain' ;;
8676         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8677           tmp_addflag=' -i_dynamic' ;;
8678         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8679           tmp_addflag=' -i_dynamic -nofor_main' ;;
8680         ifc* | ifort*)                  # Intel Fortran compiler
8681           tmp_addflag=' -nofor_main' ;;
8682         lf95*)                          # Lahey Fortran 8.1
8683           whole_archive_flag_spec=
8684           tmp_sharedflag='--shared' ;;
8685         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8686           tmp_sharedflag='-qmkshrobj'
8687           tmp_addflag= ;;
8688         esac
8689         case `$CC -V 2>&1 | sed 5q` in
8690         *Sun\ C*)                       # Sun C 5.9
8691           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'
8692           compiler_needs_object=yes
8693           tmp_sharedflag='-G' ;;
8694         *Sun\ F*)                       # Sun Fortran 8.3
8695           tmp_sharedflag='-G' ;;
8696         esac
8697         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698
8699         if test "x$supports_anon_versioning" = xyes; then
8700           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8701             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8702             echo "local: *; };" >> $output_objdir/$libname.ver~
8703             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8704         fi
8705
8706         case $cc_basename in
8707         xlf*)
8708           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8709           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8710           hardcode_libdir_flag_spec=
8711           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8712           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8713           if test "x$supports_anon_versioning" = xyes; then
8714             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8715               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8716               echo "local: *; };" >> $output_objdir/$libname.ver~
8717               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8718           fi
8719           ;;
8720         esac
8721       else
8722         ld_shlibs=no
8723       fi
8724       ;;
8725
8726     netbsd* | netbsdelf*-gnu)
8727       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8728         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8729         wlarc=
8730       else
8731         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8732         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8733       fi
8734       ;;
8735
8736     solaris*)
8737       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8738         ld_shlibs=no
8739         cat <<_LT_EOF 1>&2
8740
8741 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8742 *** create shared libraries on Solaris systems.  Therefore, libtool
8743 *** is disabling shared libraries support.  We urge you to upgrade GNU
8744 *** binutils to release 2.9.1 or newer.  Another option is to modify
8745 *** your PATH or compiler configuration so that the native linker is
8746 *** used, and then restart.
8747
8748 _LT_EOF
8749       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8750         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8752       else
8753         ld_shlibs=no
8754       fi
8755       ;;
8756
8757     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8758       case `$LD -v 2>&1` in
8759         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8760         ld_shlibs=no
8761         cat <<_LT_EOF 1>&2
8762
8763 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8764 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8765 *** is disabling shared libraries support.  We urge you to upgrade GNU
8766 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8767 *** your PATH or compiler configuration so that the native linker is
8768 *** used, and then restart.
8769
8770 _LT_EOF
8771         ;;
8772         *)
8773           # For security reasons, it is highly recommended that you always
8774           # use absolute paths for naming shared libraries, and exclude the
8775           # DT_RUNPATH tag from executables and libraries.  But doing so
8776           # requires that you compile everything twice, which is a pain.
8777           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8778             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8779             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8780             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8781           else
8782             ld_shlibs=no
8783           fi
8784         ;;
8785       esac
8786       ;;
8787
8788     sunos4*)
8789       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8790       wlarc=
8791       hardcode_direct=yes
8792       hardcode_shlibpath_var=no
8793       ;;
8794
8795     *)
8796       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8797         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8798         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8799       else
8800         ld_shlibs=no
8801       fi
8802       ;;
8803     esac
8804
8805     if test "$ld_shlibs" = no; then
8806       runpath_var=
8807       hardcode_libdir_flag_spec=
8808       export_dynamic_flag_spec=
8809       whole_archive_flag_spec=
8810     fi
8811   else
8812     # PORTME fill in a description of your system's linker (not GNU ld)
8813     case $host_os in
8814     aix3*)
8815       allow_undefined_flag=unsupported
8816       always_export_symbols=yes
8817       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'
8818       # Note: this linker hardcodes the directories in LIBPATH if there
8819       # are no directories specified by -L.
8820       hardcode_minus_L=yes
8821       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8822         # Neither direct hardcoding nor static linking is supported with a
8823         # broken collect2.
8824         hardcode_direct=unsupported
8825       fi
8826       ;;
8827
8828     aix[4-9]*)
8829       if test "$host_cpu" = ia64; then
8830         # On IA64, the linker does run time linking by default, so we don't
8831         # have to do anything special.
8832         aix_use_runtimelinking=no
8833         exp_sym_flag='-Bexport'
8834         no_entry_flag=""
8835       else
8836         # If we're using GNU nm, then we don't want the "-C" option.
8837         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8838         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8839           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'
8840         else
8841           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'
8842         fi
8843         aix_use_runtimelinking=no
8844
8845         # Test if we are trying to use run time linking or normal
8846         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8847         # need to do runtime linking.
8848         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8849           for ld_flag in $LDFLAGS; do
8850           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8851             aix_use_runtimelinking=yes
8852             break
8853           fi
8854           done
8855           ;;
8856         esac
8857
8858         exp_sym_flag='-bexport'
8859         no_entry_flag='-bnoentry'
8860       fi
8861
8862       # When large executables or shared objects are built, AIX ld can
8863       # have problems creating the table of contents.  If linking a library
8864       # or program results in "error TOC overflow" add -mminimal-toc to
8865       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8866       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8867
8868       archive_cmds=''
8869       hardcode_direct=yes
8870       hardcode_direct_absolute=yes
8871       hardcode_libdir_separator=':'
8872       link_all_deplibs=yes
8873       file_list_spec='${wl}-f,'
8874
8875       if test "$GCC" = yes; then
8876         case $host_os in aix4.[012]|aix4.[012].*)
8877         # We only want to do this on AIX 4.2 and lower, the check
8878         # below for broken collect2 doesn't work under 4.3+
8879           collect2name=`${CC} -print-prog-name=collect2`
8880           if test -f "$collect2name" &&
8881            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8882           then
8883           # We have reworked collect2
8884           :
8885           else
8886           # We have old collect2
8887           hardcode_direct=unsupported
8888           # It fails to find uninstalled libraries when the uninstalled
8889           # path is not listed in the libpath.  Setting hardcode_minus_L
8890           # to unsupported forces relinking
8891           hardcode_minus_L=yes
8892           hardcode_libdir_flag_spec='-L$libdir'
8893           hardcode_libdir_separator=
8894           fi
8895           ;;
8896         esac
8897         shared_flag='-shared'
8898         if test "$aix_use_runtimelinking" = yes; then
8899           shared_flag="$shared_flag "'${wl}-G'
8900         fi
8901         link_all_deplibs=no
8902       else
8903         # not using gcc
8904         if test "$host_cpu" = ia64; then
8905         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8906         # chokes on -Wl,-G. The following line is correct:
8907           shared_flag='-G'
8908         else
8909           if test "$aix_use_runtimelinking" = yes; then
8910             shared_flag='${wl}-G'
8911           else
8912             shared_flag='${wl}-bM:SRE'
8913           fi
8914         fi
8915       fi
8916
8917       export_dynamic_flag_spec='${wl}-bexpall'
8918       # It seems that -bexpall does not export symbols beginning with
8919       # underscore (_), so it is better to generate a list of symbols to export.
8920       always_export_symbols=yes
8921       if test "$aix_use_runtimelinking" = yes; then
8922         # Warning - without using the other runtime loading flags (-brtl),
8923         # -berok will link without error, but may produce a broken library.
8924         allow_undefined_flag='-berok'
8925         # Determine the default libpath from the value encoded in an
8926         # empty executable.
8927         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h.  */
8929
8930 int
8931 main ()
8932 {
8933
8934   ;
8935   return 0;
8936 }
8937 _ACEOF
8938 if ac_fn_c_try_link "$LINENO"; then :
8939
8940 lt_aix_libpath_sed='
8941     /Import File Strings/,/^$/ {
8942         /^0/ {
8943             s/^0  *\(.*\)$/\1/
8944             p
8945         }
8946     }'
8947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8948 # Check for a 64-bit object if we didn't find anything.
8949 if test -z "$aix_libpath"; then
8950   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8951 fi
8952 fi
8953 rm -f core conftest.err conftest.$ac_objext \
8954     conftest$ac_exeext conftest.$ac_ext
8955 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8956
8957         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8958         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"
8959       else
8960         if test "$host_cpu" = ia64; then
8961           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8962           allow_undefined_flag="-z nodefs"
8963           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"
8964         else
8965          # Determine the default libpath from the value encoded in an
8966          # empty executable.
8967          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h.  */
8969
8970 int
8971 main ()
8972 {
8973
8974   ;
8975   return 0;
8976 }
8977 _ACEOF
8978 if ac_fn_c_try_link "$LINENO"; then :
8979
8980 lt_aix_libpath_sed='
8981     /Import File Strings/,/^$/ {
8982         /^0/ {
8983             s/^0  *\(.*\)$/\1/
8984             p
8985         }
8986     }'
8987 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8988 # Check for a 64-bit object if we didn't find anything.
8989 if test -z "$aix_libpath"; then
8990   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8991 fi
8992 fi
8993 rm -f core conftest.err conftest.$ac_objext \
8994     conftest$ac_exeext conftest.$ac_ext
8995 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8996
8997          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8998           # Warning - without using the other run time loading flags,
8999           # -berok will link without error, but may produce a broken library.
9000           no_undefined_flag=' ${wl}-bernotok'
9001           allow_undefined_flag=' ${wl}-berok'
9002           # Exported symbols can be pulled into shared objects from archives
9003           whole_archive_flag_spec='$convenience'
9004           archive_cmds_need_lc=yes
9005           # This is similar to how AIX traditionally builds its shared libraries.
9006           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'
9007         fi
9008       fi
9009       ;;
9010
9011     amigaos*)
9012       case $host_cpu in
9013       powerpc)
9014             # see comment about AmigaOS4 .so support
9015             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016             archive_expsym_cmds=''
9017         ;;
9018       m68k)
9019             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)'
9020             hardcode_libdir_flag_spec='-L$libdir'
9021             hardcode_minus_L=yes
9022         ;;
9023       esac
9024       ;;
9025
9026     bsdi[45]*)
9027       export_dynamic_flag_spec=-rdynamic
9028       ;;
9029
9030     cygwin* | mingw* | pw32* | cegcc*)
9031       # When not using gcc, we currently assume that we are using
9032       # Microsoft Visual C++.
9033       # hardcode_libdir_flag_spec is actually meaningless, as there is
9034       # no search path for DLLs.
9035       hardcode_libdir_flag_spec=' '
9036       allow_undefined_flag=unsupported
9037       # Tell ltmain to make .lib files, not .a files.
9038       libext=lib
9039       # Tell ltmain to make .dll files, not .so files.
9040       shrext_cmds=".dll"
9041       # FIXME: Setting linknames here is a bad hack.
9042       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9043       # The linker will automatically build a .lib file if we build a DLL.
9044       old_archive_from_new_cmds='true'
9045       # FIXME: Should let the user specify the lib program.
9046       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9047       fix_srcfile_path='`cygpath -w "$srcfile"`'
9048       enable_shared_with_static_runtimes=yes
9049       ;;
9050
9051     darwin* | rhapsody*)
9052
9053
9054   archive_cmds_need_lc=no
9055   hardcode_direct=no
9056   hardcode_automatic=yes
9057   hardcode_shlibpath_var=unsupported
9058   whole_archive_flag_spec=''
9059   link_all_deplibs=yes
9060   allow_undefined_flag="$_lt_dar_allow_undefined"
9061   case $cc_basename in
9062      ifort*) _lt_dar_can_shared=yes ;;
9063      *) _lt_dar_can_shared=$GCC ;;
9064   esac
9065   if test "$_lt_dar_can_shared" = "yes"; then
9066     output_verbose_link_cmd=echo
9067     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9068     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9069     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}"
9070     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}"
9071
9072   else
9073   ld_shlibs=no
9074   fi
9075
9076       ;;
9077
9078     dgux*)
9079       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9080       hardcode_libdir_flag_spec='-L$libdir'
9081       hardcode_shlibpath_var=no
9082       ;;
9083
9084     freebsd1*)
9085       ld_shlibs=no
9086       ;;
9087
9088     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9089     # support.  Future versions do this automatically, but an explicit c++rt0.o
9090     # does not break anything, and helps significantly (at the cost of a little
9091     # extra space).
9092     freebsd2.2*)
9093       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9094       hardcode_libdir_flag_spec='-R$libdir'
9095       hardcode_direct=yes
9096       hardcode_shlibpath_var=no
9097       ;;
9098
9099     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9100     freebsd2*)
9101       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9102       hardcode_direct=yes
9103       hardcode_minus_L=yes
9104       hardcode_shlibpath_var=no
9105       ;;
9106
9107     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9108     freebsd* | dragonfly*)
9109       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9110       hardcode_libdir_flag_spec='-R$libdir'
9111       hardcode_direct=yes
9112       hardcode_shlibpath_var=no
9113       ;;
9114
9115     hpux9*)
9116       if test "$GCC" = yes; then
9117         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'
9118       else
9119         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'
9120       fi
9121       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9122       hardcode_libdir_separator=:
9123       hardcode_direct=yes
9124
9125       # hardcode_minus_L: Not really in the search PATH,
9126       # but as the default location of the library.
9127       hardcode_minus_L=yes
9128       export_dynamic_flag_spec='${wl}-E'
9129       ;;
9130
9131     hpux10*)
9132       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9133         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9134       else
9135         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9136       fi
9137       if test "$with_gnu_ld" = no; then
9138         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9139         hardcode_libdir_flag_spec_ld='+b $libdir'
9140         hardcode_libdir_separator=:
9141         hardcode_direct=yes
9142         hardcode_direct_absolute=yes
9143         export_dynamic_flag_spec='${wl}-E'
9144         # hardcode_minus_L: Not really in the search PATH,
9145         # but as the default location of the library.
9146         hardcode_minus_L=yes
9147       fi
9148       ;;
9149
9150     hpux11*)
9151       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9152         case $host_cpu in
9153         hppa*64*)
9154           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9155           ;;
9156         ia64*)
9157           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9158           ;;
9159         *)
9160           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9161           ;;
9162         esac
9163       else
9164         case $host_cpu in
9165         hppa*64*)
9166           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9167           ;;
9168         ia64*)
9169           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9170           ;;
9171         *)
9172           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9173           ;;
9174         esac
9175       fi
9176       if test "$with_gnu_ld" = no; then
9177         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9178         hardcode_libdir_separator=:
9179
9180         case $host_cpu in
9181         hppa*64*|ia64*)
9182           hardcode_direct=no
9183           hardcode_shlibpath_var=no
9184           ;;
9185         *)
9186           hardcode_direct=yes
9187           hardcode_direct_absolute=yes
9188           export_dynamic_flag_spec='${wl}-E'
9189
9190           # hardcode_minus_L: Not really in the search PATH,
9191           # but as the default location of the library.
9192           hardcode_minus_L=yes
9193           ;;
9194         esac
9195       fi
9196       ;;
9197
9198     irix5* | irix6* | nonstopux*)
9199       if test "$GCC" = yes; then
9200         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'
9201         # Try to use the -exported_symbol ld option, if it does not
9202         # work, assume that -exports_file does not work either and
9203         # implicitly export all symbols.
9204         save_LDFLAGS="$LDFLAGS"
9205         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9206         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h.  */
9208 int foo(void) {}
9209 _ACEOF
9210 if ac_fn_c_try_link "$LINENO"; then :
9211   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'
9212
9213 fi
9214 rm -f core conftest.err conftest.$ac_objext \
9215     conftest$ac_exeext conftest.$ac_ext
9216         LDFLAGS="$save_LDFLAGS"
9217       else
9218         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'
9219         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'
9220       fi
9221       archive_cmds_need_lc='no'
9222       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9223       hardcode_libdir_separator=:
9224       inherit_rpath=yes
9225       link_all_deplibs=yes
9226       ;;
9227
9228     netbsd* | netbsdelf*-gnu)
9229       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9230         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9231       else
9232         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9233       fi
9234       hardcode_libdir_flag_spec='-R$libdir'
9235       hardcode_direct=yes
9236       hardcode_shlibpath_var=no
9237       ;;
9238
9239     newsos6)
9240       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9241       hardcode_direct=yes
9242       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243       hardcode_libdir_separator=:
9244       hardcode_shlibpath_var=no
9245       ;;
9246
9247     *nto* | *qnx*)
9248       ;;
9249
9250     openbsd*)
9251       if test -f /usr/libexec/ld.so; then
9252         hardcode_direct=yes
9253         hardcode_shlibpath_var=no
9254         hardcode_direct_absolute=yes
9255         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9256           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9257           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9258           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9259           export_dynamic_flag_spec='${wl}-E'
9260         else
9261           case $host_os in
9262            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9263              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9264              hardcode_libdir_flag_spec='-R$libdir'
9265              ;;
9266            *)
9267              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9268              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9269              ;;
9270           esac
9271         fi
9272       else
9273         ld_shlibs=no
9274       fi
9275       ;;
9276
9277     os2*)
9278       hardcode_libdir_flag_spec='-L$libdir'
9279       hardcode_minus_L=yes
9280       allow_undefined_flag=unsupported
9281       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'
9282       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9283       ;;
9284
9285     osf3*)
9286       if test "$GCC" = yes; then
9287         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9288         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'
9289       else
9290         allow_undefined_flag=' -expect_unresolved \*'
9291         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'
9292       fi
9293       archive_cmds_need_lc='no'
9294       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295       hardcode_libdir_separator=:
9296       ;;
9297
9298     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9299       if test "$GCC" = yes; then
9300         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9301         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'
9302         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9303       else
9304         allow_undefined_flag=' -expect_unresolved \*'
9305         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'
9306         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~
9307         $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'
9308
9309         # Both c and cxx compiler support -rpath directly
9310         hardcode_libdir_flag_spec='-rpath $libdir'
9311       fi
9312       archive_cmds_need_lc='no'
9313       hardcode_libdir_separator=:
9314       ;;
9315
9316     solaris*)
9317       no_undefined_flag=' -z defs'
9318       if test "$GCC" = yes; then
9319         wlarc='${wl}'
9320         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9321         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9322           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9323       else
9324         case `$CC -V 2>&1` in
9325         *"Compilers 5.0"*)
9326           wlarc=''
9327           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9329           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9330           ;;
9331         *)
9332           wlarc='${wl}'
9333           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9334           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9335           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9336           ;;
9337         esac
9338       fi
9339       hardcode_libdir_flag_spec='-R$libdir'
9340       hardcode_shlibpath_var=no
9341       case $host_os in
9342       solaris2.[0-5] | solaris2.[0-5].*) ;;
9343       *)
9344         # The compiler driver will combine and reorder linker options,
9345         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9346         # but is careful enough not to reorder.
9347         # Supported since Solaris 2.6 (maybe 2.5.1?)
9348         if test "$GCC" = yes; then
9349           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9350         else
9351           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9352         fi
9353         ;;
9354       esac
9355       link_all_deplibs=yes
9356       ;;
9357
9358     sunos4*)
9359       if test "x$host_vendor" = xsequent; then
9360         # Use $CC to link under sequent, because it throws in some extra .o
9361         # files that make .init and .fini sections work.
9362         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9363       else
9364         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9365       fi
9366       hardcode_libdir_flag_spec='-L$libdir'
9367       hardcode_direct=yes
9368       hardcode_minus_L=yes
9369       hardcode_shlibpath_var=no
9370       ;;
9371
9372     sysv4)
9373       case $host_vendor in
9374         sni)
9375           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9376           hardcode_direct=yes # is this really true???
9377         ;;
9378         siemens)
9379           ## LD is ld it makes a PLAMLIB
9380           ## CC just makes a GrossModule.
9381           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9382           reload_cmds='$CC -r -o $output$reload_objs'
9383           hardcode_direct=no
9384         ;;
9385         motorola)
9386           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9388         ;;
9389       esac
9390       runpath_var='LD_RUN_PATH'
9391       hardcode_shlibpath_var=no
9392       ;;
9393
9394     sysv4.3*)
9395       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396       hardcode_shlibpath_var=no
9397       export_dynamic_flag_spec='-Bexport'
9398       ;;
9399
9400     sysv4*MP*)
9401       if test -d /usr/nec; then
9402         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9403         hardcode_shlibpath_var=no
9404         runpath_var=LD_RUN_PATH
9405         hardcode_runpath_var=yes
9406         ld_shlibs=yes
9407       fi
9408       ;;
9409
9410     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9411       no_undefined_flag='${wl}-z,text'
9412       archive_cmds_need_lc=no
9413       hardcode_shlibpath_var=no
9414       runpath_var='LD_RUN_PATH'
9415
9416       if test "$GCC" = yes; then
9417         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9418         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419       else
9420         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9421         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9422       fi
9423       ;;
9424
9425     sysv5* | sco3.2v5* | sco5v6*)
9426       # Note: We can NOT use -z defs as we might desire, because we do not
9427       # link with -lc, and that would cause any symbols used from libc to
9428       # always be unresolved, which means just about no library would
9429       # ever link correctly.  If we're not using GNU ld we use -z text
9430       # though, which does catch some bad symbols but isn't as heavy-handed
9431       # as -z defs.
9432       no_undefined_flag='${wl}-z,text'
9433       allow_undefined_flag='${wl}-z,nodefs'
9434       archive_cmds_need_lc=no
9435       hardcode_shlibpath_var=no
9436       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9437       hardcode_libdir_separator=':'
9438       link_all_deplibs=yes
9439       export_dynamic_flag_spec='${wl}-Bexport'
9440       runpath_var='LD_RUN_PATH'
9441
9442       if test "$GCC" = yes; then
9443         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9444         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9445       else
9446         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9447         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9448       fi
9449       ;;
9450
9451     uts4*)
9452       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9453       hardcode_libdir_flag_spec='-L$libdir'
9454       hardcode_shlibpath_var=no
9455       ;;
9456
9457     *)
9458       ld_shlibs=no
9459       ;;
9460     esac
9461
9462     if test x$host_vendor = xsni; then
9463       case $host in
9464       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9465         export_dynamic_flag_spec='${wl}-Blargedynsym'
9466         ;;
9467       esac
9468     fi
9469   fi
9470
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9472 $as_echo "$ld_shlibs" >&6; }
9473 test "$ld_shlibs" = no && can_build_shared=no
9474
9475 with_gnu_ld=$with_gnu_ld
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491 #
9492 # Do we need to explicitly link libc?
9493 #
9494 case "x$archive_cmds_need_lc" in
9495 x|xyes)
9496   # Assume -lc should be added
9497   archive_cmds_need_lc=yes
9498
9499   if test "$enable_shared" = yes && test "$GCC" = yes; then
9500     case $archive_cmds in
9501     *'~'*)
9502       # FIXME: we may have to deal with multi-command sequences.
9503       ;;
9504     '$CC '*)
9505       # Test whether the compiler implicitly links with -lc since on some
9506       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9507       # to ld, don't add -lc before -lgcc.
9508       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9509 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9510       $RM conftest*
9511       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9512
9513       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9514   (eval $ac_compile) 2>&5
9515   ac_status=$?
9516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9517   test $ac_status = 0; } 2>conftest.err; then
9518         soname=conftest
9519         lib=conftest
9520         libobjs=conftest.$ac_objext
9521         deplibs=
9522         wl=$lt_prog_compiler_wl
9523         pic_flag=$lt_prog_compiler_pic
9524         compiler_flags=-v
9525         linker_flags=-v
9526         verstring=
9527         output_objdir=.
9528         libname=conftest
9529         lt_save_allow_undefined_flag=$allow_undefined_flag
9530         allow_undefined_flag=
9531         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9532   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9533   ac_status=$?
9534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9535   test $ac_status = 0; }
9536         then
9537           archive_cmds_need_lc=no
9538         else
9539           archive_cmds_need_lc=yes
9540         fi
9541         allow_undefined_flag=$lt_save_allow_undefined_flag
9542       else
9543         cat conftest.err 1>&5
9544       fi
9545       $RM conftest*
9546       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9547 $as_echo "$archive_cmds_need_lc" >&6; }
9548       ;;
9549     esac
9550   fi
9551   ;;
9552 esac
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
9706
9707
9708
9709
9710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9711 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9712
9713 if test "$GCC" = yes; then
9714   case $host_os in
9715     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9716     *) lt_awk_arg="/^libraries:/" ;;
9717   esac
9718   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9719   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9720     # if the path contains ";" then we assume it to be the separator
9721     # otherwise default to the standard path separator (i.e. ":") - it is
9722     # assumed that no part of a normal pathname contains ";" but that should
9723     # okay in the real world where ";" in dirpaths is itself problematic.
9724     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9725   else
9726     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9727   fi
9728   # Ok, now we have the path, separated by spaces, we can step through it
9729   # and add multilib dir if necessary.
9730   lt_tmp_lt_search_path_spec=
9731   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9732   for lt_sys_path in $lt_search_path_spec; do
9733     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9734       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9735     else
9736       test -d "$lt_sys_path" && \
9737         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9738     fi
9739   done
9740   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9741 BEGIN {RS=" "; FS="/|\n";} {
9742   lt_foo="";
9743   lt_count=0;
9744   for (lt_i = NF; lt_i > 0; lt_i--) {
9745     if ($lt_i != "" && $lt_i != ".") {
9746       if ($lt_i == "..") {
9747         lt_count++;
9748       } else {
9749         if (lt_count == 0) {
9750           lt_foo="/" $lt_i lt_foo;
9751         } else {
9752           lt_count--;
9753         }
9754       }
9755     }
9756   }
9757   if (lt_foo != "") { lt_freq[lt_foo]++; }
9758   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9759 }'`
9760   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9761 else
9762   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9763 fi
9764 library_names_spec=
9765 libname_spec='lib$name'
9766 soname_spec=
9767 shrext_cmds=".so"
9768 postinstall_cmds=
9769 postuninstall_cmds=
9770 finish_cmds=
9771 finish_eval=
9772 shlibpath_var=
9773 shlibpath_overrides_runpath=unknown
9774 version_type=none
9775 dynamic_linker="$host_os ld.so"
9776 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9777 need_lib_prefix=unknown
9778 hardcode_into_libs=no
9779
9780 # when you set need_version to no, make sure it does not cause -set_version
9781 # flags to be left without arguments
9782 need_version=unknown
9783
9784 case $host_os in
9785 aix3*)
9786   version_type=linux
9787   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9788   shlibpath_var=LIBPATH
9789
9790   # AIX 3 has no versioning support, so we append a major version to the name.
9791   soname_spec='${libname}${release}${shared_ext}$major'
9792   ;;
9793
9794 aix[4-9]*)
9795   version_type=linux
9796   need_lib_prefix=no
9797   need_version=no
9798   hardcode_into_libs=yes
9799   if test "$host_cpu" = ia64; then
9800     # AIX 5 supports IA64
9801     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9802     shlibpath_var=LD_LIBRARY_PATH
9803   else
9804     # With GCC up to 2.95.x, collect2 would create an import file
9805     # for dependence libraries.  The import file would start with
9806     # the line `#! .'.  This would cause the generated library to
9807     # depend on `.', always an invalid library.  This was fixed in
9808     # development snapshots of GCC prior to 3.0.
9809     case $host_os in
9810       aix4 | aix4.[01] | aix4.[01].*)
9811       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9812            echo ' yes '
9813            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9814         :
9815       else
9816         can_build_shared=no
9817       fi
9818       ;;
9819     esac
9820     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9821     # soname into executable. Probably we can add versioning support to
9822     # collect2, so additional links can be useful in future.
9823     if test "$aix_use_runtimelinking" = yes; then
9824       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9825       # instead of lib<name>.a to let people know that these are not
9826       # typical AIX shared libraries.
9827       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9828     else
9829       # We preserve .a as extension for shared libraries through AIX4.2
9830       # and later when we are not doing run time linking.
9831       library_names_spec='${libname}${release}.a $libname.a'
9832       soname_spec='${libname}${release}${shared_ext}$major'
9833     fi
9834     shlibpath_var=LIBPATH
9835   fi
9836   ;;
9837
9838 amigaos*)
9839   case $host_cpu in
9840   powerpc)
9841     # Since July 2007 AmigaOS4 officially supports .so libraries.
9842     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9843     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844     ;;
9845   m68k)
9846     library_names_spec='$libname.ixlibrary $libname.a'
9847     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9848     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'
9849     ;;
9850   esac
9851   ;;
9852
9853 beos*)
9854   library_names_spec='${libname}${shared_ext}'
9855   dynamic_linker="$host_os ld.so"
9856   shlibpath_var=LIBRARY_PATH
9857   ;;
9858
9859 bsdi[45]*)
9860   version_type=linux
9861   need_version=no
9862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863   soname_spec='${libname}${release}${shared_ext}$major'
9864   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9865   shlibpath_var=LD_LIBRARY_PATH
9866   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9867   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9868   # the default ld.so.conf also contains /usr/contrib/lib and
9869   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9870   # libtool to hard-code these into programs
9871   ;;
9872
9873 cygwin* | mingw* | pw32* | cegcc*)
9874   version_type=windows
9875   shrext_cmds=".dll"
9876   need_version=no
9877   need_lib_prefix=no
9878
9879   case $GCC,$host_os in
9880   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9881     library_names_spec='$libname.dll.a'
9882     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9883     postinstall_cmds='base_file=`basename \${file}`~
9884       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9885       dldir=$destdir/`dirname \$dlpath`~
9886       test -d \$dldir || mkdir -p \$dldir~
9887       $install_prog $dir/$dlname \$dldir/$dlname~
9888       chmod a+x \$dldir/$dlname~
9889       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9890         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9891       fi'
9892     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9893       dlpath=$dir/\$dldll~
9894        $RM \$dlpath'
9895     shlibpath_overrides_runpath=yes
9896
9897     case $host_os in
9898     cygwin*)
9899       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9900       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9901       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9902       ;;
9903     mingw* | cegcc*)
9904       # MinGW DLLs use traditional 'lib' prefix
9905       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9906       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9907       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9908         # It is most probably a Windows format PATH printed by
9909         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9910         # path with ; separators, and with drive letters. We can handle the
9911         # drive letters (cygwin fileutils understands them), so leave them,
9912         # especially as we might pass files found there to a mingw objdump,
9913         # which wouldn't understand a cygwinified path. Ahh.
9914         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9915       else
9916         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9917       fi
9918       ;;
9919     pw32*)
9920       # pw32 DLLs use 'pw' prefix rather than 'lib'
9921       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9922       ;;
9923     esac
9924     ;;
9925
9926   *)
9927     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9928     ;;
9929   esac
9930   dynamic_linker='Win32 ld.exe'
9931   # FIXME: first we should search . and the directory the executable is in
9932   shlibpath_var=PATH
9933   ;;
9934
9935 darwin* | rhapsody*)
9936   dynamic_linker="$host_os dyld"
9937   version_type=darwin
9938   need_lib_prefix=no
9939   need_version=no
9940   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9941   soname_spec='${libname}${release}${major}$shared_ext'
9942   shlibpath_overrides_runpath=yes
9943   shlibpath_var=DYLD_LIBRARY_PATH
9944   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9945
9946   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9947   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9948   ;;
9949
9950 dgux*)
9951   version_type=linux
9952   need_lib_prefix=no
9953   need_version=no
9954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9955   soname_spec='${libname}${release}${shared_ext}$major'
9956   shlibpath_var=LD_LIBRARY_PATH
9957   ;;
9958
9959 freebsd1*)
9960   dynamic_linker=no
9961   ;;
9962
9963 freebsd* | dragonfly*)
9964   # DragonFly does not have aout.  When/if they implement a new
9965   # versioning mechanism, adjust this.
9966   if test -x /usr/bin/objformat; then
9967     objformat=`/usr/bin/objformat`
9968   else
9969     case $host_os in
9970     freebsd[123]*) objformat=aout ;;
9971     *) objformat=elf ;;
9972     esac
9973   fi
9974   version_type=freebsd-$objformat
9975   case $version_type in
9976     freebsd-elf*)
9977       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9978       need_version=no
9979       need_lib_prefix=no
9980       ;;
9981     freebsd-*)
9982       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9983       need_version=yes
9984       ;;
9985   esac
9986   shlibpath_var=LD_LIBRARY_PATH
9987   case $host_os in
9988   freebsd2*)
9989     shlibpath_overrides_runpath=yes
9990     ;;
9991   freebsd3.[01]* | freebsdelf3.[01]*)
9992     shlibpath_overrides_runpath=yes
9993     hardcode_into_libs=yes
9994     ;;
9995   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9996   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9997     shlibpath_overrides_runpath=no
9998     hardcode_into_libs=yes
9999     ;;
10000   *) # from 4.6 on, and DragonFly
10001     shlibpath_overrides_runpath=yes
10002     hardcode_into_libs=yes
10003     ;;
10004   esac
10005   ;;
10006
10007 gnu*)
10008   version_type=linux
10009   need_lib_prefix=no
10010   need_version=no
10011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10012   soname_spec='${libname}${release}${shared_ext}$major'
10013   shlibpath_var=LD_LIBRARY_PATH
10014   hardcode_into_libs=yes
10015   ;;
10016
10017 hpux9* | hpux10* | hpux11*)
10018   # Give a soname corresponding to the major version so that dld.sl refuses to
10019   # link against other versions.
10020   version_type=sunos
10021   need_lib_prefix=no
10022   need_version=no
10023   case $host_cpu in
10024   ia64*)
10025     shrext_cmds='.so'
10026     hardcode_into_libs=yes
10027     dynamic_linker="$host_os dld.so"
10028     shlibpath_var=LD_LIBRARY_PATH
10029     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10030     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031     soname_spec='${libname}${release}${shared_ext}$major'
10032     if test "X$HPUX_IA64_MODE" = X32; then
10033       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10034     else
10035       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10036     fi
10037     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10038     ;;
10039   hppa*64*)
10040     shrext_cmds='.sl'
10041     hardcode_into_libs=yes
10042     dynamic_linker="$host_os dld.sl"
10043     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10044     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046     soname_spec='${libname}${release}${shared_ext}$major'
10047     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10048     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10049     ;;
10050   *)
10051     shrext_cmds='.sl'
10052     dynamic_linker="$host_os dld.sl"
10053     shlibpath_var=SHLIB_PATH
10054     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056     soname_spec='${libname}${release}${shared_ext}$major'
10057     ;;
10058   esac
10059   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10060   postinstall_cmds='chmod 555 $lib'
10061   ;;
10062
10063 interix[3-9]*)
10064   version_type=linux
10065   need_lib_prefix=no
10066   need_version=no
10067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10068   soname_spec='${libname}${release}${shared_ext}$major'
10069   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10070   shlibpath_var=LD_LIBRARY_PATH
10071   shlibpath_overrides_runpath=no
10072   hardcode_into_libs=yes
10073   ;;
10074
10075 irix5* | irix6* | nonstopux*)
10076   case $host_os in
10077     nonstopux*) version_type=nonstopux ;;
10078     *)
10079         if test "$lt_cv_prog_gnu_ld" = yes; then
10080                 version_type=linux
10081         else
10082                 version_type=irix
10083         fi ;;
10084   esac
10085   need_lib_prefix=no
10086   need_version=no
10087   soname_spec='${libname}${release}${shared_ext}$major'
10088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10089   case $host_os in
10090   irix5* | nonstopux*)
10091     libsuff= shlibsuff=
10092     ;;
10093   *)
10094     case $LD in # libtool.m4 will add one of these switches to LD
10095     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10096       libsuff= shlibsuff= libmagic=32-bit;;
10097     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10098       libsuff=32 shlibsuff=N32 libmagic=N32;;
10099     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10100       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10101     *) libsuff= shlibsuff= libmagic=never-match;;
10102     esac
10103     ;;
10104   esac
10105   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10106   shlibpath_overrides_runpath=no
10107   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10108   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10109   hardcode_into_libs=yes
10110   ;;
10111
10112 # No shared lib support for Linux oldld, aout, or coff.
10113 linux*oldld* | linux*aout* | linux*coff*)
10114   dynamic_linker=no
10115   ;;
10116
10117 # This must be Linux ELF.
10118 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10119   version_type=linux
10120   need_lib_prefix=no
10121   need_version=no
10122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123   soname_spec='${libname}${release}${shared_ext}$major'
10124   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10125   shlibpath_var=LD_LIBRARY_PATH
10126   shlibpath_overrides_runpath=no
10127   # Some binutils ld are patched to set DT_RUNPATH
10128   save_LDFLAGS=$LDFLAGS
10129   save_libdir=$libdir
10130   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10131        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h.  */
10134
10135 int
10136 main ()
10137 {
10138
10139   ;
10140   return 0;
10141 }
10142 _ACEOF
10143 if ac_fn_c_try_link "$LINENO"; then :
10144   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10145   shlibpath_overrides_runpath=yes
10146 fi
10147 fi
10148 rm -f core conftest.err conftest.$ac_objext \
10149     conftest$ac_exeext conftest.$ac_ext
10150   LDFLAGS=$save_LDFLAGS
10151   libdir=$save_libdir
10152
10153   # This implies no fast_install, which is unacceptable.
10154   # Some rework will be needed to allow for fast_install
10155   # before this can be enabled.
10156   hardcode_into_libs=yes
10157
10158   # Append ld.so.conf contents to the search path
10159   if test -f /etc/ld.so.conf; then
10160     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' ' '`
10161     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10162   fi
10163
10164   # We used to test for /lib/ld.so.1 and disable shared libraries on
10165   # powerpc, because MkLinux only supported shared libraries with the
10166   # GNU dynamic linker.  Since this was broken with cross compilers,
10167   # most powerpc-linux boxes support dynamic linking these days and
10168   # people can always --disable-shared, the test was removed, and we
10169   # assume the GNU/Linux dynamic linker is in use.
10170   dynamic_linker='GNU/Linux ld.so'
10171   ;;
10172
10173 netbsdelf*-gnu)
10174   version_type=linux
10175   need_lib_prefix=no
10176   need_version=no
10177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10178   soname_spec='${libname}${release}${shared_ext}$major'
10179   shlibpath_var=LD_LIBRARY_PATH
10180   shlibpath_overrides_runpath=no
10181   hardcode_into_libs=yes
10182   dynamic_linker='NetBSD ld.elf_so'
10183   ;;
10184
10185 netbsd*)
10186   version_type=sunos
10187   need_lib_prefix=no
10188   need_version=no
10189   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10191     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10192     dynamic_linker='NetBSD (a.out) ld.so'
10193   else
10194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10195     soname_spec='${libname}${release}${shared_ext}$major'
10196     dynamic_linker='NetBSD ld.elf_so'
10197   fi
10198   shlibpath_var=LD_LIBRARY_PATH
10199   shlibpath_overrides_runpath=yes
10200   hardcode_into_libs=yes
10201   ;;
10202
10203 newsos6)
10204   version_type=linux
10205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206   shlibpath_var=LD_LIBRARY_PATH
10207   shlibpath_overrides_runpath=yes
10208   ;;
10209
10210 *nto* | *qnx*)
10211   version_type=qnx
10212   need_lib_prefix=no
10213   need_version=no
10214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215   soname_spec='${libname}${release}${shared_ext}$major'
10216   shlibpath_var=LD_LIBRARY_PATH
10217   shlibpath_overrides_runpath=no
10218   hardcode_into_libs=yes
10219   dynamic_linker='ldqnx.so'
10220   ;;
10221
10222 openbsd*)
10223   version_type=sunos
10224   sys_lib_dlsearch_path_spec="/usr/lib"
10225   need_lib_prefix=no
10226   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10227   case $host_os in
10228     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10229     *)                          need_version=no  ;;
10230   esac
10231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10232   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10233   shlibpath_var=LD_LIBRARY_PATH
10234   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10235     case $host_os in
10236       openbsd2.[89] | openbsd2.[89].*)
10237         shlibpath_overrides_runpath=no
10238         ;;
10239       *)
10240         shlibpath_overrides_runpath=yes
10241         ;;
10242       esac
10243   else
10244     shlibpath_overrides_runpath=yes
10245   fi
10246   ;;
10247
10248 os2*)
10249   libname_spec='$name'
10250   shrext_cmds=".dll"
10251   need_lib_prefix=no
10252   library_names_spec='$libname${shared_ext} $libname.a'
10253   dynamic_linker='OS/2 ld.exe'
10254   shlibpath_var=LIBPATH
10255   ;;
10256
10257 osf3* | osf4* | osf5*)
10258   version_type=osf
10259   need_lib_prefix=no
10260   need_version=no
10261   soname_spec='${libname}${release}${shared_ext}$major'
10262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10263   shlibpath_var=LD_LIBRARY_PATH
10264   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10265   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10266   ;;
10267
10268 rdos*)
10269   dynamic_linker=no
10270   ;;
10271
10272 solaris*)
10273   version_type=linux
10274   need_lib_prefix=no
10275   need_version=no
10276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277   soname_spec='${libname}${release}${shared_ext}$major'
10278   shlibpath_var=LD_LIBRARY_PATH
10279   shlibpath_overrides_runpath=yes
10280   hardcode_into_libs=yes
10281   # ldd complains unless libraries are executable
10282   postinstall_cmds='chmod +x $lib'
10283   ;;
10284
10285 sunos4*)
10286   version_type=sunos
10287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10288   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10289   shlibpath_var=LD_LIBRARY_PATH
10290   shlibpath_overrides_runpath=yes
10291   if test "$with_gnu_ld" = yes; then
10292     need_lib_prefix=no
10293   fi
10294   need_version=yes
10295   ;;
10296
10297 sysv4 | sysv4.3*)
10298   version_type=linux
10299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300   soname_spec='${libname}${release}${shared_ext}$major'
10301   shlibpath_var=LD_LIBRARY_PATH
10302   case $host_vendor in
10303     sni)
10304       shlibpath_overrides_runpath=no
10305       need_lib_prefix=no
10306       runpath_var=LD_RUN_PATH
10307       ;;
10308     siemens)
10309       need_lib_prefix=no
10310       ;;
10311     motorola)
10312       need_lib_prefix=no
10313       need_version=no
10314       shlibpath_overrides_runpath=no
10315       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10316       ;;
10317   esac
10318   ;;
10319
10320 sysv4*MP*)
10321   if test -d /usr/nec ;then
10322     version_type=linux
10323     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10324     soname_spec='$libname${shared_ext}.$major'
10325     shlibpath_var=LD_LIBRARY_PATH
10326   fi
10327   ;;
10328
10329 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10330   version_type=freebsd-elf
10331   need_lib_prefix=no
10332   need_version=no
10333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10334   soname_spec='${libname}${release}${shared_ext}$major'
10335   shlibpath_var=LD_LIBRARY_PATH
10336   shlibpath_overrides_runpath=yes
10337   hardcode_into_libs=yes
10338   if test "$with_gnu_ld" = yes; then
10339     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10340   else
10341     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10342     case $host_os in
10343       sco3.2v5*)
10344         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10345         ;;
10346     esac
10347   fi
10348   sys_lib_dlsearch_path_spec='/usr/lib'
10349   ;;
10350
10351 tpf*)
10352   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10353   version_type=linux
10354   need_lib_prefix=no
10355   need_version=no
10356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357   shlibpath_var=LD_LIBRARY_PATH
10358   shlibpath_overrides_runpath=no
10359   hardcode_into_libs=yes
10360   ;;
10361
10362 uts4*)
10363   version_type=linux
10364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365   soname_spec='${libname}${release}${shared_ext}$major'
10366   shlibpath_var=LD_LIBRARY_PATH
10367   ;;
10368
10369 *)
10370   dynamic_linker=no
10371   ;;
10372 esac
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10374 $as_echo "$dynamic_linker" >&6; }
10375 test "$dynamic_linker" = no && can_build_shared=no
10376
10377 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10378 if test "$GCC" = yes; then
10379   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10380 fi
10381
10382 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10383   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10384 fi
10385 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10386   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10387 fi
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
10471
10472
10473
10474
10475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10476 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10477 hardcode_action=
10478 if test -n "$hardcode_libdir_flag_spec" ||
10479    test -n "$runpath_var" ||
10480    test "X$hardcode_automatic" = "Xyes" ; then
10481
10482   # We can hardcode non-existent directories.
10483   if test "$hardcode_direct" != no &&
10484      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10485      # have to relink, otherwise we might link with an installed library
10486      # when we should be linking with a yet-to-be-installed one
10487      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10488      test "$hardcode_minus_L" != no; then
10489     # Linking always hardcodes the temporary library directory.
10490     hardcode_action=relink
10491   else
10492     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10493     hardcode_action=immediate
10494   fi
10495 else
10496   # We cannot hardcode anything, or else we can only hardcode existing
10497   # directories.
10498   hardcode_action=unsupported
10499 fi
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10501 $as_echo "$hardcode_action" >&6; }
10502
10503 if test "$hardcode_action" = relink ||
10504    test "$inherit_rpath" = yes; then
10505   # Fast installation is not supported
10506   enable_fast_install=no
10507 elif test "$shlibpath_overrides_runpath" = yes ||
10508      test "$enable_shared" = no; then
10509   # Fast installation is not necessary
10510   enable_fast_install=needless
10511 fi
10512
10513
10514
10515
10516
10517
10518   if test "x$enable_dlopen" != xyes; then
10519   enable_dlopen=unknown
10520   enable_dlopen_self=unknown
10521   enable_dlopen_self_static=unknown
10522 else
10523   lt_cv_dlopen=no
10524   lt_cv_dlopen_libs=
10525
10526   case $host_os in
10527   beos*)
10528     lt_cv_dlopen="load_add_on"
10529     lt_cv_dlopen_libs=
10530     lt_cv_dlopen_self=yes
10531     ;;
10532
10533   mingw* | pw32* | cegcc*)
10534     lt_cv_dlopen="LoadLibrary"
10535     lt_cv_dlopen_libs=
10536     ;;
10537
10538   cygwin*)
10539     lt_cv_dlopen="dlopen"
10540     lt_cv_dlopen_libs=
10541     ;;
10542
10543   darwin*)
10544   # if libdl is installed we need to link against it
10545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10546 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10547 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10548   $as_echo_n "(cached) " >&6
10549 else
10550   ac_check_lib_save_LIBS=$LIBS
10551 LIBS="-ldl  $LIBS"
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h.  */
10554
10555 /* Override any GCC internal prototype to avoid an error.
10556    Use char because int might match the return type of a GCC
10557    builtin and then its argument prototype would still apply.  */
10558 #ifdef __cplusplus
10559 extern "C"
10560 #endif
10561 char dlopen ();
10562 int
10563 main ()
10564 {
10565 return dlopen ();
10566   ;
10567   return 0;
10568 }
10569 _ACEOF
10570 if ac_fn_c_try_link "$LINENO"; then :
10571   ac_cv_lib_dl_dlopen=yes
10572 else
10573   ac_cv_lib_dl_dlopen=no
10574 fi
10575 rm -f core conftest.err conftest.$ac_objext \
10576     conftest$ac_exeext conftest.$ac_ext
10577 LIBS=$ac_check_lib_save_LIBS
10578 fi
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10580 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10581 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10582   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10583 else
10584
10585     lt_cv_dlopen="dyld"
10586     lt_cv_dlopen_libs=
10587     lt_cv_dlopen_self=yes
10588
10589 fi
10590
10591     ;;
10592
10593   *)
10594     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10595 if test "x$ac_cv_func_shl_load" = x""yes; then :
10596   lt_cv_dlopen="shl_load"
10597 else
10598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10599 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10600 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10601   $as_echo_n "(cached) " >&6
10602 else
10603   ac_check_lib_save_LIBS=$LIBS
10604 LIBS="-ldld  $LIBS"
10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h.  */
10607
10608 /* Override any GCC internal prototype to avoid an error.
10609    Use char because int might match the return type of a GCC
10610    builtin and then its argument prototype would still apply.  */
10611 #ifdef __cplusplus
10612 extern "C"
10613 #endif
10614 char shl_load ();
10615 int
10616 main ()
10617 {
10618 return shl_load ();
10619   ;
10620   return 0;
10621 }
10622 _ACEOF
10623 if ac_fn_c_try_link "$LINENO"; then :
10624   ac_cv_lib_dld_shl_load=yes
10625 else
10626   ac_cv_lib_dld_shl_load=no
10627 fi
10628 rm -f core conftest.err conftest.$ac_objext \
10629     conftest$ac_exeext conftest.$ac_ext
10630 LIBS=$ac_check_lib_save_LIBS
10631 fi
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10633 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10634 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10635   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10636 else
10637   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10638 if test "x$ac_cv_func_dlopen" = x""yes; then :
10639   lt_cv_dlopen="dlopen"
10640 else
10641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10642 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10643 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10644   $as_echo_n "(cached) " >&6
10645 else
10646   ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-ldl  $LIBS"
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h.  */
10650
10651 /* Override any GCC internal prototype to avoid an error.
10652    Use char because int might match the return type of a GCC
10653    builtin and then its argument prototype would still apply.  */
10654 #ifdef __cplusplus
10655 extern "C"
10656 #endif
10657 char dlopen ();
10658 int
10659 main ()
10660 {
10661 return dlopen ();
10662   ;
10663   return 0;
10664 }
10665 _ACEOF
10666 if ac_fn_c_try_link "$LINENO"; then :
10667   ac_cv_lib_dl_dlopen=yes
10668 else
10669   ac_cv_lib_dl_dlopen=no
10670 fi
10671 rm -f core conftest.err conftest.$ac_objext \
10672     conftest$ac_exeext conftest.$ac_ext
10673 LIBS=$ac_check_lib_save_LIBS
10674 fi
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10676 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10677 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10678   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10679 else
10680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10681 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10682 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10683   $as_echo_n "(cached) " >&6
10684 else
10685   ac_check_lib_save_LIBS=$LIBS
10686 LIBS="-lsvld  $LIBS"
10687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h.  */
10689
10690 /* Override any GCC internal prototype to avoid an error.
10691    Use char because int might match the return type of a GCC
10692    builtin and then its argument prototype would still apply.  */
10693 #ifdef __cplusplus
10694 extern "C"
10695 #endif
10696 char dlopen ();
10697 int
10698 main ()
10699 {
10700 return dlopen ();
10701   ;
10702   return 0;
10703 }
10704 _ACEOF
10705 if ac_fn_c_try_link "$LINENO"; then :
10706   ac_cv_lib_svld_dlopen=yes
10707 else
10708   ac_cv_lib_svld_dlopen=no
10709 fi
10710 rm -f core conftest.err conftest.$ac_objext \
10711     conftest$ac_exeext conftest.$ac_ext
10712 LIBS=$ac_check_lib_save_LIBS
10713 fi
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10715 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10716 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10717   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10718 else
10719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10720 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10721 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10722   $as_echo_n "(cached) " >&6
10723 else
10724   ac_check_lib_save_LIBS=$LIBS
10725 LIBS="-ldld  $LIBS"
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h.  */
10728
10729 /* Override any GCC internal prototype to avoid an error.
10730    Use char because int might match the return type of a GCC
10731    builtin and then its argument prototype would still apply.  */
10732 #ifdef __cplusplus
10733 extern "C"
10734 #endif
10735 char dld_link ();
10736 int
10737 main ()
10738 {
10739 return dld_link ();
10740   ;
10741   return 0;
10742 }
10743 _ACEOF
10744 if ac_fn_c_try_link "$LINENO"; then :
10745   ac_cv_lib_dld_dld_link=yes
10746 else
10747   ac_cv_lib_dld_dld_link=no
10748 fi
10749 rm -f core conftest.err conftest.$ac_objext \
10750     conftest$ac_exeext conftest.$ac_ext
10751 LIBS=$ac_check_lib_save_LIBS
10752 fi
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10754 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10755 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10756   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10757 fi
10758
10759
10760 fi
10761
10762
10763 fi
10764
10765
10766 fi
10767
10768
10769 fi
10770
10771
10772 fi
10773
10774     ;;
10775   esac
10776
10777   if test "x$lt_cv_dlopen" != xno; then
10778     enable_dlopen=yes
10779   else
10780     enable_dlopen=no
10781   fi
10782
10783   case $lt_cv_dlopen in
10784   dlopen)
10785     save_CPPFLAGS="$CPPFLAGS"
10786     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10787
10788     save_LDFLAGS="$LDFLAGS"
10789     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10790
10791     save_LIBS="$LIBS"
10792     LIBS="$lt_cv_dlopen_libs $LIBS"
10793
10794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10795 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10796 if test "${lt_cv_dlopen_self+set}" = set; then :
10797   $as_echo_n "(cached) " >&6
10798 else
10799           if test "$cross_compiling" = yes; then :
10800   lt_cv_dlopen_self=cross
10801 else
10802   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10803   lt_status=$lt_dlunknown
10804   cat > conftest.$ac_ext <<_LT_EOF
10805 #line 10805 "configure"
10806 #include "confdefs.h"
10807
10808 #if HAVE_DLFCN_H
10809 #include <dlfcn.h>
10810 #endif
10811
10812 #include <stdio.h>
10813
10814 #ifdef RTLD_GLOBAL
10815 #  define LT_DLGLOBAL           RTLD_GLOBAL
10816 #else
10817 #  ifdef DL_GLOBAL
10818 #    define LT_DLGLOBAL         DL_GLOBAL
10819 #  else
10820 #    define LT_DLGLOBAL         0
10821 #  endif
10822 #endif
10823
10824 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10825    find out it does not work in some platform. */
10826 #ifndef LT_DLLAZY_OR_NOW
10827 #  ifdef RTLD_LAZY
10828 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10829 #  else
10830 #    ifdef DL_LAZY
10831 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10832 #    else
10833 #      ifdef RTLD_NOW
10834 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10835 #      else
10836 #        ifdef DL_NOW
10837 #          define LT_DLLAZY_OR_NOW      DL_NOW
10838 #        else
10839 #          define LT_DLLAZY_OR_NOW      0
10840 #        endif
10841 #      endif
10842 #    endif
10843 #  endif
10844 #endif
10845
10846 void fnord() { int i=42;}
10847 int main ()
10848 {
10849   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10850   int status = $lt_dlunknown;
10851
10852   if (self)
10853     {
10854       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10855       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10856       /* dlclose (self); */
10857     }
10858   else
10859     puts (dlerror ());
10860
10861   return status;
10862 }
10863 _LT_EOF
10864   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10865   (eval $ac_link) 2>&5
10866   ac_status=$?
10867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10868   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10869     (./conftest; exit; ) >&5 2>/dev/null
10870     lt_status=$?
10871     case x$lt_status in
10872       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10873       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10874       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10875     esac
10876   else :
10877     # compilation failed
10878     lt_cv_dlopen_self=no
10879   fi
10880 fi
10881 rm -fr conftest*
10882
10883
10884 fi
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10886 $as_echo "$lt_cv_dlopen_self" >&6; }
10887
10888     if test "x$lt_cv_dlopen_self" = xyes; then
10889       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10890       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10891 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10892 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10893   $as_echo_n "(cached) " >&6
10894 else
10895           if test "$cross_compiling" = yes; then :
10896   lt_cv_dlopen_self_static=cross
10897 else
10898   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10899   lt_status=$lt_dlunknown
10900   cat > conftest.$ac_ext <<_LT_EOF
10901 #line 10901 "configure"
10902 #include "confdefs.h"
10903
10904 #if HAVE_DLFCN_H
10905 #include <dlfcn.h>
10906 #endif
10907
10908 #include <stdio.h>
10909
10910 #ifdef RTLD_GLOBAL
10911 #  define LT_DLGLOBAL           RTLD_GLOBAL
10912 #else
10913 #  ifdef DL_GLOBAL
10914 #    define LT_DLGLOBAL         DL_GLOBAL
10915 #  else
10916 #    define LT_DLGLOBAL         0
10917 #  endif
10918 #endif
10919
10920 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10921    find out it does not work in some platform. */
10922 #ifndef LT_DLLAZY_OR_NOW
10923 #  ifdef RTLD_LAZY
10924 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10925 #  else
10926 #    ifdef DL_LAZY
10927 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10928 #    else
10929 #      ifdef RTLD_NOW
10930 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10931 #      else
10932 #        ifdef DL_NOW
10933 #          define LT_DLLAZY_OR_NOW      DL_NOW
10934 #        else
10935 #          define LT_DLLAZY_OR_NOW      0
10936 #        endif
10937 #      endif
10938 #    endif
10939 #  endif
10940 #endif
10941
10942 void fnord() { int i=42;}
10943 int main ()
10944 {
10945   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10946   int status = $lt_dlunknown;
10947
10948   if (self)
10949     {
10950       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10951       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10952       /* dlclose (self); */
10953     }
10954   else
10955     puts (dlerror ());
10956
10957   return status;
10958 }
10959 _LT_EOF
10960   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10961   (eval $ac_link) 2>&5
10962   ac_status=$?
10963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10964   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10965     (./conftest; exit; ) >&5 2>/dev/null
10966     lt_status=$?
10967     case x$lt_status in
10968       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10969       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10970       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10971     esac
10972   else :
10973     # compilation failed
10974     lt_cv_dlopen_self_static=no
10975   fi
10976 fi
10977 rm -fr conftest*
10978
10979
10980 fi
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10982 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10983     fi
10984
10985     CPPFLAGS="$save_CPPFLAGS"
10986     LDFLAGS="$save_LDFLAGS"
10987     LIBS="$save_LIBS"
10988     ;;
10989   esac
10990
10991   case $lt_cv_dlopen_self in
10992   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10993   *) enable_dlopen_self=unknown ;;
10994   esac
10995
10996   case $lt_cv_dlopen_self_static in
10997   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10998   *) enable_dlopen_self_static=unknown ;;
10999   esac
11000 fi
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018 striplib=
11019 old_striplib=
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11021 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11022 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11023   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11024   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11026 $as_echo "yes" >&6; }
11027 else
11028 # FIXME - insert some real tests, host_os isn't really good enough
11029   case $host_os in
11030   darwin*)
11031     if test -n "$STRIP" ; then
11032       striplib="$STRIP -x"
11033       old_striplib="$STRIP -S"
11034       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11035 $as_echo "yes" >&6; }
11036     else
11037       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11039     fi
11040     ;;
11041   *)
11042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11044     ;;
11045   esac
11046 fi
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059   # Report which library types will actually be built
11060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11061 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11063 $as_echo "$can_build_shared" >&6; }
11064
11065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11066 $as_echo_n "checking whether to build shared libraries... " >&6; }
11067   test "$can_build_shared" = "no" && enable_shared=no
11068
11069   # On AIX, shared libraries and static libraries use the same namespace, and
11070   # are all built from PIC.
11071   case $host_os in
11072   aix3*)
11073     test "$enable_shared" = yes && enable_static=no
11074     if test -n "$RANLIB"; then
11075       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11076       postinstall_cmds='$RANLIB $lib'
11077     fi
11078     ;;
11079
11080   aix[4-9]*)
11081     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11082       test "$enable_shared" = yes && enable_static=no
11083     fi
11084     ;;
11085   esac
11086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11087 $as_echo "$enable_shared" >&6; }
11088
11089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11090 $as_echo_n "checking whether to build static libraries... " >&6; }
11091   # Make sure either enable_shared or enable_static is yes.
11092   test "$enable_shared" = yes || enable_static=yes
11093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11094 $as_echo "$enable_static" >&6; }
11095
11096
11097
11098
11099 fi
11100 ac_ext=c
11101 ac_cpp='$CPP $CPPFLAGS'
11102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11105
11106 CC="$lt_save_CC"
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120         ac_config_commands="$ac_config_commands libtool"
11121
11122
11123
11124
11125 # Only expand once:
11126
11127
11128
11129 ac_ext=cpp
11130 ac_cpp='$CXXCPP $CPPFLAGS'
11131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11134 if test -z "$CXX"; then
11135   if test -n "$CCC"; then
11136     CXX=$CCC
11137   else
11138     if test -n "$ac_tool_prefix"; then
11139   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11140   do
11141     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11144 $as_echo_n "checking for $ac_word... " >&6; }
11145 if test "${ac_cv_prog_CXX+set}" = set; then :
11146   $as_echo_n "(cached) " >&6
11147 else
11148   if test -n "$CXX"; then
11149   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11150 else
11151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152 for as_dir in $PATH
11153 do
11154   IFS=$as_save_IFS
11155   test -z "$as_dir" && as_dir=.
11156     for ac_exec_ext in '' $ac_executable_extensions; do
11157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11158     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11160     break 2
11161   fi
11162 done
11163   done
11164 IFS=$as_save_IFS
11165
11166 fi
11167 fi
11168 CXX=$ac_cv_prog_CXX
11169 if test -n "$CXX"; then
11170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11171 $as_echo "$CXX" >&6; }
11172 else
11173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174 $as_echo "no" >&6; }
11175 fi
11176
11177
11178     test -n "$CXX" && break
11179   done
11180 fi
11181 if test -z "$CXX"; then
11182   ac_ct_CXX=$CXX
11183   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11184 do
11185   # Extract the first word of "$ac_prog", so it can be a program name with args.
11186 set dummy $ac_prog; ac_word=$2
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11188 $as_echo_n "checking for $ac_word... " >&6; }
11189 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11190   $as_echo_n "(cached) " >&6
11191 else
11192   if test -n "$ac_ct_CXX"; then
11193   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11194 else
11195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196 for as_dir in $PATH
11197 do
11198   IFS=$as_save_IFS
11199   test -z "$as_dir" && as_dir=.
11200     for ac_exec_ext in '' $ac_executable_extensions; do
11201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11202     ac_cv_prog_ac_ct_CXX="$ac_prog"
11203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11204     break 2
11205   fi
11206 done
11207   done
11208 IFS=$as_save_IFS
11209
11210 fi
11211 fi
11212 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11213 if test -n "$ac_ct_CXX"; then
11214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11215 $as_echo "$ac_ct_CXX" >&6; }
11216 else
11217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11218 $as_echo "no" >&6; }
11219 fi
11220
11221
11222   test -n "$ac_ct_CXX" && break
11223 done
11224
11225   if test "x$ac_ct_CXX" = x; then
11226     CXX="g++"
11227   else
11228     case $cross_compiling:$ac_tool_warned in
11229 yes:)
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11232 ac_tool_warned=yes ;;
11233 esac
11234     CXX=$ac_ct_CXX
11235   fi
11236 fi
11237
11238   fi
11239 fi
11240 # Provide some information about the compiler.
11241 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11242 set X $ac_compile
11243 ac_compiler=$2
11244 for ac_option in --version -v -V -qversion; do
11245   { { ac_try="$ac_compiler $ac_option >&5"
11246 case "(($ac_try" in
11247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248   *) ac_try_echo=$ac_try;;
11249 esac
11250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11251 $as_echo "$ac_try_echo"; } >&5
11252   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11253   ac_status=$?
11254   if test -s conftest.err; then
11255     sed '10a\
11256 ... rest of stderr output deleted ...
11257          10q' conftest.err >conftest.er1
11258     cat conftest.er1 >&5
11259   fi
11260   rm -f conftest.er1 conftest.err
11261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11262   test $ac_status = 0; }
11263 done
11264
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11266 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11267 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11268   $as_echo_n "(cached) " >&6
11269 else
11270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h.  */
11272
11273 int
11274 main ()
11275 {
11276 #ifndef __GNUC__
11277        choke me
11278 #endif
11279
11280   ;
11281   return 0;
11282 }
11283 _ACEOF
11284 if ac_fn_cxx_try_compile "$LINENO"; then :
11285   ac_compiler_gnu=yes
11286 else
11287   ac_compiler_gnu=no
11288 fi
11289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11290 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11291
11292 fi
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11294 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11295 if test $ac_compiler_gnu = yes; then
11296   GXX=yes
11297 else
11298   GXX=
11299 fi
11300 ac_test_CXXFLAGS=${CXXFLAGS+set}
11301 ac_save_CXXFLAGS=$CXXFLAGS
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11303 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11304 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11305   $as_echo_n "(cached) " >&6
11306 else
11307   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11308    ac_cxx_werror_flag=yes
11309    ac_cv_prog_cxx_g=no
11310    CXXFLAGS="-g"
11311    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h.  */
11313
11314 int
11315 main ()
11316 {
11317
11318   ;
11319   return 0;
11320 }
11321 _ACEOF
11322 if ac_fn_cxx_try_compile "$LINENO"; then :
11323   ac_cv_prog_cxx_g=yes
11324 else
11325   CXXFLAGS=""
11326       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h.  */
11328
11329 int
11330 main ()
11331 {
11332
11333   ;
11334   return 0;
11335 }
11336 _ACEOF
11337 if ac_fn_cxx_try_compile "$LINENO"; then :
11338
11339 else
11340   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11341          CXXFLAGS="-g"
11342          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h.  */
11344
11345 int
11346 main ()
11347 {
11348
11349   ;
11350   return 0;
11351 }
11352 _ACEOF
11353 if ac_fn_cxx_try_compile "$LINENO"; then :
11354   ac_cv_prog_cxx_g=yes
11355 fi
11356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11357 fi
11358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11359 fi
11360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11361    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11362 fi
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11364 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11365 if test "$ac_test_CXXFLAGS" = set; then
11366   CXXFLAGS=$ac_save_CXXFLAGS
11367 elif test $ac_cv_prog_cxx_g = yes; then
11368   if test "$GXX" = yes; then
11369     CXXFLAGS="-g -O2"
11370   else
11371     CXXFLAGS="-g"
11372   fi
11373 else
11374   if test "$GXX" = yes; then
11375     CXXFLAGS="-O2"
11376   else
11377     CXXFLAGS=
11378   fi
11379 fi
11380 ac_ext=c
11381 ac_cpp='$CPP $CPPFLAGS'
11382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11385
11386 depcc="$CXX"  am_compiler_list=
11387
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11389 $as_echo_n "checking dependency style of $depcc... " >&6; }
11390 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11391   $as_echo_n "(cached) " >&6
11392 else
11393   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11394   # We make a subdir and do the tests there.  Otherwise we can end up
11395   # making bogus files that we don't know about and never remove.  For
11396   # instance it was reported that on HP-UX the gcc test will end up
11397   # making a dummy file named `D' -- because `-MD' means `put the output
11398   # in D'.
11399   mkdir conftest.dir
11400   # Copy depcomp to subdir because otherwise we won't find it if we're
11401   # using a relative directory.
11402   cp "$am_depcomp" conftest.dir
11403   cd conftest.dir
11404   # We will build objects and dependencies in a subdirectory because
11405   # it helps to detect inapplicable dependency modes.  For instance
11406   # both Tru64's cc and ICC support -MD to output dependencies as a
11407   # side effect of compilation, but ICC will put the dependencies in
11408   # the current directory while Tru64 will put them in the object
11409   # directory.
11410   mkdir sub
11411
11412   am_cv_CXX_dependencies_compiler_type=none
11413   if test "$am_compiler_list" = ""; then
11414      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11415   fi
11416   am__universal=false
11417   case " $depcc " in #(
11418      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11419      esac
11420
11421   for depmode in $am_compiler_list; do
11422     # Setup a source with many dependencies, because some compilers
11423     # like to wrap large dependency lists on column 80 (with \), and
11424     # we should not choose a depcomp mode which is confused by this.
11425     #
11426     # We need to recreate these files for each test, as the compiler may
11427     # overwrite some of them when testing with obscure command lines.
11428     # This happens at least with the AIX C compiler.
11429     : > sub/conftest.c
11430     for i in 1 2 3 4 5 6; do
11431       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11432       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11433       # Solaris 8's {/usr,}/bin/sh.
11434       touch sub/conftst$i.h
11435     done
11436     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11437
11438     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11439     # mode.  It turns out that the SunPro C++ compiler does not properly
11440     # handle `-M -o', and we need to detect this.  Also, some Intel
11441     # versions had trouble with output in subdirs
11442     am__obj=sub/conftest.${OBJEXT-o}
11443     am__minus_obj="-o $am__obj"
11444     case $depmode in
11445     gcc)
11446       # This depmode causes a compiler race in universal mode.
11447       test "$am__universal" = false || continue
11448       ;;
11449     nosideeffect)
11450       # after this tag, mechanisms are not by side-effect, so they'll
11451       # only be used when explicitly requested
11452       if test "x$enable_dependency_tracking" = xyes; then
11453         continue
11454       else
11455         break
11456       fi
11457       ;;
11458     msvisualcpp | msvcmsys)
11459       # This compiler won't grok `-c -o', but also, the minuso test has
11460       # not run yet.  These depmodes are late enough in the game, and
11461       # so weak that their functioning should not be impacted.
11462       am__obj=conftest.${OBJEXT-o}
11463       am__minus_obj=
11464       ;;
11465     none) break ;;
11466     esac
11467     if depmode=$depmode \
11468        source=sub/conftest.c object=$am__obj \
11469        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11470        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11471          >/dev/null 2>conftest.err &&
11472        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11473        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11474        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11475        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11476       # icc doesn't choke on unknown options, it will just issue warnings
11477       # or remarks (even with -Werror).  So we grep stderr for any message
11478       # that says an option was ignored or not supported.
11479       # When given -MP, icc 7.0 and 7.1 complain thusly:
11480       #   icc: Command line warning: ignoring option '-M'; no argument required
11481       # The diagnosis changed in icc 8.0:
11482       #   icc: Command line remark: option '-MP' not supported
11483       if (grep 'ignoring option' conftest.err ||
11484           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11485         am_cv_CXX_dependencies_compiler_type=$depmode
11486         break
11487       fi
11488     fi
11489   done
11490
11491   cd ..
11492   rm -rf conftest.dir
11493 else
11494   am_cv_CXX_dependencies_compiler_type=none
11495 fi
11496
11497 fi
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11499 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11500 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11501
11502  if
11503   test "x$enable_dependency_tracking" != xno \
11504   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11505   am__fastdepCXX_TRUE=
11506   am__fastdepCXX_FALSE='#'
11507 else
11508   am__fastdepCXX_TRUE='#'
11509   am__fastdepCXX_FALSE=
11510 fi
11511
11512
11513
11514 ac_ext=cpp
11515 ac_cpp='$CXXCPP $CPPFLAGS'
11516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11519 if test -z "$CXX"; then
11520   if test -n "$CCC"; then
11521     CXX=$CCC
11522   else
11523     if test -n "$ac_tool_prefix"; then
11524   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11525   do
11526     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11529 $as_echo_n "checking for $ac_word... " >&6; }
11530 if test "${ac_cv_prog_CXX+set}" = set; then :
11531   $as_echo_n "(cached) " >&6
11532 else
11533   if test -n "$CXX"; then
11534   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11535 else
11536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537 for as_dir in $PATH
11538 do
11539   IFS=$as_save_IFS
11540   test -z "$as_dir" && as_dir=.
11541     for ac_exec_ext in '' $ac_executable_extensions; do
11542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11543     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11545     break 2
11546   fi
11547 done
11548   done
11549 IFS=$as_save_IFS
11550
11551 fi
11552 fi
11553 CXX=$ac_cv_prog_CXX
11554 if test -n "$CXX"; then
11555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11556 $as_echo "$CXX" >&6; }
11557 else
11558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559 $as_echo "no" >&6; }
11560 fi
11561
11562
11563     test -n "$CXX" && break
11564   done
11565 fi
11566 if test -z "$CXX"; then
11567   ac_ct_CXX=$CXX
11568   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11569 do
11570   # Extract the first word of "$ac_prog", so it can be a program name with args.
11571 set dummy $ac_prog; ac_word=$2
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11573 $as_echo_n "checking for $ac_word... " >&6; }
11574 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11575   $as_echo_n "(cached) " >&6
11576 else
11577   if test -n "$ac_ct_CXX"; then
11578   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11579 else
11580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11581 for as_dir in $PATH
11582 do
11583   IFS=$as_save_IFS
11584   test -z "$as_dir" && as_dir=.
11585     for ac_exec_ext in '' $ac_executable_extensions; do
11586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11587     ac_cv_prog_ac_ct_CXX="$ac_prog"
11588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11589     break 2
11590   fi
11591 done
11592   done
11593 IFS=$as_save_IFS
11594
11595 fi
11596 fi
11597 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11598 if test -n "$ac_ct_CXX"; then
11599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11600 $as_echo "$ac_ct_CXX" >&6; }
11601 else
11602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; }
11604 fi
11605
11606
11607   test -n "$ac_ct_CXX" && break
11608 done
11609
11610   if test "x$ac_ct_CXX" = x; then
11611     CXX="g++"
11612   else
11613     case $cross_compiling:$ac_tool_warned in
11614 yes:)
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11617 ac_tool_warned=yes ;;
11618 esac
11619     CXX=$ac_ct_CXX
11620   fi
11621 fi
11622
11623   fi
11624 fi
11625 # Provide some information about the compiler.
11626 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11627 set X $ac_compile
11628 ac_compiler=$2
11629 for ac_option in --version -v -V -qversion; do
11630   { { ac_try="$ac_compiler $ac_option >&5"
11631 case "(($ac_try" in
11632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633   *) ac_try_echo=$ac_try;;
11634 esac
11635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11636 $as_echo "$ac_try_echo"; } >&5
11637   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11638   ac_status=$?
11639   if test -s conftest.err; then
11640     sed '10a\
11641 ... rest of stderr output deleted ...
11642          10q' conftest.err >conftest.er1
11643     cat conftest.er1 >&5
11644   fi
11645   rm -f conftest.er1 conftest.err
11646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11647   test $ac_status = 0; }
11648 done
11649
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11651 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11652 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11653   $as_echo_n "(cached) " >&6
11654 else
11655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11656 /* end confdefs.h.  */
11657
11658 int
11659 main ()
11660 {
11661 #ifndef __GNUC__
11662        choke me
11663 #endif
11664
11665   ;
11666   return 0;
11667 }
11668 _ACEOF
11669 if ac_fn_cxx_try_compile "$LINENO"; then :
11670   ac_compiler_gnu=yes
11671 else
11672   ac_compiler_gnu=no
11673 fi
11674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11675 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11676
11677 fi
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11679 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11680 if test $ac_compiler_gnu = yes; then
11681   GXX=yes
11682 else
11683   GXX=
11684 fi
11685 ac_test_CXXFLAGS=${CXXFLAGS+set}
11686 ac_save_CXXFLAGS=$CXXFLAGS
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11688 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11689 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11690   $as_echo_n "(cached) " >&6
11691 else
11692   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11693    ac_cxx_werror_flag=yes
11694    ac_cv_prog_cxx_g=no
11695    CXXFLAGS="-g"
11696    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h.  */
11698
11699 int
11700 main ()
11701 {
11702
11703   ;
11704   return 0;
11705 }
11706 _ACEOF
11707 if ac_fn_cxx_try_compile "$LINENO"; then :
11708   ac_cv_prog_cxx_g=yes
11709 else
11710   CXXFLAGS=""
11711       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h.  */
11713
11714 int
11715 main ()
11716 {
11717
11718   ;
11719   return 0;
11720 }
11721 _ACEOF
11722 if ac_fn_cxx_try_compile "$LINENO"; then :
11723
11724 else
11725   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11726          CXXFLAGS="-g"
11727          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h.  */
11729
11730 int
11731 main ()
11732 {
11733
11734   ;
11735   return 0;
11736 }
11737 _ACEOF
11738 if ac_fn_cxx_try_compile "$LINENO"; then :
11739   ac_cv_prog_cxx_g=yes
11740 fi
11741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11742 fi
11743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11744 fi
11745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11747 fi
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11749 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11750 if test "$ac_test_CXXFLAGS" = set; then
11751   CXXFLAGS=$ac_save_CXXFLAGS
11752 elif test $ac_cv_prog_cxx_g = yes; then
11753   if test "$GXX" = yes; then
11754     CXXFLAGS="-g -O2"
11755   else
11756     CXXFLAGS="-g"
11757   fi
11758 else
11759   if test "$GXX" = yes; then
11760     CXXFLAGS="-O2"
11761   else
11762     CXXFLAGS=
11763   fi
11764 fi
11765 ac_ext=c
11766 ac_cpp='$CPP $CPPFLAGS'
11767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11770
11771 depcc="$CXX"  am_compiler_list=
11772
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11774 $as_echo_n "checking dependency style of $depcc... " >&6; }
11775 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11776   $as_echo_n "(cached) " >&6
11777 else
11778   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11779   # We make a subdir and do the tests there.  Otherwise we can end up
11780   # making bogus files that we don't know about and never remove.  For
11781   # instance it was reported that on HP-UX the gcc test will end up
11782   # making a dummy file named `D' -- because `-MD' means `put the output
11783   # in D'.
11784   mkdir conftest.dir
11785   # Copy depcomp to subdir because otherwise we won't find it if we're
11786   # using a relative directory.
11787   cp "$am_depcomp" conftest.dir
11788   cd conftest.dir
11789   # We will build objects and dependencies in a subdirectory because
11790   # it helps to detect inapplicable dependency modes.  For instance
11791   # both Tru64's cc and ICC support -MD to output dependencies as a
11792   # side effect of compilation, but ICC will put the dependencies in
11793   # the current directory while Tru64 will put them in the object
11794   # directory.
11795   mkdir sub
11796
11797   am_cv_CXX_dependencies_compiler_type=none
11798   if test "$am_compiler_list" = ""; then
11799      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11800   fi
11801   am__universal=false
11802   case " $depcc " in #(
11803      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11804      esac
11805
11806   for depmode in $am_compiler_list; do
11807     # Setup a source with many dependencies, because some compilers
11808     # like to wrap large dependency lists on column 80 (with \), and
11809     # we should not choose a depcomp mode which is confused by this.
11810     #
11811     # We need to recreate these files for each test, as the compiler may
11812     # overwrite some of them when testing with obscure command lines.
11813     # This happens at least with the AIX C compiler.
11814     : > sub/conftest.c
11815     for i in 1 2 3 4 5 6; do
11816       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11817       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11818       # Solaris 8's {/usr,}/bin/sh.
11819       touch sub/conftst$i.h
11820     done
11821     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11822
11823     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11824     # mode.  It turns out that the SunPro C++ compiler does not properly
11825     # handle `-M -o', and we need to detect this.  Also, some Intel
11826     # versions had trouble with output in subdirs
11827     am__obj=sub/conftest.${OBJEXT-o}
11828     am__minus_obj="-o $am__obj"
11829     case $depmode in
11830     gcc)
11831       # This depmode causes a compiler race in universal mode.
11832       test "$am__universal" = false || continue
11833       ;;
11834     nosideeffect)
11835       # after this tag, mechanisms are not by side-effect, so they'll
11836       # only be used when explicitly requested
11837       if test "x$enable_dependency_tracking" = xyes; then
11838         continue
11839       else
11840         break
11841       fi
11842       ;;
11843     msvisualcpp | msvcmsys)
11844       # This compiler won't grok `-c -o', but also, the minuso test has
11845       # not run yet.  These depmodes are late enough in the game, and
11846       # so weak that their functioning should not be impacted.
11847       am__obj=conftest.${OBJEXT-o}
11848       am__minus_obj=
11849       ;;
11850     none) break ;;
11851     esac
11852     if depmode=$depmode \
11853        source=sub/conftest.c object=$am__obj \
11854        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11855        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11856          >/dev/null 2>conftest.err &&
11857        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11858        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11859        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11860        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11861       # icc doesn't choke on unknown options, it will just issue warnings
11862       # or remarks (even with -Werror).  So we grep stderr for any message
11863       # that says an option was ignored or not supported.
11864       # When given -MP, icc 7.0 and 7.1 complain thusly:
11865       #   icc: Command line warning: ignoring option '-M'; no argument required
11866       # The diagnosis changed in icc 8.0:
11867       #   icc: Command line remark: option '-MP' not supported
11868       if (grep 'ignoring option' conftest.err ||
11869           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11870         am_cv_CXX_dependencies_compiler_type=$depmode
11871         break
11872       fi
11873     fi
11874   done
11875
11876   cd ..
11877   rm -rf conftest.dir
11878 else
11879   am_cv_CXX_dependencies_compiler_type=none
11880 fi
11881
11882 fi
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11884 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11885 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11886
11887  if
11888   test "x$enable_dependency_tracking" != xno \
11889   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11890   am__fastdepCXX_TRUE=
11891   am__fastdepCXX_FALSE='#'
11892 else
11893   am__fastdepCXX_TRUE='#'
11894   am__fastdepCXX_FALSE=
11895 fi
11896
11897
11898 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11899     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11900     (test "X$CXX" != "Xg++"))) ; then
11901   ac_ext=cpp
11902 ac_cpp='$CXXCPP $CPPFLAGS'
11903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11907 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11908 if test -z "$CXXCPP"; then
11909   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11910   $as_echo_n "(cached) " >&6
11911 else
11912       # Double quotes because CXXCPP needs to be expanded
11913     for CXXCPP in "$CXX -E" "/lib/cpp"
11914     do
11915       ac_preproc_ok=false
11916 for ac_cxx_preproc_warn_flag in '' yes
11917 do
11918   # Use a header file that comes with gcc, so configuring glibc
11919   # with a fresh cross-compiler works.
11920   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921   # <limits.h> exists even on freestanding compilers.
11922   # On the NeXT, cc -E runs the code through the compiler's parser,
11923   # not just through cpp. "Syntax error" is here to catch this case.
11924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h.  */
11926 #ifdef __STDC__
11927 # include <limits.h>
11928 #else
11929 # include <assert.h>
11930 #endif
11931                      Syntax error
11932 _ACEOF
11933 if ac_fn_cxx_try_cpp "$LINENO"; then :
11934
11935 else
11936   # Broken: fails on valid input.
11937 continue
11938 fi
11939 rm -f conftest.err conftest.i conftest.$ac_ext
11940
11941   # OK, works on sane cases.  Now check whether nonexistent headers
11942   # can be detected and how.
11943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h.  */
11945 #include <ac_nonexistent.h>
11946 _ACEOF
11947 if ac_fn_cxx_try_cpp "$LINENO"; then :
11948   # Broken: success on invalid input.
11949 continue
11950 else
11951   # Passes both tests.
11952 ac_preproc_ok=:
11953 break
11954 fi
11955 rm -f conftest.err conftest.i conftest.$ac_ext
11956
11957 done
11958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11959 rm -f conftest.i conftest.err conftest.$ac_ext
11960 if $ac_preproc_ok; then :
11961   break
11962 fi
11963
11964     done
11965     ac_cv_prog_CXXCPP=$CXXCPP
11966
11967 fi
11968   CXXCPP=$ac_cv_prog_CXXCPP
11969 else
11970   ac_cv_prog_CXXCPP=$CXXCPP
11971 fi
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11973 $as_echo "$CXXCPP" >&6; }
11974 ac_preproc_ok=false
11975 for ac_cxx_preproc_warn_flag in '' yes
11976 do
11977   # Use a header file that comes with gcc, so configuring glibc
11978   # with a fresh cross-compiler works.
11979   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11980   # <limits.h> exists even on freestanding compilers.
11981   # On the NeXT, cc -E runs the code through the compiler's parser,
11982   # not just through cpp. "Syntax error" is here to catch this case.
11983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h.  */
11985 #ifdef __STDC__
11986 # include <limits.h>
11987 #else
11988 # include <assert.h>
11989 #endif
11990                      Syntax error
11991 _ACEOF
11992 if ac_fn_cxx_try_cpp "$LINENO"; then :
11993
11994 else
11995   # Broken: fails on valid input.
11996 continue
11997 fi
11998 rm -f conftest.err conftest.i conftest.$ac_ext
11999
12000   # OK, works on sane cases.  Now check whether nonexistent headers
12001   # can be detected and how.
12002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h.  */
12004 #include <ac_nonexistent.h>
12005 _ACEOF
12006 if ac_fn_cxx_try_cpp "$LINENO"; then :
12007   # Broken: success on invalid input.
12008 continue
12009 else
12010   # Passes both tests.
12011 ac_preproc_ok=:
12012 break
12013 fi
12014 rm -f conftest.err conftest.i conftest.$ac_ext
12015
12016 done
12017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12018 rm -f conftest.i conftest.err conftest.$ac_ext
12019 if $ac_preproc_ok; then :
12020
12021 else
12022   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12024 _lt_caught_CXX_error=yes; }
12025 fi
12026
12027 ac_ext=c
12028 ac_cpp='$CPP $CPPFLAGS'
12029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12032
12033 else
12034   _lt_caught_CXX_error=yes
12035 fi
12036
12037
12038
12039
12040 ac_ext=cpp
12041 ac_cpp='$CXXCPP $CPPFLAGS'
12042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12045
12046 archive_cmds_need_lc_CXX=no
12047 allow_undefined_flag_CXX=
12048 always_export_symbols_CXX=no
12049 archive_expsym_cmds_CXX=
12050 compiler_needs_object_CXX=no
12051 export_dynamic_flag_spec_CXX=
12052 hardcode_direct_CXX=no
12053 hardcode_direct_absolute_CXX=no
12054 hardcode_libdir_flag_spec_CXX=
12055 hardcode_libdir_flag_spec_ld_CXX=
12056 hardcode_libdir_separator_CXX=
12057 hardcode_minus_L_CXX=no
12058 hardcode_shlibpath_var_CXX=unsupported
12059 hardcode_automatic_CXX=no
12060 inherit_rpath_CXX=no
12061 module_cmds_CXX=
12062 module_expsym_cmds_CXX=
12063 link_all_deplibs_CXX=unknown
12064 old_archive_cmds_CXX=$old_archive_cmds
12065 no_undefined_flag_CXX=
12066 whole_archive_flag_spec_CXX=
12067 enable_shared_with_static_runtimes_CXX=no
12068
12069 # Source file extension for C++ test sources.
12070 ac_ext=cpp
12071
12072 # Object file extension for compiled C++ test sources.
12073 objext=o
12074 objext_CXX=$objext
12075
12076 # No sense in running all these tests if we already determined that
12077 # the CXX compiler isn't working.  Some variables (like enable_shared)
12078 # are currently assumed to apply to all compilers on this platform,
12079 # and will be corrupted by setting them based on a non-working compiler.
12080 if test "$_lt_caught_CXX_error" != yes; then
12081   # Code to be used in simple compile tests
12082   lt_simple_compile_test_code="int some_variable = 0;"
12083
12084   # Code to be used in simple link tests
12085   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12086
12087   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12088
12089
12090
12091
12092
12093
12094 # If no C compiler was specified, use CC.
12095 LTCC=${LTCC-"$CC"}
12096
12097 # If no C compiler flags were specified, use CFLAGS.
12098 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12099
12100 # Allow CC to be a program name with arguments.
12101 compiler=$CC
12102
12103
12104   # save warnings/boilerplate of simple test code
12105   ac_outfile=conftest.$ac_objext
12106 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12107 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12108 _lt_compiler_boilerplate=`cat conftest.err`
12109 $RM conftest*
12110
12111   ac_outfile=conftest.$ac_objext
12112 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12113 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12114 _lt_linker_boilerplate=`cat conftest.err`
12115 $RM -r conftest*
12116
12117
12118   # Allow CC to be a program name with arguments.
12119   lt_save_CC=$CC
12120   lt_save_LD=$LD
12121   lt_save_GCC=$GCC
12122   GCC=$GXX
12123   lt_save_with_gnu_ld=$with_gnu_ld
12124   lt_save_path_LD=$lt_cv_path_LD
12125   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12126     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12127   else
12128     $as_unset lt_cv_prog_gnu_ld
12129   fi
12130   if test -n "${lt_cv_path_LDCXX+set}"; then
12131     lt_cv_path_LD=$lt_cv_path_LDCXX
12132   else
12133     $as_unset lt_cv_path_LD
12134   fi
12135   test -z "${LDCXX+set}" || LD=$LDCXX
12136   CC=${CXX-"c++"}
12137   compiler=$CC
12138   compiler_CXX=$CC
12139   for cc_temp in $compiler""; do
12140   case $cc_temp in
12141     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12142     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12143     \-*) ;;
12144     *) break;;
12145   esac
12146 done
12147 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12148
12149
12150   if test -n "$compiler"; then
12151     # We don't want -fno-exception when compiling C++ code, so set the
12152     # no_builtin_flag separately
12153     if test "$GXX" = yes; then
12154       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12155     else
12156       lt_prog_compiler_no_builtin_flag_CXX=
12157     fi
12158
12159     if test "$GXX" = yes; then
12160       # Set up default GNU C++ configuration
12161
12162
12163
12164 # Check whether --with-gnu-ld was given.
12165 if test "${with_gnu_ld+set}" = set; then :
12166   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12167 else
12168   with_gnu_ld=no
12169 fi
12170
12171 ac_prog=ld
12172 if test "$GCC" = yes; then
12173   # Check if gcc -print-prog-name=ld gives a path.
12174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12175 $as_echo_n "checking for ld used by $CC... " >&6; }
12176   case $host in
12177   *-*-mingw*)
12178     # gcc leaves a trailing carriage return which upsets mingw
12179     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12180   *)
12181     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12182   esac
12183   case $ac_prog in
12184     # Accept absolute paths.
12185     [\\/]* | ?:[\\/]*)
12186       re_direlt='/[^/][^/]*/\.\./'
12187       # Canonicalize the pathname of ld
12188       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12189       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12190         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12191       done
12192       test -z "$LD" && LD="$ac_prog"
12193       ;;
12194   "")
12195     # If it fails, then pretend we aren't using GCC.
12196     ac_prog=ld
12197     ;;
12198   *)
12199     # If it is relative, then search for the first ld in PATH.
12200     with_gnu_ld=unknown
12201     ;;
12202   esac
12203 elif test "$with_gnu_ld" = yes; then
12204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12205 $as_echo_n "checking for GNU ld... " >&6; }
12206 else
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12208 $as_echo_n "checking for non-GNU ld... " >&6; }
12209 fi
12210 if test "${lt_cv_path_LD+set}" = set; then :
12211   $as_echo_n "(cached) " >&6
12212 else
12213   if test -z "$LD"; then
12214   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12215   for ac_dir in $PATH; do
12216     IFS="$lt_save_ifs"
12217     test -z "$ac_dir" && ac_dir=.
12218     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12219       lt_cv_path_LD="$ac_dir/$ac_prog"
12220       # Check to see if the program is GNU ld.  I'd rather use --version,
12221       # but apparently some variants of GNU ld only accept -v.
12222       # Break only if it was the GNU/non-GNU ld that we prefer.
12223       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12224       *GNU* | *'with BFD'*)
12225         test "$with_gnu_ld" != no && break
12226         ;;
12227       *)
12228         test "$with_gnu_ld" != yes && break
12229         ;;
12230       esac
12231     fi
12232   done
12233   IFS="$lt_save_ifs"
12234 else
12235   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12236 fi
12237 fi
12238
12239 LD="$lt_cv_path_LD"
12240 if test -n "$LD"; then
12241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12242 $as_echo "$LD" >&6; }
12243 else
12244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245 $as_echo "no" >&6; }
12246 fi
12247 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12249 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12250 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12251   $as_echo_n "(cached) " >&6
12252 else
12253   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12254 case `$LD -v 2>&1 </dev/null` in
12255 *GNU* | *'with BFD'*)
12256   lt_cv_prog_gnu_ld=yes
12257   ;;
12258 *)
12259   lt_cv_prog_gnu_ld=no
12260   ;;
12261 esac
12262 fi
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12264 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12265 with_gnu_ld=$lt_cv_prog_gnu_ld
12266
12267
12268
12269
12270
12271
12272
12273       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12274       # archiving commands below assume that GNU ld is being used.
12275       if test "$with_gnu_ld" = yes; then
12276         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12277         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'
12278
12279         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12280         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12281
12282         # If archive_cmds runs LD, not CC, wlarc should be empty
12283         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12284         #     investigate it a little bit more. (MM)
12285         wlarc='${wl}'
12286
12287         # ancient GNU ld didn't support --whole-archive et. al.
12288         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12289           $GREP 'no-whole-archive' > /dev/null; then
12290           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12291         else
12292           whole_archive_flag_spec_CXX=
12293         fi
12294       else
12295         with_gnu_ld=no
12296         wlarc=
12297
12298         # A generic and very simple default shared library creation
12299         # command for GNU C++ for the case where it uses the native
12300         # linker, instead of GNU ld.  If possible, this setting should
12301         # overridden to take advantage of the native linker features on
12302         # the platform it is being used on.
12303         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12304       fi
12305
12306       # Commands to make compiler produce verbose output that lists
12307       # what "hidden" libraries, object files and flags are used when
12308       # linking a shared library.
12309       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12310
12311     else
12312       GXX=no
12313       with_gnu_ld=no
12314       wlarc=
12315     fi
12316
12317     # PORTME: fill in a description of your system's C++ link characteristics
12318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12319 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12320     ld_shlibs_CXX=yes
12321     case $host_os in
12322       aix3*)
12323         # FIXME: insert proper C++ library support
12324         ld_shlibs_CXX=no
12325         ;;
12326       aix[4-9]*)
12327         if test "$host_cpu" = ia64; then
12328           # On IA64, the linker does run time linking by default, so we don't
12329           # have to do anything special.
12330           aix_use_runtimelinking=no
12331           exp_sym_flag='-Bexport'
12332           no_entry_flag=""
12333         else
12334           aix_use_runtimelinking=no
12335
12336           # Test if we are trying to use run time linking or normal
12337           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12338           # need to do runtime linking.
12339           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12340             for ld_flag in $LDFLAGS; do
12341               case $ld_flag in
12342               *-brtl*)
12343                 aix_use_runtimelinking=yes
12344                 break
12345                 ;;
12346               esac
12347             done
12348             ;;
12349           esac
12350
12351           exp_sym_flag='-bexport'
12352           no_entry_flag='-bnoentry'
12353         fi
12354
12355         # When large executables or shared objects are built, AIX ld can
12356         # have problems creating the table of contents.  If linking a library
12357         # or program results in "error TOC overflow" add -mminimal-toc to
12358         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12359         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12360
12361         archive_cmds_CXX=''
12362         hardcode_direct_CXX=yes
12363         hardcode_direct_absolute_CXX=yes
12364         hardcode_libdir_separator_CXX=':'
12365         link_all_deplibs_CXX=yes
12366         file_list_spec_CXX='${wl}-f,'
12367
12368         if test "$GXX" = yes; then
12369           case $host_os in aix4.[012]|aix4.[012].*)
12370           # We only want to do this on AIX 4.2 and lower, the check
12371           # below for broken collect2 doesn't work under 4.3+
12372           collect2name=`${CC} -print-prog-name=collect2`
12373           if test -f "$collect2name" &&
12374              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12375           then
12376             # We have reworked collect2
12377             :
12378           else
12379             # We have old collect2
12380             hardcode_direct_CXX=unsupported
12381             # It fails to find uninstalled libraries when the uninstalled
12382             # path is not listed in the libpath.  Setting hardcode_minus_L
12383             # to unsupported forces relinking
12384             hardcode_minus_L_CXX=yes
12385             hardcode_libdir_flag_spec_CXX='-L$libdir'
12386             hardcode_libdir_separator_CXX=
12387           fi
12388           esac
12389           shared_flag='-shared'
12390           if test "$aix_use_runtimelinking" = yes; then
12391             shared_flag="$shared_flag "'${wl}-G'
12392           fi
12393         else
12394           # not using gcc
12395           if test "$host_cpu" = ia64; then
12396           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12397           # chokes on -Wl,-G. The following line is correct:
12398           shared_flag='-G'
12399           else
12400             if test "$aix_use_runtimelinking" = yes; then
12401               shared_flag='${wl}-G'
12402             else
12403               shared_flag='${wl}-bM:SRE'
12404             fi
12405           fi
12406         fi
12407
12408         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12409         # It seems that -bexpall does not export symbols beginning with
12410         # underscore (_), so it is better to generate a list of symbols to
12411         # export.
12412         always_export_symbols_CXX=yes
12413         if test "$aix_use_runtimelinking" = yes; then
12414           # Warning - without using the other runtime loading flags (-brtl),
12415           # -berok will link without error, but may produce a broken library.
12416           allow_undefined_flag_CXX='-berok'
12417           # Determine the default libpath from the value encoded in an empty
12418           # executable.
12419           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h.  */
12421
12422 int
12423 main ()
12424 {
12425
12426   ;
12427   return 0;
12428 }
12429 _ACEOF
12430 if ac_fn_cxx_try_link "$LINENO"; then :
12431
12432 lt_aix_libpath_sed='
12433     /Import File Strings/,/^$/ {
12434         /^0/ {
12435             s/^0  *\(.*\)$/\1/
12436             p
12437         }
12438     }'
12439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12440 # Check for a 64-bit object if we didn't find anything.
12441 if test -z "$aix_libpath"; then
12442   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12443 fi
12444 fi
12445 rm -f core conftest.err conftest.$ac_objext \
12446     conftest$ac_exeext conftest.$ac_ext
12447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12448
12449           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12450
12451           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"
12452         else
12453           if test "$host_cpu" = ia64; then
12454             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12455             allow_undefined_flag_CXX="-z nodefs"
12456             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"
12457           else
12458             # Determine the default libpath from the value encoded in an
12459             # empty executable.
12460             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h.  */
12462
12463 int
12464 main ()
12465 {
12466
12467   ;
12468   return 0;
12469 }
12470 _ACEOF
12471 if ac_fn_cxx_try_link "$LINENO"; then :
12472
12473 lt_aix_libpath_sed='
12474     /Import File Strings/,/^$/ {
12475         /^0/ {
12476             s/^0  *\(.*\)$/\1/
12477             p
12478         }
12479     }'
12480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12481 # Check for a 64-bit object if we didn't find anything.
12482 if test -z "$aix_libpath"; then
12483   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12484 fi
12485 fi
12486 rm -f core conftest.err conftest.$ac_objext \
12487     conftest$ac_exeext conftest.$ac_ext
12488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12489
12490             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12491             # Warning - without using the other run time loading flags,
12492             # -berok will link without error, but may produce a broken library.
12493             no_undefined_flag_CXX=' ${wl}-bernotok'
12494             allow_undefined_flag_CXX=' ${wl}-berok'
12495             # Exported symbols can be pulled into shared objects from archives
12496             whole_archive_flag_spec_CXX='$convenience'
12497             archive_cmds_need_lc_CXX=yes
12498             # This is similar to how AIX traditionally builds its shared
12499             # libraries.
12500             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'
12501           fi
12502         fi
12503         ;;
12504
12505       beos*)
12506         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12507           allow_undefined_flag_CXX=unsupported
12508           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12509           # support --undefined.  This deserves some investigation.  FIXME
12510           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12511         else
12512           ld_shlibs_CXX=no
12513         fi
12514         ;;
12515
12516       chorus*)
12517         case $cc_basename in
12518           *)
12519           # FIXME: insert proper C++ library support
12520           ld_shlibs_CXX=no
12521           ;;
12522         esac
12523         ;;
12524
12525       cygwin* | mingw* | pw32* | cegcc*)
12526         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12527         # as there is no search path for DLLs.
12528         hardcode_libdir_flag_spec_CXX='-L$libdir'
12529         allow_undefined_flag_CXX=unsupported
12530         always_export_symbols_CXX=no
12531         enable_shared_with_static_runtimes_CXX=yes
12532
12533         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12534           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'
12535           # If the export-symbols file already is a .def file (1st line
12536           # is EXPORTS), use it as is; otherwise, prepend...
12537           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12538             cp $export_symbols $output_objdir/$soname.def;
12539           else
12540             echo EXPORTS > $output_objdir/$soname.def;
12541             cat $export_symbols >> $output_objdir/$soname.def;
12542           fi~
12543           $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'
12544         else
12545           ld_shlibs_CXX=no
12546         fi
12547         ;;
12548       darwin* | rhapsody*)
12549
12550
12551   archive_cmds_need_lc_CXX=no
12552   hardcode_direct_CXX=no
12553   hardcode_automatic_CXX=yes
12554   hardcode_shlibpath_var_CXX=unsupported
12555   whole_archive_flag_spec_CXX=''
12556   link_all_deplibs_CXX=yes
12557   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12558   case $cc_basename in
12559      ifort*) _lt_dar_can_shared=yes ;;
12560      *) _lt_dar_can_shared=$GCC ;;
12561   esac
12562   if test "$_lt_dar_can_shared" = "yes"; then
12563     output_verbose_link_cmd=echo
12564     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}"
12565     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12566     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}"
12567     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}"
12568        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12569       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}"
12570       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}"
12571     fi
12572
12573   else
12574   ld_shlibs_CXX=no
12575   fi
12576
12577         ;;
12578
12579       dgux*)
12580         case $cc_basename in
12581           ec++*)
12582             # FIXME: insert proper C++ library support
12583             ld_shlibs_CXX=no
12584             ;;
12585           ghcx*)
12586             # Green Hills C++ Compiler
12587             # FIXME: insert proper C++ library support
12588             ld_shlibs_CXX=no
12589             ;;
12590           *)
12591             # FIXME: insert proper C++ library support
12592             ld_shlibs_CXX=no
12593             ;;
12594         esac
12595         ;;
12596
12597       freebsd[12]*)
12598         # C++ shared libraries reported to be fairly broken before
12599         # switch to ELF
12600         ld_shlibs_CXX=no
12601         ;;
12602
12603       freebsd-elf*)
12604         archive_cmds_need_lc_CXX=no
12605         ;;
12606
12607       freebsd* | dragonfly*)
12608         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12609         # conventions
12610         ld_shlibs_CXX=yes
12611         ;;
12612
12613       gnu*)
12614         ;;
12615
12616       hpux9*)
12617         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12618         hardcode_libdir_separator_CXX=:
12619         export_dynamic_flag_spec_CXX='${wl}-E'
12620         hardcode_direct_CXX=yes
12621         hardcode_minus_L_CXX=yes # Not in the search PATH,
12622                                              # but as the default
12623                                              # location of the library.
12624
12625         case $cc_basename in
12626           CC*)
12627             # FIXME: insert proper C++ library support
12628             ld_shlibs_CXX=no
12629             ;;
12630           aCC*)
12631             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'
12632             # Commands to make compiler produce verbose output that lists
12633             # what "hidden" libraries, object files and flags are used when
12634             # linking a shared library.
12635             #
12636             # There doesn't appear to be a way to prevent this compiler from
12637             # explicitly linking system object files so we need to strip them
12638             # from the output so that they don't get included in the library
12639             # dependencies.
12640             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'
12641             ;;
12642           *)
12643             if test "$GXX" = yes; then
12644               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'
12645             else
12646               # FIXME: insert proper C++ library support
12647               ld_shlibs_CXX=no
12648             fi
12649             ;;
12650         esac
12651         ;;
12652
12653       hpux10*|hpux11*)
12654         if test $with_gnu_ld = no; then
12655           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12656           hardcode_libdir_separator_CXX=:
12657
12658           case $host_cpu in
12659             hppa*64*|ia64*)
12660               ;;
12661             *)
12662               export_dynamic_flag_spec_CXX='${wl}-E'
12663               ;;
12664           esac
12665         fi
12666         case $host_cpu in
12667           hppa*64*|ia64*)
12668             hardcode_direct_CXX=no
12669             hardcode_shlibpath_var_CXX=no
12670             ;;
12671           *)
12672             hardcode_direct_CXX=yes
12673             hardcode_direct_absolute_CXX=yes
12674             hardcode_minus_L_CXX=yes # Not in the search PATH,
12675                                                  # but as the default
12676                                                  # location of the library.
12677             ;;
12678         esac
12679
12680         case $cc_basename in
12681           CC*)
12682             # FIXME: insert proper C++ library support
12683             ld_shlibs_CXX=no
12684             ;;
12685           aCC*)
12686             case $host_cpu in
12687               hppa*64*)
12688                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12689                 ;;
12690               ia64*)
12691                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12692                 ;;
12693               *)
12694                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12695                 ;;
12696             esac
12697             # Commands to make compiler produce verbose output that lists
12698             # what "hidden" libraries, object files and flags are used when
12699             # linking a shared library.
12700             #
12701             # There doesn't appear to be a way to prevent this compiler from
12702             # explicitly linking system object files so we need to strip them
12703             # from the output so that they don't get included in the library
12704             # dependencies.
12705             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'
12706             ;;
12707           *)
12708             if test "$GXX" = yes; then
12709               if test $with_gnu_ld = no; then
12710                 case $host_cpu in
12711                   hppa*64*)
12712                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12713                     ;;
12714                   ia64*)
12715                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12716                     ;;
12717                   *)
12718                     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'
12719                     ;;
12720                 esac
12721               fi
12722             else
12723               # FIXME: insert proper C++ library support
12724               ld_shlibs_CXX=no
12725             fi
12726             ;;
12727         esac
12728         ;;
12729
12730       interix[3-9]*)
12731         hardcode_direct_CXX=no
12732         hardcode_shlibpath_var_CXX=no
12733         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12734         export_dynamic_flag_spec_CXX='${wl}-E'
12735         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12736         # Instead, shared libraries are loaded at an image base (0x10000000 by
12737         # default) and relocated if they conflict, which is a slow very memory
12738         # consuming and fragmenting process.  To avoid this, we pick a random,
12739         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12740         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12741         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'
12742         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'
12743         ;;
12744       irix5* | irix6*)
12745         case $cc_basename in
12746           CC*)
12747             # SGI C++
12748             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'
12749
12750             # Archives containing C++ object files must be created using
12751             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12752             # necessary to make sure instantiated templates are included
12753             # in the archive.
12754             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12755             ;;
12756           *)
12757             if test "$GXX" = yes; then
12758               if test "$with_gnu_ld" = no; then
12759                 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'
12760               else
12761                 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'
12762               fi
12763             fi
12764             link_all_deplibs_CXX=yes
12765             ;;
12766         esac
12767         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12768         hardcode_libdir_separator_CXX=:
12769         inherit_rpath_CXX=yes
12770         ;;
12771
12772       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12773         case $cc_basename in
12774           KCC*)
12775             # Kuck and Associates, Inc. (KAI) C++ Compiler
12776
12777             # KCC will only create a shared library if the output file
12778             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12779             # to its proper name (with version) after linking.
12780             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'
12781             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'
12782             # Commands to make compiler produce verbose output that lists
12783             # what "hidden" libraries, object files and flags are used when
12784             # linking a shared library.
12785             #
12786             # There doesn't appear to be a way to prevent this compiler from
12787             # explicitly linking system object files so we need to strip them
12788             # from the output so that they don't get included in the library
12789             # dependencies.
12790             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'
12791
12792             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12793             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12794
12795             # Archives containing C++ object files must be created using
12796             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12797             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12798             ;;
12799           icpc* | ecpc* )
12800             # Intel C++
12801             with_gnu_ld=yes
12802             # version 8.0 and above of icpc choke on multiply defined symbols
12803             # if we add $predep_objects and $postdep_objects, however 7.1 and
12804             # earlier do not add the objects themselves.
12805             case `$CC -V 2>&1` in
12806               *"Version 7."*)
12807                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12808                 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'
12809                 ;;
12810               *)  # Version 8.0 or newer
12811                 tmp_idyn=
12812                 case $host_cpu in
12813                   ia64*) tmp_idyn=' -i_dynamic';;
12814                 esac
12815                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12816                 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'
12817                 ;;
12818             esac
12819             archive_cmds_need_lc_CXX=no
12820             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12821             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12822             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12823             ;;
12824           pgCC* | pgcpp*)
12825             # Portland Group C++ compiler
12826             case `$CC -V` in
12827             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12828               prelink_cmds_CXX='tpldir=Template.dir~
12829                 rm -rf $tpldir~
12830                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12831                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12832               old_archive_cmds_CXX='tpldir=Template.dir~
12833                 rm -rf $tpldir~
12834                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12835                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12836                 $RANLIB $oldlib'
12837               archive_cmds_CXX='tpldir=Template.dir~
12838                 rm -rf $tpldir~
12839                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12840                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12841               archive_expsym_cmds_CXX='tpldir=Template.dir~
12842                 rm -rf $tpldir~
12843                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12844                 $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'
12845               ;;
12846             *) # Version 6 will use weak symbols
12847               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12848               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'
12849               ;;
12850             esac
12851
12852             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12853             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12854             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'
12855             ;;
12856           cxx*)
12857             # Compaq C++
12858             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12859             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'
12860
12861             runpath_var=LD_RUN_PATH
12862             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12863             hardcode_libdir_separator_CXX=:
12864
12865             # Commands to make compiler produce verbose output that lists
12866             # what "hidden" libraries, object files and flags are used when
12867             # linking a shared library.
12868             #
12869             # There doesn't appear to be a way to prevent this compiler from
12870             # explicitly linking system object files so we need to strip them
12871             # from the output so that they don't get included in the library
12872             # dependencies.
12873             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'
12874             ;;
12875           xl*)
12876             # IBM XL 8.0 on PPC, with GNU ld
12877             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12878             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12879             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12880             if test "x$supports_anon_versioning" = xyes; then
12881               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12882                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12883                 echo "local: *; };" >> $output_objdir/$libname.ver~
12884                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12885             fi
12886             ;;
12887           *)
12888             case `$CC -V 2>&1 | sed 5q` in
12889             *Sun\ C*)
12890               # Sun C++ 5.9
12891               no_undefined_flag_CXX=' -zdefs'
12892               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12893               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'
12894               hardcode_libdir_flag_spec_CXX='-R$libdir'
12895               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'
12896               compiler_needs_object_CXX=yes
12897
12898               # Not sure whether something based on
12899               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12900               # would be better.
12901               output_verbose_link_cmd='echo'
12902
12903               # Archives containing C++ object files must be created using
12904               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12905               # necessary to make sure instantiated templates are included
12906               # in the archive.
12907               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12908               ;;
12909             esac
12910             ;;
12911         esac
12912         ;;
12913
12914       lynxos*)
12915         # FIXME: insert proper C++ library support
12916         ld_shlibs_CXX=no
12917         ;;
12918
12919       m88k*)
12920         # FIXME: insert proper C++ library support
12921         ld_shlibs_CXX=no
12922         ;;
12923
12924       mvs*)
12925         case $cc_basename in
12926           cxx*)
12927             # FIXME: insert proper C++ library support
12928             ld_shlibs_CXX=no
12929             ;;
12930           *)
12931             # FIXME: insert proper C++ library support
12932             ld_shlibs_CXX=no
12933             ;;
12934         esac
12935         ;;
12936
12937       netbsd*)
12938         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12939           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12940           wlarc=
12941           hardcode_libdir_flag_spec_CXX='-R$libdir'
12942           hardcode_direct_CXX=yes
12943           hardcode_shlibpath_var_CXX=no
12944         fi
12945         # Workaround some broken pre-1.5 toolchains
12946         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12947         ;;
12948
12949       *nto* | *qnx*)
12950         ld_shlibs_CXX=yes
12951         ;;
12952
12953       openbsd2*)
12954         # C++ shared libraries are fairly broken
12955         ld_shlibs_CXX=no
12956         ;;
12957
12958       openbsd*)
12959         if test -f /usr/libexec/ld.so; then
12960           hardcode_direct_CXX=yes
12961           hardcode_shlibpath_var_CXX=no
12962           hardcode_direct_absolute_CXX=yes
12963           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12964           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12965           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12966             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12967             export_dynamic_flag_spec_CXX='${wl}-E'
12968             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12969           fi
12970           output_verbose_link_cmd=echo
12971         else
12972           ld_shlibs_CXX=no
12973         fi
12974         ;;
12975
12976       osf3* | osf4* | osf5*)
12977         case $cc_basename in
12978           KCC*)
12979             # Kuck and Associates, Inc. (KAI) C++ Compiler
12980
12981             # KCC will only create a shared library if the output file
12982             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12983             # to its proper name (with version) after linking.
12984             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'
12985
12986             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12987             hardcode_libdir_separator_CXX=:
12988
12989             # Archives containing C++ object files must be created using
12990             # the KAI C++ compiler.
12991             case $host in
12992               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12993               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12994             esac
12995             ;;
12996           RCC*)
12997             # Rational C++ 2.4.1
12998             # FIXME: insert proper C++ library support
12999             ld_shlibs_CXX=no
13000             ;;
13001           cxx*)
13002             case $host in
13003               osf3*)
13004                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13005                 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'
13006                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13007                 ;;
13008               *)
13009                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13010                 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'
13011                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13012                   echo "-hidden">> $lib.exp~
13013                   $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~
13014                   $RM $lib.exp'
13015                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13016                 ;;
13017             esac
13018
13019             hardcode_libdir_separator_CXX=:
13020
13021             # Commands to make compiler produce verbose output that lists
13022             # what "hidden" libraries, object files and flags are used when
13023             # linking a shared library.
13024             #
13025             # There doesn't appear to be a way to prevent this compiler from
13026             # explicitly linking system object files so we need to strip them
13027             # from the output so that they don't get included in the library
13028             # dependencies.
13029             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'
13030             ;;
13031           *)
13032             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13033               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13034               case $host in
13035                 osf3*)
13036                   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'
13037                   ;;
13038                 *)
13039                   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'
13040                   ;;
13041               esac
13042
13043               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13044               hardcode_libdir_separator_CXX=:
13045
13046               # Commands to make compiler produce verbose output that lists
13047               # what "hidden" libraries, object files and flags are used when
13048               # linking a shared library.
13049               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13050
13051             else
13052               # FIXME: insert proper C++ library support
13053               ld_shlibs_CXX=no
13054             fi
13055             ;;
13056         esac
13057         ;;
13058
13059       psos*)
13060         # FIXME: insert proper C++ library support
13061         ld_shlibs_CXX=no
13062         ;;
13063
13064       sunos4*)
13065         case $cc_basename in
13066           CC*)
13067             # Sun C++ 4.x
13068             # FIXME: insert proper C++ library support
13069             ld_shlibs_CXX=no
13070             ;;
13071           lcc*)
13072             # Lucid
13073             # FIXME: insert proper C++ library support
13074             ld_shlibs_CXX=no
13075             ;;
13076           *)
13077             # FIXME: insert proper C++ library support
13078             ld_shlibs_CXX=no
13079             ;;
13080         esac
13081         ;;
13082
13083       solaris*)
13084         case $cc_basename in
13085           CC*)
13086             # Sun C++ 4.2, 5.x and Centerline C++
13087             archive_cmds_need_lc_CXX=yes
13088             no_undefined_flag_CXX=' -zdefs'
13089             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13090             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13091               $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'
13092
13093             hardcode_libdir_flag_spec_CXX='-R$libdir'
13094             hardcode_shlibpath_var_CXX=no
13095             case $host_os in
13096               solaris2.[0-5] | solaris2.[0-5].*) ;;
13097               *)
13098                 # The compiler driver will combine and reorder linker options,
13099                 # but understands `-z linker_flag'.
13100                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13101                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13102                 ;;
13103             esac
13104             link_all_deplibs_CXX=yes
13105
13106             output_verbose_link_cmd='echo'
13107
13108             # Archives containing C++ object files must be created using
13109             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13110             # necessary to make sure instantiated templates are included
13111             # in the archive.
13112             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13113             ;;
13114           gcx*)
13115             # Green Hills C++ Compiler
13116             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13117
13118             # The C++ compiler must be used to create the archive.
13119             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13120             ;;
13121           *)
13122             # GNU C++ compiler with Solaris linker
13123             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13124               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13125               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13126                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13127                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13128                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13129
13130                 # Commands to make compiler produce verbose output that lists
13131                 # what "hidden" libraries, object files and flags are used when
13132                 # linking a shared library.
13133                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13134               else
13135                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13136                 # platform.
13137                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13138                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13139                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13140
13141                 # Commands to make compiler produce verbose output that lists
13142                 # what "hidden" libraries, object files and flags are used when
13143                 # linking a shared library.
13144                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13145               fi
13146
13147               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13148               case $host_os in
13149                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13150                 *)
13151                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13152                   ;;
13153               esac
13154             fi
13155             ;;
13156         esac
13157         ;;
13158
13159     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13160       no_undefined_flag_CXX='${wl}-z,text'
13161       archive_cmds_need_lc_CXX=no
13162       hardcode_shlibpath_var_CXX=no
13163       runpath_var='LD_RUN_PATH'
13164
13165       case $cc_basename in
13166         CC*)
13167           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13168           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13169           ;;
13170         *)
13171           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13172           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13173           ;;
13174       esac
13175       ;;
13176
13177       sysv5* | sco3.2v5* | sco5v6*)
13178         # Note: We can NOT use -z defs as we might desire, because we do not
13179         # link with -lc, and that would cause any symbols used from libc to
13180         # always be unresolved, which means just about no library would
13181         # ever link correctly.  If we're not using GNU ld we use -z text
13182         # though, which does catch some bad symbols but isn't as heavy-handed
13183         # as -z defs.
13184         no_undefined_flag_CXX='${wl}-z,text'
13185         allow_undefined_flag_CXX='${wl}-z,nodefs'
13186         archive_cmds_need_lc_CXX=no
13187         hardcode_shlibpath_var_CXX=no
13188         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13189         hardcode_libdir_separator_CXX=':'
13190         link_all_deplibs_CXX=yes
13191         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13192         runpath_var='LD_RUN_PATH'
13193
13194         case $cc_basename in
13195           CC*)
13196             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13197             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13198             ;;
13199           *)
13200             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13201             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13202             ;;
13203         esac
13204       ;;
13205
13206       tandem*)
13207         case $cc_basename in
13208           NCC*)
13209             # NonStop-UX NCC 3.20
13210             # FIXME: insert proper C++ library support
13211             ld_shlibs_CXX=no
13212             ;;
13213           *)
13214             # FIXME: insert proper C++ library support
13215             ld_shlibs_CXX=no
13216             ;;
13217         esac
13218         ;;
13219
13220       vxworks*)
13221         # FIXME: insert proper C++ library support
13222         ld_shlibs_CXX=no
13223         ;;
13224
13225       *)
13226         # FIXME: insert proper C++ library support
13227         ld_shlibs_CXX=no
13228         ;;
13229     esac
13230
13231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13232 $as_echo "$ld_shlibs_CXX" >&6; }
13233     test "$ld_shlibs_CXX" = no && can_build_shared=no
13234
13235     GCC_CXX="$GXX"
13236     LD_CXX="$LD"
13237
13238     ## CAVEAT EMPTOR:
13239     ## There is no encapsulation within the following macros, do not change
13240     ## the running order or otherwise move them around unless you know exactly
13241     ## what you are doing...
13242     # Dependencies to place before and after the object being linked:
13243 predep_objects_CXX=
13244 postdep_objects_CXX=
13245 predeps_CXX=
13246 postdeps_CXX=
13247 compiler_lib_search_path_CXX=
13248
13249 cat > conftest.$ac_ext <<_LT_EOF
13250 class Foo
13251 {
13252 public:
13253   Foo (void) { a = 0; }
13254 private:
13255   int a;
13256 };
13257 _LT_EOF
13258
13259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13260   (eval $ac_compile) 2>&5
13261   ac_status=$?
13262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13263   test $ac_status = 0; }; then
13264   # Parse the compiler output and extract the necessary
13265   # objects, libraries and library flags.
13266
13267   # Sentinel used to keep track of whether or not we are before
13268   # the conftest object file.
13269   pre_test_object_deps_done=no
13270
13271   for p in `eval "$output_verbose_link_cmd"`; do
13272     case $p in
13273
13274     -L* | -R* | -l*)
13275        # Some compilers place space between "-{L,R}" and the path.
13276        # Remove the space.
13277        if test $p = "-L" ||
13278           test $p = "-R"; then
13279          prev=$p
13280          continue
13281        else
13282          prev=
13283        fi
13284
13285        if test "$pre_test_object_deps_done" = no; then
13286          case $p in
13287          -L* | -R*)
13288            # Internal compiler library paths should come after those
13289            # provided the user.  The postdeps already come after the
13290            # user supplied libs so there is no need to process them.
13291            if test -z "$compiler_lib_search_path_CXX"; then
13292              compiler_lib_search_path_CXX="${prev}${p}"
13293            else
13294              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13295            fi
13296            ;;
13297          # The "-l" case would never come before the object being
13298          # linked, so don't bother handling this case.
13299          esac
13300        else
13301          if test -z "$postdeps_CXX"; then
13302            postdeps_CXX="${prev}${p}"
13303          else
13304            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13305          fi
13306        fi
13307        ;;
13308
13309     *.$objext)
13310        # This assumes that the test object file only shows up
13311        # once in the compiler output.
13312        if test "$p" = "conftest.$objext"; then
13313          pre_test_object_deps_done=yes
13314          continue
13315        fi
13316
13317        if test "$pre_test_object_deps_done" = no; then
13318          if test -z "$predep_objects_CXX"; then
13319            predep_objects_CXX="$p"
13320          else
13321            predep_objects_CXX="$predep_objects_CXX $p"
13322          fi
13323        else
13324          if test -z "$postdep_objects_CXX"; then
13325            postdep_objects_CXX="$p"
13326          else
13327            postdep_objects_CXX="$postdep_objects_CXX $p"
13328          fi
13329        fi
13330        ;;
13331
13332     *) ;; # Ignore the rest.
13333
13334     esac
13335   done
13336
13337   # Clean up.
13338   rm -f a.out a.exe
13339 else
13340   echo "libtool.m4: error: problem compiling CXX test program"
13341 fi
13342
13343 $RM -f confest.$objext
13344
13345 # PORTME: override above test on systems where it is broken
13346 case $host_os in
13347 interix[3-9]*)
13348   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13349   # hack all around it, let's just trust "g++" to DTRT.
13350   predep_objects_CXX=
13351   postdep_objects_CXX=
13352   postdeps_CXX=
13353   ;;
13354
13355 linux*)
13356   case `$CC -V 2>&1 | sed 5q` in
13357   *Sun\ C*)
13358     # Sun C++ 5.9
13359
13360     # The more standards-conforming stlport4 library is
13361     # incompatible with the Cstd library. Avoid specifying
13362     # it if it's in CXXFLAGS. Ignore libCrun as
13363     # -library=stlport4 depends on it.
13364     case " $CXX $CXXFLAGS " in
13365     *" -library=stlport4 "*)
13366       solaris_use_stlport4=yes
13367       ;;
13368     esac
13369
13370     if test "$solaris_use_stlport4" != yes; then
13371       postdeps_CXX='-library=Cstd -library=Crun'
13372     fi
13373     ;;
13374   esac
13375   ;;
13376
13377 solaris*)
13378   case $cc_basename in
13379   CC*)
13380     # The more standards-conforming stlport4 library is
13381     # incompatible with the Cstd library. Avoid specifying
13382     # it if it's in CXXFLAGS. Ignore libCrun as
13383     # -library=stlport4 depends on it.
13384     case " $CXX $CXXFLAGS " in
13385     *" -library=stlport4 "*)
13386       solaris_use_stlport4=yes
13387       ;;
13388     esac
13389
13390     # Adding this requires a known-good setup of shared libraries for
13391     # Sun compiler versions before 5.6, else PIC objects from an old
13392     # archive will be linked into the output, leading to subtle bugs.
13393     if test "$solaris_use_stlport4" != yes; then
13394       postdeps_CXX='-library=Cstd -library=Crun'
13395     fi
13396     ;;
13397   esac
13398   ;;
13399 esac
13400
13401
13402 case " $postdeps_CXX " in
13403 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13404 esac
13405  compiler_lib_search_dirs_CXX=
13406 if test -n "${compiler_lib_search_path_CXX}"; then
13407  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13408 fi
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
13436
13437
13438
13439
13440     lt_prog_compiler_wl_CXX=
13441 lt_prog_compiler_pic_CXX=
13442 lt_prog_compiler_static_CXX=
13443
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13445 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13446
13447   # C++ specific cases for pic, static, wl, etc.
13448   if test "$GXX" = yes; then
13449     lt_prog_compiler_wl_CXX='-Wl,'
13450     lt_prog_compiler_static_CXX='-static'
13451
13452     case $host_os in
13453     aix*)
13454       # All AIX code is PIC.
13455       if test "$host_cpu" = ia64; then
13456         # AIX 5 now supports IA64 processor
13457         lt_prog_compiler_static_CXX='-Bstatic'
13458       fi
13459       ;;
13460
13461     amigaos*)
13462       case $host_cpu in
13463       powerpc)
13464             # see comment about AmigaOS4 .so support
13465             lt_prog_compiler_pic_CXX='-fPIC'
13466         ;;
13467       m68k)
13468             # FIXME: we need at least 68020 code to build shared libraries, but
13469             # adding the `-m68020' flag to GCC prevents building anything better,
13470             # like `-m68040'.
13471             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13472         ;;
13473       esac
13474       ;;
13475
13476     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13477       # PIC is the default for these OSes.
13478       ;;
13479     mingw* | cygwin* | os2* | pw32* | cegcc*)
13480       # This hack is so that the source file can tell whether it is being
13481       # built for inclusion in a dll (and should export symbols for example).
13482       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13483       # (--disable-auto-import) libraries
13484       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13485       ;;
13486     darwin* | rhapsody*)
13487       # PIC is the default on this platform
13488       # Common symbols not allowed in MH_DYLIB files
13489       lt_prog_compiler_pic_CXX='-fno-common'
13490       ;;
13491     *djgpp*)
13492       # DJGPP does not support shared libraries at all
13493       lt_prog_compiler_pic_CXX=
13494       ;;
13495     interix[3-9]*)
13496       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13497       # Instead, we relocate shared libraries at runtime.
13498       ;;
13499     sysv4*MP*)
13500       if test -d /usr/nec; then
13501         lt_prog_compiler_pic_CXX=-Kconform_pic
13502       fi
13503       ;;
13504     hpux*)
13505       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13506       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13507       # sets the default TLS model and affects inlining.
13508       case $host_cpu in
13509       hppa*64*)
13510         ;;
13511       *)
13512         lt_prog_compiler_pic_CXX='-fPIC'
13513         ;;
13514       esac
13515       ;;
13516     *qnx* | *nto*)
13517       # QNX uses GNU C++, but need to define -shared option too, otherwise
13518       # it will coredump.
13519       lt_prog_compiler_pic_CXX='-fPIC -shared'
13520       ;;
13521     *)
13522       lt_prog_compiler_pic_CXX='-fPIC'
13523       ;;
13524     esac
13525   else
13526     case $host_os in
13527       aix[4-9]*)
13528         # All AIX code is PIC.
13529         if test "$host_cpu" = ia64; then
13530           # AIX 5 now supports IA64 processor
13531           lt_prog_compiler_static_CXX='-Bstatic'
13532         else
13533           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13534         fi
13535         ;;
13536       chorus*)
13537         case $cc_basename in
13538         cxch68*)
13539           # Green Hills C++ Compiler
13540           # _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"
13541           ;;
13542         esac
13543         ;;
13544       dgux*)
13545         case $cc_basename in
13546           ec++*)
13547             lt_prog_compiler_pic_CXX='-KPIC'
13548             ;;
13549           ghcx*)
13550             # Green Hills C++ Compiler
13551             lt_prog_compiler_pic_CXX='-pic'
13552             ;;
13553           *)
13554             ;;
13555         esac
13556         ;;
13557       freebsd* | dragonfly*)
13558         # FreeBSD uses GNU C++
13559         ;;
13560       hpux9* | hpux10* | hpux11*)
13561         case $cc_basename in
13562           CC*)
13563             lt_prog_compiler_wl_CXX='-Wl,'
13564             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13565             if test "$host_cpu" != ia64; then
13566               lt_prog_compiler_pic_CXX='+Z'
13567             fi
13568             ;;
13569           aCC*)
13570             lt_prog_compiler_wl_CXX='-Wl,'
13571             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13572             case $host_cpu in
13573             hppa*64*|ia64*)
13574               # +Z the default
13575               ;;
13576             *)
13577               lt_prog_compiler_pic_CXX='+Z'
13578               ;;
13579             esac
13580             ;;
13581           *)
13582             ;;
13583         esac
13584         ;;
13585       interix*)
13586         # This is c89, which is MS Visual C++ (no shared libs)
13587         # Anyone wants to do a port?
13588         ;;
13589       irix5* | irix6* | nonstopux*)
13590         case $cc_basename in
13591           CC*)
13592             lt_prog_compiler_wl_CXX='-Wl,'
13593             lt_prog_compiler_static_CXX='-non_shared'
13594             # CC pic flag -KPIC is the default.
13595             ;;
13596           *)
13597             ;;
13598         esac
13599         ;;
13600       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13601         case $cc_basename in
13602           KCC*)
13603             # KAI C++ Compiler
13604             lt_prog_compiler_wl_CXX='--backend -Wl,'
13605             lt_prog_compiler_pic_CXX='-fPIC'
13606             ;;
13607           ecpc* )
13608             # old Intel C++ for x86_64 which still supported -KPIC.
13609             lt_prog_compiler_wl_CXX='-Wl,'
13610             lt_prog_compiler_pic_CXX='-KPIC'
13611             lt_prog_compiler_static_CXX='-static'
13612             ;;
13613           icpc* )
13614             # Intel C++, used to be incompatible with GCC.
13615             # ICC 10 doesn't accept -KPIC any more.
13616             lt_prog_compiler_wl_CXX='-Wl,'
13617             lt_prog_compiler_pic_CXX='-fPIC'
13618             lt_prog_compiler_static_CXX='-static'
13619             ;;
13620           pgCC* | pgcpp*)
13621             # Portland Group C++ compiler
13622             lt_prog_compiler_wl_CXX='-Wl,'
13623             lt_prog_compiler_pic_CXX='-fpic'
13624             lt_prog_compiler_static_CXX='-Bstatic'
13625             ;;
13626           cxx*)
13627             # Compaq C++
13628             # Make sure the PIC flag is empty.  It appears that all Alpha
13629             # Linux and Compaq Tru64 Unix objects are PIC.
13630             lt_prog_compiler_pic_CXX=
13631             lt_prog_compiler_static_CXX='-non_shared'
13632             ;;
13633           xlc* | xlC*)
13634             # IBM XL 8.0 on PPC
13635             lt_prog_compiler_wl_CXX='-Wl,'
13636             lt_prog_compiler_pic_CXX='-qpic'
13637             lt_prog_compiler_static_CXX='-qstaticlink'
13638             ;;
13639           *)
13640             case `$CC -V 2>&1 | sed 5q` in
13641             *Sun\ C*)
13642               # Sun C++ 5.9
13643               lt_prog_compiler_pic_CXX='-KPIC'
13644               lt_prog_compiler_static_CXX='-Bstatic'
13645               lt_prog_compiler_wl_CXX='-Qoption ld '
13646               ;;
13647             esac
13648             ;;
13649         esac
13650         ;;
13651       lynxos*)
13652         ;;
13653       m88k*)
13654         ;;
13655       mvs*)
13656         case $cc_basename in
13657           cxx*)
13658             lt_prog_compiler_pic_CXX='-W c,exportall'
13659             ;;
13660           *)
13661             ;;
13662         esac
13663         ;;
13664       netbsd* | netbsdelf*-gnu)
13665         ;;
13666       *qnx* | *nto*)
13667         # QNX uses GNU C++, but need to define -shared option too, otherwise
13668         # it will coredump.
13669         lt_prog_compiler_pic_CXX='-fPIC -shared'
13670         ;;
13671       osf3* | osf4* | osf5*)
13672         case $cc_basename in
13673           KCC*)
13674             lt_prog_compiler_wl_CXX='--backend -Wl,'
13675             ;;
13676           RCC*)
13677             # Rational C++ 2.4.1
13678             lt_prog_compiler_pic_CXX='-pic'
13679             ;;
13680           cxx*)
13681             # Digital/Compaq C++
13682             lt_prog_compiler_wl_CXX='-Wl,'
13683             # Make sure the PIC flag is empty.  It appears that all Alpha
13684             # Linux and Compaq Tru64 Unix objects are PIC.
13685             lt_prog_compiler_pic_CXX=
13686             lt_prog_compiler_static_CXX='-non_shared'
13687             ;;
13688           *)
13689             ;;
13690         esac
13691         ;;
13692       psos*)
13693         ;;
13694       solaris*)
13695         case $cc_basename in
13696           CC*)
13697             # Sun C++ 4.2, 5.x and Centerline C++
13698             lt_prog_compiler_pic_CXX='-KPIC'
13699             lt_prog_compiler_static_CXX='-Bstatic'
13700             lt_prog_compiler_wl_CXX='-Qoption ld '
13701             ;;
13702           gcx*)
13703             # Green Hills C++ Compiler
13704             lt_prog_compiler_pic_CXX='-PIC'
13705             ;;
13706           *)
13707             ;;
13708         esac
13709         ;;
13710       sunos4*)
13711         case $cc_basename in
13712           CC*)
13713             # Sun C++ 4.x
13714             lt_prog_compiler_pic_CXX='-pic'
13715             lt_prog_compiler_static_CXX='-Bstatic'
13716             ;;
13717           lcc*)
13718             # Lucid
13719             lt_prog_compiler_pic_CXX='-pic'
13720             ;;
13721           *)
13722             ;;
13723         esac
13724         ;;
13725       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13726         case $cc_basename in
13727           CC*)
13728             lt_prog_compiler_wl_CXX='-Wl,'
13729             lt_prog_compiler_pic_CXX='-KPIC'
13730             lt_prog_compiler_static_CXX='-Bstatic'
13731             ;;
13732         esac
13733         ;;
13734       tandem*)
13735         case $cc_basename in
13736           NCC*)
13737             # NonStop-UX NCC 3.20
13738             lt_prog_compiler_pic_CXX='-KPIC'
13739             ;;
13740           *)
13741             ;;
13742         esac
13743         ;;
13744       vxworks*)
13745         ;;
13746       *)
13747         lt_prog_compiler_can_build_shared_CXX=no
13748         ;;
13749     esac
13750   fi
13751
13752 case $host_os in
13753   # For platforms which do not support PIC, -DPIC is meaningless:
13754   *djgpp*)
13755     lt_prog_compiler_pic_CXX=
13756     ;;
13757   *)
13758     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13759     ;;
13760 esac
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13762 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13763
13764
13765
13766 #
13767 # Check to make sure the PIC flag actually works.
13768 #
13769 if test -n "$lt_prog_compiler_pic_CXX"; then
13770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13771 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13772 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13773   $as_echo_n "(cached) " >&6
13774 else
13775   lt_cv_prog_compiler_pic_works_CXX=no
13776    ac_outfile=conftest.$ac_objext
13777    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13778    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13779    # Insert the option either (1) after the last *FLAGS variable, or
13780    # (2) before a word containing "conftest.", or (3) at the end.
13781    # Note that $ac_compile itself does not contain backslashes and begins
13782    # with a dollar sign (not a hyphen), so the echo should work correctly.
13783    # The option is referenced via a variable to avoid confusing sed.
13784    lt_compile=`echo "$ac_compile" | $SED \
13785    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13786    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13787    -e 's:$: $lt_compiler_flag:'`
13788    (eval echo "\"\$as_me:13788: $lt_compile\"" >&5)
13789    (eval "$lt_compile" 2>conftest.err)
13790    ac_status=$?
13791    cat conftest.err >&5
13792    echo "$as_me:13792: \$? = $ac_status" >&5
13793    if (exit $ac_status) && test -s "$ac_outfile"; then
13794      # The compiler can only warn and ignore the option if not recognized
13795      # So say no if there are warnings other than the usual output.
13796      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13797      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13798      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13799        lt_cv_prog_compiler_pic_works_CXX=yes
13800      fi
13801    fi
13802    $RM conftest*
13803
13804 fi
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13806 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13807
13808 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13809     case $lt_prog_compiler_pic_CXX in
13810      "" | " "*) ;;
13811      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13812      esac
13813 else
13814     lt_prog_compiler_pic_CXX=
13815      lt_prog_compiler_can_build_shared_CXX=no
13816 fi
13817
13818 fi
13819
13820
13821
13822 #
13823 # Check to make sure the static flag actually works.
13824 #
13825 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13827 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13828 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13829   $as_echo_n "(cached) " >&6
13830 else
13831   lt_cv_prog_compiler_static_works_CXX=no
13832    save_LDFLAGS="$LDFLAGS"
13833    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13834    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13835    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13836      # The linker can only warn and ignore the option if not recognized
13837      # So say no if there are warnings
13838      if test -s conftest.err; then
13839        # Append any errors to the config.log.
13840        cat conftest.err 1>&5
13841        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13842        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13843        if diff conftest.exp conftest.er2 >/dev/null; then
13844          lt_cv_prog_compiler_static_works_CXX=yes
13845        fi
13846      else
13847        lt_cv_prog_compiler_static_works_CXX=yes
13848      fi
13849    fi
13850    $RM -r conftest*
13851    LDFLAGS="$save_LDFLAGS"
13852
13853 fi
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13855 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13856
13857 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13858     :
13859 else
13860     lt_prog_compiler_static_CXX=
13861 fi
13862
13863
13864
13865
13866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13867 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13868 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13869   $as_echo_n "(cached) " >&6
13870 else
13871   lt_cv_prog_compiler_c_o_CXX=no
13872    $RM -r conftest 2>/dev/null
13873    mkdir conftest
13874    cd conftest
13875    mkdir out
13876    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13877
13878    lt_compiler_flag="-o out/conftest2.$ac_objext"
13879    # Insert the option either (1) after the last *FLAGS variable, or
13880    # (2) before a word containing "conftest.", or (3) at the end.
13881    # Note that $ac_compile itself does not contain backslashes and begins
13882    # with a dollar sign (not a hyphen), so the echo should work correctly.
13883    lt_compile=`echo "$ac_compile" | $SED \
13884    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13885    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13886    -e 's:$: $lt_compiler_flag:'`
13887    (eval echo "\"\$as_me:13887: $lt_compile\"" >&5)
13888    (eval "$lt_compile" 2>out/conftest.err)
13889    ac_status=$?
13890    cat out/conftest.err >&5
13891    echo "$as_me:13891: \$? = $ac_status" >&5
13892    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13893    then
13894      # The compiler can only warn and ignore the option if not recognized
13895      # So say no if there are warnings
13896      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13897      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13898      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13899        lt_cv_prog_compiler_c_o_CXX=yes
13900      fi
13901    fi
13902    chmod u+w . 2>&5
13903    $RM conftest*
13904    # SGI C++ compiler will create directory out/ii_files/ for
13905    # template instantiation
13906    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13907    $RM out/* && rmdir out
13908    cd ..
13909    $RM -r conftest
13910    $RM conftest*
13911
13912 fi
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13914 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13915
13916
13917
13918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13919 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13920 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13921   $as_echo_n "(cached) " >&6
13922 else
13923   lt_cv_prog_compiler_c_o_CXX=no
13924    $RM -r conftest 2>/dev/null
13925    mkdir conftest
13926    cd conftest
13927    mkdir out
13928    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13929
13930    lt_compiler_flag="-o out/conftest2.$ac_objext"
13931    # Insert the option either (1) after the last *FLAGS variable, or
13932    # (2) before a word containing "conftest.", or (3) at the end.
13933    # Note that $ac_compile itself does not contain backslashes and begins
13934    # with a dollar sign (not a hyphen), so the echo should work correctly.
13935    lt_compile=`echo "$ac_compile" | $SED \
13936    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13937    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13938    -e 's:$: $lt_compiler_flag:'`
13939    (eval echo "\"\$as_me:13939: $lt_compile\"" >&5)
13940    (eval "$lt_compile" 2>out/conftest.err)
13941    ac_status=$?
13942    cat out/conftest.err >&5
13943    echo "$as_me:13943: \$? = $ac_status" >&5
13944    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13945    then
13946      # The compiler can only warn and ignore the option if not recognized
13947      # So say no if there are warnings
13948      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13949      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13950      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13951        lt_cv_prog_compiler_c_o_CXX=yes
13952      fi
13953    fi
13954    chmod u+w . 2>&5
13955    $RM conftest*
13956    # SGI C++ compiler will create directory out/ii_files/ for
13957    # template instantiation
13958    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13959    $RM out/* && rmdir out
13960    cd ..
13961    $RM -r conftest
13962    $RM conftest*
13963
13964 fi
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13966 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13967
13968
13969
13970
13971 hard_links="nottested"
13972 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13973   # do not overwrite the value of need_locks provided by the user
13974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13975 $as_echo_n "checking if we can lock with hard links... " >&6; }
13976   hard_links=yes
13977   $RM conftest*
13978   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13979   touch conftest.a
13980   ln conftest.a conftest.b 2>&5 || hard_links=no
13981   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13983 $as_echo "$hard_links" >&6; }
13984   if test "$hard_links" = no; then
13985     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13986 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13987     need_locks=warn
13988   fi
13989 else
13990   need_locks=no
13991 fi
13992
13993
13994
13995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13996 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13997
13998   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13999   case $host_os in
14000   aix[4-9]*)
14001     # If we're using GNU nm, then we don't want the "-C" option.
14002     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14003     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14004       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'
14005     else
14006       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'
14007     fi
14008     ;;
14009   pw32*)
14010     export_symbols_cmds_CXX="$ltdll_cmds"
14011   ;;
14012   cygwin* | mingw* | cegcc*)
14013     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'
14014   ;;
14015   linux* | k*bsd*-gnu)
14016     link_all_deplibs_CXX=no
14017   ;;
14018   *)
14019     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14020   ;;
14021   esac
14022   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14023
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14025 $as_echo "$ld_shlibs_CXX" >&6; }
14026 test "$ld_shlibs_CXX" = no && can_build_shared=no
14027
14028 with_gnu_ld_CXX=$with_gnu_ld
14029
14030
14031
14032
14033
14034
14035 #
14036 # Do we need to explicitly link libc?
14037 #
14038 case "x$archive_cmds_need_lc_CXX" in
14039 x|xyes)
14040   # Assume -lc should be added
14041   archive_cmds_need_lc_CXX=yes
14042
14043   if test "$enable_shared" = yes && test "$GCC" = yes; then
14044     case $archive_cmds_CXX in
14045     *'~'*)
14046       # FIXME: we may have to deal with multi-command sequences.
14047       ;;
14048     '$CC '*)
14049       # Test whether the compiler implicitly links with -lc since on some
14050       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14051       # to ld, don't add -lc before -lgcc.
14052       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14053 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14054       $RM conftest*
14055       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14056
14057       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14058   (eval $ac_compile) 2>&5
14059   ac_status=$?
14060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14061   test $ac_status = 0; } 2>conftest.err; then
14062         soname=conftest
14063         lib=conftest
14064         libobjs=conftest.$ac_objext
14065         deplibs=
14066         wl=$lt_prog_compiler_wl_CXX
14067         pic_flag=$lt_prog_compiler_pic_CXX
14068         compiler_flags=-v
14069         linker_flags=-v
14070         verstring=
14071         output_objdir=.
14072         libname=conftest
14073         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14074         allow_undefined_flag_CXX=
14075         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14076   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14077   ac_status=$?
14078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14079   test $ac_status = 0; }
14080         then
14081           archive_cmds_need_lc_CXX=no
14082         else
14083           archive_cmds_need_lc_CXX=yes
14084         fi
14085         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14086       else
14087         cat conftest.err 1>&5
14088       fi
14089       $RM conftest*
14090       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14091 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14092       ;;
14093     esac
14094   fi
14095   ;;
14096 esac
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
14157
14158
14159
14160
14161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14162 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14163
14164 library_names_spec=
14165 libname_spec='lib$name'
14166 soname_spec=
14167 shrext_cmds=".so"
14168 postinstall_cmds=
14169 postuninstall_cmds=
14170 finish_cmds=
14171 finish_eval=
14172 shlibpath_var=
14173 shlibpath_overrides_runpath=unknown
14174 version_type=none
14175 dynamic_linker="$host_os ld.so"
14176 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14177 need_lib_prefix=unknown
14178 hardcode_into_libs=no
14179
14180 # when you set need_version to no, make sure it does not cause -set_version
14181 # flags to be left without arguments
14182 need_version=unknown
14183
14184 case $host_os in
14185 aix3*)
14186   version_type=linux
14187   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14188   shlibpath_var=LIBPATH
14189
14190   # AIX 3 has no versioning support, so we append a major version to the name.
14191   soname_spec='${libname}${release}${shared_ext}$major'
14192   ;;
14193
14194 aix[4-9]*)
14195   version_type=linux
14196   need_lib_prefix=no
14197   need_version=no
14198   hardcode_into_libs=yes
14199   if test "$host_cpu" = ia64; then
14200     # AIX 5 supports IA64
14201     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14202     shlibpath_var=LD_LIBRARY_PATH
14203   else
14204     # With GCC up to 2.95.x, collect2 would create an import file
14205     # for dependence libraries.  The import file would start with
14206     # the line `#! .'.  This would cause the generated library to
14207     # depend on `.', always an invalid library.  This was fixed in
14208     # development snapshots of GCC prior to 3.0.
14209     case $host_os in
14210       aix4 | aix4.[01] | aix4.[01].*)
14211       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14212            echo ' yes '
14213            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14214         :
14215       else
14216         can_build_shared=no
14217       fi
14218       ;;
14219     esac
14220     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14221     # soname into executable. Probably we can add versioning support to
14222     # collect2, so additional links can be useful in future.
14223     if test "$aix_use_runtimelinking" = yes; then
14224       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14225       # instead of lib<name>.a to let people know that these are not
14226       # typical AIX shared libraries.
14227       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14228     else
14229       # We preserve .a as extension for shared libraries through AIX4.2
14230       # and later when we are not doing run time linking.
14231       library_names_spec='${libname}${release}.a $libname.a'
14232       soname_spec='${libname}${release}${shared_ext}$major'
14233     fi
14234     shlibpath_var=LIBPATH
14235   fi
14236   ;;
14237
14238 amigaos*)
14239   case $host_cpu in
14240   powerpc)
14241     # Since July 2007 AmigaOS4 officially supports .so libraries.
14242     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14244     ;;
14245   m68k)
14246     library_names_spec='$libname.ixlibrary $libname.a'
14247     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14248     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'
14249     ;;
14250   esac
14251   ;;
14252
14253 beos*)
14254   library_names_spec='${libname}${shared_ext}'
14255   dynamic_linker="$host_os ld.so"
14256   shlibpath_var=LIBRARY_PATH
14257   ;;
14258
14259 bsdi[45]*)
14260   version_type=linux
14261   need_version=no
14262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14263   soname_spec='${libname}${release}${shared_ext}$major'
14264   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14265   shlibpath_var=LD_LIBRARY_PATH
14266   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14267   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14268   # the default ld.so.conf also contains /usr/contrib/lib and
14269   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14270   # libtool to hard-code these into programs
14271   ;;
14272
14273 cygwin* | mingw* | pw32* | cegcc*)
14274   version_type=windows
14275   shrext_cmds=".dll"
14276   need_version=no
14277   need_lib_prefix=no
14278
14279   case $GCC,$host_os in
14280   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14281     library_names_spec='$libname.dll.a'
14282     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14283     postinstall_cmds='base_file=`basename \${file}`~
14284       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14285       dldir=$destdir/`dirname \$dlpath`~
14286       test -d \$dldir || mkdir -p \$dldir~
14287       $install_prog $dir/$dlname \$dldir/$dlname~
14288       chmod a+x \$dldir/$dlname~
14289       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14290         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14291       fi'
14292     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14293       dlpath=$dir/\$dldll~
14294        $RM \$dlpath'
14295     shlibpath_overrides_runpath=yes
14296
14297     case $host_os in
14298     cygwin*)
14299       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14300       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14301       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14302       ;;
14303     mingw* | cegcc*)
14304       # MinGW DLLs use traditional 'lib' prefix
14305       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14306       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14307       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14308         # It is most probably a Windows format PATH printed by
14309         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14310         # path with ; separators, and with drive letters. We can handle the
14311         # drive letters (cygwin fileutils understands them), so leave them,
14312         # especially as we might pass files found there to a mingw objdump,
14313         # which wouldn't understand a cygwinified path. Ahh.
14314         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14315       else
14316         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14317       fi
14318       ;;
14319     pw32*)
14320       # pw32 DLLs use 'pw' prefix rather than 'lib'
14321       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14322       ;;
14323     esac
14324     ;;
14325
14326   *)
14327     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14328     ;;
14329   esac
14330   dynamic_linker='Win32 ld.exe'
14331   # FIXME: first we should search . and the directory the executable is in
14332   shlibpath_var=PATH
14333   ;;
14334
14335 darwin* | rhapsody*)
14336   dynamic_linker="$host_os dyld"
14337   version_type=darwin
14338   need_lib_prefix=no
14339   need_version=no
14340   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14341   soname_spec='${libname}${release}${major}$shared_ext'
14342   shlibpath_overrides_runpath=yes
14343   shlibpath_var=DYLD_LIBRARY_PATH
14344   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14345
14346   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14347   ;;
14348
14349 dgux*)
14350   version_type=linux
14351   need_lib_prefix=no
14352   need_version=no
14353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14354   soname_spec='${libname}${release}${shared_ext}$major'
14355   shlibpath_var=LD_LIBRARY_PATH
14356   ;;
14357
14358 freebsd1*)
14359   dynamic_linker=no
14360   ;;
14361
14362 freebsd* | dragonfly*)
14363   # DragonFly does not have aout.  When/if they implement a new
14364   # versioning mechanism, adjust this.
14365   if test -x /usr/bin/objformat; then
14366     objformat=`/usr/bin/objformat`
14367   else
14368     case $host_os in
14369     freebsd[123]*) objformat=aout ;;
14370     *) objformat=elf ;;
14371     esac
14372   fi
14373   version_type=freebsd-$objformat
14374   case $version_type in
14375     freebsd-elf*)
14376       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14377       need_version=no
14378       need_lib_prefix=no
14379       ;;
14380     freebsd-*)
14381       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14382       need_version=yes
14383       ;;
14384   esac
14385   shlibpath_var=LD_LIBRARY_PATH
14386   case $host_os in
14387   freebsd2*)
14388     shlibpath_overrides_runpath=yes
14389     ;;
14390   freebsd3.[01]* | freebsdelf3.[01]*)
14391     shlibpath_overrides_runpath=yes
14392     hardcode_into_libs=yes
14393     ;;
14394   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14395   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14396     shlibpath_overrides_runpath=no
14397     hardcode_into_libs=yes
14398     ;;
14399   *) # from 4.6 on, and DragonFly
14400     shlibpath_overrides_runpath=yes
14401     hardcode_into_libs=yes
14402     ;;
14403   esac
14404   ;;
14405
14406 gnu*)
14407   version_type=linux
14408   need_lib_prefix=no
14409   need_version=no
14410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14411   soname_spec='${libname}${release}${shared_ext}$major'
14412   shlibpath_var=LD_LIBRARY_PATH
14413   hardcode_into_libs=yes
14414   ;;
14415
14416 hpux9* | hpux10* | hpux11*)
14417   # Give a soname corresponding to the major version so that dld.sl refuses to
14418   # link against other versions.
14419   version_type=sunos
14420   need_lib_prefix=no
14421   need_version=no
14422   case $host_cpu in
14423   ia64*)
14424     shrext_cmds='.so'
14425     hardcode_into_libs=yes
14426     dynamic_linker="$host_os dld.so"
14427     shlibpath_var=LD_LIBRARY_PATH
14428     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14430     soname_spec='${libname}${release}${shared_ext}$major'
14431     if test "X$HPUX_IA64_MODE" = X32; then
14432       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14433     else
14434       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14435     fi
14436     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14437     ;;
14438   hppa*64*)
14439     shrext_cmds='.sl'
14440     hardcode_into_libs=yes
14441     dynamic_linker="$host_os dld.sl"
14442     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14443     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14444     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445     soname_spec='${libname}${release}${shared_ext}$major'
14446     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14447     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14448     ;;
14449   *)
14450     shrext_cmds='.sl'
14451     dynamic_linker="$host_os dld.sl"
14452     shlibpath_var=SHLIB_PATH
14453     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14454     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14455     soname_spec='${libname}${release}${shared_ext}$major'
14456     ;;
14457   esac
14458   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14459   postinstall_cmds='chmod 555 $lib'
14460   ;;
14461
14462 interix[3-9]*)
14463   version_type=linux
14464   need_lib_prefix=no
14465   need_version=no
14466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14467   soname_spec='${libname}${release}${shared_ext}$major'
14468   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14469   shlibpath_var=LD_LIBRARY_PATH
14470   shlibpath_overrides_runpath=no
14471   hardcode_into_libs=yes
14472   ;;
14473
14474 irix5* | irix6* | nonstopux*)
14475   case $host_os in
14476     nonstopux*) version_type=nonstopux ;;
14477     *)
14478         if test "$lt_cv_prog_gnu_ld" = yes; then
14479                 version_type=linux
14480         else
14481                 version_type=irix
14482         fi ;;
14483   esac
14484   need_lib_prefix=no
14485   need_version=no
14486   soname_spec='${libname}${release}${shared_ext}$major'
14487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14488   case $host_os in
14489   irix5* | nonstopux*)
14490     libsuff= shlibsuff=
14491     ;;
14492   *)
14493     case $LD in # libtool.m4 will add one of these switches to LD
14494     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14495       libsuff= shlibsuff= libmagic=32-bit;;
14496     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14497       libsuff=32 shlibsuff=N32 libmagic=N32;;
14498     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14499       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14500     *) libsuff= shlibsuff= libmagic=never-match;;
14501     esac
14502     ;;
14503   esac
14504   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14505   shlibpath_overrides_runpath=no
14506   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14507   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14508   hardcode_into_libs=yes
14509   ;;
14510
14511 # No shared lib support for Linux oldld, aout, or coff.
14512 linux*oldld* | linux*aout* | linux*coff*)
14513   dynamic_linker=no
14514   ;;
14515
14516 # This must be Linux ELF.
14517 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14518   version_type=linux
14519   need_lib_prefix=no
14520   need_version=no
14521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522   soname_spec='${libname}${release}${shared_ext}$major'
14523   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14524   shlibpath_var=LD_LIBRARY_PATH
14525   shlibpath_overrides_runpath=no
14526   # Some binutils ld are patched to set DT_RUNPATH
14527   save_LDFLAGS=$LDFLAGS
14528   save_libdir=$libdir
14529   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14530        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h.  */
14533
14534 int
14535 main ()
14536 {
14537
14538   ;
14539   return 0;
14540 }
14541 _ACEOF
14542 if ac_fn_cxx_try_link "$LINENO"; then :
14543   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14544   shlibpath_overrides_runpath=yes
14545 fi
14546 fi
14547 rm -f core conftest.err conftest.$ac_objext \
14548     conftest$ac_exeext conftest.$ac_ext
14549   LDFLAGS=$save_LDFLAGS
14550   libdir=$save_libdir
14551
14552   # This implies no fast_install, which is unacceptable.
14553   # Some rework will be needed to allow for fast_install
14554   # before this can be enabled.
14555   hardcode_into_libs=yes
14556
14557   # Append ld.so.conf contents to the search path
14558   if test -f /etc/ld.so.conf; then
14559     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' ' '`
14560     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14561   fi
14562
14563   # We used to test for /lib/ld.so.1 and disable shared libraries on
14564   # powerpc, because MkLinux only supported shared libraries with the
14565   # GNU dynamic linker.  Since this was broken with cross compilers,
14566   # most powerpc-linux boxes support dynamic linking these days and
14567   # people can always --disable-shared, the test was removed, and we
14568   # assume the GNU/Linux dynamic linker is in use.
14569   dynamic_linker='GNU/Linux ld.so'
14570   ;;
14571
14572 netbsdelf*-gnu)
14573   version_type=linux
14574   need_lib_prefix=no
14575   need_version=no
14576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14577   soname_spec='${libname}${release}${shared_ext}$major'
14578   shlibpath_var=LD_LIBRARY_PATH
14579   shlibpath_overrides_runpath=no
14580   hardcode_into_libs=yes
14581   dynamic_linker='NetBSD ld.elf_so'
14582   ;;
14583
14584 netbsd*)
14585   version_type=sunos
14586   need_lib_prefix=no
14587   need_version=no
14588   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14589     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14590     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14591     dynamic_linker='NetBSD (a.out) ld.so'
14592   else
14593     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14594     soname_spec='${libname}${release}${shared_ext}$major'
14595     dynamic_linker='NetBSD ld.elf_so'
14596   fi
14597   shlibpath_var=LD_LIBRARY_PATH
14598   shlibpath_overrides_runpath=yes
14599   hardcode_into_libs=yes
14600   ;;
14601
14602 newsos6)
14603   version_type=linux
14604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14605   shlibpath_var=LD_LIBRARY_PATH
14606   shlibpath_overrides_runpath=yes
14607   ;;
14608
14609 *nto* | *qnx*)
14610   version_type=qnx
14611   need_lib_prefix=no
14612   need_version=no
14613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614   soname_spec='${libname}${release}${shared_ext}$major'
14615   shlibpath_var=LD_LIBRARY_PATH
14616   shlibpath_overrides_runpath=no
14617   hardcode_into_libs=yes
14618   dynamic_linker='ldqnx.so'
14619   ;;
14620
14621 openbsd*)
14622   version_type=sunos
14623   sys_lib_dlsearch_path_spec="/usr/lib"
14624   need_lib_prefix=no
14625   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14626   case $host_os in
14627     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14628     *)                          need_version=no  ;;
14629   esac
14630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14631   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14632   shlibpath_var=LD_LIBRARY_PATH
14633   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14634     case $host_os in
14635       openbsd2.[89] | openbsd2.[89].*)
14636         shlibpath_overrides_runpath=no
14637         ;;
14638       *)
14639         shlibpath_overrides_runpath=yes
14640         ;;
14641       esac
14642   else
14643     shlibpath_overrides_runpath=yes
14644   fi
14645   ;;
14646
14647 os2*)
14648   libname_spec='$name'
14649   shrext_cmds=".dll"
14650   need_lib_prefix=no
14651   library_names_spec='$libname${shared_ext} $libname.a'
14652   dynamic_linker='OS/2 ld.exe'
14653   shlibpath_var=LIBPATH
14654   ;;
14655
14656 osf3* | osf4* | osf5*)
14657   version_type=osf
14658   need_lib_prefix=no
14659   need_version=no
14660   soname_spec='${libname}${release}${shared_ext}$major'
14661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662   shlibpath_var=LD_LIBRARY_PATH
14663   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14664   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14665   ;;
14666
14667 rdos*)
14668   dynamic_linker=no
14669   ;;
14670
14671 solaris*)
14672   version_type=linux
14673   need_lib_prefix=no
14674   need_version=no
14675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14676   soname_spec='${libname}${release}${shared_ext}$major'
14677   shlibpath_var=LD_LIBRARY_PATH
14678   shlibpath_overrides_runpath=yes
14679   hardcode_into_libs=yes
14680   # ldd complains unless libraries are executable
14681   postinstall_cmds='chmod +x $lib'
14682   ;;
14683
14684 sunos4*)
14685   version_type=sunos
14686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14687   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14688   shlibpath_var=LD_LIBRARY_PATH
14689   shlibpath_overrides_runpath=yes
14690   if test "$with_gnu_ld" = yes; then
14691     need_lib_prefix=no
14692   fi
14693   need_version=yes
14694   ;;
14695
14696 sysv4 | sysv4.3*)
14697   version_type=linux
14698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14699   soname_spec='${libname}${release}${shared_ext}$major'
14700   shlibpath_var=LD_LIBRARY_PATH
14701   case $host_vendor in
14702     sni)
14703       shlibpath_overrides_runpath=no
14704       need_lib_prefix=no
14705       runpath_var=LD_RUN_PATH
14706       ;;
14707     siemens)
14708       need_lib_prefix=no
14709       ;;
14710     motorola)
14711       need_lib_prefix=no
14712       need_version=no
14713       shlibpath_overrides_runpath=no
14714       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14715       ;;
14716   esac
14717   ;;
14718
14719 sysv4*MP*)
14720   if test -d /usr/nec ;then
14721     version_type=linux
14722     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14723     soname_spec='$libname${shared_ext}.$major'
14724     shlibpath_var=LD_LIBRARY_PATH
14725   fi
14726   ;;
14727
14728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14729   version_type=freebsd-elf
14730   need_lib_prefix=no
14731   need_version=no
14732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14733   soname_spec='${libname}${release}${shared_ext}$major'
14734   shlibpath_var=LD_LIBRARY_PATH
14735   shlibpath_overrides_runpath=yes
14736   hardcode_into_libs=yes
14737   if test "$with_gnu_ld" = yes; then
14738     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14739   else
14740     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14741     case $host_os in
14742       sco3.2v5*)
14743         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14744         ;;
14745     esac
14746   fi
14747   sys_lib_dlsearch_path_spec='/usr/lib'
14748   ;;
14749
14750 tpf*)
14751   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14752   version_type=linux
14753   need_lib_prefix=no
14754   need_version=no
14755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756   shlibpath_var=LD_LIBRARY_PATH
14757   shlibpath_overrides_runpath=no
14758   hardcode_into_libs=yes
14759   ;;
14760
14761 uts4*)
14762   version_type=linux
14763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764   soname_spec='${libname}${release}${shared_ext}$major'
14765   shlibpath_var=LD_LIBRARY_PATH
14766   ;;
14767
14768 *)
14769   dynamic_linker=no
14770   ;;
14771 esac
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14773 $as_echo "$dynamic_linker" >&6; }
14774 test "$dynamic_linker" = no && can_build_shared=no
14775
14776 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14777 if test "$GCC" = yes; then
14778   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14779 fi
14780
14781 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14782   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14783 fi
14784 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14785   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14786 fi
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
14819
14820
14821
14822
14823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14824 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14825 hardcode_action_CXX=
14826 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14827    test -n "$runpath_var_CXX" ||
14828    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14829
14830   # We can hardcode non-existent directories.
14831   if test "$hardcode_direct_CXX" != no &&
14832      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14833      # have to relink, otherwise we might link with an installed library
14834      # when we should be linking with a yet-to-be-installed one
14835      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14836      test "$hardcode_minus_L_CXX" != no; then
14837     # Linking always hardcodes the temporary library directory.
14838     hardcode_action_CXX=relink
14839   else
14840     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14841     hardcode_action_CXX=immediate
14842   fi
14843 else
14844   # We cannot hardcode anything, or else we can only hardcode existing
14845   # directories.
14846   hardcode_action_CXX=unsupported
14847 fi
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14849 $as_echo "$hardcode_action_CXX" >&6; }
14850
14851 if test "$hardcode_action_CXX" = relink ||
14852    test "$inherit_rpath_CXX" = yes; then
14853   # Fast installation is not supported
14854   enable_fast_install=no
14855 elif test "$shlibpath_overrides_runpath" = yes ||
14856      test "$enable_shared" = no; then
14857   # Fast installation is not necessary
14858   enable_fast_install=needless
14859 fi
14860
14861
14862
14863
14864
14865
14866
14867   fi # test -n "$compiler"
14868
14869   CC=$lt_save_CC
14870   LDCXX=$LD
14871   LD=$lt_save_LD
14872   GCC=$lt_save_GCC
14873   with_gnu_ld=$lt_save_with_gnu_ld
14874   lt_cv_path_LDCXX=$lt_cv_path_LD
14875   lt_cv_path_LD=$lt_save_path_LD
14876   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14877   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14878 fi # test "$_lt_caught_CXX_error" != yes
14879
14880 ac_ext=c
14881 ac_cpp='$CPP $CPPFLAGS'
14882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14885
14886
14887 ac_config_headers="$ac_config_headers config.h"
14888
14889 for ac_header in stdarg.h stdio.h stdint.h sys/param.h
14890 do :
14891   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14892 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14893 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14894   cat >>confdefs.h <<_ACEOF
14895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14896 _ACEOF
14897
14898 fi
14899
14900 done
14901
14902 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14903 if test "x$ac_cv_func_vasprintf" = x""yes; then :
14904   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
14905
14906 else
14907   case " $LIBOBJS " in
14908   *" vasprintf.$ac_objext "* ) ;;
14909   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
14910  ;;
14911 esac
14912
14913 fi
14914
14915
14916
14917
14918 reauth=no
14919 # Check whether --enable-reauth was given.
14920 if test "${enable_reauth+set}" = set; then :
14921   enableval=$enable_reauth;  if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
14922       reauth=$enableval
14923     else
14924       echo "--enable-reauth argument must be yes or no"
14925       exit -1
14926     fi
14927
14928 fi
14929
14930
14931 if test "x$reauth" = "xyes" ; then
14932   echo "Fast reauthentication protocol enabled"
14933   TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
14934 fi
14935  if test "x$reauth" != "xno"; then
14936   GSSEAP_ENABLE_REAUTH_TRUE=
14937   GSSEAP_ENABLE_REAUTH_FALSE='#'
14938 else
14939   GSSEAP_ENABLE_REAUTH_TRUE='#'
14940   GSSEAP_ENABLE_REAUTH_FALSE=
14941 fi
14942
14943
14944 acceptor=yes
14945 # Check whether --enable-acceptor was given.
14946 if test "${enable_acceptor+set}" = set; then :
14947   enableval=$enable_acceptor;  if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
14948       acceptor=$enableval
14949     else
14950       echo "--enable-acceptor argument must be yes or no"
14951       exit -1
14952     fi
14953
14954 fi
14955
14956
14957 if test "x$acceptor" = "xyes" ; then
14958   echo "acceptor enabled"
14959   TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_ACCEPTOR"
14960 fi
14961  if test "x$acceptor" != "xno"; then
14962   GSSEAP_ENABLE_ACCEPTOR_TRUE=
14963   GSSEAP_ENABLE_ACCEPTOR_FALSE='#'
14964 else
14965   GSSEAP_ENABLE_ACCEPTOR_TRUE='#'
14966   GSSEAP_ENABLE_ACCEPTOR_FALSE=
14967 fi
14968
14969
14970
14971
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows" >&5
14973 $as_echo_n "checking for windows... " >&6; }
14974 target_windows="no"
14975 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
14976 if test "x$ac_cv_header_windows_h" = x""yes; then :
14977   target_windows="yes"
14978 else
14979   target_windows="no"
14980 fi
14981
14982
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_windows" >&5
14984 $as_echo "$target_windows" >&6; }
14985  if test "x$target_windows" = "xyes"; then
14986   TARGET_WINDOWS_TRUE=
14987   TARGET_WINDOWS_FALSE='#'
14988 else
14989   TARGET_WINDOWS_TRUE='#'
14990   TARGET_WINDOWS_FALSE=
14991 fi
14992
14993
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS-API and Kerberos implementation" >&5
14995 $as_echo_n "checking for GSS-API and Kerberos implementation... " >&6; }
14996 KRB5_DIR=
14997 found_krb5="no"
14998
14999 # Check whether --with-krb5 was given.
15000 if test "${with_krb5+set}" = set; then :
15001   withval=$with_krb5; check_krb5_dir="$withval"
15002 else
15003   check_krb5_dir=
15004 fi
15005
15006 for dir in $check_krb5_dir $prefix /usr/local /usr ; do
15007    krb5dir="$dir"
15008    if test -x "$dir/bin/krb5-config"; then
15009      found_krb5="yes";
15010      if test "x$target_windows" = "xyes"; then
15011         KRB5_CFLAGS=-I"$check_krb5_dir/include";
15012         KRB5_LDFLAGS="-L$check_krb5_dir/lib/";
15013         KRB5_LIBS="-lkrb5_32 -lgssapi32";
15014         COMPILE_ET="$check_krb5_dir/bin/compile_et";
15015         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15016 $as_echo "yes" >&6; }
15017      else
15018         KRB5_CFLAGS=`$dir/bin/krb5-config gssapi --cflags`;
15019         KRB5_LDFLAGS="-L$dir/lib";
15020         KRB5_LIBS=`$dir/bin/krb5-config gssapi --libs`
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15022 $as_echo "yes" >&6; }
15023         # Extract the first word of "compile_et", so it can be a program name with args.
15024 set dummy compile_et; ac_word=$2
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15026 $as_echo_n "checking for $ac_word... " >&6; }
15027 if test "${ac_cv_path_COMPILE_ET+set}" = set; then :
15028   $as_echo_n "(cached) " >&6
15029 else
15030   case $COMPILE_ET in
15031   [\\/]* | ?:[\\/]*)
15032   ac_cv_path_COMPILE_ET="$COMPILE_ET" # Let the user override the test with a path.
15033   ;;
15034   *)
15035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15036 for as_dir in $dir/bin$PATH_SEPARATOr
15037 do
15038   IFS=$as_save_IFS
15039   test -z "$as_dir" && as_dir=.
15040     for ac_exec_ext in '' $ac_executable_extensions; do
15041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15042     ac_cv_path_COMPILE_ET="$as_dir/$ac_word$ac_exec_ext"
15043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15044     break 2
15045   fi
15046 done
15047   done
15048 IFS=$as_save_IFS
15049
15050   test -z "$ac_cv_path_COMPILE_ET" && ac_cv_path_COMPILE_ET="compile_et"
15051   ;;
15052 esac
15053 fi
15054 COMPILE_ET=$ac_cv_path_COMPILE_ET
15055 if test -n "$COMPILE_ET"; then
15056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
15057 $as_echo "$COMPILE_ET" >&6; }
15058 else
15059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060 $as_echo "no" >&6; }
15061 fi
15062
15063
15064      fi
15065      break;
15066    fi
15067 done
15068 if test x_$found_krb5 != x_yes; then
15069    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_krb5" >&5
15070 $as_echo "$found_krb5" >&6; }
15071    as_fn_error $? "
15072 ----------------------------------------------------------------------
15073   Cannot find GSS-API/Kerberos libraries.
15074
15075   Please install MIT or Heimdal or specify installation directory with
15076   --with-krb5=(dir).
15077 ----------------------------------------------------------------------
15078 " "$LINENO" 5
15079 else
15080         printf "Kerberos found in $krb5dir\n";
15081
15082
15083
15084
15085         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5" >&5
15086 $as_echo_n "checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5... " >&6; }
15087 if test "${ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT+set}" = set; then :
15088   $as_echo_n "(cached) " >&6
15089 else
15090   ac_check_lib_save_LIBS=$LIBS
15091 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h.  */
15094
15095 /* Override any GCC internal prototype to avoid an error.
15096    Use char because int might match the return type of a GCC
15097    builtin and then its argument prototype would still apply.  */
15098 #ifdef __cplusplus
15099 extern "C"
15100 #endif
15101 char GSS_C_NT_COMPOSITE_EXPORT ();
15102 int
15103 main ()
15104 {
15105 return GSS_C_NT_COMPOSITE_EXPORT ();
15106   ;
15107   return 0;
15108 }
15109 _ACEOF
15110 if ac_fn_c_try_link "$LINENO"; then :
15111   ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=yes
15112 else
15113   ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=no
15114 fi
15115 rm -f core conftest.err conftest.$ac_objext \
15116     conftest$ac_exeext conftest.$ac_ext
15117 LIBS=$ac_check_lib_save_LIBS
15118 fi
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&5
15120 $as_echo "$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&6; }
15121 if test "x$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" = x""yes; then :
15122
15123 cat >>confdefs.h <<_ACEOF
15124 #define HAVE_GSS_C_NT_COMPOSITE_EXPORT 1
15125 _ACEOF
15126
15127 fi
15128
15129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_inquire_attrs_for_mech in -lkrb5" >&5
15130 $as_echo_n "checking for gss_inquire_attrs_for_mech in -lkrb5... " >&6; }
15131 if test "${ac_cv_lib_krb5_gss_inquire_attrs_for_mech+set}" = set; then :
15132   $as_echo_n "(cached) " >&6
15133 else
15134   ac_check_lib_save_LIBS=$LIBS
15135 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h.  */
15138
15139 /* Override any GCC internal prototype to avoid an error.
15140    Use char because int might match the return type of a GCC
15141    builtin and then its argument prototype would still apply.  */
15142 #ifdef __cplusplus
15143 extern "C"
15144 #endif
15145 char gss_inquire_attrs_for_mech ();
15146 int
15147 main ()
15148 {
15149 return gss_inquire_attrs_for_mech ();
15150   ;
15151   return 0;
15152 }
15153 _ACEOF
15154 if ac_fn_c_try_link "$LINENO"; then :
15155   ac_cv_lib_krb5_gss_inquire_attrs_for_mech=yes
15156 else
15157   ac_cv_lib_krb5_gss_inquire_attrs_for_mech=no
15158 fi
15159 rm -f core conftest.err conftest.$ac_objext \
15160     conftest$ac_exeext conftest.$ac_ext
15161 LIBS=$ac_check_lib_save_LIBS
15162 fi
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&5
15164 $as_echo "$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&6; }
15165 if test "x$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" = x""yes; then :
15166
15167 cat >>confdefs.h <<_ACEOF
15168 #define HAVE_GSS_INQUIRE_ATTRS_FOR_MECH 1
15169 _ACEOF
15170
15171 fi
15172
15173         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_import_cred in -lkrb5" >&5
15174 $as_echo_n "checking for gss_krb5_import_cred in -lkrb5... " >&6; }
15175 if test "${ac_cv_lib_krb5_gss_krb5_import_cred+set}" = set; then :
15176   $as_echo_n "(cached) " >&6
15177 else
15178   ac_check_lib_save_LIBS=$LIBS
15179 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h.  */
15182
15183 /* Override any GCC internal prototype to avoid an error.
15184    Use char because int might match the return type of a GCC
15185    builtin and then its argument prototype would still apply.  */
15186 #ifdef __cplusplus
15187 extern "C"
15188 #endif
15189 char gss_krb5_import_cred ();
15190 int
15191 main ()
15192 {
15193 return gss_krb5_import_cred ();
15194   ;
15195   return 0;
15196 }
15197 _ACEOF
15198 if ac_fn_c_try_link "$LINENO"; then :
15199   ac_cv_lib_krb5_gss_krb5_import_cred=yes
15200 else
15201   ac_cv_lib_krb5_gss_krb5_import_cred=no
15202 fi
15203 rm -f core conftest.err conftest.$ac_objext \
15204     conftest$ac_exeext conftest.$ac_ext
15205 LIBS=$ac_check_lib_save_LIBS
15206 fi
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_krb5_import_cred" >&5
15208 $as_echo "$ac_cv_lib_krb5_gss_krb5_import_cred" >&6; }
15209 if test "x$ac_cv_lib_krb5_gss_krb5_import_cred" = x""yes; then :
15210
15211 cat >>confdefs.h <<_ACEOF
15212 #define HAVE_GSS_KRB5_IMPORT_CRED 1
15213 _ACEOF
15214
15215 fi
15216
15217         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heimdal_version in -lkrb5" >&5
15218 $as_echo_n "checking for heimdal_version in -lkrb5... " >&6; }
15219 if test "${ac_cv_lib_krb5_heimdal_version+set}" = set; then :
15220   $as_echo_n "(cached) " >&6
15221 else
15222   ac_check_lib_save_LIBS=$LIBS
15223 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225 /* end confdefs.h.  */
15226
15227 /* Override any GCC internal prototype to avoid an error.
15228    Use char because int might match the return type of a GCC
15229    builtin and then its argument prototype would still apply.  */
15230 #ifdef __cplusplus
15231 extern "C"
15232 #endif
15233 char heimdal_version ();
15234 int
15235 main ()
15236 {
15237 return heimdal_version ();
15238   ;
15239   return 0;
15240 }
15241 _ACEOF
15242 if ac_fn_c_try_link "$LINENO"; then :
15243   ac_cv_lib_krb5_heimdal_version=yes
15244 else
15245   ac_cv_lib_krb5_heimdal_version=no
15246 fi
15247 rm -f core conftest.err conftest.$ac_objext \
15248     conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_check_lib_save_LIBS
15250 fi
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_heimdal_version" >&5
15252 $as_echo "$ac_cv_lib_krb5_heimdal_version" >&6; }
15253 if test "x$ac_cv_lib_krb5_heimdal_version" = x""yes; then :
15254
15255 cat >>confdefs.h <<_ACEOF
15256 #define HAVE_HEIMDAL_VERSION 1
15257 _ACEOF
15258 , heimdal=yes
15259 else
15260   heimdal=no
15261 fi
15262
15263          if test "x$heimdal" != "xno"; then
15264   HEIMDAL_TRUE=
15265   HEIMDAL_FALSE='#'
15266 else
15267   HEIMDAL_TRUE='#'
15268   HEIMDAL_FALSE=
15269 fi
15270
15271 fi
15272
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSAML implementation" >&5
15274 $as_echo_n "checking for OpenSAML implementation... " >&6; }
15275 OPENSAML_DIR=
15276 found_opensaml="no"
15277
15278 # Check whether --with-opensaml was given.
15279 if test "${with_opensaml+set}" = set; then :
15280   withval=$with_opensaml; check_opensaml_dir="$withval"
15281 else
15282   check_opensaml_dir=
15283 fi
15284
15285 if test x_$check_opensaml_dir != x_no; then
15286 for dir in $check_opensaml_dir $prefix /usr /usr/local ; do
15287    opensamldir="$dir"
15288    if test -f "$dir/include/saml/Assertion.h"; then
15289      found_opensaml="yes";
15290      OPENSAML_DIR="${opensamldir}"
15291      OPENSAML_CXXFLAGS="-I$opensamldir/include";
15292      break;
15293    fi
15294 done
15295 fi
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_opensaml" >&5
15297 $as_echo "$found_opensaml" >&6; }
15298 if test x_$check_opensaml_dir != x_no; then
15299 if test x_$found_opensaml != x_yes; then
15300    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15301 ----------------------------------------------------------------------
15302   Cannot find OpenSAML libraries, building without OpenSAML support.
15303
15304   Please install OpenSAML or specify installation directory with
15305   --with-opensaml=(dir).
15306 ----------------------------------------------------------------------
15307 " >&5
15308 $as_echo "$as_me: WARNING:
15309 ----------------------------------------------------------------------
15310   Cannot find OpenSAML libraries, building without OpenSAML support.
15311
15312   Please install OpenSAML or specify installation directory with
15313   --with-opensaml=(dir).
15314 ----------------------------------------------------------------------
15315 " >&2;}
15316 else
15317         printf "OpenSAML found in $opensamldir\n";
15318         OPENSAML_LIBS="-lsaml -lxml-security-c -lxmltooling -lxerces-c";
15319         OPENSAML_LDFLAGS="-L$opensamldir/lib";
15320
15321
15322
15323
15324 cat >>confdefs.h <<_ACEOF
15325 #define HAVE_OPENSAML 1
15326 _ACEOF
15327
15328 fi
15329 fi
15330
15331  if test "x_$check_opensaml_dir" != "x_no"; then
15332   OPENSAML_TRUE=
15333   OPENSAML_FALSE='#'
15334 else
15335   OPENSAML_TRUE='#'
15336   OPENSAML_FALSE=
15337 fi
15338
15339
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth resolver implementation" >&5
15341 $as_echo_n "checking for Shibboleth resolver implementation... " >&6; }
15342 SHIBRESOLVER_DIR=
15343 found_shibresolver="no"
15344
15345 # Check whether --with-shibresolver was given.
15346 if test "${with_shibresolver+set}" = set; then :
15347   withval=$with_shibresolver; check_shibresolver_dir="$withval"
15348 else
15349   check_shibresolver_dir=
15350 fi
15351
15352 if test x_$check_shibresolver_dir != x_no; then
15353 for dir in $check_shibresolver_dir $prefix /usr /usr/local ; do
15354    shibresolverdir="$dir"
15355    if test -f "$dir/include/shibresolver/resolver.h"; then
15356      found_shibresolver="yes";
15357      SHIBRESOLVER_DIR="${shibresolverdir}"
15358      SHIBRESOLVER_CXXFLAGS="-I$shibresolverdir/include";
15359      break;
15360    fi
15361 done
15362 fi
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibresolver" >&5
15364 $as_echo "$found_shibresolver" >&6; }
15365 if test x_$check_shibresolver_dir != x_no; then
15366 if test x_$found_shibresolver != x_yes; then
15367    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15368 ----------------------------------------------------------------------
15369   Cannot find Shibboleth resolver libraries, building without
15370   Shibboleth support.
15371
15372   Please install Shibboleth or specify installation directory with
15373   --with-shibresolver=(dir).
15374 ----------------------------------------------------------------------
15375 " >&5
15376 $as_echo "$as_me: WARNING:
15377 ----------------------------------------------------------------------
15378   Cannot find Shibboleth resolver libraries, building without
15379   Shibboleth support.
15380
15381   Please install Shibboleth or specify installation directory with
15382   --with-shibresolver=(dir).
15383 ----------------------------------------------------------------------
15384 " >&2;}
15385 else
15386         printf "Shibboleth resolver found in $shibresolverdir\n";
15387         SHIBRESOLVER_LIBS="-lshibresolver";
15388         SHIBRESOLVER_LDFLAGS="-L$shibresolverdir/lib";
15389
15390
15391
15392
15393 cat >>confdefs.h <<_ACEOF
15394 #define HAVE_SHIBRESOLVER 1
15395 _ACEOF
15396
15397 fi
15398 fi
15399
15400  if test "x_$check_shibresolver_dir" != "x_no"; then
15401   SHIBRESOLVER_TRUE=
15402   SHIBRESOLVER_FALSE='#'
15403 else
15404   SHIBRESOLVER_TRUE='#'
15405   SHIBRESOLVER_FALSE=
15406 fi
15407
15408 if test x_$found_shibresolver = x_yes; then
15409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth implementation" >&5
15410 $as_echo_n "checking for Shibboleth implementation... " >&6; }
15411 SHIBSP_DIR=
15412 found_shibsp="no"
15413
15414 # Check whether --with-shibsp was given.
15415 if test "${with_shibsp+set}" = set; then :
15416   withval=$with_shibsp; check_shibsp_dir="$withval"
15417 else
15418   check_shibsp_dir=
15419 fi
15420
15421 for dir in $check_shibsp_dir $prefix /usr /usr/local ; do
15422    shibspdir="$dir"
15423    if test -f "$dir/include/shibsp/SPConfig.h"; then
15424      found_shibsp="yes";
15425      SHIBSP_DIR="${shibspdir}"
15426      SHIBSP_CXXFLAGS="-I$shibspdir/include";
15427      break;
15428    fi
15429 done
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibsp" >&5
15431 $as_echo "$found_shibsp" >&6; }
15432 if test x_$found_shibsp != x_yes; then
15433    as_fn_error $? "
15434 ----------------------------------------------------------------------
15435   Cannot find Shibboleth libraries.
15436
15437   Please install Shibboleth or specify installation directory with
15438   --with-shibsp=(dir).
15439 ----------------------------------------------------------------------
15440 " "$LINENO" 5
15441 else
15442         printf "Shibboleth found in $shibspdir\n";
15443         SHIBSP_LIBS="-lshibsp -lsaml -lxml-security-c -lxmltooling -lxerces-c";
15444         SHIBSP_LDFLAGS="-L$shibspdir/lib";
15445
15446
15447
15448
15449 cat >>confdefs.h <<_ACEOF
15450 #define HAVE_SHIBSP 1
15451 _ACEOF
15452
15453 fi
15454
15455 fi
15456
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
15458 $as_echo_n "checking for OpenSSL... " >&6; }
15459 OPENSSL_DIR=
15460 found_openssl="no"
15461
15462 # Check whether --with-openssl was given.
15463 if test "${with_openssl+set}" = set; then :
15464   withval=$with_openssl; check_openssl_dir="$withval"
15465 else
15466   check_openssl_dir=
15467 fi
15468
15469 for dir in $check_openssl_dir $prefix /usr /usr/local ; do
15470    openssldir="$dir"
15471    if test -f "$dir/include/openssl/opensslv.h"; then
15472      found_openssl="yes";
15473      OPENSSL_DIR="${openssldir}"
15474      OPENSSL_CFLAGS="-I$openssldir/include";
15475      break;
15476    fi
15477 done
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_openssl" >&5
15479 $as_echo "$found_openssl" >&6; }
15480 if test x_$found_openssl != x_yes; then
15481    as_fn_error $? "
15482 ----------------------------------------------------------------------
15483   Cannot find OpenSSL libraries.
15484
15485   Please install libssl or specify installation directory with
15486   --with-openssl=(dir).
15487 ----------------------------------------------------------------------
15488 " "$LINENO" 5
15489 else
15490         printf "OpenSSL found in $openssldir\n";
15491         OPENSSL_LIBS="-lssl -lcrypto";
15492         OPENSSL_LDFLAGS="-L$openssldir/lib";
15493
15494
15495
15496 fi
15497
15498
15499 if test "x$acceptor" = "xyes" ; then
15500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for radsec" >&5
15501 $as_echo_n "checking for radsec... " >&6; }
15502 RADSEC_DIR=
15503 found_radsec="no"
15504
15505 # Check whether --with-radsec was given.
15506 if test "${with_radsec+set}" = set; then :
15507   withval=$with_radsec; check_radsec_dir="$withval"
15508 else
15509   check_radsec_dir=
15510 fi
15511
15512 for dir in $check_radsec_dir $prefix /usr /usr/local ; do
15513    radsecdir="$dir"
15514    if test -f "$dir/include/radsec/radsec.h"; then
15515      found_radsec="yes";
15516      RADSEC_DIR="${radsecdir}"
15517      RADSEC_CFLAGS="-I$radsecdir/include";
15518      break;
15519    fi
15520 done
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_radsec" >&5
15522 $as_echo "$found_radsec" >&6; }
15523 if test x_$found_radsec != x_yes; then
15524    as_fn_error $? "
15525 ----------------------------------------------------------------------
15526   Cannot find radsec libraries.
15527
15528   Please install libradsec or specify installation directory with
15529   --with-radsec=(dir).
15530 ----------------------------------------------------------------------
15531 " "$LINENO" 5
15532 else
15533         printf "radsec found in $radsecdir\n";
15534         RADSEC_LIBS="-lradsec";
15535         RADSEC_LDFLAGS="-L$radsecdir/lib";
15536
15537
15538
15539 fi
15540
15541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15542 $as_echo_n "checking for jansson... " >&6; }
15543 JANSSON_DIR=
15544 found_jansson="no"
15545
15546 # Check whether --with-jansson was given.
15547 if test "${with_jansson+set}" = set; then :
15548   withval=$with_jansson; check_jansson_dir="$withval"
15549 else
15550   check_jansson_dir=
15551 fi
15552
15553 for dir in $check_jansson_dir $prefix /usr /usr/local ; do
15554    janssondir="$dir"
15555    if test -f "$dir/include/jansson.h"; then
15556      found_jansson="yes";
15557      JANSSON_DIR="${janssondir}"
15558      JANSSON_CFLAGS="-I$janssondir/include";
15559      break;
15560    fi
15561 done
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_jansson" >&5
15563 $as_echo "$found_jansson" >&6; }
15564 if test x_$found_jansson != x_yes; then
15565    as_fn_error $? "
15566 ----------------------------------------------------------------------
15567   Cannot find jansson libraries.
15568
15569   Please install libjansson or specify installation directory with
15570   --with-jansson=(dir).
15571 ----------------------------------------------------------------------
15572 " "$LINENO" 5
15573 else
15574         printf "jansson found in $janssondir\n";
15575         JANSSON_LIBS="-ljansson";
15576         JANSSON_LDFLAGS="-L$janssondir/lib";
15577
15578
15579
15580 fi
15581
15582 fi
15583
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Moonshot identity selector implementation" >&5
15585 $as_echo_n "checking for Moonshot identity selector implementation... " >&6; }
15586 LIBMOONSHOT_DIR=
15587 LIBMOONSHOT_CFLAGS=
15588 LIBMOONSHOT_LDFLAGS=
15589 LIBMOONSHOT_LIBS=
15590 found_libmoonshot="no"
15591
15592 # Check whether --with-libmoonshot was given.
15593 if test "${with_libmoonshot+set}" = set; then :
15594   withval=$with_libmoonshot; check_libmoonshot_dir="$withval"
15595 else
15596   check_libmoonshot_dir=
15597 fi
15598
15599 for dir in $check_libmoonshot_dir $prefix /usr /usr/local ; do
15600    libmoonshotdir="$dir"
15601    if test -f "$dir/include/libmoonshot.h"; then
15602      found_libmoonshot="yes";
15603      LIBMOONSHOT_DIR="${libmoonshotdir}"
15604      LIBMOONSHOT_CFLAGS="-I$libmoonshotdir/include";
15605      break;
15606    fi
15607 done
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_libmoonshot" >&5
15609 $as_echo "$found_libmoonshot" >&6; }
15610 if test x_$found_libmoonshot = x_yes; then
15611     printf "libmoonshot found in $libmoonshotdir\n";
15612     LIBMOONSHOT_LIBS="-lmoonshot";
15613     LIBMOONSHOT_LDFLAGS="-L$libmoonshot/lib";
15614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot_get_identity in -lmoonshot" >&5
15615 $as_echo_n "checking for moonshot_get_identity in -lmoonshot... " >&6; }
15616 if test "${ac_cv_lib_moonshot_moonshot_get_identity+set}" = set; then :
15617   $as_echo_n "(cached) " >&6
15618 else
15619   ac_check_lib_save_LIBS=$LIBS
15620 LIBS="-lmoonshot "$LIBMOONSHOT_LIBS" $LIBS"
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h.  */
15623
15624 /* Override any GCC internal prototype to avoid an error.
15625    Use char because int might match the return type of a GCC
15626    builtin and then its argument prototype would still apply.  */
15627 #ifdef __cplusplus
15628 extern "C"
15629 #endif
15630 char moonshot_get_identity ();
15631 int
15632 main ()
15633 {
15634 return moonshot_get_identity ();
15635   ;
15636   return 0;
15637 }
15638 _ACEOF
15639 if ac_fn_c_try_link "$LINENO"; then :
15640   ac_cv_lib_moonshot_moonshot_get_identity=yes
15641 else
15642   ac_cv_lib_moonshot_moonshot_get_identity=no
15643 fi
15644 rm -f core conftest.err conftest.$ac_objext \
15645     conftest$ac_exeext conftest.$ac_ext
15646 LIBS=$ac_check_lib_save_LIBS
15647 fi
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_moonshot_moonshot_get_identity" >&5
15649 $as_echo "$ac_cv_lib_moonshot_moonshot_get_identity" >&6; }
15650 if test "x$ac_cv_lib_moonshot_moonshot_get_identity" = x""yes; then :
15651
15652 cat >>confdefs.h <<_ACEOF
15653 #define HAVE_MOONSHOT_GET_IDENTITY 1
15654 _ACEOF
15655
15656 fi
15657
15658 fi
15659
15660
15661
15662      if test "x$found_libmoonshot" != "xno"; then
15663   LIBMOONSHOT_TRUE=
15664   LIBMOONSHOT_FALSE='#'
15665 else
15666   LIBMOONSHOT_TRUE='#'
15667   LIBMOONSHOT_FALSE=
15668 fi
15669
15670
15671 ac_config_files="$ac_config_files Makefile libeap/Makefile mech_eap/Makefile mech_eap.spec"
15672
15673 cat >confcache <<\_ACEOF
15674 # This file is a shell script that caches the results of configure
15675 # tests run on this system so they can be shared between configure
15676 # scripts and configure runs, see configure's option --config-cache.
15677 # It is not useful on other systems.  If it contains results you don't
15678 # want to keep, you may remove or edit it.
15679 #
15680 # config.status only pays attention to the cache file if you give it
15681 # the --recheck option to rerun configure.
15682 #
15683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15685 # following values.
15686
15687 _ACEOF
15688
15689 # The following way of writing the cache mishandles newlines in values,
15690 # but we know of no workaround that is simple, portable, and efficient.
15691 # So, we kill variables containing newlines.
15692 # Ultrix sh set writes to stderr and can't be redirected directly,
15693 # and sets the high bit in the cache file unless we assign to the vars.
15694 (
15695   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15696     eval ac_val=\$$ac_var
15697     case $ac_val in #(
15698     *${as_nl}*)
15699       case $ac_var in #(
15700       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15701 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15702       esac
15703       case $ac_var in #(
15704       _ | IFS | as_nl) ;; #(
15705       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15706       *) { eval $ac_var=; unset $ac_var;} ;;
15707       esac ;;
15708     esac
15709   done
15710
15711   (set) 2>&1 |
15712     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15713     *${as_nl}ac_space=\ *)
15714       # `set' does not quote correctly, so add quotes: double-quote
15715       # substitution turns \\\\ into \\, and sed turns \\ into \.
15716       sed -n \
15717         "s/'/'\\\\''/g;
15718           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15719       ;; #(
15720     *)
15721       # `set' quotes correctly as required by POSIX, so do not add quotes.
15722       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15723       ;;
15724     esac |
15725     sort
15726 ) |
15727   sed '
15728      /^ac_cv_env_/b end
15729      t clear
15730      :clear
15731      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15732      t end
15733      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15734      :end' >>confcache
15735 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15736   if test -w "$cache_file"; then
15737     test "x$cache_file" != "x/dev/null" &&
15738       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15739 $as_echo "$as_me: updating cache $cache_file" >&6;}
15740     cat confcache >$cache_file
15741   else
15742     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15743 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15744   fi
15745 fi
15746 rm -f confcache
15747
15748 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15749 # Let make expand exec_prefix.
15750 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15751
15752 DEFS=-DHAVE_CONFIG_H
15753
15754 ac_libobjs=
15755 ac_ltlibobjs=
15756 U=
15757 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15758   # 1. Remove the extension, and $U if already installed.
15759   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15760   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15761   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15762   #    will be set to the directory where LIBOBJS objects are built.
15763   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15764   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15765 done
15766 LIBOBJS=$ac_libobjs
15767
15768 LTLIBOBJS=$ac_ltlibobjs
15769
15770
15771 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15772   as_fn_error $? "conditional \"AMDEP\" was never defined.
15773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15774 fi
15775 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15776   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15778 fi
15779  if test -n "$EXEEXT"; then
15780   am__EXEEXT_TRUE=
15781   am__EXEEXT_FALSE='#'
15782 else
15783   am__EXEEXT_TRUE='#'
15784   am__EXEEXT_FALSE=
15785 fi
15786
15787 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15788   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15790 fi
15791 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15792   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15794 fi
15795 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15796   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15798 fi
15799 if test -z "${GSSEAP_ENABLE_REAUTH_TRUE}" && test -z "${GSSEAP_ENABLE_REAUTH_FALSE}"; then
15800   as_fn_error $? "conditional \"GSSEAP_ENABLE_REAUTH\" was never defined.
15801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15802 fi
15803 if test -z "${GSSEAP_ENABLE_ACCEPTOR_TRUE}" && test -z "${GSSEAP_ENABLE_ACCEPTOR_FALSE}"; then
15804   as_fn_error $? "conditional \"GSSEAP_ENABLE_ACCEPTOR\" was never defined.
15805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15806 fi
15807 if test -z "${TARGET_WINDOWS_TRUE}" && test -z "${TARGET_WINDOWS_FALSE}"; then
15808   as_fn_error $? "conditional \"TARGET_WINDOWS\" was never defined.
15809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15810 fi
15811 if test -z "${HEIMDAL_TRUE}" && test -z "${HEIMDAL_FALSE}"; then
15812   as_fn_error $? "conditional \"HEIMDAL\" was never defined.
15813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15814 fi
15815 if test -z "${OPENSAML_TRUE}" && test -z "${OPENSAML_FALSE}"; then
15816   as_fn_error $? "conditional \"OPENSAML\" was never defined.
15817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15818 fi
15819 if test -z "${SHIBRESOLVER_TRUE}" && test -z "${SHIBRESOLVER_FALSE}"; then
15820   as_fn_error $? "conditional \"SHIBRESOLVER\" was never defined.
15821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15822 fi
15823 if test -z "${LIBMOONSHOT_TRUE}" && test -z "${LIBMOONSHOT_FALSE}"; then
15824   as_fn_error $? "conditional \"LIBMOONSHOT\" was never defined.
15825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15826 fi
15827
15828 : ${CONFIG_STATUS=./config.status}
15829 ac_write_fail=0
15830 ac_clean_files_save=$ac_clean_files
15831 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15833 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15834 as_write_fail=0
15835 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15836 #! $SHELL
15837 # Generated by $as_me.
15838 # Run this file to recreate the current configuration.
15839 # Compiler output produced by configure, useful for debugging
15840 # configure, is in config.log if it exists.
15841
15842 debug=false
15843 ac_cs_recheck=false
15844 ac_cs_silent=false
15845
15846 SHELL=\${CONFIG_SHELL-$SHELL}
15847 export SHELL
15848 _ASEOF
15849 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15850 ## -------------------- ##
15851 ## M4sh Initialization. ##
15852 ## -------------------- ##
15853
15854 # Be more Bourne compatible
15855 DUALCASE=1; export DUALCASE # for MKS sh
15856 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15857   emulate sh
15858   NULLCMD=:
15859   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15860   # is contrary to our usage.  Disable this feature.
15861   alias -g '${1+"$@"}'='"$@"'
15862   setopt NO_GLOB_SUBST
15863 else
15864   case `(set -o) 2>/dev/null` in #(
15865   *posix*) :
15866     set -o posix ;; #(
15867   *) :
15868      ;;
15869 esac
15870 fi
15871
15872
15873 as_nl='
15874 '
15875 export as_nl
15876 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15877 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15878 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15879 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15880 # Prefer a ksh shell builtin over an external printf program on Solaris,
15881 # but without wasting forks for bash or zsh.
15882 if test -z "$BASH_VERSION$ZSH_VERSION" \
15883     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15884   as_echo='print -r --'
15885   as_echo_n='print -rn --'
15886 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15887   as_echo='printf %s\n'
15888   as_echo_n='printf %s'
15889 else
15890   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15891     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15892     as_echo_n='/usr/ucb/echo -n'
15893   else
15894     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15895     as_echo_n_body='eval
15896       arg=$1;
15897       case $arg in #(
15898       *"$as_nl"*)
15899         expr "X$arg" : "X\\(.*\\)$as_nl";
15900         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15901       esac;
15902       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15903     '
15904     export as_echo_n_body
15905     as_echo_n='sh -c $as_echo_n_body as_echo'
15906   fi
15907   export as_echo_body
15908   as_echo='sh -c $as_echo_body as_echo'
15909 fi
15910
15911 # The user is always right.
15912 if test "${PATH_SEPARATOR+set}" != set; then
15913   PATH_SEPARATOR=:
15914   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15915     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15916       PATH_SEPARATOR=';'
15917   }
15918 fi
15919
15920
15921 # IFS
15922 # We need space, tab and new line, in precisely that order.  Quoting is
15923 # there to prevent editors from complaining about space-tab.
15924 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15925 # splitting by setting IFS to empty value.)
15926 IFS=" ""        $as_nl"
15927
15928 # Find who we are.  Look in the path if we contain no directory separator.
15929 case $0 in #((
15930   *[\\/]* ) as_myself=$0 ;;
15931   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15932 for as_dir in $PATH
15933 do
15934   IFS=$as_save_IFS
15935   test -z "$as_dir" && as_dir=.
15936     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15937   done
15938 IFS=$as_save_IFS
15939
15940      ;;
15941 esac
15942 # We did not find ourselves, most probably we were run as `sh COMMAND'
15943 # in which case we are not to be found in the path.
15944 if test "x$as_myself" = x; then
15945   as_myself=$0
15946 fi
15947 if test ! -f "$as_myself"; then
15948   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15949   exit 1
15950 fi
15951
15952 # Unset variables that we do not need and which cause bugs (e.g. in
15953 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15954 # suppresses any "Segmentation fault" message there.  '((' could
15955 # trigger a bug in pdksh 5.2.14.
15956 for as_var in BASH_ENV ENV MAIL MAILPATH
15957 do eval test x\${$as_var+set} = xset \
15958   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15959 done
15960 PS1='$ '
15961 PS2='> '
15962 PS4='+ '
15963
15964 # NLS nuisances.
15965 LC_ALL=C
15966 export LC_ALL
15967 LANGUAGE=C
15968 export LANGUAGE
15969
15970 # CDPATH.
15971 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15972
15973
15974 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15975 # ----------------------------------------
15976 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15977 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15978 # script with STATUS, using 1 if that was 0.
15979 as_fn_error ()
15980 {
15981   as_status=$1; test $as_status -eq 0 && as_status=1
15982   if test "$4"; then
15983     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15984     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15985   fi
15986   $as_echo "$as_me: error: $2" >&2
15987   as_fn_exit $as_status
15988 } # as_fn_error
15989
15990
15991 # as_fn_set_status STATUS
15992 # -----------------------
15993 # Set $? to STATUS, without forking.
15994 as_fn_set_status ()
15995 {
15996   return $1
15997 } # as_fn_set_status
15998
15999 # as_fn_exit STATUS
16000 # -----------------
16001 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16002 as_fn_exit ()
16003 {
16004   set +e
16005   as_fn_set_status $1
16006   exit $1
16007 } # as_fn_exit
16008
16009 # as_fn_unset VAR
16010 # ---------------
16011 # Portably unset VAR.
16012 as_fn_unset ()
16013 {
16014   { eval $1=; unset $1;}
16015 }
16016 as_unset=as_fn_unset
16017 # as_fn_append VAR VALUE
16018 # ----------------------
16019 # Append the text in VALUE to the end of the definition contained in VAR. Take
16020 # advantage of any shell optimizations that allow amortized linear growth over
16021 # repeated appends, instead of the typical quadratic growth present in naive
16022 # implementations.
16023 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16024   eval 'as_fn_append ()
16025   {
16026     eval $1+=\$2
16027   }'
16028 else
16029   as_fn_append ()
16030   {
16031     eval $1=\$$1\$2
16032   }
16033 fi # as_fn_append
16034
16035 # as_fn_arith ARG...
16036 # ------------------
16037 # Perform arithmetic evaluation on the ARGs, and store the result in the
16038 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16039 # must be portable across $(()) and expr.
16040 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16041   eval 'as_fn_arith ()
16042   {
16043     as_val=$(( $* ))
16044   }'
16045 else
16046   as_fn_arith ()
16047   {
16048     as_val=`expr "$@" || test $? -eq 1`
16049   }
16050 fi # as_fn_arith
16051
16052
16053 if expr a : '\(a\)' >/dev/null 2>&1 &&
16054    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16055   as_expr=expr
16056 else
16057   as_expr=false
16058 fi
16059
16060 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16061   as_basename=basename
16062 else
16063   as_basename=false
16064 fi
16065
16066 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16067   as_dirname=dirname
16068 else
16069   as_dirname=false
16070 fi
16071
16072 as_me=`$as_basename -- "$0" ||
16073 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16074          X"$0" : 'X\(//\)$' \| \
16075          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16076 $as_echo X/"$0" |
16077     sed '/^.*\/\([^/][^/]*\)\/*$/{
16078             s//\1/
16079             q
16080           }
16081           /^X\/\(\/\/\)$/{
16082             s//\1/
16083             q
16084           }
16085           /^X\/\(\/\).*/{
16086             s//\1/
16087             q
16088           }
16089           s/.*/./; q'`
16090
16091 # Avoid depending upon Character Ranges.
16092 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16093 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16094 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16095 as_cr_digits='0123456789'
16096 as_cr_alnum=$as_cr_Letters$as_cr_digits
16097
16098 ECHO_C= ECHO_N= ECHO_T=
16099 case `echo -n x` in #(((((
16100 -n*)
16101   case `echo 'xy\c'` in
16102   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16103   xy)  ECHO_C='\c';;
16104   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16105        ECHO_T=' ';;
16106   esac;;
16107 *)
16108   ECHO_N='-n';;
16109 esac
16110
16111 rm -f conf$$ conf$$.exe conf$$.file
16112 if test -d conf$$.dir; then
16113   rm -f conf$$.dir/conf$$.file
16114 else
16115   rm -f conf$$.dir
16116   mkdir conf$$.dir 2>/dev/null
16117 fi
16118 if (echo >conf$$.file) 2>/dev/null; then
16119   if ln -s conf$$.file conf$$ 2>/dev/null; then
16120     as_ln_s='ln -s'
16121     # ... but there are two gotchas:
16122     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16123     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16124     # In both cases, we have to default to `cp -p'.
16125     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16126       as_ln_s='cp -p'
16127   elif ln conf$$.file conf$$ 2>/dev/null; then
16128     as_ln_s=ln
16129   else
16130     as_ln_s='cp -p'
16131   fi
16132 else
16133   as_ln_s='cp -p'
16134 fi
16135 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16136 rmdir conf$$.dir 2>/dev/null
16137
16138
16139 # as_fn_mkdir_p
16140 # -------------
16141 # Create "$as_dir" as a directory, including parents if necessary.
16142 as_fn_mkdir_p ()
16143 {
16144
16145   case $as_dir in #(
16146   -*) as_dir=./$as_dir;;
16147   esac
16148   test -d "$as_dir" || eval $as_mkdir_p || {
16149     as_dirs=
16150     while :; do
16151       case $as_dir in #(
16152       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16153       *) as_qdir=$as_dir;;
16154       esac
16155       as_dirs="'$as_qdir' $as_dirs"
16156       as_dir=`$as_dirname -- "$as_dir" ||
16157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16158          X"$as_dir" : 'X\(//\)[^/]' \| \
16159          X"$as_dir" : 'X\(//\)$' \| \
16160          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16161 $as_echo X"$as_dir" |
16162     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16163             s//\1/
16164             q
16165           }
16166           /^X\(\/\/\)[^/].*/{
16167             s//\1/
16168             q
16169           }
16170           /^X\(\/\/\)$/{
16171             s//\1/
16172             q
16173           }
16174           /^X\(\/\).*/{
16175             s//\1/
16176             q
16177           }
16178           s/.*/./; q'`
16179       test -d "$as_dir" && break
16180     done
16181     test -z "$as_dirs" || eval "mkdir $as_dirs"
16182   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16183
16184
16185 } # as_fn_mkdir_p
16186 if mkdir -p . 2>/dev/null; then
16187   as_mkdir_p='mkdir -p "$as_dir"'
16188 else
16189   test -d ./-p && rmdir ./-p
16190   as_mkdir_p=false
16191 fi
16192
16193 if test -x / >/dev/null 2>&1; then
16194   as_test_x='test -x'
16195 else
16196   if ls -dL / >/dev/null 2>&1; then
16197     as_ls_L_option=L
16198   else
16199     as_ls_L_option=
16200   fi
16201   as_test_x='
16202     eval sh -c '\''
16203       if test -d "$1"; then
16204         test -d "$1/.";
16205       else
16206         case $1 in #(
16207         -*)set "./$1";;
16208         esac;
16209         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16210         ???[sx]*):;;*)false;;esac;fi
16211     '\'' sh
16212   '
16213 fi
16214 as_executable_p=$as_test_x
16215
16216 # Sed expression to map a string onto a valid CPP name.
16217 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16218
16219 # Sed expression to map a string onto a valid variable name.
16220 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16221
16222
16223 exec 6>&1
16224 ## ----------------------------------- ##
16225 ## Main body of $CONFIG_STATUS script. ##
16226 ## ----------------------------------- ##
16227 _ASEOF
16228 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16229
16230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16231 # Save the log message, to keep $0 and so on meaningful, and to
16232 # report actual input values of CONFIG_FILES etc. instead of their
16233 # values after options handling.
16234 ac_log="
16235 This file was extended by mech_eap $as_me 0.9, which was
16236 generated by GNU Autoconf 2.67.  Invocation command line was
16237
16238   CONFIG_FILES    = $CONFIG_FILES
16239   CONFIG_HEADERS  = $CONFIG_HEADERS
16240   CONFIG_LINKS    = $CONFIG_LINKS
16241   CONFIG_COMMANDS = $CONFIG_COMMANDS
16242   $ $0 $@
16243
16244 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16245 "
16246
16247 _ACEOF
16248
16249 case $ac_config_files in *"
16250 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16251 esac
16252
16253 case $ac_config_headers in *"
16254 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16255 esac
16256
16257
16258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16259 # Files that config.status was made for.
16260 config_files="$ac_config_files"
16261 config_headers="$ac_config_headers"
16262 config_commands="$ac_config_commands"
16263
16264 _ACEOF
16265
16266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16267 ac_cs_usage="\
16268 \`$as_me' instantiates files and other configuration actions
16269 from templates according to the current configuration.  Unless the files
16270 and actions are specified as TAGs, all are instantiated by default.
16271
16272 Usage: $0 [OPTION]... [TAG]...
16273
16274   -h, --help       print this help, then exit
16275   -V, --version    print version number and configuration settings, then exit
16276       --config     print configuration, then exit
16277   -q, --quiet, --silent
16278                    do not print progress messages
16279   -d, --debug      don't remove temporary files
16280       --recheck    update $as_me by reconfiguring in the same conditions
16281       --file=FILE[:TEMPLATE]
16282                    instantiate the configuration file FILE
16283       --header=FILE[:TEMPLATE]
16284                    instantiate the configuration header FILE
16285
16286 Configuration files:
16287 $config_files
16288
16289 Configuration headers:
16290 $config_headers
16291
16292 Configuration commands:
16293 $config_commands
16294
16295 Report bugs to <bugs@project-moonshot.org>."
16296
16297 _ACEOF
16298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16299 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16300 ac_cs_version="\\
16301 mech_eap config.status 0.9
16302 configured by $0, generated by GNU Autoconf 2.67,
16303   with options \\"\$ac_cs_config\\"
16304
16305 Copyright (C) 2010 Free Software Foundation, Inc.
16306 This config.status script is free software; the Free Software Foundation
16307 gives unlimited permission to copy, distribute and modify it."
16308
16309 ac_pwd='$ac_pwd'
16310 srcdir='$srcdir'
16311 INSTALL='$INSTALL'
16312 MKDIR_P='$MKDIR_P'
16313 AWK='$AWK'
16314 test -n "\$AWK" || AWK=awk
16315 _ACEOF
16316
16317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16318 # The default lists apply if the user does not specify any file.
16319 ac_need_defaults=:
16320 while test $# != 0
16321 do
16322   case $1 in
16323   --*=?*)
16324     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16325     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16326     ac_shift=:
16327     ;;
16328   --*=)
16329     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16330     ac_optarg=
16331     ac_shift=:
16332     ;;
16333   *)
16334     ac_option=$1
16335     ac_optarg=$2
16336     ac_shift=shift
16337     ;;
16338   esac
16339
16340   case $ac_option in
16341   # Handling of the options.
16342   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16343     ac_cs_recheck=: ;;
16344   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16345     $as_echo "$ac_cs_version"; exit ;;
16346   --config | --confi | --conf | --con | --co | --c )
16347     $as_echo "$ac_cs_config"; exit ;;
16348   --debug | --debu | --deb | --de | --d | -d )
16349     debug=: ;;
16350   --file | --fil | --fi | --f )
16351     $ac_shift
16352     case $ac_optarg in
16353     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16354     '') as_fn_error $? "missing file argument" ;;
16355     esac
16356     as_fn_append CONFIG_FILES " '$ac_optarg'"
16357     ac_need_defaults=false;;
16358   --header | --heade | --head | --hea )
16359     $ac_shift
16360     case $ac_optarg in
16361     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16362     esac
16363     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16364     ac_need_defaults=false;;
16365   --he | --h)
16366     # Conflict between --help and --header
16367     as_fn_error $? "ambiguous option: \`$1'
16368 Try \`$0 --help' for more information.";;
16369   --help | --hel | -h )
16370     $as_echo "$ac_cs_usage"; exit ;;
16371   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16372   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16373     ac_cs_silent=: ;;
16374
16375   # This is an error.
16376   -*) as_fn_error $? "unrecognized option: \`$1'
16377 Try \`$0 --help' for more information." ;;
16378
16379   *) as_fn_append ac_config_targets " $1"
16380      ac_need_defaults=false ;;
16381
16382   esac
16383   shift
16384 done
16385
16386 ac_configure_extra_args=
16387
16388 if $ac_cs_silent; then
16389   exec 6>/dev/null
16390   ac_configure_extra_args="$ac_configure_extra_args --silent"
16391 fi
16392
16393 _ACEOF
16394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16395 if \$ac_cs_recheck; then
16396   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16397   shift
16398   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16399   CONFIG_SHELL='$SHELL'
16400   export CONFIG_SHELL
16401   exec "\$@"
16402 fi
16403
16404 _ACEOF
16405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16406 exec 5>>config.log
16407 {
16408   echo
16409   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16410 ## Running $as_me. ##
16411 _ASBOX
16412   $as_echo "$ac_log"
16413 } >&5
16414
16415 _ACEOF
16416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16417 #
16418 # INIT-COMMANDS
16419 #
16420 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16421
16422
16423 # The HP-UX ksh and POSIX shell print the target directory to stdout
16424 # if CDPATH is set.
16425 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16426
16427 sed_quote_subst='$sed_quote_subst'
16428 double_quote_subst='$double_quote_subst'
16429 delay_variable_subst='$delay_variable_subst'
16430 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16431 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16432 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16433 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16434 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16435 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16436 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16437 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16438 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16439 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16440 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16441 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16442 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16443 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16444 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16445 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16446 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16447 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16448 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16449 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16450 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16451 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16452 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16453 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16454 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16455 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16456 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16457 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16458 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16459 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16460 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16461 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16462 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16463 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16464 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16465 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16466 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16467 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16468 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16469 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16470 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16471 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16472 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16473 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16474 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16475 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16476 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"`'
16477 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"`'
16478 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16479 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16480 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16481 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16482 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16483 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16484 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16485 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16486 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16487 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16488 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16489 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16490 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16491 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16492 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16493 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16494 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16495 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16496 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16497 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16498 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16499 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16500 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16501 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16502 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16503 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16504 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16505 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16506 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16507 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16508 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16509 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16510 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16511 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16512 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16513 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16514 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16515 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16516 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16517 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16518 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16519 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16520 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16521 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16522 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16523 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16524 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16525 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16526 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16527 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16528 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16529 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16530 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16531 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16532 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16533 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16534 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16535 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16536 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16537 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16538 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16539 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16540 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16541 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16542 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16543 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16544 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16545 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16546 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16547 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16548 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16549 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16550 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16551 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16552 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16553 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16554 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16555 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16556 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16557 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16558 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16559 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16560 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16561 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16562 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16563 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16564 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16565 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16566 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16567 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16568 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16569 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16570 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16571 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16572 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16573 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16574 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16575 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16576 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16577 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16578 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16579 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16580 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16581 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16582 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16583 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16584 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16585 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16586 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16587 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16588 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16589 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16590 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16591 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16592 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16593 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16594 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16595 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16596 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16597 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16598 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16599 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16600 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16601 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16602 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16603
16604 LTCC='$LTCC'
16605 LTCFLAGS='$LTCFLAGS'
16606 compiler='$compiler_DEFAULT'
16607
16608 # Quote evaled strings.
16609 for var in SED \
16610 GREP \
16611 EGREP \
16612 FGREP \
16613 LD \
16614 NM \
16615 LN_S \
16616 lt_SP2NL \
16617 lt_NL2SP \
16618 reload_flag \
16619 deplibs_check_method \
16620 file_magic_cmd \
16621 AR \
16622 AR_FLAGS \
16623 STRIP \
16624 RANLIB \
16625 CC \
16626 CFLAGS \
16627 compiler \
16628 lt_cv_sys_global_symbol_pipe \
16629 lt_cv_sys_global_symbol_to_cdecl \
16630 lt_cv_sys_global_symbol_to_c_name_address \
16631 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16632 SHELL \
16633 ECHO \
16634 lt_prog_compiler_no_builtin_flag \
16635 lt_prog_compiler_wl \
16636 lt_prog_compiler_pic \
16637 lt_prog_compiler_static \
16638 lt_cv_prog_compiler_c_o \
16639 need_locks \
16640 DSYMUTIL \
16641 NMEDIT \
16642 LIPO \
16643 OTOOL \
16644 OTOOL64 \
16645 shrext_cmds \
16646 export_dynamic_flag_spec \
16647 whole_archive_flag_spec \
16648 compiler_needs_object \
16649 with_gnu_ld \
16650 allow_undefined_flag \
16651 no_undefined_flag \
16652 hardcode_libdir_flag_spec \
16653 hardcode_libdir_flag_spec_ld \
16654 hardcode_libdir_separator \
16655 fix_srcfile_path \
16656 exclude_expsyms \
16657 include_expsyms \
16658 file_list_spec \
16659 variables_saved_for_relink \
16660 libname_spec \
16661 library_names_spec \
16662 soname_spec \
16663 finish_eval \
16664 old_striplib \
16665 striplib \
16666 compiler_lib_search_dirs \
16667 predep_objects \
16668 postdep_objects \
16669 predeps \
16670 postdeps \
16671 compiler_lib_search_path \
16672 LD_CXX \
16673 compiler_CXX \
16674 lt_prog_compiler_no_builtin_flag_CXX \
16675 lt_prog_compiler_wl_CXX \
16676 lt_prog_compiler_pic_CXX \
16677 lt_prog_compiler_static_CXX \
16678 lt_cv_prog_compiler_c_o_CXX \
16679 export_dynamic_flag_spec_CXX \
16680 whole_archive_flag_spec_CXX \
16681 compiler_needs_object_CXX \
16682 with_gnu_ld_CXX \
16683 allow_undefined_flag_CXX \
16684 no_undefined_flag_CXX \
16685 hardcode_libdir_flag_spec_CXX \
16686 hardcode_libdir_flag_spec_ld_CXX \
16687 hardcode_libdir_separator_CXX \
16688 fix_srcfile_path_CXX \
16689 exclude_expsyms_CXX \
16690 include_expsyms_CXX \
16691 file_list_spec_CXX \
16692 compiler_lib_search_dirs_CXX \
16693 predep_objects_CXX \
16694 postdep_objects_CXX \
16695 predeps_CXX \
16696 postdeps_CXX \
16697 compiler_lib_search_path_CXX; do
16698     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16699     *[\\\\\\\`\\"\\\$]*)
16700       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16701       ;;
16702     *)
16703       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16704       ;;
16705     esac
16706 done
16707
16708 # Double-quote double-evaled strings.
16709 for var in reload_cmds \
16710 old_postinstall_cmds \
16711 old_postuninstall_cmds \
16712 old_archive_cmds \
16713 extract_expsyms_cmds \
16714 old_archive_from_new_cmds \
16715 old_archive_from_expsyms_cmds \
16716 archive_cmds \
16717 archive_expsym_cmds \
16718 module_cmds \
16719 module_expsym_cmds \
16720 export_symbols_cmds \
16721 prelink_cmds \
16722 postinstall_cmds \
16723 postuninstall_cmds \
16724 finish_cmds \
16725 sys_lib_search_path_spec \
16726 sys_lib_dlsearch_path_spec \
16727 old_archive_cmds_CXX \
16728 old_archive_from_new_cmds_CXX \
16729 old_archive_from_expsyms_cmds_CXX \
16730 archive_cmds_CXX \
16731 archive_expsym_cmds_CXX \
16732 module_cmds_CXX \
16733 module_expsym_cmds_CXX \
16734 export_symbols_cmds_CXX \
16735 prelink_cmds_CXX; do
16736     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16737     *[\\\\\\\`\\"\\\$]*)
16738       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16739       ;;
16740     *)
16741       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16742       ;;
16743     esac
16744 done
16745
16746 # Fix-up fallback echo if it was mangled by the above quoting rules.
16747 case \$lt_ECHO in
16748 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16749   ;;
16750 esac
16751
16752 ac_aux_dir='$ac_aux_dir'
16753 xsi_shell='$xsi_shell'
16754 lt_shell_append='$lt_shell_append'
16755
16756 # See if we are running on zsh, and set the options which allow our
16757 # commands through without removal of \ escapes INIT.
16758 if test -n "\${ZSH_VERSION+set}" ; then
16759    setopt NO_GLOB_SUBST
16760 fi
16761
16762
16763     PACKAGE='$PACKAGE'
16764     VERSION='$VERSION'
16765     TIMESTAMP='$TIMESTAMP'
16766     RM='$RM'
16767     ofile='$ofile'
16768
16769
16770
16771
16772
16773
16774 _ACEOF
16775
16776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16777
16778 # Handling of arguments.
16779 for ac_config_target in $ac_config_targets
16780 do
16781   case $ac_config_target in
16782     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16783     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16784     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16785     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16786     "libeap/Makefile") CONFIG_FILES="$CONFIG_FILES libeap/Makefile" ;;
16787     "mech_eap/Makefile") CONFIG_FILES="$CONFIG_FILES mech_eap/Makefile" ;;
16788     "mech_eap.spec") CONFIG_FILES="$CONFIG_FILES mech_eap.spec" ;;
16789
16790   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16791   esac
16792 done
16793
16794
16795 # If the user did not use the arguments to specify the items to instantiate,
16796 # then the envvar interface is used.  Set only those that are not.
16797 # We use the long form for the default assignment because of an extremely
16798 # bizarre bug on SunOS 4.1.3.
16799 if $ac_need_defaults; then
16800   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16801   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16802   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16803 fi
16804
16805 # Have a temporary directory for convenience.  Make it in the build tree
16806 # simply because there is no reason against having it here, and in addition,
16807 # creating and moving files from /tmp can sometimes cause problems.
16808 # Hook for its removal unless debugging.
16809 # Note that there is a small window in which the directory will not be cleaned:
16810 # after its creation but before its name has been assigned to `$tmp'.
16811 $debug ||
16812 {
16813   tmp=
16814   trap 'exit_status=$?
16815   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16816 ' 0
16817   trap 'as_fn_exit 1' 1 2 13 15
16818 }
16819 # Create a (secure) tmp directory for tmp files.
16820
16821 {
16822   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16823   test -n "$tmp" && test -d "$tmp"
16824 }  ||
16825 {
16826   tmp=./conf$$-$RANDOM
16827   (umask 077 && mkdir "$tmp")
16828 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16829
16830 # Set up the scripts for CONFIG_FILES section.
16831 # No need to generate them if there are no CONFIG_FILES.
16832 # This happens for instance with `./config.status config.h'.
16833 if test -n "$CONFIG_FILES"; then
16834
16835
16836 ac_cr=`echo X | tr X '\015'`
16837 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16838 # But we know of no other shell where ac_cr would be empty at this
16839 # point, so we can use a bashism as a fallback.
16840 if test "x$ac_cr" = x; then
16841   eval ac_cr=\$\'\\r\'
16842 fi
16843 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16844 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16845   ac_cs_awk_cr='\\r'
16846 else
16847   ac_cs_awk_cr=$ac_cr
16848 fi
16849
16850 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16851 _ACEOF
16852
16853
16854 {
16855   echo "cat >conf$$subs.awk <<_ACEOF" &&
16856   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16857   echo "_ACEOF"
16858 } >conf$$subs.sh ||
16859   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16860 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16861 ac_delim='%!_!# '
16862 for ac_last_try in false false false false false :; do
16863   . ./conf$$subs.sh ||
16864     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16865
16866   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16867   if test $ac_delim_n = $ac_delim_num; then
16868     break
16869   elif $ac_last_try; then
16870     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16871   else
16872     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16873   fi
16874 done
16875 rm -f conf$$subs.sh
16876
16877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16878 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16879 _ACEOF
16880 sed -n '
16881 h
16882 s/^/S["/; s/!.*/"]=/
16883 p
16884 g
16885 s/^[^!]*!//
16886 :repl
16887 t repl
16888 s/'"$ac_delim"'$//
16889 t delim
16890 :nl
16891 h
16892 s/\(.\{148\}\)..*/\1/
16893 t more1
16894 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16895 p
16896 n
16897 b repl
16898 :more1
16899 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16900 p
16901 g
16902 s/.\{148\}//
16903 t nl
16904 :delim
16905 h
16906 s/\(.\{148\}\)..*/\1/
16907 t more2
16908 s/["\\]/\\&/g; s/^/"/; s/$/"/
16909 p
16910 b
16911 :more2
16912 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16913 p
16914 g
16915 s/.\{148\}//
16916 t delim
16917 ' <conf$$subs.awk | sed '
16918 /^[^""]/{
16919   N
16920   s/\n//
16921 }
16922 ' >>$CONFIG_STATUS || ac_write_fail=1
16923 rm -f conf$$subs.awk
16924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16925 _ACAWK
16926 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16927   for (key in S) S_is_set[key] = 1
16928   FS = "\a"
16929
16930 }
16931 {
16932   line = $ 0
16933   nfields = split(line, field, "@")
16934   substed = 0
16935   len = length(field[1])
16936   for (i = 2; i < nfields; i++) {
16937     key = field[i]
16938     keylen = length(key)
16939     if (S_is_set[key]) {
16940       value = S[key]
16941       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16942       len += length(value) + length(field[++i])
16943       substed = 1
16944     } else
16945       len += 1 + keylen
16946   }
16947
16948   print line
16949 }
16950
16951 _ACAWK
16952 _ACEOF
16953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16954 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16955   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16956 else
16957   cat
16958 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16959   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16960 _ACEOF
16961
16962 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16963 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16964 # trailing colons and then remove the whole line if VPATH becomes empty
16965 # (actually we leave an empty line to preserve line numbers).
16966 if test "x$srcdir" = x.; then
16967   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16968 h
16969 s///
16970 s/^/:/
16971 s/[      ]*$/:/
16972 s/:\$(srcdir):/:/g
16973 s/:\${srcdir}:/:/g
16974 s/:@srcdir@:/:/g
16975 s/^:*//
16976 s/:*$//
16977 x
16978 s/\(=[   ]*\).*/\1/
16979 G
16980 s/\n//
16981 s/^[^=]*=[       ]*$//
16982 }'
16983 fi
16984
16985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16986 fi # test -n "$CONFIG_FILES"
16987
16988 # Set up the scripts for CONFIG_HEADERS section.
16989 # No need to generate them if there are no CONFIG_HEADERS.
16990 # This happens for instance with `./config.status Makefile'.
16991 if test -n "$CONFIG_HEADERS"; then
16992 cat >"$tmp/defines.awk" <<\_ACAWK ||
16993 BEGIN {
16994 _ACEOF
16995
16996 # Transform confdefs.h into an awk script `defines.awk', embedded as
16997 # here-document in config.status, that substitutes the proper values into
16998 # config.h.in to produce config.h.
16999
17000 # Create a delimiter string that does not exist in confdefs.h, to ease
17001 # handling of long lines.
17002 ac_delim='%!_!# '
17003 for ac_last_try in false false :; do
17004   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17005   if test -z "$ac_t"; then
17006     break
17007   elif $ac_last_try; then
17008     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17009   else
17010     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17011   fi
17012 done
17013
17014 # For the awk script, D is an array of macro values keyed by name,
17015 # likewise P contains macro parameters if any.  Preserve backslash
17016 # newline sequences.
17017
17018 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17019 sed -n '
17020 s/.\{148\}/&'"$ac_delim"'/g
17021 t rset
17022 :rset
17023 s/^[     ]*#[    ]*define[       ][      ]*/ /
17024 t def
17025 d
17026 :def
17027 s/\\$//
17028 t bsnl
17029 s/["\\]/\\&/g
17030 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17031 D["\1"]=" \3"/p
17032 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17033 d
17034 :bsnl
17035 s/["\\]/\\&/g
17036 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17037 D["\1"]=" \3\\\\\\n"\\/p
17038 t cont
17039 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17040 t cont
17041 d
17042 :cont
17043 n
17044 s/.\{148\}/&'"$ac_delim"'/g
17045 t clear
17046 :clear
17047 s/\\$//
17048 t bsnlc
17049 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17050 d
17051 :bsnlc
17052 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17053 b cont
17054 ' <confdefs.h | sed '
17055 s/'"$ac_delim"'/"\\\
17056 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17057
17058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17059   for (key in D) D_is_set[key] = 1
17060   FS = "\a"
17061 }
17062 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17063   line = \$ 0
17064   split(line, arg, " ")
17065   if (arg[1] == "#") {
17066     defundef = arg[2]
17067     mac1 = arg[3]
17068   } else {
17069     defundef = substr(arg[1], 2)
17070     mac1 = arg[2]
17071   }
17072   split(mac1, mac2, "(") #)
17073   macro = mac2[1]
17074   prefix = substr(line, 1, index(line, defundef) - 1)
17075   if (D_is_set[macro]) {
17076     # Preserve the white space surrounding the "#".
17077     print prefix "define", macro P[macro] D[macro]
17078     next
17079   } else {
17080     # Replace #undef with comments.  This is necessary, for example,
17081     # in the case of _POSIX_SOURCE, which is predefined and required
17082     # on some systems where configure will not decide to define it.
17083     if (defundef == "undef") {
17084       print "/*", prefix defundef, macro, "*/"
17085       next
17086     }
17087   }
17088 }
17089 { print }
17090 _ACAWK
17091 _ACEOF
17092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17093   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17094 fi # test -n "$CONFIG_HEADERS"
17095
17096
17097 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17098 shift
17099 for ac_tag
17100 do
17101   case $ac_tag in
17102   :[FHLC]) ac_mode=$ac_tag; continue;;
17103   esac
17104   case $ac_mode$ac_tag in
17105   :[FHL]*:*);;
17106   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17107   :[FH]-) ac_tag=-:-;;
17108   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17109   esac
17110   ac_save_IFS=$IFS
17111   IFS=:
17112   set x $ac_tag
17113   IFS=$ac_save_IFS
17114   shift
17115   ac_file=$1
17116   shift
17117
17118   case $ac_mode in
17119   :L) ac_source=$1;;
17120   :[FH])
17121     ac_file_inputs=
17122     for ac_f
17123     do
17124       case $ac_f in
17125       -) ac_f="$tmp/stdin";;
17126       *) # Look for the file first in the build tree, then in the source tree
17127          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17128          # because $ac_f cannot contain `:'.
17129          test -f "$ac_f" ||
17130            case $ac_f in
17131            [\\/$]*) false;;
17132            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17133            esac ||
17134            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17135       esac
17136       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17137       as_fn_append ac_file_inputs " '$ac_f'"
17138     done
17139
17140     # Let's still pretend it is `configure' which instantiates (i.e., don't
17141     # use $as_me), people would be surprised to read:
17142     #    /* config.h.  Generated by config.status.  */
17143     configure_input='Generated from '`
17144           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17145         `' by configure.'
17146     if test x"$ac_file" != x-; then
17147       configure_input="$ac_file.  $configure_input"
17148       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17149 $as_echo "$as_me: creating $ac_file" >&6;}
17150     fi
17151     # Neutralize special characters interpreted by sed in replacement strings.
17152     case $configure_input in #(
17153     *\&* | *\|* | *\\* )
17154        ac_sed_conf_input=`$as_echo "$configure_input" |
17155        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17156     *) ac_sed_conf_input=$configure_input;;
17157     esac
17158
17159     case $ac_tag in
17160     *:-:* | *:-) cat >"$tmp/stdin" \
17161       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
17162     esac
17163     ;;
17164   esac
17165
17166   ac_dir=`$as_dirname -- "$ac_file" ||
17167 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17168          X"$ac_file" : 'X\(//\)[^/]' \| \
17169          X"$ac_file" : 'X\(//\)$' \| \
17170          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17171 $as_echo X"$ac_file" |
17172     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17173             s//\1/
17174             q
17175           }
17176           /^X\(\/\/\)[^/].*/{
17177             s//\1/
17178             q
17179           }
17180           /^X\(\/\/\)$/{
17181             s//\1/
17182             q
17183           }
17184           /^X\(\/\).*/{
17185             s//\1/
17186             q
17187           }
17188           s/.*/./; q'`
17189   as_dir="$ac_dir"; as_fn_mkdir_p
17190   ac_builddir=.
17191
17192 case "$ac_dir" in
17193 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17194 *)
17195   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17196   # A ".." for each directory in $ac_dir_suffix.
17197   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17198   case $ac_top_builddir_sub in
17199   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17200   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17201   esac ;;
17202 esac
17203 ac_abs_top_builddir=$ac_pwd
17204 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17205 # for backward compatibility:
17206 ac_top_builddir=$ac_top_build_prefix
17207
17208 case $srcdir in
17209   .)  # We are building in place.
17210     ac_srcdir=.
17211     ac_top_srcdir=$ac_top_builddir_sub
17212     ac_abs_top_srcdir=$ac_pwd ;;
17213   [\\/]* | ?:[\\/]* )  # Absolute name.
17214     ac_srcdir=$srcdir$ac_dir_suffix;
17215     ac_top_srcdir=$srcdir
17216     ac_abs_top_srcdir=$srcdir ;;
17217   *) # Relative name.
17218     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17219     ac_top_srcdir=$ac_top_build_prefix$srcdir
17220     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17221 esac
17222 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17223
17224
17225   case $ac_mode in
17226   :F)
17227   #
17228   # CONFIG_FILE
17229   #
17230
17231   case $INSTALL in
17232   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17233   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17234   esac
17235   ac_MKDIR_P=$MKDIR_P
17236   case $MKDIR_P in
17237   [\\/$]* | ?:[\\/]* ) ;;
17238   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17239   esac
17240 _ACEOF
17241
17242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17243 # If the template does not know about datarootdir, expand it.
17244 # FIXME: This hack should be removed a few years after 2.60.
17245 ac_datarootdir_hack=; ac_datarootdir_seen=
17246 ac_sed_dataroot='
17247 /datarootdir/ {
17248   p
17249   q
17250 }
17251 /@datadir@/p
17252 /@docdir@/p
17253 /@infodir@/p
17254 /@localedir@/p
17255 /@mandir@/p'
17256 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17257 *datarootdir*) ac_datarootdir_seen=yes;;
17258 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17259   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17260 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17261 _ACEOF
17262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17263   ac_datarootdir_hack='
17264   s&@datadir@&$datadir&g
17265   s&@docdir@&$docdir&g
17266   s&@infodir@&$infodir&g
17267   s&@localedir@&$localedir&g
17268   s&@mandir@&$mandir&g
17269   s&\\\${datarootdir}&$datarootdir&g' ;;
17270 esac
17271 _ACEOF
17272
17273 # Neutralize VPATH when `$srcdir' = `.'.
17274 # Shell code in configure.ac might set extrasub.
17275 # FIXME: do we really want to maintain this feature?
17276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17277 ac_sed_extra="$ac_vpsub
17278 $extrasub
17279 _ACEOF
17280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17281 :t
17282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17283 s|@configure_input@|$ac_sed_conf_input|;t t
17284 s&@top_builddir@&$ac_top_builddir_sub&;t t
17285 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17286 s&@srcdir@&$ac_srcdir&;t t
17287 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17288 s&@top_srcdir@&$ac_top_srcdir&;t t
17289 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17290 s&@builddir@&$ac_builddir&;t t
17291 s&@abs_builddir@&$ac_abs_builddir&;t t
17292 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17293 s&@INSTALL@&$ac_INSTALL&;t t
17294 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17295 $ac_datarootdir_hack
17296 "
17297 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17298   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17299
17300 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17301   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17302   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17303   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17304 which seems to be undefined.  Please make sure it is defined" >&5
17305 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17306 which seems to be undefined.  Please make sure it is defined" >&2;}
17307
17308   rm -f "$tmp/stdin"
17309   case $ac_file in
17310   -) cat "$tmp/out" && rm -f "$tmp/out";;
17311   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17312   esac \
17313   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17314  ;;
17315   :H)
17316   #
17317   # CONFIG_HEADER
17318   #
17319   if test x"$ac_file" != x-; then
17320     {
17321       $as_echo "/* $configure_input  */" \
17322       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17323     } >"$tmp/config.h" \
17324       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17325     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17326       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17327 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17328     else
17329       rm -f "$ac_file"
17330       mv "$tmp/config.h" "$ac_file" \
17331         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17332     fi
17333   else
17334     $as_echo "/* $configure_input  */" \
17335       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17336       || as_fn_error $? "could not create -" "$LINENO" 5
17337   fi
17338 # Compute "$ac_file"'s index in $config_headers.
17339 _am_arg="$ac_file"
17340 _am_stamp_count=1
17341 for _am_header in $config_headers :; do
17342   case $_am_header in
17343     $_am_arg | $_am_arg:* )
17344       break ;;
17345     * )
17346       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17347   esac
17348 done
17349 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17350 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17351          X"$_am_arg" : 'X\(//\)[^/]' \| \
17352          X"$_am_arg" : 'X\(//\)$' \| \
17353          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17354 $as_echo X"$_am_arg" |
17355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17356             s//\1/
17357             q
17358           }
17359           /^X\(\/\/\)[^/].*/{
17360             s//\1/
17361             q
17362           }
17363           /^X\(\/\/\)$/{
17364             s//\1/
17365             q
17366           }
17367           /^X\(\/\).*/{
17368             s//\1/
17369             q
17370           }
17371           s/.*/./; q'`/stamp-h$_am_stamp_count
17372  ;;
17373
17374   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17375 $as_echo "$as_me: executing $ac_file commands" >&6;}
17376  ;;
17377   esac
17378
17379
17380   case $ac_file$ac_mode in
17381     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17382   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17383   # are listed without --file.  Let's play safe and only enable the eval
17384   # if we detect the quoting.
17385   case $CONFIG_FILES in
17386   *\'*) eval set x "$CONFIG_FILES" ;;
17387   *)   set x $CONFIG_FILES ;;
17388   esac
17389   shift
17390   for mf
17391   do
17392     # Strip MF so we end up with the name of the file.
17393     mf=`echo "$mf" | sed -e 's/:.*$//'`
17394     # Check whether this is an Automake generated Makefile or not.
17395     # We used to match only the files named `Makefile.in', but
17396     # some people rename them; so instead we look at the file content.
17397     # Grep'ing the first line is not enough: some people post-process
17398     # each Makefile.in and add a new line on top of each file to say so.
17399     # Grep'ing the whole file is not good either: AIX grep has a line
17400     # limit of 2048, but all sed's we know have understand at least 4000.
17401     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17402       dirpart=`$as_dirname -- "$mf" ||
17403 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17404          X"$mf" : 'X\(//\)[^/]' \| \
17405          X"$mf" : 'X\(//\)$' \| \
17406          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17407 $as_echo X"$mf" |
17408     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17409             s//\1/
17410             q
17411           }
17412           /^X\(\/\/\)[^/].*/{
17413             s//\1/
17414             q
17415           }
17416           /^X\(\/\/\)$/{
17417             s//\1/
17418             q
17419           }
17420           /^X\(\/\).*/{
17421             s//\1/
17422             q
17423           }
17424           s/.*/./; q'`
17425     else
17426       continue
17427     fi
17428     # Extract the definition of DEPDIR, am__include, and am__quote
17429     # from the Makefile without running `make'.
17430     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17431     test -z "$DEPDIR" && continue
17432     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17433     test -z "am__include" && continue
17434     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17435     # When using ansi2knr, U may be empty or an underscore; expand it
17436     U=`sed -n 's/^U = //p' < "$mf"`
17437     # Find all dependency output files, they are included files with
17438     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17439     # simplest approach to changing $(DEPDIR) to its actual value in the
17440     # expansion.
17441     for file in `sed -n "
17442       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17443          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17444       # Make sure the directory exists.
17445       test -f "$dirpart/$file" && continue
17446       fdir=`$as_dirname -- "$file" ||
17447 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17448          X"$file" : 'X\(//\)[^/]' \| \
17449          X"$file" : 'X\(//\)$' \| \
17450          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17451 $as_echo X"$file" |
17452     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17453             s//\1/
17454             q
17455           }
17456           /^X\(\/\/\)[^/].*/{
17457             s//\1/
17458             q
17459           }
17460           /^X\(\/\/\)$/{
17461             s//\1/
17462             q
17463           }
17464           /^X\(\/\).*/{
17465             s//\1/
17466             q
17467           }
17468           s/.*/./; q'`
17469       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17470       # echo "creating $dirpart/$file"
17471       echo '# dummy' > "$dirpart/$file"
17472     done
17473   done
17474 }
17475  ;;
17476     "libtool":C)
17477
17478     # See if we are running on zsh, and set the options which allow our
17479     # commands through without removal of \ escapes.
17480     if test -n "${ZSH_VERSION+set}" ; then
17481       setopt NO_GLOB_SUBST
17482     fi
17483
17484     cfgfile="${ofile}T"
17485     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17486     $RM "$cfgfile"
17487
17488     cat <<_LT_EOF >> "$cfgfile"
17489 #! $SHELL
17490
17491 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17492 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17493 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17494 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17495 #
17496 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17497 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17498 #   Written by Gordon Matzigkeit, 1996
17499 #
17500 #   This file is part of GNU Libtool.
17501 #
17502 # GNU Libtool is free software; you can redistribute it and/or
17503 # modify it under the terms of the GNU General Public License as
17504 # published by the Free Software Foundation; either version 2 of
17505 # the License, or (at your option) any later version.
17506 #
17507 # As a special exception to the GNU General Public License,
17508 # if you distribute this file as part of a program or library that
17509 # is built using GNU Libtool, you may include this file under the
17510 # same distribution terms that you use for the rest of that program.
17511 #
17512 # GNU Libtool is distributed in the hope that it will be useful,
17513 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17514 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17515 # GNU General Public License for more details.
17516 #
17517 # You should have received a copy of the GNU General Public License
17518 # along with GNU Libtool; see the file COPYING.  If not, a copy
17519 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17520 # obtained by writing to the Free Software Foundation, Inc.,
17521 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17522
17523
17524 # The names of the tagged configurations supported by this script.
17525 available_tags="CXX "
17526
17527 # ### BEGIN LIBTOOL CONFIG
17528
17529 # Which release of libtool.m4 was used?
17530 macro_version=$macro_version
17531 macro_revision=$macro_revision
17532
17533 # Whether or not to build static libraries.
17534 build_old_libs=$enable_static
17535
17536 # Assembler program.
17537 AS=$AS
17538
17539 # DLL creation program.
17540 DLLTOOL=$DLLTOOL
17541
17542 # Object dumper program.
17543 OBJDUMP=$OBJDUMP
17544
17545 # Whether or not to build shared libraries.
17546 build_libtool_libs=$enable_shared
17547
17548 # What type of objects to build.
17549 pic_mode=$pic_mode
17550
17551 # Whether or not to optimize for fast installation.
17552 fast_install=$enable_fast_install
17553
17554 # The host system.
17555 host_alias=$host_alias
17556 host=$host
17557 host_os=$host_os
17558
17559 # The build system.
17560 build_alias=$build_alias
17561 build=$build
17562 build_os=$build_os
17563
17564 # A sed program that does not truncate output.
17565 SED=$lt_SED
17566
17567 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17568 Xsed="\$SED -e 1s/^X//"
17569
17570 # A grep program that handles long lines.
17571 GREP=$lt_GREP
17572
17573 # An ERE matcher.
17574 EGREP=$lt_EGREP
17575
17576 # A literal string matcher.
17577 FGREP=$lt_FGREP
17578
17579 # A BSD- or MS-compatible name lister.
17580 NM=$lt_NM
17581
17582 # Whether we need soft or hard links.
17583 LN_S=$lt_LN_S
17584
17585 # What is the maximum length of a command?
17586 max_cmd_len=$max_cmd_len
17587
17588 # Object file suffix (normally "o").
17589 objext=$ac_objext
17590
17591 # Executable file suffix (normally "").
17592 exeext=$exeext
17593
17594 # whether the shell understands "unset".
17595 lt_unset=$lt_unset
17596
17597 # turn spaces into newlines.
17598 SP2NL=$lt_lt_SP2NL
17599
17600 # turn newlines into spaces.
17601 NL2SP=$lt_lt_NL2SP
17602
17603 # How to create reloadable object files.
17604 reload_flag=$lt_reload_flag
17605 reload_cmds=$lt_reload_cmds
17606
17607 # Method to check whether dependent libraries are shared objects.
17608 deplibs_check_method=$lt_deplibs_check_method
17609
17610 # Command to use when deplibs_check_method == "file_magic".
17611 file_magic_cmd=$lt_file_magic_cmd
17612
17613 # The archiver.
17614 AR=$lt_AR
17615 AR_FLAGS=$lt_AR_FLAGS
17616
17617 # A symbol stripping program.
17618 STRIP=$lt_STRIP
17619
17620 # Commands used to install an old-style archive.
17621 RANLIB=$lt_RANLIB
17622 old_postinstall_cmds=$lt_old_postinstall_cmds
17623 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17624
17625 # A C compiler.
17626 LTCC=$lt_CC
17627
17628 # LTCC compiler flags.
17629 LTCFLAGS=$lt_CFLAGS
17630
17631 # Take the output of nm and produce a listing of raw symbols and C names.
17632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17633
17634 # Transform the output of nm in a proper C declaration.
17635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17636
17637 # Transform the output of nm in a C name address pair.
17638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17639
17640 # Transform the output of nm in a C name address pair when lib prefix is needed.
17641 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17642
17643 # The name of the directory that contains temporary libtool files.
17644 objdir=$objdir
17645
17646 # Shell to use when invoking shell scripts.
17647 SHELL=$lt_SHELL
17648
17649 # An echo program that does not interpret backslashes.
17650 ECHO=$lt_ECHO
17651
17652 # Used to examine libraries when file_magic_cmd begins with "file".
17653 MAGIC_CMD=$MAGIC_CMD
17654
17655 # Must we lock files when doing compilation?
17656 need_locks=$lt_need_locks
17657
17658 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17659 DSYMUTIL=$lt_DSYMUTIL
17660
17661 # Tool to change global to local symbols on Mac OS X.
17662 NMEDIT=$lt_NMEDIT
17663
17664 # Tool to manipulate fat objects and archives on Mac OS X.
17665 LIPO=$lt_LIPO
17666
17667 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17668 OTOOL=$lt_OTOOL
17669
17670 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17671 OTOOL64=$lt_OTOOL64
17672
17673 # Old archive suffix (normally "a").
17674 libext=$libext
17675
17676 # Shared library suffix (normally ".so").
17677 shrext_cmds=$lt_shrext_cmds
17678
17679 # The commands to extract the exported symbol list from a shared archive.
17680 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17681
17682 # Variables whose values should be saved in libtool wrapper scripts and
17683 # restored at link time.
17684 variables_saved_for_relink=$lt_variables_saved_for_relink
17685
17686 # Do we need the "lib" prefix for modules?
17687 need_lib_prefix=$need_lib_prefix
17688
17689 # Do we need a version for libraries?
17690 need_version=$need_version
17691
17692 # Library versioning type.
17693 version_type=$version_type
17694
17695 # Shared library runtime path variable.
17696 runpath_var=$runpath_var
17697
17698 # Shared library path variable.
17699 shlibpath_var=$shlibpath_var
17700
17701 # Is shlibpath searched before the hard-coded library search path?
17702 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17703
17704 # Format of library name prefix.
17705 libname_spec=$lt_libname_spec
17706
17707 # List of archive names.  First name is the real one, the rest are links.
17708 # The last name is the one that the linker finds with -lNAME
17709 library_names_spec=$lt_library_names_spec
17710
17711 # The coded name of the library, if different from the real name.
17712 soname_spec=$lt_soname_spec
17713
17714 # Command to use after installation of a shared archive.
17715 postinstall_cmds=$lt_postinstall_cmds
17716
17717 # Command to use after uninstallation of a shared archive.
17718 postuninstall_cmds=$lt_postuninstall_cmds
17719
17720 # Commands used to finish a libtool library installation in a directory.
17721 finish_cmds=$lt_finish_cmds
17722
17723 # As "finish_cmds", except a single script fragment to be evaled but
17724 # not shown.
17725 finish_eval=$lt_finish_eval
17726
17727 # Whether we should hardcode library paths into libraries.
17728 hardcode_into_libs=$hardcode_into_libs
17729
17730 # Compile-time system search path for libraries.
17731 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17732
17733 # Run-time system search path for libraries.
17734 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17735
17736 # Whether dlopen is supported.
17737 dlopen_support=$enable_dlopen
17738
17739 # Whether dlopen of programs is supported.
17740 dlopen_self=$enable_dlopen_self
17741
17742 # Whether dlopen of statically linked programs is supported.
17743 dlopen_self_static=$enable_dlopen_self_static
17744
17745 # Commands to strip libraries.
17746 old_striplib=$lt_old_striplib
17747 striplib=$lt_striplib
17748
17749
17750 # The linker used to build libraries.
17751 LD=$lt_LD
17752
17753 # Commands used to build an old-style archive.
17754 old_archive_cmds=$lt_old_archive_cmds
17755
17756 # A language specific compiler.
17757 CC=$lt_compiler
17758
17759 # Is the compiler the GNU compiler?
17760 with_gcc=$GCC
17761
17762 # Compiler flag to turn off builtin functions.
17763 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17764
17765 # How to pass a linker flag through the compiler.
17766 wl=$lt_lt_prog_compiler_wl
17767
17768 # Additional compiler flags for building library objects.
17769 pic_flag=$lt_lt_prog_compiler_pic
17770
17771 # Compiler flag to prevent dynamic linking.
17772 link_static_flag=$lt_lt_prog_compiler_static
17773
17774 # Does compiler simultaneously support -c and -o options?
17775 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17776
17777 # Whether or not to add -lc for building shared libraries.
17778 build_libtool_need_lc=$archive_cmds_need_lc
17779
17780 # Whether or not to disallow shared libs when runtime libs are static.
17781 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17782
17783 # Compiler flag to allow reflexive dlopens.
17784 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17785
17786 # Compiler flag to generate shared objects directly from archives.
17787 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17788
17789 # Whether the compiler copes with passing no objects directly.
17790 compiler_needs_object=$lt_compiler_needs_object
17791
17792 # Create an old-style archive from a shared archive.
17793 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17794
17795 # Create a temporary old-style archive to link instead of a shared archive.
17796 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17797
17798 # Commands used to build a shared archive.
17799 archive_cmds=$lt_archive_cmds
17800 archive_expsym_cmds=$lt_archive_expsym_cmds
17801
17802 # Commands used to build a loadable module if different from building
17803 # a shared archive.
17804 module_cmds=$lt_module_cmds
17805 module_expsym_cmds=$lt_module_expsym_cmds
17806
17807 # Whether we are building with GNU ld or not.
17808 with_gnu_ld=$lt_with_gnu_ld
17809
17810 # Flag that allows shared libraries with undefined symbols to be built.
17811 allow_undefined_flag=$lt_allow_undefined_flag
17812
17813 # Flag that enforces no undefined symbols.
17814 no_undefined_flag=$lt_no_undefined_flag
17815
17816 # Flag to hardcode \$libdir into a binary during linking.
17817 # This must work even if \$libdir does not exist
17818 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17819
17820 # If ld is used when linking, flag to hardcode \$libdir into a binary
17821 # during linking.  This must work even if \$libdir does not exist.
17822 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17823
17824 # Whether we need a single "-rpath" flag with a separated argument.
17825 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17826
17827 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17828 # DIR into the resulting binary.
17829 hardcode_direct=$hardcode_direct
17830
17831 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17832 # DIR into the resulting binary and the resulting library dependency is
17833 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17834 # library is relocated.
17835 hardcode_direct_absolute=$hardcode_direct_absolute
17836
17837 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17838 # into the resulting binary.
17839 hardcode_minus_L=$hardcode_minus_L
17840
17841 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17842 # into the resulting binary.
17843 hardcode_shlibpath_var=$hardcode_shlibpath_var
17844
17845 # Set to "yes" if building a shared library automatically hardcodes DIR
17846 # into the library and all subsequent libraries and executables linked
17847 # against it.
17848 hardcode_automatic=$hardcode_automatic
17849
17850 # Set to yes if linker adds runtime paths of dependent libraries
17851 # to runtime path list.
17852 inherit_rpath=$inherit_rpath
17853
17854 # Whether libtool must link a program against all its dependency libraries.
17855 link_all_deplibs=$link_all_deplibs
17856
17857 # Fix the shell variable \$srcfile for the compiler.
17858 fix_srcfile_path=$lt_fix_srcfile_path
17859
17860 # Set to "yes" if exported symbols are required.
17861 always_export_symbols=$always_export_symbols
17862
17863 # The commands to list exported symbols.
17864 export_symbols_cmds=$lt_export_symbols_cmds
17865
17866 # Symbols that should not be listed in the preloaded symbols.
17867 exclude_expsyms=$lt_exclude_expsyms
17868
17869 # Symbols that must always be exported.
17870 include_expsyms=$lt_include_expsyms
17871
17872 # Commands necessary for linking programs (against libraries) with templates.
17873 prelink_cmds=$lt_prelink_cmds
17874
17875 # Specify filename containing input files.
17876 file_list_spec=$lt_file_list_spec
17877
17878 # How to hardcode a shared library path into an executable.
17879 hardcode_action=$hardcode_action
17880
17881 # The directories searched by this compiler when creating a shared library.
17882 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17883
17884 # Dependencies to place before and after the objects being linked to
17885 # create a shared library.
17886 predep_objects=$lt_predep_objects
17887 postdep_objects=$lt_postdep_objects
17888 predeps=$lt_predeps
17889 postdeps=$lt_postdeps
17890
17891 # The library search path used internally by the compiler when linking
17892 # a shared library.
17893 compiler_lib_search_path=$lt_compiler_lib_search_path
17894
17895 # ### END LIBTOOL CONFIG
17896
17897 _LT_EOF
17898
17899   case $host_os in
17900   aix3*)
17901     cat <<\_LT_EOF >> "$cfgfile"
17902 # AIX sometimes has problems with the GCC collect2 program.  For some
17903 # reason, if we set the COLLECT_NAMES environment variable, the problems
17904 # vanish in a puff of smoke.
17905 if test "X${COLLECT_NAMES+set}" != Xset; then
17906   COLLECT_NAMES=
17907   export COLLECT_NAMES
17908 fi
17909 _LT_EOF
17910     ;;
17911   esac
17912
17913
17914 ltmain="$ac_aux_dir/ltmain.sh"
17915
17916
17917   # We use sed instead of cat because bash on DJGPP gets confused if
17918   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17919   # text mode, it properly converts lines to CR/LF.  This bash problem
17920   # is reportedly fixed, but why not run on old versions too?
17921   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17922     || (rm -f "$cfgfile"; exit 1)
17923
17924   case $xsi_shell in
17925   yes)
17926     cat << \_LT_EOF >> "$cfgfile"
17927
17928 # func_dirname file append nondir_replacement
17929 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17930 # otherwise set result to NONDIR_REPLACEMENT.
17931 func_dirname ()
17932 {
17933   case ${1} in
17934     */*) func_dirname_result="${1%/*}${2}" ;;
17935     *  ) func_dirname_result="${3}" ;;
17936   esac
17937 }
17938
17939 # func_basename file
17940 func_basename ()
17941 {
17942   func_basename_result="${1##*/}"
17943 }
17944
17945 # func_dirname_and_basename file append nondir_replacement
17946 # perform func_basename and func_dirname in a single function
17947 # call:
17948 #   dirname:  Compute the dirname of FILE.  If nonempty,
17949 #             add APPEND to the result, otherwise set result
17950 #             to NONDIR_REPLACEMENT.
17951 #             value returned in "$func_dirname_result"
17952 #   basename: Compute filename of FILE.
17953 #             value retuned in "$func_basename_result"
17954 # Implementation must be kept synchronized with func_dirname
17955 # and func_basename. For efficiency, we do not delegate to
17956 # those functions but instead duplicate the functionality here.
17957 func_dirname_and_basename ()
17958 {
17959   case ${1} in
17960     */*) func_dirname_result="${1%/*}${2}" ;;
17961     *  ) func_dirname_result="${3}" ;;
17962   esac
17963   func_basename_result="${1##*/}"
17964 }
17965
17966 # func_stripname prefix suffix name
17967 # strip PREFIX and SUFFIX off of NAME.
17968 # PREFIX and SUFFIX must not contain globbing or regex special
17969 # characters, hashes, percent signs, but SUFFIX may contain a leading
17970 # dot (in which case that matches only a dot).
17971 func_stripname ()
17972 {
17973   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17974   # positional parameters, so assign one to ordinary parameter first.
17975   func_stripname_result=${3}
17976   func_stripname_result=${func_stripname_result#"${1}"}
17977   func_stripname_result=${func_stripname_result%"${2}"}
17978 }
17979
17980 # func_opt_split
17981 func_opt_split ()
17982 {
17983   func_opt_split_opt=${1%%=*}
17984   func_opt_split_arg=${1#*=}
17985 }
17986
17987 # func_lo2o object
17988 func_lo2o ()
17989 {
17990   case ${1} in
17991     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17992     *)    func_lo2o_result=${1} ;;
17993   esac
17994 }
17995
17996 # func_xform libobj-or-source
17997 func_xform ()
17998 {
17999   func_xform_result=${1%.*}.lo
18000 }
18001
18002 # func_arith arithmetic-term...
18003 func_arith ()
18004 {
18005   func_arith_result=$(( $* ))
18006 }
18007
18008 # func_len string
18009 # STRING may not start with a hyphen.
18010 func_len ()
18011 {
18012   func_len_result=${#1}
18013 }
18014
18015 _LT_EOF
18016     ;;
18017   *) # Bourne compatible functions.
18018     cat << \_LT_EOF >> "$cfgfile"
18019
18020 # func_dirname file append nondir_replacement
18021 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18022 # otherwise set result to NONDIR_REPLACEMENT.
18023 func_dirname ()
18024 {
18025   # Extract subdirectory from the argument.
18026   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18027   if test "X$func_dirname_result" = "X${1}"; then
18028     func_dirname_result="${3}"
18029   else
18030     func_dirname_result="$func_dirname_result${2}"
18031   fi
18032 }
18033
18034 # func_basename file
18035 func_basename ()
18036 {
18037   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18038 }
18039
18040
18041 # func_stripname prefix suffix name
18042 # strip PREFIX and SUFFIX off of NAME.
18043 # PREFIX and SUFFIX must not contain globbing or regex special
18044 # characters, hashes, percent signs, but SUFFIX may contain a leading
18045 # dot (in which case that matches only a dot).
18046 # func_strip_suffix prefix name
18047 func_stripname ()
18048 {
18049   case ${2} in
18050     .*) func_stripname_result=`$ECHO "X${3}" \
18051            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18052     *)  func_stripname_result=`$ECHO "X${3}" \
18053            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18054   esac
18055 }
18056
18057 # sed scripts:
18058 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18059 my_sed_long_arg='1s/^-[^=]*=//'
18060
18061 # func_opt_split
18062 func_opt_split ()
18063 {
18064   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18065   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18066 }
18067
18068 # func_lo2o object
18069 func_lo2o ()
18070 {
18071   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18072 }
18073
18074 # func_xform libobj-or-source
18075 func_xform ()
18076 {
18077   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18078 }
18079
18080 # func_arith arithmetic-term...
18081 func_arith ()
18082 {
18083   func_arith_result=`expr "$@"`
18084 }
18085
18086 # func_len string
18087 # STRING may not start with a hyphen.
18088 func_len ()
18089 {
18090   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18091 }
18092
18093 _LT_EOF
18094 esac
18095
18096 case $lt_shell_append in
18097   yes)
18098     cat << \_LT_EOF >> "$cfgfile"
18099
18100 # func_append var value
18101 # Append VALUE to the end of shell variable VAR.
18102 func_append ()
18103 {
18104   eval "$1+=\$2"
18105 }
18106 _LT_EOF
18107     ;;
18108   *)
18109     cat << \_LT_EOF >> "$cfgfile"
18110
18111 # func_append var value
18112 # Append VALUE to the end of shell variable VAR.
18113 func_append ()
18114 {
18115   eval "$1=\$$1\$2"
18116 }
18117
18118 _LT_EOF
18119     ;;
18120   esac
18121
18122
18123   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18124     || (rm -f "$cfgfile"; exit 1)
18125
18126   mv -f "$cfgfile" "$ofile" ||
18127     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18128   chmod +x "$ofile"
18129
18130
18131     cat <<_LT_EOF >> "$ofile"
18132
18133 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18134
18135 # The linker used to build libraries.
18136 LD=$lt_LD_CXX
18137
18138 # Commands used to build an old-style archive.
18139 old_archive_cmds=$lt_old_archive_cmds_CXX
18140
18141 # A language specific compiler.
18142 CC=$lt_compiler_CXX
18143
18144 # Is the compiler the GNU compiler?
18145 with_gcc=$GCC_CXX
18146
18147 # Compiler flag to turn off builtin functions.
18148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18149
18150 # How to pass a linker flag through the compiler.
18151 wl=$lt_lt_prog_compiler_wl_CXX
18152
18153 # Additional compiler flags for building library objects.
18154 pic_flag=$lt_lt_prog_compiler_pic_CXX
18155
18156 # Compiler flag to prevent dynamic linking.
18157 link_static_flag=$lt_lt_prog_compiler_static_CXX
18158
18159 # Does compiler simultaneously support -c and -o options?
18160 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18161
18162 # Whether or not to add -lc for building shared libraries.
18163 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18164
18165 # Whether or not to disallow shared libs when runtime libs are static.
18166 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18167
18168 # Compiler flag to allow reflexive dlopens.
18169 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18170
18171 # Compiler flag to generate shared objects directly from archives.
18172 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18173
18174 # Whether the compiler copes with passing no objects directly.
18175 compiler_needs_object=$lt_compiler_needs_object_CXX
18176
18177 # Create an old-style archive from a shared archive.
18178 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18179
18180 # Create a temporary old-style archive to link instead of a shared archive.
18181 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18182
18183 # Commands used to build a shared archive.
18184 archive_cmds=$lt_archive_cmds_CXX
18185 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18186
18187 # Commands used to build a loadable module if different from building
18188 # a shared archive.
18189 module_cmds=$lt_module_cmds_CXX
18190 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18191
18192 # Whether we are building with GNU ld or not.
18193 with_gnu_ld=$lt_with_gnu_ld_CXX
18194
18195 # Flag that allows shared libraries with undefined symbols to be built.
18196 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18197
18198 # Flag that enforces no undefined symbols.
18199 no_undefined_flag=$lt_no_undefined_flag_CXX
18200
18201 # Flag to hardcode \$libdir into a binary during linking.
18202 # This must work even if \$libdir does not exist
18203 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18204
18205 # If ld is used when linking, flag to hardcode \$libdir into a binary
18206 # during linking.  This must work even if \$libdir does not exist.
18207 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18208
18209 # Whether we need a single "-rpath" flag with a separated argument.
18210 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18211
18212 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18213 # DIR into the resulting binary.
18214 hardcode_direct=$hardcode_direct_CXX
18215
18216 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18217 # DIR into the resulting binary and the resulting library dependency is
18218 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18219 # library is relocated.
18220 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18221
18222 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18223 # into the resulting binary.
18224 hardcode_minus_L=$hardcode_minus_L_CXX
18225
18226 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18227 # into the resulting binary.
18228 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18229
18230 # Set to "yes" if building a shared library automatically hardcodes DIR
18231 # into the library and all subsequent libraries and executables linked
18232 # against it.
18233 hardcode_automatic=$hardcode_automatic_CXX
18234
18235 # Set to yes if linker adds runtime paths of dependent libraries
18236 # to runtime path list.
18237 inherit_rpath=$inherit_rpath_CXX
18238
18239 # Whether libtool must link a program against all its dependency libraries.
18240 link_all_deplibs=$link_all_deplibs_CXX
18241
18242 # Fix the shell variable \$srcfile for the compiler.
18243 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18244
18245 # Set to "yes" if exported symbols are required.
18246 always_export_symbols=$always_export_symbols_CXX
18247
18248 # The commands to list exported symbols.
18249 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18250
18251 # Symbols that should not be listed in the preloaded symbols.
18252 exclude_expsyms=$lt_exclude_expsyms_CXX
18253
18254 # Symbols that must always be exported.
18255 include_expsyms=$lt_include_expsyms_CXX
18256
18257 # Commands necessary for linking programs (against libraries) with templates.
18258 prelink_cmds=$lt_prelink_cmds_CXX
18259
18260 # Specify filename containing input files.
18261 file_list_spec=$lt_file_list_spec_CXX
18262
18263 # How to hardcode a shared library path into an executable.
18264 hardcode_action=$hardcode_action_CXX
18265
18266 # The directories searched by this compiler when creating a shared library.
18267 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18268
18269 # Dependencies to place before and after the objects being linked to
18270 # create a shared library.
18271 predep_objects=$lt_predep_objects_CXX
18272 postdep_objects=$lt_postdep_objects_CXX
18273 predeps=$lt_predeps_CXX
18274 postdeps=$lt_postdeps_CXX
18275
18276 # The library search path used internally by the compiler when linking
18277 # a shared library.
18278 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18279
18280 # ### END LIBTOOL TAG CONFIG: CXX
18281 _LT_EOF
18282
18283  ;;
18284
18285   esac
18286 done # for ac_tag
18287
18288
18289 as_fn_exit 0
18290 _ACEOF
18291 ac_clean_files=$ac_clean_files_save
18292
18293 test $ac_write_fail = 0 ||
18294   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18295
18296
18297 # configure is writing to config.log, and then calls config.status.
18298 # config.status does its own redirection, appending to config.log.
18299 # Unfortunately, on DOS this fails, as config.log is still kept open
18300 # by configure, so config.status won't be able to write to it; its
18301 # output is simply discarded.  So we exec the FD to /dev/null,
18302 # effectively closing config.log, so it can be properly (re)opened and
18303 # appended to by config.status.  When coming back to configure, we
18304 # need to make the FD available again.
18305 if test "$no_create" != yes; then
18306   ac_cs_success=:
18307   ac_config_status_args=
18308   test "$silent" = yes &&
18309     ac_config_status_args="$ac_config_status_args --quiet"
18310   exec 5>/dev/null
18311   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18312   exec 5>>config.log
18313   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18314   # would make configure fail if this is the last instruction.
18315   $ac_cs_success || as_fn_exit 1
18316 fi
18317 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18318   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18319 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18320 fi
18321