Merge remote-tracking branch 'origin/master' into debian
[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.1.
4 #
5 # Report bugs to <bugs@project-moonshot.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: bugs@project-moonshot.org about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='mech_eap'
703 PACKAGE_TARNAME='mech_eap'
704 PACKAGE_VERSION='0.1'
705 PACKAGE_STRING='mech_eap 0.1'
706 PACKAGE_BUGREPORT='bugs@project-moonshot.org'
707 PACKAGE_URL=''
708
709 # Factoring default headers for most tests.
710 ac_includes_default="\
711 #include <stdio.h>
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef STDC_HEADERS
719 # include <stdlib.h>
720 # include <stddef.h>
721 #else
722 # ifdef HAVE_STDLIB_H
723 #  include <stdlib.h>
724 # endif
725 #endif
726 #ifdef HAVE_STRING_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728 #  include <memory.h>
729 # endif
730 # include <string.h>
731 #endif
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
734 #endif
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
737 #endif
738 #ifdef HAVE_STDINT_H
739 # include <stdint.h>
740 #endif
741 #ifdef HAVE_UNISTD_H
742 # include <unistd.h>
743 #endif"
744
745 ac_subst_vars='am__EXEEXT_FALSE
746 am__EXEEXT_TRUE
747 LTLIBOBJS
748 LIBOBJS
749 JANSSON_LIBS
750 JANSSON_LDFLAGS
751 JANSSON_CFLAGS
752 RADSEC_LIBS
753 RADSEC_LDFLAGS
754 RADSEC_CFLAGS
755 SHIBRESOLVER_LIBS
756 SHIBRESOLVER_LDFLAGS
757 SHIBRESOLVER_CXXFLAGS
758 SHIBSP_LIBS
759 SHIBSP_LDFLAGS
760 SHIBSP_CXXFLAGS
761 HEIMDAL_FALSE
762 HEIMDAL_TRUE
763 COMPILE_ET
764 KRB5_LIBS
765 KRB5_CFLAGS
766 TARGET_LDFLAGS
767 TARGET_CFLAGS
768 GSSEAP_ENABLE_REAUTH_FALSE
769 GSSEAP_ENABLE_REAUTH_TRUE
770 CXXCPP
771 am__fastdepCXX_FALSE
772 am__fastdepCXX_TRUE
773 CXXDEPMODE
774 ac_ct_CXX
775 CXXFLAGS
776 CXX
777 CPP
778 OTOOL64
779 OTOOL
780 LIPO
781 NMEDIT
782 DSYMUTIL
783 lt_ECHO
784 RANLIB
785 AR
786 OBJDUMP
787 LN_S
788 NM
789 ac_ct_DUMPBIN
790 DUMPBIN
791 LD
792 FGREP
793 EGREP
794 GREP
795 SED
796 am__fastdepCC_FALSE
797 am__fastdepCC_TRUE
798 CCDEPMODE
799 AMDEPBACKSLASH
800 AMDEP_FALSE
801 AMDEP_TRUE
802 am__quote
803 am__include
804 DEPDIR
805 OBJEXT
806 EXEEXT
807 ac_ct_CC
808 CPPFLAGS
809 LDFLAGS
810 CFLAGS
811 CC
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 am__untar
822 am__tar
823 AMTAR
824 am__leading_dot
825 SET_MAKE
826 AWK
827 mkdir_p
828 MKDIR_P
829 INSTALL_STRIP_PROGRAM
830 STRIP
831 install_sh
832 MAKEINFO
833 AUTOHEADER
834 AUTOMAKE
835 AUTOCONF
836 ACLOCAL
837 VERSION
838 PACKAGE
839 CYGPATH_W
840 am__isrc
841 INSTALL_DATA
842 INSTALL_SCRIPT
843 INSTALL_PROGRAM
844 target_alias
845 host_alias
846 build_alias
847 LIBS
848 ECHO_T
849 ECHO_N
850 ECHO_C
851 DEFS
852 mandir
853 localedir
854 libdir
855 psdir
856 pdfdir
857 dvidir
858 htmldir
859 infodir
860 docdir
861 oldincludedir
862 includedir
863 localstatedir
864 sharedstatedir
865 sysconfdir
866 datadir
867 datarootdir
868 libexecdir
869 sbindir
870 bindir
871 program_transform_name
872 prefix
873 exec_prefix
874 PACKAGE_URL
875 PACKAGE_BUGREPORT
876 PACKAGE_STRING
877 PACKAGE_VERSION
878 PACKAGE_TARNAME
879 PACKAGE_NAME
880 PATH_SEPARATOR
881 SHELL'
882 ac_subst_files=''
883 ac_user_opts='
884 enable_option_checking
885 enable_static
886 enable_shared
887 with_pic
888 enable_fast_install
889 enable_dependency_tracking
890 with_gnu_ld
891 enable_libtool_lock
892 enable_reauth
893 with_krb5
894 with_shibsp
895 with_shibresolver
896 with_radsec
897 with_jansson
898 '
899       ac_precious_vars='build_alias
900 host_alias
901 target_alias
902 CC
903 CFLAGS
904 LDFLAGS
905 LIBS
906 CPPFLAGS
907 CPP
908 CXX
909 CXXFLAGS
910 CCC
911 CXXCPP'
912
913
914 # Initialize some variables set by options.
915 ac_init_help=
916 ac_init_version=false
917 ac_unrecognized_opts=
918 ac_unrecognized_sep=
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
921 cache_file=/dev/null
922 exec_prefix=NONE
923 no_create=
924 no_recursion=
925 prefix=NONE
926 program_prefix=NONE
927 program_suffix=NONE
928 program_transform_name=s,x,x,
929 silent=
930 site=
931 srcdir=
932 verbose=
933 x_includes=NONE
934 x_libraries=NONE
935
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir='${exec_prefix}/bin'
943 sbindir='${exec_prefix}/sbin'
944 libexecdir='${exec_prefix}/libexec'
945 datarootdir='${prefix}/share'
946 datadir='${datarootdir}'
947 sysconfdir='${prefix}/etc'
948 sharedstatedir='${prefix}/com'
949 localstatedir='${prefix}/var'
950 includedir='${prefix}/include'
951 oldincludedir='/usr/include'
952 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953 infodir='${datarootdir}/info'
954 htmldir='${docdir}'
955 dvidir='${docdir}'
956 pdfdir='${docdir}'
957 psdir='${docdir}'
958 libdir='${exec_prefix}/lib'
959 localedir='${datarootdir}/locale'
960 mandir='${datarootdir}/man'
961
962 ac_prev=
963 ac_dashdash=
964 for ac_option
965 do
966   # If the previous option needs an argument, assign it.
967   if test -n "$ac_prev"; then
968     eval $ac_prev=\$ac_option
969     ac_prev=
970     continue
971   fi
972
973   case $ac_option in
974   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975   *=)   ac_optarg= ;;
976   *)    ac_optarg=yes ;;
977   esac
978
979   # Accept the important Cygnus configure options, so we can diagnose typos.
980
981   case $ac_dashdash$ac_option in
982   --)
983     ac_dashdash=yes ;;
984
985   -bindir | --bindir | --bindi | --bind | --bin | --bi)
986     ac_prev=bindir ;;
987   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988     bindir=$ac_optarg ;;
989
990   -build | --build | --buil | --bui | --bu)
991     ac_prev=build_alias ;;
992   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993     build_alias=$ac_optarg ;;
994
995   -cache-file | --cache-file | --cache-fil | --cache-fi \
996   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997     ac_prev=cache_file ;;
998   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000     cache_file=$ac_optarg ;;
1001
1002   --config-cache | -C)
1003     cache_file=config.cache ;;
1004
1005   -datadir | --datadir | --datadi | --datad)
1006     ac_prev=datadir ;;
1007   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008     datadir=$ac_optarg ;;
1009
1010   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011   | --dataroo | --dataro | --datar)
1012     ac_prev=datarootdir ;;
1013   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015     datarootdir=$ac_optarg ;;
1016
1017   -disable-* | --disable-*)
1018     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019     # Reject names that are not valid shell variable names.
1020     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021       as_fn_error $? "invalid feature name: $ac_useropt"
1022     ac_useropt_orig=$ac_useropt
1023     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024     case $ac_user_opts in
1025       *"
1026 "enable_$ac_useropt"
1027 "*) ;;
1028       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029          ac_unrecognized_sep=', ';;
1030     esac
1031     eval enable_$ac_useropt=no ;;
1032
1033   -docdir | --docdir | --docdi | --doc | --do)
1034     ac_prev=docdir ;;
1035   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036     docdir=$ac_optarg ;;
1037
1038   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039     ac_prev=dvidir ;;
1040   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041     dvidir=$ac_optarg ;;
1042
1043   -enable-* | --enable-*)
1044     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045     # Reject names that are not valid shell variable names.
1046     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047       as_fn_error $? "invalid feature name: $ac_useropt"
1048     ac_useropt_orig=$ac_useropt
1049     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050     case $ac_user_opts in
1051       *"
1052 "enable_$ac_useropt"
1053 "*) ;;
1054       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1055          ac_unrecognized_sep=', ';;
1056     esac
1057     eval enable_$ac_useropt=\$ac_optarg ;;
1058
1059   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1060   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1061   | --exec | --exe | --ex)
1062     ac_prev=exec_prefix ;;
1063   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1064   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1065   | --exec=* | --exe=* | --ex=*)
1066     exec_prefix=$ac_optarg ;;
1067
1068   -gas | --gas | --ga | --g)
1069     # Obsolete; use --with-gas.
1070     with_gas=yes ;;
1071
1072   -help | --help | --hel | --he | -h)
1073     ac_init_help=long ;;
1074   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1075     ac_init_help=recursive ;;
1076   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1077     ac_init_help=short ;;
1078
1079   -host | --host | --hos | --ho)
1080     ac_prev=host_alias ;;
1081   -host=* | --host=* | --hos=* | --ho=*)
1082     host_alias=$ac_optarg ;;
1083
1084   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1085     ac_prev=htmldir ;;
1086   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1087   | --ht=*)
1088     htmldir=$ac_optarg ;;
1089
1090   -includedir | --includedir | --includedi | --included | --include \
1091   | --includ | --inclu | --incl | --inc)
1092     ac_prev=includedir ;;
1093   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1094   | --includ=* | --inclu=* | --incl=* | --inc=*)
1095     includedir=$ac_optarg ;;
1096
1097   -infodir | --infodir | --infodi | --infod | --info | --inf)
1098     ac_prev=infodir ;;
1099   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1100     infodir=$ac_optarg ;;
1101
1102   -libdir | --libdir | --libdi | --libd)
1103     ac_prev=libdir ;;
1104   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1105     libdir=$ac_optarg ;;
1106
1107   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1108   | --libexe | --libex | --libe)
1109     ac_prev=libexecdir ;;
1110   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1111   | --libexe=* | --libex=* | --libe=*)
1112     libexecdir=$ac_optarg ;;
1113
1114   -localedir | --localedir | --localedi | --localed | --locale)
1115     ac_prev=localedir ;;
1116   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1117     localedir=$ac_optarg ;;
1118
1119   -localstatedir | --localstatedir | --localstatedi | --localstated \
1120   | --localstate | --localstat | --localsta | --localst | --locals)
1121     ac_prev=localstatedir ;;
1122   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1123   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1124     localstatedir=$ac_optarg ;;
1125
1126   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1127     ac_prev=mandir ;;
1128   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1129     mandir=$ac_optarg ;;
1130
1131   -nfp | --nfp | --nf)
1132     # Obsolete; use --without-fp.
1133     with_fp=no ;;
1134
1135   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1136   | --no-cr | --no-c | -n)
1137     no_create=yes ;;
1138
1139   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1140   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1141     no_recursion=yes ;;
1142
1143   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1144   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1145   | --oldin | --oldi | --old | --ol | --o)
1146     ac_prev=oldincludedir ;;
1147   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1148   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1149   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1150     oldincludedir=$ac_optarg ;;
1151
1152   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1153     ac_prev=prefix ;;
1154   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1155     prefix=$ac_optarg ;;
1156
1157   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1158   | --program-pre | --program-pr | --program-p)
1159     ac_prev=program_prefix ;;
1160   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1161   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1162     program_prefix=$ac_optarg ;;
1163
1164   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1165   | --program-suf | --program-su | --program-s)
1166     ac_prev=program_suffix ;;
1167   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1168   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1169     program_suffix=$ac_optarg ;;
1170
1171   -program-transform-name | --program-transform-name \
1172   | --program-transform-nam | --program-transform-na \
1173   | --program-transform-n | --program-transform- \
1174   | --program-transform | --program-transfor \
1175   | --program-transfo | --program-transf \
1176   | --program-trans | --program-tran \
1177   | --progr-tra | --program-tr | --program-t)
1178     ac_prev=program_transform_name ;;
1179   -program-transform-name=* | --program-transform-name=* \
1180   | --program-transform-nam=* | --program-transform-na=* \
1181   | --program-transform-n=* | --program-transform-=* \
1182   | --program-transform=* | --program-transfor=* \
1183   | --program-transfo=* | --program-transf=* \
1184   | --program-trans=* | --program-tran=* \
1185   | --progr-tra=* | --program-tr=* | --program-t=*)
1186     program_transform_name=$ac_optarg ;;
1187
1188   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1189     ac_prev=pdfdir ;;
1190   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1191     pdfdir=$ac_optarg ;;
1192
1193   -psdir | --psdir | --psdi | --psd | --ps)
1194     ac_prev=psdir ;;
1195   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1196     psdir=$ac_optarg ;;
1197
1198   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1199   | -silent | --silent | --silen | --sile | --sil)
1200     silent=yes ;;
1201
1202   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203     ac_prev=sbindir ;;
1204   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205   | --sbi=* | --sb=*)
1206     sbindir=$ac_optarg ;;
1207
1208   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210   | --sharedst | --shareds | --shared | --share | --shar \
1211   | --sha | --sh)
1212     ac_prev=sharedstatedir ;;
1213   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216   | --sha=* | --sh=*)
1217     sharedstatedir=$ac_optarg ;;
1218
1219   -site | --site | --sit)
1220     ac_prev=site ;;
1221   -site=* | --site=* | --sit=*)
1222     site=$ac_optarg ;;
1223
1224   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225     ac_prev=srcdir ;;
1226   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1227     srcdir=$ac_optarg ;;
1228
1229   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230   | --syscon | --sysco | --sysc | --sys | --sy)
1231     ac_prev=sysconfdir ;;
1232   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1234     sysconfdir=$ac_optarg ;;
1235
1236   -target | --target | --targe | --targ | --tar | --ta | --t)
1237     ac_prev=target_alias ;;
1238   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1239     target_alias=$ac_optarg ;;
1240
1241   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242     verbose=yes ;;
1243
1244   -version | --version | --versio | --versi | --vers | -V)
1245     ac_init_version=: ;;
1246
1247   -with-* | --with-*)
1248     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249     # Reject names that are not valid shell variable names.
1250     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251       as_fn_error $? "invalid package name: $ac_useropt"
1252     ac_useropt_orig=$ac_useropt
1253     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254     case $ac_user_opts in
1255       *"
1256 "with_$ac_useropt"
1257 "*) ;;
1258       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259          ac_unrecognized_sep=', ';;
1260     esac
1261     eval with_$ac_useropt=\$ac_optarg ;;
1262
1263   -without-* | --without-*)
1264     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265     # Reject names that are not valid shell variable names.
1266     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267       as_fn_error $? "invalid package name: $ac_useropt"
1268     ac_useropt_orig=$ac_useropt
1269     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270     case $ac_user_opts in
1271       *"
1272 "with_$ac_useropt"
1273 "*) ;;
1274       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275          ac_unrecognized_sep=', ';;
1276     esac
1277     eval with_$ac_useropt=no ;;
1278
1279   --x)
1280     # Obsolete; use --with-x.
1281     with_x=yes ;;
1282
1283   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284   | --x-incl | --x-inc | --x-in | --x-i)
1285     ac_prev=x_includes ;;
1286   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288     x_includes=$ac_optarg ;;
1289
1290   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292     ac_prev=x_libraries ;;
1293   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295     x_libraries=$ac_optarg ;;
1296
1297   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1298 Try \`$0 --help' for more information"
1299     ;;
1300
1301   *=*)
1302     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303     # Reject names that are not valid shell variable names.
1304     case $ac_envvar in #(
1305       '' | [0-9]* | *[!_$as_cr_alnum]* )
1306       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1307     esac
1308     eval $ac_envvar=\$ac_optarg
1309     export $ac_envvar ;;
1310
1311   *)
1312     # FIXME: should be removed in autoconf 3.0.
1313     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1317     ;;
1318
1319   esac
1320 done
1321
1322 if test -n "$ac_prev"; then
1323   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324   as_fn_error $? "missing argument to $ac_option"
1325 fi
1326
1327 if test -n "$ac_unrecognized_opts"; then
1328   case $enable_option_checking in
1329     no) ;;
1330     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1331     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332   esac
1333 fi
1334
1335 # Check all directory arguments for consistency.
1336 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337                 datadir sysconfdir sharedstatedir localstatedir includedir \
1338                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339                 libdir localedir mandir
1340 do
1341   eval ac_val=\$$ac_var
1342   # Remove trailing slashes.
1343   case $ac_val in
1344     */ )
1345       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346       eval $ac_var=\$ac_val;;
1347   esac
1348   # Be sure to have absolute directory names.
1349   case $ac_val in
1350     [\\/$]* | ?:[\\/]* )  continue;;
1351     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352   esac
1353   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1354 done
1355
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1359 build=$build_alias
1360 host=$host_alias
1361 target=$target_alias
1362
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365   if test "x$build_alias" = x; then
1366     cross_compiling=maybe
1367     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1368     If a cross compiler is detected then cross compile mode will be used" >&2
1369   elif test "x$build_alias" != "x$host_alias"; then
1370     cross_compiling=yes
1371   fi
1372 fi
1373
1374 ac_tool_prefix=
1375 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1376
1377 test "$silent" = yes && exec 6>/dev/null
1378
1379
1380 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381 ac_ls_di=`ls -di .` &&
1382 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383   as_fn_error $? "working directory cannot be determined"
1384 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385   as_fn_error $? "pwd does not report name of working directory"
1386
1387
1388 # Find the source files, if location was not specified.
1389 if test -z "$srcdir"; then
1390   ac_srcdir_defaulted=yes
1391   # Try the directory containing this script, then the parent directory.
1392   ac_confdir=`$as_dirname -- "$as_myself" ||
1393 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394          X"$as_myself" : 'X\(//\)[^/]' \| \
1395          X"$as_myself" : 'X\(//\)$' \| \
1396          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1397 $as_echo X"$as_myself" |
1398     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399             s//\1/
1400             q
1401           }
1402           /^X\(\/\/\)[^/].*/{
1403             s//\1/
1404             q
1405           }
1406           /^X\(\/\/\)$/{
1407             s//\1/
1408             q
1409           }
1410           /^X\(\/\).*/{
1411             s//\1/
1412             q
1413           }
1414           s/.*/./; q'`
1415   srcdir=$ac_confdir
1416   if test ! -r "$srcdir/$ac_unique_file"; then
1417     srcdir=..
1418   fi
1419 else
1420   ac_srcdir_defaulted=no
1421 fi
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1425 fi
1426 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427 ac_abs_confdir=`(
1428         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1429         pwd)`
1430 # When building in place, set srcdir=.
1431 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432   srcdir=.
1433 fi
1434 # Remove unnecessary trailing slashes from srcdir.
1435 # Double slashes in file names in object file debugging info
1436 # mess up M-x gdb in Emacs.
1437 case $srcdir in
1438 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439 esac
1440 for ac_var in $ac_precious_vars; do
1441   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1442   eval ac_env_${ac_var}_value=\$${ac_var}
1443   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1444   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445 done
1446
1447 #
1448 # Report the --help message.
1449 #
1450 if test "$ac_init_help" = "long"; then
1451   # Omit some internal or obsolete options to make the list less imposing.
1452   # This message is too long to be a string in the A/UX 3.1 sh.
1453   cat <<_ACEOF
1454 \`configure' configures mech_eap 0.1 to adapt to many kinds of systems.
1455
1456 Usage: $0 [OPTION]... [VAR=VALUE]...
1457
1458 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459 VAR=VALUE.  See below for descriptions of some of the useful variables.
1460
1461 Defaults for the options are specified in brackets.
1462
1463 Configuration:
1464   -h, --help              display this help and exit
1465       --help=short        display options specific to this package
1466       --help=recursive    display the short help of all the included packages
1467   -V, --version           display version information and exit
1468   -q, --quiet, --silent   do not print \`checking ...' messages
1469       --cache-file=FILE   cache test results in FILE [disabled]
1470   -C, --config-cache      alias for \`--cache-file=config.cache'
1471   -n, --no-create         do not create output files
1472       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1473
1474 Installation directories:
1475   --prefix=PREFIX         install architecture-independent files in PREFIX
1476                           [$ac_default_prefix]
1477   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1478                           [PREFIX]
1479
1480 By default, \`make install' will install all the files in
1481 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1482 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483 for instance \`--prefix=\$HOME'.
1484
1485 For better control, use the options below.
1486
1487 Fine tuning of the installation directories:
1488   --bindir=DIR            user executables [EPREFIX/bin]
1489   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1490   --libexecdir=DIR        program executables [EPREFIX/libexec]
1491   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1492   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1493   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1494   --libdir=DIR            object code libraries [EPREFIX/lib]
1495   --includedir=DIR        C header files [PREFIX/include]
1496   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1497   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1498   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1499   --infodir=DIR           info documentation [DATAROOTDIR/info]
1500   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1501   --mandir=DIR            man documentation [DATAROOTDIR/man]
1502   --docdir=DIR            documentation root [DATAROOTDIR/doc/mech_eap]
1503   --htmldir=DIR           html documentation [DOCDIR]
1504   --dvidir=DIR            dvi documentation [DOCDIR]
1505   --pdfdir=DIR            pdf documentation [DOCDIR]
1506   --psdir=DIR             ps documentation [DOCDIR]
1507 _ACEOF
1508
1509   cat <<\_ACEOF
1510
1511 Program names:
1512   --program-prefix=PREFIX            prepend PREFIX to installed program names
1513   --program-suffix=SUFFIX            append SUFFIX to installed program names
1514   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1515
1516 System types:
1517   --build=BUILD     configure for building on BUILD [guessed]
1518   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1519 _ACEOF
1520 fi
1521
1522 if test -n "$ac_init_help"; then
1523   case $ac_init_help in
1524      short | recursive ) echo "Configuration of mech_eap 0.1:";;
1525    esac
1526   cat <<\_ACEOF
1527
1528 Optional Features:
1529   --disable-option-checking  ignore unrecognized --enable/--with options
1530   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1531   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1532   --enable-static[=PKGS]  build static libraries [default=no]
1533   --enable-shared[=PKGS]  build shared libraries [default=yes]
1534   --enable-fast-install[=PKGS]
1535                           optimize for fast installation [default=yes]
1536   --disable-dependency-tracking  speeds up one-time build
1537   --enable-dependency-tracking   do not reject slow dependency extractors
1538   --disable-libtool-lock  avoid locking (might break parallel builds)
1539   --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no
1540
1541 Optional Packages:
1542   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1543   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1544   --with-pic              try to use only PIC/non-PIC objects [default=use
1545                           both]
1546   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1547   --with-krb5             Use krb5 (in specified installation directory)
1548   --with-shibsp           Use shibspboleth (in specified installation
1549                           directory)
1550   --with-shibresolver     Use Shibboleth resolver (in specified installation
1551                           directory)
1552   --with-radsec           Use radsec (in specified installation directory)
1553   --with-jansson          Use jansson (in specified installation directory)
1554
1555 Some influential environment variables:
1556   CC          C compiler command
1557   CFLAGS      C compiler flags
1558   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1559               nonstandard directory <lib dir>
1560   LIBS        libraries to pass to the linker, e.g. -l<library>
1561   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1562               you have headers in a nonstandard directory <include dir>
1563   CPP         C preprocessor
1564   CXX         C++ compiler command
1565   CXXFLAGS    C++ compiler flags
1566   CXXCPP      C++ preprocessor
1567
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1570
1571 Report bugs to <bugs@project-moonshot.org>.
1572 _ACEOF
1573 ac_status=$?
1574 fi
1575
1576 if test "$ac_init_help" = "recursive"; then
1577   # If there are subdirs, report their specific --help.
1578   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579     test -d "$ac_dir" ||
1580       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581       continue
1582     ac_builddir=.
1583
1584 case "$ac_dir" in
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *)
1587   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1588   # A ".." for each directory in $ac_dir_suffix.
1589   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1590   case $ac_top_builddir_sub in
1591   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593   esac ;;
1594 esac
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1599
1600 case $srcdir in
1601   .)  # We are building in place.
1602     ac_srcdir=.
1603     ac_top_srcdir=$ac_top_builddir_sub
1604     ac_abs_top_srcdir=$ac_pwd ;;
1605   [\\/]* | ?:[\\/]* )  # Absolute name.
1606     ac_srcdir=$srcdir$ac_dir_suffix;
1607     ac_top_srcdir=$srcdir
1608     ac_abs_top_srcdir=$srcdir ;;
1609   *) # Relative name.
1610     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611     ac_top_srcdir=$ac_top_build_prefix$srcdir
1612     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613 esac
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1615
1616     cd "$ac_dir" || { ac_status=$?; continue; }
1617     # Check for guested configure.
1618     if test -f "$ac_srcdir/configure.gnu"; then
1619       echo &&
1620       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621     elif test -f "$ac_srcdir/configure"; then
1622       echo &&
1623       $SHELL "$ac_srcdir/configure" --help=recursive
1624     else
1625       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626     fi || ac_status=$?
1627     cd "$ac_pwd" || { ac_status=$?; break; }
1628   done
1629 fi
1630
1631 test -n "$ac_init_help" && exit $ac_status
1632 if $ac_init_version; then
1633   cat <<\_ACEOF
1634 mech_eap configure 0.1
1635 generated by GNU Autoconf 2.67
1636
1637 Copyright (C) 2010 Free Software Foundation, Inc.
1638 This configure script is free software; the Free Software Foundation
1639 gives unlimited permission to copy, distribute and modify it.
1640 _ACEOF
1641   exit
1642 fi
1643
1644 ## ------------------------ ##
1645 ## Autoconf initialization. ##
1646 ## ------------------------ ##
1647
1648 # ac_fn_c_try_compile LINENO
1649 # --------------------------
1650 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_compile ()
1652 {
1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654   rm -f conftest.$ac_objext
1655   if { { ac_try="$ac_compile"
1656 case "(($ac_try" in
1657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658   *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662   (eval "$ac_compile") 2>conftest.err
1663   ac_status=$?
1664   if test -s conftest.err; then
1665     grep -v '^ *+' conftest.err >conftest.er1
1666     cat conftest.er1 >&5
1667     mv -f conftest.er1 conftest.err
1668   fi
1669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670   test $ac_status = 0; } && {
1671          test -z "$ac_c_werror_flag" ||
1672          test ! -s conftest.err
1673        } && test -s conftest.$ac_objext; then :
1674   ac_retval=0
1675 else
1676   $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679         ac_retval=1
1680 fi
1681   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682   as_fn_set_status $ac_retval
1683
1684 } # ac_fn_c_try_compile
1685
1686 # ac_fn_c_try_link LINENO
1687 # -----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_link ()
1690 {
1691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692   rm -f conftest.$ac_objext conftest$ac_exeext
1693   if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696   *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700   (eval "$ac_link") 2>conftest.err
1701   ac_status=$?
1702   if test -s conftest.err; then
1703     grep -v '^ *+' conftest.err >conftest.er1
1704     cat conftest.er1 >&5
1705     mv -f conftest.er1 conftest.err
1706   fi
1707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708   test $ac_status = 0; } && {
1709          test -z "$ac_c_werror_flag" ||
1710          test ! -s conftest.err
1711        } && test -s conftest$ac_exeext && {
1712          test "$cross_compiling" = yes ||
1713          $as_test_x conftest$ac_exeext
1714        }; then :
1715   ac_retval=0
1716 else
1717   $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720         ac_retval=1
1721 fi
1722   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724   # interfere with the next link command; also delete a directory that is
1725   # left behind by Apple's compiler.  We do this before executing the actions.
1726   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728   as_fn_set_status $ac_retval
1729
1730 } # ac_fn_c_try_link
1731
1732 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists and can be compiled using the include files in
1735 # INCLUDES, setting the cache variable VAR accordingly.
1736 ac_fn_c_check_header_compile ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval "test \"\${$3+set}\"" = set; then :
1742   $as_echo_n "(cached) " >&6
1743 else
1744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h.  */
1746 $4
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"; then :
1750   eval "$3=yes"
1751 else
1752   eval "$3=no"
1753 fi
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 fi
1756 eval ac_res=\$$3
1757                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760
1761 } # ac_fn_c_check_header_compile
1762
1763 # ac_fn_c_try_cpp LINENO
1764 # ----------------------
1765 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_cpp ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   if { { ac_try="$ac_cpp conftest.$ac_ext"
1770 case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777   ac_status=$?
1778   if test -s conftest.err; then
1779     grep -v '^ *+' conftest.err >conftest.er1
1780     cat conftest.er1 >&5
1781     mv -f conftest.er1 conftest.err
1782   fi
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; } > conftest.i && {
1785          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786          test ! -s conftest.err
1787        }; then :
1788   ac_retval=0
1789 else
1790   $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793     ac_retval=1
1794 fi
1795   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796   as_fn_set_status $ac_retval
1797
1798 } # ac_fn_c_try_cpp
1799
1800 # ac_fn_c_try_run LINENO
1801 # ----------------------
1802 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1803 # that executables *can* be run.
1804 ac_fn_c_try_run ()
1805 {
1806   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807   if { { ac_try="$ac_link"
1808 case "(($ac_try" in
1809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810   *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814   (eval "$ac_link") 2>&5
1815   ac_status=$?
1816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1818   { { case "(($ac_try" in
1819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820   *) ac_try_echo=$ac_try;;
1821 esac
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824   (eval "$ac_try") 2>&5
1825   ac_status=$?
1826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827   test $ac_status = 0; }; }; then :
1828   ac_retval=0
1829 else
1830   $as_echo "$as_me: program exited with status $ac_status" >&5
1831        $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834        ac_retval=$ac_status
1835 fi
1836   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838   as_fn_set_status $ac_retval
1839
1840 } # ac_fn_c_try_run
1841
1842 # ac_fn_c_check_func LINENO FUNC VAR
1843 # ----------------------------------
1844 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1845 ac_fn_c_check_func ()
1846 {
1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if eval "test \"\${$3+set}\"" = set; then :
1851   $as_echo_n "(cached) " >&6
1852 else
1853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h.  */
1855 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1857 #define $2 innocuous_$2
1858
1859 /* System header to define __stub macros and hopefully few prototypes,
1860     which can conflict with char $2 (); below.
1861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1862     <limits.h> exists even on freestanding compilers.  */
1863
1864 #ifdef __STDC__
1865 # include <limits.h>
1866 #else
1867 # include <assert.h>
1868 #endif
1869
1870 #undef $2
1871
1872 /* Override any GCC internal prototype to avoid an error.
1873    Use char because int might match the return type of a GCC
1874    builtin and then its argument prototype would still apply.  */
1875 #ifdef __cplusplus
1876 extern "C"
1877 #endif
1878 char $2 ();
1879 /* The GNU C library defines this for functions which it implements
1880     to always fail with ENOSYS.  Some functions are actually named
1881     something starting with __ and the normal name is an alias.  */
1882 #if defined __stub_$2 || defined __stub___$2
1883 choke me
1884 #endif
1885
1886 int
1887 main ()
1888 {
1889 return $2 ();
1890   ;
1891   return 0;
1892 }
1893 _ACEOF
1894 if ac_fn_c_try_link "$LINENO"; then :
1895   eval "$3=yes"
1896 else
1897   eval "$3=no"
1898 fi
1899 rm -f core conftest.err conftest.$ac_objext \
1900     conftest$ac_exeext conftest.$ac_ext
1901 fi
1902 eval ac_res=\$$3
1903                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906
1907 } # ac_fn_c_check_func
1908
1909 # ac_fn_cxx_try_compile LINENO
1910 # ----------------------------
1911 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_cxx_try_compile ()
1913 {
1914   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915   rm -f conftest.$ac_objext
1916   if { { ac_try="$ac_compile"
1917 case "(($ac_try" in
1918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919   *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923   (eval "$ac_compile") 2>conftest.err
1924   ac_status=$?
1925   if test -s conftest.err; then
1926     grep -v '^ *+' conftest.err >conftest.er1
1927     cat conftest.er1 >&5
1928     mv -f conftest.er1 conftest.err
1929   fi
1930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931   test $ac_status = 0; } && {
1932          test -z "$ac_cxx_werror_flag" ||
1933          test ! -s conftest.err
1934        } && test -s conftest.$ac_objext; then :
1935   ac_retval=0
1936 else
1937   $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1939
1940         ac_retval=1
1941 fi
1942   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1943   as_fn_set_status $ac_retval
1944
1945 } # ac_fn_cxx_try_compile
1946
1947 # ac_fn_cxx_try_cpp LINENO
1948 # ------------------------
1949 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1950 ac_fn_cxx_try_cpp ()
1951 {
1952   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953   if { { ac_try="$ac_cpp conftest.$ac_ext"
1954 case "(($ac_try" in
1955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956   *) ac_try_echo=$ac_try;;
1957 esac
1958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959 $as_echo "$ac_try_echo"; } >&5
1960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1961   ac_status=$?
1962   if test -s conftest.err; then
1963     grep -v '^ *+' conftest.err >conftest.er1
1964     cat conftest.er1 >&5
1965     mv -f conftest.er1 conftest.err
1966   fi
1967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968   test $ac_status = 0; } > conftest.i && {
1969          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1970          test ! -s conftest.err
1971        }; then :
1972   ac_retval=0
1973 else
1974   $as_echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1976
1977     ac_retval=1
1978 fi
1979   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980   as_fn_set_status $ac_retval
1981
1982 } # ac_fn_cxx_try_cpp
1983
1984 # ac_fn_cxx_try_link LINENO
1985 # -------------------------
1986 # Try to link conftest.$ac_ext, and return whether this succeeded.
1987 ac_fn_cxx_try_link ()
1988 {
1989   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990   rm -f conftest.$ac_objext conftest$ac_exeext
1991   if { { ac_try="$ac_link"
1992 case "(($ac_try" in
1993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994   *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998   (eval "$ac_link") 2>conftest.err
1999   ac_status=$?
2000   if test -s conftest.err; then
2001     grep -v '^ *+' conftest.err >conftest.er1
2002     cat conftest.er1 >&5
2003     mv -f conftest.er1 conftest.err
2004   fi
2005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006   test $ac_status = 0; } && {
2007          test -z "$ac_cxx_werror_flag" ||
2008          test ! -s conftest.err
2009        } && test -s conftest$ac_exeext && {
2010          test "$cross_compiling" = yes ||
2011          $as_test_x conftest$ac_exeext
2012        }; then :
2013   ac_retval=0
2014 else
2015   $as_echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2017
2018         ac_retval=1
2019 fi
2020   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2021   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2022   # interfere with the next link command; also delete a directory that is
2023   # left behind by Apple's compiler.  We do this before executing the actions.
2024   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2025   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2026   as_fn_set_status $ac_retval
2027
2028 } # ac_fn_cxx_try_link
2029
2030 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2031 # -------------------------------------------------------
2032 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2033 # the include files in INCLUDES and setting the cache variable VAR
2034 # accordingly.
2035 ac_fn_c_check_header_mongrel ()
2036 {
2037   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038   if eval "test \"\${$3+set}\"" = set; then :
2039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval "test \"\${$3+set}\"" = set; then :
2042   $as_echo_n "(cached) " >&6
2043 fi
2044 eval ac_res=\$$3
2045                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 else
2048   # Is the header compilable?
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2050 $as_echo_n "checking $2 usability... " >&6; }
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h.  */
2053 $4
2054 #include <$2>
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057   ac_header_compiler=yes
2058 else
2059   ac_header_compiler=no
2060 fi
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2063 $as_echo "$ac_header_compiler" >&6; }
2064
2065 # Is the header present?
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2067 $as_echo_n "checking $2 presence... " >&6; }
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h.  */
2070 #include <$2>
2071 _ACEOF
2072 if ac_fn_c_try_cpp "$LINENO"; then :
2073   ac_header_preproc=yes
2074 else
2075   ac_header_preproc=no
2076 fi
2077 rm -f conftest.err conftest.i conftest.$ac_ext
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2079 $as_echo "$ac_header_preproc" >&6; }
2080
2081 # So?  What about this header?
2082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2083   yes:no: )
2084     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2085 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2086     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2087 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2088     ;;
2089   no:yes:* )
2090     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2091 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2092     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2093 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2094     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2095 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2096     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2097 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2098     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2099 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2100 ( $as_echo "## ---------------------------------------- ##
2101 ## Report this to bugs@project-moonshot.org ##
2102 ## ---------------------------------------- ##"
2103      ) | sed "s/^/$as_me: WARNING:     /" >&2
2104     ;;
2105 esac
2106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; }
2108 if eval "test \"\${$3+set}\"" = set; then :
2109   $as_echo_n "(cached) " >&6
2110 else
2111   eval "$3=\$ac_header_compiler"
2112 fi
2113 eval ac_res=\$$3
2114                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115 $as_echo "$ac_res" >&6; }
2116 fi
2117   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2118
2119 } # ac_fn_c_check_header_mongrel
2120 cat >config.log <<_ACEOF
2121 This file contains any messages produced by compilers while
2122 running configure, to aid debugging if configure makes a mistake.
2123
2124 It was created by mech_eap $as_me 0.1, which was
2125 generated by GNU Autoconf 2.67.  Invocation command line was
2126
2127   $ $0 $@
2128
2129 _ACEOF
2130 exec 5>>config.log
2131 {
2132 cat <<_ASUNAME
2133 ## --------- ##
2134 ## Platform. ##
2135 ## --------- ##
2136
2137 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2138 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2139 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2140 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2141 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2142
2143 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2144 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2145
2146 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2147 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2148 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2149 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2150 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2151 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2152 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2153
2154 _ASUNAME
2155
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
2159   IFS=$as_save_IFS
2160   test -z "$as_dir" && as_dir=.
2161     $as_echo "PATH: $as_dir"
2162   done
2163 IFS=$as_save_IFS
2164
2165 } >&5
2166
2167 cat >&5 <<_ACEOF
2168
2169
2170 ## ----------- ##
2171 ## Core tests. ##
2172 ## ----------- ##
2173
2174 _ACEOF
2175
2176
2177 # Keep a trace of the command line.
2178 # Strip out --no-create and --no-recursion so they do not pile up.
2179 # Strip out --silent because we don't want to record it for future runs.
2180 # Also quote any args containing shell meta-characters.
2181 # Make two passes to allow for proper duplicate-argument suppression.
2182 ac_configure_args=
2183 ac_configure_args0=
2184 ac_configure_args1=
2185 ac_must_keep_next=false
2186 for ac_pass in 1 2
2187 do
2188   for ac_arg
2189   do
2190     case $ac_arg in
2191     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2192     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2193     | -silent | --silent | --silen | --sile | --sil)
2194       continue ;;
2195     *\'*)
2196       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2197     esac
2198     case $ac_pass in
2199     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2200     2)
2201       as_fn_append ac_configure_args1 " '$ac_arg'"
2202       if test $ac_must_keep_next = true; then
2203         ac_must_keep_next=false # Got value, back to normal.
2204       else
2205         case $ac_arg in
2206           *=* | --config-cache | -C | -disable-* | --disable-* \
2207           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2208           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2209           | -with-* | --with-* | -without-* | --without-* | --x)
2210             case "$ac_configure_args0 " in
2211               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2212             esac
2213             ;;
2214           -* ) ac_must_keep_next=true ;;
2215         esac
2216       fi
2217       as_fn_append ac_configure_args " '$ac_arg'"
2218       ;;
2219     esac
2220   done
2221 done
2222 { ac_configure_args0=; unset ac_configure_args0;}
2223 { ac_configure_args1=; unset ac_configure_args1;}
2224
2225 # When interrupted or exit'd, cleanup temporary files, and complete
2226 # config.log.  We remove comments because anyway the quotes in there
2227 # would cause problems or look ugly.
2228 # WARNING: Use '\'' to represent an apostrophe within the trap.
2229 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2230 trap 'exit_status=$?
2231   # Save into config.log some information that might help in debugging.
2232   {
2233     echo
2234
2235     $as_echo "## ---------------- ##
2236 ## Cache variables. ##
2237 ## ---------------- ##"
2238     echo
2239     # The following way of writing the cache mishandles newlines in values,
2240 (
2241   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2242     eval ac_val=\$$ac_var
2243     case $ac_val in #(
2244     *${as_nl}*)
2245       case $ac_var in #(
2246       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2247 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2248       esac
2249       case $ac_var in #(
2250       _ | IFS | as_nl) ;; #(
2251       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2252       *) { eval $ac_var=; unset $ac_var;} ;;
2253       esac ;;
2254     esac
2255   done
2256   (set) 2>&1 |
2257     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2258     *${as_nl}ac_space=\ *)
2259       sed -n \
2260         "s/'\''/'\''\\\\'\'''\''/g;
2261           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2262       ;; #(
2263     *)
2264       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2265       ;;
2266     esac |
2267     sort
2268 )
2269     echo
2270
2271     $as_echo "## ----------------- ##
2272 ## Output variables. ##
2273 ## ----------------- ##"
2274     echo
2275     for ac_var in $ac_subst_vars
2276     do
2277       eval ac_val=\$$ac_var
2278       case $ac_val in
2279       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280       esac
2281       $as_echo "$ac_var='\''$ac_val'\''"
2282     done | sort
2283     echo
2284
2285     if test -n "$ac_subst_files"; then
2286       $as_echo "## ------------------- ##
2287 ## File substitutions. ##
2288 ## ------------------- ##"
2289       echo
2290       for ac_var in $ac_subst_files
2291       do
2292         eval ac_val=\$$ac_var
2293         case $ac_val in
2294         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2295         esac
2296         $as_echo "$ac_var='\''$ac_val'\''"
2297       done | sort
2298       echo
2299     fi
2300
2301     if test -s confdefs.h; then
2302       $as_echo "## ----------- ##
2303 ## confdefs.h. ##
2304 ## ----------- ##"
2305       echo
2306       cat confdefs.h
2307       echo
2308     fi
2309     test "$ac_signal" != 0 &&
2310       $as_echo "$as_me: caught signal $ac_signal"
2311     $as_echo "$as_me: exit $exit_status"
2312   } >&5
2313   rm -f core *.core core.conftest.* &&
2314     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2315     exit $exit_status
2316 ' 0
2317 for ac_signal in 1 2 13 15; do
2318   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2319 done
2320 ac_signal=0
2321
2322 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2323 rm -f -r conftest* confdefs.h
2324
2325 $as_echo "/* confdefs.h */" > confdefs.h
2326
2327 # Predefined preprocessor variables.
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_NAME "$PACKAGE_NAME"
2331 _ACEOF
2332
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2335 _ACEOF
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2339 _ACEOF
2340
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_STRING "$PACKAGE_STRING"
2343 _ACEOF
2344
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2347 _ACEOF
2348
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_URL "$PACKAGE_URL"
2351 _ACEOF
2352
2353
2354 # Let the site file select an alternate cache file if it wants to.
2355 # Prefer an explicitly selected file to automatically selected ones.
2356 ac_site_file1=NONE
2357 ac_site_file2=NONE
2358 if test -n "$CONFIG_SITE"; then
2359   # We do not want a PATH search for config.site.
2360   case $CONFIG_SITE in #((
2361     -*)  ac_site_file1=./$CONFIG_SITE;;
2362     */*) ac_site_file1=$CONFIG_SITE;;
2363     *)   ac_site_file1=./$CONFIG_SITE;;
2364   esac
2365 elif test "x$prefix" != xNONE; then
2366   ac_site_file1=$prefix/share/config.site
2367   ac_site_file2=$prefix/etc/config.site
2368 else
2369   ac_site_file1=$ac_default_prefix/share/config.site
2370   ac_site_file2=$ac_default_prefix/etc/config.site
2371 fi
2372 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2373 do
2374   test "x$ac_site_file" = xNONE && continue
2375   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2376     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2377 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2378     sed 's/^/| /' "$ac_site_file" >&5
2379     . "$ac_site_file" \
2380       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2382 as_fn_error $? "failed to load site script $ac_site_file
2383 See \`config.log' for more details" "$LINENO" 5 ; }
2384   fi
2385 done
2386
2387 if test -r "$cache_file"; then
2388   # Some versions of bash will fail to source /dev/null (special files
2389   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2390   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2391     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2392 $as_echo "$as_me: loading cache $cache_file" >&6;}
2393     case $cache_file in
2394       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2395       *)                      . "./$cache_file";;
2396     esac
2397   fi
2398 else
2399   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2400 $as_echo "$as_me: creating cache $cache_file" >&6;}
2401   >$cache_file
2402 fi
2403
2404 # Check that the precious variables saved in the cache have kept the same
2405 # value.
2406 ac_cache_corrupted=false
2407 for ac_var in $ac_precious_vars; do
2408   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2409   eval ac_new_set=\$ac_env_${ac_var}_set
2410   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2411   eval ac_new_val=\$ac_env_${ac_var}_value
2412   case $ac_old_set,$ac_new_set in
2413     set,)
2414       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2415 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2416       ac_cache_corrupted=: ;;
2417     ,set)
2418       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2419 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2420       ac_cache_corrupted=: ;;
2421     ,);;
2422     *)
2423       if test "x$ac_old_val" != "x$ac_new_val"; then
2424         # differences in whitespace do not lead to failure.
2425         ac_old_val_w=`echo x $ac_old_val`
2426         ac_new_val_w=`echo x $ac_new_val`
2427         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2428           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2429 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2430           ac_cache_corrupted=:
2431         else
2432           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2433 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2434           eval $ac_var=\$ac_old_val
2435         fi
2436         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2437 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2438         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2439 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2440       fi;;
2441   esac
2442   # Pass precious variables to config.status.
2443   if test "$ac_new_set" = set; then
2444     case $ac_new_val in
2445     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2446     *) ac_arg=$ac_var=$ac_new_val ;;
2447     esac
2448     case " $ac_configure_args " in
2449       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2450       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2451     esac
2452   fi
2453 done
2454 if $ac_cache_corrupted; then
2455   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2457   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2458 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2459   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2460 fi
2461 ## -------------------- ##
2462 ## Main body of script. ##
2463 ## -------------------- ##
2464
2465 ac_ext=c
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470
2471
2472 am__api_version='1.11'
2473
2474 ac_aux_dir=
2475 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2476   if test -f "$ac_dir/install-sh"; then
2477     ac_aux_dir=$ac_dir
2478     ac_install_sh="$ac_aux_dir/install-sh -c"
2479     break
2480   elif test -f "$ac_dir/install.sh"; then
2481     ac_aux_dir=$ac_dir
2482     ac_install_sh="$ac_aux_dir/install.sh -c"
2483     break
2484   elif test -f "$ac_dir/shtool"; then
2485     ac_aux_dir=$ac_dir
2486     ac_install_sh="$ac_aux_dir/shtool install -c"
2487     break
2488   fi
2489 done
2490 if test -z "$ac_aux_dir"; then
2491   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2492 fi
2493
2494 # These three variables are undocumented and unsupported,
2495 # and are intended to be withdrawn in a future Autoconf release.
2496 # They can cause serious problems if a builder's source tree is in a directory
2497 # whose full name contains unusual characters.
2498 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2499 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2500 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2501
2502
2503 # Find a good install program.  We prefer a C program (faster),
2504 # so one script is as good as another.  But avoid the broken or
2505 # incompatible versions:
2506 # SysV /etc/install, /usr/sbin/install
2507 # SunOS /usr/etc/install
2508 # IRIX /sbin/install
2509 # AIX /bin/install
2510 # AmigaOS /C/install, which installs bootblocks on floppy discs
2511 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2512 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2513 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2514 # OS/2's system install, which has a completely different semantic
2515 # ./install, which can be erroneously created by make from ./install.sh.
2516 # Reject install programs that cannot install multiple files.
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2518 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2519 if test -z "$INSTALL"; then
2520 if test "${ac_cv_path_install+set}" = set; then :
2521   $as_echo_n "(cached) " >&6
2522 else
2523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526   IFS=$as_save_IFS
2527   test -z "$as_dir" && as_dir=.
2528     # Account for people who put trailing slashes in PATH elements.
2529 case $as_dir/ in #((
2530   ./ | .// | /[cC]/* | \
2531   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2532   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2533   /usr/ucb/* ) ;;
2534   *)
2535     # OSF1 and SCO ODT 3.0 have their own names for install.
2536     # Don't use installbsd from OSF since it installs stuff as root
2537     # by default.
2538     for ac_prog in ginstall scoinst install; do
2539       for ac_exec_ext in '' $ac_executable_extensions; do
2540         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2541           if test $ac_prog = install &&
2542             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543             # AIX install.  It has an incompatible calling convention.
2544             :
2545           elif test $ac_prog = install &&
2546             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2547             # program-specific install script used by HP pwplus--don't use.
2548             :
2549           else
2550             rm -rf conftest.one conftest.two conftest.dir
2551             echo one > conftest.one
2552             echo two > conftest.two
2553             mkdir conftest.dir
2554             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2555               test -s conftest.one && test -s conftest.two &&
2556               test -s conftest.dir/conftest.one &&
2557               test -s conftest.dir/conftest.two
2558             then
2559               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2560               break 3
2561             fi
2562           fi
2563         fi
2564       done
2565     done
2566     ;;
2567 esac
2568
2569   done
2570 IFS=$as_save_IFS
2571
2572 rm -rf conftest.one conftest.two conftest.dir
2573
2574 fi
2575   if test "${ac_cv_path_install+set}" = set; then
2576     INSTALL=$ac_cv_path_install
2577   else
2578     # As a last resort, use the slow shell script.  Don't cache a
2579     # value for INSTALL within a source directory, because that will
2580     # break other packages using the cache if that directory is
2581     # removed, or if the value is a relative name.
2582     INSTALL=$ac_install_sh
2583   fi
2584 fi
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2586 $as_echo "$INSTALL" >&6; }
2587
2588 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2589 # It thinks the first close brace ends the variable substitution.
2590 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2591
2592 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2593
2594 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2595
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2597 $as_echo_n "checking whether build environment is sane... " >&6; }
2598 # Just in case
2599 sleep 1
2600 echo timestamp > conftest.file
2601 # Reject unsafe characters in $srcdir or the absolute working directory
2602 # name.  Accept space and tab only in the latter.
2603 am_lf='
2604 '
2605 case `pwd` in
2606   *[\\\"\#\$\&\'\`$am_lf]*)
2607     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2608 esac
2609 case $srcdir in
2610   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2611     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2612 esac
2613
2614 # Do `set' in a subshell so we don't clobber the current shell's
2615 # arguments.  Must try -L first in case configure is actually a
2616 # symlink; some systems play weird games with the mod time of symlinks
2617 # (eg FreeBSD returns the mod time of the symlink's containing
2618 # directory).
2619 if (
2620    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2621    if test "$*" = "X"; then
2622       # -L didn't work.
2623       set X `ls -t "$srcdir/configure" conftest.file`
2624    fi
2625    rm -f conftest.file
2626    if test "$*" != "X $srcdir/configure conftest.file" \
2627       && test "$*" != "X conftest.file $srcdir/configure"; then
2628
2629       # If neither matched, then we have a broken ls.  This can happen
2630       # if, for instance, CONFIG_SHELL is bash and it inherits a
2631       # broken ls alias from the environment.  This has actually
2632       # happened.  Such a system could not be considered "sane".
2633       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2634 alias in your environment" "$LINENO" 5
2635    fi
2636
2637    test "$2" = conftest.file
2638    )
2639 then
2640    # Ok.
2641    :
2642 else
2643    as_fn_error $? "newly created file is older than distributed files!
2644 Check your system clock" "$LINENO" 5
2645 fi
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2647 $as_echo "yes" >&6; }
2648 test "$program_prefix" != NONE &&
2649   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2650 # Use a double $ so make ignores it.
2651 test "$program_suffix" != NONE &&
2652   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2653 # Double any \ or $.
2654 # By default was `s,x,x', remove it if useless.
2655 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2656 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2657
2658 # expand $ac_aux_dir to an absolute path
2659 am_aux_dir=`cd $ac_aux_dir && pwd`
2660
2661 if test x"${MISSING+set}" != xset; then
2662   case $am_aux_dir in
2663   *\ * | *\     *)
2664     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2665   *)
2666     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2667   esac
2668 fi
2669 # Use eval to expand $SHELL
2670 if eval "$MISSING --run true"; then
2671   am_missing_run="$MISSING --run "
2672 else
2673   am_missing_run=
2674   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2675 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2676 fi
2677
2678 if test x"${install_sh}" != xset; then
2679   case $am_aux_dir in
2680   *\ * | *\     *)
2681     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2682   *)
2683     install_sh="\${SHELL} $am_aux_dir/install-sh"
2684   esac
2685 fi
2686
2687 # Installed binaries are usually stripped using `strip' when the user
2688 # run `make install-strip'.  However `strip' might not be the right
2689 # tool to use in cross-compilation environments, therefore Automake
2690 # will honor the `STRIP' environment variable to overrule this program.
2691 if test "$cross_compiling" != no; then
2692   if test -n "$ac_tool_prefix"; then
2693   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2694 set dummy ${ac_tool_prefix}strip; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if test "${ac_cv_prog_STRIP+set}" = set; then :
2698   $as_echo_n "(cached) " >&6
2699 else
2700   if test -n "$STRIP"; then
2701   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706   IFS=$as_save_IFS
2707   test -z "$as_dir" && as_dir=.
2708     for ac_exec_ext in '' $ac_executable_extensions; do
2709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712     break 2
2713   fi
2714 done
2715   done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 STRIP=$ac_cv_prog_STRIP
2721 if test -n "$STRIP"; then
2722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2723 $as_echo "$STRIP" >&6; }
2724 else
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729
2730 fi
2731 if test -z "$ac_cv_prog_STRIP"; then
2732   ac_ct_STRIP=$STRIP
2733   # Extract the first word of "strip", so it can be a program name with args.
2734 set dummy strip; ac_word=$2
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2738   $as_echo_n "(cached) " >&6
2739 else
2740   if test -n "$ac_ct_STRIP"; then
2741   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746   IFS=$as_save_IFS
2747   test -z "$as_dir" && as_dir=.
2748     for ac_exec_ext in '' $ac_executable_extensions; do
2749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750     ac_cv_prog_ac_ct_STRIP="strip"
2751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752     break 2
2753   fi
2754 done
2755   done
2756 IFS=$as_save_IFS
2757
2758 fi
2759 fi
2760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2761 if test -n "$ac_ct_STRIP"; then
2762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2763 $as_echo "$ac_ct_STRIP" >&6; }
2764 else
2765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2767 fi
2768
2769   if test "x$ac_ct_STRIP" = x; then
2770     STRIP=":"
2771   else
2772     case $cross_compiling:$ac_tool_warned in
2773 yes:)
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2776 ac_tool_warned=yes ;;
2777 esac
2778     STRIP=$ac_ct_STRIP
2779   fi
2780 else
2781   STRIP="$ac_cv_prog_STRIP"
2782 fi
2783
2784 fi
2785 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2786
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2788 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2789 if test -z "$MKDIR_P"; then
2790   if test "${ac_cv_path_mkdir+set}" = set; then :
2791   $as_echo_n "(cached) " >&6
2792 else
2793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2795 do
2796   IFS=$as_save_IFS
2797   test -z "$as_dir" && as_dir=.
2798     for ac_prog in mkdir gmkdir; do
2799          for ac_exec_ext in '' $ac_executable_extensions; do
2800            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2801            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2802              'mkdir (GNU coreutils) '* | \
2803              'mkdir (coreutils) '* | \
2804              'mkdir (fileutils) '4.1*)
2805                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2806                break 3;;
2807            esac
2808          done
2809        done
2810   done
2811 IFS=$as_save_IFS
2812
2813 fi
2814
2815   test -d ./--version && rmdir ./--version
2816   if test "${ac_cv_path_mkdir+set}" = set; then
2817     MKDIR_P="$ac_cv_path_mkdir -p"
2818   else
2819     # As a last resort, use the slow shell script.  Don't cache a
2820     # value for MKDIR_P within a source directory, because that will
2821     # break other packages using the cache if that directory is
2822     # removed, or if the value is a relative name.
2823     MKDIR_P="$ac_install_sh -d"
2824   fi
2825 fi
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2827 $as_echo "$MKDIR_P" >&6; }
2828
2829 mkdir_p="$MKDIR_P"
2830 case $mkdir_p in
2831   [\\/$]* | ?:[\\/]*) ;;
2832   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2833 esac
2834
2835 for ac_prog in gawk mawk nawk awk
2836 do
2837   # Extract the first word of "$ac_prog", so it can be a program name with args.
2838 set dummy $ac_prog; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if test "${ac_cv_prog_AWK+set}" = set; then :
2842   $as_echo_n "(cached) " >&6
2843 else
2844   if test -n "$AWK"; then
2845   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850   IFS=$as_save_IFS
2851   test -z "$as_dir" && as_dir=.
2852     for ac_exec_ext in '' $ac_executable_extensions; do
2853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854     ac_cv_prog_AWK="$ac_prog"
2855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856     break 2
2857   fi
2858 done
2859   done
2860 IFS=$as_save_IFS
2861
2862 fi
2863 fi
2864 AWK=$ac_cv_prog_AWK
2865 if test -n "$AWK"; then
2866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2867 $as_echo "$AWK" >&6; }
2868 else
2869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2871 fi
2872
2873
2874   test -n "$AWK" && break
2875 done
2876
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2878 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2879 set x ${MAKE-make}
2880 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2881 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2882   $as_echo_n "(cached) " >&6
2883 else
2884   cat >conftest.make <<\_ACEOF
2885 SHELL = /bin/sh
2886 all:
2887         @echo '@@@%%%=$(MAKE)=@@@%%%'
2888 _ACEOF
2889 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2890 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2891   *@@@%%%=?*=@@@%%%*)
2892     eval ac_cv_prog_make_${ac_make}_set=yes;;
2893   *)
2894     eval ac_cv_prog_make_${ac_make}_set=no;;
2895 esac
2896 rm -f conftest.make
2897 fi
2898 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2900 $as_echo "yes" >&6; }
2901   SET_MAKE=
2902 else
2903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2905   SET_MAKE="MAKE=${MAKE-make}"
2906 fi
2907
2908 rm -rf .tst 2>/dev/null
2909 mkdir .tst 2>/dev/null
2910 if test -d .tst; then
2911   am__leading_dot=.
2912 else
2913   am__leading_dot=_
2914 fi
2915 rmdir .tst 2>/dev/null
2916
2917 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2918   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2919   # is not polluted with repeated "-I."
2920   am__isrc=' -I$(srcdir)'
2921   # test to see if srcdir already configured
2922   if test -f $srcdir/config.status; then
2923     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2924   fi
2925 fi
2926
2927 # test whether we have cygpath
2928 if test -z "$CYGPATH_W"; then
2929   if (cygpath --version) >/dev/null 2>/dev/null; then
2930     CYGPATH_W='cygpath -w'
2931   else
2932     CYGPATH_W=echo
2933   fi
2934 fi
2935
2936
2937 # Define the identity of the package.
2938  PACKAGE='mech_eap'
2939  VERSION='0.1'
2940
2941
2942 cat >>confdefs.h <<_ACEOF
2943 #define PACKAGE "$PACKAGE"
2944 _ACEOF
2945
2946
2947 cat >>confdefs.h <<_ACEOF
2948 #define VERSION "$VERSION"
2949 _ACEOF
2950
2951 # Some tools Automake needs.
2952
2953 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2954
2955
2956 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2957
2958
2959 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2960
2961
2962 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2963
2964
2965 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2966
2967 # We need awk for the "check" target.  The system "awk" is bad on
2968 # some platforms.
2969 # Always define AMTAR for backward compatibility.
2970
2971 AMTAR=${AMTAR-"${am_missing_run}tar"}
2972
2973 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2974
2975
2976
2977
2978
2979
2980 case `pwd` in
2981   *\ * | *\     *)
2982     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2983 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2984 esac
2985
2986
2987
2988 macro_version='2.2.6b'
2989 macro_revision='1.3017'
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003 ltmain="$ac_aux_dir/ltmain.sh"
3004
3005 # Make sure we can run config.sub.
3006 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3007   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3008
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3010 $as_echo_n "checking build system type... " >&6; }
3011 if test "${ac_cv_build+set}" = set; then :
3012   $as_echo_n "(cached) " >&6
3013 else
3014   ac_build_alias=$build_alias
3015 test "x$ac_build_alias" = x &&
3016   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3017 test "x$ac_build_alias" = x &&
3018   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3019 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3020   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3021
3022 fi
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3024 $as_echo "$ac_cv_build" >&6; }
3025 case $ac_cv_build in
3026 *-*-*) ;;
3027 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3028 esac
3029 build=$ac_cv_build
3030 ac_save_IFS=$IFS; IFS='-'
3031 set x $ac_cv_build
3032 shift
3033 build_cpu=$1
3034 build_vendor=$2
3035 shift; shift
3036 # Remember, the first character of IFS is used to create $*,
3037 # except with old shells:
3038 build_os=$*
3039 IFS=$ac_save_IFS
3040 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3041
3042
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3044 $as_echo_n "checking host system type... " >&6; }
3045 if test "${ac_cv_host+set}" = set; then :
3046   $as_echo_n "(cached) " >&6
3047 else
3048   if test "x$host_alias" = x; then
3049   ac_cv_host=$ac_cv_build
3050 else
3051   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3052     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3053 fi
3054
3055 fi
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3057 $as_echo "$ac_cv_host" >&6; }
3058 case $ac_cv_host in
3059 *-*-*) ;;
3060 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3061 esac
3062 host=$ac_cv_host
3063 ac_save_IFS=$IFS; IFS='-'
3064 set x $ac_cv_host
3065 shift
3066 host_cpu=$1
3067 host_vendor=$2
3068 shift; shift
3069 # Remember, the first character of IFS is used to create $*,
3070 # except with old shells:
3071 host_os=$*
3072 IFS=$ac_save_IFS
3073 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3074
3075
3076 DEPDIR="${am__leading_dot}deps"
3077
3078 ac_config_commands="$ac_config_commands depfiles"
3079
3080
3081 am_make=${MAKE-make}
3082 cat > confinc << 'END'
3083 am__doit:
3084         @echo this is the am__doit target
3085 .PHONY: am__doit
3086 END
3087 # If we don't find an include directive, just comment out the code.
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3089 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3090 am__include="#"
3091 am__quote=
3092 _am_result=none
3093 # First try GNU make style include.
3094 echo "include confinc" > confmf
3095 # Ignore all kinds of additional output from `make'.
3096 case `$am_make -s -f confmf 2> /dev/null` in #(
3097 *the\ am__doit\ target*)
3098   am__include=include
3099   am__quote=
3100   _am_result=GNU
3101   ;;
3102 esac
3103 # Now try BSD make style include.
3104 if test "$am__include" = "#"; then
3105    echo '.include "confinc"' > confmf
3106    case `$am_make -s -f confmf 2> /dev/null` in #(
3107    *the\ am__doit\ target*)
3108      am__include=.include
3109      am__quote="\""
3110      _am_result=BSD
3111      ;;
3112    esac
3113 fi
3114
3115
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3117 $as_echo "$_am_result" >&6; }
3118 rm -f confinc confmf
3119
3120 # Check whether --enable-dependency-tracking was given.
3121 if test "${enable_dependency_tracking+set}" = set; then :
3122   enableval=$enable_dependency_tracking;
3123 fi
3124
3125 if test "x$enable_dependency_tracking" != xno; then
3126   am_depcomp="$ac_aux_dir/depcomp"
3127   AMDEPBACKSLASH='\'
3128 fi
3129  if test "x$enable_dependency_tracking" != xno; then
3130   AMDEP_TRUE=
3131   AMDEP_FALSE='#'
3132 else
3133   AMDEP_TRUE='#'
3134   AMDEP_FALSE=
3135 fi
3136
3137
3138 ac_ext=c
3139 ac_cpp='$CPP $CPPFLAGS'
3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143 if test -n "$ac_tool_prefix"; then
3144   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3145 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if test "${ac_cv_prog_CC+set}" = set; then :
3149   $as_echo_n "(cached) " >&6
3150 else
3151   if test -n "$CC"; then
3152   ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157   IFS=$as_save_IFS
3158   test -z "$as_dir" && as_dir=.
3159     for ac_exec_ext in '' $ac_executable_extensions; do
3160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163     break 2
3164   fi
3165 done
3166   done
3167 IFS=$as_save_IFS
3168
3169 fi
3170 fi
3171 CC=$ac_cv_prog_CC
3172 if test -n "$CC"; then
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3174 $as_echo "$CC" >&6; }
3175 else
3176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3178 fi
3179
3180
3181 fi
3182 if test -z "$ac_cv_prog_CC"; then
3183   ac_ct_CC=$CC
3184   # Extract the first word of "gcc", so it can be a program name with args.
3185 set dummy gcc; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   if test -n "$ac_ct_CC"; then
3192   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197   IFS=$as_save_IFS
3198   test -z "$as_dir" && as_dir=.
3199     for ac_exec_ext in '' $ac_executable_extensions; do
3200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201     ac_cv_prog_ac_ct_CC="gcc"
3202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203     break 2
3204   fi
3205 done
3206   done
3207 IFS=$as_save_IFS
3208
3209 fi
3210 fi
3211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3212 if test -n "$ac_ct_CC"; then
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3214 $as_echo "$ac_ct_CC" >&6; }
3215 else
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220   if test "x$ac_ct_CC" = x; then
3221     CC=""
3222   else
3223     case $cross_compiling:$ac_tool_warned in
3224 yes:)
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227 ac_tool_warned=yes ;;
3228 esac
3229     CC=$ac_ct_CC
3230   fi
3231 else
3232   CC="$ac_cv_prog_CC"
3233 fi
3234
3235 if test -z "$CC"; then
3236           if test -n "$ac_tool_prefix"; then
3237     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3238 set dummy ${ac_tool_prefix}cc; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if test "${ac_cv_prog_CC+set}" = set; then :
3242   $as_echo_n "(cached) " >&6
3243 else
3244   if test -n "$CC"; then
3245   ac_cv_prog_CC="$CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250   IFS=$as_save_IFS
3251   test -z "$as_dir" && as_dir=.
3252     for ac_exec_ext in '' $ac_executable_extensions; do
3253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254     ac_cv_prog_CC="${ac_tool_prefix}cc"
3255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256     break 2
3257   fi
3258 done
3259   done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 CC=$ac_cv_prog_CC
3265 if test -n "$CC"; then
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3268 else
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274   fi
3275 fi
3276 if test -z "$CC"; then
3277   # Extract the first word of "cc", so it can be a program name with args.
3278 set dummy cc; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if test "${ac_cv_prog_CC+set}" = set; then :
3282   $as_echo_n "(cached) " >&6
3283 else
3284   if test -n "$CC"; then
3285   ac_cv_prog_CC="$CC" # Let the user override the test.
3286 else
3287   ac_prog_rejected=no
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293     for ac_exec_ext in '' $ac_executable_extensions; do
3294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3296        ac_prog_rejected=yes
3297        continue
3298      fi
3299     ac_cv_prog_CC="cc"
3300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301     break 2
3302   fi
3303 done
3304   done
3305 IFS=$as_save_IFS
3306
3307 if test $ac_prog_rejected = yes; then
3308   # We found a bogon in the path, so make sure we never use it.
3309   set dummy $ac_cv_prog_CC
3310   shift
3311   if test $# != 0; then
3312     # We chose a different compiler from the bogus one.
3313     # However, it has the same basename, so the bogon will be chosen
3314     # first if we set CC to just the basename; use the full file name.
3315     shift
3316     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3317   fi
3318 fi
3319 fi
3320 fi
3321 CC=$ac_cv_prog_CC
3322 if test -n "$CC"; then
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324 $as_echo "$CC" >&6; }
3325 else
3326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3328 fi
3329
3330
3331 fi
3332 if test -z "$CC"; then
3333   if test -n "$ac_tool_prefix"; then
3334   for ac_prog in cl.exe
3335   do
3336     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if test "${ac_cv_prog_CC+set}" = set; then :
3341   $as_echo_n "(cached) " >&6
3342 else
3343   if test -n "$CC"; then
3344   ac_cv_prog_CC="$CC" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351     for ac_exec_ext in '' $ac_executable_extensions; do
3352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3353     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358   done
3359 IFS=$as_save_IFS
3360
3361 fi
3362 fi
3363 CC=$ac_cv_prog_CC
3364 if test -n "$CC"; then
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3366 $as_echo "$CC" >&6; }
3367 else
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 fi
3371
3372
3373     test -n "$CC" && break
3374   done
3375 fi
3376 if test -z "$CC"; then
3377   ac_ct_CC=$CC
3378   for ac_prog in cl.exe
3379 do
3380   # Extract the first word of "$ac_prog", so it can be a program name with args.
3381 set dummy $ac_prog; ac_word=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3385   $as_echo_n "(cached) " >&6
3386 else
3387   if test -n "$ac_ct_CC"; then
3388   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395     for ac_exec_ext in '' $ac_executable_extensions; do
3396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397     ac_cv_prog_ac_ct_CC="$ac_prog"
3398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402   done
3403 IFS=$as_save_IFS
3404
3405 fi
3406 fi
3407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3408 if test -n "$ac_ct_CC"; then
3409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3410 $as_echo "$ac_ct_CC" >&6; }
3411 else
3412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3414 fi
3415
3416
3417   test -n "$ac_ct_CC" && break
3418 done
3419
3420   if test "x$ac_ct_CC" = x; then
3421     CC=""
3422   else
3423     case $cross_compiling:$ac_tool_warned in
3424 yes:)
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427 ac_tool_warned=yes ;;
3428 esac
3429     CC=$ac_ct_CC
3430   fi
3431 fi
3432
3433 fi
3434
3435
3436 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 as_fn_error $? "no acceptable C compiler found in \$PATH
3439 See \`config.log' for more details" "$LINENO" 5 ; }
3440
3441 # Provide some information about the compiler.
3442 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3443 set X $ac_compile
3444 ac_compiler=$2
3445 for ac_option in --version -v -V -qversion; do
3446   { { ac_try="$ac_compiler $ac_option >&5"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3454   ac_status=$?
3455   if test -s conftest.err; then
3456     sed '10a\
3457 ... rest of stderr output deleted ...
3458          10q' conftest.err >conftest.er1
3459     cat conftest.er1 >&5
3460   fi
3461   rm -f conftest.er1 conftest.err
3462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463   test $ac_status = 0; }
3464 done
3465
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h.  */
3468
3469 int
3470 main ()
3471 {
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 ac_clean_files_save=$ac_clean_files
3478 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3479 # Try to create an executable without -o first, disregard a.out.
3480 # It will help us diagnose broken compilers, and finding out an intuition
3481 # of exeext.
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3483 $as_echo_n "checking whether the C compiler works... " >&6; }
3484 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3485
3486 # The possible output files:
3487 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3488
3489 ac_rmfiles=
3490 for ac_file in $ac_files
3491 do
3492   case $ac_file in
3493     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3494     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3495   esac
3496 done
3497 rm -f $ac_rmfiles
3498
3499 if { { ac_try="$ac_link_default"
3500 case "(($ac_try" in
3501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502   *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506   (eval "$ac_link_default") 2>&5
3507   ac_status=$?
3508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509   test $ac_status = 0; }; then :
3510   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3511 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3512 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3513 # so that the user can short-circuit this test for compilers unknown to
3514 # Autoconf.
3515 for ac_file in $ac_files ''
3516 do
3517   test -f "$ac_file" || continue
3518   case $ac_file in
3519     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3520         ;;
3521     [ab].out )
3522         # We found the default executable, but exeext='' is most
3523         # certainly right.
3524         break;;
3525     *.* )
3526         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3527         then :; else
3528            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3529         fi
3530         # We set ac_cv_exeext here because the later test for it is not
3531         # safe: cross compilers may not add the suffix if given an `-o'
3532         # argument, so we may need to know it at that point already.
3533         # Even if this section looks crufty: it has the advantage of
3534         # actually working.
3535         break;;
3536     * )
3537         break;;
3538   esac
3539 done
3540 test "$ac_cv_exeext" = no && ac_cv_exeext=
3541
3542 else
3543   ac_file=''
3544 fi
3545 if test -z "$ac_file"; then :
3546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3548 $as_echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3550
3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 as_fn_error 77 "C compiler cannot create executables
3554 See \`config.log' for more details" "$LINENO" 5 ; }
3555 else
3556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3557 $as_echo "yes" >&6; }
3558 fi
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3560 $as_echo_n "checking for C compiler default output file name... " >&6; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3562 $as_echo "$ac_file" >&6; }
3563 ac_exeext=$ac_cv_exeext
3564
3565 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3566 ac_clean_files=$ac_clean_files_save
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3568 $as_echo_n "checking for suffix of executables... " >&6; }
3569 if { { ac_try="$ac_link"
3570 case "(($ac_try" in
3571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572   *) ac_try_echo=$ac_try;;
3573 esac
3574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575 $as_echo "$ac_try_echo"; } >&5
3576   (eval "$ac_link") 2>&5
3577   ac_status=$?
3578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579   test $ac_status = 0; }; then :
3580   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3581 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3582 # work properly (i.e., refer to `conftest.exe'), while it won't with
3583 # `rm'.
3584 for ac_file in conftest.exe conftest conftest.*; do
3585   test -f "$ac_file" || continue
3586   case $ac_file in
3587     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3588     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3589           break;;
3590     * ) break;;
3591   esac
3592 done
3593 else
3594   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3597 See \`config.log' for more details" "$LINENO" 5 ; }
3598 fi
3599 rm -f conftest conftest$ac_cv_exeext
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3601 $as_echo "$ac_cv_exeext" >&6; }
3602
3603 rm -f conftest.$ac_ext
3604 EXEEXT=$ac_cv_exeext
3605 ac_exeext=$EXEEXT
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h.  */
3608 #include <stdio.h>
3609 int
3610 main ()
3611 {
3612 FILE *f = fopen ("conftest.out", "w");
3613  return ferror (f) || fclose (f) != 0;
3614
3615   ;
3616   return 0;
3617 }
3618 _ACEOF
3619 ac_clean_files="$ac_clean_files conftest.out"
3620 # Check that the compiler produces executables we can run.  If not, either
3621 # the compiler is broken, or we cross compile.
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3623 $as_echo_n "checking whether we are cross compiling... " >&6; }
3624 if test "$cross_compiling" != yes; then
3625   { { ac_try="$ac_link"
3626 case "(($ac_try" in
3627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628   *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632   (eval "$ac_link") 2>&5
3633   ac_status=$?
3634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635   test $ac_status = 0; }
3636   if { ac_try='./conftest$ac_cv_exeext'
3637   { { case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 $as_echo "$ac_try_echo"; } >&5
3643   (eval "$ac_try") 2>&5
3644   ac_status=$?
3645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646   test $ac_status = 0; }; }; then
3647     cross_compiling=no
3648   else
3649     if test "$cross_compiling" = maybe; then
3650         cross_compiling=yes
3651     else
3652         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654 as_fn_error $? "cannot run C compiled programs.
3655 If you meant to cross compile, use \`--host'.
3656 See \`config.log' for more details" "$LINENO" 5 ; }
3657     fi
3658   fi
3659 fi
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3661 $as_echo "$cross_compiling" >&6; }
3662
3663 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3664 ac_clean_files=$ac_clean_files_save
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3666 $as_echo_n "checking for suffix of object files... " >&6; }
3667 if test "${ac_cv_objext+set}" = set; then :
3668   $as_echo_n "(cached) " >&6
3669 else
3670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h.  */
3672
3673 int
3674 main ()
3675 {
3676
3677   ;
3678   return 0;
3679 }
3680 _ACEOF
3681 rm -f conftest.o conftest.obj
3682 if { { ac_try="$ac_compile"
3683 case "(($ac_try" in
3684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685   *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689   (eval "$ac_compile") 2>&5
3690   ac_status=$?
3691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692   test $ac_status = 0; }; then :
3693   for ac_file in conftest.o conftest.obj conftest.*; do
3694   test -f "$ac_file" || continue;
3695   case $ac_file in
3696     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3697     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3698        break;;
3699   esac
3700 done
3701 else
3702   $as_echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 as_fn_error $? "cannot compute suffix of object files: cannot compile
3708 See \`config.log' for more details" "$LINENO" 5 ; }
3709 fi
3710 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3713 $as_echo "$ac_cv_objext" >&6; }
3714 OBJEXT=$ac_cv_objext
3715 ac_objext=$OBJEXT
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3717 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3718 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3719   $as_echo_n "(cached) " >&6
3720 else
3721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h.  */
3723
3724 int
3725 main ()
3726 {
3727 #ifndef __GNUC__
3728        choke me
3729 #endif
3730
3731   ;
3732   return 0;
3733 }
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736   ac_compiler_gnu=yes
3737 else
3738   ac_compiler_gnu=no
3739 fi
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3742
3743 fi
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3745 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3746 if test $ac_compiler_gnu = yes; then
3747   GCC=yes
3748 else
3749   GCC=
3750 fi
3751 ac_test_CFLAGS=${CFLAGS+set}
3752 ac_save_CFLAGS=$CFLAGS
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3754 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3755 if test "${ac_cv_prog_cc_g+set}" = set; then :
3756   $as_echo_n "(cached) " >&6
3757 else
3758   ac_save_c_werror_flag=$ac_c_werror_flag
3759    ac_c_werror_flag=yes
3760    ac_cv_prog_cc_g=no
3761    CFLAGS="-g"
3762    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h.  */
3764
3765 int
3766 main ()
3767 {
3768
3769   ;
3770   return 0;
3771 }
3772 _ACEOF
3773 if ac_fn_c_try_compile "$LINENO"; then :
3774   ac_cv_prog_cc_g=yes
3775 else
3776   CFLAGS=""
3777       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h.  */
3779
3780 int
3781 main ()
3782 {
3783
3784   ;
3785   return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789
3790 else
3791   ac_c_werror_flag=$ac_save_c_werror_flag
3792          CFLAGS="-g"
3793          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h.  */
3795
3796 int
3797 main ()
3798 {
3799
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 if ac_fn_c_try_compile "$LINENO"; then :
3805   ac_cv_prog_cc_g=yes
3806 fi
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 fi
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 fi
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812    ac_c_werror_flag=$ac_save_c_werror_flag
3813 fi
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3815 $as_echo "$ac_cv_prog_cc_g" >&6; }
3816 if test "$ac_test_CFLAGS" = set; then
3817   CFLAGS=$ac_save_CFLAGS
3818 elif test $ac_cv_prog_cc_g = yes; then
3819   if test "$GCC" = yes; then
3820     CFLAGS="-g -O2"
3821   else
3822     CFLAGS="-g"
3823   fi
3824 else
3825   if test "$GCC" = yes; then
3826     CFLAGS="-O2"
3827   else
3828     CFLAGS=
3829   fi
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3832 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3833 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3834   $as_echo_n "(cached) " >&6
3835 else
3836   ac_cv_prog_cc_c89=no
3837 ac_save_CC=$CC
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h.  */
3840 #include <stdarg.h>
3841 #include <stdio.h>
3842 #include <sys/types.h>
3843 #include <sys/stat.h>
3844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3845 struct buf { int x; };
3846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3847 static char *e (p, i)
3848      char **p;
3849      int i;
3850 {
3851   return p[i];
3852 }
3853 static char *f (char * (*g) (char **, int), char **p, ...)
3854 {
3855   char *s;
3856   va_list v;
3857   va_start (v,p);
3858   s = g (p, va_arg (v,int));
3859   va_end (v);
3860   return s;
3861 }
3862
3863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3864    function prototypes and stuff, but not '\xHH' hex character constants.
3865    These don't provoke an error unfortunately, instead are silently treated
3866    as 'x'.  The following induces an error, until -std is added to get
3867    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3868    array size at least.  It's necessary to write '\x00'==0 to get something
3869    that's true only with -std.  */
3870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3871
3872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3873    inside strings and character constants.  */
3874 #define FOO(x) 'x'
3875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3876
3877 int test (int i, double x);
3878 struct s1 {int (*f) (int a);};
3879 struct s2 {int (*f) (double a);};
3880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3881 int argc;
3882 char **argv;
3883 int
3884 main ()
3885 {
3886 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3887   ;
3888   return 0;
3889 }
3890 _ACEOF
3891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3892         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3893 do
3894   CC="$ac_save_CC $ac_arg"
3895   if ac_fn_c_try_compile "$LINENO"; then :
3896   ac_cv_prog_cc_c89=$ac_arg
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext
3899   test "x$ac_cv_prog_cc_c89" != "xno" && break
3900 done
3901 rm -f conftest.$ac_ext
3902 CC=$ac_save_CC
3903
3904 fi
3905 # AC_CACHE_VAL
3906 case "x$ac_cv_prog_cc_c89" in
3907   x)
3908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3909 $as_echo "none needed" >&6; } ;;
3910   xno)
3911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3912 $as_echo "unsupported" >&6; } ;;
3913   *)
3914     CC="$CC $ac_cv_prog_cc_c89"
3915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3916 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3917 esac
3918 if test "x$ac_cv_prog_cc_c89" != xno; then :
3919
3920 fi
3921
3922 ac_ext=c
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927
3928 depcc="$CC"   am_compiler_list=
3929
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3931 $as_echo_n "checking dependency style of $depcc... " >&6; }
3932 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3933   $as_echo_n "(cached) " >&6
3934 else
3935   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3936   # We make a subdir and do the tests there.  Otherwise we can end up
3937   # making bogus files that we don't know about and never remove.  For
3938   # instance it was reported that on HP-UX the gcc test will end up
3939   # making a dummy file named `D' -- because `-MD' means `put the output
3940   # in D'.
3941   mkdir conftest.dir
3942   # Copy depcomp to subdir because otherwise we won't find it if we're
3943   # using a relative directory.
3944   cp "$am_depcomp" conftest.dir
3945   cd conftest.dir
3946   # We will build objects and dependencies in a subdirectory because
3947   # it helps to detect inapplicable dependency modes.  For instance
3948   # both Tru64's cc and ICC support -MD to output dependencies as a
3949   # side effect of compilation, but ICC will put the dependencies in
3950   # the current directory while Tru64 will put them in the object
3951   # directory.
3952   mkdir sub
3953
3954   am_cv_CC_dependencies_compiler_type=none
3955   if test "$am_compiler_list" = ""; then
3956      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3957   fi
3958   am__universal=false
3959   case " $depcc " in #(
3960      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3961      esac
3962
3963   for depmode in $am_compiler_list; do
3964     # Setup a source with many dependencies, because some compilers
3965     # like to wrap large dependency lists on column 80 (with \), and
3966     # we should not choose a depcomp mode which is confused by this.
3967     #
3968     # We need to recreate these files for each test, as the compiler may
3969     # overwrite some of them when testing with obscure command lines.
3970     # This happens at least with the AIX C compiler.
3971     : > sub/conftest.c
3972     for i in 1 2 3 4 5 6; do
3973       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3974       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3975       # Solaris 8's {/usr,}/bin/sh.
3976       touch sub/conftst$i.h
3977     done
3978     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3979
3980     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3981     # mode.  It turns out that the SunPro C++ compiler does not properly
3982     # handle `-M -o', and we need to detect this.  Also, some Intel
3983     # versions had trouble with output in subdirs
3984     am__obj=sub/conftest.${OBJEXT-o}
3985     am__minus_obj="-o $am__obj"
3986     case $depmode in
3987     gcc)
3988       # This depmode causes a compiler race in universal mode.
3989       test "$am__universal" = false || continue
3990       ;;
3991     nosideeffect)
3992       # after this tag, mechanisms are not by side-effect, so they'll
3993       # only be used when explicitly requested
3994       if test "x$enable_dependency_tracking" = xyes; then
3995         continue
3996       else
3997         break
3998       fi
3999       ;;
4000     msvisualcpp | msvcmsys)
4001       # This compiler won't grok `-c -o', but also, the minuso test has
4002       # not run yet.  These depmodes are late enough in the game, and
4003       # so weak that their functioning should not be impacted.
4004       am__obj=conftest.${OBJEXT-o}
4005       am__minus_obj=
4006       ;;
4007     none) break ;;
4008     esac
4009     if depmode=$depmode \
4010        source=sub/conftest.c object=$am__obj \
4011        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4012        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4013          >/dev/null 2>conftest.err &&
4014        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4015        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4016        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4017        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4018       # icc doesn't choke on unknown options, it will just issue warnings
4019       # or remarks (even with -Werror).  So we grep stderr for any message
4020       # that says an option was ignored or not supported.
4021       # When given -MP, icc 7.0 and 7.1 complain thusly:
4022       #   icc: Command line warning: ignoring option '-M'; no argument required
4023       # The diagnosis changed in icc 8.0:
4024       #   icc: Command line remark: option '-MP' not supported
4025       if (grep 'ignoring option' conftest.err ||
4026           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4027         am_cv_CC_dependencies_compiler_type=$depmode
4028         break
4029       fi
4030     fi
4031   done
4032
4033   cd ..
4034   rm -rf conftest.dir
4035 else
4036   am_cv_CC_dependencies_compiler_type=none
4037 fi
4038
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4041 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4042 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4043
4044  if
4045   test "x$enable_dependency_tracking" != xno \
4046   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4047   am__fastdepCC_TRUE=
4048   am__fastdepCC_FALSE='#'
4049 else
4050   am__fastdepCC_TRUE='#'
4051   am__fastdepCC_FALSE=
4052 fi
4053
4054
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4056 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4057 if test "${ac_cv_path_SED+set}" = set; then :
4058   $as_echo_n "(cached) " >&6
4059 else
4060             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4061      for ac_i in 1 2 3 4 5 6 7; do
4062        ac_script="$ac_script$as_nl$ac_script"
4063      done
4064      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4065      { ac_script=; unset ac_script;}
4066      if test -z "$SED"; then
4067   ac_path_SED_found=false
4068   # Loop through the user's path and test for each of PROGNAME-LIST
4069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4071 do
4072   IFS=$as_save_IFS
4073   test -z "$as_dir" && as_dir=.
4074     for ac_prog in sed gsed; do
4075     for ac_exec_ext in '' $ac_executable_extensions; do
4076       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4077       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4078 # Check for GNU ac_path_SED and select it if it is found.
4079   # Check for GNU $ac_path_SED
4080 case `"$ac_path_SED" --version 2>&1` in
4081 *GNU*)
4082   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4083 *)
4084   ac_count=0
4085   $as_echo_n 0123456789 >"conftest.in"
4086   while :
4087   do
4088     cat "conftest.in" "conftest.in" >"conftest.tmp"
4089     mv "conftest.tmp" "conftest.in"
4090     cp "conftest.in" "conftest.nl"
4091     $as_echo '' >> "conftest.nl"
4092     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4093     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4094     as_fn_arith $ac_count + 1 && ac_count=$as_val
4095     if test $ac_count -gt ${ac_path_SED_max-0}; then
4096       # Best one so far, save it but keep looking for a better one
4097       ac_cv_path_SED="$ac_path_SED"
4098       ac_path_SED_max=$ac_count
4099     fi
4100     # 10*(2^10) chars as input seems more than enough
4101     test $ac_count -gt 10 && break
4102   done
4103   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4104 esac
4105
4106       $ac_path_SED_found && break 3
4107     done
4108   done
4109   done
4110 IFS=$as_save_IFS
4111   if test -z "$ac_cv_path_SED"; then
4112     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4113   fi
4114 else
4115   ac_cv_path_SED=$SED
4116 fi
4117
4118 fi
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4120 $as_echo "$ac_cv_path_SED" >&6; }
4121  SED="$ac_cv_path_SED"
4122   rm -f conftest.sed
4123
4124 test -z "$SED" && SED=sed
4125 Xsed="$SED -e 1s/^X//"
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4138 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4139 if test "${ac_cv_path_GREP+set}" = set; then :
4140   $as_echo_n "(cached) " >&6
4141 else
4142   if test -z "$GREP"; then
4143   ac_path_GREP_found=false
4144   # Loop through the user's path and test for each of PROGNAME-LIST
4145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4147 do
4148   IFS=$as_save_IFS
4149   test -z "$as_dir" && as_dir=.
4150     for ac_prog in grep ggrep; do
4151     for ac_exec_ext in '' $ac_executable_extensions; do
4152       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4153       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4154 # Check for GNU ac_path_GREP and select it if it is found.
4155   # Check for GNU $ac_path_GREP
4156 case `"$ac_path_GREP" --version 2>&1` in
4157 *GNU*)
4158   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4159 *)
4160   ac_count=0
4161   $as_echo_n 0123456789 >"conftest.in"
4162   while :
4163   do
4164     cat "conftest.in" "conftest.in" >"conftest.tmp"
4165     mv "conftest.tmp" "conftest.in"
4166     cp "conftest.in" "conftest.nl"
4167     $as_echo 'GREP' >> "conftest.nl"
4168     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4169     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4170     as_fn_arith $ac_count + 1 && ac_count=$as_val
4171     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4172       # Best one so far, save it but keep looking for a better one
4173       ac_cv_path_GREP="$ac_path_GREP"
4174       ac_path_GREP_max=$ac_count
4175     fi
4176     # 10*(2^10) chars as input seems more than enough
4177     test $ac_count -gt 10 && break
4178   done
4179   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4180 esac
4181
4182       $ac_path_GREP_found && break 3
4183     done
4184   done
4185   done
4186 IFS=$as_save_IFS
4187   if test -z "$ac_cv_path_GREP"; then
4188     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4189   fi
4190 else
4191   ac_cv_path_GREP=$GREP
4192 fi
4193
4194 fi
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4196 $as_echo "$ac_cv_path_GREP" >&6; }
4197  GREP="$ac_cv_path_GREP"
4198
4199
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4201 $as_echo_n "checking for egrep... " >&6; }
4202 if test "${ac_cv_path_EGREP+set}" = set; then :
4203   $as_echo_n "(cached) " >&6
4204 else
4205   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4206    then ac_cv_path_EGREP="$GREP -E"
4207    else
4208      if test -z "$EGREP"; then
4209   ac_path_EGREP_found=false
4210   # Loop through the user's path and test for each of PROGNAME-LIST
4211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4213 do
4214   IFS=$as_save_IFS
4215   test -z "$as_dir" && as_dir=.
4216     for ac_prog in egrep; do
4217     for ac_exec_ext in '' $ac_executable_extensions; do
4218       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4219       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4220 # Check for GNU ac_path_EGREP and select it if it is found.
4221   # Check for GNU $ac_path_EGREP
4222 case `"$ac_path_EGREP" --version 2>&1` in
4223 *GNU*)
4224   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4225 *)
4226   ac_count=0
4227   $as_echo_n 0123456789 >"conftest.in"
4228   while :
4229   do
4230     cat "conftest.in" "conftest.in" >"conftest.tmp"
4231     mv "conftest.tmp" "conftest.in"
4232     cp "conftest.in" "conftest.nl"
4233     $as_echo 'EGREP' >> "conftest.nl"
4234     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4235     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4236     as_fn_arith $ac_count + 1 && ac_count=$as_val
4237     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4238       # Best one so far, save it but keep looking for a better one
4239       ac_cv_path_EGREP="$ac_path_EGREP"
4240       ac_path_EGREP_max=$ac_count
4241     fi
4242     # 10*(2^10) chars as input seems more than enough
4243     test $ac_count -gt 10 && break
4244   done
4245   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4246 esac
4247
4248       $ac_path_EGREP_found && break 3
4249     done
4250   done
4251   done
4252 IFS=$as_save_IFS
4253   if test -z "$ac_cv_path_EGREP"; then
4254     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4255   fi
4256 else
4257   ac_cv_path_EGREP=$EGREP
4258 fi
4259
4260    fi
4261 fi
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4263 $as_echo "$ac_cv_path_EGREP" >&6; }
4264  EGREP="$ac_cv_path_EGREP"
4265
4266
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4268 $as_echo_n "checking for fgrep... " >&6; }
4269 if test "${ac_cv_path_FGREP+set}" = set; then :
4270   $as_echo_n "(cached) " >&6
4271 else
4272   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4273    then ac_cv_path_FGREP="$GREP -F"
4274    else
4275      if test -z "$FGREP"; then
4276   ac_path_FGREP_found=false
4277   # Loop through the user's path and test for each of PROGNAME-LIST
4278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280 do
4281   IFS=$as_save_IFS
4282   test -z "$as_dir" && as_dir=.
4283     for ac_prog in fgrep; do
4284     for ac_exec_ext in '' $ac_executable_extensions; do
4285       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4286       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4287 # Check for GNU ac_path_FGREP and select it if it is found.
4288   # Check for GNU $ac_path_FGREP
4289 case `"$ac_path_FGREP" --version 2>&1` in
4290 *GNU*)
4291   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4292 *)
4293   ac_count=0
4294   $as_echo_n 0123456789 >"conftest.in"
4295   while :
4296   do
4297     cat "conftest.in" "conftest.in" >"conftest.tmp"
4298     mv "conftest.tmp" "conftest.in"
4299     cp "conftest.in" "conftest.nl"
4300     $as_echo 'FGREP' >> "conftest.nl"
4301     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303     as_fn_arith $ac_count + 1 && ac_count=$as_val
4304     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4305       # Best one so far, save it but keep looking for a better one
4306       ac_cv_path_FGREP="$ac_path_FGREP"
4307       ac_path_FGREP_max=$ac_count
4308     fi
4309     # 10*(2^10) chars as input seems more than enough
4310     test $ac_count -gt 10 && break
4311   done
4312   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313 esac
4314
4315       $ac_path_FGREP_found && break 3
4316     done
4317   done
4318   done
4319 IFS=$as_save_IFS
4320   if test -z "$ac_cv_path_FGREP"; then
4321     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4322   fi
4323 else
4324   ac_cv_path_FGREP=$FGREP
4325 fi
4326
4327    fi
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4330 $as_echo "$ac_cv_path_FGREP" >&6; }
4331  FGREP="$ac_cv_path_FGREP"
4332
4333
4334 test -z "$GREP" && GREP=grep
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354 # Check whether --with-gnu-ld was given.
4355 if test "${with_gnu_ld+set}" = set; then :
4356   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4357 else
4358   with_gnu_ld=no
4359 fi
4360
4361 ac_prog=ld
4362 if test "$GCC" = yes; then
4363   # Check if gcc -print-prog-name=ld gives a path.
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4365 $as_echo_n "checking for ld used by $CC... " >&6; }
4366   case $host in
4367   *-*-mingw*)
4368     # gcc leaves a trailing carriage return which upsets mingw
4369     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4370   *)
4371     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4372   esac
4373   case $ac_prog in
4374     # Accept absolute paths.
4375     [\\/]* | ?:[\\/]*)
4376       re_direlt='/[^/][^/]*/\.\./'
4377       # Canonicalize the pathname of ld
4378       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4379       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4380         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4381       done
4382       test -z "$LD" && LD="$ac_prog"
4383       ;;
4384   "")
4385     # If it fails, then pretend we aren't using GCC.
4386     ac_prog=ld
4387     ;;
4388   *)
4389     # If it is relative, then search for the first ld in PATH.
4390     with_gnu_ld=unknown
4391     ;;
4392   esac
4393 elif test "$with_gnu_ld" = yes; then
4394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4395 $as_echo_n "checking for GNU ld... " >&6; }
4396 else
4397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4398 $as_echo_n "checking for non-GNU ld... " >&6; }
4399 fi
4400 if test "${lt_cv_path_LD+set}" = set; then :
4401   $as_echo_n "(cached) " >&6
4402 else
4403   if test -z "$LD"; then
4404   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4405   for ac_dir in $PATH; do
4406     IFS="$lt_save_ifs"
4407     test -z "$ac_dir" && ac_dir=.
4408     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4409       lt_cv_path_LD="$ac_dir/$ac_prog"
4410       # Check to see if the program is GNU ld.  I'd rather use --version,
4411       # but apparently some variants of GNU ld only accept -v.
4412       # Break only if it was the GNU/non-GNU ld that we prefer.
4413       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4414       *GNU* | *'with BFD'*)
4415         test "$with_gnu_ld" != no && break
4416         ;;
4417       *)
4418         test "$with_gnu_ld" != yes && break
4419         ;;
4420       esac
4421     fi
4422   done
4423   IFS="$lt_save_ifs"
4424 else
4425   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4426 fi
4427 fi
4428
4429 LD="$lt_cv_path_LD"
4430 if test -n "$LD"; then
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4432 $as_echo "$LD" >&6; }
4433 else
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4439 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4440 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4441   $as_echo_n "(cached) " >&6
4442 else
4443   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4444 case `$LD -v 2>&1 </dev/null` in
4445 *GNU* | *'with BFD'*)
4446   lt_cv_prog_gnu_ld=yes
4447   ;;
4448 *)
4449   lt_cv_prog_gnu_ld=no
4450   ;;
4451 esac
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4454 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4455 with_gnu_ld=$lt_cv_prog_gnu_ld
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4466 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4467 if test "${lt_cv_path_NM+set}" = set; then :
4468   $as_echo_n "(cached) " >&6
4469 else
4470   if test -n "$NM"; then
4471   # Let the user override the test.
4472   lt_cv_path_NM="$NM"
4473 else
4474   lt_nm_to_check="${ac_tool_prefix}nm"
4475   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4476     lt_nm_to_check="$lt_nm_to_check nm"
4477   fi
4478   for lt_tmp_nm in $lt_nm_to_check; do
4479     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4480     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4481       IFS="$lt_save_ifs"
4482       test -z "$ac_dir" && ac_dir=.
4483       tmp_nm="$ac_dir/$lt_tmp_nm"
4484       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4485         # Check to see if the nm accepts a BSD-compat flag.
4486         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4487         #   nm: unknown option "B" ignored
4488         # Tru64's nm complains that /dev/null is an invalid object file
4489         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4490         */dev/null* | *'Invalid file or object type'*)
4491           lt_cv_path_NM="$tmp_nm -B"
4492           break
4493           ;;
4494         *)
4495           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4496           */dev/null*)
4497             lt_cv_path_NM="$tmp_nm -p"
4498             break
4499             ;;
4500           *)
4501             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4502             continue # so that we can try to find one that supports BSD flags
4503             ;;
4504           esac
4505           ;;
4506         esac
4507       fi
4508     done
4509     IFS="$lt_save_ifs"
4510   done
4511   : ${lt_cv_path_NM=no}
4512 fi
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4515 $as_echo "$lt_cv_path_NM" >&6; }
4516 if test "$lt_cv_path_NM" != "no"; then
4517   NM="$lt_cv_path_NM"
4518 else
4519   # Didn't find any BSD compatible name lister, look for dumpbin.
4520   if test -n "$ac_tool_prefix"; then
4521   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4522   do
4523     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4528   $as_echo_n "(cached) " >&6
4529 else
4530   if test -n "$DUMPBIN"; then
4531   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536   IFS=$as_save_IFS
4537   test -z "$as_dir" && as_dir=.
4538     for ac_exec_ext in '' $ac_executable_extensions; do
4539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542     break 2
4543   fi
4544 done
4545   done
4546 IFS=$as_save_IFS
4547
4548 fi
4549 fi
4550 DUMPBIN=$ac_cv_prog_DUMPBIN
4551 if test -n "$DUMPBIN"; then
4552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4553 $as_echo "$DUMPBIN" >&6; }
4554 else
4555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4557 fi
4558
4559
4560     test -n "$DUMPBIN" && break
4561   done
4562 fi
4563 if test -z "$DUMPBIN"; then
4564   ac_ct_DUMPBIN=$DUMPBIN
4565   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4566 do
4567   # Extract the first word of "$ac_prog", so it can be a program name with args.
4568 set dummy $ac_prog; ac_word=$2
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4572   $as_echo_n "(cached) " >&6
4573 else
4574   if test -n "$ac_ct_DUMPBIN"; then
4575   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4576 else
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582     for ac_exec_ext in '' $ac_executable_extensions; do
4583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586     break 2
4587   fi
4588 done
4589   done
4590 IFS=$as_save_IFS
4591
4592 fi
4593 fi
4594 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4595 if test -n "$ac_ct_DUMPBIN"; then
4596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4597 $as_echo "$ac_ct_DUMPBIN" >&6; }
4598 else
4599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4601 fi
4602
4603
4604   test -n "$ac_ct_DUMPBIN" && break
4605 done
4606
4607   if test "x$ac_ct_DUMPBIN" = x; then
4608     DUMPBIN=":"
4609   else
4610     case $cross_compiling:$ac_tool_warned in
4611 yes:)
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4614 ac_tool_warned=yes ;;
4615 esac
4616     DUMPBIN=$ac_ct_DUMPBIN
4617   fi
4618 fi
4619
4620
4621   if test "$DUMPBIN" != ":"; then
4622     NM="$DUMPBIN"
4623   fi
4624 fi
4625 test -z "$NM" && NM=nm
4626
4627
4628
4629
4630
4631
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4633 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4634 if test "${lt_cv_nm_interface+set}" = set; then :
4635   $as_echo_n "(cached) " >&6
4636 else
4637   lt_cv_nm_interface="BSD nm"
4638   echo "int some_variable = 0;" > conftest.$ac_ext
4639   (eval echo "\"\$as_me:4639: $ac_compile\"" >&5)
4640   (eval "$ac_compile" 2>conftest.err)
4641   cat conftest.err >&5
4642   (eval echo "\"\$as_me:4642: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4643   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4644   cat conftest.err >&5
4645   (eval echo "\"\$as_me:4645: output\"" >&5)
4646   cat conftest.out >&5
4647   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4648     lt_cv_nm_interface="MS dumpbin"
4649   fi
4650   rm -f conftest*
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4653 $as_echo "$lt_cv_nm_interface" >&6; }
4654
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4656 $as_echo_n "checking whether ln -s works... " >&6; }
4657 LN_S=$as_ln_s
4658 if test "$LN_S" = "ln -s"; then
4659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4660 $as_echo "yes" >&6; }
4661 else
4662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4663 $as_echo "no, using $LN_S" >&6; }
4664 fi
4665
4666 # find the maximum length of command line arguments
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4668 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4669 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4670   $as_echo_n "(cached) " >&6
4671 else
4672     i=0
4673   teststring="ABCD"
4674
4675   case $build_os in
4676   msdosdjgpp*)
4677     # On DJGPP, this test can blow up pretty badly due to problems in libc
4678     # (any single argument exceeding 2000 bytes causes a buffer overrun
4679     # during glob expansion).  Even if it were fixed, the result of this
4680     # check would be larger than it should be.
4681     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4682     ;;
4683
4684   gnu*)
4685     # Under GNU Hurd, this test is not required because there is
4686     # no limit to the length of command line arguments.
4687     # Libtool will interpret -1 as no limit whatsoever
4688     lt_cv_sys_max_cmd_len=-1;
4689     ;;
4690
4691   cygwin* | mingw* | cegcc*)
4692     # On Win9x/ME, this test blows up -- it succeeds, but takes
4693     # about 5 minutes as the teststring grows exponentially.
4694     # Worse, since 9x/ME are not pre-emptively multitasking,
4695     # you end up with a "frozen" computer, even though with patience
4696     # the test eventually succeeds (with a max line length of 256k).
4697     # Instead, let's just punt: use the minimum linelength reported by
4698     # all of the supported platforms: 8192 (on NT/2K/XP).
4699     lt_cv_sys_max_cmd_len=8192;
4700     ;;
4701
4702   amigaos*)
4703     # On AmigaOS with pdksh, this test takes hours, literally.
4704     # So we just punt and use a minimum line length of 8192.
4705     lt_cv_sys_max_cmd_len=8192;
4706     ;;
4707
4708   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4709     # This has been around since 386BSD, at least.  Likely further.
4710     if test -x /sbin/sysctl; then
4711       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4712     elif test -x /usr/sbin/sysctl; then
4713       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4714     else
4715       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4716     fi
4717     # And add a safety zone
4718     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4719     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4720     ;;
4721
4722   interix*)
4723     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4724     lt_cv_sys_max_cmd_len=196608
4725     ;;
4726
4727   osf*)
4728     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4729     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4730     # nice to cause kernel panics so lets avoid the loop below.
4731     # First set a reasonable default.
4732     lt_cv_sys_max_cmd_len=16384
4733     #
4734     if test -x /sbin/sysconfig; then
4735       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4736         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4737       esac
4738     fi
4739     ;;
4740   sco3.2v5*)
4741     lt_cv_sys_max_cmd_len=102400
4742     ;;
4743   sysv5* | sco5v6* | sysv4.2uw2*)
4744     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4745     if test -n "$kargmax"; then
4746       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4747     else
4748       lt_cv_sys_max_cmd_len=32768
4749     fi
4750     ;;
4751   *)
4752     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4753     if test -n "$lt_cv_sys_max_cmd_len"; then
4754       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4755       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4756     else
4757       # Make teststring a little bigger before we do anything with it.
4758       # a 1K string should be a reasonable start.
4759       for i in 1 2 3 4 5 6 7 8 ; do
4760         teststring=$teststring$teststring
4761       done
4762       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4763       # If test is not a shell built-in, we'll probably end up computing a
4764       # maximum length that is only half of the actual maximum length, but
4765       # we can't tell.
4766       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4767                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4768               test $i != 17 # 1/2 MB should be enough
4769       do
4770         i=`expr $i + 1`
4771         teststring=$teststring$teststring
4772       done
4773       # Only check the string length outside the loop.
4774       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4775       teststring=
4776       # Add a significant safety factor because C++ compilers can tack on
4777       # massive amounts of additional arguments before passing them to the
4778       # linker.  It appears as though 1/2 is a usable value.
4779       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4780     fi
4781     ;;
4782   esac
4783
4784 fi
4785
4786 if test -n $lt_cv_sys_max_cmd_len ; then
4787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4788 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4789 else
4790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4791 $as_echo "none" >&6; }
4792 fi
4793 max_cmd_len=$lt_cv_sys_max_cmd_len
4794
4795
4796
4797
4798
4799
4800 : ${CP="cp -f"}
4801 : ${MV="mv -f"}
4802 : ${RM="rm -f"}
4803
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4805 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4806 # Try some XSI features
4807 xsi_shell=no
4808 ( _lt_dummy="a/b/c"
4809   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4810       = c,a/b,, \
4811     && eval 'test $(( 1 + 1 )) -eq 2 \
4812     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4813   && xsi_shell=yes
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4815 $as_echo "$xsi_shell" >&6; }
4816
4817
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4819 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4820 lt_shell_append=no
4821 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4822     >/dev/null 2>&1 \
4823   && lt_shell_append=yes
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4825 $as_echo "$lt_shell_append" >&6; }
4826
4827
4828 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4829   lt_unset=unset
4830 else
4831   lt_unset=false
4832 fi
4833
4834
4835
4836
4837
4838 # test EBCDIC or ASCII
4839 case `echo X|tr X '\101'` in
4840  A) # ASCII based system
4841     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4842   lt_SP2NL='tr \040 \012'
4843   lt_NL2SP='tr \015\012 \040\040'
4844   ;;
4845  *) # EBCDIC based system
4846   lt_SP2NL='tr \100 \n'
4847   lt_NL2SP='tr \r\n \100\100'
4848   ;;
4849 esac
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4860 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4861 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4862   $as_echo_n "(cached) " >&6
4863 else
4864   lt_cv_ld_reload_flag='-r'
4865 fi
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4867 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4868 reload_flag=$lt_cv_ld_reload_flag
4869 case $reload_flag in
4870 "" | " "*) ;;
4871 *) reload_flag=" $reload_flag" ;;
4872 esac
4873 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4874 case $host_os in
4875   darwin*)
4876     if test "$GCC" = yes; then
4877       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4878     else
4879       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4880     fi
4881     ;;
4882 esac
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892 if test -n "$ac_tool_prefix"; then
4893   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4894 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4898   $as_echo_n "(cached) " >&6
4899 else
4900   if test -n "$OBJDUMP"; then
4901   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908     for ac_exec_ext in '' $ac_executable_extensions; do
4909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912     break 2
4913   fi
4914 done
4915   done
4916 IFS=$as_save_IFS
4917
4918 fi
4919 fi
4920 OBJDUMP=$ac_cv_prog_OBJDUMP
4921 if test -n "$OBJDUMP"; then
4922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4923 $as_echo "$OBJDUMP" >&6; }
4924 else
4925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4927 fi
4928
4929
4930 fi
4931 if test -z "$ac_cv_prog_OBJDUMP"; then
4932   ac_ct_OBJDUMP=$OBJDUMP
4933   # Extract the first word of "objdump", so it can be a program name with args.
4934 set dummy objdump; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4938   $as_echo_n "(cached) " >&6
4939 else
4940   if test -n "$ac_ct_OBJDUMP"; then
4941   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948     for ac_exec_ext in '' $ac_executable_extensions; do
4949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955   done
4956 IFS=$as_save_IFS
4957
4958 fi
4959 fi
4960 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4961 if test -n "$ac_ct_OBJDUMP"; then
4962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4963 $as_echo "$ac_ct_OBJDUMP" >&6; }
4964 else
4965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4967 fi
4968
4969   if test "x$ac_ct_OBJDUMP" = x; then
4970     OBJDUMP="false"
4971   else
4972     case $cross_compiling:$ac_tool_warned in
4973 yes:)
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4976 ac_tool_warned=yes ;;
4977 esac
4978     OBJDUMP=$ac_ct_OBJDUMP
4979   fi
4980 else
4981   OBJDUMP="$ac_cv_prog_OBJDUMP"
4982 fi
4983
4984 test -z "$OBJDUMP" && OBJDUMP=objdump
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4995 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4996 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4997   $as_echo_n "(cached) " >&6
4998 else
4999   lt_cv_file_magic_cmd='$MAGIC_CMD'
5000 lt_cv_file_magic_test_file=
5001 lt_cv_deplibs_check_method='unknown'
5002 # Need to set the preceding variable on all platforms that support
5003 # interlibrary dependencies.
5004 # 'none' -- dependencies not supported.
5005 # `unknown' -- same as none, but documents that we really don't know.
5006 # 'pass_all' -- all dependencies passed with no checks.
5007 # 'test_compile' -- check by making test program.
5008 # 'file_magic [[regex]]' -- check by looking for files in library path
5009 # which responds to the $file_magic_cmd with a given extended regex.
5010 # If you have `file' or equivalent on your system and you're not sure
5011 # whether `pass_all' will *always* work, you probably want this one.
5012
5013 case $host_os in
5014 aix[4-9]*)
5015   lt_cv_deplibs_check_method=pass_all
5016   ;;
5017
5018 beos*)
5019   lt_cv_deplibs_check_method=pass_all
5020   ;;
5021
5022 bsdi[45]*)
5023   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5024   lt_cv_file_magic_cmd='/usr/bin/file -L'
5025   lt_cv_file_magic_test_file=/shlib/libc.so
5026   ;;
5027
5028 cygwin*)
5029   # func_win32_libid is a shell function defined in ltmain.sh
5030   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5031   lt_cv_file_magic_cmd='func_win32_libid'
5032   ;;
5033
5034 mingw* | pw32*)
5035   # Base MSYS/MinGW do not provide the 'file' command needed by
5036   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5037   # unless we find 'file', for example because we are cross-compiling.
5038   if ( file / ) >/dev/null 2>&1; then
5039     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5040     lt_cv_file_magic_cmd='func_win32_libid'
5041   else
5042     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5043     lt_cv_file_magic_cmd='$OBJDUMP -f'
5044   fi
5045   ;;
5046
5047 cegcc)
5048   # use the weaker test based on 'objdump'. See mingw*.
5049   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5050   lt_cv_file_magic_cmd='$OBJDUMP -f'
5051   ;;
5052
5053 darwin* | rhapsody*)
5054   lt_cv_deplibs_check_method=pass_all
5055   ;;
5056
5057 freebsd* | dragonfly*)
5058   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5059     case $host_cpu in
5060     i*86 )
5061       # Not sure whether the presence of OpenBSD here was a mistake.
5062       # Let's accept both of them until this is cleared up.
5063       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5064       lt_cv_file_magic_cmd=/usr/bin/file
5065       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5066       ;;
5067     esac
5068   else
5069     lt_cv_deplibs_check_method=pass_all
5070   fi
5071   ;;
5072
5073 gnu*)
5074   lt_cv_deplibs_check_method=pass_all
5075   ;;
5076
5077 hpux10.20* | hpux11*)
5078   lt_cv_file_magic_cmd=/usr/bin/file
5079   case $host_cpu in
5080   ia64*)
5081     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5082     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5083     ;;
5084   hppa*64*)
5085     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]'
5086     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5087     ;;
5088   *)
5089     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5090     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5091     ;;
5092   esac
5093   ;;
5094
5095 interix[3-9]*)
5096   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5097   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5098   ;;
5099
5100 irix5* | irix6* | nonstopux*)
5101   case $LD in
5102   *-32|*"-32 ") libmagic=32-bit;;
5103   *-n32|*"-n32 ") libmagic=N32;;
5104   *-64|*"-64 ") libmagic=64-bit;;
5105   *) libmagic=never-match;;
5106   esac
5107   lt_cv_deplibs_check_method=pass_all
5108   ;;
5109
5110 # This must be Linux ELF.
5111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5112   lt_cv_deplibs_check_method=pass_all
5113   ;;
5114
5115 netbsd* | netbsdelf*-gnu)
5116   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5117     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5118   else
5119     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5120   fi
5121   ;;
5122
5123 newos6*)
5124   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5125   lt_cv_file_magic_cmd=/usr/bin/file
5126   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5127   ;;
5128
5129 *nto* | *qnx*)
5130   lt_cv_deplibs_check_method=pass_all
5131   ;;
5132
5133 openbsd*)
5134   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5135     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5136   else
5137     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5138   fi
5139   ;;
5140
5141 osf3* | osf4* | osf5*)
5142   lt_cv_deplibs_check_method=pass_all
5143   ;;
5144
5145 rdos*)
5146   lt_cv_deplibs_check_method=pass_all
5147   ;;
5148
5149 solaris*)
5150   lt_cv_deplibs_check_method=pass_all
5151   ;;
5152
5153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5154   lt_cv_deplibs_check_method=pass_all
5155   ;;
5156
5157 sysv4 | sysv4.3*)
5158   case $host_vendor in
5159   motorola)
5160     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]'
5161     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5162     ;;
5163   ncr)
5164     lt_cv_deplibs_check_method=pass_all
5165     ;;
5166   sequent)
5167     lt_cv_file_magic_cmd='/bin/file'
5168     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5169     ;;
5170   sni)
5171     lt_cv_file_magic_cmd='/bin/file'
5172     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5173     lt_cv_file_magic_test_file=/lib/libc.so
5174     ;;
5175   siemens)
5176     lt_cv_deplibs_check_method=pass_all
5177     ;;
5178   pc)
5179     lt_cv_deplibs_check_method=pass_all
5180     ;;
5181   esac
5182   ;;
5183
5184 tpf*)
5185   lt_cv_deplibs_check_method=pass_all
5186   ;;
5187 esac
5188
5189 fi
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5191 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5192 file_magic_cmd=$lt_cv_file_magic_cmd
5193 deplibs_check_method=$lt_cv_deplibs_check_method
5194 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207 if test -n "$ac_tool_prefix"; then
5208   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5209 set dummy ${ac_tool_prefix}ar; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if test "${ac_cv_prog_AR+set}" = set; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   if test -n "$AR"; then
5216   ac_cv_prog_AR="$AR" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223     for ac_exec_ext in '' $ac_executable_extensions; do
5224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225     ac_cv_prog_AR="${ac_tool_prefix}ar"
5226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227     break 2
5228   fi
5229 done
5230   done
5231 IFS=$as_save_IFS
5232
5233 fi
5234 fi
5235 AR=$ac_cv_prog_AR
5236 if test -n "$AR"; then
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5238 $as_echo "$AR" >&6; }
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243
5244
5245 fi
5246 if test -z "$ac_cv_prog_AR"; then
5247   ac_ct_AR=$AR
5248   # Extract the first word of "ar", so it can be a program name with args.
5249 set dummy ar; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5253   $as_echo_n "(cached) " >&6
5254 else
5255   if test -n "$ac_ct_AR"; then
5256   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5257 else
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261   IFS=$as_save_IFS
5262   test -z "$as_dir" && as_dir=.
5263     for ac_exec_ext in '' $ac_executable_extensions; do
5264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265     ac_cv_prog_ac_ct_AR="ar"
5266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267     break 2
5268   fi
5269 done
5270   done
5271 IFS=$as_save_IFS
5272
5273 fi
5274 fi
5275 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5276 if test -n "$ac_ct_AR"; then
5277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5278 $as_echo "$ac_ct_AR" >&6; }
5279 else
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5282 fi
5283
5284   if test "x$ac_ct_AR" = x; then
5285     AR="false"
5286   else
5287     case $cross_compiling:$ac_tool_warned in
5288 yes:)
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5291 ac_tool_warned=yes ;;
5292 esac
5293     AR=$ac_ct_AR
5294   fi
5295 else
5296   AR="$ac_cv_prog_AR"
5297 fi
5298
5299 test -z "$AR" && AR=ar
5300 test -z "$AR_FLAGS" && AR_FLAGS=cru
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312 if test -n "$ac_tool_prefix"; then
5313   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5314 set dummy ${ac_tool_prefix}strip; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if test "${ac_cv_prog_STRIP+set}" = set; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   if test -n "$STRIP"; then
5321   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326   IFS=$as_save_IFS
5327   test -z "$as_dir" && as_dir=.
5328     for ac_exec_ext in '' $ac_executable_extensions; do
5329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332     break 2
5333   fi
5334 done
5335   done
5336 IFS=$as_save_IFS
5337
5338 fi
5339 fi
5340 STRIP=$ac_cv_prog_STRIP
5341 if test -n "$STRIP"; then
5342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5343 $as_echo "$STRIP" >&6; }
5344 else
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5347 fi
5348
5349
5350 fi
5351 if test -z "$ac_cv_prog_STRIP"; then
5352   ac_ct_STRIP=$STRIP
5353   # Extract the first word of "strip", so it can be a program name with args.
5354 set dummy strip; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360   if test -n "$ac_ct_STRIP"; then
5361   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366   IFS=$as_save_IFS
5367   test -z "$as_dir" && as_dir=.
5368     for ac_exec_ext in '' $ac_executable_extensions; do
5369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370     ac_cv_prog_ac_ct_STRIP="strip"
5371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372     break 2
5373   fi
5374 done
5375   done
5376 IFS=$as_save_IFS
5377
5378 fi
5379 fi
5380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5381 if test -n "$ac_ct_STRIP"; then
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5383 $as_echo "$ac_ct_STRIP" >&6; }
5384 else
5385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5387 fi
5388
5389   if test "x$ac_ct_STRIP" = x; then
5390     STRIP=":"
5391   else
5392     case $cross_compiling:$ac_tool_warned in
5393 yes:)
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5396 ac_tool_warned=yes ;;
5397 esac
5398     STRIP=$ac_ct_STRIP
5399   fi
5400 else
5401   STRIP="$ac_cv_prog_STRIP"
5402 fi
5403
5404 test -z "$STRIP" && STRIP=:
5405
5406
5407
5408
5409
5410
5411 if test -n "$ac_tool_prefix"; then
5412   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5417   $as_echo_n "(cached) " >&6
5418 else
5419   if test -n "$RANLIB"; then
5420   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5421 else
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5424 do
5425   IFS=$as_save_IFS
5426   test -z "$as_dir" && as_dir=.
5427     for ac_exec_ext in '' $ac_executable_extensions; do
5428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5429     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431     break 2
5432   fi
5433 done
5434   done
5435 IFS=$as_save_IFS
5436
5437 fi
5438 fi
5439 RANLIB=$ac_cv_prog_RANLIB
5440 if test -n "$RANLIB"; then
5441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5442 $as_echo "$RANLIB" >&6; }
5443 else
5444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5446 fi
5447
5448
5449 fi
5450 if test -z "$ac_cv_prog_RANLIB"; then
5451   ac_ct_RANLIB=$RANLIB
5452   # Extract the first word of "ranlib", so it can be a program name with args.
5453 set dummy ranlib; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5457   $as_echo_n "(cached) " >&6
5458 else
5459   if test -n "$ac_ct_RANLIB"; then
5460   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465   IFS=$as_save_IFS
5466   test -z "$as_dir" && as_dir=.
5467     for ac_exec_ext in '' $ac_executable_extensions; do
5468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469     ac_cv_prog_ac_ct_RANLIB="ranlib"
5470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471     break 2
5472   fi
5473 done
5474   done
5475 IFS=$as_save_IFS
5476
5477 fi
5478 fi
5479 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5480 if test -n "$ac_ct_RANLIB"; then
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5482 $as_echo "$ac_ct_RANLIB" >&6; }
5483 else
5484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5486 fi
5487
5488   if test "x$ac_ct_RANLIB" = x; then
5489     RANLIB=":"
5490   else
5491     case $cross_compiling:$ac_tool_warned in
5492 yes:)
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5495 ac_tool_warned=yes ;;
5496 esac
5497     RANLIB=$ac_ct_RANLIB
5498   fi
5499 else
5500   RANLIB="$ac_cv_prog_RANLIB"
5501 fi
5502
5503 test -z "$RANLIB" && RANLIB=:
5504
5505
5506
5507
5508
5509
5510 # Determine commands to create old-style static archives.
5511 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5512 old_postinstall_cmds='chmod 644 $oldlib'
5513 old_postuninstall_cmds=
5514
5515 if test -n "$RANLIB"; then
5516   case $host_os in
5517   openbsd*)
5518     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5519     ;;
5520   *)
5521     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5522     ;;
5523   esac
5524   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5525 fi
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560 # If no C compiler was specified, use CC.
5561 LTCC=${LTCC-"$CC"}
5562
5563 # If no C compiler flags were specified, use CFLAGS.
5564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5565
5566 # Allow CC to be a program name with arguments.
5567 compiler=$CC
5568
5569
5570 # Check for command to grab the raw symbol name followed by C symbol from nm.
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5572 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5573 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5574   $as_echo_n "(cached) " >&6
5575 else
5576
5577 # These are sane defaults that work on at least a few old systems.
5578 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5579
5580 # Character class describing NM global symbol codes.
5581 symcode='[BCDEGRST]'
5582
5583 # Regexp to match symbols that can be accessed directly from C.
5584 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5585
5586 # Define system-specific variables.
5587 case $host_os in
5588 aix*)
5589   symcode='[BCDT]'
5590   ;;
5591 cygwin* | mingw* | pw32* | cegcc*)
5592   symcode='[ABCDGISTW]'
5593   ;;
5594 hpux*)
5595   if test "$host_cpu" = ia64; then
5596     symcode='[ABCDEGRST]'
5597   fi
5598   ;;
5599 irix* | nonstopux*)
5600   symcode='[BCDEGRST]'
5601   ;;
5602 osf*)
5603   symcode='[BCDEGQRST]'
5604   ;;
5605 solaris*)
5606   symcode='[BDRT]'
5607   ;;
5608 sco3.2v5*)
5609   symcode='[DT]'
5610   ;;
5611 sysv4.2uw2*)
5612   symcode='[DT]'
5613   ;;
5614 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5615   symcode='[ABDT]'
5616   ;;
5617 sysv4)
5618   symcode='[DFNSTU]'
5619   ;;
5620 esac
5621
5622 # If we're using GNU nm, then use its standard symbol codes.
5623 case `$NM -V 2>&1` in
5624 *GNU* | *'with BFD'*)
5625   symcode='[ABCDGIRSTW]' ;;
5626 esac
5627
5628 # Transform an extracted symbol line into a proper C declaration.
5629 # Some systems (esp. on ia64) link data and code symbols differently,
5630 # so use this general approach.
5631 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5632
5633 # Transform an extracted symbol line into symbol name and symbol address
5634 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5635 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'"
5636
5637 # Handle CRLF in mingw tool chain
5638 opt_cr=
5639 case $build_os in
5640 mingw*)
5641   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5642   ;;
5643 esac
5644
5645 # Try without a prefix underscore, then with it.
5646 for ac_symprfx in "" "_"; do
5647
5648   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5649   symxfrm="\\1 $ac_symprfx\\2 \\2"
5650
5651   # Write the raw and C identifiers.
5652   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5653     # Fake it for dumpbin and say T for any non-static function
5654     # and D for any global variable.
5655     # Also find C++ and __fastcall symbols from MSVC++,
5656     # which start with @ or ?.
5657     lt_cv_sys_global_symbol_pipe="$AWK '"\
5658 "     {last_section=section; section=\$ 3};"\
5659 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5660 "     \$ 0!~/External *\|/{next};"\
5661 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5662 "     {if(hide[section]) next};"\
5663 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5664 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5665 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5666 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5667 "     ' prfx=^$ac_symprfx"
5668   else
5669     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5670   fi
5671
5672   # Check to see that the pipe works correctly.
5673   pipe_works=no
5674
5675   rm -f conftest*
5676   cat > conftest.$ac_ext <<_LT_EOF
5677 #ifdef __cplusplus
5678 extern "C" {
5679 #endif
5680 char nm_test_var;
5681 void nm_test_func(void);
5682 void nm_test_func(void){}
5683 #ifdef __cplusplus
5684 }
5685 #endif
5686 int main(){nm_test_var='a';nm_test_func();return(0);}
5687 _LT_EOF
5688
5689   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5690   (eval $ac_compile) 2>&5
5691   ac_status=$?
5692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693   test $ac_status = 0; }; then
5694     # Now try to grab the symbols.
5695     nlist=conftest.nm
5696     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5697   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5698   ac_status=$?
5699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5700   test $ac_status = 0; } && test -s "$nlist"; then
5701       # Try sorting and uniquifying the output.
5702       if sort "$nlist" | uniq > "$nlist"T; then
5703         mv -f "$nlist"T "$nlist"
5704       else
5705         rm -f "$nlist"T
5706       fi
5707
5708       # Make sure that we snagged all the symbols we need.
5709       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5710         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5711           cat <<_LT_EOF > conftest.$ac_ext
5712 #ifdef __cplusplus
5713 extern "C" {
5714 #endif
5715
5716 _LT_EOF
5717           # Now generate the symbol file.
5718           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5719
5720           cat <<_LT_EOF >> conftest.$ac_ext
5721
5722 /* The mapping between symbol names and symbols.  */
5723 const struct {
5724   const char *name;
5725   void       *address;
5726 }
5727 lt__PROGRAM__LTX_preloaded_symbols[] =
5728 {
5729   { "@PROGRAM@", (void *) 0 },
5730 _LT_EOF
5731           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5732           cat <<\_LT_EOF >> conftest.$ac_ext
5733   {0, (void *) 0}
5734 };
5735
5736 /* This works around a problem in FreeBSD linker */
5737 #ifdef FREEBSD_WORKAROUND
5738 static const void *lt_preloaded_setup() {
5739   return lt__PROGRAM__LTX_preloaded_symbols;
5740 }
5741 #endif
5742
5743 #ifdef __cplusplus
5744 }
5745 #endif
5746 _LT_EOF
5747           # Now try linking the two files.
5748           mv conftest.$ac_objext conftstm.$ac_objext
5749           lt_save_LIBS="$LIBS"
5750           lt_save_CFLAGS="$CFLAGS"
5751           LIBS="conftstm.$ac_objext"
5752           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5753           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5754   (eval $ac_link) 2>&5
5755   ac_status=$?
5756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5757   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5758             pipe_works=yes
5759           fi
5760           LIBS="$lt_save_LIBS"
5761           CFLAGS="$lt_save_CFLAGS"
5762         else
5763           echo "cannot find nm_test_func in $nlist" >&5
5764         fi
5765       else
5766         echo "cannot find nm_test_var in $nlist" >&5
5767       fi
5768     else
5769       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5770     fi
5771   else
5772     echo "$progname: failed program was:" >&5
5773     cat conftest.$ac_ext >&5
5774   fi
5775   rm -rf conftest* conftst*
5776
5777   # Do not use the global_symbol_pipe unless it works.
5778   if test "$pipe_works" = yes; then
5779     break
5780   else
5781     lt_cv_sys_global_symbol_pipe=
5782   fi
5783 done
5784
5785 fi
5786
5787 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5788   lt_cv_sys_global_symbol_to_cdecl=
5789 fi
5790 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5792 $as_echo "failed" >&6; }
5793 else
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5795 $as_echo "ok" >&6; }
5796 fi
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820 # Check whether --enable-libtool-lock was given.
5821 if test "${enable_libtool_lock+set}" = set; then :
5822   enableval=$enable_libtool_lock;
5823 fi
5824
5825 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5826
5827 # Some flags need to be propagated to the compiler or linker for good
5828 # libtool support.
5829 case $host in
5830 ia64-*-hpux*)
5831   # Find out which ABI we are using.
5832   echo 'int i;' > conftest.$ac_ext
5833   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5834   (eval $ac_compile) 2>&5
5835   ac_status=$?
5836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5837   test $ac_status = 0; }; then
5838     case `/usr/bin/file conftest.$ac_objext` in
5839       *ELF-32*)
5840         HPUX_IA64_MODE="32"
5841         ;;
5842       *ELF-64*)
5843         HPUX_IA64_MODE="64"
5844         ;;
5845     esac
5846   fi
5847   rm -rf conftest*
5848   ;;
5849 *-*-irix6*)
5850   # Find out which ABI we are using.
5851   echo '#line 5851 "configure"' > conftest.$ac_ext
5852   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5853   (eval $ac_compile) 2>&5
5854   ac_status=$?
5855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5856   test $ac_status = 0; }; then
5857     if test "$lt_cv_prog_gnu_ld" = yes; then
5858       case `/usr/bin/file conftest.$ac_objext` in
5859         *32-bit*)
5860           LD="${LD-ld} -melf32bsmip"
5861           ;;
5862         *N32*)
5863           LD="${LD-ld} -melf32bmipn32"
5864           ;;
5865         *64-bit*)
5866           LD="${LD-ld} -melf64bmip"
5867         ;;
5868       esac
5869     else
5870       case `/usr/bin/file conftest.$ac_objext` in
5871         *32-bit*)
5872           LD="${LD-ld} -32"
5873           ;;
5874         *N32*)
5875           LD="${LD-ld} -n32"
5876           ;;
5877         *64-bit*)
5878           LD="${LD-ld} -64"
5879           ;;
5880       esac
5881     fi
5882   fi
5883   rm -rf conftest*
5884   ;;
5885
5886 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5887 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5888   # Find out which ABI we are using.
5889   echo 'int i;' > conftest.$ac_ext
5890   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5891   (eval $ac_compile) 2>&5
5892   ac_status=$?
5893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5894   test $ac_status = 0; }; then
5895     case `/usr/bin/file conftest.o` in
5896       *32-bit*)
5897         case $host in
5898           x86_64-*kfreebsd*-gnu)
5899             LD="${LD-ld} -m elf_i386_fbsd"
5900             ;;
5901           x86_64-*linux*)
5902             LD="${LD-ld} -m elf_i386"
5903             ;;
5904           ppc64-*linux*|powerpc64-*linux*)
5905             LD="${LD-ld} -m elf32ppclinux"
5906             ;;
5907           s390x-*linux*)
5908             LD="${LD-ld} -m elf_s390"
5909             ;;
5910           sparc64-*linux*)
5911             LD="${LD-ld} -m elf32_sparc"
5912             ;;
5913         esac
5914         ;;
5915       *64-bit*)
5916         case $host in
5917           x86_64-*kfreebsd*-gnu)
5918             LD="${LD-ld} -m elf_x86_64_fbsd"
5919             ;;
5920           x86_64-*linux*)
5921             LD="${LD-ld} -m elf_x86_64"
5922             ;;
5923           ppc*-*linux*|powerpc*-*linux*)
5924             LD="${LD-ld} -m elf64ppc"
5925             ;;
5926           s390*-*linux*|s390*-*tpf*)
5927             LD="${LD-ld} -m elf64_s390"
5928             ;;
5929           sparc*-*linux*)
5930             LD="${LD-ld} -m elf64_sparc"
5931             ;;
5932         esac
5933         ;;
5934     esac
5935   fi
5936   rm -rf conftest*
5937   ;;
5938
5939 *-*-sco3.2v5*)
5940   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5941   SAVE_CFLAGS="$CFLAGS"
5942   CFLAGS="$CFLAGS -belf"
5943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5944 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5945 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5946   $as_echo_n "(cached) " >&6
5947 else
5948   ac_ext=c
5949 ac_cpp='$CPP $CPPFLAGS'
5950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5953
5954      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h.  */
5956
5957 int
5958 main ()
5959 {
5960
5961   ;
5962   return 0;
5963 }
5964 _ACEOF
5965 if ac_fn_c_try_link "$LINENO"; then :
5966   lt_cv_cc_needs_belf=yes
5967 else
5968   lt_cv_cc_needs_belf=no
5969 fi
5970 rm -f core conftest.err conftest.$ac_objext \
5971     conftest$ac_exeext conftest.$ac_ext
5972      ac_ext=c
5973 ac_cpp='$CPP $CPPFLAGS'
5974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5977
5978 fi
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5980 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5981   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5982     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5983     CFLAGS="$SAVE_CFLAGS"
5984   fi
5985   ;;
5986 sparc*-*solaris*)
5987   # Find out which ABI we are using.
5988   echo 'int i;' > conftest.$ac_ext
5989   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5990   (eval $ac_compile) 2>&5
5991   ac_status=$?
5992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5993   test $ac_status = 0; }; then
5994     case `/usr/bin/file conftest.o` in
5995     *64-bit*)
5996       case $lt_cv_prog_gnu_ld in
5997       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5998       *)
5999         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6000           LD="${LD-ld} -64"
6001         fi
6002         ;;
6003       esac
6004       ;;
6005     esac
6006   fi
6007   rm -rf conftest*
6008   ;;
6009 esac
6010
6011 need_locks="$enable_libtool_lock"
6012
6013
6014   case $host_os in
6015     rhapsody* | darwin*)
6016     if test -n "$ac_tool_prefix"; then
6017   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6018 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6020 $as_echo_n "checking for $ac_word... " >&6; }
6021 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6022   $as_echo_n "(cached) " >&6
6023 else
6024   if test -n "$DSYMUTIL"; then
6025   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6026 else
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 for as_dir in $PATH
6029 do
6030   IFS=$as_save_IFS
6031   test -z "$as_dir" && as_dir=.
6032     for ac_exec_ext in '' $ac_executable_extensions; do
6033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6034     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6036     break 2
6037   fi
6038 done
6039   done
6040 IFS=$as_save_IFS
6041
6042 fi
6043 fi
6044 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6045 if test -n "$DSYMUTIL"; then
6046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6047 $as_echo "$DSYMUTIL" >&6; }
6048 else
6049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050 $as_echo "no" >&6; }
6051 fi
6052
6053
6054 fi
6055 if test -z "$ac_cv_prog_DSYMUTIL"; then
6056   ac_ct_DSYMUTIL=$DSYMUTIL
6057   # Extract the first word of "dsymutil", so it can be a program name with args.
6058 set dummy dsymutil; ac_word=$2
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060 $as_echo_n "checking for $ac_word... " >&6; }
6061 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6062   $as_echo_n "(cached) " >&6
6063 else
6064   if test -n "$ac_ct_DSYMUTIL"; then
6065   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6066 else
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 for as_dir in $PATH
6069 do
6070   IFS=$as_save_IFS
6071   test -z "$as_dir" && as_dir=.
6072     for ac_exec_ext in '' $ac_executable_extensions; do
6073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6074     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076     break 2
6077   fi
6078 done
6079   done
6080 IFS=$as_save_IFS
6081
6082 fi
6083 fi
6084 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6085 if test -n "$ac_ct_DSYMUTIL"; then
6086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6087 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6088 else
6089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090 $as_echo "no" >&6; }
6091 fi
6092
6093   if test "x$ac_ct_DSYMUTIL" = x; then
6094     DSYMUTIL=":"
6095   else
6096     case $cross_compiling:$ac_tool_warned in
6097 yes:)
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6100 ac_tool_warned=yes ;;
6101 esac
6102     DSYMUTIL=$ac_ct_DSYMUTIL
6103   fi
6104 else
6105   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6106 fi
6107
6108     if test -n "$ac_tool_prefix"; then
6109   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6110 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6114   $as_echo_n "(cached) " >&6
6115 else
6116   if test -n "$NMEDIT"; then
6117   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122   IFS=$as_save_IFS
6123   test -z "$as_dir" && as_dir=.
6124     for ac_exec_ext in '' $ac_executable_extensions; do
6125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128     break 2
6129   fi
6130 done
6131   done
6132 IFS=$as_save_IFS
6133
6134 fi
6135 fi
6136 NMEDIT=$ac_cv_prog_NMEDIT
6137 if test -n "$NMEDIT"; then
6138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6139 $as_echo "$NMEDIT" >&6; }
6140 else
6141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142 $as_echo "no" >&6; }
6143 fi
6144
6145
6146 fi
6147 if test -z "$ac_cv_prog_NMEDIT"; then
6148   ac_ct_NMEDIT=$NMEDIT
6149   # Extract the first word of "nmedit", so it can be a program name with args.
6150 set dummy nmedit; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6154   $as_echo_n "(cached) " >&6
6155 else
6156   if test -n "$ac_ct_NMEDIT"; then
6157   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162   IFS=$as_save_IFS
6163   test -z "$as_dir" && as_dir=.
6164     for ac_exec_ext in '' $ac_executable_extensions; do
6165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6166     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168     break 2
6169   fi
6170 done
6171   done
6172 IFS=$as_save_IFS
6173
6174 fi
6175 fi
6176 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6177 if test -n "$ac_ct_NMEDIT"; then
6178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6179 $as_echo "$ac_ct_NMEDIT" >&6; }
6180 else
6181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6183 fi
6184
6185   if test "x$ac_ct_NMEDIT" = x; then
6186     NMEDIT=":"
6187   else
6188     case $cross_compiling:$ac_tool_warned in
6189 yes:)
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6192 ac_tool_warned=yes ;;
6193 esac
6194     NMEDIT=$ac_ct_NMEDIT
6195   fi
6196 else
6197   NMEDIT="$ac_cv_prog_NMEDIT"
6198 fi
6199
6200     if test -n "$ac_tool_prefix"; then
6201   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6202 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if test "${ac_cv_prog_LIPO+set}" = set; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208   if test -n "$LIPO"; then
6209   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214   IFS=$as_save_IFS
6215   test -z "$as_dir" && as_dir=.
6216     for ac_exec_ext in '' $ac_executable_extensions; do
6217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6218     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220     break 2
6221   fi
6222 done
6223   done
6224 IFS=$as_save_IFS
6225
6226 fi
6227 fi
6228 LIPO=$ac_cv_prog_LIPO
6229 if test -n "$LIPO"; then
6230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6231 $as_echo "$LIPO" >&6; }
6232 else
6233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6235 fi
6236
6237
6238 fi
6239 if test -z "$ac_cv_prog_LIPO"; then
6240   ac_ct_LIPO=$LIPO
6241   # Extract the first word of "lipo", so it can be a program name with args.
6242 set dummy lipo; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6246   $as_echo_n "(cached) " >&6
6247 else
6248   if test -n "$ac_ct_LIPO"; then
6249   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6250 else
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254   IFS=$as_save_IFS
6255   test -z "$as_dir" && as_dir=.
6256     for ac_exec_ext in '' $ac_executable_extensions; do
6257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258     ac_cv_prog_ac_ct_LIPO="lipo"
6259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260     break 2
6261   fi
6262 done
6263   done
6264 IFS=$as_save_IFS
6265
6266 fi
6267 fi
6268 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6269 if test -n "$ac_ct_LIPO"; then
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6271 $as_echo "$ac_ct_LIPO" >&6; }
6272 else
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6275 fi
6276
6277   if test "x$ac_ct_LIPO" = x; then
6278     LIPO=":"
6279   else
6280     case $cross_compiling:$ac_tool_warned in
6281 yes:)
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6284 ac_tool_warned=yes ;;
6285 esac
6286     LIPO=$ac_ct_LIPO
6287   fi
6288 else
6289   LIPO="$ac_cv_prog_LIPO"
6290 fi
6291
6292     if test -n "$ac_tool_prefix"; then
6293   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6294 set dummy ${ac_tool_prefix}otool; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6298   $as_echo_n "(cached) " >&6
6299 else
6300   if test -n "$OTOOL"; then
6301   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6305 do
6306   IFS=$as_save_IFS
6307   test -z "$as_dir" && as_dir=.
6308     for ac_exec_ext in '' $ac_executable_extensions; do
6309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312     break 2
6313   fi
6314 done
6315   done
6316 IFS=$as_save_IFS
6317
6318 fi
6319 fi
6320 OTOOL=$ac_cv_prog_OTOOL
6321 if test -n "$OTOOL"; then
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6323 $as_echo "$OTOOL" >&6; }
6324 else
6325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6327 fi
6328
6329
6330 fi
6331 if test -z "$ac_cv_prog_OTOOL"; then
6332   ac_ct_OTOOL=$OTOOL
6333   # Extract the first word of "otool", so it can be a program name with args.
6334 set dummy otool; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6338   $as_echo_n "(cached) " >&6
6339 else
6340   if test -n "$ac_ct_OTOOL"; then
6341   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6345 do
6346   IFS=$as_save_IFS
6347   test -z "$as_dir" && as_dir=.
6348     for ac_exec_ext in '' $ac_executable_extensions; do
6349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350     ac_cv_prog_ac_ct_OTOOL="otool"
6351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352     break 2
6353   fi
6354 done
6355   done
6356 IFS=$as_save_IFS
6357
6358 fi
6359 fi
6360 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6361 if test -n "$ac_ct_OTOOL"; then
6362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6363 $as_echo "$ac_ct_OTOOL" >&6; }
6364 else
6365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6367 fi
6368
6369   if test "x$ac_ct_OTOOL" = x; then
6370     OTOOL=":"
6371   else
6372     case $cross_compiling:$ac_tool_warned in
6373 yes:)
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376 ac_tool_warned=yes ;;
6377 esac
6378     OTOOL=$ac_ct_OTOOL
6379   fi
6380 else
6381   OTOOL="$ac_cv_prog_OTOOL"
6382 fi
6383
6384     if test -n "$ac_tool_prefix"; then
6385   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6386 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6390   $as_echo_n "(cached) " >&6
6391 else
6392   if test -n "$OTOOL64"; then
6393   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6394 else
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6397 do
6398   IFS=$as_save_IFS
6399   test -z "$as_dir" && as_dir=.
6400     for ac_exec_ext in '' $ac_executable_extensions; do
6401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6402     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404     break 2
6405   fi
6406 done
6407   done
6408 IFS=$as_save_IFS
6409
6410 fi
6411 fi
6412 OTOOL64=$ac_cv_prog_OTOOL64
6413 if test -n "$OTOOL64"; then
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6415 $as_echo "$OTOOL64" >&6; }
6416 else
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6419 fi
6420
6421
6422 fi
6423 if test -z "$ac_cv_prog_OTOOL64"; then
6424   ac_ct_OTOOL64=$OTOOL64
6425   # Extract the first word of "otool64", so it can be a program name with args.
6426 set dummy otool64; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6430   $as_echo_n "(cached) " >&6
6431 else
6432   if test -n "$ac_ct_OTOOL64"; then
6433   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438   IFS=$as_save_IFS
6439   test -z "$as_dir" && as_dir=.
6440     for ac_exec_ext in '' $ac_executable_extensions; do
6441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6442     ac_cv_prog_ac_ct_OTOOL64="otool64"
6443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444     break 2
6445   fi
6446 done
6447   done
6448 IFS=$as_save_IFS
6449
6450 fi
6451 fi
6452 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6453 if test -n "$ac_ct_OTOOL64"; then
6454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6455 $as_echo "$ac_ct_OTOOL64" >&6; }
6456 else
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6459 fi
6460
6461   if test "x$ac_ct_OTOOL64" = x; then
6462     OTOOL64=":"
6463   else
6464     case $cross_compiling:$ac_tool_warned in
6465 yes:)
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6468 ac_tool_warned=yes ;;
6469 esac
6470     OTOOL64=$ac_ct_OTOOL64
6471   fi
6472 else
6473   OTOOL64="$ac_cv_prog_OTOOL64"
6474 fi
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6503 $as_echo_n "checking for -single_module linker flag... " >&6; }
6504 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6505   $as_echo_n "(cached) " >&6
6506 else
6507   lt_cv_apple_cc_single_mod=no
6508       if test -z "${LT_MULTI_MODULE}"; then
6509         # By default we will add the -single_module flag. You can override
6510         # by either setting the environment variable LT_MULTI_MODULE
6511         # non-empty at configure time, or by adding -multi_module to the
6512         # link flags.
6513         rm -rf libconftest.dylib*
6514         echo "int foo(void){return 1;}" > conftest.c
6515         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6516 -dynamiclib -Wl,-single_module conftest.c" >&5
6517         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6518           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6519         _lt_result=$?
6520         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6521           lt_cv_apple_cc_single_mod=yes
6522         else
6523           cat conftest.err >&5
6524         fi
6525         rm -rf libconftest.dylib*
6526         rm -f conftest.*
6527       fi
6528 fi
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6530 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6532 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6533 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6534   $as_echo_n "(cached) " >&6
6535 else
6536   lt_cv_ld_exported_symbols_list=no
6537       save_LDFLAGS=$LDFLAGS
6538       echo "_main" > conftest.sym
6539       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6540       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h.  */
6542
6543 int
6544 main ()
6545 {
6546
6547   ;
6548   return 0;
6549 }
6550 _ACEOF
6551 if ac_fn_c_try_link "$LINENO"; then :
6552   lt_cv_ld_exported_symbols_list=yes
6553 else
6554   lt_cv_ld_exported_symbols_list=no
6555 fi
6556 rm -f core conftest.err conftest.$ac_objext \
6557     conftest$ac_exeext conftest.$ac_ext
6558         LDFLAGS="$save_LDFLAGS"
6559
6560 fi
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6562 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6563     case $host_os in
6564     rhapsody* | darwin1.[012])
6565       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6566     darwin1.*)
6567       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6568     darwin*) # darwin 5.x on
6569       # if running on 10.5 or later, the deployment target defaults
6570       # to the OS version, if on x86, and 10.4, the deployment
6571       # target defaults to 10.4. Don't you love it?
6572       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6573         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6574           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6575         10.[012]*)
6576           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6577         10.*)
6578           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6579       esac
6580     ;;
6581   esac
6582     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6583       _lt_dar_single_mod='$single_module'
6584     fi
6585     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6586       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6587     else
6588       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6589     fi
6590     if test "$DSYMUTIL" != ":"; then
6591       _lt_dsymutil='~$DSYMUTIL $lib || :'
6592     else
6593       _lt_dsymutil=
6594     fi
6595     ;;
6596   esac
6597
6598 ac_ext=c
6599 ac_cpp='$CPP $CPPFLAGS'
6600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6604 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6605 # On Suns, sometimes $CPP names a directory.
6606 if test -n "$CPP" && test -d "$CPP"; then
6607   CPP=
6608 fi
6609 if test -z "$CPP"; then
6610   if test "${ac_cv_prog_CPP+set}" = set; then :
6611   $as_echo_n "(cached) " >&6
6612 else
6613       # Double quotes because CPP needs to be expanded
6614     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6615     do
6616       ac_preproc_ok=false
6617 for ac_c_preproc_warn_flag in '' yes
6618 do
6619   # Use a header file that comes with gcc, so configuring glibc
6620   # with a fresh cross-compiler works.
6621   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6622   # <limits.h> exists even on freestanding compilers.
6623   # On the NeXT, cc -E runs the code through the compiler's parser,
6624   # not just through cpp. "Syntax error" is here to catch this case.
6625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h.  */
6627 #ifdef __STDC__
6628 # include <limits.h>
6629 #else
6630 # include <assert.h>
6631 #endif
6632                      Syntax error
6633 _ACEOF
6634 if ac_fn_c_try_cpp "$LINENO"; then :
6635
6636 else
6637   # Broken: fails on valid input.
6638 continue
6639 fi
6640 rm -f conftest.err conftest.i conftest.$ac_ext
6641
6642   # OK, works on sane cases.  Now check whether nonexistent headers
6643   # can be detected and how.
6644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h.  */
6646 #include <ac_nonexistent.h>
6647 _ACEOF
6648 if ac_fn_c_try_cpp "$LINENO"; then :
6649   # Broken: success on invalid input.
6650 continue
6651 else
6652   # Passes both tests.
6653 ac_preproc_ok=:
6654 break
6655 fi
6656 rm -f conftest.err conftest.i conftest.$ac_ext
6657
6658 done
6659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6660 rm -f conftest.i conftest.err conftest.$ac_ext
6661 if $ac_preproc_ok; then :
6662   break
6663 fi
6664
6665     done
6666     ac_cv_prog_CPP=$CPP
6667
6668 fi
6669   CPP=$ac_cv_prog_CPP
6670 else
6671   ac_cv_prog_CPP=$CPP
6672 fi
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6674 $as_echo "$CPP" >&6; }
6675 ac_preproc_ok=false
6676 for ac_c_preproc_warn_flag in '' yes
6677 do
6678   # Use a header file that comes with gcc, so configuring glibc
6679   # with a fresh cross-compiler works.
6680   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6681   # <limits.h> exists even on freestanding compilers.
6682   # On the NeXT, cc -E runs the code through the compiler's parser,
6683   # not just through cpp. "Syntax error" is here to catch this case.
6684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h.  */
6686 #ifdef __STDC__
6687 # include <limits.h>
6688 #else
6689 # include <assert.h>
6690 #endif
6691                      Syntax error
6692 _ACEOF
6693 if ac_fn_c_try_cpp "$LINENO"; then :
6694
6695 else
6696   # Broken: fails on valid input.
6697 continue
6698 fi
6699 rm -f conftest.err conftest.i conftest.$ac_ext
6700
6701   # OK, works on sane cases.  Now check whether nonexistent headers
6702   # can be detected and how.
6703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h.  */
6705 #include <ac_nonexistent.h>
6706 _ACEOF
6707 if ac_fn_c_try_cpp "$LINENO"; then :
6708   # Broken: success on invalid input.
6709 continue
6710 else
6711   # Passes both tests.
6712 ac_preproc_ok=:
6713 break
6714 fi
6715 rm -f conftest.err conftest.i conftest.$ac_ext
6716
6717 done
6718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6719 rm -f conftest.i conftest.err conftest.$ac_ext
6720 if $ac_preproc_ok; then :
6721
6722 else
6723   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6725 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6726 See \`config.log' for more details" "$LINENO" 5 ; }
6727 fi
6728
6729 ac_ext=c
6730 ac_cpp='$CPP $CPPFLAGS'
6731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6734
6735
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6737 $as_echo_n "checking for ANSI C header files... " >&6; }
6738 if test "${ac_cv_header_stdc+set}" = set; then :
6739   $as_echo_n "(cached) " >&6
6740 else
6741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h.  */
6743 #include <stdlib.h>
6744 #include <stdarg.h>
6745 #include <string.h>
6746 #include <float.h>
6747
6748 int
6749 main ()
6750 {
6751
6752   ;
6753   return 0;
6754 }
6755 _ACEOF
6756 if ac_fn_c_try_compile "$LINENO"; then :
6757   ac_cv_header_stdc=yes
6758 else
6759   ac_cv_header_stdc=no
6760 fi
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762
6763 if test $ac_cv_header_stdc = yes; then
6764   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h.  */
6767 #include <string.h>
6768
6769 _ACEOF
6770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6771   $EGREP "memchr" >/dev/null 2>&1; then :
6772
6773 else
6774   ac_cv_header_stdc=no
6775 fi
6776 rm -f conftest*
6777
6778 fi
6779
6780 if test $ac_cv_header_stdc = yes; then
6781   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h.  */
6784 #include <stdlib.h>
6785
6786 _ACEOF
6787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6788   $EGREP "free" >/dev/null 2>&1; then :
6789
6790 else
6791   ac_cv_header_stdc=no
6792 fi
6793 rm -f conftest*
6794
6795 fi
6796
6797 if test $ac_cv_header_stdc = yes; then
6798   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6799   if test "$cross_compiling" = yes; then :
6800   :
6801 else
6802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h.  */
6804 #include <ctype.h>
6805 #include <stdlib.h>
6806 #if ((' ' & 0x0FF) == 0x020)
6807 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6808 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6809 #else
6810 # define ISLOWER(c) \
6811                    (('a' <= (c) && (c) <= 'i') \
6812                      || ('j' <= (c) && (c) <= 'r') \
6813                      || ('s' <= (c) && (c) <= 'z'))
6814 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6815 #endif
6816
6817 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6818 int
6819 main ()
6820 {
6821   int i;
6822   for (i = 0; i < 256; i++)
6823     if (XOR (islower (i), ISLOWER (i))
6824         || toupper (i) != TOUPPER (i))
6825       return 2;
6826   return 0;
6827 }
6828 _ACEOF
6829 if ac_fn_c_try_run "$LINENO"; then :
6830
6831 else
6832   ac_cv_header_stdc=no
6833 fi
6834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6835   conftest.$ac_objext conftest.beam conftest.$ac_ext
6836 fi
6837
6838 fi
6839 fi
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6841 $as_echo "$ac_cv_header_stdc" >&6; }
6842 if test $ac_cv_header_stdc = yes; then
6843
6844 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6845
6846 fi
6847
6848 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6849 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6850                   inttypes.h stdint.h unistd.h
6851 do :
6852   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6853 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6854 "
6855 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6856   cat >>confdefs.h <<_ACEOF
6857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6858 _ACEOF
6859
6860 fi
6861
6862 done
6863
6864
6865 for ac_header in dlfcn.h
6866 do :
6867   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6868 "
6869 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6870   cat >>confdefs.h <<_ACEOF
6871 #define HAVE_DLFCN_H 1
6872 _ACEOF
6873
6874 fi
6875
6876 done
6877
6878
6879
6880 # Set options
6881 enable_dlopen=yes
6882 # Check whether --enable-static was given.
6883 if test "${enable_static+set}" = set; then :
6884   enableval=$enable_static; p=${PACKAGE-default}
6885     case $enableval in
6886     yes) enable_static=yes ;;
6887     no) enable_static=no ;;
6888     *)
6889      enable_static=no
6890       # Look at the argument we got.  We use all the common list separators.
6891       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6892       for pkg in $enableval; do
6893         IFS="$lt_save_ifs"
6894         if test "X$pkg" = "X$p"; then
6895           enable_static=yes
6896         fi
6897       done
6898       IFS="$lt_save_ifs"
6899       ;;
6900     esac
6901 else
6902   enable_static=no
6903 fi
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915   enable_win32_dll=no
6916
6917
6918             # Check whether --enable-shared was given.
6919 if test "${enable_shared+set}" = set; then :
6920   enableval=$enable_shared; p=${PACKAGE-default}
6921     case $enableval in
6922     yes) enable_shared=yes ;;
6923     no) enable_shared=no ;;
6924     *)
6925       enable_shared=no
6926       # Look at the argument we got.  We use all the common list separators.
6927       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6928       for pkg in $enableval; do
6929         IFS="$lt_save_ifs"
6930         if test "X$pkg" = "X$p"; then
6931           enable_shared=yes
6932         fi
6933       done
6934       IFS="$lt_save_ifs"
6935       ;;
6936     esac
6937 else
6938   enable_shared=yes
6939 fi
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951 # Check whether --with-pic was given.
6952 if test "${with_pic+set}" = set; then :
6953   withval=$with_pic; pic_mode="$withval"
6954 else
6955   pic_mode=default
6956 fi
6957
6958
6959 test -z "$pic_mode" && pic_mode=default
6960
6961
6962
6963
6964
6965
6966
6967   # Check whether --enable-fast-install was given.
6968 if test "${enable_fast_install+set}" = set; then :
6969   enableval=$enable_fast_install; p=${PACKAGE-default}
6970     case $enableval in
6971     yes) enable_fast_install=yes ;;
6972     no) enable_fast_install=no ;;
6973     *)
6974       enable_fast_install=no
6975       # Look at the argument we got.  We use all the common list separators.
6976       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6977       for pkg in $enableval; do
6978         IFS="$lt_save_ifs"
6979         if test "X$pkg" = "X$p"; then
6980           enable_fast_install=yes
6981         fi
6982       done
6983       IFS="$lt_save_ifs"
6984       ;;
6985     esac
6986 else
6987   enable_fast_install=yes
6988 fi
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000 # This can be used to rebuild libtool when needed
7001 LIBTOOL_DEPS="$ltmain"
7002
7003 # Always use our own libtool.
7004 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030 test -z "$LN_S" && LN_S="ln -s"
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045 if test -n "${ZSH_VERSION+set}" ; then
7046    setopt NO_GLOB_SUBST
7047 fi
7048
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7050 $as_echo_n "checking for objdir... " >&6; }
7051 if test "${lt_cv_objdir+set}" = set; then :
7052   $as_echo_n "(cached) " >&6
7053 else
7054   rm -f .libs 2>/dev/null
7055 mkdir .libs 2>/dev/null
7056 if test -d .libs; then
7057   lt_cv_objdir=.libs
7058 else
7059   # MS-DOS does not allow filenames that begin with a dot.
7060   lt_cv_objdir=_libs
7061 fi
7062 rmdir .libs 2>/dev/null
7063 fi
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7065 $as_echo "$lt_cv_objdir" >&6; }
7066 objdir=$lt_cv_objdir
7067
7068
7069
7070
7071
7072 cat >>confdefs.h <<_ACEOF
7073 #define LT_OBJDIR "$lt_cv_objdir/"
7074 _ACEOF
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092 case $host_os in
7093 aix3*)
7094   # AIX sometimes has problems with the GCC collect2 program.  For some
7095   # reason, if we set the COLLECT_NAMES environment variable, the problems
7096   # vanish in a puff of smoke.
7097   if test "X${COLLECT_NAMES+set}" != Xset; then
7098     COLLECT_NAMES=
7099     export COLLECT_NAMES
7100   fi
7101   ;;
7102 esac
7103
7104 # Sed substitution that helps us do robust quoting.  It backslashifies
7105 # metacharacters that are still active within double-quoted strings.
7106 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7107
7108 # Same as above, but do not quote variable references.
7109 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7110
7111 # Sed substitution to delay expansion of an escaped shell variable in a
7112 # double_quote_subst'ed string.
7113 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7114
7115 # Sed substitution to delay expansion of an escaped single quote.
7116 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7117
7118 # Sed substitution to avoid accidental globbing in evaled expressions
7119 no_glob_subst='s/\*/\\\*/g'
7120
7121 # Global variables:
7122 ofile=libtool
7123 can_build_shared=yes
7124
7125 # All known linkers require a `.a' archive for static linking (except MSVC,
7126 # which needs '.lib').
7127 libext=a
7128
7129 with_gnu_ld="$lt_cv_prog_gnu_ld"
7130
7131 old_CC="$CC"
7132 old_CFLAGS="$CFLAGS"
7133
7134 # Set sane defaults for various variables
7135 test -z "$CC" && CC=cc
7136 test -z "$LTCC" && LTCC=$CC
7137 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7138 test -z "$LD" && LD=ld
7139 test -z "$ac_objext" && ac_objext=o
7140
7141 for cc_temp in $compiler""; do
7142   case $cc_temp in
7143     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7144     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7145     \-*) ;;
7146     *) break;;
7147   esac
7148 done
7149 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7150
7151
7152 # Only perform the check for file, if the check method requires it
7153 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7154 case $deplibs_check_method in
7155 file_magic*)
7156   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7158 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7159 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7160   $as_echo_n "(cached) " >&6
7161 else
7162   case $MAGIC_CMD in
7163 [\\/*] |  ?:[\\/]*)
7164   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7165   ;;
7166 *)
7167   lt_save_MAGIC_CMD="$MAGIC_CMD"
7168   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7169   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7170   for ac_dir in $ac_dummy; do
7171     IFS="$lt_save_ifs"
7172     test -z "$ac_dir" && ac_dir=.
7173     if test -f $ac_dir/${ac_tool_prefix}file; then
7174       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7175       if test -n "$file_magic_test_file"; then
7176         case $deplibs_check_method in
7177         "file_magic "*)
7178           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7179           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7180           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7181             $EGREP "$file_magic_regex" > /dev/null; then
7182             :
7183           else
7184             cat <<_LT_EOF 1>&2
7185
7186 *** Warning: the command libtool uses to detect shared libraries,
7187 *** $file_magic_cmd, produces output that libtool cannot recognize.
7188 *** The result is that libtool may fail to recognize shared libraries
7189 *** as such.  This will affect the creation of libtool libraries that
7190 *** depend on shared libraries, but programs linked with such libtool
7191 *** libraries will work regardless of this problem.  Nevertheless, you
7192 *** may want to report the problem to your system manager and/or to
7193 *** bug-libtool@gnu.org
7194
7195 _LT_EOF
7196           fi ;;
7197         esac
7198       fi
7199       break
7200     fi
7201   done
7202   IFS="$lt_save_ifs"
7203   MAGIC_CMD="$lt_save_MAGIC_CMD"
7204   ;;
7205 esac
7206 fi
7207
7208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7209 if test -n "$MAGIC_CMD"; then
7210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7211 $as_echo "$MAGIC_CMD" >&6; }
7212 else
7213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7215 fi
7216
7217
7218
7219
7220
7221 if test -z "$lt_cv_path_MAGIC_CMD"; then
7222   if test -n "$ac_tool_prefix"; then
7223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7224 $as_echo_n "checking for file... " >&6; }
7225 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7226   $as_echo_n "(cached) " >&6
7227 else
7228   case $MAGIC_CMD in
7229 [\\/*] |  ?:[\\/]*)
7230   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7231   ;;
7232 *)
7233   lt_save_MAGIC_CMD="$MAGIC_CMD"
7234   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7235   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7236   for ac_dir in $ac_dummy; do
7237     IFS="$lt_save_ifs"
7238     test -z "$ac_dir" && ac_dir=.
7239     if test -f $ac_dir/file; then
7240       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7241       if test -n "$file_magic_test_file"; then
7242         case $deplibs_check_method in
7243         "file_magic "*)
7244           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7245           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7246           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7247             $EGREP "$file_magic_regex" > /dev/null; then
7248             :
7249           else
7250             cat <<_LT_EOF 1>&2
7251
7252 *** Warning: the command libtool uses to detect shared libraries,
7253 *** $file_magic_cmd, produces output that libtool cannot recognize.
7254 *** The result is that libtool may fail to recognize shared libraries
7255 *** as such.  This will affect the creation of libtool libraries that
7256 *** depend on shared libraries, but programs linked with such libtool
7257 *** libraries will work regardless of this problem.  Nevertheless, you
7258 *** may want to report the problem to your system manager and/or to
7259 *** bug-libtool@gnu.org
7260
7261 _LT_EOF
7262           fi ;;
7263         esac
7264       fi
7265       break
7266     fi
7267   done
7268   IFS="$lt_save_ifs"
7269   MAGIC_CMD="$lt_save_MAGIC_CMD"
7270   ;;
7271 esac
7272 fi
7273
7274 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7275 if test -n "$MAGIC_CMD"; then
7276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7277 $as_echo "$MAGIC_CMD" >&6; }
7278 else
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7281 fi
7282
7283
7284   else
7285     MAGIC_CMD=:
7286   fi
7287 fi
7288
7289   fi
7290   ;;
7291 esac
7292
7293 # Use C for the default configuration in the libtool script
7294
7295 lt_save_CC="$CC"
7296 ac_ext=c
7297 ac_cpp='$CPP $CPPFLAGS'
7298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7301
7302
7303 # Source file extension for C test sources.
7304 ac_ext=c
7305
7306 # Object file extension for compiled C test sources.
7307 objext=o
7308 objext=$objext
7309
7310 # Code to be used in simple compile tests
7311 lt_simple_compile_test_code="int some_variable = 0;"
7312
7313 # Code to be used in simple link tests
7314 lt_simple_link_test_code='int main(){return(0);}'
7315
7316
7317
7318
7319
7320
7321
7322 # If no C compiler was specified, use CC.
7323 LTCC=${LTCC-"$CC"}
7324
7325 # If no C compiler flags were specified, use CFLAGS.
7326 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7327
7328 # Allow CC to be a program name with arguments.
7329 compiler=$CC
7330
7331 # Save the default compiler, since it gets overwritten when the other
7332 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7333 compiler_DEFAULT=$CC
7334
7335 # save warnings/boilerplate of simple test code
7336 ac_outfile=conftest.$ac_objext
7337 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7338 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7339 _lt_compiler_boilerplate=`cat conftest.err`
7340 $RM conftest*
7341
7342 ac_outfile=conftest.$ac_objext
7343 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7344 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7345 _lt_linker_boilerplate=`cat conftest.err`
7346 $RM -r conftest*
7347
7348
7349 if test -n "$compiler"; then
7350
7351 lt_prog_compiler_no_builtin_flag=
7352
7353 if test "$GCC" = yes; then
7354   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7355
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7357 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7358 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7359   $as_echo_n "(cached) " >&6
7360 else
7361   lt_cv_prog_compiler_rtti_exceptions=no
7362    ac_outfile=conftest.$ac_objext
7363    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7364    lt_compiler_flag="-fno-rtti -fno-exceptions"
7365    # Insert the option either (1) after the last *FLAGS variable, or
7366    # (2) before a word containing "conftest.", or (3) at the end.
7367    # Note that $ac_compile itself does not contain backslashes and begins
7368    # with a dollar sign (not a hyphen), so the echo should work correctly.
7369    # The option is referenced via a variable to avoid confusing sed.
7370    lt_compile=`echo "$ac_compile" | $SED \
7371    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7372    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7373    -e 's:$: $lt_compiler_flag:'`
7374    (eval echo "\"\$as_me:7374: $lt_compile\"" >&5)
7375    (eval "$lt_compile" 2>conftest.err)
7376    ac_status=$?
7377    cat conftest.err >&5
7378    echo "$as_me:7378: \$? = $ac_status" >&5
7379    if (exit $ac_status) && test -s "$ac_outfile"; then
7380      # The compiler can only warn and ignore the option if not recognized
7381      # So say no if there are warnings other than the usual output.
7382      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7383      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7384      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7385        lt_cv_prog_compiler_rtti_exceptions=yes
7386      fi
7387    fi
7388    $RM conftest*
7389
7390 fi
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7392 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7393
7394 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7395     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7396 else
7397     :
7398 fi
7399
7400 fi
7401
7402
7403
7404
7405
7406
7407   lt_prog_compiler_wl=
7408 lt_prog_compiler_pic=
7409 lt_prog_compiler_static=
7410
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7412 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7413
7414   if test "$GCC" = yes; then
7415     lt_prog_compiler_wl='-Wl,'
7416     lt_prog_compiler_static='-static'
7417
7418     case $host_os in
7419       aix*)
7420       # All AIX code is PIC.
7421       if test "$host_cpu" = ia64; then
7422         # AIX 5 now supports IA64 processor
7423         lt_prog_compiler_static='-Bstatic'
7424       fi
7425       ;;
7426
7427     amigaos*)
7428       case $host_cpu in
7429       powerpc)
7430             # see comment about AmigaOS4 .so support
7431             lt_prog_compiler_pic='-fPIC'
7432         ;;
7433       m68k)
7434             # FIXME: we need at least 68020 code to build shared libraries, but
7435             # adding the `-m68020' flag to GCC prevents building anything better,
7436             # like `-m68040'.
7437             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7438         ;;
7439       esac
7440       ;;
7441
7442     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7443       # PIC is the default for these OSes.
7444       ;;
7445
7446     mingw* | cygwin* | pw32* | os2* | cegcc*)
7447       # This hack is so that the source file can tell whether it is being
7448       # built for inclusion in a dll (and should export symbols for example).
7449       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7450       # (--disable-auto-import) libraries
7451       lt_prog_compiler_pic='-DDLL_EXPORT'
7452       ;;
7453
7454     darwin* | rhapsody*)
7455       # PIC is the default on this platform
7456       # Common symbols not allowed in MH_DYLIB files
7457       lt_prog_compiler_pic='-fno-common'
7458       ;;
7459
7460     hpux*)
7461       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7462       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7463       # sets the default TLS model and affects inlining.
7464       case $host_cpu in
7465       hppa*64*)
7466         # +Z the default
7467         ;;
7468       *)
7469         lt_prog_compiler_pic='-fPIC'
7470         ;;
7471       esac
7472       ;;
7473
7474     interix[3-9]*)
7475       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7476       # Instead, we relocate shared libraries at runtime.
7477       ;;
7478
7479     msdosdjgpp*)
7480       # Just because we use GCC doesn't mean we suddenly get shared libraries
7481       # on systems that don't support them.
7482       lt_prog_compiler_can_build_shared=no
7483       enable_shared=no
7484       ;;
7485
7486     *nto* | *qnx*)
7487       # QNX uses GNU C++, but need to define -shared option too, otherwise
7488       # it will coredump.
7489       lt_prog_compiler_pic='-fPIC -shared'
7490       ;;
7491
7492     sysv4*MP*)
7493       if test -d /usr/nec; then
7494         lt_prog_compiler_pic=-Kconform_pic
7495       fi
7496       ;;
7497
7498     *)
7499       lt_prog_compiler_pic='-fPIC'
7500       ;;
7501     esac
7502   else
7503     # PORTME Check for flag to pass linker flags through the system compiler.
7504     case $host_os in
7505     aix*)
7506       lt_prog_compiler_wl='-Wl,'
7507       if test "$host_cpu" = ia64; then
7508         # AIX 5 now supports IA64 processor
7509         lt_prog_compiler_static='-Bstatic'
7510       else
7511         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7512       fi
7513       ;;
7514
7515     mingw* | cygwin* | pw32* | os2* | cegcc*)
7516       # This hack is so that the source file can tell whether it is being
7517       # built for inclusion in a dll (and should export symbols for example).
7518       lt_prog_compiler_pic='-DDLL_EXPORT'
7519       ;;
7520
7521     hpux9* | hpux10* | hpux11*)
7522       lt_prog_compiler_wl='-Wl,'
7523       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7524       # not for PA HP-UX.
7525       case $host_cpu in
7526       hppa*64*|ia64*)
7527         # +Z the default
7528         ;;
7529       *)
7530         lt_prog_compiler_pic='+Z'
7531         ;;
7532       esac
7533       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7534       lt_prog_compiler_static='${wl}-a ${wl}archive'
7535       ;;
7536
7537     irix5* | irix6* | nonstopux*)
7538       lt_prog_compiler_wl='-Wl,'
7539       # PIC (with -KPIC) is the default.
7540       lt_prog_compiler_static='-non_shared'
7541       ;;
7542
7543     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7544       case $cc_basename in
7545       # old Intel for x86_64 which still supported -KPIC.
7546       ecc*)
7547         lt_prog_compiler_wl='-Wl,'
7548         lt_prog_compiler_pic='-KPIC'
7549         lt_prog_compiler_static='-static'
7550         ;;
7551       # icc used to be incompatible with GCC.
7552       # ICC 10 doesn't accept -KPIC any more.
7553       icc* | ifort*)
7554         lt_prog_compiler_wl='-Wl,'
7555         lt_prog_compiler_pic='-fPIC'
7556         lt_prog_compiler_static='-static'
7557         ;;
7558       # Lahey Fortran 8.1.
7559       lf95*)
7560         lt_prog_compiler_wl='-Wl,'
7561         lt_prog_compiler_pic='--shared'
7562         lt_prog_compiler_static='--static'
7563         ;;
7564       pgcc* | pgf77* | pgf90* | pgf95*)
7565         # Portland Group compilers (*not* the Pentium gcc compiler,
7566         # which looks to be a dead project)
7567         lt_prog_compiler_wl='-Wl,'
7568         lt_prog_compiler_pic='-fpic'
7569         lt_prog_compiler_static='-Bstatic'
7570         ;;
7571       ccc*)
7572         lt_prog_compiler_wl='-Wl,'
7573         # All Alpha code is PIC.
7574         lt_prog_compiler_static='-non_shared'
7575         ;;
7576       xl*)
7577         # IBM XL C 8.0/Fortran 10.1 on PPC
7578         lt_prog_compiler_wl='-Wl,'
7579         lt_prog_compiler_pic='-qpic'
7580         lt_prog_compiler_static='-qstaticlink'
7581         ;;
7582       *)
7583         case `$CC -V 2>&1 | sed 5q` in
7584         *Sun\ C*)
7585           # Sun C 5.9
7586           lt_prog_compiler_pic='-KPIC'
7587           lt_prog_compiler_static='-Bstatic'
7588           lt_prog_compiler_wl='-Wl,'
7589           ;;
7590         *Sun\ F*)
7591           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7592           lt_prog_compiler_pic='-KPIC'
7593           lt_prog_compiler_static='-Bstatic'
7594           lt_prog_compiler_wl=''
7595           ;;
7596         esac
7597         ;;
7598       esac
7599       ;;
7600
7601     newsos6)
7602       lt_prog_compiler_pic='-KPIC'
7603       lt_prog_compiler_static='-Bstatic'
7604       ;;
7605
7606     *nto* | *qnx*)
7607       # QNX uses GNU C++, but need to define -shared option too, otherwise
7608       # it will coredump.
7609       lt_prog_compiler_pic='-fPIC -shared'
7610       ;;
7611
7612     osf3* | osf4* | osf5*)
7613       lt_prog_compiler_wl='-Wl,'
7614       # All OSF/1 code is PIC.
7615       lt_prog_compiler_static='-non_shared'
7616       ;;
7617
7618     rdos*)
7619       lt_prog_compiler_static='-non_shared'
7620       ;;
7621
7622     solaris*)
7623       lt_prog_compiler_pic='-KPIC'
7624       lt_prog_compiler_static='-Bstatic'
7625       case $cc_basename in
7626       f77* | f90* | f95*)
7627         lt_prog_compiler_wl='-Qoption ld ';;
7628       *)
7629         lt_prog_compiler_wl='-Wl,';;
7630       esac
7631       ;;
7632
7633     sunos4*)
7634       lt_prog_compiler_wl='-Qoption ld '
7635       lt_prog_compiler_pic='-PIC'
7636       lt_prog_compiler_static='-Bstatic'
7637       ;;
7638
7639     sysv4 | sysv4.2uw2* | sysv4.3*)
7640       lt_prog_compiler_wl='-Wl,'
7641       lt_prog_compiler_pic='-KPIC'
7642       lt_prog_compiler_static='-Bstatic'
7643       ;;
7644
7645     sysv4*MP*)
7646       if test -d /usr/nec ;then
7647         lt_prog_compiler_pic='-Kconform_pic'
7648         lt_prog_compiler_static='-Bstatic'
7649       fi
7650       ;;
7651
7652     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7653       lt_prog_compiler_wl='-Wl,'
7654       lt_prog_compiler_pic='-KPIC'
7655       lt_prog_compiler_static='-Bstatic'
7656       ;;
7657
7658     unicos*)
7659       lt_prog_compiler_wl='-Wl,'
7660       lt_prog_compiler_can_build_shared=no
7661       ;;
7662
7663     uts4*)
7664       lt_prog_compiler_pic='-pic'
7665       lt_prog_compiler_static='-Bstatic'
7666       ;;
7667
7668     *)
7669       lt_prog_compiler_can_build_shared=no
7670       ;;
7671     esac
7672   fi
7673
7674 case $host_os in
7675   # For platforms which do not support PIC, -DPIC is meaningless:
7676   *djgpp*)
7677     lt_prog_compiler_pic=
7678     ;;
7679   *)
7680     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7681     ;;
7682 esac
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7684 $as_echo "$lt_prog_compiler_pic" >&6; }
7685
7686
7687
7688
7689
7690
7691 #
7692 # Check to make sure the PIC flag actually works.
7693 #
7694 if test -n "$lt_prog_compiler_pic"; then
7695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7696 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7697 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7698   $as_echo_n "(cached) " >&6
7699 else
7700   lt_cv_prog_compiler_pic_works=no
7701    ac_outfile=conftest.$ac_objext
7702    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7703    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7704    # Insert the option either (1) after the last *FLAGS variable, or
7705    # (2) before a word containing "conftest.", or (3) at the end.
7706    # Note that $ac_compile itself does not contain backslashes and begins
7707    # with a dollar sign (not a hyphen), so the echo should work correctly.
7708    # The option is referenced via a variable to avoid confusing sed.
7709    lt_compile=`echo "$ac_compile" | $SED \
7710    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7711    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7712    -e 's:$: $lt_compiler_flag:'`
7713    (eval echo "\"\$as_me:7713: $lt_compile\"" >&5)
7714    (eval "$lt_compile" 2>conftest.err)
7715    ac_status=$?
7716    cat conftest.err >&5
7717    echo "$as_me:7717: \$? = $ac_status" >&5
7718    if (exit $ac_status) && test -s "$ac_outfile"; then
7719      # The compiler can only warn and ignore the option if not recognized
7720      # So say no if there are warnings other than the usual output.
7721      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7722      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7723      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7724        lt_cv_prog_compiler_pic_works=yes
7725      fi
7726    fi
7727    $RM conftest*
7728
7729 fi
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7731 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7732
7733 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7734     case $lt_prog_compiler_pic in
7735      "" | " "*) ;;
7736      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7737      esac
7738 else
7739     lt_prog_compiler_pic=
7740      lt_prog_compiler_can_build_shared=no
7741 fi
7742
7743 fi
7744
7745
7746
7747
7748
7749
7750 #
7751 # Check to make sure the static flag actually works.
7752 #
7753 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7755 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7756 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7757   $as_echo_n "(cached) " >&6
7758 else
7759   lt_cv_prog_compiler_static_works=no
7760    save_LDFLAGS="$LDFLAGS"
7761    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7762    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7763    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7764      # The linker can only warn and ignore the option if not recognized
7765      # So say no if there are warnings
7766      if test -s conftest.err; then
7767        # Append any errors to the config.log.
7768        cat conftest.err 1>&5
7769        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7770        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7771        if diff conftest.exp conftest.er2 >/dev/null; then
7772          lt_cv_prog_compiler_static_works=yes
7773        fi
7774      else
7775        lt_cv_prog_compiler_static_works=yes
7776      fi
7777    fi
7778    $RM -r conftest*
7779    LDFLAGS="$save_LDFLAGS"
7780
7781 fi
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7783 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7784
7785 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7786     :
7787 else
7788     lt_prog_compiler_static=
7789 fi
7790
7791
7792
7793
7794
7795
7796
7797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7798 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7799 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7800   $as_echo_n "(cached) " >&6
7801 else
7802   lt_cv_prog_compiler_c_o=no
7803    $RM -r conftest 2>/dev/null
7804    mkdir conftest
7805    cd conftest
7806    mkdir out
7807    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7808
7809    lt_compiler_flag="-o out/conftest2.$ac_objext"
7810    # Insert the option either (1) after the last *FLAGS variable, or
7811    # (2) before a word containing "conftest.", or (3) at the end.
7812    # Note that $ac_compile itself does not contain backslashes and begins
7813    # with a dollar sign (not a hyphen), so the echo should work correctly.
7814    lt_compile=`echo "$ac_compile" | $SED \
7815    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7816    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7817    -e 's:$: $lt_compiler_flag:'`
7818    (eval echo "\"\$as_me:7818: $lt_compile\"" >&5)
7819    (eval "$lt_compile" 2>out/conftest.err)
7820    ac_status=$?
7821    cat out/conftest.err >&5
7822    echo "$as_me:7822: \$? = $ac_status" >&5
7823    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7824    then
7825      # The compiler can only warn and ignore the option if not recognized
7826      # So say no if there are warnings
7827      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7828      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7829      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7830        lt_cv_prog_compiler_c_o=yes
7831      fi
7832    fi
7833    chmod u+w . 2>&5
7834    $RM conftest*
7835    # SGI C++ compiler will create directory out/ii_files/ for
7836    # template instantiation
7837    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7838    $RM out/* && rmdir out
7839    cd ..
7840    $RM -r conftest
7841    $RM conftest*
7842
7843 fi
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7845 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7846
7847
7848
7849
7850
7851
7852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7853 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7854 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7855   $as_echo_n "(cached) " >&6
7856 else
7857   lt_cv_prog_compiler_c_o=no
7858    $RM -r conftest 2>/dev/null
7859    mkdir conftest
7860    cd conftest
7861    mkdir out
7862    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7863
7864    lt_compiler_flag="-o out/conftest2.$ac_objext"
7865    # Insert the option either (1) after the last *FLAGS variable, or
7866    # (2) before a word containing "conftest.", or (3) at the end.
7867    # Note that $ac_compile itself does not contain backslashes and begins
7868    # with a dollar sign (not a hyphen), so the echo should work correctly.
7869    lt_compile=`echo "$ac_compile" | $SED \
7870    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7871    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7872    -e 's:$: $lt_compiler_flag:'`
7873    (eval echo "\"\$as_me:7873: $lt_compile\"" >&5)
7874    (eval "$lt_compile" 2>out/conftest.err)
7875    ac_status=$?
7876    cat out/conftest.err >&5
7877    echo "$as_me:7877: \$? = $ac_status" >&5
7878    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7879    then
7880      # The compiler can only warn and ignore the option if not recognized
7881      # So say no if there are warnings
7882      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7883      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7884      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7885        lt_cv_prog_compiler_c_o=yes
7886      fi
7887    fi
7888    chmod u+w . 2>&5
7889    $RM conftest*
7890    # SGI C++ compiler will create directory out/ii_files/ for
7891    # template instantiation
7892    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7893    $RM out/* && rmdir out
7894    cd ..
7895    $RM -r conftest
7896    $RM conftest*
7897
7898 fi
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7900 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7901
7902
7903
7904
7905 hard_links="nottested"
7906 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7907   # do not overwrite the value of need_locks provided by the user
7908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7909 $as_echo_n "checking if we can lock with hard links... " >&6; }
7910   hard_links=yes
7911   $RM conftest*
7912   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7913   touch conftest.a
7914   ln conftest.a conftest.b 2>&5 || hard_links=no
7915   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7917 $as_echo "$hard_links" >&6; }
7918   if test "$hard_links" = no; then
7919     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7920 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7921     need_locks=warn
7922   fi
7923 else
7924   need_locks=no
7925 fi
7926
7927
7928
7929
7930
7931
7932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7933 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7934
7935   runpath_var=
7936   allow_undefined_flag=
7937   always_export_symbols=no
7938   archive_cmds=
7939   archive_expsym_cmds=
7940   compiler_needs_object=no
7941   enable_shared_with_static_runtimes=no
7942   export_dynamic_flag_spec=
7943   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7944   hardcode_automatic=no
7945   hardcode_direct=no
7946   hardcode_direct_absolute=no
7947   hardcode_libdir_flag_spec=
7948   hardcode_libdir_flag_spec_ld=
7949   hardcode_libdir_separator=
7950   hardcode_minus_L=no
7951   hardcode_shlibpath_var=unsupported
7952   inherit_rpath=no
7953   link_all_deplibs=unknown
7954   module_cmds=
7955   module_expsym_cmds=
7956   old_archive_from_new_cmds=
7957   old_archive_from_expsyms_cmds=
7958   thread_safe_flag_spec=
7959   whole_archive_flag_spec=
7960   # include_expsyms should be a list of space-separated symbols to be *always*
7961   # included in the symbol list
7962   include_expsyms=
7963   # exclude_expsyms can be an extended regexp of symbols to exclude
7964   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7965   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7966   # as well as any symbol that contains `d'.
7967   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7968   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7969   # platforms (ab)use it in PIC code, but their linkers get confused if
7970   # the symbol is explicitly referenced.  Since portable code cannot
7971   # rely on this symbol name, it's probably fine to never include it in
7972   # preloaded symbol tables.
7973   # Exclude shared library initialization/finalization symbols.
7974   extract_expsyms_cmds=
7975
7976   case $host_os in
7977   cygwin* | mingw* | pw32* | cegcc*)
7978     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7979     # When not using gcc, we currently assume that we are using
7980     # Microsoft Visual C++.
7981     if test "$GCC" != yes; then
7982       with_gnu_ld=no
7983     fi
7984     ;;
7985   interix*)
7986     # we just hope/assume this is gcc and not c89 (= MSVC++)
7987     with_gnu_ld=yes
7988     ;;
7989   openbsd*)
7990     with_gnu_ld=no
7991     ;;
7992   linux* | k*bsd*-gnu)
7993     link_all_deplibs=no
7994     ;;
7995   esac
7996
7997   ld_shlibs=yes
7998   if test "$with_gnu_ld" = yes; then
7999     # If archive_cmds runs LD, not CC, wlarc should be empty
8000     wlarc='${wl}'
8001
8002     # Set some defaults for GNU ld with shared library support. These
8003     # are reset later if shared libraries are not supported. Putting them
8004     # here allows them to be overridden if necessary.
8005     runpath_var=LD_RUN_PATH
8006     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8007     export_dynamic_flag_spec='${wl}--export-dynamic'
8008     # ancient GNU ld didn't support --whole-archive et. al.
8009     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8010       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8011     else
8012       whole_archive_flag_spec=
8013     fi
8014     supports_anon_versioning=no
8015     case `$LD -v 2>&1` in
8016       *GNU\ gold*) supports_anon_versioning=yes ;;
8017       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8018       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8019       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8020       *\ 2.11.*) ;; # other 2.11 versions
8021       *) supports_anon_versioning=yes ;;
8022     esac
8023
8024     # See if GNU ld supports shared libraries.
8025     case $host_os in
8026     aix[3-9]*)
8027       # On AIX/PPC, the GNU linker is very broken
8028       if test "$host_cpu" != ia64; then
8029         ld_shlibs=no
8030         cat <<_LT_EOF 1>&2
8031
8032 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8033 *** to be unable to reliably create shared libraries on AIX.
8034 *** Therefore, libtool is disabling shared libraries support.  If you
8035 *** really care for shared libraries, you may want to modify your PATH
8036 *** so that a non-GNU linker is found, and then restart.
8037
8038 _LT_EOF
8039       fi
8040       ;;
8041
8042     amigaos*)
8043       case $host_cpu in
8044       powerpc)
8045             # see comment about AmigaOS4 .so support
8046             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8047             archive_expsym_cmds=''
8048         ;;
8049       m68k)
8050             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)'
8051             hardcode_libdir_flag_spec='-L$libdir'
8052             hardcode_minus_L=yes
8053         ;;
8054       esac
8055       ;;
8056
8057     beos*)
8058       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8059         allow_undefined_flag=unsupported
8060         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8061         # support --undefined.  This deserves some investigation.  FIXME
8062         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8063       else
8064         ld_shlibs=no
8065       fi
8066       ;;
8067
8068     cygwin* | mingw* | pw32* | cegcc*)
8069       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8070       # as there is no search path for DLLs.
8071       hardcode_libdir_flag_spec='-L$libdir'
8072       allow_undefined_flag=unsupported
8073       always_export_symbols=no
8074       enable_shared_with_static_runtimes=yes
8075       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8076
8077       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8078         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8079         # If the export-symbols file already is a .def file (1st line
8080         # is EXPORTS), use it as is; otherwise, prepend...
8081         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8082           cp $export_symbols $output_objdir/$soname.def;
8083         else
8084           echo EXPORTS > $output_objdir/$soname.def;
8085           cat $export_symbols >> $output_objdir/$soname.def;
8086         fi~
8087         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8088       else
8089         ld_shlibs=no
8090       fi
8091       ;;
8092
8093     interix[3-9]*)
8094       hardcode_direct=no
8095       hardcode_shlibpath_var=no
8096       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8097       export_dynamic_flag_spec='${wl}-E'
8098       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8099       # Instead, shared libraries are loaded at an image base (0x10000000 by
8100       # default) and relocated if they conflict, which is a slow very memory
8101       # consuming and fragmenting process.  To avoid this, we pick a random,
8102       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8103       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8104       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8105       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'
8106       ;;
8107
8108     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8109       tmp_diet=no
8110       if test "$host_os" = linux-dietlibc; then
8111         case $cc_basename in
8112           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8113         esac
8114       fi
8115       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8116          && test "$tmp_diet" = no
8117       then
8118         tmp_addflag=
8119         tmp_sharedflag='-shared'
8120         case $cc_basename,$host_cpu in
8121         pgcc*)                          # Portland Group C compiler
8122           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'
8123           tmp_addflag=' $pic_flag'
8124           ;;
8125         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8126           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'
8127           tmp_addflag=' $pic_flag -Mnomain' ;;
8128         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8129           tmp_addflag=' -i_dynamic' ;;
8130         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8131           tmp_addflag=' -i_dynamic -nofor_main' ;;
8132         ifc* | ifort*)                  # Intel Fortran compiler
8133           tmp_addflag=' -nofor_main' ;;
8134         lf95*)                          # Lahey Fortran 8.1
8135           whole_archive_flag_spec=
8136           tmp_sharedflag='--shared' ;;
8137         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8138           tmp_sharedflag='-qmkshrobj'
8139           tmp_addflag= ;;
8140         esac
8141         case `$CC -V 2>&1 | sed 5q` in
8142         *Sun\ C*)                       # Sun C 5.9
8143           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'
8144           compiler_needs_object=yes
8145           tmp_sharedflag='-G' ;;
8146         *Sun\ F*)                       # Sun Fortran 8.3
8147           tmp_sharedflag='-G' ;;
8148         esac
8149         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8150
8151         if test "x$supports_anon_versioning" = xyes; then
8152           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8153             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8154             echo "local: *; };" >> $output_objdir/$libname.ver~
8155             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8156         fi
8157
8158         case $cc_basename in
8159         xlf*)
8160           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8161           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8162           hardcode_libdir_flag_spec=
8163           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8164           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8165           if test "x$supports_anon_versioning" = xyes; then
8166             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8167               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8168               echo "local: *; };" >> $output_objdir/$libname.ver~
8169               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8170           fi
8171           ;;
8172         esac
8173       else
8174         ld_shlibs=no
8175       fi
8176       ;;
8177
8178     netbsd* | netbsdelf*-gnu)
8179       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8180         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8181         wlarc=
8182       else
8183         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8184         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8185       fi
8186       ;;
8187
8188     solaris*)
8189       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8190         ld_shlibs=no
8191         cat <<_LT_EOF 1>&2
8192
8193 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8194 *** create shared libraries on Solaris systems.  Therefore, libtool
8195 *** is disabling shared libraries support.  We urge you to upgrade GNU
8196 *** binutils to release 2.9.1 or newer.  Another option is to modify
8197 *** your PATH or compiler configuration so that the native linker is
8198 *** used, and then restart.
8199
8200 _LT_EOF
8201       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8202         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8203         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8204       else
8205         ld_shlibs=no
8206       fi
8207       ;;
8208
8209     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8210       case `$LD -v 2>&1` in
8211         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8212         ld_shlibs=no
8213         cat <<_LT_EOF 1>&2
8214
8215 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8216 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8217 *** is disabling shared libraries support.  We urge you to upgrade GNU
8218 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8219 *** your PATH or compiler configuration so that the native linker is
8220 *** used, and then restart.
8221
8222 _LT_EOF
8223         ;;
8224         *)
8225           # For security reasons, it is highly recommended that you always
8226           # use absolute paths for naming shared libraries, and exclude the
8227           # DT_RUNPATH tag from executables and libraries.  But doing so
8228           # requires that you compile everything twice, which is a pain.
8229           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8230             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8231             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8232             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8233           else
8234             ld_shlibs=no
8235           fi
8236         ;;
8237       esac
8238       ;;
8239
8240     sunos4*)
8241       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8242       wlarc=
8243       hardcode_direct=yes
8244       hardcode_shlibpath_var=no
8245       ;;
8246
8247     *)
8248       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8249         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8250         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8251       else
8252         ld_shlibs=no
8253       fi
8254       ;;
8255     esac
8256
8257     if test "$ld_shlibs" = no; then
8258       runpath_var=
8259       hardcode_libdir_flag_spec=
8260       export_dynamic_flag_spec=
8261       whole_archive_flag_spec=
8262     fi
8263   else
8264     # PORTME fill in a description of your system's linker (not GNU ld)
8265     case $host_os in
8266     aix3*)
8267       allow_undefined_flag=unsupported
8268       always_export_symbols=yes
8269       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'
8270       # Note: this linker hardcodes the directories in LIBPATH if there
8271       # are no directories specified by -L.
8272       hardcode_minus_L=yes
8273       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8274         # Neither direct hardcoding nor static linking is supported with a
8275         # broken collect2.
8276         hardcode_direct=unsupported
8277       fi
8278       ;;
8279
8280     aix[4-9]*)
8281       if test "$host_cpu" = ia64; then
8282         # On IA64, the linker does run time linking by default, so we don't
8283         # have to do anything special.
8284         aix_use_runtimelinking=no
8285         exp_sym_flag='-Bexport'
8286         no_entry_flag=""
8287       else
8288         # If we're using GNU nm, then we don't want the "-C" option.
8289         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8290         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8291           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'
8292         else
8293           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'
8294         fi
8295         aix_use_runtimelinking=no
8296
8297         # Test if we are trying to use run time linking or normal
8298         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8299         # need to do runtime linking.
8300         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8301           for ld_flag in $LDFLAGS; do
8302           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8303             aix_use_runtimelinking=yes
8304             break
8305           fi
8306           done
8307           ;;
8308         esac
8309
8310         exp_sym_flag='-bexport'
8311         no_entry_flag='-bnoentry'
8312       fi
8313
8314       # When large executables or shared objects are built, AIX ld can
8315       # have problems creating the table of contents.  If linking a library
8316       # or program results in "error TOC overflow" add -mminimal-toc to
8317       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8318       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8319
8320       archive_cmds=''
8321       hardcode_direct=yes
8322       hardcode_direct_absolute=yes
8323       hardcode_libdir_separator=':'
8324       link_all_deplibs=yes
8325       file_list_spec='${wl}-f,'
8326
8327       if test "$GCC" = yes; then
8328         case $host_os in aix4.[012]|aix4.[012].*)
8329         # We only want to do this on AIX 4.2 and lower, the check
8330         # below for broken collect2 doesn't work under 4.3+
8331           collect2name=`${CC} -print-prog-name=collect2`
8332           if test -f "$collect2name" &&
8333            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8334           then
8335           # We have reworked collect2
8336           :
8337           else
8338           # We have old collect2
8339           hardcode_direct=unsupported
8340           # It fails to find uninstalled libraries when the uninstalled
8341           # path is not listed in the libpath.  Setting hardcode_minus_L
8342           # to unsupported forces relinking
8343           hardcode_minus_L=yes
8344           hardcode_libdir_flag_spec='-L$libdir'
8345           hardcode_libdir_separator=
8346           fi
8347           ;;
8348         esac
8349         shared_flag='-shared'
8350         if test "$aix_use_runtimelinking" = yes; then
8351           shared_flag="$shared_flag "'${wl}-G'
8352         fi
8353         link_all_deplibs=no
8354       else
8355         # not using gcc
8356         if test "$host_cpu" = ia64; then
8357         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8358         # chokes on -Wl,-G. The following line is correct:
8359           shared_flag='-G'
8360         else
8361           if test "$aix_use_runtimelinking" = yes; then
8362             shared_flag='${wl}-G'
8363           else
8364             shared_flag='${wl}-bM:SRE'
8365           fi
8366         fi
8367       fi
8368
8369       export_dynamic_flag_spec='${wl}-bexpall'
8370       # It seems that -bexpall does not export symbols beginning with
8371       # underscore (_), so it is better to generate a list of symbols to export.
8372       always_export_symbols=yes
8373       if test "$aix_use_runtimelinking" = yes; then
8374         # Warning - without using the other runtime loading flags (-brtl),
8375         # -berok will link without error, but may produce a broken library.
8376         allow_undefined_flag='-berok'
8377         # Determine the default libpath from the value encoded in an
8378         # empty executable.
8379         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380 /* end confdefs.h.  */
8381
8382 int
8383 main ()
8384 {
8385
8386   ;
8387   return 0;
8388 }
8389 _ACEOF
8390 if ac_fn_c_try_link "$LINENO"; then :
8391
8392 lt_aix_libpath_sed='
8393     /Import File Strings/,/^$/ {
8394         /^0/ {
8395             s/^0  *\(.*\)$/\1/
8396             p
8397         }
8398     }'
8399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8400 # Check for a 64-bit object if we didn't find anything.
8401 if test -z "$aix_libpath"; then
8402   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8403 fi
8404 fi
8405 rm -f core conftest.err conftest.$ac_objext \
8406     conftest$ac_exeext conftest.$ac_ext
8407 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8408
8409         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8410         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"
8411       else
8412         if test "$host_cpu" = ia64; then
8413           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8414           allow_undefined_flag="-z nodefs"
8415           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"
8416         else
8417          # Determine the default libpath from the value encoded in an
8418          # empty executable.
8419          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h.  */
8421
8422 int
8423 main ()
8424 {
8425
8426   ;
8427   return 0;
8428 }
8429 _ACEOF
8430 if ac_fn_c_try_link "$LINENO"; then :
8431
8432 lt_aix_libpath_sed='
8433     /Import File Strings/,/^$/ {
8434         /^0/ {
8435             s/^0  *\(.*\)$/\1/
8436             p
8437         }
8438     }'
8439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8440 # Check for a 64-bit object if we didn't find anything.
8441 if test -z "$aix_libpath"; then
8442   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8443 fi
8444 fi
8445 rm -f core conftest.err conftest.$ac_objext \
8446     conftest$ac_exeext conftest.$ac_ext
8447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8448
8449          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8450           # Warning - without using the other run time loading flags,
8451           # -berok will link without error, but may produce a broken library.
8452           no_undefined_flag=' ${wl}-bernotok'
8453           allow_undefined_flag=' ${wl}-berok'
8454           # Exported symbols can be pulled into shared objects from archives
8455           whole_archive_flag_spec='$convenience'
8456           archive_cmds_need_lc=yes
8457           # This is similar to how AIX traditionally builds its shared libraries.
8458           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'
8459         fi
8460       fi
8461       ;;
8462
8463     amigaos*)
8464       case $host_cpu in
8465       powerpc)
8466             # see comment about AmigaOS4 .so support
8467             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8468             archive_expsym_cmds=''
8469         ;;
8470       m68k)
8471             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)'
8472             hardcode_libdir_flag_spec='-L$libdir'
8473             hardcode_minus_L=yes
8474         ;;
8475       esac
8476       ;;
8477
8478     bsdi[45]*)
8479       export_dynamic_flag_spec=-rdynamic
8480       ;;
8481
8482     cygwin* | mingw* | pw32* | cegcc*)
8483       # When not using gcc, we currently assume that we are using
8484       # Microsoft Visual C++.
8485       # hardcode_libdir_flag_spec is actually meaningless, as there is
8486       # no search path for DLLs.
8487       hardcode_libdir_flag_spec=' '
8488       allow_undefined_flag=unsupported
8489       # Tell ltmain to make .lib files, not .a files.
8490       libext=lib
8491       # Tell ltmain to make .dll files, not .so files.
8492       shrext_cmds=".dll"
8493       # FIXME: Setting linknames here is a bad hack.
8494       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8495       # The linker will automatically build a .lib file if we build a DLL.
8496       old_archive_from_new_cmds='true'
8497       # FIXME: Should let the user specify the lib program.
8498       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8499       fix_srcfile_path='`cygpath -w "$srcfile"`'
8500       enable_shared_with_static_runtimes=yes
8501       ;;
8502
8503     darwin* | rhapsody*)
8504
8505
8506   archive_cmds_need_lc=no
8507   hardcode_direct=no
8508   hardcode_automatic=yes
8509   hardcode_shlibpath_var=unsupported
8510   whole_archive_flag_spec=''
8511   link_all_deplibs=yes
8512   allow_undefined_flag="$_lt_dar_allow_undefined"
8513   case $cc_basename in
8514      ifort*) _lt_dar_can_shared=yes ;;
8515      *) _lt_dar_can_shared=$GCC ;;
8516   esac
8517   if test "$_lt_dar_can_shared" = "yes"; then
8518     output_verbose_link_cmd=echo
8519     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8520     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8521     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}"
8522     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}"
8523
8524   else
8525   ld_shlibs=no
8526   fi
8527
8528       ;;
8529
8530     dgux*)
8531       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8532       hardcode_libdir_flag_spec='-L$libdir'
8533       hardcode_shlibpath_var=no
8534       ;;
8535
8536     freebsd1*)
8537       ld_shlibs=no
8538       ;;
8539
8540     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8541     # support.  Future versions do this automatically, but an explicit c++rt0.o
8542     # does not break anything, and helps significantly (at the cost of a little
8543     # extra space).
8544     freebsd2.2*)
8545       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8546       hardcode_libdir_flag_spec='-R$libdir'
8547       hardcode_direct=yes
8548       hardcode_shlibpath_var=no
8549       ;;
8550
8551     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8552     freebsd2*)
8553       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8554       hardcode_direct=yes
8555       hardcode_minus_L=yes
8556       hardcode_shlibpath_var=no
8557       ;;
8558
8559     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8560     freebsd* | dragonfly*)
8561       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8562       hardcode_libdir_flag_spec='-R$libdir'
8563       hardcode_direct=yes
8564       hardcode_shlibpath_var=no
8565       ;;
8566
8567     hpux9*)
8568       if test "$GCC" = yes; then
8569         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'
8570       else
8571         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'
8572       fi
8573       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8574       hardcode_libdir_separator=:
8575       hardcode_direct=yes
8576
8577       # hardcode_minus_L: Not really in the search PATH,
8578       # but as the default location of the library.
8579       hardcode_minus_L=yes
8580       export_dynamic_flag_spec='${wl}-E'
8581       ;;
8582
8583     hpux10*)
8584       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8585         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8586       else
8587         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8588       fi
8589       if test "$with_gnu_ld" = no; then
8590         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8591         hardcode_libdir_flag_spec_ld='+b $libdir'
8592         hardcode_libdir_separator=:
8593         hardcode_direct=yes
8594         hardcode_direct_absolute=yes
8595         export_dynamic_flag_spec='${wl}-E'
8596         # hardcode_minus_L: Not really in the search PATH,
8597         # but as the default location of the library.
8598         hardcode_minus_L=yes
8599       fi
8600       ;;
8601
8602     hpux11*)
8603       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8604         case $host_cpu in
8605         hppa*64*)
8606           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8607           ;;
8608         ia64*)
8609           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8610           ;;
8611         *)
8612           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8613           ;;
8614         esac
8615       else
8616         case $host_cpu in
8617         hppa*64*)
8618           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8619           ;;
8620         ia64*)
8621           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8622           ;;
8623         *)
8624           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8625           ;;
8626         esac
8627       fi
8628       if test "$with_gnu_ld" = no; then
8629         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8630         hardcode_libdir_separator=:
8631
8632         case $host_cpu in
8633         hppa*64*|ia64*)
8634           hardcode_direct=no
8635           hardcode_shlibpath_var=no
8636           ;;
8637         *)
8638           hardcode_direct=yes
8639           hardcode_direct_absolute=yes
8640           export_dynamic_flag_spec='${wl}-E'
8641
8642           # hardcode_minus_L: Not really in the search PATH,
8643           # but as the default location of the library.
8644           hardcode_minus_L=yes
8645           ;;
8646         esac
8647       fi
8648       ;;
8649
8650     irix5* | irix6* | nonstopux*)
8651       if test "$GCC" = yes; then
8652         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'
8653         # Try to use the -exported_symbol ld option, if it does not
8654         # work, assume that -exports_file does not work either and
8655         # implicitly export all symbols.
8656         save_LDFLAGS="$LDFLAGS"
8657         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8658         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h.  */
8660 int foo(void) {}
8661 _ACEOF
8662 if ac_fn_c_try_link "$LINENO"; then :
8663   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'
8664
8665 fi
8666 rm -f core conftest.err conftest.$ac_objext \
8667     conftest$ac_exeext conftest.$ac_ext
8668         LDFLAGS="$save_LDFLAGS"
8669       else
8670         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'
8671         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'
8672       fi
8673       archive_cmds_need_lc='no'
8674       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8675       hardcode_libdir_separator=:
8676       inherit_rpath=yes
8677       link_all_deplibs=yes
8678       ;;
8679
8680     netbsd* | netbsdelf*-gnu)
8681       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8682         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8683       else
8684         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8685       fi
8686       hardcode_libdir_flag_spec='-R$libdir'
8687       hardcode_direct=yes
8688       hardcode_shlibpath_var=no
8689       ;;
8690
8691     newsos6)
8692       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8693       hardcode_direct=yes
8694       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8695       hardcode_libdir_separator=:
8696       hardcode_shlibpath_var=no
8697       ;;
8698
8699     *nto* | *qnx*)
8700       ;;
8701
8702     openbsd*)
8703       if test -f /usr/libexec/ld.so; then
8704         hardcode_direct=yes
8705         hardcode_shlibpath_var=no
8706         hardcode_direct_absolute=yes
8707         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8708           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8709           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8710           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8711           export_dynamic_flag_spec='${wl}-E'
8712         else
8713           case $host_os in
8714            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8715              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8716              hardcode_libdir_flag_spec='-R$libdir'
8717              ;;
8718            *)
8719              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8720              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8721              ;;
8722           esac
8723         fi
8724       else
8725         ld_shlibs=no
8726       fi
8727       ;;
8728
8729     os2*)
8730       hardcode_libdir_flag_spec='-L$libdir'
8731       hardcode_minus_L=yes
8732       allow_undefined_flag=unsupported
8733       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'
8734       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8735       ;;
8736
8737     osf3*)
8738       if test "$GCC" = yes; then
8739         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8740         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'
8741       else
8742         allow_undefined_flag=' -expect_unresolved \*'
8743         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'
8744       fi
8745       archive_cmds_need_lc='no'
8746       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8747       hardcode_libdir_separator=:
8748       ;;
8749
8750     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8751       if test "$GCC" = yes; then
8752         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8753         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'
8754         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8755       else
8756         allow_undefined_flag=' -expect_unresolved \*'
8757         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'
8758         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~
8759         $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'
8760
8761         # Both c and cxx compiler support -rpath directly
8762         hardcode_libdir_flag_spec='-rpath $libdir'
8763       fi
8764       archive_cmds_need_lc='no'
8765       hardcode_libdir_separator=:
8766       ;;
8767
8768     solaris*)
8769       no_undefined_flag=' -z defs'
8770       if test "$GCC" = yes; then
8771         wlarc='${wl}'
8772         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8773         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8774           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8775       else
8776         case `$CC -V 2>&1` in
8777         *"Compilers 5.0"*)
8778           wlarc=''
8779           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8780           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8781           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8782           ;;
8783         *)
8784           wlarc='${wl}'
8785           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8786           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8787           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8788           ;;
8789         esac
8790       fi
8791       hardcode_libdir_flag_spec='-R$libdir'
8792       hardcode_shlibpath_var=no
8793       case $host_os in
8794       solaris2.[0-5] | solaris2.[0-5].*) ;;
8795       *)
8796         # The compiler driver will combine and reorder linker options,
8797         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8798         # but is careful enough not to reorder.
8799         # Supported since Solaris 2.6 (maybe 2.5.1?)
8800         if test "$GCC" = yes; then
8801           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8802         else
8803           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8804         fi
8805         ;;
8806       esac
8807       link_all_deplibs=yes
8808       ;;
8809
8810     sunos4*)
8811       if test "x$host_vendor" = xsequent; then
8812         # Use $CC to link under sequent, because it throws in some extra .o
8813         # files that make .init and .fini sections work.
8814         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8815       else
8816         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8817       fi
8818       hardcode_libdir_flag_spec='-L$libdir'
8819       hardcode_direct=yes
8820       hardcode_minus_L=yes
8821       hardcode_shlibpath_var=no
8822       ;;
8823
8824     sysv4)
8825       case $host_vendor in
8826         sni)
8827           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8828           hardcode_direct=yes # is this really true???
8829         ;;
8830         siemens)
8831           ## LD is ld it makes a PLAMLIB
8832           ## CC just makes a GrossModule.
8833           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8834           reload_cmds='$CC -r -o $output$reload_objs'
8835           hardcode_direct=no
8836         ;;
8837         motorola)
8838           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8839           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8840         ;;
8841       esac
8842       runpath_var='LD_RUN_PATH'
8843       hardcode_shlibpath_var=no
8844       ;;
8845
8846     sysv4.3*)
8847       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848       hardcode_shlibpath_var=no
8849       export_dynamic_flag_spec='-Bexport'
8850       ;;
8851
8852     sysv4*MP*)
8853       if test -d /usr/nec; then
8854         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8855         hardcode_shlibpath_var=no
8856         runpath_var=LD_RUN_PATH
8857         hardcode_runpath_var=yes
8858         ld_shlibs=yes
8859       fi
8860       ;;
8861
8862     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8863       no_undefined_flag='${wl}-z,text'
8864       archive_cmds_need_lc=no
8865       hardcode_shlibpath_var=no
8866       runpath_var='LD_RUN_PATH'
8867
8868       if test "$GCC" = yes; then
8869         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8870         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8871       else
8872         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8873         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8874       fi
8875       ;;
8876
8877     sysv5* | sco3.2v5* | sco5v6*)
8878       # Note: We can NOT use -z defs as we might desire, because we do not
8879       # link with -lc, and that would cause any symbols used from libc to
8880       # always be unresolved, which means just about no library would
8881       # ever link correctly.  If we're not using GNU ld we use -z text
8882       # though, which does catch some bad symbols but isn't as heavy-handed
8883       # as -z defs.
8884       no_undefined_flag='${wl}-z,text'
8885       allow_undefined_flag='${wl}-z,nodefs'
8886       archive_cmds_need_lc=no
8887       hardcode_shlibpath_var=no
8888       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8889       hardcode_libdir_separator=':'
8890       link_all_deplibs=yes
8891       export_dynamic_flag_spec='${wl}-Bexport'
8892       runpath_var='LD_RUN_PATH'
8893
8894       if test "$GCC" = yes; then
8895         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8896         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8897       else
8898         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8899         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8900       fi
8901       ;;
8902
8903     uts4*)
8904       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905       hardcode_libdir_flag_spec='-L$libdir'
8906       hardcode_shlibpath_var=no
8907       ;;
8908
8909     *)
8910       ld_shlibs=no
8911       ;;
8912     esac
8913
8914     if test x$host_vendor = xsni; then
8915       case $host in
8916       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8917         export_dynamic_flag_spec='${wl}-Blargedynsym'
8918         ;;
8919       esac
8920     fi
8921   fi
8922
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8924 $as_echo "$ld_shlibs" >&6; }
8925 test "$ld_shlibs" = no && can_build_shared=no
8926
8927 with_gnu_ld=$with_gnu_ld
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943 #
8944 # Do we need to explicitly link libc?
8945 #
8946 case "x$archive_cmds_need_lc" in
8947 x|xyes)
8948   # Assume -lc should be added
8949   archive_cmds_need_lc=yes
8950
8951   if test "$enable_shared" = yes && test "$GCC" = yes; then
8952     case $archive_cmds in
8953     *'~'*)
8954       # FIXME: we may have to deal with multi-command sequences.
8955       ;;
8956     '$CC '*)
8957       # Test whether the compiler implicitly links with -lc since on some
8958       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8959       # to ld, don't add -lc before -lgcc.
8960       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8961 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8962       $RM conftest*
8963       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8964
8965       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8966   (eval $ac_compile) 2>&5
8967   ac_status=$?
8968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8969   test $ac_status = 0; } 2>conftest.err; then
8970         soname=conftest
8971         lib=conftest
8972         libobjs=conftest.$ac_objext
8973         deplibs=
8974         wl=$lt_prog_compiler_wl
8975         pic_flag=$lt_prog_compiler_pic
8976         compiler_flags=-v
8977         linker_flags=-v
8978         verstring=
8979         output_objdir=.
8980         libname=conftest
8981         lt_save_allow_undefined_flag=$allow_undefined_flag
8982         allow_undefined_flag=
8983         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8984   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8985   ac_status=$?
8986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8987   test $ac_status = 0; }
8988         then
8989           archive_cmds_need_lc=no
8990         else
8991           archive_cmds_need_lc=yes
8992         fi
8993         allow_undefined_flag=$lt_save_allow_undefined_flag
8994       else
8995         cat conftest.err 1>&5
8996       fi
8997       $RM conftest*
8998       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8999 $as_echo "$archive_cmds_need_lc" >&6; }
9000       ;;
9001     esac
9002   fi
9003   ;;
9004 esac
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9163 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9164
9165 if test "$GCC" = yes; then
9166   case $host_os in
9167     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9168     *) lt_awk_arg="/^libraries:/" ;;
9169   esac
9170   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9171   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9172     # if the path contains ";" then we assume it to be the separator
9173     # otherwise default to the standard path separator (i.e. ":") - it is
9174     # assumed that no part of a normal pathname contains ";" but that should
9175     # okay in the real world where ";" in dirpaths is itself problematic.
9176     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9177   else
9178     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9179   fi
9180   # Ok, now we have the path, separated by spaces, we can step through it
9181   # and add multilib dir if necessary.
9182   lt_tmp_lt_search_path_spec=
9183   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9184   for lt_sys_path in $lt_search_path_spec; do
9185     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9186       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9187     else
9188       test -d "$lt_sys_path" && \
9189         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9190     fi
9191   done
9192   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9193 BEGIN {RS=" "; FS="/|\n";} {
9194   lt_foo="";
9195   lt_count=0;
9196   for (lt_i = NF; lt_i > 0; lt_i--) {
9197     if ($lt_i != "" && $lt_i != ".") {
9198       if ($lt_i == "..") {
9199         lt_count++;
9200       } else {
9201         if (lt_count == 0) {
9202           lt_foo="/" $lt_i lt_foo;
9203         } else {
9204           lt_count--;
9205         }
9206       }
9207     }
9208   }
9209   if (lt_foo != "") { lt_freq[lt_foo]++; }
9210   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9211 }'`
9212   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9213 else
9214   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9215 fi
9216 library_names_spec=
9217 libname_spec='lib$name'
9218 soname_spec=
9219 shrext_cmds=".so"
9220 postinstall_cmds=
9221 postuninstall_cmds=
9222 finish_cmds=
9223 finish_eval=
9224 shlibpath_var=
9225 shlibpath_overrides_runpath=unknown
9226 version_type=none
9227 dynamic_linker="$host_os ld.so"
9228 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9229 need_lib_prefix=unknown
9230 hardcode_into_libs=no
9231
9232 # when you set need_version to no, make sure it does not cause -set_version
9233 # flags to be left without arguments
9234 need_version=unknown
9235
9236 case $host_os in
9237 aix3*)
9238   version_type=linux
9239   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9240   shlibpath_var=LIBPATH
9241
9242   # AIX 3 has no versioning support, so we append a major version to the name.
9243   soname_spec='${libname}${release}${shared_ext}$major'
9244   ;;
9245
9246 aix[4-9]*)
9247   version_type=linux
9248   need_lib_prefix=no
9249   need_version=no
9250   hardcode_into_libs=yes
9251   if test "$host_cpu" = ia64; then
9252     # AIX 5 supports IA64
9253     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9254     shlibpath_var=LD_LIBRARY_PATH
9255   else
9256     # With GCC up to 2.95.x, collect2 would create an import file
9257     # for dependence libraries.  The import file would start with
9258     # the line `#! .'.  This would cause the generated library to
9259     # depend on `.', always an invalid library.  This was fixed in
9260     # development snapshots of GCC prior to 3.0.
9261     case $host_os in
9262       aix4 | aix4.[01] | aix4.[01].*)
9263       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9264            echo ' yes '
9265            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9266         :
9267       else
9268         can_build_shared=no
9269       fi
9270       ;;
9271     esac
9272     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9273     # soname into executable. Probably we can add versioning support to
9274     # collect2, so additional links can be useful in future.
9275     if test "$aix_use_runtimelinking" = yes; then
9276       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9277       # instead of lib<name>.a to let people know that these are not
9278       # typical AIX shared libraries.
9279       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280     else
9281       # We preserve .a as extension for shared libraries through AIX4.2
9282       # and later when we are not doing run time linking.
9283       library_names_spec='${libname}${release}.a $libname.a'
9284       soname_spec='${libname}${release}${shared_ext}$major'
9285     fi
9286     shlibpath_var=LIBPATH
9287   fi
9288   ;;
9289
9290 amigaos*)
9291   case $host_cpu in
9292   powerpc)
9293     # Since July 2007 AmigaOS4 officially supports .so libraries.
9294     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296     ;;
9297   m68k)
9298     library_names_spec='$libname.ixlibrary $libname.a'
9299     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9300     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'
9301     ;;
9302   esac
9303   ;;
9304
9305 beos*)
9306   library_names_spec='${libname}${shared_ext}'
9307   dynamic_linker="$host_os ld.so"
9308   shlibpath_var=LIBRARY_PATH
9309   ;;
9310
9311 bsdi[45]*)
9312   version_type=linux
9313   need_version=no
9314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315   soname_spec='${libname}${release}${shared_ext}$major'
9316   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9317   shlibpath_var=LD_LIBRARY_PATH
9318   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9319   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9320   # the default ld.so.conf also contains /usr/contrib/lib and
9321   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9322   # libtool to hard-code these into programs
9323   ;;
9324
9325 cygwin* | mingw* | pw32* | cegcc*)
9326   version_type=windows
9327   shrext_cmds=".dll"
9328   need_version=no
9329   need_lib_prefix=no
9330
9331   case $GCC,$host_os in
9332   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9333     library_names_spec='$libname.dll.a'
9334     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9335     postinstall_cmds='base_file=`basename \${file}`~
9336       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9337       dldir=$destdir/`dirname \$dlpath`~
9338       test -d \$dldir || mkdir -p \$dldir~
9339       $install_prog $dir/$dlname \$dldir/$dlname~
9340       chmod a+x \$dldir/$dlname~
9341       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9342         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9343       fi'
9344     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9345       dlpath=$dir/\$dldll~
9346        $RM \$dlpath'
9347     shlibpath_overrides_runpath=yes
9348
9349     case $host_os in
9350     cygwin*)
9351       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9352       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9353       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9354       ;;
9355     mingw* | cegcc*)
9356       # MinGW DLLs use traditional 'lib' prefix
9357       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9358       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9359       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9360         # It is most probably a Windows format PATH printed by
9361         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9362         # path with ; separators, and with drive letters. We can handle the
9363         # drive letters (cygwin fileutils understands them), so leave them,
9364         # especially as we might pass files found there to a mingw objdump,
9365         # which wouldn't understand a cygwinified path. Ahh.
9366         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9367       else
9368         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9369       fi
9370       ;;
9371     pw32*)
9372       # pw32 DLLs use 'pw' prefix rather than 'lib'
9373       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9374       ;;
9375     esac
9376     ;;
9377
9378   *)
9379     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9380     ;;
9381   esac
9382   dynamic_linker='Win32 ld.exe'
9383   # FIXME: first we should search . and the directory the executable is in
9384   shlibpath_var=PATH
9385   ;;
9386
9387 darwin* | rhapsody*)
9388   dynamic_linker="$host_os dyld"
9389   version_type=darwin
9390   need_lib_prefix=no
9391   need_version=no
9392   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9393   soname_spec='${libname}${release}${major}$shared_ext'
9394   shlibpath_overrides_runpath=yes
9395   shlibpath_var=DYLD_LIBRARY_PATH
9396   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9397
9398   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9399   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9400   ;;
9401
9402 dgux*)
9403   version_type=linux
9404   need_lib_prefix=no
9405   need_version=no
9406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9407   soname_spec='${libname}${release}${shared_ext}$major'
9408   shlibpath_var=LD_LIBRARY_PATH
9409   ;;
9410
9411 freebsd1*)
9412   dynamic_linker=no
9413   ;;
9414
9415 freebsd* | dragonfly*)
9416   # DragonFly does not have aout.  When/if they implement a new
9417   # versioning mechanism, adjust this.
9418   if test -x /usr/bin/objformat; then
9419     objformat=`/usr/bin/objformat`
9420   else
9421     case $host_os in
9422     freebsd[123]*) objformat=aout ;;
9423     *) objformat=elf ;;
9424     esac
9425   fi
9426   version_type=freebsd-$objformat
9427   case $version_type in
9428     freebsd-elf*)
9429       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9430       need_version=no
9431       need_lib_prefix=no
9432       ;;
9433     freebsd-*)
9434       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9435       need_version=yes
9436       ;;
9437   esac
9438   shlibpath_var=LD_LIBRARY_PATH
9439   case $host_os in
9440   freebsd2*)
9441     shlibpath_overrides_runpath=yes
9442     ;;
9443   freebsd3.[01]* | freebsdelf3.[01]*)
9444     shlibpath_overrides_runpath=yes
9445     hardcode_into_libs=yes
9446     ;;
9447   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9448   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9449     shlibpath_overrides_runpath=no
9450     hardcode_into_libs=yes
9451     ;;
9452   *) # from 4.6 on, and DragonFly
9453     shlibpath_overrides_runpath=yes
9454     hardcode_into_libs=yes
9455     ;;
9456   esac
9457   ;;
9458
9459 gnu*)
9460   version_type=linux
9461   need_lib_prefix=no
9462   need_version=no
9463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9464   soname_spec='${libname}${release}${shared_ext}$major'
9465   shlibpath_var=LD_LIBRARY_PATH
9466   hardcode_into_libs=yes
9467   ;;
9468
9469 hpux9* | hpux10* | hpux11*)
9470   # Give a soname corresponding to the major version so that dld.sl refuses to
9471   # link against other versions.
9472   version_type=sunos
9473   need_lib_prefix=no
9474   need_version=no
9475   case $host_cpu in
9476   ia64*)
9477     shrext_cmds='.so'
9478     hardcode_into_libs=yes
9479     dynamic_linker="$host_os dld.so"
9480     shlibpath_var=LD_LIBRARY_PATH
9481     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9482     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483     soname_spec='${libname}${release}${shared_ext}$major'
9484     if test "X$HPUX_IA64_MODE" = X32; then
9485       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9486     else
9487       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9488     fi
9489     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9490     ;;
9491   hppa*64*)
9492     shrext_cmds='.sl'
9493     hardcode_into_libs=yes
9494     dynamic_linker="$host_os dld.sl"
9495     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9496     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9497     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498     soname_spec='${libname}${release}${shared_ext}$major'
9499     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9500     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9501     ;;
9502   *)
9503     shrext_cmds='.sl'
9504     dynamic_linker="$host_os dld.sl"
9505     shlibpath_var=SHLIB_PATH
9506     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9507     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508     soname_spec='${libname}${release}${shared_ext}$major'
9509     ;;
9510   esac
9511   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9512   postinstall_cmds='chmod 555 $lib'
9513   ;;
9514
9515 interix[3-9]*)
9516   version_type=linux
9517   need_lib_prefix=no
9518   need_version=no
9519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9520   soname_spec='${libname}${release}${shared_ext}$major'
9521   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9522   shlibpath_var=LD_LIBRARY_PATH
9523   shlibpath_overrides_runpath=no
9524   hardcode_into_libs=yes
9525   ;;
9526
9527 irix5* | irix6* | nonstopux*)
9528   case $host_os in
9529     nonstopux*) version_type=nonstopux ;;
9530     *)
9531         if test "$lt_cv_prog_gnu_ld" = yes; then
9532                 version_type=linux
9533         else
9534                 version_type=irix
9535         fi ;;
9536   esac
9537   need_lib_prefix=no
9538   need_version=no
9539   soname_spec='${libname}${release}${shared_ext}$major'
9540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9541   case $host_os in
9542   irix5* | nonstopux*)
9543     libsuff= shlibsuff=
9544     ;;
9545   *)
9546     case $LD in # libtool.m4 will add one of these switches to LD
9547     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9548       libsuff= shlibsuff= libmagic=32-bit;;
9549     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9550       libsuff=32 shlibsuff=N32 libmagic=N32;;
9551     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9552       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9553     *) libsuff= shlibsuff= libmagic=never-match;;
9554     esac
9555     ;;
9556   esac
9557   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9558   shlibpath_overrides_runpath=no
9559   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9560   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9561   hardcode_into_libs=yes
9562   ;;
9563
9564 # No shared lib support for Linux oldld, aout, or coff.
9565 linux*oldld* | linux*aout* | linux*coff*)
9566   dynamic_linker=no
9567   ;;
9568
9569 # This must be Linux ELF.
9570 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9571   version_type=linux
9572   need_lib_prefix=no
9573   need_version=no
9574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9575   soname_spec='${libname}${release}${shared_ext}$major'
9576   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9577   shlibpath_var=LD_LIBRARY_PATH
9578   shlibpath_overrides_runpath=no
9579   # Some binutils ld are patched to set DT_RUNPATH
9580   save_LDFLAGS=$LDFLAGS
9581   save_libdir=$libdir
9582   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9583        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h.  */
9586
9587 int
9588 main ()
9589 {
9590
9591   ;
9592   return 0;
9593 }
9594 _ACEOF
9595 if ac_fn_c_try_link "$LINENO"; then :
9596   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9597   shlibpath_overrides_runpath=yes
9598 fi
9599 fi
9600 rm -f core conftest.err conftest.$ac_objext \
9601     conftest$ac_exeext conftest.$ac_ext
9602   LDFLAGS=$save_LDFLAGS
9603   libdir=$save_libdir
9604
9605   # This implies no fast_install, which is unacceptable.
9606   # Some rework will be needed to allow for fast_install
9607   # before this can be enabled.
9608   hardcode_into_libs=yes
9609
9610   # Append ld.so.conf contents to the search path
9611   if test -f /etc/ld.so.conf; then
9612     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' ' '`
9613     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9614   fi
9615
9616   # We used to test for /lib/ld.so.1 and disable shared libraries on
9617   # powerpc, because MkLinux only supported shared libraries with the
9618   # GNU dynamic linker.  Since this was broken with cross compilers,
9619   # most powerpc-linux boxes support dynamic linking these days and
9620   # people can always --disable-shared, the test was removed, and we
9621   # assume the GNU/Linux dynamic linker is in use.
9622   dynamic_linker='GNU/Linux ld.so'
9623   ;;
9624
9625 netbsdelf*-gnu)
9626   version_type=linux
9627   need_lib_prefix=no
9628   need_version=no
9629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9630   soname_spec='${libname}${release}${shared_ext}$major'
9631   shlibpath_var=LD_LIBRARY_PATH
9632   shlibpath_overrides_runpath=no
9633   hardcode_into_libs=yes
9634   dynamic_linker='NetBSD ld.elf_so'
9635   ;;
9636
9637 netbsd*)
9638   version_type=sunos
9639   need_lib_prefix=no
9640   need_version=no
9641   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9642     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9643     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9644     dynamic_linker='NetBSD (a.out) ld.so'
9645   else
9646     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9647     soname_spec='${libname}${release}${shared_ext}$major'
9648     dynamic_linker='NetBSD ld.elf_so'
9649   fi
9650   shlibpath_var=LD_LIBRARY_PATH
9651   shlibpath_overrides_runpath=yes
9652   hardcode_into_libs=yes
9653   ;;
9654
9655 newsos6)
9656   version_type=linux
9657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658   shlibpath_var=LD_LIBRARY_PATH
9659   shlibpath_overrides_runpath=yes
9660   ;;
9661
9662 *nto* | *qnx*)
9663   version_type=qnx
9664   need_lib_prefix=no
9665   need_version=no
9666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667   soname_spec='${libname}${release}${shared_ext}$major'
9668   shlibpath_var=LD_LIBRARY_PATH
9669   shlibpath_overrides_runpath=no
9670   hardcode_into_libs=yes
9671   dynamic_linker='ldqnx.so'
9672   ;;
9673
9674 openbsd*)
9675   version_type=sunos
9676   sys_lib_dlsearch_path_spec="/usr/lib"
9677   need_lib_prefix=no
9678   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9679   case $host_os in
9680     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9681     *)                          need_version=no  ;;
9682   esac
9683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9684   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9685   shlibpath_var=LD_LIBRARY_PATH
9686   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9687     case $host_os in
9688       openbsd2.[89] | openbsd2.[89].*)
9689         shlibpath_overrides_runpath=no
9690         ;;
9691       *)
9692         shlibpath_overrides_runpath=yes
9693         ;;
9694       esac
9695   else
9696     shlibpath_overrides_runpath=yes
9697   fi
9698   ;;
9699
9700 os2*)
9701   libname_spec='$name'
9702   shrext_cmds=".dll"
9703   need_lib_prefix=no
9704   library_names_spec='$libname${shared_ext} $libname.a'
9705   dynamic_linker='OS/2 ld.exe'
9706   shlibpath_var=LIBPATH
9707   ;;
9708
9709 osf3* | osf4* | osf5*)
9710   version_type=osf
9711   need_lib_prefix=no
9712   need_version=no
9713   soname_spec='${libname}${release}${shared_ext}$major'
9714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9715   shlibpath_var=LD_LIBRARY_PATH
9716   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9717   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9718   ;;
9719
9720 rdos*)
9721   dynamic_linker=no
9722   ;;
9723
9724 solaris*)
9725   version_type=linux
9726   need_lib_prefix=no
9727   need_version=no
9728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9729   soname_spec='${libname}${release}${shared_ext}$major'
9730   shlibpath_var=LD_LIBRARY_PATH
9731   shlibpath_overrides_runpath=yes
9732   hardcode_into_libs=yes
9733   # ldd complains unless libraries are executable
9734   postinstall_cmds='chmod +x $lib'
9735   ;;
9736
9737 sunos4*)
9738   version_type=sunos
9739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9740   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9741   shlibpath_var=LD_LIBRARY_PATH
9742   shlibpath_overrides_runpath=yes
9743   if test "$with_gnu_ld" = yes; then
9744     need_lib_prefix=no
9745   fi
9746   need_version=yes
9747   ;;
9748
9749 sysv4 | sysv4.3*)
9750   version_type=linux
9751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752   soname_spec='${libname}${release}${shared_ext}$major'
9753   shlibpath_var=LD_LIBRARY_PATH
9754   case $host_vendor in
9755     sni)
9756       shlibpath_overrides_runpath=no
9757       need_lib_prefix=no
9758       runpath_var=LD_RUN_PATH
9759       ;;
9760     siemens)
9761       need_lib_prefix=no
9762       ;;
9763     motorola)
9764       need_lib_prefix=no
9765       need_version=no
9766       shlibpath_overrides_runpath=no
9767       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9768       ;;
9769   esac
9770   ;;
9771
9772 sysv4*MP*)
9773   if test -d /usr/nec ;then
9774     version_type=linux
9775     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9776     soname_spec='$libname${shared_ext}.$major'
9777     shlibpath_var=LD_LIBRARY_PATH
9778   fi
9779   ;;
9780
9781 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9782   version_type=freebsd-elf
9783   need_lib_prefix=no
9784   need_version=no
9785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9786   soname_spec='${libname}${release}${shared_ext}$major'
9787   shlibpath_var=LD_LIBRARY_PATH
9788   shlibpath_overrides_runpath=yes
9789   hardcode_into_libs=yes
9790   if test "$with_gnu_ld" = yes; then
9791     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9792   else
9793     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9794     case $host_os in
9795       sco3.2v5*)
9796         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9797         ;;
9798     esac
9799   fi
9800   sys_lib_dlsearch_path_spec='/usr/lib'
9801   ;;
9802
9803 tpf*)
9804   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9805   version_type=linux
9806   need_lib_prefix=no
9807   need_version=no
9808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9809   shlibpath_var=LD_LIBRARY_PATH
9810   shlibpath_overrides_runpath=no
9811   hardcode_into_libs=yes
9812   ;;
9813
9814 uts4*)
9815   version_type=linux
9816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817   soname_spec='${libname}${release}${shared_ext}$major'
9818   shlibpath_var=LD_LIBRARY_PATH
9819   ;;
9820
9821 *)
9822   dynamic_linker=no
9823   ;;
9824 esac
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9826 $as_echo "$dynamic_linker" >&6; }
9827 test "$dynamic_linker" = no && can_build_shared=no
9828
9829 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9830 if test "$GCC" = yes; then
9831   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9832 fi
9833
9834 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9835   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9836 fi
9837 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9838   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9839 fi
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9928 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9929 hardcode_action=
9930 if test -n "$hardcode_libdir_flag_spec" ||
9931    test -n "$runpath_var" ||
9932    test "X$hardcode_automatic" = "Xyes" ; then
9933
9934   # We can hardcode non-existent directories.
9935   if test "$hardcode_direct" != no &&
9936      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9937      # have to relink, otherwise we might link with an installed library
9938      # when we should be linking with a yet-to-be-installed one
9939      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9940      test "$hardcode_minus_L" != no; then
9941     # Linking always hardcodes the temporary library directory.
9942     hardcode_action=relink
9943   else
9944     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9945     hardcode_action=immediate
9946   fi
9947 else
9948   # We cannot hardcode anything, or else we can only hardcode existing
9949   # directories.
9950   hardcode_action=unsupported
9951 fi
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9953 $as_echo "$hardcode_action" >&6; }
9954
9955 if test "$hardcode_action" = relink ||
9956    test "$inherit_rpath" = yes; then
9957   # Fast installation is not supported
9958   enable_fast_install=no
9959 elif test "$shlibpath_overrides_runpath" = yes ||
9960      test "$enable_shared" = no; then
9961   # Fast installation is not necessary
9962   enable_fast_install=needless
9963 fi
9964
9965
9966
9967
9968
9969
9970   if test "x$enable_dlopen" != xyes; then
9971   enable_dlopen=unknown
9972   enable_dlopen_self=unknown
9973   enable_dlopen_self_static=unknown
9974 else
9975   lt_cv_dlopen=no
9976   lt_cv_dlopen_libs=
9977
9978   case $host_os in
9979   beos*)
9980     lt_cv_dlopen="load_add_on"
9981     lt_cv_dlopen_libs=
9982     lt_cv_dlopen_self=yes
9983     ;;
9984
9985   mingw* | pw32* | cegcc*)
9986     lt_cv_dlopen="LoadLibrary"
9987     lt_cv_dlopen_libs=
9988     ;;
9989
9990   cygwin*)
9991     lt_cv_dlopen="dlopen"
9992     lt_cv_dlopen_libs=
9993     ;;
9994
9995   darwin*)
9996   # if libdl is installed we need to link against it
9997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9998 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9999 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10000   $as_echo_n "(cached) " >&6
10001 else
10002   ac_check_lib_save_LIBS=$LIBS
10003 LIBS="-ldl  $LIBS"
10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h.  */
10006
10007 /* Override any GCC internal prototype to avoid an error.
10008    Use char because int might match the return type of a GCC
10009    builtin and then its argument prototype would still apply.  */
10010 #ifdef __cplusplus
10011 extern "C"
10012 #endif
10013 char dlopen ();
10014 int
10015 main ()
10016 {
10017 return dlopen ();
10018   ;
10019   return 0;
10020 }
10021 _ACEOF
10022 if ac_fn_c_try_link "$LINENO"; then :
10023   ac_cv_lib_dl_dlopen=yes
10024 else
10025   ac_cv_lib_dl_dlopen=no
10026 fi
10027 rm -f core conftest.err conftest.$ac_objext \
10028     conftest$ac_exeext conftest.$ac_ext
10029 LIBS=$ac_check_lib_save_LIBS
10030 fi
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10032 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10033 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10034   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10035 else
10036
10037     lt_cv_dlopen="dyld"
10038     lt_cv_dlopen_libs=
10039     lt_cv_dlopen_self=yes
10040
10041 fi
10042
10043     ;;
10044
10045   *)
10046     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10047 if test "x$ac_cv_func_shl_load" = x""yes; then :
10048   lt_cv_dlopen="shl_load"
10049 else
10050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10051 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10052 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10053   $as_echo_n "(cached) " >&6
10054 else
10055   ac_check_lib_save_LIBS=$LIBS
10056 LIBS="-ldld  $LIBS"
10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058 /* end confdefs.h.  */
10059
10060 /* Override any GCC internal prototype to avoid an error.
10061    Use char because int might match the return type of a GCC
10062    builtin and then its argument prototype would still apply.  */
10063 #ifdef __cplusplus
10064 extern "C"
10065 #endif
10066 char shl_load ();
10067 int
10068 main ()
10069 {
10070 return shl_load ();
10071   ;
10072   return 0;
10073 }
10074 _ACEOF
10075 if ac_fn_c_try_link "$LINENO"; then :
10076   ac_cv_lib_dld_shl_load=yes
10077 else
10078   ac_cv_lib_dld_shl_load=no
10079 fi
10080 rm -f core conftest.err conftest.$ac_objext \
10081     conftest$ac_exeext conftest.$ac_ext
10082 LIBS=$ac_check_lib_save_LIBS
10083 fi
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10085 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10086 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10087   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10088 else
10089   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10090 if test "x$ac_cv_func_dlopen" = x""yes; then :
10091   lt_cv_dlopen="dlopen"
10092 else
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10094 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10095 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10096   $as_echo_n "(cached) " >&6
10097 else
10098   ac_check_lib_save_LIBS=$LIBS
10099 LIBS="-ldl  $LIBS"
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h.  */
10102
10103 /* Override any GCC internal prototype to avoid an error.
10104    Use char because int might match the return type of a GCC
10105    builtin and then its argument prototype would still apply.  */
10106 #ifdef __cplusplus
10107 extern "C"
10108 #endif
10109 char dlopen ();
10110 int
10111 main ()
10112 {
10113 return dlopen ();
10114   ;
10115   return 0;
10116 }
10117 _ACEOF
10118 if ac_fn_c_try_link "$LINENO"; then :
10119   ac_cv_lib_dl_dlopen=yes
10120 else
10121   ac_cv_lib_dl_dlopen=no
10122 fi
10123 rm -f core conftest.err conftest.$ac_objext \
10124     conftest$ac_exeext conftest.$ac_ext
10125 LIBS=$ac_check_lib_save_LIBS
10126 fi
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10128 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10129 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10130   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10131 else
10132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10133 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10134 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10135   $as_echo_n "(cached) " >&6
10136 else
10137   ac_check_lib_save_LIBS=$LIBS
10138 LIBS="-lsvld  $LIBS"
10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10140 /* end confdefs.h.  */
10141
10142 /* Override any GCC internal prototype to avoid an error.
10143    Use char because int might match the return type of a GCC
10144    builtin and then its argument prototype would still apply.  */
10145 #ifdef __cplusplus
10146 extern "C"
10147 #endif
10148 char dlopen ();
10149 int
10150 main ()
10151 {
10152 return dlopen ();
10153   ;
10154   return 0;
10155 }
10156 _ACEOF
10157 if ac_fn_c_try_link "$LINENO"; then :
10158   ac_cv_lib_svld_dlopen=yes
10159 else
10160   ac_cv_lib_svld_dlopen=no
10161 fi
10162 rm -f core conftest.err conftest.$ac_objext \
10163     conftest$ac_exeext conftest.$ac_ext
10164 LIBS=$ac_check_lib_save_LIBS
10165 fi
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10167 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10168 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10169   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10170 else
10171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10172 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10173 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10174   $as_echo_n "(cached) " >&6
10175 else
10176   ac_check_lib_save_LIBS=$LIBS
10177 LIBS="-ldld  $LIBS"
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h.  */
10180
10181 /* Override any GCC internal prototype to avoid an error.
10182    Use char because int might match the return type of a GCC
10183    builtin and then its argument prototype would still apply.  */
10184 #ifdef __cplusplus
10185 extern "C"
10186 #endif
10187 char dld_link ();
10188 int
10189 main ()
10190 {
10191 return dld_link ();
10192   ;
10193   return 0;
10194 }
10195 _ACEOF
10196 if ac_fn_c_try_link "$LINENO"; then :
10197   ac_cv_lib_dld_dld_link=yes
10198 else
10199   ac_cv_lib_dld_dld_link=no
10200 fi
10201 rm -f core conftest.err conftest.$ac_objext \
10202     conftest$ac_exeext conftest.$ac_ext
10203 LIBS=$ac_check_lib_save_LIBS
10204 fi
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10206 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10207 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10208   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10209 fi
10210
10211
10212 fi
10213
10214
10215 fi
10216
10217
10218 fi
10219
10220
10221 fi
10222
10223
10224 fi
10225
10226     ;;
10227   esac
10228
10229   if test "x$lt_cv_dlopen" != xno; then
10230     enable_dlopen=yes
10231   else
10232     enable_dlopen=no
10233   fi
10234
10235   case $lt_cv_dlopen in
10236   dlopen)
10237     save_CPPFLAGS="$CPPFLAGS"
10238     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10239
10240     save_LDFLAGS="$LDFLAGS"
10241     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10242
10243     save_LIBS="$LIBS"
10244     LIBS="$lt_cv_dlopen_libs $LIBS"
10245
10246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10247 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10248 if test "${lt_cv_dlopen_self+set}" = set; then :
10249   $as_echo_n "(cached) " >&6
10250 else
10251           if test "$cross_compiling" = yes; then :
10252   lt_cv_dlopen_self=cross
10253 else
10254   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10255   lt_status=$lt_dlunknown
10256   cat > conftest.$ac_ext <<_LT_EOF
10257 #line 10257 "configure"
10258 #include "confdefs.h"
10259
10260 #if HAVE_DLFCN_H
10261 #include <dlfcn.h>
10262 #endif
10263
10264 #include <stdio.h>
10265
10266 #ifdef RTLD_GLOBAL
10267 #  define LT_DLGLOBAL           RTLD_GLOBAL
10268 #else
10269 #  ifdef DL_GLOBAL
10270 #    define LT_DLGLOBAL         DL_GLOBAL
10271 #  else
10272 #    define LT_DLGLOBAL         0
10273 #  endif
10274 #endif
10275
10276 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10277    find out it does not work in some platform. */
10278 #ifndef LT_DLLAZY_OR_NOW
10279 #  ifdef RTLD_LAZY
10280 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10281 #  else
10282 #    ifdef DL_LAZY
10283 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10284 #    else
10285 #      ifdef RTLD_NOW
10286 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10287 #      else
10288 #        ifdef DL_NOW
10289 #          define LT_DLLAZY_OR_NOW      DL_NOW
10290 #        else
10291 #          define LT_DLLAZY_OR_NOW      0
10292 #        endif
10293 #      endif
10294 #    endif
10295 #  endif
10296 #endif
10297
10298 void fnord() { int i=42;}
10299 int main ()
10300 {
10301   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10302   int status = $lt_dlunknown;
10303
10304   if (self)
10305     {
10306       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10307       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10308       /* dlclose (self); */
10309     }
10310   else
10311     puts (dlerror ());
10312
10313   return status;
10314 }
10315 _LT_EOF
10316   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10317   (eval $ac_link) 2>&5
10318   ac_status=$?
10319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10320   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10321     (./conftest; exit; ) >&5 2>/dev/null
10322     lt_status=$?
10323     case x$lt_status in
10324       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10325       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10326       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10327     esac
10328   else :
10329     # compilation failed
10330     lt_cv_dlopen_self=no
10331   fi
10332 fi
10333 rm -fr conftest*
10334
10335
10336 fi
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10338 $as_echo "$lt_cv_dlopen_self" >&6; }
10339
10340     if test "x$lt_cv_dlopen_self" = xyes; then
10341       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10342       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10343 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10344 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10345   $as_echo_n "(cached) " >&6
10346 else
10347           if test "$cross_compiling" = yes; then :
10348   lt_cv_dlopen_self_static=cross
10349 else
10350   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10351   lt_status=$lt_dlunknown
10352   cat > conftest.$ac_ext <<_LT_EOF
10353 #line 10353 "configure"
10354 #include "confdefs.h"
10355
10356 #if HAVE_DLFCN_H
10357 #include <dlfcn.h>
10358 #endif
10359
10360 #include <stdio.h>
10361
10362 #ifdef RTLD_GLOBAL
10363 #  define LT_DLGLOBAL           RTLD_GLOBAL
10364 #else
10365 #  ifdef DL_GLOBAL
10366 #    define LT_DLGLOBAL         DL_GLOBAL
10367 #  else
10368 #    define LT_DLGLOBAL         0
10369 #  endif
10370 #endif
10371
10372 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10373    find out it does not work in some platform. */
10374 #ifndef LT_DLLAZY_OR_NOW
10375 #  ifdef RTLD_LAZY
10376 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10377 #  else
10378 #    ifdef DL_LAZY
10379 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10380 #    else
10381 #      ifdef RTLD_NOW
10382 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10383 #      else
10384 #        ifdef DL_NOW
10385 #          define LT_DLLAZY_OR_NOW      DL_NOW
10386 #        else
10387 #          define LT_DLLAZY_OR_NOW      0
10388 #        endif
10389 #      endif
10390 #    endif
10391 #  endif
10392 #endif
10393
10394 void fnord() { int i=42;}
10395 int main ()
10396 {
10397   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10398   int status = $lt_dlunknown;
10399
10400   if (self)
10401     {
10402       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10403       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10404       /* dlclose (self); */
10405     }
10406   else
10407     puts (dlerror ());
10408
10409   return status;
10410 }
10411 _LT_EOF
10412   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10413   (eval $ac_link) 2>&5
10414   ac_status=$?
10415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10416   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10417     (./conftest; exit; ) >&5 2>/dev/null
10418     lt_status=$?
10419     case x$lt_status in
10420       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10421       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10422       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10423     esac
10424   else :
10425     # compilation failed
10426     lt_cv_dlopen_self_static=no
10427   fi
10428 fi
10429 rm -fr conftest*
10430
10431
10432 fi
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10434 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10435     fi
10436
10437     CPPFLAGS="$save_CPPFLAGS"
10438     LDFLAGS="$save_LDFLAGS"
10439     LIBS="$save_LIBS"
10440     ;;
10441   esac
10442
10443   case $lt_cv_dlopen_self in
10444   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10445   *) enable_dlopen_self=unknown ;;
10446   esac
10447
10448   case $lt_cv_dlopen_self_static in
10449   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10450   *) enable_dlopen_self_static=unknown ;;
10451   esac
10452 fi
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470 striplib=
10471 old_striplib=
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10473 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10474 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10475   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10476   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10478 $as_echo "yes" >&6; }
10479 else
10480 # FIXME - insert some real tests, host_os isn't really good enough
10481   case $host_os in
10482   darwin*)
10483     if test -n "$STRIP" ; then
10484       striplib="$STRIP -x"
10485       old_striplib="$STRIP -S"
10486       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10487 $as_echo "yes" >&6; }
10488     else
10489       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490 $as_echo "no" >&6; }
10491     fi
10492     ;;
10493   *)
10494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; }
10496     ;;
10497   esac
10498 fi
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511   # Report which library types will actually be built
10512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10513 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10515 $as_echo "$can_build_shared" >&6; }
10516
10517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10518 $as_echo_n "checking whether to build shared libraries... " >&6; }
10519   test "$can_build_shared" = "no" && enable_shared=no
10520
10521   # On AIX, shared libraries and static libraries use the same namespace, and
10522   # are all built from PIC.
10523   case $host_os in
10524   aix3*)
10525     test "$enable_shared" = yes && enable_static=no
10526     if test -n "$RANLIB"; then
10527       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10528       postinstall_cmds='$RANLIB $lib'
10529     fi
10530     ;;
10531
10532   aix[4-9]*)
10533     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10534       test "$enable_shared" = yes && enable_static=no
10535     fi
10536     ;;
10537   esac
10538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10539 $as_echo "$enable_shared" >&6; }
10540
10541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10542 $as_echo_n "checking whether to build static libraries... " >&6; }
10543   # Make sure either enable_shared or enable_static is yes.
10544   test "$enable_shared" = yes || enable_static=yes
10545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10546 $as_echo "$enable_static" >&6; }
10547
10548
10549
10550
10551 fi
10552 ac_ext=c
10553 ac_cpp='$CPP $CPPFLAGS'
10554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10557
10558 CC="$lt_save_CC"
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572         ac_config_commands="$ac_config_commands libtool"
10573
10574
10575
10576
10577 # Only expand once:
10578
10579
10580
10581 ac_ext=c
10582 ac_cpp='$CPP $CPPFLAGS'
10583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10586 if test -n "$ac_tool_prefix"; then
10587   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10588 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10590 $as_echo_n "checking for $ac_word... " >&6; }
10591 if test "${ac_cv_prog_CC+set}" = set; then :
10592   $as_echo_n "(cached) " >&6
10593 else
10594   if test -n "$CC"; then
10595   ac_cv_prog_CC="$CC" # Let the user override the test.
10596 else
10597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598 for as_dir in $PATH
10599 do
10600   IFS=$as_save_IFS
10601   test -z "$as_dir" && as_dir=.
10602     for ac_exec_ext in '' $ac_executable_extensions; do
10603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10604     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10606     break 2
10607   fi
10608 done
10609   done
10610 IFS=$as_save_IFS
10611
10612 fi
10613 fi
10614 CC=$ac_cv_prog_CC
10615 if test -n "$CC"; then
10616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10617 $as_echo "$CC" >&6; }
10618 else
10619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620 $as_echo "no" >&6; }
10621 fi
10622
10623
10624 fi
10625 if test -z "$ac_cv_prog_CC"; then
10626   ac_ct_CC=$CC
10627   # Extract the first word of "gcc", so it can be a program name with args.
10628 set dummy gcc; ac_word=$2
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10630 $as_echo_n "checking for $ac_word... " >&6; }
10631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10632   $as_echo_n "(cached) " >&6
10633 else
10634   if test -n "$ac_ct_CC"; then
10635   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10636 else
10637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638 for as_dir in $PATH
10639 do
10640   IFS=$as_save_IFS
10641   test -z "$as_dir" && as_dir=.
10642     for ac_exec_ext in '' $ac_executable_extensions; do
10643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10644     ac_cv_prog_ac_ct_CC="gcc"
10645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10646     break 2
10647   fi
10648 done
10649   done
10650 IFS=$as_save_IFS
10651
10652 fi
10653 fi
10654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10655 if test -n "$ac_ct_CC"; then
10656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10657 $as_echo "$ac_ct_CC" >&6; }
10658 else
10659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660 $as_echo "no" >&6; }
10661 fi
10662
10663   if test "x$ac_ct_CC" = x; then
10664     CC=""
10665   else
10666     case $cross_compiling:$ac_tool_warned in
10667 yes:)
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10670 ac_tool_warned=yes ;;
10671 esac
10672     CC=$ac_ct_CC
10673   fi
10674 else
10675   CC="$ac_cv_prog_CC"
10676 fi
10677
10678 if test -z "$CC"; then
10679           if test -n "$ac_tool_prefix"; then
10680     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10681 set dummy ${ac_tool_prefix}cc; ac_word=$2
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10683 $as_echo_n "checking for $ac_word... " >&6; }
10684 if test "${ac_cv_prog_CC+set}" = set; then :
10685   $as_echo_n "(cached) " >&6
10686 else
10687   if test -n "$CC"; then
10688   ac_cv_prog_CC="$CC" # Let the user override the test.
10689 else
10690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691 for as_dir in $PATH
10692 do
10693   IFS=$as_save_IFS
10694   test -z "$as_dir" && as_dir=.
10695     for ac_exec_ext in '' $ac_executable_extensions; do
10696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10697     ac_cv_prog_CC="${ac_tool_prefix}cc"
10698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10699     break 2
10700   fi
10701 done
10702   done
10703 IFS=$as_save_IFS
10704
10705 fi
10706 fi
10707 CC=$ac_cv_prog_CC
10708 if test -n "$CC"; then
10709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10710 $as_echo "$CC" >&6; }
10711 else
10712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713 $as_echo "no" >&6; }
10714 fi
10715
10716
10717   fi
10718 fi
10719 if test -z "$CC"; then
10720   # Extract the first word of "cc", so it can be a program name with args.
10721 set dummy cc; ac_word=$2
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10723 $as_echo_n "checking for $ac_word... " >&6; }
10724 if test "${ac_cv_prog_CC+set}" = set; then :
10725   $as_echo_n "(cached) " >&6
10726 else
10727   if test -n "$CC"; then
10728   ac_cv_prog_CC="$CC" # Let the user override the test.
10729 else
10730   ac_prog_rejected=no
10731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732 for as_dir in $PATH
10733 do
10734   IFS=$as_save_IFS
10735   test -z "$as_dir" && as_dir=.
10736     for ac_exec_ext in '' $ac_executable_extensions; do
10737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10738     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10739        ac_prog_rejected=yes
10740        continue
10741      fi
10742     ac_cv_prog_CC="cc"
10743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10744     break 2
10745   fi
10746 done
10747   done
10748 IFS=$as_save_IFS
10749
10750 if test $ac_prog_rejected = yes; then
10751   # We found a bogon in the path, so make sure we never use it.
10752   set dummy $ac_cv_prog_CC
10753   shift
10754   if test $# != 0; then
10755     # We chose a different compiler from the bogus one.
10756     # However, it has the same basename, so the bogon will be chosen
10757     # first if we set CC to just the basename; use the full file name.
10758     shift
10759     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10760   fi
10761 fi
10762 fi
10763 fi
10764 CC=$ac_cv_prog_CC
10765 if test -n "$CC"; then
10766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10767 $as_echo "$CC" >&6; }
10768 else
10769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; }
10771 fi
10772
10773
10774 fi
10775 if test -z "$CC"; then
10776   if test -n "$ac_tool_prefix"; then
10777   for ac_prog in cl.exe
10778   do
10779     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10782 $as_echo_n "checking for $ac_word... " >&6; }
10783 if test "${ac_cv_prog_CC+set}" = set; then :
10784   $as_echo_n "(cached) " >&6
10785 else
10786   if test -n "$CC"; then
10787   ac_cv_prog_CC="$CC" # Let the user override the test.
10788 else
10789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10790 for as_dir in $PATH
10791 do
10792   IFS=$as_save_IFS
10793   test -z "$as_dir" && as_dir=.
10794     for ac_exec_ext in '' $ac_executable_extensions; do
10795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10796     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10798     break 2
10799   fi
10800 done
10801   done
10802 IFS=$as_save_IFS
10803
10804 fi
10805 fi
10806 CC=$ac_cv_prog_CC
10807 if test -n "$CC"; then
10808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10809 $as_echo "$CC" >&6; }
10810 else
10811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812 $as_echo "no" >&6; }
10813 fi
10814
10815
10816     test -n "$CC" && break
10817   done
10818 fi
10819 if test -z "$CC"; then
10820   ac_ct_CC=$CC
10821   for ac_prog in cl.exe
10822 do
10823   # Extract the first word of "$ac_prog", so it can be a program name with args.
10824 set dummy $ac_prog; ac_word=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826 $as_echo_n "checking for $ac_word... " >&6; }
10827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10828   $as_echo_n "(cached) " >&6
10829 else
10830   if test -n "$ac_ct_CC"; then
10831   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10832 else
10833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in $PATH
10835 do
10836   IFS=$as_save_IFS
10837   test -z "$as_dir" && as_dir=.
10838     for ac_exec_ext in '' $ac_executable_extensions; do
10839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10840     ac_cv_prog_ac_ct_CC="$ac_prog"
10841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10842     break 2
10843   fi
10844 done
10845   done
10846 IFS=$as_save_IFS
10847
10848 fi
10849 fi
10850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10851 if test -n "$ac_ct_CC"; then
10852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10853 $as_echo "$ac_ct_CC" >&6; }
10854 else
10855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856 $as_echo "no" >&6; }
10857 fi
10858
10859
10860   test -n "$ac_ct_CC" && break
10861 done
10862
10863   if test "x$ac_ct_CC" = x; then
10864     CC=""
10865   else
10866     case $cross_compiling:$ac_tool_warned in
10867 yes:)
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10870 ac_tool_warned=yes ;;
10871 esac
10872     CC=$ac_ct_CC
10873   fi
10874 fi
10875
10876 fi
10877
10878
10879 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10881 as_fn_error $? "no acceptable C compiler found in \$PATH
10882 See \`config.log' for more details" "$LINENO" 5 ; }
10883
10884 # Provide some information about the compiler.
10885 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10886 set X $ac_compile
10887 ac_compiler=$2
10888 for ac_option in --version -v -V -qversion; do
10889   { { ac_try="$ac_compiler $ac_option >&5"
10890 case "(($ac_try" in
10891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892   *) ac_try_echo=$ac_try;;
10893 esac
10894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10895 $as_echo "$ac_try_echo"; } >&5
10896   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10897   ac_status=$?
10898   if test -s conftest.err; then
10899     sed '10a\
10900 ... rest of stderr output deleted ...
10901          10q' conftest.err >conftest.er1
10902     cat conftest.er1 >&5
10903   fi
10904   rm -f conftest.er1 conftest.err
10905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10906   test $ac_status = 0; }
10907 done
10908
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10910 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10911 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
10912   $as_echo_n "(cached) " >&6
10913 else
10914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h.  */
10916
10917 int
10918 main ()
10919 {
10920 #ifndef __GNUC__
10921        choke me
10922 #endif
10923
10924   ;
10925   return 0;
10926 }
10927 _ACEOF
10928 if ac_fn_c_try_compile "$LINENO"; then :
10929   ac_compiler_gnu=yes
10930 else
10931   ac_compiler_gnu=no
10932 fi
10933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10935
10936 fi
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10938 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10939 if test $ac_compiler_gnu = yes; then
10940   GCC=yes
10941 else
10942   GCC=
10943 fi
10944 ac_test_CFLAGS=${CFLAGS+set}
10945 ac_save_CFLAGS=$CFLAGS
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10947 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10948 if test "${ac_cv_prog_cc_g+set}" = set; then :
10949   $as_echo_n "(cached) " >&6
10950 else
10951   ac_save_c_werror_flag=$ac_c_werror_flag
10952    ac_c_werror_flag=yes
10953    ac_cv_prog_cc_g=no
10954    CFLAGS="-g"
10955    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h.  */
10957
10958 int
10959 main ()
10960 {
10961
10962   ;
10963   return 0;
10964 }
10965 _ACEOF
10966 if ac_fn_c_try_compile "$LINENO"; then :
10967   ac_cv_prog_cc_g=yes
10968 else
10969   CFLAGS=""
10970       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971 /* end confdefs.h.  */
10972
10973 int
10974 main ()
10975 {
10976
10977   ;
10978   return 0;
10979 }
10980 _ACEOF
10981 if ac_fn_c_try_compile "$LINENO"; then :
10982
10983 else
10984   ac_c_werror_flag=$ac_save_c_werror_flag
10985          CFLAGS="-g"
10986          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h.  */
10988
10989 int
10990 main ()
10991 {
10992
10993   ;
10994   return 0;
10995 }
10996 _ACEOF
10997 if ac_fn_c_try_compile "$LINENO"; then :
10998   ac_cv_prog_cc_g=yes
10999 fi
11000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11001 fi
11002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11003 fi
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005    ac_c_werror_flag=$ac_save_c_werror_flag
11006 fi
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11008 $as_echo "$ac_cv_prog_cc_g" >&6; }
11009 if test "$ac_test_CFLAGS" = set; then
11010   CFLAGS=$ac_save_CFLAGS
11011 elif test $ac_cv_prog_cc_g = yes; then
11012   if test "$GCC" = yes; then
11013     CFLAGS="-g -O2"
11014   else
11015     CFLAGS="-g"
11016   fi
11017 else
11018   if test "$GCC" = yes; then
11019     CFLAGS="-O2"
11020   else
11021     CFLAGS=
11022   fi
11023 fi
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11025 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11026 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11027   $as_echo_n "(cached) " >&6
11028 else
11029   ac_cv_prog_cc_c89=no
11030 ac_save_CC=$CC
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h.  */
11033 #include <stdarg.h>
11034 #include <stdio.h>
11035 #include <sys/types.h>
11036 #include <sys/stat.h>
11037 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11038 struct buf { int x; };
11039 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11040 static char *e (p, i)
11041      char **p;
11042      int i;
11043 {
11044   return p[i];
11045 }
11046 static char *f (char * (*g) (char **, int), char **p, ...)
11047 {
11048   char *s;
11049   va_list v;
11050   va_start (v,p);
11051   s = g (p, va_arg (v,int));
11052   va_end (v);
11053   return s;
11054 }
11055
11056 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11057    function prototypes and stuff, but not '\xHH' hex character constants.
11058    These don't provoke an error unfortunately, instead are silently treated
11059    as 'x'.  The following induces an error, until -std is added to get
11060    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11061    array size at least.  It's necessary to write '\x00'==0 to get something
11062    that's true only with -std.  */
11063 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11064
11065 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11066    inside strings and character constants.  */
11067 #define FOO(x) 'x'
11068 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11069
11070 int test (int i, double x);
11071 struct s1 {int (*f) (int a);};
11072 struct s2 {int (*f) (double a);};
11073 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11074 int argc;
11075 char **argv;
11076 int
11077 main ()
11078 {
11079 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11080   ;
11081   return 0;
11082 }
11083 _ACEOF
11084 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11085         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11086 do
11087   CC="$ac_save_CC $ac_arg"
11088   if ac_fn_c_try_compile "$LINENO"; then :
11089   ac_cv_prog_cc_c89=$ac_arg
11090 fi
11091 rm -f core conftest.err conftest.$ac_objext
11092   test "x$ac_cv_prog_cc_c89" != "xno" && break
11093 done
11094 rm -f conftest.$ac_ext
11095 CC=$ac_save_CC
11096
11097 fi
11098 # AC_CACHE_VAL
11099 case "x$ac_cv_prog_cc_c89" in
11100   x)
11101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11102 $as_echo "none needed" >&6; } ;;
11103   xno)
11104     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11105 $as_echo "unsupported" >&6; } ;;
11106   *)
11107     CC="$CC $ac_cv_prog_cc_c89"
11108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11109 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11110 esac
11111 if test "x$ac_cv_prog_cc_c89" != xno; then :
11112
11113 fi
11114
11115 ac_ext=c
11116 ac_cpp='$CPP $CPPFLAGS'
11117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11120
11121 depcc="$CC"   am_compiler_list=
11122
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11124 $as_echo_n "checking dependency style of $depcc... " >&6; }
11125 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11126   $as_echo_n "(cached) " >&6
11127 else
11128   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11129   # We make a subdir and do the tests there.  Otherwise we can end up
11130   # making bogus files that we don't know about and never remove.  For
11131   # instance it was reported that on HP-UX the gcc test will end up
11132   # making a dummy file named `D' -- because `-MD' means `put the output
11133   # in D'.
11134   mkdir conftest.dir
11135   # Copy depcomp to subdir because otherwise we won't find it if we're
11136   # using a relative directory.
11137   cp "$am_depcomp" conftest.dir
11138   cd conftest.dir
11139   # We will build objects and dependencies in a subdirectory because
11140   # it helps to detect inapplicable dependency modes.  For instance
11141   # both Tru64's cc and ICC support -MD to output dependencies as a
11142   # side effect of compilation, but ICC will put the dependencies in
11143   # the current directory while Tru64 will put them in the object
11144   # directory.
11145   mkdir sub
11146
11147   am_cv_CC_dependencies_compiler_type=none
11148   if test "$am_compiler_list" = ""; then
11149      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11150   fi
11151   am__universal=false
11152   case " $depcc " in #(
11153      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11154      esac
11155
11156   for depmode in $am_compiler_list; do
11157     # Setup a source with many dependencies, because some compilers
11158     # like to wrap large dependency lists on column 80 (with \), and
11159     # we should not choose a depcomp mode which is confused by this.
11160     #
11161     # We need to recreate these files for each test, as the compiler may
11162     # overwrite some of them when testing with obscure command lines.
11163     # This happens at least with the AIX C compiler.
11164     : > sub/conftest.c
11165     for i in 1 2 3 4 5 6; do
11166       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11167       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11168       # Solaris 8's {/usr,}/bin/sh.
11169       touch sub/conftst$i.h
11170     done
11171     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11172
11173     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11174     # mode.  It turns out that the SunPro C++ compiler does not properly
11175     # handle `-M -o', and we need to detect this.  Also, some Intel
11176     # versions had trouble with output in subdirs
11177     am__obj=sub/conftest.${OBJEXT-o}
11178     am__minus_obj="-o $am__obj"
11179     case $depmode in
11180     gcc)
11181       # This depmode causes a compiler race in universal mode.
11182       test "$am__universal" = false || continue
11183       ;;
11184     nosideeffect)
11185       # after this tag, mechanisms are not by side-effect, so they'll
11186       # only be used when explicitly requested
11187       if test "x$enable_dependency_tracking" = xyes; then
11188         continue
11189       else
11190         break
11191       fi
11192       ;;
11193     msvisualcpp | msvcmsys)
11194       # This compiler won't grok `-c -o', but also, the minuso test has
11195       # not run yet.  These depmodes are late enough in the game, and
11196       # so weak that their functioning should not be impacted.
11197       am__obj=conftest.${OBJEXT-o}
11198       am__minus_obj=
11199       ;;
11200     none) break ;;
11201     esac
11202     if depmode=$depmode \
11203        source=sub/conftest.c object=$am__obj \
11204        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11205        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11206          >/dev/null 2>conftest.err &&
11207        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11208        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11209        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11210        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11211       # icc doesn't choke on unknown options, it will just issue warnings
11212       # or remarks (even with -Werror).  So we grep stderr for any message
11213       # that says an option was ignored or not supported.
11214       # When given -MP, icc 7.0 and 7.1 complain thusly:
11215       #   icc: Command line warning: ignoring option '-M'; no argument required
11216       # The diagnosis changed in icc 8.0:
11217       #   icc: Command line remark: option '-MP' not supported
11218       if (grep 'ignoring option' conftest.err ||
11219           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11220         am_cv_CC_dependencies_compiler_type=$depmode
11221         break
11222       fi
11223     fi
11224   done
11225
11226   cd ..
11227   rm -rf conftest.dir
11228 else
11229   am_cv_CC_dependencies_compiler_type=none
11230 fi
11231
11232 fi
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11234 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11235 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11236
11237  if
11238   test "x$enable_dependency_tracking" != xno \
11239   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11240   am__fastdepCC_TRUE=
11241   am__fastdepCC_FALSE='#'
11242 else
11243   am__fastdepCC_TRUE='#'
11244   am__fastdepCC_FALSE=
11245 fi
11246
11247
11248 ac_ext=cpp
11249 ac_cpp='$CXXCPP $CPPFLAGS'
11250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11253 if test -z "$CXX"; then
11254   if test -n "$CCC"; then
11255     CXX=$CCC
11256   else
11257     if test -n "$ac_tool_prefix"; then
11258   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11259   do
11260     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263 $as_echo_n "checking for $ac_word... " >&6; }
11264 if test "${ac_cv_prog_CXX+set}" = set; then :
11265   $as_echo_n "(cached) " >&6
11266 else
11267   if test -n "$CXX"; then
11268   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11269 else
11270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271 for as_dir in $PATH
11272 do
11273   IFS=$as_save_IFS
11274   test -z "$as_dir" && as_dir=.
11275     for ac_exec_ext in '' $ac_executable_extensions; do
11276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11277     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11279     break 2
11280   fi
11281 done
11282   done
11283 IFS=$as_save_IFS
11284
11285 fi
11286 fi
11287 CXX=$ac_cv_prog_CXX
11288 if test -n "$CXX"; then
11289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11290 $as_echo "$CXX" >&6; }
11291 else
11292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11294 fi
11295
11296
11297     test -n "$CXX" && break
11298   done
11299 fi
11300 if test -z "$CXX"; then
11301   ac_ct_CXX=$CXX
11302   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11303 do
11304   # Extract the first word of "$ac_prog", so it can be a program name with args.
11305 set dummy $ac_prog; ac_word=$2
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11307 $as_echo_n "checking for $ac_word... " >&6; }
11308 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11309   $as_echo_n "(cached) " >&6
11310 else
11311   if test -n "$ac_ct_CXX"; then
11312   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11313 else
11314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11315 for as_dir in $PATH
11316 do
11317   IFS=$as_save_IFS
11318   test -z "$as_dir" && as_dir=.
11319     for ac_exec_ext in '' $ac_executable_extensions; do
11320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11321     ac_cv_prog_ac_ct_CXX="$ac_prog"
11322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11323     break 2
11324   fi
11325 done
11326   done
11327 IFS=$as_save_IFS
11328
11329 fi
11330 fi
11331 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11332 if test -n "$ac_ct_CXX"; then
11333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11334 $as_echo "$ac_ct_CXX" >&6; }
11335 else
11336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11338 fi
11339
11340
11341   test -n "$ac_ct_CXX" && break
11342 done
11343
11344   if test "x$ac_ct_CXX" = x; then
11345     CXX="g++"
11346   else
11347     case $cross_compiling:$ac_tool_warned in
11348 yes:)
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11351 ac_tool_warned=yes ;;
11352 esac
11353     CXX=$ac_ct_CXX
11354   fi
11355 fi
11356
11357   fi
11358 fi
11359 # Provide some information about the compiler.
11360 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11361 set X $ac_compile
11362 ac_compiler=$2
11363 for ac_option in --version -v -V -qversion; do
11364   { { ac_try="$ac_compiler $ac_option >&5"
11365 case "(($ac_try" in
11366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367   *) ac_try_echo=$ac_try;;
11368 esac
11369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11370 $as_echo "$ac_try_echo"; } >&5
11371   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11372   ac_status=$?
11373   if test -s conftest.err; then
11374     sed '10a\
11375 ... rest of stderr output deleted ...
11376          10q' conftest.err >conftest.er1
11377     cat conftest.er1 >&5
11378   fi
11379   rm -f conftest.er1 conftest.err
11380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11381   test $ac_status = 0; }
11382 done
11383
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11385 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11386 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11387   $as_echo_n "(cached) " >&6
11388 else
11389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h.  */
11391
11392 int
11393 main ()
11394 {
11395 #ifndef __GNUC__
11396        choke me
11397 #endif
11398
11399   ;
11400   return 0;
11401 }
11402 _ACEOF
11403 if ac_fn_cxx_try_compile "$LINENO"; then :
11404   ac_compiler_gnu=yes
11405 else
11406   ac_compiler_gnu=no
11407 fi
11408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11409 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11410
11411 fi
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11413 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11414 if test $ac_compiler_gnu = yes; then
11415   GXX=yes
11416 else
11417   GXX=
11418 fi
11419 ac_test_CXXFLAGS=${CXXFLAGS+set}
11420 ac_save_CXXFLAGS=$CXXFLAGS
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11422 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11423 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11424   $as_echo_n "(cached) " >&6
11425 else
11426   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11427    ac_cxx_werror_flag=yes
11428    ac_cv_prog_cxx_g=no
11429    CXXFLAGS="-g"
11430    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h.  */
11432
11433 int
11434 main ()
11435 {
11436
11437   ;
11438   return 0;
11439 }
11440 _ACEOF
11441 if ac_fn_cxx_try_compile "$LINENO"; then :
11442   ac_cv_prog_cxx_g=yes
11443 else
11444   CXXFLAGS=""
11445       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h.  */
11447
11448 int
11449 main ()
11450 {
11451
11452   ;
11453   return 0;
11454 }
11455 _ACEOF
11456 if ac_fn_cxx_try_compile "$LINENO"; then :
11457
11458 else
11459   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11460          CXXFLAGS="-g"
11461          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462 /* end confdefs.h.  */
11463
11464 int
11465 main ()
11466 {
11467
11468   ;
11469   return 0;
11470 }
11471 _ACEOF
11472 if ac_fn_cxx_try_compile "$LINENO"; then :
11473   ac_cv_prog_cxx_g=yes
11474 fi
11475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11476 fi
11477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478 fi
11479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11481 fi
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11483 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11484 if test "$ac_test_CXXFLAGS" = set; then
11485   CXXFLAGS=$ac_save_CXXFLAGS
11486 elif test $ac_cv_prog_cxx_g = yes; then
11487   if test "$GXX" = yes; then
11488     CXXFLAGS="-g -O2"
11489   else
11490     CXXFLAGS="-g"
11491   fi
11492 else
11493   if test "$GXX" = yes; then
11494     CXXFLAGS="-O2"
11495   else
11496     CXXFLAGS=
11497   fi
11498 fi
11499 ac_ext=c
11500 ac_cpp='$CPP $CPPFLAGS'
11501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11504
11505 depcc="$CXX"  am_compiler_list=
11506
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11508 $as_echo_n "checking dependency style of $depcc... " >&6; }
11509 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11510   $as_echo_n "(cached) " >&6
11511 else
11512   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11513   # We make a subdir and do the tests there.  Otherwise we can end up
11514   # making bogus files that we don't know about and never remove.  For
11515   # instance it was reported that on HP-UX the gcc test will end up
11516   # making a dummy file named `D' -- because `-MD' means `put the output
11517   # in D'.
11518   mkdir conftest.dir
11519   # Copy depcomp to subdir because otherwise we won't find it if we're
11520   # using a relative directory.
11521   cp "$am_depcomp" conftest.dir
11522   cd conftest.dir
11523   # We will build objects and dependencies in a subdirectory because
11524   # it helps to detect inapplicable dependency modes.  For instance
11525   # both Tru64's cc and ICC support -MD to output dependencies as a
11526   # side effect of compilation, but ICC will put the dependencies in
11527   # the current directory while Tru64 will put them in the object
11528   # directory.
11529   mkdir sub
11530
11531   am_cv_CXX_dependencies_compiler_type=none
11532   if test "$am_compiler_list" = ""; then
11533      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11534   fi
11535   am__universal=false
11536   case " $depcc " in #(
11537      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11538      esac
11539
11540   for depmode in $am_compiler_list; do
11541     # Setup a source with many dependencies, because some compilers
11542     # like to wrap large dependency lists on column 80 (with \), and
11543     # we should not choose a depcomp mode which is confused by this.
11544     #
11545     # We need to recreate these files for each test, as the compiler may
11546     # overwrite some of them when testing with obscure command lines.
11547     # This happens at least with the AIX C compiler.
11548     : > sub/conftest.c
11549     for i in 1 2 3 4 5 6; do
11550       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11551       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11552       # Solaris 8's {/usr,}/bin/sh.
11553       touch sub/conftst$i.h
11554     done
11555     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11556
11557     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11558     # mode.  It turns out that the SunPro C++ compiler does not properly
11559     # handle `-M -o', and we need to detect this.  Also, some Intel
11560     # versions had trouble with output in subdirs
11561     am__obj=sub/conftest.${OBJEXT-o}
11562     am__minus_obj="-o $am__obj"
11563     case $depmode in
11564     gcc)
11565       # This depmode causes a compiler race in universal mode.
11566       test "$am__universal" = false || continue
11567       ;;
11568     nosideeffect)
11569       # after this tag, mechanisms are not by side-effect, so they'll
11570       # only be used when explicitly requested
11571       if test "x$enable_dependency_tracking" = xyes; then
11572         continue
11573       else
11574         break
11575       fi
11576       ;;
11577     msvisualcpp | msvcmsys)
11578       # This compiler won't grok `-c -o', but also, the minuso test has
11579       # not run yet.  These depmodes are late enough in the game, and
11580       # so weak that their functioning should not be impacted.
11581       am__obj=conftest.${OBJEXT-o}
11582       am__minus_obj=
11583       ;;
11584     none) break ;;
11585     esac
11586     if depmode=$depmode \
11587        source=sub/conftest.c object=$am__obj \
11588        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11589        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11590          >/dev/null 2>conftest.err &&
11591        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11592        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11593        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11594        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11595       # icc doesn't choke on unknown options, it will just issue warnings
11596       # or remarks (even with -Werror).  So we grep stderr for any message
11597       # that says an option was ignored or not supported.
11598       # When given -MP, icc 7.0 and 7.1 complain thusly:
11599       #   icc: Command line warning: ignoring option '-M'; no argument required
11600       # The diagnosis changed in icc 8.0:
11601       #   icc: Command line remark: option '-MP' not supported
11602       if (grep 'ignoring option' conftest.err ||
11603           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11604         am_cv_CXX_dependencies_compiler_type=$depmode
11605         break
11606       fi
11607     fi
11608   done
11609
11610   cd ..
11611   rm -rf conftest.dir
11612 else
11613   am_cv_CXX_dependencies_compiler_type=none
11614 fi
11615
11616 fi
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11618 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11619 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11620
11621  if
11622   test "x$enable_dependency_tracking" != xno \
11623   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11624   am__fastdepCXX_TRUE=
11625   am__fastdepCXX_FALSE='#'
11626 else
11627   am__fastdepCXX_TRUE='#'
11628   am__fastdepCXX_FALSE=
11629 fi
11630
11631
11632
11633 ac_ext=cpp
11634 ac_cpp='$CXXCPP $CPPFLAGS'
11635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11638 if test -z "$CXX"; then
11639   if test -n "$CCC"; then
11640     CXX=$CCC
11641   else
11642     if test -n "$ac_tool_prefix"; then
11643   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11644   do
11645     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11646 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11648 $as_echo_n "checking for $ac_word... " >&6; }
11649 if test "${ac_cv_prog_CXX+set}" = set; then :
11650   $as_echo_n "(cached) " >&6
11651 else
11652   if test -n "$CXX"; then
11653   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11654 else
11655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656 for as_dir in $PATH
11657 do
11658   IFS=$as_save_IFS
11659   test -z "$as_dir" && as_dir=.
11660     for ac_exec_ext in '' $ac_executable_extensions; do
11661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11662     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11664     break 2
11665   fi
11666 done
11667   done
11668 IFS=$as_save_IFS
11669
11670 fi
11671 fi
11672 CXX=$ac_cv_prog_CXX
11673 if test -n "$CXX"; then
11674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11675 $as_echo "$CXX" >&6; }
11676 else
11677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 $as_echo "no" >&6; }
11679 fi
11680
11681
11682     test -n "$CXX" && break
11683   done
11684 fi
11685 if test -z "$CXX"; then
11686   ac_ct_CXX=$CXX
11687   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11688 do
11689   # Extract the first word of "$ac_prog", so it can be a program name with args.
11690 set dummy $ac_prog; ac_word=$2
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11692 $as_echo_n "checking for $ac_word... " >&6; }
11693 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11694   $as_echo_n "(cached) " >&6
11695 else
11696   if test -n "$ac_ct_CXX"; then
11697   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11698 else
11699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700 for as_dir in $PATH
11701 do
11702   IFS=$as_save_IFS
11703   test -z "$as_dir" && as_dir=.
11704     for ac_exec_ext in '' $ac_executable_extensions; do
11705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11706     ac_cv_prog_ac_ct_CXX="$ac_prog"
11707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11708     break 2
11709   fi
11710 done
11711   done
11712 IFS=$as_save_IFS
11713
11714 fi
11715 fi
11716 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11717 if test -n "$ac_ct_CXX"; then
11718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11719 $as_echo "$ac_ct_CXX" >&6; }
11720 else
11721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722 $as_echo "no" >&6; }
11723 fi
11724
11725
11726   test -n "$ac_ct_CXX" && break
11727 done
11728
11729   if test "x$ac_ct_CXX" = x; then
11730     CXX="g++"
11731   else
11732     case $cross_compiling:$ac_tool_warned in
11733 yes:)
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11736 ac_tool_warned=yes ;;
11737 esac
11738     CXX=$ac_ct_CXX
11739   fi
11740 fi
11741
11742   fi
11743 fi
11744 # Provide some information about the compiler.
11745 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11746 set X $ac_compile
11747 ac_compiler=$2
11748 for ac_option in --version -v -V -qversion; do
11749   { { ac_try="$ac_compiler $ac_option >&5"
11750 case "(($ac_try" in
11751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752   *) ac_try_echo=$ac_try;;
11753 esac
11754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11755 $as_echo "$ac_try_echo"; } >&5
11756   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11757   ac_status=$?
11758   if test -s conftest.err; then
11759     sed '10a\
11760 ... rest of stderr output deleted ...
11761          10q' conftest.err >conftest.er1
11762     cat conftest.er1 >&5
11763   fi
11764   rm -f conftest.er1 conftest.err
11765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11766   test $ac_status = 0; }
11767 done
11768
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11770 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11771 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11772   $as_echo_n "(cached) " >&6
11773 else
11774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h.  */
11776
11777 int
11778 main ()
11779 {
11780 #ifndef __GNUC__
11781        choke me
11782 #endif
11783
11784   ;
11785   return 0;
11786 }
11787 _ACEOF
11788 if ac_fn_cxx_try_compile "$LINENO"; then :
11789   ac_compiler_gnu=yes
11790 else
11791   ac_compiler_gnu=no
11792 fi
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11795
11796 fi
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11798 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11799 if test $ac_compiler_gnu = yes; then
11800   GXX=yes
11801 else
11802   GXX=
11803 fi
11804 ac_test_CXXFLAGS=${CXXFLAGS+set}
11805 ac_save_CXXFLAGS=$CXXFLAGS
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11807 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11808 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11809   $as_echo_n "(cached) " >&6
11810 else
11811   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11812    ac_cxx_werror_flag=yes
11813    ac_cv_prog_cxx_g=no
11814    CXXFLAGS="-g"
11815    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h.  */
11817
11818 int
11819 main ()
11820 {
11821
11822   ;
11823   return 0;
11824 }
11825 _ACEOF
11826 if ac_fn_cxx_try_compile "$LINENO"; then :
11827   ac_cv_prog_cxx_g=yes
11828 else
11829   CXXFLAGS=""
11830       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11831 /* end confdefs.h.  */
11832
11833 int
11834 main ()
11835 {
11836
11837   ;
11838   return 0;
11839 }
11840 _ACEOF
11841 if ac_fn_cxx_try_compile "$LINENO"; then :
11842
11843 else
11844   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11845          CXXFLAGS="-g"
11846          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h.  */
11848
11849 int
11850 main ()
11851 {
11852
11853   ;
11854   return 0;
11855 }
11856 _ACEOF
11857 if ac_fn_cxx_try_compile "$LINENO"; then :
11858   ac_cv_prog_cxx_g=yes
11859 fi
11860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 fi
11862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11863 fi
11864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11866 fi
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11868 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11869 if test "$ac_test_CXXFLAGS" = set; then
11870   CXXFLAGS=$ac_save_CXXFLAGS
11871 elif test $ac_cv_prog_cxx_g = yes; then
11872   if test "$GXX" = yes; then
11873     CXXFLAGS="-g -O2"
11874   else
11875     CXXFLAGS="-g"
11876   fi
11877 else
11878   if test "$GXX" = yes; then
11879     CXXFLAGS="-O2"
11880   else
11881     CXXFLAGS=
11882   fi
11883 fi
11884 ac_ext=c
11885 ac_cpp='$CPP $CPPFLAGS'
11886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11889
11890 depcc="$CXX"  am_compiler_list=
11891
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11893 $as_echo_n "checking dependency style of $depcc... " >&6; }
11894 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11895   $as_echo_n "(cached) " >&6
11896 else
11897   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11898   # We make a subdir and do the tests there.  Otherwise we can end up
11899   # making bogus files that we don't know about and never remove.  For
11900   # instance it was reported that on HP-UX the gcc test will end up
11901   # making a dummy file named `D' -- because `-MD' means `put the output
11902   # in D'.
11903   mkdir conftest.dir
11904   # Copy depcomp to subdir because otherwise we won't find it if we're
11905   # using a relative directory.
11906   cp "$am_depcomp" conftest.dir
11907   cd conftest.dir
11908   # We will build objects and dependencies in a subdirectory because
11909   # it helps to detect inapplicable dependency modes.  For instance
11910   # both Tru64's cc and ICC support -MD to output dependencies as a
11911   # side effect of compilation, but ICC will put the dependencies in
11912   # the current directory while Tru64 will put them in the object
11913   # directory.
11914   mkdir sub
11915
11916   am_cv_CXX_dependencies_compiler_type=none
11917   if test "$am_compiler_list" = ""; then
11918      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11919   fi
11920   am__universal=false
11921   case " $depcc " in #(
11922      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11923      esac
11924
11925   for depmode in $am_compiler_list; do
11926     # Setup a source with many dependencies, because some compilers
11927     # like to wrap large dependency lists on column 80 (with \), and
11928     # we should not choose a depcomp mode which is confused by this.
11929     #
11930     # We need to recreate these files for each test, as the compiler may
11931     # overwrite some of them when testing with obscure command lines.
11932     # This happens at least with the AIX C compiler.
11933     : > sub/conftest.c
11934     for i in 1 2 3 4 5 6; do
11935       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11936       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11937       # Solaris 8's {/usr,}/bin/sh.
11938       touch sub/conftst$i.h
11939     done
11940     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11941
11942     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11943     # mode.  It turns out that the SunPro C++ compiler does not properly
11944     # handle `-M -o', and we need to detect this.  Also, some Intel
11945     # versions had trouble with output in subdirs
11946     am__obj=sub/conftest.${OBJEXT-o}
11947     am__minus_obj="-o $am__obj"
11948     case $depmode in
11949     gcc)
11950       # This depmode causes a compiler race in universal mode.
11951       test "$am__universal" = false || continue
11952       ;;
11953     nosideeffect)
11954       # after this tag, mechanisms are not by side-effect, so they'll
11955       # only be used when explicitly requested
11956       if test "x$enable_dependency_tracking" = xyes; then
11957         continue
11958       else
11959         break
11960       fi
11961       ;;
11962     msvisualcpp | msvcmsys)
11963       # This compiler won't grok `-c -o', but also, the minuso test has
11964       # not run yet.  These depmodes are late enough in the game, and
11965       # so weak that their functioning should not be impacted.
11966       am__obj=conftest.${OBJEXT-o}
11967       am__minus_obj=
11968       ;;
11969     none) break ;;
11970     esac
11971     if depmode=$depmode \
11972        source=sub/conftest.c object=$am__obj \
11973        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11974        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11975          >/dev/null 2>conftest.err &&
11976        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11977        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11978        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11979        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11980       # icc doesn't choke on unknown options, it will just issue warnings
11981       # or remarks (even with -Werror).  So we grep stderr for any message
11982       # that says an option was ignored or not supported.
11983       # When given -MP, icc 7.0 and 7.1 complain thusly:
11984       #   icc: Command line warning: ignoring option '-M'; no argument required
11985       # The diagnosis changed in icc 8.0:
11986       #   icc: Command line remark: option '-MP' not supported
11987       if (grep 'ignoring option' conftest.err ||
11988           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11989         am_cv_CXX_dependencies_compiler_type=$depmode
11990         break
11991       fi
11992     fi
11993   done
11994
11995   cd ..
11996   rm -rf conftest.dir
11997 else
11998   am_cv_CXX_dependencies_compiler_type=none
11999 fi
12000
12001 fi
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12003 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12004 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12005
12006  if
12007   test "x$enable_dependency_tracking" != xno \
12008   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12009   am__fastdepCXX_TRUE=
12010   am__fastdepCXX_FALSE='#'
12011 else
12012   am__fastdepCXX_TRUE='#'
12013   am__fastdepCXX_FALSE=
12014 fi
12015
12016
12017 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12018     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12019     (test "X$CXX" != "Xg++"))) ; then
12020   ac_ext=cpp
12021 ac_cpp='$CXXCPP $CPPFLAGS'
12022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12026 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12027 if test -z "$CXXCPP"; then
12028   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12029   $as_echo_n "(cached) " >&6
12030 else
12031       # Double quotes because CXXCPP needs to be expanded
12032     for CXXCPP in "$CXX -E" "/lib/cpp"
12033     do
12034       ac_preproc_ok=false
12035 for ac_cxx_preproc_warn_flag in '' yes
12036 do
12037   # Use a header file that comes with gcc, so configuring glibc
12038   # with a fresh cross-compiler works.
12039   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12040   # <limits.h> exists even on freestanding compilers.
12041   # On the NeXT, cc -E runs the code through the compiler's parser,
12042   # not just through cpp. "Syntax error" is here to catch this case.
12043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h.  */
12045 #ifdef __STDC__
12046 # include <limits.h>
12047 #else
12048 # include <assert.h>
12049 #endif
12050                      Syntax error
12051 _ACEOF
12052 if ac_fn_cxx_try_cpp "$LINENO"; then :
12053
12054 else
12055   # Broken: fails on valid input.
12056 continue
12057 fi
12058 rm -f conftest.err conftest.i conftest.$ac_ext
12059
12060   # OK, works on sane cases.  Now check whether nonexistent headers
12061   # can be detected and how.
12062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h.  */
12064 #include <ac_nonexistent.h>
12065 _ACEOF
12066 if ac_fn_cxx_try_cpp "$LINENO"; then :
12067   # Broken: success on invalid input.
12068 continue
12069 else
12070   # Passes both tests.
12071 ac_preproc_ok=:
12072 break
12073 fi
12074 rm -f conftest.err conftest.i conftest.$ac_ext
12075
12076 done
12077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12078 rm -f conftest.i conftest.err conftest.$ac_ext
12079 if $ac_preproc_ok; then :
12080   break
12081 fi
12082
12083     done
12084     ac_cv_prog_CXXCPP=$CXXCPP
12085
12086 fi
12087   CXXCPP=$ac_cv_prog_CXXCPP
12088 else
12089   ac_cv_prog_CXXCPP=$CXXCPP
12090 fi
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12092 $as_echo "$CXXCPP" >&6; }
12093 ac_preproc_ok=false
12094 for ac_cxx_preproc_warn_flag in '' yes
12095 do
12096   # Use a header file that comes with gcc, so configuring glibc
12097   # with a fresh cross-compiler works.
12098   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12099   # <limits.h> exists even on freestanding compilers.
12100   # On the NeXT, cc -E runs the code through the compiler's parser,
12101   # not just through cpp. "Syntax error" is here to catch this case.
12102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h.  */
12104 #ifdef __STDC__
12105 # include <limits.h>
12106 #else
12107 # include <assert.h>
12108 #endif
12109                      Syntax error
12110 _ACEOF
12111 if ac_fn_cxx_try_cpp "$LINENO"; then :
12112
12113 else
12114   # Broken: fails on valid input.
12115 continue
12116 fi
12117 rm -f conftest.err conftest.i conftest.$ac_ext
12118
12119   # OK, works on sane cases.  Now check whether nonexistent headers
12120   # can be detected and how.
12121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h.  */
12123 #include <ac_nonexistent.h>
12124 _ACEOF
12125 if ac_fn_cxx_try_cpp "$LINENO"; then :
12126   # Broken: success on invalid input.
12127 continue
12128 else
12129   # Passes both tests.
12130 ac_preproc_ok=:
12131 break
12132 fi
12133 rm -f conftest.err conftest.i conftest.$ac_ext
12134
12135 done
12136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12137 rm -f conftest.i conftest.err conftest.$ac_ext
12138 if $ac_preproc_ok; then :
12139
12140 else
12141   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12143 _lt_caught_CXX_error=yes; }
12144 fi
12145
12146 ac_ext=c
12147 ac_cpp='$CPP $CPPFLAGS'
12148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12151
12152 else
12153   _lt_caught_CXX_error=yes
12154 fi
12155
12156
12157
12158
12159 ac_ext=cpp
12160 ac_cpp='$CXXCPP $CPPFLAGS'
12161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12164
12165 archive_cmds_need_lc_CXX=no
12166 allow_undefined_flag_CXX=
12167 always_export_symbols_CXX=no
12168 archive_expsym_cmds_CXX=
12169 compiler_needs_object_CXX=no
12170 export_dynamic_flag_spec_CXX=
12171 hardcode_direct_CXX=no
12172 hardcode_direct_absolute_CXX=no
12173 hardcode_libdir_flag_spec_CXX=
12174 hardcode_libdir_flag_spec_ld_CXX=
12175 hardcode_libdir_separator_CXX=
12176 hardcode_minus_L_CXX=no
12177 hardcode_shlibpath_var_CXX=unsupported
12178 hardcode_automatic_CXX=no
12179 inherit_rpath_CXX=no
12180 module_cmds_CXX=
12181 module_expsym_cmds_CXX=
12182 link_all_deplibs_CXX=unknown
12183 old_archive_cmds_CXX=$old_archive_cmds
12184 no_undefined_flag_CXX=
12185 whole_archive_flag_spec_CXX=
12186 enable_shared_with_static_runtimes_CXX=no
12187
12188 # Source file extension for C++ test sources.
12189 ac_ext=cpp
12190
12191 # Object file extension for compiled C++ test sources.
12192 objext=o
12193 objext_CXX=$objext
12194
12195 # No sense in running all these tests if we already determined that
12196 # the CXX compiler isn't working.  Some variables (like enable_shared)
12197 # are currently assumed to apply to all compilers on this platform,
12198 # and will be corrupted by setting them based on a non-working compiler.
12199 if test "$_lt_caught_CXX_error" != yes; then
12200   # Code to be used in simple compile tests
12201   lt_simple_compile_test_code="int some_variable = 0;"
12202
12203   # Code to be used in simple link tests
12204   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12205
12206   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12207
12208
12209
12210
12211
12212
12213 # If no C compiler was specified, use CC.
12214 LTCC=${LTCC-"$CC"}
12215
12216 # If no C compiler flags were specified, use CFLAGS.
12217 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12218
12219 # Allow CC to be a program name with arguments.
12220 compiler=$CC
12221
12222
12223   # save warnings/boilerplate of simple test code
12224   ac_outfile=conftest.$ac_objext
12225 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12226 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12227 _lt_compiler_boilerplate=`cat conftest.err`
12228 $RM conftest*
12229
12230   ac_outfile=conftest.$ac_objext
12231 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12232 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12233 _lt_linker_boilerplate=`cat conftest.err`
12234 $RM -r conftest*
12235
12236
12237   # Allow CC to be a program name with arguments.
12238   lt_save_CC=$CC
12239   lt_save_LD=$LD
12240   lt_save_GCC=$GCC
12241   GCC=$GXX
12242   lt_save_with_gnu_ld=$with_gnu_ld
12243   lt_save_path_LD=$lt_cv_path_LD
12244   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12245     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12246   else
12247     $as_unset lt_cv_prog_gnu_ld
12248   fi
12249   if test -n "${lt_cv_path_LDCXX+set}"; then
12250     lt_cv_path_LD=$lt_cv_path_LDCXX
12251   else
12252     $as_unset lt_cv_path_LD
12253   fi
12254   test -z "${LDCXX+set}" || LD=$LDCXX
12255   CC=${CXX-"c++"}
12256   compiler=$CC
12257   compiler_CXX=$CC
12258   for cc_temp in $compiler""; do
12259   case $cc_temp in
12260     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12261     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12262     \-*) ;;
12263     *) break;;
12264   esac
12265 done
12266 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12267
12268
12269   if test -n "$compiler"; then
12270     # We don't want -fno-exception when compiling C++ code, so set the
12271     # no_builtin_flag separately
12272     if test "$GXX" = yes; then
12273       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12274     else
12275       lt_prog_compiler_no_builtin_flag_CXX=
12276     fi
12277
12278     if test "$GXX" = yes; then
12279       # Set up default GNU C++ configuration
12280
12281
12282
12283 # Check whether --with-gnu-ld was given.
12284 if test "${with_gnu_ld+set}" = set; then :
12285   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12286 else
12287   with_gnu_ld=no
12288 fi
12289
12290 ac_prog=ld
12291 if test "$GCC" = yes; then
12292   # Check if gcc -print-prog-name=ld gives a path.
12293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12294 $as_echo_n "checking for ld used by $CC... " >&6; }
12295   case $host in
12296   *-*-mingw*)
12297     # gcc leaves a trailing carriage return which upsets mingw
12298     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12299   *)
12300     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12301   esac
12302   case $ac_prog in
12303     # Accept absolute paths.
12304     [\\/]* | ?:[\\/]*)
12305       re_direlt='/[^/][^/]*/\.\./'
12306       # Canonicalize the pathname of ld
12307       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12308       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12309         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12310       done
12311       test -z "$LD" && LD="$ac_prog"
12312       ;;
12313   "")
12314     # If it fails, then pretend we aren't using GCC.
12315     ac_prog=ld
12316     ;;
12317   *)
12318     # If it is relative, then search for the first ld in PATH.
12319     with_gnu_ld=unknown
12320     ;;
12321   esac
12322 elif test "$with_gnu_ld" = yes; then
12323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12324 $as_echo_n "checking for GNU ld... " >&6; }
12325 else
12326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12327 $as_echo_n "checking for non-GNU ld... " >&6; }
12328 fi
12329 if test "${lt_cv_path_LD+set}" = set; then :
12330   $as_echo_n "(cached) " >&6
12331 else
12332   if test -z "$LD"; then
12333   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12334   for ac_dir in $PATH; do
12335     IFS="$lt_save_ifs"
12336     test -z "$ac_dir" && ac_dir=.
12337     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12338       lt_cv_path_LD="$ac_dir/$ac_prog"
12339       # Check to see if the program is GNU ld.  I'd rather use --version,
12340       # but apparently some variants of GNU ld only accept -v.
12341       # Break only if it was the GNU/non-GNU ld that we prefer.
12342       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12343       *GNU* | *'with BFD'*)
12344         test "$with_gnu_ld" != no && break
12345         ;;
12346       *)
12347         test "$with_gnu_ld" != yes && break
12348         ;;
12349       esac
12350     fi
12351   done
12352   IFS="$lt_save_ifs"
12353 else
12354   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12355 fi
12356 fi
12357
12358 LD="$lt_cv_path_LD"
12359 if test -n "$LD"; then
12360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12361 $as_echo "$LD" >&6; }
12362 else
12363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364 $as_echo "no" >&6; }
12365 fi
12366 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12368 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12369 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12370   $as_echo_n "(cached) " >&6
12371 else
12372   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12373 case `$LD -v 2>&1 </dev/null` in
12374 *GNU* | *'with BFD'*)
12375   lt_cv_prog_gnu_ld=yes
12376   ;;
12377 *)
12378   lt_cv_prog_gnu_ld=no
12379   ;;
12380 esac
12381 fi
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12383 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12384 with_gnu_ld=$lt_cv_prog_gnu_ld
12385
12386
12387
12388
12389
12390
12391
12392       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12393       # archiving commands below assume that GNU ld is being used.
12394       if test "$with_gnu_ld" = yes; then
12395         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12396         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'
12397
12398         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12399         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12400
12401         # If archive_cmds runs LD, not CC, wlarc should be empty
12402         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12403         #     investigate it a little bit more. (MM)
12404         wlarc='${wl}'
12405
12406         # ancient GNU ld didn't support --whole-archive et. al.
12407         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12408           $GREP 'no-whole-archive' > /dev/null; then
12409           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12410         else
12411           whole_archive_flag_spec_CXX=
12412         fi
12413       else
12414         with_gnu_ld=no
12415         wlarc=
12416
12417         # A generic and very simple default shared library creation
12418         # command for GNU C++ for the case where it uses the native
12419         # linker, instead of GNU ld.  If possible, this setting should
12420         # overridden to take advantage of the native linker features on
12421         # the platform it is being used on.
12422         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12423       fi
12424
12425       # Commands to make compiler produce verbose output that lists
12426       # what "hidden" libraries, object files and flags are used when
12427       # linking a shared library.
12428       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12429
12430     else
12431       GXX=no
12432       with_gnu_ld=no
12433       wlarc=
12434     fi
12435
12436     # PORTME: fill in a description of your system's C++ link characteristics
12437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12438 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12439     ld_shlibs_CXX=yes
12440     case $host_os in
12441       aix3*)
12442         # FIXME: insert proper C++ library support
12443         ld_shlibs_CXX=no
12444         ;;
12445       aix[4-9]*)
12446         if test "$host_cpu" = ia64; then
12447           # On IA64, the linker does run time linking by default, so we don't
12448           # have to do anything special.
12449           aix_use_runtimelinking=no
12450           exp_sym_flag='-Bexport'
12451           no_entry_flag=""
12452         else
12453           aix_use_runtimelinking=no
12454
12455           # Test if we are trying to use run time linking or normal
12456           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12457           # need to do runtime linking.
12458           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12459             for ld_flag in $LDFLAGS; do
12460               case $ld_flag in
12461               *-brtl*)
12462                 aix_use_runtimelinking=yes
12463                 break
12464                 ;;
12465               esac
12466             done
12467             ;;
12468           esac
12469
12470           exp_sym_flag='-bexport'
12471           no_entry_flag='-bnoentry'
12472         fi
12473
12474         # When large executables or shared objects are built, AIX ld can
12475         # have problems creating the table of contents.  If linking a library
12476         # or program results in "error TOC overflow" add -mminimal-toc to
12477         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12478         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12479
12480         archive_cmds_CXX=''
12481         hardcode_direct_CXX=yes
12482         hardcode_direct_absolute_CXX=yes
12483         hardcode_libdir_separator_CXX=':'
12484         link_all_deplibs_CXX=yes
12485         file_list_spec_CXX='${wl}-f,'
12486
12487         if test "$GXX" = yes; then
12488           case $host_os in aix4.[012]|aix4.[012].*)
12489           # We only want to do this on AIX 4.2 and lower, the check
12490           # below for broken collect2 doesn't work under 4.3+
12491           collect2name=`${CC} -print-prog-name=collect2`
12492           if test -f "$collect2name" &&
12493              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12494           then
12495             # We have reworked collect2
12496             :
12497           else
12498             # We have old collect2
12499             hardcode_direct_CXX=unsupported
12500             # It fails to find uninstalled libraries when the uninstalled
12501             # path is not listed in the libpath.  Setting hardcode_minus_L
12502             # to unsupported forces relinking
12503             hardcode_minus_L_CXX=yes
12504             hardcode_libdir_flag_spec_CXX='-L$libdir'
12505             hardcode_libdir_separator_CXX=
12506           fi
12507           esac
12508           shared_flag='-shared'
12509           if test "$aix_use_runtimelinking" = yes; then
12510             shared_flag="$shared_flag "'${wl}-G'
12511           fi
12512         else
12513           # not using gcc
12514           if test "$host_cpu" = ia64; then
12515           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12516           # chokes on -Wl,-G. The following line is correct:
12517           shared_flag='-G'
12518           else
12519             if test "$aix_use_runtimelinking" = yes; then
12520               shared_flag='${wl}-G'
12521             else
12522               shared_flag='${wl}-bM:SRE'
12523             fi
12524           fi
12525         fi
12526
12527         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12528         # It seems that -bexpall does not export symbols beginning with
12529         # underscore (_), so it is better to generate a list of symbols to
12530         # export.
12531         always_export_symbols_CXX=yes
12532         if test "$aix_use_runtimelinking" = yes; then
12533           # Warning - without using the other runtime loading flags (-brtl),
12534           # -berok will link without error, but may produce a broken library.
12535           allow_undefined_flag_CXX='-berok'
12536           # Determine the default libpath from the value encoded in an empty
12537           # executable.
12538           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h.  */
12540
12541 int
12542 main ()
12543 {
12544
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 if ac_fn_cxx_try_link "$LINENO"; then :
12550
12551 lt_aix_libpath_sed='
12552     /Import File Strings/,/^$/ {
12553         /^0/ {
12554             s/^0  *\(.*\)$/\1/
12555             p
12556         }
12557     }'
12558 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12559 # Check for a 64-bit object if we didn't find anything.
12560 if test -z "$aix_libpath"; then
12561   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12562 fi
12563 fi
12564 rm -f core conftest.err conftest.$ac_objext \
12565     conftest$ac_exeext conftest.$ac_ext
12566 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12567
12568           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12569
12570           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"
12571         else
12572           if test "$host_cpu" = ia64; then
12573             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12574             allow_undefined_flag_CXX="-z nodefs"
12575             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"
12576           else
12577             # Determine the default libpath from the value encoded in an
12578             # empty executable.
12579             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h.  */
12581
12582 int
12583 main ()
12584 {
12585
12586   ;
12587   return 0;
12588 }
12589 _ACEOF
12590 if ac_fn_cxx_try_link "$LINENO"; then :
12591
12592 lt_aix_libpath_sed='
12593     /Import File Strings/,/^$/ {
12594         /^0/ {
12595             s/^0  *\(.*\)$/\1/
12596             p
12597         }
12598     }'
12599 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12600 # Check for a 64-bit object if we didn't find anything.
12601 if test -z "$aix_libpath"; then
12602   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12603 fi
12604 fi
12605 rm -f core conftest.err conftest.$ac_objext \
12606     conftest$ac_exeext conftest.$ac_ext
12607 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12608
12609             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12610             # Warning - without using the other run time loading flags,
12611             # -berok will link without error, but may produce a broken library.
12612             no_undefined_flag_CXX=' ${wl}-bernotok'
12613             allow_undefined_flag_CXX=' ${wl}-berok'
12614             # Exported symbols can be pulled into shared objects from archives
12615             whole_archive_flag_spec_CXX='$convenience'
12616             archive_cmds_need_lc_CXX=yes
12617             # This is similar to how AIX traditionally builds its shared
12618             # libraries.
12619             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'
12620           fi
12621         fi
12622         ;;
12623
12624       beos*)
12625         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12626           allow_undefined_flag_CXX=unsupported
12627           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12628           # support --undefined.  This deserves some investigation.  FIXME
12629           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12630         else
12631           ld_shlibs_CXX=no
12632         fi
12633         ;;
12634
12635       chorus*)
12636         case $cc_basename in
12637           *)
12638           # FIXME: insert proper C++ library support
12639           ld_shlibs_CXX=no
12640           ;;
12641         esac
12642         ;;
12643
12644       cygwin* | mingw* | pw32* | cegcc*)
12645         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12646         # as there is no search path for DLLs.
12647         hardcode_libdir_flag_spec_CXX='-L$libdir'
12648         allow_undefined_flag_CXX=unsupported
12649         always_export_symbols_CXX=no
12650         enable_shared_with_static_runtimes_CXX=yes
12651
12652         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12653           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'
12654           # If the export-symbols file already is a .def file (1st line
12655           # is EXPORTS), use it as is; otherwise, prepend...
12656           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12657             cp $export_symbols $output_objdir/$soname.def;
12658           else
12659             echo EXPORTS > $output_objdir/$soname.def;
12660             cat $export_symbols >> $output_objdir/$soname.def;
12661           fi~
12662           $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'
12663         else
12664           ld_shlibs_CXX=no
12665         fi
12666         ;;
12667       darwin* | rhapsody*)
12668
12669
12670   archive_cmds_need_lc_CXX=no
12671   hardcode_direct_CXX=no
12672   hardcode_automatic_CXX=yes
12673   hardcode_shlibpath_var_CXX=unsupported
12674   whole_archive_flag_spec_CXX=''
12675   link_all_deplibs_CXX=yes
12676   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12677   case $cc_basename in
12678      ifort*) _lt_dar_can_shared=yes ;;
12679      *) _lt_dar_can_shared=$GCC ;;
12680   esac
12681   if test "$_lt_dar_can_shared" = "yes"; then
12682     output_verbose_link_cmd=echo
12683     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}"
12684     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12685     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}"
12686     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}"
12687        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12688       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}"
12689       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}"
12690     fi
12691
12692   else
12693   ld_shlibs_CXX=no
12694   fi
12695
12696         ;;
12697
12698       dgux*)
12699         case $cc_basename in
12700           ec++*)
12701             # FIXME: insert proper C++ library support
12702             ld_shlibs_CXX=no
12703             ;;
12704           ghcx*)
12705             # Green Hills C++ Compiler
12706             # FIXME: insert proper C++ library support
12707             ld_shlibs_CXX=no
12708             ;;
12709           *)
12710             # FIXME: insert proper C++ library support
12711             ld_shlibs_CXX=no
12712             ;;
12713         esac
12714         ;;
12715
12716       freebsd[12]*)
12717         # C++ shared libraries reported to be fairly broken before
12718         # switch to ELF
12719         ld_shlibs_CXX=no
12720         ;;
12721
12722       freebsd-elf*)
12723         archive_cmds_need_lc_CXX=no
12724         ;;
12725
12726       freebsd* | dragonfly*)
12727         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12728         # conventions
12729         ld_shlibs_CXX=yes
12730         ;;
12731
12732       gnu*)
12733         ;;
12734
12735       hpux9*)
12736         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12737         hardcode_libdir_separator_CXX=:
12738         export_dynamic_flag_spec_CXX='${wl}-E'
12739         hardcode_direct_CXX=yes
12740         hardcode_minus_L_CXX=yes # Not in the search PATH,
12741                                              # but as the default
12742                                              # location of the library.
12743
12744         case $cc_basename in
12745           CC*)
12746             # FIXME: insert proper C++ library support
12747             ld_shlibs_CXX=no
12748             ;;
12749           aCC*)
12750             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'
12751             # Commands to make compiler produce verbose output that lists
12752             # what "hidden" libraries, object files and flags are used when
12753             # linking a shared library.
12754             #
12755             # There doesn't appear to be a way to prevent this compiler from
12756             # explicitly linking system object files so we need to strip them
12757             # from the output so that they don't get included in the library
12758             # dependencies.
12759             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'
12760             ;;
12761           *)
12762             if test "$GXX" = yes; then
12763               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'
12764             else
12765               # FIXME: insert proper C++ library support
12766               ld_shlibs_CXX=no
12767             fi
12768             ;;
12769         esac
12770         ;;
12771
12772       hpux10*|hpux11*)
12773         if test $with_gnu_ld = no; then
12774           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12775           hardcode_libdir_separator_CXX=:
12776
12777           case $host_cpu in
12778             hppa*64*|ia64*)
12779               ;;
12780             *)
12781               export_dynamic_flag_spec_CXX='${wl}-E'
12782               ;;
12783           esac
12784         fi
12785         case $host_cpu in
12786           hppa*64*|ia64*)
12787             hardcode_direct_CXX=no
12788             hardcode_shlibpath_var_CXX=no
12789             ;;
12790           *)
12791             hardcode_direct_CXX=yes
12792             hardcode_direct_absolute_CXX=yes
12793             hardcode_minus_L_CXX=yes # Not in the search PATH,
12794                                                  # but as the default
12795                                                  # location of the library.
12796             ;;
12797         esac
12798
12799         case $cc_basename in
12800           CC*)
12801             # FIXME: insert proper C++ library support
12802             ld_shlibs_CXX=no
12803             ;;
12804           aCC*)
12805             case $host_cpu in
12806               hppa*64*)
12807                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12808                 ;;
12809               ia64*)
12810                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12811                 ;;
12812               *)
12813                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12814                 ;;
12815             esac
12816             # Commands to make compiler produce verbose output that lists
12817             # what "hidden" libraries, object files and flags are used when
12818             # linking a shared library.
12819             #
12820             # There doesn't appear to be a way to prevent this compiler from
12821             # explicitly linking system object files so we need to strip them
12822             # from the output so that they don't get included in the library
12823             # dependencies.
12824             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'
12825             ;;
12826           *)
12827             if test "$GXX" = yes; then
12828               if test $with_gnu_ld = no; then
12829                 case $host_cpu in
12830                   hppa*64*)
12831                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12832                     ;;
12833                   ia64*)
12834                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12835                     ;;
12836                   *)
12837                     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'
12838                     ;;
12839                 esac
12840               fi
12841             else
12842               # FIXME: insert proper C++ library support
12843               ld_shlibs_CXX=no
12844             fi
12845             ;;
12846         esac
12847         ;;
12848
12849       interix[3-9]*)
12850         hardcode_direct_CXX=no
12851         hardcode_shlibpath_var_CXX=no
12852         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12853         export_dynamic_flag_spec_CXX='${wl}-E'
12854         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12855         # Instead, shared libraries are loaded at an image base (0x10000000 by
12856         # default) and relocated if they conflict, which is a slow very memory
12857         # consuming and fragmenting process.  To avoid this, we pick a random,
12858         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12859         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12860         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'
12861         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'
12862         ;;
12863       irix5* | irix6*)
12864         case $cc_basename in
12865           CC*)
12866             # SGI C++
12867             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'
12868
12869             # Archives containing C++ object files must be created using
12870             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12871             # necessary to make sure instantiated templates are included
12872             # in the archive.
12873             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12874             ;;
12875           *)
12876             if test "$GXX" = yes; then
12877               if test "$with_gnu_ld" = no; then
12878                 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'
12879               else
12880                 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'
12881               fi
12882             fi
12883             link_all_deplibs_CXX=yes
12884             ;;
12885         esac
12886         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12887         hardcode_libdir_separator_CXX=:
12888         inherit_rpath_CXX=yes
12889         ;;
12890
12891       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12892         case $cc_basename in
12893           KCC*)
12894             # Kuck and Associates, Inc. (KAI) C++ Compiler
12895
12896             # KCC will only create a shared library if the output file
12897             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12898             # to its proper name (with version) after linking.
12899             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'
12900             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'
12901             # Commands to make compiler produce verbose output that lists
12902             # what "hidden" libraries, object files and flags are used when
12903             # linking a shared library.
12904             #
12905             # There doesn't appear to be a way to prevent this compiler from
12906             # explicitly linking system object files so we need to strip them
12907             # from the output so that they don't get included in the library
12908             # dependencies.
12909             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'
12910
12911             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12912             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12913
12914             # Archives containing C++ object files must be created using
12915             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12916             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12917             ;;
12918           icpc* | ecpc* )
12919             # Intel C++
12920             with_gnu_ld=yes
12921             # version 8.0 and above of icpc choke on multiply defined symbols
12922             # if we add $predep_objects and $postdep_objects, however 7.1 and
12923             # earlier do not add the objects themselves.
12924             case `$CC -V 2>&1` in
12925               *"Version 7."*)
12926                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12927                 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'
12928                 ;;
12929               *)  # Version 8.0 or newer
12930                 tmp_idyn=
12931                 case $host_cpu in
12932                   ia64*) tmp_idyn=' -i_dynamic';;
12933                 esac
12934                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12935                 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'
12936                 ;;
12937             esac
12938             archive_cmds_need_lc_CXX=no
12939             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12940             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12941             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12942             ;;
12943           pgCC* | pgcpp*)
12944             # Portland Group C++ compiler
12945             case `$CC -V` in
12946             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12947               prelink_cmds_CXX='tpldir=Template.dir~
12948                 rm -rf $tpldir~
12949                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12950                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12951               old_archive_cmds_CXX='tpldir=Template.dir~
12952                 rm -rf $tpldir~
12953                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12954                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12955                 $RANLIB $oldlib'
12956               archive_cmds_CXX='tpldir=Template.dir~
12957                 rm -rf $tpldir~
12958                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12959                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12960               archive_expsym_cmds_CXX='tpldir=Template.dir~
12961                 rm -rf $tpldir~
12962                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12963                 $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'
12964               ;;
12965             *) # Version 6 will use weak symbols
12966               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12967               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'
12968               ;;
12969             esac
12970
12971             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12972             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12973             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'
12974             ;;
12975           cxx*)
12976             # Compaq C++
12977             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12978             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'
12979
12980             runpath_var=LD_RUN_PATH
12981             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12982             hardcode_libdir_separator_CXX=:
12983
12984             # Commands to make compiler produce verbose output that lists
12985             # what "hidden" libraries, object files and flags are used when
12986             # linking a shared library.
12987             #
12988             # There doesn't appear to be a way to prevent this compiler from
12989             # explicitly linking system object files so we need to strip them
12990             # from the output so that they don't get included in the library
12991             # dependencies.
12992             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'
12993             ;;
12994           xl*)
12995             # IBM XL 8.0 on PPC, with GNU ld
12996             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12997             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12998             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12999             if test "x$supports_anon_versioning" = xyes; then
13000               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13001                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13002                 echo "local: *; };" >> $output_objdir/$libname.ver~
13003                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13004             fi
13005             ;;
13006           *)
13007             case `$CC -V 2>&1 | sed 5q` in
13008             *Sun\ C*)
13009               # Sun C++ 5.9
13010               no_undefined_flag_CXX=' -zdefs'
13011               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13012               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'
13013               hardcode_libdir_flag_spec_CXX='-R$libdir'
13014               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'
13015               compiler_needs_object_CXX=yes
13016
13017               # Not sure whether something based on
13018               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13019               # would be better.
13020               output_verbose_link_cmd='echo'
13021
13022               # Archives containing C++ object files must be created using
13023               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13024               # necessary to make sure instantiated templates are included
13025               # in the archive.
13026               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13027               ;;
13028             esac
13029             ;;
13030         esac
13031         ;;
13032
13033       lynxos*)
13034         # FIXME: insert proper C++ library support
13035         ld_shlibs_CXX=no
13036         ;;
13037
13038       m88k*)
13039         # FIXME: insert proper C++ library support
13040         ld_shlibs_CXX=no
13041         ;;
13042
13043       mvs*)
13044         case $cc_basename in
13045           cxx*)
13046             # FIXME: insert proper C++ library support
13047             ld_shlibs_CXX=no
13048             ;;
13049           *)
13050             # FIXME: insert proper C++ library support
13051             ld_shlibs_CXX=no
13052             ;;
13053         esac
13054         ;;
13055
13056       netbsd*)
13057         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13058           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13059           wlarc=
13060           hardcode_libdir_flag_spec_CXX='-R$libdir'
13061           hardcode_direct_CXX=yes
13062           hardcode_shlibpath_var_CXX=no
13063         fi
13064         # Workaround some broken pre-1.5 toolchains
13065         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13066         ;;
13067
13068       *nto* | *qnx*)
13069         ld_shlibs_CXX=yes
13070         ;;
13071
13072       openbsd2*)
13073         # C++ shared libraries are fairly broken
13074         ld_shlibs_CXX=no
13075         ;;
13076
13077       openbsd*)
13078         if test -f /usr/libexec/ld.so; then
13079           hardcode_direct_CXX=yes
13080           hardcode_shlibpath_var_CXX=no
13081           hardcode_direct_absolute_CXX=yes
13082           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13083           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13084           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13085             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13086             export_dynamic_flag_spec_CXX='${wl}-E'
13087             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13088           fi
13089           output_verbose_link_cmd=echo
13090         else
13091           ld_shlibs_CXX=no
13092         fi
13093         ;;
13094
13095       osf3* | osf4* | osf5*)
13096         case $cc_basename in
13097           KCC*)
13098             # Kuck and Associates, Inc. (KAI) C++ Compiler
13099
13100             # KCC will only create a shared library if the output file
13101             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13102             # to its proper name (with version) after linking.
13103             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'
13104
13105             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13106             hardcode_libdir_separator_CXX=:
13107
13108             # Archives containing C++ object files must be created using
13109             # the KAI C++ compiler.
13110             case $host in
13111               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13112               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13113             esac
13114             ;;
13115           RCC*)
13116             # Rational C++ 2.4.1
13117             # FIXME: insert proper C++ library support
13118             ld_shlibs_CXX=no
13119             ;;
13120           cxx*)
13121             case $host in
13122               osf3*)
13123                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13124                 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'
13125                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13126                 ;;
13127               *)
13128                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13129                 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'
13130                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13131                   echo "-hidden">> $lib.exp~
13132                   $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~
13133                   $RM $lib.exp'
13134                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13135                 ;;
13136             esac
13137
13138             hardcode_libdir_separator_CXX=:
13139
13140             # Commands to make compiler produce verbose output that lists
13141             # what "hidden" libraries, object files and flags are used when
13142             # linking a shared library.
13143             #
13144             # There doesn't appear to be a way to prevent this compiler from
13145             # explicitly linking system object files so we need to strip them
13146             # from the output so that they don't get included in the library
13147             # dependencies.
13148             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'
13149             ;;
13150           *)
13151             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13152               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13153               case $host in
13154                 osf3*)
13155                   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'
13156                   ;;
13157                 *)
13158                   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'
13159                   ;;
13160               esac
13161
13162               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13163               hardcode_libdir_separator_CXX=:
13164
13165               # Commands to make compiler produce verbose output that lists
13166               # what "hidden" libraries, object files and flags are used when
13167               # linking a shared library.
13168               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13169
13170             else
13171               # FIXME: insert proper C++ library support
13172               ld_shlibs_CXX=no
13173             fi
13174             ;;
13175         esac
13176         ;;
13177
13178       psos*)
13179         # FIXME: insert proper C++ library support
13180         ld_shlibs_CXX=no
13181         ;;
13182
13183       sunos4*)
13184         case $cc_basename in
13185           CC*)
13186             # Sun C++ 4.x
13187             # FIXME: insert proper C++ library support
13188             ld_shlibs_CXX=no
13189             ;;
13190           lcc*)
13191             # Lucid
13192             # FIXME: insert proper C++ library support
13193             ld_shlibs_CXX=no
13194             ;;
13195           *)
13196             # FIXME: insert proper C++ library support
13197             ld_shlibs_CXX=no
13198             ;;
13199         esac
13200         ;;
13201
13202       solaris*)
13203         case $cc_basename in
13204           CC*)
13205             # Sun C++ 4.2, 5.x and Centerline C++
13206             archive_cmds_need_lc_CXX=yes
13207             no_undefined_flag_CXX=' -zdefs'
13208             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13209             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13210               $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'
13211
13212             hardcode_libdir_flag_spec_CXX='-R$libdir'
13213             hardcode_shlibpath_var_CXX=no
13214             case $host_os in
13215               solaris2.[0-5] | solaris2.[0-5].*) ;;
13216               *)
13217                 # The compiler driver will combine and reorder linker options,
13218                 # but understands `-z linker_flag'.
13219                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13220                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13221                 ;;
13222             esac
13223             link_all_deplibs_CXX=yes
13224
13225             output_verbose_link_cmd='echo'
13226
13227             # Archives containing C++ object files must be created using
13228             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13229             # necessary to make sure instantiated templates are included
13230             # in the archive.
13231             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13232             ;;
13233           gcx*)
13234             # Green Hills C++ Compiler
13235             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13236
13237             # The C++ compiler must be used to create the archive.
13238             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13239             ;;
13240           *)
13241             # GNU C++ compiler with Solaris linker
13242             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13243               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13244               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13245                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13246                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13247                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13248
13249                 # Commands to make compiler produce verbose output that lists
13250                 # what "hidden" libraries, object files and flags are used when
13251                 # linking a shared library.
13252                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13253               else
13254                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13255                 # platform.
13256                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13257                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13258                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13259
13260                 # Commands to make compiler produce verbose output that lists
13261                 # what "hidden" libraries, object files and flags are used when
13262                 # linking a shared library.
13263                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13264               fi
13265
13266               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13267               case $host_os in
13268                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13269                 *)
13270                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13271                   ;;
13272               esac
13273             fi
13274             ;;
13275         esac
13276         ;;
13277
13278     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13279       no_undefined_flag_CXX='${wl}-z,text'
13280       archive_cmds_need_lc_CXX=no
13281       hardcode_shlibpath_var_CXX=no
13282       runpath_var='LD_RUN_PATH'
13283
13284       case $cc_basename in
13285         CC*)
13286           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13287           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13288           ;;
13289         *)
13290           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13291           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13292           ;;
13293       esac
13294       ;;
13295
13296       sysv5* | sco3.2v5* | sco5v6*)
13297         # Note: We can NOT use -z defs as we might desire, because we do not
13298         # link with -lc, and that would cause any symbols used from libc to
13299         # always be unresolved, which means just about no library would
13300         # ever link correctly.  If we're not using GNU ld we use -z text
13301         # though, which does catch some bad symbols but isn't as heavy-handed
13302         # as -z defs.
13303         no_undefined_flag_CXX='${wl}-z,text'
13304         allow_undefined_flag_CXX='${wl}-z,nodefs'
13305         archive_cmds_need_lc_CXX=no
13306         hardcode_shlibpath_var_CXX=no
13307         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13308         hardcode_libdir_separator_CXX=':'
13309         link_all_deplibs_CXX=yes
13310         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13311         runpath_var='LD_RUN_PATH'
13312
13313         case $cc_basename in
13314           CC*)
13315             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13316             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13317             ;;
13318           *)
13319             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13320             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13321             ;;
13322         esac
13323       ;;
13324
13325       tandem*)
13326         case $cc_basename in
13327           NCC*)
13328             # NonStop-UX NCC 3.20
13329             # FIXME: insert proper C++ library support
13330             ld_shlibs_CXX=no
13331             ;;
13332           *)
13333             # FIXME: insert proper C++ library support
13334             ld_shlibs_CXX=no
13335             ;;
13336         esac
13337         ;;
13338
13339       vxworks*)
13340         # FIXME: insert proper C++ library support
13341         ld_shlibs_CXX=no
13342         ;;
13343
13344       *)
13345         # FIXME: insert proper C++ library support
13346         ld_shlibs_CXX=no
13347         ;;
13348     esac
13349
13350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13351 $as_echo "$ld_shlibs_CXX" >&6; }
13352     test "$ld_shlibs_CXX" = no && can_build_shared=no
13353
13354     GCC_CXX="$GXX"
13355     LD_CXX="$LD"
13356
13357     ## CAVEAT EMPTOR:
13358     ## There is no encapsulation within the following macros, do not change
13359     ## the running order or otherwise move them around unless you know exactly
13360     ## what you are doing...
13361     # Dependencies to place before and after the object being linked:
13362 predep_objects_CXX=
13363 postdep_objects_CXX=
13364 predeps_CXX=
13365 postdeps_CXX=
13366 compiler_lib_search_path_CXX=
13367
13368 cat > conftest.$ac_ext <<_LT_EOF
13369 class Foo
13370 {
13371 public:
13372   Foo (void) { a = 0; }
13373 private:
13374   int a;
13375 };
13376 _LT_EOF
13377
13378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13379   (eval $ac_compile) 2>&5
13380   ac_status=$?
13381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13382   test $ac_status = 0; }; then
13383   # Parse the compiler output and extract the necessary
13384   # objects, libraries and library flags.
13385
13386   # Sentinel used to keep track of whether or not we are before
13387   # the conftest object file.
13388   pre_test_object_deps_done=no
13389
13390   for p in `eval "$output_verbose_link_cmd"`; do
13391     case $p in
13392
13393     -L* | -R* | -l*)
13394        # Some compilers place space between "-{L,R}" and the path.
13395        # Remove the space.
13396        if test $p = "-L" ||
13397           test $p = "-R"; then
13398          prev=$p
13399          continue
13400        else
13401          prev=
13402        fi
13403
13404        if test "$pre_test_object_deps_done" = no; then
13405          case $p in
13406          -L* | -R*)
13407            # Internal compiler library paths should come after those
13408            # provided the user.  The postdeps already come after the
13409            # user supplied libs so there is no need to process them.
13410            if test -z "$compiler_lib_search_path_CXX"; then
13411              compiler_lib_search_path_CXX="${prev}${p}"
13412            else
13413              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13414            fi
13415            ;;
13416          # The "-l" case would never come before the object being
13417          # linked, so don't bother handling this case.
13418          esac
13419        else
13420          if test -z "$postdeps_CXX"; then
13421            postdeps_CXX="${prev}${p}"
13422          else
13423            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13424          fi
13425        fi
13426        ;;
13427
13428     *.$objext)
13429        # This assumes that the test object file only shows up
13430        # once in the compiler output.
13431        if test "$p" = "conftest.$objext"; then
13432          pre_test_object_deps_done=yes
13433          continue
13434        fi
13435
13436        if test "$pre_test_object_deps_done" = no; then
13437          if test -z "$predep_objects_CXX"; then
13438            predep_objects_CXX="$p"
13439          else
13440            predep_objects_CXX="$predep_objects_CXX $p"
13441          fi
13442        else
13443          if test -z "$postdep_objects_CXX"; then
13444            postdep_objects_CXX="$p"
13445          else
13446            postdep_objects_CXX="$postdep_objects_CXX $p"
13447          fi
13448        fi
13449        ;;
13450
13451     *) ;; # Ignore the rest.
13452
13453     esac
13454   done
13455
13456   # Clean up.
13457   rm -f a.out a.exe
13458 else
13459   echo "libtool.m4: error: problem compiling CXX test program"
13460 fi
13461
13462 $RM -f confest.$objext
13463
13464 # PORTME: override above test on systems where it is broken
13465 case $host_os in
13466 interix[3-9]*)
13467   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13468   # hack all around it, let's just trust "g++" to DTRT.
13469   predep_objects_CXX=
13470   postdep_objects_CXX=
13471   postdeps_CXX=
13472   ;;
13473
13474 linux*)
13475   case `$CC -V 2>&1 | sed 5q` in
13476   *Sun\ C*)
13477     # Sun C++ 5.9
13478
13479     # The more standards-conforming stlport4 library is
13480     # incompatible with the Cstd library. Avoid specifying
13481     # it if it's in CXXFLAGS. Ignore libCrun as
13482     # -library=stlport4 depends on it.
13483     case " $CXX $CXXFLAGS " in
13484     *" -library=stlport4 "*)
13485       solaris_use_stlport4=yes
13486       ;;
13487     esac
13488
13489     if test "$solaris_use_stlport4" != yes; then
13490       postdeps_CXX='-library=Cstd -library=Crun'
13491     fi
13492     ;;
13493   esac
13494   ;;
13495
13496 solaris*)
13497   case $cc_basename in
13498   CC*)
13499     # The more standards-conforming stlport4 library is
13500     # incompatible with the Cstd library. Avoid specifying
13501     # it if it's in CXXFLAGS. Ignore libCrun as
13502     # -library=stlport4 depends on it.
13503     case " $CXX $CXXFLAGS " in
13504     *" -library=stlport4 "*)
13505       solaris_use_stlport4=yes
13506       ;;
13507     esac
13508
13509     # Adding this requires a known-good setup of shared libraries for
13510     # Sun compiler versions before 5.6, else PIC objects from an old
13511     # archive will be linked into the output, leading to subtle bugs.
13512     if test "$solaris_use_stlport4" != yes; then
13513       postdeps_CXX='-library=Cstd -library=Crun'
13514     fi
13515     ;;
13516   esac
13517   ;;
13518 esac
13519
13520
13521 case " $postdeps_CXX " in
13522 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13523 esac
13524  compiler_lib_search_dirs_CXX=
13525 if test -n "${compiler_lib_search_path_CXX}"; then
13526  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13527 fi
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559     lt_prog_compiler_wl_CXX=
13560 lt_prog_compiler_pic_CXX=
13561 lt_prog_compiler_static_CXX=
13562
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13564 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13565
13566   # C++ specific cases for pic, static, wl, etc.
13567   if test "$GXX" = yes; then
13568     lt_prog_compiler_wl_CXX='-Wl,'
13569     lt_prog_compiler_static_CXX='-static'
13570
13571     case $host_os in
13572     aix*)
13573       # All AIX code is PIC.
13574       if test "$host_cpu" = ia64; then
13575         # AIX 5 now supports IA64 processor
13576         lt_prog_compiler_static_CXX='-Bstatic'
13577       fi
13578       ;;
13579
13580     amigaos*)
13581       case $host_cpu in
13582       powerpc)
13583             # see comment about AmigaOS4 .so support
13584             lt_prog_compiler_pic_CXX='-fPIC'
13585         ;;
13586       m68k)
13587             # FIXME: we need at least 68020 code to build shared libraries, but
13588             # adding the `-m68020' flag to GCC prevents building anything better,
13589             # like `-m68040'.
13590             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13591         ;;
13592       esac
13593       ;;
13594
13595     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13596       # PIC is the default for these OSes.
13597       ;;
13598     mingw* | cygwin* | os2* | pw32* | cegcc*)
13599       # This hack is so that the source file can tell whether it is being
13600       # built for inclusion in a dll (and should export symbols for example).
13601       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13602       # (--disable-auto-import) libraries
13603       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13604       ;;
13605     darwin* | rhapsody*)
13606       # PIC is the default on this platform
13607       # Common symbols not allowed in MH_DYLIB files
13608       lt_prog_compiler_pic_CXX='-fno-common'
13609       ;;
13610     *djgpp*)
13611       # DJGPP does not support shared libraries at all
13612       lt_prog_compiler_pic_CXX=
13613       ;;
13614     interix[3-9]*)
13615       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13616       # Instead, we relocate shared libraries at runtime.
13617       ;;
13618     sysv4*MP*)
13619       if test -d /usr/nec; then
13620         lt_prog_compiler_pic_CXX=-Kconform_pic
13621       fi
13622       ;;
13623     hpux*)
13624       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13625       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13626       # sets the default TLS model and affects inlining.
13627       case $host_cpu in
13628       hppa*64*)
13629         ;;
13630       *)
13631         lt_prog_compiler_pic_CXX='-fPIC'
13632         ;;
13633       esac
13634       ;;
13635     *qnx* | *nto*)
13636       # QNX uses GNU C++, but need to define -shared option too, otherwise
13637       # it will coredump.
13638       lt_prog_compiler_pic_CXX='-fPIC -shared'
13639       ;;
13640     *)
13641       lt_prog_compiler_pic_CXX='-fPIC'
13642       ;;
13643     esac
13644   else
13645     case $host_os in
13646       aix[4-9]*)
13647         # All AIX code is PIC.
13648         if test "$host_cpu" = ia64; then
13649           # AIX 5 now supports IA64 processor
13650           lt_prog_compiler_static_CXX='-Bstatic'
13651         else
13652           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13653         fi
13654         ;;
13655       chorus*)
13656         case $cc_basename in
13657         cxch68*)
13658           # Green Hills C++ Compiler
13659           # _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"
13660           ;;
13661         esac
13662         ;;
13663       dgux*)
13664         case $cc_basename in
13665           ec++*)
13666             lt_prog_compiler_pic_CXX='-KPIC'
13667             ;;
13668           ghcx*)
13669             # Green Hills C++ Compiler
13670             lt_prog_compiler_pic_CXX='-pic'
13671             ;;
13672           *)
13673             ;;
13674         esac
13675         ;;
13676       freebsd* | dragonfly*)
13677         # FreeBSD uses GNU C++
13678         ;;
13679       hpux9* | hpux10* | hpux11*)
13680         case $cc_basename in
13681           CC*)
13682             lt_prog_compiler_wl_CXX='-Wl,'
13683             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13684             if test "$host_cpu" != ia64; then
13685               lt_prog_compiler_pic_CXX='+Z'
13686             fi
13687             ;;
13688           aCC*)
13689             lt_prog_compiler_wl_CXX='-Wl,'
13690             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13691             case $host_cpu in
13692             hppa*64*|ia64*)
13693               # +Z the default
13694               ;;
13695             *)
13696               lt_prog_compiler_pic_CXX='+Z'
13697               ;;
13698             esac
13699             ;;
13700           *)
13701             ;;
13702         esac
13703         ;;
13704       interix*)
13705         # This is c89, which is MS Visual C++ (no shared libs)
13706         # Anyone wants to do a port?
13707         ;;
13708       irix5* | irix6* | nonstopux*)
13709         case $cc_basename in
13710           CC*)
13711             lt_prog_compiler_wl_CXX='-Wl,'
13712             lt_prog_compiler_static_CXX='-non_shared'
13713             # CC pic flag -KPIC is the default.
13714             ;;
13715           *)
13716             ;;
13717         esac
13718         ;;
13719       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13720         case $cc_basename in
13721           KCC*)
13722             # KAI C++ Compiler
13723             lt_prog_compiler_wl_CXX='--backend -Wl,'
13724             lt_prog_compiler_pic_CXX='-fPIC'
13725             ;;
13726           ecpc* )
13727             # old Intel C++ for x86_64 which still supported -KPIC.
13728             lt_prog_compiler_wl_CXX='-Wl,'
13729             lt_prog_compiler_pic_CXX='-KPIC'
13730             lt_prog_compiler_static_CXX='-static'
13731             ;;
13732           icpc* )
13733             # Intel C++, used to be incompatible with GCC.
13734             # ICC 10 doesn't accept -KPIC any more.
13735             lt_prog_compiler_wl_CXX='-Wl,'
13736             lt_prog_compiler_pic_CXX='-fPIC'
13737             lt_prog_compiler_static_CXX='-static'
13738             ;;
13739           pgCC* | pgcpp*)
13740             # Portland Group C++ compiler
13741             lt_prog_compiler_wl_CXX='-Wl,'
13742             lt_prog_compiler_pic_CXX='-fpic'
13743             lt_prog_compiler_static_CXX='-Bstatic'
13744             ;;
13745           cxx*)
13746             # Compaq C++
13747             # Make sure the PIC flag is empty.  It appears that all Alpha
13748             # Linux and Compaq Tru64 Unix objects are PIC.
13749             lt_prog_compiler_pic_CXX=
13750             lt_prog_compiler_static_CXX='-non_shared'
13751             ;;
13752           xlc* | xlC*)
13753             # IBM XL 8.0 on PPC
13754             lt_prog_compiler_wl_CXX='-Wl,'
13755             lt_prog_compiler_pic_CXX='-qpic'
13756             lt_prog_compiler_static_CXX='-qstaticlink'
13757             ;;
13758           *)
13759             case `$CC -V 2>&1 | sed 5q` in
13760             *Sun\ C*)
13761               # Sun C++ 5.9
13762               lt_prog_compiler_pic_CXX='-KPIC'
13763               lt_prog_compiler_static_CXX='-Bstatic'
13764               lt_prog_compiler_wl_CXX='-Qoption ld '
13765               ;;
13766             esac
13767             ;;
13768         esac
13769         ;;
13770       lynxos*)
13771         ;;
13772       m88k*)
13773         ;;
13774       mvs*)
13775         case $cc_basename in
13776           cxx*)
13777             lt_prog_compiler_pic_CXX='-W c,exportall'
13778             ;;
13779           *)
13780             ;;
13781         esac
13782         ;;
13783       netbsd* | netbsdelf*-gnu)
13784         ;;
13785       *qnx* | *nto*)
13786         # QNX uses GNU C++, but need to define -shared option too, otherwise
13787         # it will coredump.
13788         lt_prog_compiler_pic_CXX='-fPIC -shared'
13789         ;;
13790       osf3* | osf4* | osf5*)
13791         case $cc_basename in
13792           KCC*)
13793             lt_prog_compiler_wl_CXX='--backend -Wl,'
13794             ;;
13795           RCC*)
13796             # Rational C++ 2.4.1
13797             lt_prog_compiler_pic_CXX='-pic'
13798             ;;
13799           cxx*)
13800             # Digital/Compaq C++
13801             lt_prog_compiler_wl_CXX='-Wl,'
13802             # Make sure the PIC flag is empty.  It appears that all Alpha
13803             # Linux and Compaq Tru64 Unix objects are PIC.
13804             lt_prog_compiler_pic_CXX=
13805             lt_prog_compiler_static_CXX='-non_shared'
13806             ;;
13807           *)
13808             ;;
13809         esac
13810         ;;
13811       psos*)
13812         ;;
13813       solaris*)
13814         case $cc_basename in
13815           CC*)
13816             # Sun C++ 4.2, 5.x and Centerline C++
13817             lt_prog_compiler_pic_CXX='-KPIC'
13818             lt_prog_compiler_static_CXX='-Bstatic'
13819             lt_prog_compiler_wl_CXX='-Qoption ld '
13820             ;;
13821           gcx*)
13822             # Green Hills C++ Compiler
13823             lt_prog_compiler_pic_CXX='-PIC'
13824             ;;
13825           *)
13826             ;;
13827         esac
13828         ;;
13829       sunos4*)
13830         case $cc_basename in
13831           CC*)
13832             # Sun C++ 4.x
13833             lt_prog_compiler_pic_CXX='-pic'
13834             lt_prog_compiler_static_CXX='-Bstatic'
13835             ;;
13836           lcc*)
13837             # Lucid
13838             lt_prog_compiler_pic_CXX='-pic'
13839             ;;
13840           *)
13841             ;;
13842         esac
13843         ;;
13844       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13845         case $cc_basename in
13846           CC*)
13847             lt_prog_compiler_wl_CXX='-Wl,'
13848             lt_prog_compiler_pic_CXX='-KPIC'
13849             lt_prog_compiler_static_CXX='-Bstatic'
13850             ;;
13851         esac
13852         ;;
13853       tandem*)
13854         case $cc_basename in
13855           NCC*)
13856             # NonStop-UX NCC 3.20
13857             lt_prog_compiler_pic_CXX='-KPIC'
13858             ;;
13859           *)
13860             ;;
13861         esac
13862         ;;
13863       vxworks*)
13864         ;;
13865       *)
13866         lt_prog_compiler_can_build_shared_CXX=no
13867         ;;
13868     esac
13869   fi
13870
13871 case $host_os in
13872   # For platforms which do not support PIC, -DPIC is meaningless:
13873   *djgpp*)
13874     lt_prog_compiler_pic_CXX=
13875     ;;
13876   *)
13877     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13878     ;;
13879 esac
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13881 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13882
13883
13884
13885 #
13886 # Check to make sure the PIC flag actually works.
13887 #
13888 if test -n "$lt_prog_compiler_pic_CXX"; then
13889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13890 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13891 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13892   $as_echo_n "(cached) " >&6
13893 else
13894   lt_cv_prog_compiler_pic_works_CXX=no
13895    ac_outfile=conftest.$ac_objext
13896    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13897    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13898    # Insert the option either (1) after the last *FLAGS variable, or
13899    # (2) before a word containing "conftest.", or (3) at the end.
13900    # Note that $ac_compile itself does not contain backslashes and begins
13901    # with a dollar sign (not a hyphen), so the echo should work correctly.
13902    # The option is referenced via a variable to avoid confusing sed.
13903    lt_compile=`echo "$ac_compile" | $SED \
13904    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13905    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13906    -e 's:$: $lt_compiler_flag:'`
13907    (eval echo "\"\$as_me:13907: $lt_compile\"" >&5)
13908    (eval "$lt_compile" 2>conftest.err)
13909    ac_status=$?
13910    cat conftest.err >&5
13911    echo "$as_me:13911: \$? = $ac_status" >&5
13912    if (exit $ac_status) && test -s "$ac_outfile"; then
13913      # The compiler can only warn and ignore the option if not recognized
13914      # So say no if there are warnings other than the usual output.
13915      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13916      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13917      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13918        lt_cv_prog_compiler_pic_works_CXX=yes
13919      fi
13920    fi
13921    $RM conftest*
13922
13923 fi
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13925 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13926
13927 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13928     case $lt_prog_compiler_pic_CXX in
13929      "" | " "*) ;;
13930      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13931      esac
13932 else
13933     lt_prog_compiler_pic_CXX=
13934      lt_prog_compiler_can_build_shared_CXX=no
13935 fi
13936
13937 fi
13938
13939
13940
13941 #
13942 # Check to make sure the static flag actually works.
13943 #
13944 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13946 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13947 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13948   $as_echo_n "(cached) " >&6
13949 else
13950   lt_cv_prog_compiler_static_works_CXX=no
13951    save_LDFLAGS="$LDFLAGS"
13952    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13953    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13954    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13955      # The linker can only warn and ignore the option if not recognized
13956      # So say no if there are warnings
13957      if test -s conftest.err; then
13958        # Append any errors to the config.log.
13959        cat conftest.err 1>&5
13960        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13961        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13962        if diff conftest.exp conftest.er2 >/dev/null; then
13963          lt_cv_prog_compiler_static_works_CXX=yes
13964        fi
13965      else
13966        lt_cv_prog_compiler_static_works_CXX=yes
13967      fi
13968    fi
13969    $RM -r conftest*
13970    LDFLAGS="$save_LDFLAGS"
13971
13972 fi
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13974 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13975
13976 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13977     :
13978 else
13979     lt_prog_compiler_static_CXX=
13980 fi
13981
13982
13983
13984
13985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13986 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13987 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13988   $as_echo_n "(cached) " >&6
13989 else
13990   lt_cv_prog_compiler_c_o_CXX=no
13991    $RM -r conftest 2>/dev/null
13992    mkdir conftest
13993    cd conftest
13994    mkdir out
13995    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13996
13997    lt_compiler_flag="-o out/conftest2.$ac_objext"
13998    # Insert the option either (1) after the last *FLAGS variable, or
13999    # (2) before a word containing "conftest.", or (3) at the end.
14000    # Note that $ac_compile itself does not contain backslashes and begins
14001    # with a dollar sign (not a hyphen), so the echo should work correctly.
14002    lt_compile=`echo "$ac_compile" | $SED \
14003    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14004    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14005    -e 's:$: $lt_compiler_flag:'`
14006    (eval echo "\"\$as_me:14006: $lt_compile\"" >&5)
14007    (eval "$lt_compile" 2>out/conftest.err)
14008    ac_status=$?
14009    cat out/conftest.err >&5
14010    echo "$as_me:14010: \$? = $ac_status" >&5
14011    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14012    then
14013      # The compiler can only warn and ignore the option if not recognized
14014      # So say no if there are warnings
14015      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14016      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14017      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14018        lt_cv_prog_compiler_c_o_CXX=yes
14019      fi
14020    fi
14021    chmod u+w . 2>&5
14022    $RM conftest*
14023    # SGI C++ compiler will create directory out/ii_files/ for
14024    # template instantiation
14025    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14026    $RM out/* && rmdir out
14027    cd ..
14028    $RM -r conftest
14029    $RM conftest*
14030
14031 fi
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14033 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14034
14035
14036
14037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14038 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14039 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14040   $as_echo_n "(cached) " >&6
14041 else
14042   lt_cv_prog_compiler_c_o_CXX=no
14043    $RM -r conftest 2>/dev/null
14044    mkdir conftest
14045    cd conftest
14046    mkdir out
14047    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14048
14049    lt_compiler_flag="-o out/conftest2.$ac_objext"
14050    # Insert the option either (1) after the last *FLAGS variable, or
14051    # (2) before a word containing "conftest.", or (3) at the end.
14052    # Note that $ac_compile itself does not contain backslashes and begins
14053    # with a dollar sign (not a hyphen), so the echo should work correctly.
14054    lt_compile=`echo "$ac_compile" | $SED \
14055    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14056    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14057    -e 's:$: $lt_compiler_flag:'`
14058    (eval echo "\"\$as_me:14058: $lt_compile\"" >&5)
14059    (eval "$lt_compile" 2>out/conftest.err)
14060    ac_status=$?
14061    cat out/conftest.err >&5
14062    echo "$as_me:14062: \$? = $ac_status" >&5
14063    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14064    then
14065      # The compiler can only warn and ignore the option if not recognized
14066      # So say no if there are warnings
14067      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14068      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14069      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14070        lt_cv_prog_compiler_c_o_CXX=yes
14071      fi
14072    fi
14073    chmod u+w . 2>&5
14074    $RM conftest*
14075    # SGI C++ compiler will create directory out/ii_files/ for
14076    # template instantiation
14077    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14078    $RM out/* && rmdir out
14079    cd ..
14080    $RM -r conftest
14081    $RM conftest*
14082
14083 fi
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14085 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14086
14087
14088
14089
14090 hard_links="nottested"
14091 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14092   # do not overwrite the value of need_locks provided by the user
14093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14094 $as_echo_n "checking if we can lock with hard links... " >&6; }
14095   hard_links=yes
14096   $RM conftest*
14097   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14098   touch conftest.a
14099   ln conftest.a conftest.b 2>&5 || hard_links=no
14100   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14102 $as_echo "$hard_links" >&6; }
14103   if test "$hard_links" = no; then
14104     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14105 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14106     need_locks=warn
14107   fi
14108 else
14109   need_locks=no
14110 fi
14111
14112
14113
14114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14115 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14116
14117   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14118   case $host_os in
14119   aix[4-9]*)
14120     # If we're using GNU nm, then we don't want the "-C" option.
14121     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14122     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14123       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'
14124     else
14125       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'
14126     fi
14127     ;;
14128   pw32*)
14129     export_symbols_cmds_CXX="$ltdll_cmds"
14130   ;;
14131   cygwin* | mingw* | cegcc*)
14132     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'
14133   ;;
14134   linux* | k*bsd*-gnu)
14135     link_all_deplibs_CXX=no
14136   ;;
14137   *)
14138     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14139   ;;
14140   esac
14141   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14142
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14144 $as_echo "$ld_shlibs_CXX" >&6; }
14145 test "$ld_shlibs_CXX" = no && can_build_shared=no
14146
14147 with_gnu_ld_CXX=$with_gnu_ld
14148
14149
14150
14151
14152
14153
14154 #
14155 # Do we need to explicitly link libc?
14156 #
14157 case "x$archive_cmds_need_lc_CXX" in
14158 x|xyes)
14159   # Assume -lc should be added
14160   archive_cmds_need_lc_CXX=yes
14161
14162   if test "$enable_shared" = yes && test "$GCC" = yes; then
14163     case $archive_cmds_CXX in
14164     *'~'*)
14165       # FIXME: we may have to deal with multi-command sequences.
14166       ;;
14167     '$CC '*)
14168       # Test whether the compiler implicitly links with -lc since on some
14169       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14170       # to ld, don't add -lc before -lgcc.
14171       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14172 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14173       $RM conftest*
14174       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14175
14176       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14177   (eval $ac_compile) 2>&5
14178   ac_status=$?
14179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14180   test $ac_status = 0; } 2>conftest.err; then
14181         soname=conftest
14182         lib=conftest
14183         libobjs=conftest.$ac_objext
14184         deplibs=
14185         wl=$lt_prog_compiler_wl_CXX
14186         pic_flag=$lt_prog_compiler_pic_CXX
14187         compiler_flags=-v
14188         linker_flags=-v
14189         verstring=
14190         output_objdir=.
14191         libname=conftest
14192         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14193         allow_undefined_flag_CXX=
14194         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14195   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14196   ac_status=$?
14197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14198   test $ac_status = 0; }
14199         then
14200           archive_cmds_need_lc_CXX=no
14201         else
14202           archive_cmds_need_lc_CXX=yes
14203         fi
14204         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14205       else
14206         cat conftest.err 1>&5
14207       fi
14208       $RM conftest*
14209       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14210 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14211       ;;
14212     esac
14213   fi
14214   ;;
14215 esac
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14281 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14282
14283 library_names_spec=
14284 libname_spec='lib$name'
14285 soname_spec=
14286 shrext_cmds=".so"
14287 postinstall_cmds=
14288 postuninstall_cmds=
14289 finish_cmds=
14290 finish_eval=
14291 shlibpath_var=
14292 shlibpath_overrides_runpath=unknown
14293 version_type=none
14294 dynamic_linker="$host_os ld.so"
14295 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14296 need_lib_prefix=unknown
14297 hardcode_into_libs=no
14298
14299 # when you set need_version to no, make sure it does not cause -set_version
14300 # flags to be left without arguments
14301 need_version=unknown
14302
14303 case $host_os in
14304 aix3*)
14305   version_type=linux
14306   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14307   shlibpath_var=LIBPATH
14308
14309   # AIX 3 has no versioning support, so we append a major version to the name.
14310   soname_spec='${libname}${release}${shared_ext}$major'
14311   ;;
14312
14313 aix[4-9]*)
14314   version_type=linux
14315   need_lib_prefix=no
14316   need_version=no
14317   hardcode_into_libs=yes
14318   if test "$host_cpu" = ia64; then
14319     # AIX 5 supports IA64
14320     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14321     shlibpath_var=LD_LIBRARY_PATH
14322   else
14323     # With GCC up to 2.95.x, collect2 would create an import file
14324     # for dependence libraries.  The import file would start with
14325     # the line `#! .'.  This would cause the generated library to
14326     # depend on `.', always an invalid library.  This was fixed in
14327     # development snapshots of GCC prior to 3.0.
14328     case $host_os in
14329       aix4 | aix4.[01] | aix4.[01].*)
14330       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14331            echo ' yes '
14332            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14333         :
14334       else
14335         can_build_shared=no
14336       fi
14337       ;;
14338     esac
14339     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14340     # soname into executable. Probably we can add versioning support to
14341     # collect2, so additional links can be useful in future.
14342     if test "$aix_use_runtimelinking" = yes; then
14343       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14344       # instead of lib<name>.a to let people know that these are not
14345       # typical AIX shared libraries.
14346       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14347     else
14348       # We preserve .a as extension for shared libraries through AIX4.2
14349       # and later when we are not doing run time linking.
14350       library_names_spec='${libname}${release}.a $libname.a'
14351       soname_spec='${libname}${release}${shared_ext}$major'
14352     fi
14353     shlibpath_var=LIBPATH
14354   fi
14355   ;;
14356
14357 amigaos*)
14358   case $host_cpu in
14359   powerpc)
14360     # Since July 2007 AmigaOS4 officially supports .so libraries.
14361     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14363     ;;
14364   m68k)
14365     library_names_spec='$libname.ixlibrary $libname.a'
14366     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14367     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'
14368     ;;
14369   esac
14370   ;;
14371
14372 beos*)
14373   library_names_spec='${libname}${shared_ext}'
14374   dynamic_linker="$host_os ld.so"
14375   shlibpath_var=LIBRARY_PATH
14376   ;;
14377
14378 bsdi[45]*)
14379   version_type=linux
14380   need_version=no
14381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14382   soname_spec='${libname}${release}${shared_ext}$major'
14383   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14384   shlibpath_var=LD_LIBRARY_PATH
14385   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14386   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14387   # the default ld.so.conf also contains /usr/contrib/lib and
14388   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14389   # libtool to hard-code these into programs
14390   ;;
14391
14392 cygwin* | mingw* | pw32* | cegcc*)
14393   version_type=windows
14394   shrext_cmds=".dll"
14395   need_version=no
14396   need_lib_prefix=no
14397
14398   case $GCC,$host_os in
14399   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14400     library_names_spec='$libname.dll.a'
14401     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14402     postinstall_cmds='base_file=`basename \${file}`~
14403       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14404       dldir=$destdir/`dirname \$dlpath`~
14405       test -d \$dldir || mkdir -p \$dldir~
14406       $install_prog $dir/$dlname \$dldir/$dlname~
14407       chmod a+x \$dldir/$dlname~
14408       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14409         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14410       fi'
14411     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14412       dlpath=$dir/\$dldll~
14413        $RM \$dlpath'
14414     shlibpath_overrides_runpath=yes
14415
14416     case $host_os in
14417     cygwin*)
14418       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14419       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14420       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14421       ;;
14422     mingw* | cegcc*)
14423       # MinGW DLLs use traditional 'lib' prefix
14424       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14425       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14426       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14427         # It is most probably a Windows format PATH printed by
14428         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14429         # path with ; separators, and with drive letters. We can handle the
14430         # drive letters (cygwin fileutils understands them), so leave them,
14431         # especially as we might pass files found there to a mingw objdump,
14432         # which wouldn't understand a cygwinified path. Ahh.
14433         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14434       else
14435         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14436       fi
14437       ;;
14438     pw32*)
14439       # pw32 DLLs use 'pw' prefix rather than 'lib'
14440       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14441       ;;
14442     esac
14443     ;;
14444
14445   *)
14446     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14447     ;;
14448   esac
14449   dynamic_linker='Win32 ld.exe'
14450   # FIXME: first we should search . and the directory the executable is in
14451   shlibpath_var=PATH
14452   ;;
14453
14454 darwin* | rhapsody*)
14455   dynamic_linker="$host_os dyld"
14456   version_type=darwin
14457   need_lib_prefix=no
14458   need_version=no
14459   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14460   soname_spec='${libname}${release}${major}$shared_ext'
14461   shlibpath_overrides_runpath=yes
14462   shlibpath_var=DYLD_LIBRARY_PATH
14463   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14464
14465   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14466   ;;
14467
14468 dgux*)
14469   version_type=linux
14470   need_lib_prefix=no
14471   need_version=no
14472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14473   soname_spec='${libname}${release}${shared_ext}$major'
14474   shlibpath_var=LD_LIBRARY_PATH
14475   ;;
14476
14477 freebsd1*)
14478   dynamic_linker=no
14479   ;;
14480
14481 freebsd* | dragonfly*)
14482   # DragonFly does not have aout.  When/if they implement a new
14483   # versioning mechanism, adjust this.
14484   if test -x /usr/bin/objformat; then
14485     objformat=`/usr/bin/objformat`
14486   else
14487     case $host_os in
14488     freebsd[123]*) objformat=aout ;;
14489     *) objformat=elf ;;
14490     esac
14491   fi
14492   version_type=freebsd-$objformat
14493   case $version_type in
14494     freebsd-elf*)
14495       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14496       need_version=no
14497       need_lib_prefix=no
14498       ;;
14499     freebsd-*)
14500       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14501       need_version=yes
14502       ;;
14503   esac
14504   shlibpath_var=LD_LIBRARY_PATH
14505   case $host_os in
14506   freebsd2*)
14507     shlibpath_overrides_runpath=yes
14508     ;;
14509   freebsd3.[01]* | freebsdelf3.[01]*)
14510     shlibpath_overrides_runpath=yes
14511     hardcode_into_libs=yes
14512     ;;
14513   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14514   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14515     shlibpath_overrides_runpath=no
14516     hardcode_into_libs=yes
14517     ;;
14518   *) # from 4.6 on, and DragonFly
14519     shlibpath_overrides_runpath=yes
14520     hardcode_into_libs=yes
14521     ;;
14522   esac
14523   ;;
14524
14525 gnu*)
14526   version_type=linux
14527   need_lib_prefix=no
14528   need_version=no
14529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14530   soname_spec='${libname}${release}${shared_ext}$major'
14531   shlibpath_var=LD_LIBRARY_PATH
14532   hardcode_into_libs=yes
14533   ;;
14534
14535 hpux9* | hpux10* | hpux11*)
14536   # Give a soname corresponding to the major version so that dld.sl refuses to
14537   # link against other versions.
14538   version_type=sunos
14539   need_lib_prefix=no
14540   need_version=no
14541   case $host_cpu in
14542   ia64*)
14543     shrext_cmds='.so'
14544     hardcode_into_libs=yes
14545     dynamic_linker="$host_os dld.so"
14546     shlibpath_var=LD_LIBRARY_PATH
14547     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14548     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14549     soname_spec='${libname}${release}${shared_ext}$major'
14550     if test "X$HPUX_IA64_MODE" = X32; then
14551       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14552     else
14553       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14554     fi
14555     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14556     ;;
14557   hppa*64*)
14558     shrext_cmds='.sl'
14559     hardcode_into_libs=yes
14560     dynamic_linker="$host_os dld.sl"
14561     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14562     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14563     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564     soname_spec='${libname}${release}${shared_ext}$major'
14565     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14566     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14567     ;;
14568   *)
14569     shrext_cmds='.sl'
14570     dynamic_linker="$host_os dld.sl"
14571     shlibpath_var=SHLIB_PATH
14572     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14574     soname_spec='${libname}${release}${shared_ext}$major'
14575     ;;
14576   esac
14577   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14578   postinstall_cmds='chmod 555 $lib'
14579   ;;
14580
14581 interix[3-9]*)
14582   version_type=linux
14583   need_lib_prefix=no
14584   need_version=no
14585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14586   soname_spec='${libname}${release}${shared_ext}$major'
14587   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14588   shlibpath_var=LD_LIBRARY_PATH
14589   shlibpath_overrides_runpath=no
14590   hardcode_into_libs=yes
14591   ;;
14592
14593 irix5* | irix6* | nonstopux*)
14594   case $host_os in
14595     nonstopux*) version_type=nonstopux ;;
14596     *)
14597         if test "$lt_cv_prog_gnu_ld" = yes; then
14598                 version_type=linux
14599         else
14600                 version_type=irix
14601         fi ;;
14602   esac
14603   need_lib_prefix=no
14604   need_version=no
14605   soname_spec='${libname}${release}${shared_ext}$major'
14606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14607   case $host_os in
14608   irix5* | nonstopux*)
14609     libsuff= shlibsuff=
14610     ;;
14611   *)
14612     case $LD in # libtool.m4 will add one of these switches to LD
14613     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14614       libsuff= shlibsuff= libmagic=32-bit;;
14615     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14616       libsuff=32 shlibsuff=N32 libmagic=N32;;
14617     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14618       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14619     *) libsuff= shlibsuff= libmagic=never-match;;
14620     esac
14621     ;;
14622   esac
14623   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14624   shlibpath_overrides_runpath=no
14625   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14626   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14627   hardcode_into_libs=yes
14628   ;;
14629
14630 # No shared lib support for Linux oldld, aout, or coff.
14631 linux*oldld* | linux*aout* | linux*coff*)
14632   dynamic_linker=no
14633   ;;
14634
14635 # This must be Linux ELF.
14636 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14637   version_type=linux
14638   need_lib_prefix=no
14639   need_version=no
14640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14641   soname_spec='${libname}${release}${shared_ext}$major'
14642   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14643   shlibpath_var=LD_LIBRARY_PATH
14644   shlibpath_overrides_runpath=no
14645   # Some binutils ld are patched to set DT_RUNPATH
14646   save_LDFLAGS=$LDFLAGS
14647   save_libdir=$libdir
14648   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14649        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h.  */
14652
14653 int
14654 main ()
14655 {
14656
14657   ;
14658   return 0;
14659 }
14660 _ACEOF
14661 if ac_fn_cxx_try_link "$LINENO"; then :
14662   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14663   shlibpath_overrides_runpath=yes
14664 fi
14665 fi
14666 rm -f core conftest.err conftest.$ac_objext \
14667     conftest$ac_exeext conftest.$ac_ext
14668   LDFLAGS=$save_LDFLAGS
14669   libdir=$save_libdir
14670
14671   # This implies no fast_install, which is unacceptable.
14672   # Some rework will be needed to allow for fast_install
14673   # before this can be enabled.
14674   hardcode_into_libs=yes
14675
14676   # Append ld.so.conf contents to the search path
14677   if test -f /etc/ld.so.conf; then
14678     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' ' '`
14679     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14680   fi
14681
14682   # We used to test for /lib/ld.so.1 and disable shared libraries on
14683   # powerpc, because MkLinux only supported shared libraries with the
14684   # GNU dynamic linker.  Since this was broken with cross compilers,
14685   # most powerpc-linux boxes support dynamic linking these days and
14686   # people can always --disable-shared, the test was removed, and we
14687   # assume the GNU/Linux dynamic linker is in use.
14688   dynamic_linker='GNU/Linux ld.so'
14689   ;;
14690
14691 netbsdelf*-gnu)
14692   version_type=linux
14693   need_lib_prefix=no
14694   need_version=no
14695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14696   soname_spec='${libname}${release}${shared_ext}$major'
14697   shlibpath_var=LD_LIBRARY_PATH
14698   shlibpath_overrides_runpath=no
14699   hardcode_into_libs=yes
14700   dynamic_linker='NetBSD ld.elf_so'
14701   ;;
14702
14703 netbsd*)
14704   version_type=sunos
14705   need_lib_prefix=no
14706   need_version=no
14707   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14708     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14709     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14710     dynamic_linker='NetBSD (a.out) ld.so'
14711   else
14712     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14713     soname_spec='${libname}${release}${shared_ext}$major'
14714     dynamic_linker='NetBSD ld.elf_so'
14715   fi
14716   shlibpath_var=LD_LIBRARY_PATH
14717   shlibpath_overrides_runpath=yes
14718   hardcode_into_libs=yes
14719   ;;
14720
14721 newsos6)
14722   version_type=linux
14723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724   shlibpath_var=LD_LIBRARY_PATH
14725   shlibpath_overrides_runpath=yes
14726   ;;
14727
14728 *nto* | *qnx*)
14729   version_type=qnx
14730   need_lib_prefix=no
14731   need_version=no
14732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14733   soname_spec='${libname}${release}${shared_ext}$major'
14734   shlibpath_var=LD_LIBRARY_PATH
14735   shlibpath_overrides_runpath=no
14736   hardcode_into_libs=yes
14737   dynamic_linker='ldqnx.so'
14738   ;;
14739
14740 openbsd*)
14741   version_type=sunos
14742   sys_lib_dlsearch_path_spec="/usr/lib"
14743   need_lib_prefix=no
14744   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14745   case $host_os in
14746     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14747     *)                          need_version=no  ;;
14748   esac
14749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14750   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14751   shlibpath_var=LD_LIBRARY_PATH
14752   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14753     case $host_os in
14754       openbsd2.[89] | openbsd2.[89].*)
14755         shlibpath_overrides_runpath=no
14756         ;;
14757       *)
14758         shlibpath_overrides_runpath=yes
14759         ;;
14760       esac
14761   else
14762     shlibpath_overrides_runpath=yes
14763   fi
14764   ;;
14765
14766 os2*)
14767   libname_spec='$name'
14768   shrext_cmds=".dll"
14769   need_lib_prefix=no
14770   library_names_spec='$libname${shared_ext} $libname.a'
14771   dynamic_linker='OS/2 ld.exe'
14772   shlibpath_var=LIBPATH
14773   ;;
14774
14775 osf3* | osf4* | osf5*)
14776   version_type=osf
14777   need_lib_prefix=no
14778   need_version=no
14779   soname_spec='${libname}${release}${shared_ext}$major'
14780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14781   shlibpath_var=LD_LIBRARY_PATH
14782   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14783   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14784   ;;
14785
14786 rdos*)
14787   dynamic_linker=no
14788   ;;
14789
14790 solaris*)
14791   version_type=linux
14792   need_lib_prefix=no
14793   need_version=no
14794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14795   soname_spec='${libname}${release}${shared_ext}$major'
14796   shlibpath_var=LD_LIBRARY_PATH
14797   shlibpath_overrides_runpath=yes
14798   hardcode_into_libs=yes
14799   # ldd complains unless libraries are executable
14800   postinstall_cmds='chmod +x $lib'
14801   ;;
14802
14803 sunos4*)
14804   version_type=sunos
14805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14806   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14807   shlibpath_var=LD_LIBRARY_PATH
14808   shlibpath_overrides_runpath=yes
14809   if test "$with_gnu_ld" = yes; then
14810     need_lib_prefix=no
14811   fi
14812   need_version=yes
14813   ;;
14814
14815 sysv4 | sysv4.3*)
14816   version_type=linux
14817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818   soname_spec='${libname}${release}${shared_ext}$major'
14819   shlibpath_var=LD_LIBRARY_PATH
14820   case $host_vendor in
14821     sni)
14822       shlibpath_overrides_runpath=no
14823       need_lib_prefix=no
14824       runpath_var=LD_RUN_PATH
14825       ;;
14826     siemens)
14827       need_lib_prefix=no
14828       ;;
14829     motorola)
14830       need_lib_prefix=no
14831       need_version=no
14832       shlibpath_overrides_runpath=no
14833       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14834       ;;
14835   esac
14836   ;;
14837
14838 sysv4*MP*)
14839   if test -d /usr/nec ;then
14840     version_type=linux
14841     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14842     soname_spec='$libname${shared_ext}.$major'
14843     shlibpath_var=LD_LIBRARY_PATH
14844   fi
14845   ;;
14846
14847 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14848   version_type=freebsd-elf
14849   need_lib_prefix=no
14850   need_version=no
14851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14852   soname_spec='${libname}${release}${shared_ext}$major'
14853   shlibpath_var=LD_LIBRARY_PATH
14854   shlibpath_overrides_runpath=yes
14855   hardcode_into_libs=yes
14856   if test "$with_gnu_ld" = yes; then
14857     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14858   else
14859     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14860     case $host_os in
14861       sco3.2v5*)
14862         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14863         ;;
14864     esac
14865   fi
14866   sys_lib_dlsearch_path_spec='/usr/lib'
14867   ;;
14868
14869 tpf*)
14870   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14871   version_type=linux
14872   need_lib_prefix=no
14873   need_version=no
14874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14875   shlibpath_var=LD_LIBRARY_PATH
14876   shlibpath_overrides_runpath=no
14877   hardcode_into_libs=yes
14878   ;;
14879
14880 uts4*)
14881   version_type=linux
14882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14883   soname_spec='${libname}${release}${shared_ext}$major'
14884   shlibpath_var=LD_LIBRARY_PATH
14885   ;;
14886
14887 *)
14888   dynamic_linker=no
14889   ;;
14890 esac
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14892 $as_echo "$dynamic_linker" >&6; }
14893 test "$dynamic_linker" = no && can_build_shared=no
14894
14895 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14896 if test "$GCC" = yes; then
14897   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14898 fi
14899
14900 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14901   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14902 fi
14903 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14904   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14905 fi
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14943 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14944 hardcode_action_CXX=
14945 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14946    test -n "$runpath_var_CXX" ||
14947    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14948
14949   # We can hardcode non-existent directories.
14950   if test "$hardcode_direct_CXX" != no &&
14951      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14952      # have to relink, otherwise we might link with an installed library
14953      # when we should be linking with a yet-to-be-installed one
14954      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14955      test "$hardcode_minus_L_CXX" != no; then
14956     # Linking always hardcodes the temporary library directory.
14957     hardcode_action_CXX=relink
14958   else
14959     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14960     hardcode_action_CXX=immediate
14961   fi
14962 else
14963   # We cannot hardcode anything, or else we can only hardcode existing
14964   # directories.
14965   hardcode_action_CXX=unsupported
14966 fi
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14968 $as_echo "$hardcode_action_CXX" >&6; }
14969
14970 if test "$hardcode_action_CXX" = relink ||
14971    test "$inherit_rpath_CXX" = yes; then
14972   # Fast installation is not supported
14973   enable_fast_install=no
14974 elif test "$shlibpath_overrides_runpath" = yes ||
14975      test "$enable_shared" = no; then
14976   # Fast installation is not necessary
14977   enable_fast_install=needless
14978 fi
14979
14980
14981
14982
14983
14984
14985
14986   fi # test -n "$compiler"
14987
14988   CC=$lt_save_CC
14989   LDCXX=$LD
14990   LD=$lt_save_LD
14991   GCC=$lt_save_GCC
14992   with_gnu_ld=$lt_save_with_gnu_ld
14993   lt_cv_path_LDCXX=$lt_cv_path_LD
14994   lt_cv_path_LD=$lt_save_path_LD
14995   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14996   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14997 fi # test "$_lt_caught_CXX_error" != yes
14998
14999 ac_ext=c
15000 ac_cpp='$CPP $CPPFLAGS'
15001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15004
15005
15006 ac_config_headers="$ac_config_headers config.h"
15007
15008
15009   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
15010 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
15011   MINIX=yes
15012 else
15013   MINIX=
15014 fi
15015
15016
15017   if test "$MINIX" = yes; then
15018
15019 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
15020
15021
15022 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
15023
15024
15025 $as_echo "#define _MINIX 1" >>confdefs.h
15026
15027   fi
15028
15029
15030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
15031 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
15032 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
15033   $as_echo_n "(cached) " >&6
15034 else
15035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h.  */
15037
15038 #         define __EXTENSIONS__ 1
15039           $ac_includes_default
15040 int
15041 main ()
15042 {
15043
15044   ;
15045   return 0;
15046 }
15047 _ACEOF
15048 if ac_fn_c_try_compile "$LINENO"; then :
15049   ac_cv_safe_to_define___extensions__=yes
15050 else
15051   ac_cv_safe_to_define___extensions__=no
15052 fi
15053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054 fi
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
15056 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
15057   test $ac_cv_safe_to_define___extensions__ = yes &&
15058     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
15059
15060   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
15061
15062   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
15063
15064   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
15065
15066   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
15067
15068
15069
15070
15071
15072 reauth=no
15073 # Check whether --enable-reauth was given.
15074 if test "${enable_reauth+set}" = set; then :
15075   enableval=$enable_reauth;  if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
15076       reauth=$enableval
15077     else
15078       echo "--enable-reauth argument must be yes or no"
15079       exit -1
15080     fi
15081
15082 fi
15083
15084
15085 if test "x$reauth" = "xyes" ; then
15086   echo "Fast reauthentication protocol enabled"
15087   TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
15088 fi
15089  if test "x$reauth" != "xno"; then
15090   GSSEAP_ENABLE_REAUTH_TRUE=
15091   GSSEAP_ENABLE_REAUTH_FALSE='#'
15092 else
15093   GSSEAP_ENABLE_REAUTH_TRUE='#'
15094   GSSEAP_ENABLE_REAUTH_FALSE=
15095 fi
15096
15097
15098
15099
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS-API and Kerberos implementation" >&5
15101 $as_echo_n "checking for GSS-API and Kerberos implementation... " >&6; }
15102 KRB5_DIR=
15103 found_krb5="no"
15104
15105 # Check whether --with-krb5 was given.
15106 if test "${with_krb5+set}" = set; then :
15107   withval=$with_krb5; check_krb5_dir="$withval"
15108 else
15109   check_krb5_dir=
15110 fi
15111
15112 for dir in $check_krb5_dir $prefix /usr /usr/local ; do
15113    krb5dir="$dir"
15114    if test -x "$dir/bin/krb5-config"; then
15115      found_krb5="yes";
15116      KRB5_CFLAGS=`$dir/bin/krb5-config gssapi --cflags`;
15117      KRB5_LIBS=`$dir/bin/krb5-config gssapi --libs`;
15118      COMPILE_ET="$dir/bin/compile_et";
15119      break;
15120    fi
15121 done
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_krb5" >&5
15123 $as_echo "$found_krb5" >&6; }
15124 if test x_$found_krb5 != x_yes; then
15125    as_fn_error $? "
15126 ----------------------------------------------------------------------
15127   Cannot find GSS-API/Kerberos libraries.
15128
15129   Please install MIT or Heimdal or specify installation directory with
15130   --with-krb5=(dir).
15131 ----------------------------------------------------------------------
15132 " "$LINENO" 5
15133 else
15134         printf "Kerberos found in $krb5dir\n";
15135
15136
15137
15138         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_COMPOSITE_EXPORT in -lgssapi_krb5" >&5
15139 $as_echo_n "checking for GSS_C_NT_COMPOSITE_EXPORT in -lgssapi_krb5... " >&6; }
15140 if test "${ac_cv_lib_gssapi_krb5_GSS_C_NT_COMPOSITE_EXPORT+set}" = set; then :
15141   $as_echo_n "(cached) " >&6
15142 else
15143   ac_check_lib_save_LIBS=$LIBS
15144 LIBS="-lgssapi_krb5 "$KRB5_LIBS" $LIBS"
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h.  */
15147
15148 /* Override any GCC internal prototype to avoid an error.
15149    Use char because int might match the return type of a GCC
15150    builtin and then its argument prototype would still apply.  */
15151 #ifdef __cplusplus
15152 extern "C"
15153 #endif
15154 char GSS_C_NT_COMPOSITE_EXPORT ();
15155 int
15156 main ()
15157 {
15158 return GSS_C_NT_COMPOSITE_EXPORT ();
15159   ;
15160   return 0;
15161 }
15162 _ACEOF
15163 if ac_fn_c_try_link "$LINENO"; then :
15164   ac_cv_lib_gssapi_krb5_GSS_C_NT_COMPOSITE_EXPORT=yes
15165 else
15166   ac_cv_lib_gssapi_krb5_GSS_C_NT_COMPOSITE_EXPORT=no
15167 fi
15168 rm -f core conftest.err conftest.$ac_objext \
15169     conftest$ac_exeext conftest.$ac_ext
15170 LIBS=$ac_check_lib_save_LIBS
15171 fi
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&5
15173 $as_echo "$ac_cv_lib_gssapi_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&6; }
15174 if test "x$ac_cv_lib_gssapi_krb5_GSS_C_NT_COMPOSITE_EXPORT" = x""yes; then :
15175
15176 cat >>confdefs.h <<_ACEOF
15177 #define HAVE_GSS_C_NT_COMPOSITE_EXPORT 1
15178 _ACEOF
15179
15180 fi
15181
15182         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_inquire_attrs_for_mech in -lgssapi_krb5" >&5
15183 $as_echo_n "checking for gss_inquire_attrs_for_mech in -lgssapi_krb5... " >&6; }
15184 if test "${ac_cv_lib_gssapi_krb5_gss_inquire_attrs_for_mech+set}" = set; then :
15185   $as_echo_n "(cached) " >&6
15186 else
15187   ac_check_lib_save_LIBS=$LIBS
15188 LIBS="-lgssapi_krb5 "$KRB5_LIBS" $LIBS"
15189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h.  */
15191
15192 /* Override any GCC internal prototype to avoid an error.
15193    Use char because int might match the return type of a GCC
15194    builtin and then its argument prototype would still apply.  */
15195 #ifdef __cplusplus
15196 extern "C"
15197 #endif
15198 char gss_inquire_attrs_for_mech ();
15199 int
15200 main ()
15201 {
15202 return gss_inquire_attrs_for_mech ();
15203   ;
15204   return 0;
15205 }
15206 _ACEOF
15207 if ac_fn_c_try_link "$LINENO"; then :
15208   ac_cv_lib_gssapi_krb5_gss_inquire_attrs_for_mech=yes
15209 else
15210   ac_cv_lib_gssapi_krb5_gss_inquire_attrs_for_mech=no
15211 fi
15212 rm -f core conftest.err conftest.$ac_objext \
15213     conftest$ac_exeext conftest.$ac_ext
15214 LIBS=$ac_check_lib_save_LIBS
15215 fi
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_inquire_attrs_for_mech" >&5
15217 $as_echo "$ac_cv_lib_gssapi_krb5_gss_inquire_attrs_for_mech" >&6; }
15218 if test "x$ac_cv_lib_gssapi_krb5_gss_inquire_attrs_for_mech" = x""yes; then :
15219
15220 cat >>confdefs.h <<_ACEOF
15221 #define HAVE_GSS_INQUIRE_ATTRS_FOR_MECH 1
15222 _ACEOF
15223
15224 fi
15225
15226         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_import_cred in -lgssapi_krb5" >&5
15227 $as_echo_n "checking for gss_krb5_import_cred in -lgssapi_krb5... " >&6; }
15228 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_import_cred+set}" = set; then :
15229   $as_echo_n "(cached) " >&6
15230 else
15231   ac_check_lib_save_LIBS=$LIBS
15232 LIBS="-lgssapi_krb5 "$KRB5_LIBS" $LIBS"
15233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234 /* end confdefs.h.  */
15235
15236 /* Override any GCC internal prototype to avoid an error.
15237    Use char because int might match the return type of a GCC
15238    builtin and then its argument prototype would still apply.  */
15239 #ifdef __cplusplus
15240 extern "C"
15241 #endif
15242 char gss_krb5_import_cred ();
15243 int
15244 main ()
15245 {
15246 return gss_krb5_import_cred ();
15247   ;
15248   return 0;
15249 }
15250 _ACEOF
15251 if ac_fn_c_try_link "$LINENO"; then :
15252   ac_cv_lib_gssapi_krb5_gss_krb5_import_cred=yes
15253 else
15254   ac_cv_lib_gssapi_krb5_gss_krb5_import_cred=no
15255 fi
15256 rm -f core conftest.err conftest.$ac_objext \
15257     conftest$ac_exeext conftest.$ac_ext
15258 LIBS=$ac_check_lib_save_LIBS
15259 fi
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_import_cred" >&5
15261 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_import_cred" >&6; }
15262 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_import_cred" = x""yes; then :
15263
15264 cat >>confdefs.h <<_ACEOF
15265 #define HAVE_GSS_KRB5_IMPORT_CRED 1
15266 _ACEOF
15267
15268 fi
15269
15270         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heimdal_version in -lkrb5" >&5
15271 $as_echo_n "checking for heimdal_version in -lkrb5... " >&6; }
15272 if test "${ac_cv_lib_krb5_heimdal_version+set}" = set; then :
15273   $as_echo_n "(cached) " >&6
15274 else
15275   ac_check_lib_save_LIBS=$LIBS
15276 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h.  */
15279
15280 /* Override any GCC internal prototype to avoid an error.
15281    Use char because int might match the return type of a GCC
15282    builtin and then its argument prototype would still apply.  */
15283 #ifdef __cplusplus
15284 extern "C"
15285 #endif
15286 char heimdal_version ();
15287 int
15288 main ()
15289 {
15290 return heimdal_version ();
15291   ;
15292   return 0;
15293 }
15294 _ACEOF
15295 if ac_fn_c_try_link "$LINENO"; then :
15296   ac_cv_lib_krb5_heimdal_version=yes
15297 else
15298   ac_cv_lib_krb5_heimdal_version=no
15299 fi
15300 rm -f core conftest.err conftest.$ac_objext \
15301     conftest$ac_exeext conftest.$ac_ext
15302 LIBS=$ac_check_lib_save_LIBS
15303 fi
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_heimdal_version" >&5
15305 $as_echo "$ac_cv_lib_krb5_heimdal_version" >&6; }
15306 if test "x$ac_cv_lib_krb5_heimdal_version" = x""yes; then :
15307
15308 cat >>confdefs.h <<_ACEOF
15309 #define HAVE_HEIMDAL_VERSION 1
15310 _ACEOF
15311 , heimdal=yes
15312 else
15313   heimdal=no
15314 fi
15315
15316          if test "x$heimdal" != "xno"; then
15317   HEIMDAL_TRUE=
15318   HEIMDAL_FALSE='#'
15319 else
15320   HEIMDAL_TRUE='#'
15321   HEIMDAL_FALSE=
15322 fi
15323
15324 fi
15325
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth implementation" >&5
15327 $as_echo_n "checking for Shibboleth implementation... " >&6; }
15328 SHIBSP_DIR=
15329 found_shibsp="no"
15330
15331 # Check whether --with-shibsp was given.
15332 if test "${with_shibsp+set}" = set; then :
15333   withval=$with_shibsp; check_shibsp_dir="$withval"
15334 else
15335   check_shibsp_dir=
15336 fi
15337
15338 for dir in $check_shibsp_dir $prefix /usr /usr/local ; do
15339    shibspdir="$dir"
15340    if test -f "$dir/include/shibsp/SPConfig.h"; then
15341      found_shibsp="yes";
15342      SHIBSP_DIR="${shibspdir}"
15343      SHIBSP_CXXFLAGS="-I$shibspdir/include";
15344      break;
15345    fi
15346 done
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibsp" >&5
15348 $as_echo "$found_shibsp" >&6; }
15349 if test x_$found_shibsp != x_yes; then
15350    as_fn_error $? "
15351 ----------------------------------------------------------------------
15352   Cannot find Shibboleth/OpenSAML libraries.
15353
15354   Please install Shibboleth or specify installation directory with
15355   --with-shibsp=(dir).
15356 ----------------------------------------------------------------------
15357 " "$LINENO" 5
15358 else
15359         printf "Shibboleth found in $shibspdir\n";
15360         SHIBSP_LIBS="-lshibsp  -lsaml -lxml-security-c -lxmltooling -lxerces-c";
15361         SHIBSP_LDFLAGS="-L$shibspdir/lib";
15362
15363
15364
15365 fi
15366
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth resolver implementation" >&5
15368 $as_echo_n "checking for Shibboleth resolver implementation... " >&6; }
15369 SHIBRESOLVER_DIR=
15370 found_shibresolver="no"
15371
15372 # Check whether --with-shibresolver was given.
15373 if test "${with_shibresolver+set}" = set; then :
15374   withval=$with_shibresolver; check_shibresolver_dir="$withval"
15375 else
15376   check_shibresolver_dir=
15377 fi
15378
15379 for dir in $check_shibresolver_dir $prefix /usr /usr/local ; do
15380    shibresolverdir="$dir"
15381    if test -f "$dir/include/shibresolver/resolver.h"; then
15382      found_shibresolver="yes";
15383      SHIBRESOLVER_DIR="${shibresolverdir}"
15384      SHIBRESOLVER_CXXFLAGS="-I$shibresolverdir/include";
15385      break;
15386    fi
15387 done
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibresolver" >&5
15389 $as_echo "$found_shibresolver" >&6; }
15390 if test x_$found_shibresolver != x_yes; then
15391    as_fn_error $? "
15392 ----------------------------------------------------------------------
15393   Cannot find Shibboleth resolver libraries.
15394
15395   Please install Shibboleth or specify installation directory with
15396   --with-shibresolver=(dir).
15397 ----------------------------------------------------------------------
15398 " "$LINENO" 5
15399 else
15400         printf "Shibboleth resolver found in $shibresolverdir\n";
15401         SHIBRESOLVER_LIBS="-lshibresolver";
15402         SHIBRESOLVER_LDFLAGS="-L$shibresolverdir/lib";
15403
15404
15405
15406 fi
15407
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for radsec" >&5
15409 $as_echo_n "checking for radsec... " >&6; }
15410 RADSEC_DIR=
15411 found_radsec="no"
15412
15413 # Check whether --with-radsec was given.
15414 if test "${with_radsec+set}" = set; then :
15415   withval=$with_radsec; check_radsec_dir="$withval"
15416 else
15417   check_radsec_dir=
15418 fi
15419
15420 for dir in $check_radsec_dir $prefix /usr /usr/local ; do
15421    radsecdir="$dir"
15422    if test -f "$dir/include/radsec/radsec.h"; then
15423      found_radsec="yes";
15424      RADSEC_DIR="${radsecdir}"
15425      RADSEC_CFLAGS="-I$radsecdir/include";
15426      break;
15427    fi
15428 done
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_radsec" >&5
15430 $as_echo "$found_radsec" >&6; }
15431 if test x_$found_radsec != x_yes; then
15432    as_fn_error $? "
15433 ----------------------------------------------------------------------
15434   Cannot find radsec libraries.
15435
15436   Please install libradsec or specify installation directory with
15437   --with-radsec=(dir).
15438 ----------------------------------------------------------------------
15439 " "$LINENO" 5
15440 else
15441         printf "radsec found in $radsecdir\n";
15442         RADSEC_LIBS="-lradsec";
15443         RADSEC_LDFLAGS="-L$radsecdir/lib";
15444
15445
15446
15447 fi
15448
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15450 $as_echo_n "checking for jansson... " >&6; }
15451 JANSSON_DIR=
15452 found_jansson="no"
15453
15454 # Check whether --with-jansson was given.
15455 if test "${with_jansson+set}" = set; then :
15456   withval=$with_jansson; check_jansson_dir="$withval"
15457 else
15458   check_jansson_dir=
15459 fi
15460
15461 for dir in $check_jansson_dir $prefix /usr /usr/local ; do
15462    janssondir="$dir"
15463    if test -f "$dir/include/jansson.h"; then
15464      found_jansson="yes";
15465      JANSSON_DIR="${janssondir}"
15466      JANSSON_CFLAGS="-I$janssondir/include";
15467      break;
15468    fi
15469 done
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_jansson" >&5
15471 $as_echo "$found_jansson" >&6; }
15472 if test x_$found_jansson != x_yes; then
15473    as_fn_error $? "
15474 ----------------------------------------------------------------------
15475   Cannot find jansson libraries.
15476
15477   Please install libjansson or specify installation directory with
15478   --with-jansson=(dir).
15479 ----------------------------------------------------------------------
15480 " "$LINENO" 5
15481 else
15482         printf "jansson found in $janssondir\n";
15483         JANSSON_LIBS="-ljansson";
15484         JANSSON_LDFLAGS="-L$janssondir/lib";
15485
15486
15487
15488 fi
15489
15490 ac_config_files="$ac_config_files Makefile libeap/Makefile mech_eap/Makefile"
15491
15492 cat >confcache <<\_ACEOF
15493 # This file is a shell script that caches the results of configure
15494 # tests run on this system so they can be shared between configure
15495 # scripts and configure runs, see configure's option --config-cache.
15496 # It is not useful on other systems.  If it contains results you don't
15497 # want to keep, you may remove or edit it.
15498 #
15499 # config.status only pays attention to the cache file if you give it
15500 # the --recheck option to rerun configure.
15501 #
15502 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15503 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15504 # following values.
15505
15506 _ACEOF
15507
15508 # The following way of writing the cache mishandles newlines in values,
15509 # but we know of no workaround that is simple, portable, and efficient.
15510 # So, we kill variables containing newlines.
15511 # Ultrix sh set writes to stderr and can't be redirected directly,
15512 # and sets the high bit in the cache file unless we assign to the vars.
15513 (
15514   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15515     eval ac_val=\$$ac_var
15516     case $ac_val in #(
15517     *${as_nl}*)
15518       case $ac_var in #(
15519       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15520 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15521       esac
15522       case $ac_var in #(
15523       _ | IFS | as_nl) ;; #(
15524       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15525       *) { eval $ac_var=; unset $ac_var;} ;;
15526       esac ;;
15527     esac
15528   done
15529
15530   (set) 2>&1 |
15531     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15532     *${as_nl}ac_space=\ *)
15533       # `set' does not quote correctly, so add quotes: double-quote
15534       # substitution turns \\\\ into \\, and sed turns \\ into \.
15535       sed -n \
15536         "s/'/'\\\\''/g;
15537           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15538       ;; #(
15539     *)
15540       # `set' quotes correctly as required by POSIX, so do not add quotes.
15541       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15542       ;;
15543     esac |
15544     sort
15545 ) |
15546   sed '
15547      /^ac_cv_env_/b end
15548      t clear
15549      :clear
15550      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15551      t end
15552      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15553      :end' >>confcache
15554 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15555   if test -w "$cache_file"; then
15556     test "x$cache_file" != "x/dev/null" &&
15557       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15558 $as_echo "$as_me: updating cache $cache_file" >&6;}
15559     cat confcache >$cache_file
15560   else
15561     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15562 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15563   fi
15564 fi
15565 rm -f confcache
15566
15567 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15568 # Let make expand exec_prefix.
15569 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15570
15571 DEFS=-DHAVE_CONFIG_H
15572
15573 ac_libobjs=
15574 ac_ltlibobjs=
15575 U=
15576 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15577   # 1. Remove the extension, and $U if already installed.
15578   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15579   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15580   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15581   #    will be set to the directory where LIBOBJS objects are built.
15582   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15583   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15584 done
15585 LIBOBJS=$ac_libobjs
15586
15587 LTLIBOBJS=$ac_ltlibobjs
15588
15589
15590  if test -n "$EXEEXT"; then
15591   am__EXEEXT_TRUE=
15592   am__EXEEXT_FALSE='#'
15593 else
15594   am__EXEEXT_TRUE='#'
15595   am__EXEEXT_FALSE=
15596 fi
15597
15598 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15599   as_fn_error $? "conditional \"AMDEP\" was never defined.
15600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15601 fi
15602 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15603   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15605 fi
15606 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15607   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15609 fi
15610 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15611   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15613 fi
15614 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15615   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15617 fi
15618 if test -z "${GSSEAP_ENABLE_REAUTH_TRUE}" && test -z "${GSSEAP_ENABLE_REAUTH_FALSE}"; then
15619   as_fn_error $? "conditional \"GSSEAP_ENABLE_REAUTH\" was never defined.
15620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15621 fi
15622 if test -z "${HEIMDAL_TRUE}" && test -z "${HEIMDAL_FALSE}"; then
15623   as_fn_error $? "conditional \"HEIMDAL\" was never defined.
15624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15625 fi
15626
15627 : ${CONFIG_STATUS=./config.status}
15628 ac_write_fail=0
15629 ac_clean_files_save=$ac_clean_files
15630 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15632 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15633 as_write_fail=0
15634 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15635 #! $SHELL
15636 # Generated by $as_me.
15637 # Run this file to recreate the current configuration.
15638 # Compiler output produced by configure, useful for debugging
15639 # configure, is in config.log if it exists.
15640
15641 debug=false
15642 ac_cs_recheck=false
15643 ac_cs_silent=false
15644
15645 SHELL=\${CONFIG_SHELL-$SHELL}
15646 export SHELL
15647 _ASEOF
15648 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15649 ## -------------------- ##
15650 ## M4sh Initialization. ##
15651 ## -------------------- ##
15652
15653 # Be more Bourne compatible
15654 DUALCASE=1; export DUALCASE # for MKS sh
15655 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15656   emulate sh
15657   NULLCMD=:
15658   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15659   # is contrary to our usage.  Disable this feature.
15660   alias -g '${1+"$@"}'='"$@"'
15661   setopt NO_GLOB_SUBST
15662 else
15663   case `(set -o) 2>/dev/null` in #(
15664   *posix*) :
15665     set -o posix ;; #(
15666   *) :
15667      ;;
15668 esac
15669 fi
15670
15671
15672 as_nl='
15673 '
15674 export as_nl
15675 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15676 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15677 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15678 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15679 # Prefer a ksh shell builtin over an external printf program on Solaris,
15680 # but without wasting forks for bash or zsh.
15681 if test -z "$BASH_VERSION$ZSH_VERSION" \
15682     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15683   as_echo='print -r --'
15684   as_echo_n='print -rn --'
15685 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15686   as_echo='printf %s\n'
15687   as_echo_n='printf %s'
15688 else
15689   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15690     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15691     as_echo_n='/usr/ucb/echo -n'
15692   else
15693     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15694     as_echo_n_body='eval
15695       arg=$1;
15696       case $arg in #(
15697       *"$as_nl"*)
15698         expr "X$arg" : "X\\(.*\\)$as_nl";
15699         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15700       esac;
15701       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15702     '
15703     export as_echo_n_body
15704     as_echo_n='sh -c $as_echo_n_body as_echo'
15705   fi
15706   export as_echo_body
15707   as_echo='sh -c $as_echo_body as_echo'
15708 fi
15709
15710 # The user is always right.
15711 if test "${PATH_SEPARATOR+set}" != set; then
15712   PATH_SEPARATOR=:
15713   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15714     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15715       PATH_SEPARATOR=';'
15716   }
15717 fi
15718
15719
15720 # IFS
15721 # We need space, tab and new line, in precisely that order.  Quoting is
15722 # there to prevent editors from complaining about space-tab.
15723 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15724 # splitting by setting IFS to empty value.)
15725 IFS=" ""        $as_nl"
15726
15727 # Find who we are.  Look in the path if we contain no directory separator.
15728 case $0 in #((
15729   *[\\/]* ) as_myself=$0 ;;
15730   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15731 for as_dir in $PATH
15732 do
15733   IFS=$as_save_IFS
15734   test -z "$as_dir" && as_dir=.
15735     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15736   done
15737 IFS=$as_save_IFS
15738
15739      ;;
15740 esac
15741 # We did not find ourselves, most probably we were run as `sh COMMAND'
15742 # in which case we are not to be found in the path.
15743 if test "x$as_myself" = x; then
15744   as_myself=$0
15745 fi
15746 if test ! -f "$as_myself"; then
15747   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15748   exit 1
15749 fi
15750
15751 # Unset variables that we do not need and which cause bugs (e.g. in
15752 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15753 # suppresses any "Segmentation fault" message there.  '((' could
15754 # trigger a bug in pdksh 5.2.14.
15755 for as_var in BASH_ENV ENV MAIL MAILPATH
15756 do eval test x\${$as_var+set} = xset \
15757   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15758 done
15759 PS1='$ '
15760 PS2='> '
15761 PS4='+ '
15762
15763 # NLS nuisances.
15764 LC_ALL=C
15765 export LC_ALL
15766 LANGUAGE=C
15767 export LANGUAGE
15768
15769 # CDPATH.
15770 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15771
15772
15773 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15774 # ----------------------------------------
15775 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15776 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15777 # script with STATUS, using 1 if that was 0.
15778 as_fn_error ()
15779 {
15780   as_status=$1; test $as_status -eq 0 && as_status=1
15781   if test "$4"; then
15782     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15783     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15784   fi
15785   $as_echo "$as_me: error: $2" >&2
15786   as_fn_exit $as_status
15787 } # as_fn_error
15788
15789
15790 # as_fn_set_status STATUS
15791 # -----------------------
15792 # Set $? to STATUS, without forking.
15793 as_fn_set_status ()
15794 {
15795   return $1
15796 } # as_fn_set_status
15797
15798 # as_fn_exit STATUS
15799 # -----------------
15800 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15801 as_fn_exit ()
15802 {
15803   set +e
15804   as_fn_set_status $1
15805   exit $1
15806 } # as_fn_exit
15807
15808 # as_fn_unset VAR
15809 # ---------------
15810 # Portably unset VAR.
15811 as_fn_unset ()
15812 {
15813   { eval $1=; unset $1;}
15814 }
15815 as_unset=as_fn_unset
15816 # as_fn_append VAR VALUE
15817 # ----------------------
15818 # Append the text in VALUE to the end of the definition contained in VAR. Take
15819 # advantage of any shell optimizations that allow amortized linear growth over
15820 # repeated appends, instead of the typical quadratic growth present in naive
15821 # implementations.
15822 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15823   eval 'as_fn_append ()
15824   {
15825     eval $1+=\$2
15826   }'
15827 else
15828   as_fn_append ()
15829   {
15830     eval $1=\$$1\$2
15831   }
15832 fi # as_fn_append
15833
15834 # as_fn_arith ARG...
15835 # ------------------
15836 # Perform arithmetic evaluation on the ARGs, and store the result in the
15837 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15838 # must be portable across $(()) and expr.
15839 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15840   eval 'as_fn_arith ()
15841   {
15842     as_val=$(( $* ))
15843   }'
15844 else
15845   as_fn_arith ()
15846   {
15847     as_val=`expr "$@" || test $? -eq 1`
15848   }
15849 fi # as_fn_arith
15850
15851
15852 if expr a : '\(a\)' >/dev/null 2>&1 &&
15853    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15854   as_expr=expr
15855 else
15856   as_expr=false
15857 fi
15858
15859 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15860   as_basename=basename
15861 else
15862   as_basename=false
15863 fi
15864
15865 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15866   as_dirname=dirname
15867 else
15868   as_dirname=false
15869 fi
15870
15871 as_me=`$as_basename -- "$0" ||
15872 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15873          X"$0" : 'X\(//\)$' \| \
15874          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15875 $as_echo X/"$0" |
15876     sed '/^.*\/\([^/][^/]*\)\/*$/{
15877             s//\1/
15878             q
15879           }
15880           /^X\/\(\/\/\)$/{
15881             s//\1/
15882             q
15883           }
15884           /^X\/\(\/\).*/{
15885             s//\1/
15886             q
15887           }
15888           s/.*/./; q'`
15889
15890 # Avoid depending upon Character Ranges.
15891 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15892 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15893 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15894 as_cr_digits='0123456789'
15895 as_cr_alnum=$as_cr_Letters$as_cr_digits
15896
15897 ECHO_C= ECHO_N= ECHO_T=
15898 case `echo -n x` in #(((((
15899 -n*)
15900   case `echo 'xy\c'` in
15901   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15902   xy)  ECHO_C='\c';;
15903   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15904        ECHO_T=' ';;
15905   esac;;
15906 *)
15907   ECHO_N='-n';;
15908 esac
15909
15910 rm -f conf$$ conf$$.exe conf$$.file
15911 if test -d conf$$.dir; then
15912   rm -f conf$$.dir/conf$$.file
15913 else
15914   rm -f conf$$.dir
15915   mkdir conf$$.dir 2>/dev/null
15916 fi
15917 if (echo >conf$$.file) 2>/dev/null; then
15918   if ln -s conf$$.file conf$$ 2>/dev/null; then
15919     as_ln_s='ln -s'
15920     # ... but there are two gotchas:
15921     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15922     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15923     # In both cases, we have to default to `cp -p'.
15924     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15925       as_ln_s='cp -p'
15926   elif ln conf$$.file conf$$ 2>/dev/null; then
15927     as_ln_s=ln
15928   else
15929     as_ln_s='cp -p'
15930   fi
15931 else
15932   as_ln_s='cp -p'
15933 fi
15934 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15935 rmdir conf$$.dir 2>/dev/null
15936
15937
15938 # as_fn_mkdir_p
15939 # -------------
15940 # Create "$as_dir" as a directory, including parents if necessary.
15941 as_fn_mkdir_p ()
15942 {
15943
15944   case $as_dir in #(
15945   -*) as_dir=./$as_dir;;
15946   esac
15947   test -d "$as_dir" || eval $as_mkdir_p || {
15948     as_dirs=
15949     while :; do
15950       case $as_dir in #(
15951       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15952       *) as_qdir=$as_dir;;
15953       esac
15954       as_dirs="'$as_qdir' $as_dirs"
15955       as_dir=`$as_dirname -- "$as_dir" ||
15956 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15957          X"$as_dir" : 'X\(//\)[^/]' \| \
15958          X"$as_dir" : 'X\(//\)$' \| \
15959          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15960 $as_echo X"$as_dir" |
15961     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15962             s//\1/
15963             q
15964           }
15965           /^X\(\/\/\)[^/].*/{
15966             s//\1/
15967             q
15968           }
15969           /^X\(\/\/\)$/{
15970             s//\1/
15971             q
15972           }
15973           /^X\(\/\).*/{
15974             s//\1/
15975             q
15976           }
15977           s/.*/./; q'`
15978       test -d "$as_dir" && break
15979     done
15980     test -z "$as_dirs" || eval "mkdir $as_dirs"
15981   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15982
15983
15984 } # as_fn_mkdir_p
15985 if mkdir -p . 2>/dev/null; then
15986   as_mkdir_p='mkdir -p "$as_dir"'
15987 else
15988   test -d ./-p && rmdir ./-p
15989   as_mkdir_p=false
15990 fi
15991
15992 if test -x / >/dev/null 2>&1; then
15993   as_test_x='test -x'
15994 else
15995   if ls -dL / >/dev/null 2>&1; then
15996     as_ls_L_option=L
15997   else
15998     as_ls_L_option=
15999   fi
16000   as_test_x='
16001     eval sh -c '\''
16002       if test -d "$1"; then
16003         test -d "$1/.";
16004       else
16005         case $1 in #(
16006         -*)set "./$1";;
16007         esac;
16008         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16009         ???[sx]*):;;*)false;;esac;fi
16010     '\'' sh
16011   '
16012 fi
16013 as_executable_p=$as_test_x
16014
16015 # Sed expression to map a string onto a valid CPP name.
16016 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16017
16018 # Sed expression to map a string onto a valid variable name.
16019 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16020
16021
16022 exec 6>&1
16023 ## ----------------------------------- ##
16024 ## Main body of $CONFIG_STATUS script. ##
16025 ## ----------------------------------- ##
16026 _ASEOF
16027 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16028
16029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16030 # Save the log message, to keep $0 and so on meaningful, and to
16031 # report actual input values of CONFIG_FILES etc. instead of their
16032 # values after options handling.
16033 ac_log="
16034 This file was extended by mech_eap $as_me 0.1, which was
16035 generated by GNU Autoconf 2.67.  Invocation command line was
16036
16037   CONFIG_FILES    = $CONFIG_FILES
16038   CONFIG_HEADERS  = $CONFIG_HEADERS
16039   CONFIG_LINKS    = $CONFIG_LINKS
16040   CONFIG_COMMANDS = $CONFIG_COMMANDS
16041   $ $0 $@
16042
16043 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16044 "
16045
16046 _ACEOF
16047
16048 case $ac_config_files in *"
16049 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16050 esac
16051
16052 case $ac_config_headers in *"
16053 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16054 esac
16055
16056
16057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16058 # Files that config.status was made for.
16059 config_files="$ac_config_files"
16060 config_headers="$ac_config_headers"
16061 config_commands="$ac_config_commands"
16062
16063 _ACEOF
16064
16065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16066 ac_cs_usage="\
16067 \`$as_me' instantiates files and other configuration actions
16068 from templates according to the current configuration.  Unless the files
16069 and actions are specified as TAGs, all are instantiated by default.
16070
16071 Usage: $0 [OPTION]... [TAG]...
16072
16073   -h, --help       print this help, then exit
16074   -V, --version    print version number and configuration settings, then exit
16075       --config     print configuration, then exit
16076   -q, --quiet, --silent
16077                    do not print progress messages
16078   -d, --debug      don't remove temporary files
16079       --recheck    update $as_me by reconfiguring in the same conditions
16080       --file=FILE[:TEMPLATE]
16081                    instantiate the configuration file FILE
16082       --header=FILE[:TEMPLATE]
16083                    instantiate the configuration header FILE
16084
16085 Configuration files:
16086 $config_files
16087
16088 Configuration headers:
16089 $config_headers
16090
16091 Configuration commands:
16092 $config_commands
16093
16094 Report bugs to <bugs@project-moonshot.org>."
16095
16096 _ACEOF
16097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16098 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16099 ac_cs_version="\\
16100 mech_eap config.status 0.1
16101 configured by $0, generated by GNU Autoconf 2.67,
16102   with options \\"\$ac_cs_config\\"
16103
16104 Copyright (C) 2010 Free Software Foundation, Inc.
16105 This config.status script is free software; the Free Software Foundation
16106 gives unlimited permission to copy, distribute and modify it."
16107
16108 ac_pwd='$ac_pwd'
16109 srcdir='$srcdir'
16110 INSTALL='$INSTALL'
16111 MKDIR_P='$MKDIR_P'
16112 AWK='$AWK'
16113 test -n "\$AWK" || AWK=awk
16114 _ACEOF
16115
16116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16117 # The default lists apply if the user does not specify any file.
16118 ac_need_defaults=:
16119 while test $# != 0
16120 do
16121   case $1 in
16122   --*=?*)
16123     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16124     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16125     ac_shift=:
16126     ;;
16127   --*=)
16128     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16129     ac_optarg=
16130     ac_shift=:
16131     ;;
16132   *)
16133     ac_option=$1
16134     ac_optarg=$2
16135     ac_shift=shift
16136     ;;
16137   esac
16138
16139   case $ac_option in
16140   # Handling of the options.
16141   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16142     ac_cs_recheck=: ;;
16143   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16144     $as_echo "$ac_cs_version"; exit ;;
16145   --config | --confi | --conf | --con | --co | --c )
16146     $as_echo "$ac_cs_config"; exit ;;
16147   --debug | --debu | --deb | --de | --d | -d )
16148     debug=: ;;
16149   --file | --fil | --fi | --f )
16150     $ac_shift
16151     case $ac_optarg in
16152     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16153     '') as_fn_error $? "missing file argument" ;;
16154     esac
16155     as_fn_append CONFIG_FILES " '$ac_optarg'"
16156     ac_need_defaults=false;;
16157   --header | --heade | --head | --hea )
16158     $ac_shift
16159     case $ac_optarg in
16160     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16161     esac
16162     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16163     ac_need_defaults=false;;
16164   --he | --h)
16165     # Conflict between --help and --header
16166     as_fn_error $? "ambiguous option: \`$1'
16167 Try \`$0 --help' for more information.";;
16168   --help | --hel | -h )
16169     $as_echo "$ac_cs_usage"; exit ;;
16170   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16171   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16172     ac_cs_silent=: ;;
16173
16174   # This is an error.
16175   -*) as_fn_error $? "unrecognized option: \`$1'
16176 Try \`$0 --help' for more information." ;;
16177
16178   *) as_fn_append ac_config_targets " $1"
16179      ac_need_defaults=false ;;
16180
16181   esac
16182   shift
16183 done
16184
16185 ac_configure_extra_args=
16186
16187 if $ac_cs_silent; then
16188   exec 6>/dev/null
16189   ac_configure_extra_args="$ac_configure_extra_args --silent"
16190 fi
16191
16192 _ACEOF
16193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16194 if \$ac_cs_recheck; then
16195   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16196   shift
16197   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16198   CONFIG_SHELL='$SHELL'
16199   export CONFIG_SHELL
16200   exec "\$@"
16201 fi
16202
16203 _ACEOF
16204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16205 exec 5>>config.log
16206 {
16207   echo
16208   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16209 ## Running $as_me. ##
16210 _ASBOX
16211   $as_echo "$ac_log"
16212 } >&5
16213
16214 _ACEOF
16215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16216 #
16217 # INIT-COMMANDS
16218 #
16219 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16220
16221
16222 # The HP-UX ksh and POSIX shell print the target directory to stdout
16223 # if CDPATH is set.
16224 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16225
16226 sed_quote_subst='$sed_quote_subst'
16227 double_quote_subst='$double_quote_subst'
16228 delay_variable_subst='$delay_variable_subst'
16229 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16230 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16231 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16232 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16233 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16234 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16235 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16236 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16237 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16238 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16239 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16240 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16241 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16242 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16243 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16244 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16245 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16246 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16247 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16248 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16249 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16250 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16251 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16252 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16253 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16254 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16255 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16256 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16257 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16258 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16259 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16260 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16261 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16262 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16263 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16264 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16265 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16266 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16267 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16268 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16269 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16270 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16271 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16272 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16273 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"`'
16274 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"`'
16275 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16276 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16277 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16278 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16279 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16280 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16281 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16282 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16283 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16284 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16285 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16286 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16287 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16288 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16289 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16290 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16291 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16292 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16293 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16294 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16295 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16296 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16297 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16298 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16299 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16300 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16301 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16302 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16303 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16304 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16305 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16306 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16307 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16308 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16309 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16310 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16311 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16312 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16313 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16314 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16315 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16316 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16317 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16318 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16319 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16320 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16321 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16322 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16323 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16324 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16325 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16326 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16327 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16328 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16329 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16330 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16331 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16332 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16333 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16334 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16335 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16336 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16337 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16338 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16339 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16340 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16341 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16342 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16343 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16344 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16345 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16346 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16347 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16348 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16349 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16350 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16351 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16352 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16353 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16354 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16355 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16356 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16357 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16358 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16359 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16360 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16361 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16362 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16363 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16364 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16365 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16366 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16367 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16368 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16369 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16370 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16371 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16372 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16373 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16374 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16375 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16376 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16377 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16378 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16379 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16380 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16381 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16382 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16383 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16384 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16385 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16386 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16387 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16388 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16389 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16390 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16391 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16392 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16393 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16394 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16395 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16396 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16397 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16398 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16399 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16400
16401 LTCC='$LTCC'
16402 LTCFLAGS='$LTCFLAGS'
16403 compiler='$compiler_DEFAULT'
16404
16405 # Quote evaled strings.
16406 for var in SED \
16407 GREP \
16408 EGREP \
16409 FGREP \
16410 LD \
16411 NM \
16412 LN_S \
16413 lt_SP2NL \
16414 lt_NL2SP \
16415 reload_flag \
16416 OBJDUMP \
16417 deplibs_check_method \
16418 file_magic_cmd \
16419 AR \
16420 AR_FLAGS \
16421 STRIP \
16422 RANLIB \
16423 CC \
16424 CFLAGS \
16425 compiler \
16426 lt_cv_sys_global_symbol_pipe \
16427 lt_cv_sys_global_symbol_to_cdecl \
16428 lt_cv_sys_global_symbol_to_c_name_address \
16429 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16430 SHELL \
16431 ECHO \
16432 lt_prog_compiler_no_builtin_flag \
16433 lt_prog_compiler_wl \
16434 lt_prog_compiler_pic \
16435 lt_prog_compiler_static \
16436 lt_cv_prog_compiler_c_o \
16437 need_locks \
16438 DSYMUTIL \
16439 NMEDIT \
16440 LIPO \
16441 OTOOL \
16442 OTOOL64 \
16443 shrext_cmds \
16444 export_dynamic_flag_spec \
16445 whole_archive_flag_spec \
16446 compiler_needs_object \
16447 with_gnu_ld \
16448 allow_undefined_flag \
16449 no_undefined_flag \
16450 hardcode_libdir_flag_spec \
16451 hardcode_libdir_flag_spec_ld \
16452 hardcode_libdir_separator \
16453 fix_srcfile_path \
16454 exclude_expsyms \
16455 include_expsyms \
16456 file_list_spec \
16457 variables_saved_for_relink \
16458 libname_spec \
16459 library_names_spec \
16460 soname_spec \
16461 finish_eval \
16462 old_striplib \
16463 striplib \
16464 compiler_lib_search_dirs \
16465 predep_objects \
16466 postdep_objects \
16467 predeps \
16468 postdeps \
16469 compiler_lib_search_path \
16470 LD_CXX \
16471 compiler_CXX \
16472 lt_prog_compiler_no_builtin_flag_CXX \
16473 lt_prog_compiler_wl_CXX \
16474 lt_prog_compiler_pic_CXX \
16475 lt_prog_compiler_static_CXX \
16476 lt_cv_prog_compiler_c_o_CXX \
16477 export_dynamic_flag_spec_CXX \
16478 whole_archive_flag_spec_CXX \
16479 compiler_needs_object_CXX \
16480 with_gnu_ld_CXX \
16481 allow_undefined_flag_CXX \
16482 no_undefined_flag_CXX \
16483 hardcode_libdir_flag_spec_CXX \
16484 hardcode_libdir_flag_spec_ld_CXX \
16485 hardcode_libdir_separator_CXX \
16486 fix_srcfile_path_CXX \
16487 exclude_expsyms_CXX \
16488 include_expsyms_CXX \
16489 file_list_spec_CXX \
16490 compiler_lib_search_dirs_CXX \
16491 predep_objects_CXX \
16492 postdep_objects_CXX \
16493 predeps_CXX \
16494 postdeps_CXX \
16495 compiler_lib_search_path_CXX; do
16496     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16497     *[\\\\\\\`\\"\\\$]*)
16498       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16499       ;;
16500     *)
16501       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16502       ;;
16503     esac
16504 done
16505
16506 # Double-quote double-evaled strings.
16507 for var in reload_cmds \
16508 old_postinstall_cmds \
16509 old_postuninstall_cmds \
16510 old_archive_cmds \
16511 extract_expsyms_cmds \
16512 old_archive_from_new_cmds \
16513 old_archive_from_expsyms_cmds \
16514 archive_cmds \
16515 archive_expsym_cmds \
16516 module_cmds \
16517 module_expsym_cmds \
16518 export_symbols_cmds \
16519 prelink_cmds \
16520 postinstall_cmds \
16521 postuninstall_cmds \
16522 finish_cmds \
16523 sys_lib_search_path_spec \
16524 sys_lib_dlsearch_path_spec \
16525 old_archive_cmds_CXX \
16526 old_archive_from_new_cmds_CXX \
16527 old_archive_from_expsyms_cmds_CXX \
16528 archive_cmds_CXX \
16529 archive_expsym_cmds_CXX \
16530 module_cmds_CXX \
16531 module_expsym_cmds_CXX \
16532 export_symbols_cmds_CXX \
16533 prelink_cmds_CXX; do
16534     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16535     *[\\\\\\\`\\"\\\$]*)
16536       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16537       ;;
16538     *)
16539       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16540       ;;
16541     esac
16542 done
16543
16544 # Fix-up fallback echo if it was mangled by the above quoting rules.
16545 case \$lt_ECHO in
16546 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16547   ;;
16548 esac
16549
16550 ac_aux_dir='$ac_aux_dir'
16551 xsi_shell='$xsi_shell'
16552 lt_shell_append='$lt_shell_append'
16553
16554 # See if we are running on zsh, and set the options which allow our
16555 # commands through without removal of \ escapes INIT.
16556 if test -n "\${ZSH_VERSION+set}" ; then
16557    setopt NO_GLOB_SUBST
16558 fi
16559
16560
16561     PACKAGE='$PACKAGE'
16562     VERSION='$VERSION'
16563     TIMESTAMP='$TIMESTAMP'
16564     RM='$RM'
16565     ofile='$ofile'
16566
16567
16568
16569
16570
16571
16572 _ACEOF
16573
16574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16575
16576 # Handling of arguments.
16577 for ac_config_target in $ac_config_targets
16578 do
16579   case $ac_config_target in
16580     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16581     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16582     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16583     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16584     "libeap/Makefile") CONFIG_FILES="$CONFIG_FILES libeap/Makefile" ;;
16585     "mech_eap/Makefile") CONFIG_FILES="$CONFIG_FILES mech_eap/Makefile" ;;
16586
16587   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16588   esac
16589 done
16590
16591
16592 # If the user did not use the arguments to specify the items to instantiate,
16593 # then the envvar interface is used.  Set only those that are not.
16594 # We use the long form for the default assignment because of an extremely
16595 # bizarre bug on SunOS 4.1.3.
16596 if $ac_need_defaults; then
16597   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16598   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16599   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16600 fi
16601
16602 # Have a temporary directory for convenience.  Make it in the build tree
16603 # simply because there is no reason against having it here, and in addition,
16604 # creating and moving files from /tmp can sometimes cause problems.
16605 # Hook for its removal unless debugging.
16606 # Note that there is a small window in which the directory will not be cleaned:
16607 # after its creation but before its name has been assigned to `$tmp'.
16608 $debug ||
16609 {
16610   tmp=
16611   trap 'exit_status=$?
16612   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16613 ' 0
16614   trap 'as_fn_exit 1' 1 2 13 15
16615 }
16616 # Create a (secure) tmp directory for tmp files.
16617
16618 {
16619   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16620   test -n "$tmp" && test -d "$tmp"
16621 }  ||
16622 {
16623   tmp=./conf$$-$RANDOM
16624   (umask 077 && mkdir "$tmp")
16625 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16626
16627 # Set up the scripts for CONFIG_FILES section.
16628 # No need to generate them if there are no CONFIG_FILES.
16629 # This happens for instance with `./config.status config.h'.
16630 if test -n "$CONFIG_FILES"; then
16631
16632
16633 ac_cr=`echo X | tr X '\015'`
16634 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16635 # But we know of no other shell where ac_cr would be empty at this
16636 # point, so we can use a bashism as a fallback.
16637 if test "x$ac_cr" = x; then
16638   eval ac_cr=\$\'\\r\'
16639 fi
16640 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16641 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16642   ac_cs_awk_cr='\\r'
16643 else
16644   ac_cs_awk_cr=$ac_cr
16645 fi
16646
16647 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16648 _ACEOF
16649
16650
16651 {
16652   echo "cat >conf$$subs.awk <<_ACEOF" &&
16653   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16654   echo "_ACEOF"
16655 } >conf$$subs.sh ||
16656   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16657 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16658 ac_delim='%!_!# '
16659 for ac_last_try in false false false false false :; do
16660   . ./conf$$subs.sh ||
16661     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16662
16663   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16664   if test $ac_delim_n = $ac_delim_num; then
16665     break
16666   elif $ac_last_try; then
16667     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16668   else
16669     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16670   fi
16671 done
16672 rm -f conf$$subs.sh
16673
16674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16675 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16676 _ACEOF
16677 sed -n '
16678 h
16679 s/^/S["/; s/!.*/"]=/
16680 p
16681 g
16682 s/^[^!]*!//
16683 :repl
16684 t repl
16685 s/'"$ac_delim"'$//
16686 t delim
16687 :nl
16688 h
16689 s/\(.\{148\}\)..*/\1/
16690 t more1
16691 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16692 p
16693 n
16694 b repl
16695 :more1
16696 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16697 p
16698 g
16699 s/.\{148\}//
16700 t nl
16701 :delim
16702 h
16703 s/\(.\{148\}\)..*/\1/
16704 t more2
16705 s/["\\]/\\&/g; s/^/"/; s/$/"/
16706 p
16707 b
16708 :more2
16709 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16710 p
16711 g
16712 s/.\{148\}//
16713 t delim
16714 ' <conf$$subs.awk | sed '
16715 /^[^""]/{
16716   N
16717   s/\n//
16718 }
16719 ' >>$CONFIG_STATUS || ac_write_fail=1
16720 rm -f conf$$subs.awk
16721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16722 _ACAWK
16723 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16724   for (key in S) S_is_set[key] = 1
16725   FS = "\a"
16726
16727 }
16728 {
16729   line = $ 0
16730   nfields = split(line, field, "@")
16731   substed = 0
16732   len = length(field[1])
16733   for (i = 2; i < nfields; i++) {
16734     key = field[i]
16735     keylen = length(key)
16736     if (S_is_set[key]) {
16737       value = S[key]
16738       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16739       len += length(value) + length(field[++i])
16740       substed = 1
16741     } else
16742       len += 1 + keylen
16743   }
16744
16745   print line
16746 }
16747
16748 _ACAWK
16749 _ACEOF
16750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16751 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16752   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16753 else
16754   cat
16755 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16756   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16757 _ACEOF
16758
16759 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16760 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16761 # trailing colons and then remove the whole line if VPATH becomes empty
16762 # (actually we leave an empty line to preserve line numbers).
16763 if test "x$srcdir" = x.; then
16764   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16765 h
16766 s///
16767 s/^/:/
16768 s/[      ]*$/:/
16769 s/:\$(srcdir):/:/g
16770 s/:\${srcdir}:/:/g
16771 s/:@srcdir@:/:/g
16772 s/^:*//
16773 s/:*$//
16774 x
16775 s/\(=[   ]*\).*/\1/
16776 G
16777 s/\n//
16778 s/^[^=]*=[       ]*$//
16779 }'
16780 fi
16781
16782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16783 fi # test -n "$CONFIG_FILES"
16784
16785 # Set up the scripts for CONFIG_HEADERS section.
16786 # No need to generate them if there are no CONFIG_HEADERS.
16787 # This happens for instance with `./config.status Makefile'.
16788 if test -n "$CONFIG_HEADERS"; then
16789 cat >"$tmp/defines.awk" <<\_ACAWK ||
16790 BEGIN {
16791 _ACEOF
16792
16793 # Transform confdefs.h into an awk script `defines.awk', embedded as
16794 # here-document in config.status, that substitutes the proper values into
16795 # config.h.in to produce config.h.
16796
16797 # Create a delimiter string that does not exist in confdefs.h, to ease
16798 # handling of long lines.
16799 ac_delim='%!_!# '
16800 for ac_last_try in false false :; do
16801   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16802   if test -z "$ac_t"; then
16803     break
16804   elif $ac_last_try; then
16805     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16806   else
16807     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16808   fi
16809 done
16810
16811 # For the awk script, D is an array of macro values keyed by name,
16812 # likewise P contains macro parameters if any.  Preserve backslash
16813 # newline sequences.
16814
16815 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16816 sed -n '
16817 s/.\{148\}/&'"$ac_delim"'/g
16818 t rset
16819 :rset
16820 s/^[     ]*#[    ]*define[       ][      ]*/ /
16821 t def
16822 d
16823 :def
16824 s/\\$//
16825 t bsnl
16826 s/["\\]/\\&/g
16827 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16828 D["\1"]=" \3"/p
16829 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16830 d
16831 :bsnl
16832 s/["\\]/\\&/g
16833 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16834 D["\1"]=" \3\\\\\\n"\\/p
16835 t cont
16836 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16837 t cont
16838 d
16839 :cont
16840 n
16841 s/.\{148\}/&'"$ac_delim"'/g
16842 t clear
16843 :clear
16844 s/\\$//
16845 t bsnlc
16846 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16847 d
16848 :bsnlc
16849 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16850 b cont
16851 ' <confdefs.h | sed '
16852 s/'"$ac_delim"'/"\\\
16853 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16854
16855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16856   for (key in D) D_is_set[key] = 1
16857   FS = "\a"
16858 }
16859 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16860   line = \$ 0
16861   split(line, arg, " ")
16862   if (arg[1] == "#") {
16863     defundef = arg[2]
16864     mac1 = arg[3]
16865   } else {
16866     defundef = substr(arg[1], 2)
16867     mac1 = arg[2]
16868   }
16869   split(mac1, mac2, "(") #)
16870   macro = mac2[1]
16871   prefix = substr(line, 1, index(line, defundef) - 1)
16872   if (D_is_set[macro]) {
16873     # Preserve the white space surrounding the "#".
16874     print prefix "define", macro P[macro] D[macro]
16875     next
16876   } else {
16877     # Replace #undef with comments.  This is necessary, for example,
16878     # in the case of _POSIX_SOURCE, which is predefined and required
16879     # on some systems where configure will not decide to define it.
16880     if (defundef == "undef") {
16881       print "/*", prefix defundef, macro, "*/"
16882       next
16883     }
16884   }
16885 }
16886 { print }
16887 _ACAWK
16888 _ACEOF
16889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16890   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16891 fi # test -n "$CONFIG_HEADERS"
16892
16893
16894 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16895 shift
16896 for ac_tag
16897 do
16898   case $ac_tag in
16899   :[FHLC]) ac_mode=$ac_tag; continue;;
16900   esac
16901   case $ac_mode$ac_tag in
16902   :[FHL]*:*);;
16903   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16904   :[FH]-) ac_tag=-:-;;
16905   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16906   esac
16907   ac_save_IFS=$IFS
16908   IFS=:
16909   set x $ac_tag
16910   IFS=$ac_save_IFS
16911   shift
16912   ac_file=$1
16913   shift
16914
16915   case $ac_mode in
16916   :L) ac_source=$1;;
16917   :[FH])
16918     ac_file_inputs=
16919     for ac_f
16920     do
16921       case $ac_f in
16922       -) ac_f="$tmp/stdin";;
16923       *) # Look for the file first in the build tree, then in the source tree
16924          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16925          # because $ac_f cannot contain `:'.
16926          test -f "$ac_f" ||
16927            case $ac_f in
16928            [\\/$]*) false;;
16929            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16930            esac ||
16931            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16932       esac
16933       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16934       as_fn_append ac_file_inputs " '$ac_f'"
16935     done
16936
16937     # Let's still pretend it is `configure' which instantiates (i.e., don't
16938     # use $as_me), people would be surprised to read:
16939     #    /* config.h.  Generated by config.status.  */
16940     configure_input='Generated from '`
16941           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16942         `' by configure.'
16943     if test x"$ac_file" != x-; then
16944       configure_input="$ac_file.  $configure_input"
16945       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16946 $as_echo "$as_me: creating $ac_file" >&6;}
16947     fi
16948     # Neutralize special characters interpreted by sed in replacement strings.
16949     case $configure_input in #(
16950     *\&* | *\|* | *\\* )
16951        ac_sed_conf_input=`$as_echo "$configure_input" |
16952        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16953     *) ac_sed_conf_input=$configure_input;;
16954     esac
16955
16956     case $ac_tag in
16957     *:-:* | *:-) cat >"$tmp/stdin" \
16958       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
16959     esac
16960     ;;
16961   esac
16962
16963   ac_dir=`$as_dirname -- "$ac_file" ||
16964 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16965          X"$ac_file" : 'X\(//\)[^/]' \| \
16966          X"$ac_file" : 'X\(//\)$' \| \
16967          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16968 $as_echo X"$ac_file" |
16969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16970             s//\1/
16971             q
16972           }
16973           /^X\(\/\/\)[^/].*/{
16974             s//\1/
16975             q
16976           }
16977           /^X\(\/\/\)$/{
16978             s//\1/
16979             q
16980           }
16981           /^X\(\/\).*/{
16982             s//\1/
16983             q
16984           }
16985           s/.*/./; q'`
16986   as_dir="$ac_dir"; as_fn_mkdir_p
16987   ac_builddir=.
16988
16989 case "$ac_dir" in
16990 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16991 *)
16992   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16993   # A ".." for each directory in $ac_dir_suffix.
16994   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16995   case $ac_top_builddir_sub in
16996   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16997   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16998   esac ;;
16999 esac
17000 ac_abs_top_builddir=$ac_pwd
17001 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17002 # for backward compatibility:
17003 ac_top_builddir=$ac_top_build_prefix
17004
17005 case $srcdir in
17006   .)  # We are building in place.
17007     ac_srcdir=.
17008     ac_top_srcdir=$ac_top_builddir_sub
17009     ac_abs_top_srcdir=$ac_pwd ;;
17010   [\\/]* | ?:[\\/]* )  # Absolute name.
17011     ac_srcdir=$srcdir$ac_dir_suffix;
17012     ac_top_srcdir=$srcdir
17013     ac_abs_top_srcdir=$srcdir ;;
17014   *) # Relative name.
17015     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17016     ac_top_srcdir=$ac_top_build_prefix$srcdir
17017     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17018 esac
17019 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17020
17021
17022   case $ac_mode in
17023   :F)
17024   #
17025   # CONFIG_FILE
17026   #
17027
17028   case $INSTALL in
17029   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17030   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17031   esac
17032   ac_MKDIR_P=$MKDIR_P
17033   case $MKDIR_P in
17034   [\\/$]* | ?:[\\/]* ) ;;
17035   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17036   esac
17037 _ACEOF
17038
17039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17040 # If the template does not know about datarootdir, expand it.
17041 # FIXME: This hack should be removed a few years after 2.60.
17042 ac_datarootdir_hack=; ac_datarootdir_seen=
17043 ac_sed_dataroot='
17044 /datarootdir/ {
17045   p
17046   q
17047 }
17048 /@datadir@/p
17049 /@docdir@/p
17050 /@infodir@/p
17051 /@localedir@/p
17052 /@mandir@/p'
17053 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17054 *datarootdir*) ac_datarootdir_seen=yes;;
17055 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17056   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17057 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17058 _ACEOF
17059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17060   ac_datarootdir_hack='
17061   s&@datadir@&$datadir&g
17062   s&@docdir@&$docdir&g
17063   s&@infodir@&$infodir&g
17064   s&@localedir@&$localedir&g
17065   s&@mandir@&$mandir&g
17066   s&\\\${datarootdir}&$datarootdir&g' ;;
17067 esac
17068 _ACEOF
17069
17070 # Neutralize VPATH when `$srcdir' = `.'.
17071 # Shell code in configure.ac might set extrasub.
17072 # FIXME: do we really want to maintain this feature?
17073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17074 ac_sed_extra="$ac_vpsub
17075 $extrasub
17076 _ACEOF
17077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17078 :t
17079 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17080 s|@configure_input@|$ac_sed_conf_input|;t t
17081 s&@top_builddir@&$ac_top_builddir_sub&;t t
17082 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17083 s&@srcdir@&$ac_srcdir&;t t
17084 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17085 s&@top_srcdir@&$ac_top_srcdir&;t t
17086 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17087 s&@builddir@&$ac_builddir&;t t
17088 s&@abs_builddir@&$ac_abs_builddir&;t t
17089 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17090 s&@INSTALL@&$ac_INSTALL&;t t
17091 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17092 $ac_datarootdir_hack
17093 "
17094 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17095   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17096
17097 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17098   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17099   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17100   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17101 which seems to be undefined.  Please make sure it is defined" >&5
17102 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17103 which seems to be undefined.  Please make sure it is defined" >&2;}
17104
17105   rm -f "$tmp/stdin"
17106   case $ac_file in
17107   -) cat "$tmp/out" && rm -f "$tmp/out";;
17108   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17109   esac \
17110   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17111  ;;
17112   :H)
17113   #
17114   # CONFIG_HEADER
17115   #
17116   if test x"$ac_file" != x-; then
17117     {
17118       $as_echo "/* $configure_input  */" \
17119       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17120     } >"$tmp/config.h" \
17121       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17122     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17123       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17124 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17125     else
17126       rm -f "$ac_file"
17127       mv "$tmp/config.h" "$ac_file" \
17128         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17129     fi
17130   else
17131     $as_echo "/* $configure_input  */" \
17132       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17133       || as_fn_error $? "could not create -" "$LINENO" 5
17134   fi
17135 # Compute "$ac_file"'s index in $config_headers.
17136 _am_arg="$ac_file"
17137 _am_stamp_count=1
17138 for _am_header in $config_headers :; do
17139   case $_am_header in
17140     $_am_arg | $_am_arg:* )
17141       break ;;
17142     * )
17143       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17144   esac
17145 done
17146 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17147 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17148          X"$_am_arg" : 'X\(//\)[^/]' \| \
17149          X"$_am_arg" : 'X\(//\)$' \| \
17150          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17151 $as_echo X"$_am_arg" |
17152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17153             s//\1/
17154             q
17155           }
17156           /^X\(\/\/\)[^/].*/{
17157             s//\1/
17158             q
17159           }
17160           /^X\(\/\/\)$/{
17161             s//\1/
17162             q
17163           }
17164           /^X\(\/\).*/{
17165             s//\1/
17166             q
17167           }
17168           s/.*/./; q'`/stamp-h$_am_stamp_count
17169  ;;
17170
17171   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17172 $as_echo "$as_me: executing $ac_file commands" >&6;}
17173  ;;
17174   esac
17175
17176
17177   case $ac_file$ac_mode in
17178     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17179   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17180   # are listed without --file.  Let's play safe and only enable the eval
17181   # if we detect the quoting.
17182   case $CONFIG_FILES in
17183   *\'*) eval set x "$CONFIG_FILES" ;;
17184   *)   set x $CONFIG_FILES ;;
17185   esac
17186   shift
17187   for mf
17188   do
17189     # Strip MF so we end up with the name of the file.
17190     mf=`echo "$mf" | sed -e 's/:.*$//'`
17191     # Check whether this is an Automake generated Makefile or not.
17192     # We used to match only the files named `Makefile.in', but
17193     # some people rename them; so instead we look at the file content.
17194     # Grep'ing the first line is not enough: some people post-process
17195     # each Makefile.in and add a new line on top of each file to say so.
17196     # Grep'ing the whole file is not good either: AIX grep has a line
17197     # limit of 2048, but all sed's we know have understand at least 4000.
17198     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17199       dirpart=`$as_dirname -- "$mf" ||
17200 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17201          X"$mf" : 'X\(//\)[^/]' \| \
17202          X"$mf" : 'X\(//\)$' \| \
17203          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17204 $as_echo X"$mf" |
17205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17206             s//\1/
17207             q
17208           }
17209           /^X\(\/\/\)[^/].*/{
17210             s//\1/
17211             q
17212           }
17213           /^X\(\/\/\)$/{
17214             s//\1/
17215             q
17216           }
17217           /^X\(\/\).*/{
17218             s//\1/
17219             q
17220           }
17221           s/.*/./; q'`
17222     else
17223       continue
17224     fi
17225     # Extract the definition of DEPDIR, am__include, and am__quote
17226     # from the Makefile without running `make'.
17227     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17228     test -z "$DEPDIR" && continue
17229     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17230     test -z "am__include" && continue
17231     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17232     # When using ansi2knr, U may be empty or an underscore; expand it
17233     U=`sed -n 's/^U = //p' < "$mf"`
17234     # Find all dependency output files, they are included files with
17235     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17236     # simplest approach to changing $(DEPDIR) to its actual value in the
17237     # expansion.
17238     for file in `sed -n "
17239       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17240          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17241       # Make sure the directory exists.
17242       test -f "$dirpart/$file" && continue
17243       fdir=`$as_dirname -- "$file" ||
17244 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17245          X"$file" : 'X\(//\)[^/]' \| \
17246          X"$file" : 'X\(//\)$' \| \
17247          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17248 $as_echo X"$file" |
17249     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17250             s//\1/
17251             q
17252           }
17253           /^X\(\/\/\)[^/].*/{
17254             s//\1/
17255             q
17256           }
17257           /^X\(\/\/\)$/{
17258             s//\1/
17259             q
17260           }
17261           /^X\(\/\).*/{
17262             s//\1/
17263             q
17264           }
17265           s/.*/./; q'`
17266       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17267       # echo "creating $dirpart/$file"
17268       echo '# dummy' > "$dirpart/$file"
17269     done
17270   done
17271 }
17272  ;;
17273     "libtool":C)
17274
17275     # See if we are running on zsh, and set the options which allow our
17276     # commands through without removal of \ escapes.
17277     if test -n "${ZSH_VERSION+set}" ; then
17278       setopt NO_GLOB_SUBST
17279     fi
17280
17281     cfgfile="${ofile}T"
17282     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17283     $RM "$cfgfile"
17284
17285     cat <<_LT_EOF >> "$cfgfile"
17286 #! $SHELL
17287
17288 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17289 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17290 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17291 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17292 #
17293 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17294 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17295 #   Written by Gordon Matzigkeit, 1996
17296 #
17297 #   This file is part of GNU Libtool.
17298 #
17299 # GNU Libtool is free software; you can redistribute it and/or
17300 # modify it under the terms of the GNU General Public License as
17301 # published by the Free Software Foundation; either version 2 of
17302 # the License, or (at your option) any later version.
17303 #
17304 # As a special exception to the GNU General Public License,
17305 # if you distribute this file as part of a program or library that
17306 # is built using GNU Libtool, you may include this file under the
17307 # same distribution terms that you use for the rest of that program.
17308 #
17309 # GNU Libtool is distributed in the hope that it will be useful,
17310 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17311 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17312 # GNU General Public License for more details.
17313 #
17314 # You should have received a copy of the GNU General Public License
17315 # along with GNU Libtool; see the file COPYING.  If not, a copy
17316 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17317 # obtained by writing to the Free Software Foundation, Inc.,
17318 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17319
17320
17321 # The names of the tagged configurations supported by this script.
17322 available_tags="CXX "
17323
17324 # ### BEGIN LIBTOOL CONFIG
17325
17326 # Which release of libtool.m4 was used?
17327 macro_version=$macro_version
17328 macro_revision=$macro_revision
17329
17330 # Whether or not to build static libraries.
17331 build_old_libs=$enable_static
17332
17333 # Whether or not to build shared libraries.
17334 build_libtool_libs=$enable_shared
17335
17336 # What type of objects to build.
17337 pic_mode=$pic_mode
17338
17339 # Whether or not to optimize for fast installation.
17340 fast_install=$enable_fast_install
17341
17342 # The host system.
17343 host_alias=$host_alias
17344 host=$host
17345 host_os=$host_os
17346
17347 # The build system.
17348 build_alias=$build_alias
17349 build=$build
17350 build_os=$build_os
17351
17352 # A sed program that does not truncate output.
17353 SED=$lt_SED
17354
17355 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17356 Xsed="\$SED -e 1s/^X//"
17357
17358 # A grep program that handles long lines.
17359 GREP=$lt_GREP
17360
17361 # An ERE matcher.
17362 EGREP=$lt_EGREP
17363
17364 # A literal string matcher.
17365 FGREP=$lt_FGREP
17366
17367 # A BSD- or MS-compatible name lister.
17368 NM=$lt_NM
17369
17370 # Whether we need soft or hard links.
17371 LN_S=$lt_LN_S
17372
17373 # What is the maximum length of a command?
17374 max_cmd_len=$max_cmd_len
17375
17376 # Object file suffix (normally "o").
17377 objext=$ac_objext
17378
17379 # Executable file suffix (normally "").
17380 exeext=$exeext
17381
17382 # whether the shell understands "unset".
17383 lt_unset=$lt_unset
17384
17385 # turn spaces into newlines.
17386 SP2NL=$lt_lt_SP2NL
17387
17388 # turn newlines into spaces.
17389 NL2SP=$lt_lt_NL2SP
17390
17391 # How to create reloadable object files.
17392 reload_flag=$lt_reload_flag
17393 reload_cmds=$lt_reload_cmds
17394
17395 # An object symbol dumper.
17396 OBJDUMP=$lt_OBJDUMP
17397
17398 # Method to check whether dependent libraries are shared objects.
17399 deplibs_check_method=$lt_deplibs_check_method
17400
17401 # Command to use when deplibs_check_method == "file_magic".
17402 file_magic_cmd=$lt_file_magic_cmd
17403
17404 # The archiver.
17405 AR=$lt_AR
17406 AR_FLAGS=$lt_AR_FLAGS
17407
17408 # A symbol stripping program.
17409 STRIP=$lt_STRIP
17410
17411 # Commands used to install an old-style archive.
17412 RANLIB=$lt_RANLIB
17413 old_postinstall_cmds=$lt_old_postinstall_cmds
17414 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17415
17416 # A C compiler.
17417 LTCC=$lt_CC
17418
17419 # LTCC compiler flags.
17420 LTCFLAGS=$lt_CFLAGS
17421
17422 # Take the output of nm and produce a listing of raw symbols and C names.
17423 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17424
17425 # Transform the output of nm in a proper C declaration.
17426 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17427
17428 # Transform the output of nm in a C name address pair.
17429 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17430
17431 # Transform the output of nm in a C name address pair when lib prefix is needed.
17432 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17433
17434 # The name of the directory that contains temporary libtool files.
17435 objdir=$objdir
17436
17437 # Shell to use when invoking shell scripts.
17438 SHELL=$lt_SHELL
17439
17440 # An echo program that does not interpret backslashes.
17441 ECHO=$lt_ECHO
17442
17443 # Used to examine libraries when file_magic_cmd begins with "file".
17444 MAGIC_CMD=$MAGIC_CMD
17445
17446 # Must we lock files when doing compilation?
17447 need_locks=$lt_need_locks
17448
17449 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17450 DSYMUTIL=$lt_DSYMUTIL
17451
17452 # Tool to change global to local symbols on Mac OS X.
17453 NMEDIT=$lt_NMEDIT
17454
17455 # Tool to manipulate fat objects and archives on Mac OS X.
17456 LIPO=$lt_LIPO
17457
17458 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17459 OTOOL=$lt_OTOOL
17460
17461 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17462 OTOOL64=$lt_OTOOL64
17463
17464 # Old archive suffix (normally "a").
17465 libext=$libext
17466
17467 # Shared library suffix (normally ".so").
17468 shrext_cmds=$lt_shrext_cmds
17469
17470 # The commands to extract the exported symbol list from a shared archive.
17471 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17472
17473 # Variables whose values should be saved in libtool wrapper scripts and
17474 # restored at link time.
17475 variables_saved_for_relink=$lt_variables_saved_for_relink
17476
17477 # Do we need the "lib" prefix for modules?
17478 need_lib_prefix=$need_lib_prefix
17479
17480 # Do we need a version for libraries?
17481 need_version=$need_version
17482
17483 # Library versioning type.
17484 version_type=$version_type
17485
17486 # Shared library runtime path variable.
17487 runpath_var=$runpath_var
17488
17489 # Shared library path variable.
17490 shlibpath_var=$shlibpath_var
17491
17492 # Is shlibpath searched before the hard-coded library search path?
17493 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17494
17495 # Format of library name prefix.
17496 libname_spec=$lt_libname_spec
17497
17498 # List of archive names.  First name is the real one, the rest are links.
17499 # The last name is the one that the linker finds with -lNAME
17500 library_names_spec=$lt_library_names_spec
17501
17502 # The coded name of the library, if different from the real name.
17503 soname_spec=$lt_soname_spec
17504
17505 # Command to use after installation of a shared archive.
17506 postinstall_cmds=$lt_postinstall_cmds
17507
17508 # Command to use after uninstallation of a shared archive.
17509 postuninstall_cmds=$lt_postuninstall_cmds
17510
17511 # Commands used to finish a libtool library installation in a directory.
17512 finish_cmds=$lt_finish_cmds
17513
17514 # As "finish_cmds", except a single script fragment to be evaled but
17515 # not shown.
17516 finish_eval=$lt_finish_eval
17517
17518 # Whether we should hardcode library paths into libraries.
17519 hardcode_into_libs=$hardcode_into_libs
17520
17521 # Compile-time system search path for libraries.
17522 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17523
17524 # Run-time system search path for libraries.
17525 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17526
17527 # Whether dlopen is supported.
17528 dlopen_support=$enable_dlopen
17529
17530 # Whether dlopen of programs is supported.
17531 dlopen_self=$enable_dlopen_self
17532
17533 # Whether dlopen of statically linked programs is supported.
17534 dlopen_self_static=$enable_dlopen_self_static
17535
17536 # Commands to strip libraries.
17537 old_striplib=$lt_old_striplib
17538 striplib=$lt_striplib
17539
17540
17541 # The linker used to build libraries.
17542 LD=$lt_LD
17543
17544 # Commands used to build an old-style archive.
17545 old_archive_cmds=$lt_old_archive_cmds
17546
17547 # A language specific compiler.
17548 CC=$lt_compiler
17549
17550 # Is the compiler the GNU compiler?
17551 with_gcc=$GCC
17552
17553 # Compiler flag to turn off builtin functions.
17554 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17555
17556 # How to pass a linker flag through the compiler.
17557 wl=$lt_lt_prog_compiler_wl
17558
17559 # Additional compiler flags for building library objects.
17560 pic_flag=$lt_lt_prog_compiler_pic
17561
17562 # Compiler flag to prevent dynamic linking.
17563 link_static_flag=$lt_lt_prog_compiler_static
17564
17565 # Does compiler simultaneously support -c and -o options?
17566 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17567
17568 # Whether or not to add -lc for building shared libraries.
17569 build_libtool_need_lc=$archive_cmds_need_lc
17570
17571 # Whether or not to disallow shared libs when runtime libs are static.
17572 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17573
17574 # Compiler flag to allow reflexive dlopens.
17575 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17576
17577 # Compiler flag to generate shared objects directly from archives.
17578 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17579
17580 # Whether the compiler copes with passing no objects directly.
17581 compiler_needs_object=$lt_compiler_needs_object
17582
17583 # Create an old-style archive from a shared archive.
17584 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17585
17586 # Create a temporary old-style archive to link instead of a shared archive.
17587 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17588
17589 # Commands used to build a shared archive.
17590 archive_cmds=$lt_archive_cmds
17591 archive_expsym_cmds=$lt_archive_expsym_cmds
17592
17593 # Commands used to build a loadable module if different from building
17594 # a shared archive.
17595 module_cmds=$lt_module_cmds
17596 module_expsym_cmds=$lt_module_expsym_cmds
17597
17598 # Whether we are building with GNU ld or not.
17599 with_gnu_ld=$lt_with_gnu_ld
17600
17601 # Flag that allows shared libraries with undefined symbols to be built.
17602 allow_undefined_flag=$lt_allow_undefined_flag
17603
17604 # Flag that enforces no undefined symbols.
17605 no_undefined_flag=$lt_no_undefined_flag
17606
17607 # Flag to hardcode \$libdir into a binary during linking.
17608 # This must work even if \$libdir does not exist
17609 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17610
17611 # If ld is used when linking, flag to hardcode \$libdir into a binary
17612 # during linking.  This must work even if \$libdir does not exist.
17613 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17614
17615 # Whether we need a single "-rpath" flag with a separated argument.
17616 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17617
17618 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17619 # DIR into the resulting binary.
17620 hardcode_direct=$hardcode_direct
17621
17622 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17623 # DIR into the resulting binary and the resulting library dependency is
17624 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17625 # library is relocated.
17626 hardcode_direct_absolute=$hardcode_direct_absolute
17627
17628 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17629 # into the resulting binary.
17630 hardcode_minus_L=$hardcode_minus_L
17631
17632 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17633 # into the resulting binary.
17634 hardcode_shlibpath_var=$hardcode_shlibpath_var
17635
17636 # Set to "yes" if building a shared library automatically hardcodes DIR
17637 # into the library and all subsequent libraries and executables linked
17638 # against it.
17639 hardcode_automatic=$hardcode_automatic
17640
17641 # Set to yes if linker adds runtime paths of dependent libraries
17642 # to runtime path list.
17643 inherit_rpath=$inherit_rpath
17644
17645 # Whether libtool must link a program against all its dependency libraries.
17646 link_all_deplibs=$link_all_deplibs
17647
17648 # Fix the shell variable \$srcfile for the compiler.
17649 fix_srcfile_path=$lt_fix_srcfile_path
17650
17651 # Set to "yes" if exported symbols are required.
17652 always_export_symbols=$always_export_symbols
17653
17654 # The commands to list exported symbols.
17655 export_symbols_cmds=$lt_export_symbols_cmds
17656
17657 # Symbols that should not be listed in the preloaded symbols.
17658 exclude_expsyms=$lt_exclude_expsyms
17659
17660 # Symbols that must always be exported.
17661 include_expsyms=$lt_include_expsyms
17662
17663 # Commands necessary for linking programs (against libraries) with templates.
17664 prelink_cmds=$lt_prelink_cmds
17665
17666 # Specify filename containing input files.
17667 file_list_spec=$lt_file_list_spec
17668
17669 # How to hardcode a shared library path into an executable.
17670 hardcode_action=$hardcode_action
17671
17672 # The directories searched by this compiler when creating a shared library.
17673 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17674
17675 # Dependencies to place before and after the objects being linked to
17676 # create a shared library.
17677 predep_objects=$lt_predep_objects
17678 postdep_objects=$lt_postdep_objects
17679 predeps=$lt_predeps
17680 postdeps=$lt_postdeps
17681
17682 # The library search path used internally by the compiler when linking
17683 # a shared library.
17684 compiler_lib_search_path=$lt_compiler_lib_search_path
17685
17686 # ### END LIBTOOL CONFIG
17687
17688 _LT_EOF
17689
17690   case $host_os in
17691   aix3*)
17692     cat <<\_LT_EOF >> "$cfgfile"
17693 # AIX sometimes has problems with the GCC collect2 program.  For some
17694 # reason, if we set the COLLECT_NAMES environment variable, the problems
17695 # vanish in a puff of smoke.
17696 if test "X${COLLECT_NAMES+set}" != Xset; then
17697   COLLECT_NAMES=
17698   export COLLECT_NAMES
17699 fi
17700 _LT_EOF
17701     ;;
17702   esac
17703
17704
17705 ltmain="$ac_aux_dir/ltmain.sh"
17706
17707
17708   # We use sed instead of cat because bash on DJGPP gets confused if
17709   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17710   # text mode, it properly converts lines to CR/LF.  This bash problem
17711   # is reportedly fixed, but why not run on old versions too?
17712   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17713     || (rm -f "$cfgfile"; exit 1)
17714
17715   case $xsi_shell in
17716   yes)
17717     cat << \_LT_EOF >> "$cfgfile"
17718
17719 # func_dirname file append nondir_replacement
17720 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17721 # otherwise set result to NONDIR_REPLACEMENT.
17722 func_dirname ()
17723 {
17724   case ${1} in
17725     */*) func_dirname_result="${1%/*}${2}" ;;
17726     *  ) func_dirname_result="${3}" ;;
17727   esac
17728 }
17729
17730 # func_basename file
17731 func_basename ()
17732 {
17733   func_basename_result="${1##*/}"
17734 }
17735
17736 # func_dirname_and_basename file append nondir_replacement
17737 # perform func_basename and func_dirname in a single function
17738 # call:
17739 #   dirname:  Compute the dirname of FILE.  If nonempty,
17740 #             add APPEND to the result, otherwise set result
17741 #             to NONDIR_REPLACEMENT.
17742 #             value returned in "$func_dirname_result"
17743 #   basename: Compute filename of FILE.
17744 #             value retuned in "$func_basename_result"
17745 # Implementation must be kept synchronized with func_dirname
17746 # and func_basename. For efficiency, we do not delegate to
17747 # those functions but instead duplicate the functionality here.
17748 func_dirname_and_basename ()
17749 {
17750   case ${1} in
17751     */*) func_dirname_result="${1%/*}${2}" ;;
17752     *  ) func_dirname_result="${3}" ;;
17753   esac
17754   func_basename_result="${1##*/}"
17755 }
17756
17757 # func_stripname prefix suffix name
17758 # strip PREFIX and SUFFIX off of NAME.
17759 # PREFIX and SUFFIX must not contain globbing or regex special
17760 # characters, hashes, percent signs, but SUFFIX may contain a leading
17761 # dot (in which case that matches only a dot).
17762 func_stripname ()
17763 {
17764   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17765   # positional parameters, so assign one to ordinary parameter first.
17766   func_stripname_result=${3}
17767   func_stripname_result=${func_stripname_result#"${1}"}
17768   func_stripname_result=${func_stripname_result%"${2}"}
17769 }
17770
17771 # func_opt_split
17772 func_opt_split ()
17773 {
17774   func_opt_split_opt=${1%%=*}
17775   func_opt_split_arg=${1#*=}
17776 }
17777
17778 # func_lo2o object
17779 func_lo2o ()
17780 {
17781   case ${1} in
17782     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17783     *)    func_lo2o_result=${1} ;;
17784   esac
17785 }
17786
17787 # func_xform libobj-or-source
17788 func_xform ()
17789 {
17790   func_xform_result=${1%.*}.lo
17791 }
17792
17793 # func_arith arithmetic-term...
17794 func_arith ()
17795 {
17796   func_arith_result=$(( $* ))
17797 }
17798
17799 # func_len string
17800 # STRING may not start with a hyphen.
17801 func_len ()
17802 {
17803   func_len_result=${#1}
17804 }
17805
17806 _LT_EOF
17807     ;;
17808   *) # Bourne compatible functions.
17809     cat << \_LT_EOF >> "$cfgfile"
17810
17811 # func_dirname file append nondir_replacement
17812 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17813 # otherwise set result to NONDIR_REPLACEMENT.
17814 func_dirname ()
17815 {
17816   # Extract subdirectory from the argument.
17817   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17818   if test "X$func_dirname_result" = "X${1}"; then
17819     func_dirname_result="${3}"
17820   else
17821     func_dirname_result="$func_dirname_result${2}"
17822   fi
17823 }
17824
17825 # func_basename file
17826 func_basename ()
17827 {
17828   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17829 }
17830
17831
17832 # func_stripname prefix suffix name
17833 # strip PREFIX and SUFFIX off of NAME.
17834 # PREFIX and SUFFIX must not contain globbing or regex special
17835 # characters, hashes, percent signs, but SUFFIX may contain a leading
17836 # dot (in which case that matches only a dot).
17837 # func_strip_suffix prefix name
17838 func_stripname ()
17839 {
17840   case ${2} in
17841     .*) func_stripname_result=`$ECHO "X${3}" \
17842            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17843     *)  func_stripname_result=`$ECHO "X${3}" \
17844            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17845   esac
17846 }
17847
17848 # sed scripts:
17849 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17850 my_sed_long_arg='1s/^-[^=]*=//'
17851
17852 # func_opt_split
17853 func_opt_split ()
17854 {
17855   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17856   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17857 }
17858
17859 # func_lo2o object
17860 func_lo2o ()
17861 {
17862   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17863 }
17864
17865 # func_xform libobj-or-source
17866 func_xform ()
17867 {
17868   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17869 }
17870
17871 # func_arith arithmetic-term...
17872 func_arith ()
17873 {
17874   func_arith_result=`expr "$@"`
17875 }
17876
17877 # func_len string
17878 # STRING may not start with a hyphen.
17879 func_len ()
17880 {
17881   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17882 }
17883
17884 _LT_EOF
17885 esac
17886
17887 case $lt_shell_append in
17888   yes)
17889     cat << \_LT_EOF >> "$cfgfile"
17890
17891 # func_append var value
17892 # Append VALUE to the end of shell variable VAR.
17893 func_append ()
17894 {
17895   eval "$1+=\$2"
17896 }
17897 _LT_EOF
17898     ;;
17899   *)
17900     cat << \_LT_EOF >> "$cfgfile"
17901
17902 # func_append var value
17903 # Append VALUE to the end of shell variable VAR.
17904 func_append ()
17905 {
17906   eval "$1=\$$1\$2"
17907 }
17908
17909 _LT_EOF
17910     ;;
17911   esac
17912
17913
17914   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17915     || (rm -f "$cfgfile"; exit 1)
17916
17917   mv -f "$cfgfile" "$ofile" ||
17918     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17919   chmod +x "$ofile"
17920
17921
17922     cat <<_LT_EOF >> "$ofile"
17923
17924 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17925
17926 # The linker used to build libraries.
17927 LD=$lt_LD_CXX
17928
17929 # Commands used to build an old-style archive.
17930 old_archive_cmds=$lt_old_archive_cmds_CXX
17931
17932 # A language specific compiler.
17933 CC=$lt_compiler_CXX
17934
17935 # Is the compiler the GNU compiler?
17936 with_gcc=$GCC_CXX
17937
17938 # Compiler flag to turn off builtin functions.
17939 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17940
17941 # How to pass a linker flag through the compiler.
17942 wl=$lt_lt_prog_compiler_wl_CXX
17943
17944 # Additional compiler flags for building library objects.
17945 pic_flag=$lt_lt_prog_compiler_pic_CXX
17946
17947 # Compiler flag to prevent dynamic linking.
17948 link_static_flag=$lt_lt_prog_compiler_static_CXX
17949
17950 # Does compiler simultaneously support -c and -o options?
17951 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17952
17953 # Whether or not to add -lc for building shared libraries.
17954 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17955
17956 # Whether or not to disallow shared libs when runtime libs are static.
17957 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17958
17959 # Compiler flag to allow reflexive dlopens.
17960 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17961
17962 # Compiler flag to generate shared objects directly from archives.
17963 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17964
17965 # Whether the compiler copes with passing no objects directly.
17966 compiler_needs_object=$lt_compiler_needs_object_CXX
17967
17968 # Create an old-style archive from a shared archive.
17969 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17970
17971 # Create a temporary old-style archive to link instead of a shared archive.
17972 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17973
17974 # Commands used to build a shared archive.
17975 archive_cmds=$lt_archive_cmds_CXX
17976 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17977
17978 # Commands used to build a loadable module if different from building
17979 # a shared archive.
17980 module_cmds=$lt_module_cmds_CXX
17981 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17982
17983 # Whether we are building with GNU ld or not.
17984 with_gnu_ld=$lt_with_gnu_ld_CXX
17985
17986 # Flag that allows shared libraries with undefined symbols to be built.
17987 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17988
17989 # Flag that enforces no undefined symbols.
17990 no_undefined_flag=$lt_no_undefined_flag_CXX
17991
17992 # Flag to hardcode \$libdir into a binary during linking.
17993 # This must work even if \$libdir does not exist
17994 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17995
17996 # If ld is used when linking, flag to hardcode \$libdir into a binary
17997 # during linking.  This must work even if \$libdir does not exist.
17998 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17999
18000 # Whether we need a single "-rpath" flag with a separated argument.
18001 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18002
18003 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18004 # DIR into the resulting binary.
18005 hardcode_direct=$hardcode_direct_CXX
18006
18007 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18008 # DIR into the resulting binary and the resulting library dependency is
18009 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18010 # library is relocated.
18011 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18012
18013 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18014 # into the resulting binary.
18015 hardcode_minus_L=$hardcode_minus_L_CXX
18016
18017 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18018 # into the resulting binary.
18019 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18020
18021 # Set to "yes" if building a shared library automatically hardcodes DIR
18022 # into the library and all subsequent libraries and executables linked
18023 # against it.
18024 hardcode_automatic=$hardcode_automatic_CXX
18025
18026 # Set to yes if linker adds runtime paths of dependent libraries
18027 # to runtime path list.
18028 inherit_rpath=$inherit_rpath_CXX
18029
18030 # Whether libtool must link a program against all its dependency libraries.
18031 link_all_deplibs=$link_all_deplibs_CXX
18032
18033 # Fix the shell variable \$srcfile for the compiler.
18034 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18035
18036 # Set to "yes" if exported symbols are required.
18037 always_export_symbols=$always_export_symbols_CXX
18038
18039 # The commands to list exported symbols.
18040 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18041
18042 # Symbols that should not be listed in the preloaded symbols.
18043 exclude_expsyms=$lt_exclude_expsyms_CXX
18044
18045 # Symbols that must always be exported.
18046 include_expsyms=$lt_include_expsyms_CXX
18047
18048 # Commands necessary for linking programs (against libraries) with templates.
18049 prelink_cmds=$lt_prelink_cmds_CXX
18050
18051 # Specify filename containing input files.
18052 file_list_spec=$lt_file_list_spec_CXX
18053
18054 # How to hardcode a shared library path into an executable.
18055 hardcode_action=$hardcode_action_CXX
18056
18057 # The directories searched by this compiler when creating a shared library.
18058 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18059
18060 # Dependencies to place before and after the objects being linked to
18061 # create a shared library.
18062 predep_objects=$lt_predep_objects_CXX
18063 postdep_objects=$lt_postdep_objects_CXX
18064 predeps=$lt_predeps_CXX
18065 postdeps=$lt_postdeps_CXX
18066
18067 # The library search path used internally by the compiler when linking
18068 # a shared library.
18069 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18070
18071 # ### END LIBTOOL TAG CONFIG: CXX
18072 _LT_EOF
18073
18074  ;;
18075
18076   esac
18077 done # for ac_tag
18078
18079
18080 as_fn_exit 0
18081 _ACEOF
18082 ac_clean_files=$ac_clean_files_save
18083
18084 test $ac_write_fail = 0 ||
18085   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18086
18087
18088 # configure is writing to config.log, and then calls config.status.
18089 # config.status does its own redirection, appending to config.log.
18090 # Unfortunately, on DOS this fails, as config.log is still kept open
18091 # by configure, so config.status won't be able to write to it; its
18092 # output is simply discarded.  So we exec the FD to /dev/null,
18093 # effectively closing config.log, so it can be properly (re)opened and
18094 # appended to by config.status.  When coming back to configure, we
18095 # need to make the FD available again.
18096 if test "$no_create" != yes; then
18097   ac_cs_success=:
18098   ac_config_status_args=
18099   test "$silent" = yes &&
18100     ac_config_status_args="$ac_config_status_args --quiet"
18101   exec 5>/dev/null
18102   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18103   exec 5>>config.log
18104   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18105   # would make configure fail if this is the last instruction.
18106   $ac_cs_success || as_fn_exit 1
18107 fi
18108 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18109   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18110 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18111 fi
18112