Rebuild for wheezy-backports.
[mech_eap.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for mech_eap 0.9.2.
4 #
5 # Report bugs to <bugs@project-moonshot.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: bugs@project-moonshot.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='mech_eap'
592 PACKAGE_TARNAME='mech_eap'
593 PACKAGE_VERSION='0.9.2'
594 PACKAGE_STRING='mech_eap 0.9.2'
595 PACKAGE_BUGREPORT='bugs@project-moonshot.org'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBMOONSHOT_FALSE
638 LIBMOONSHOT_TRUE
639 LIBMOONSHOT_LIBS
640 LIBMOONSHOT_LDFLAGS
641 LIBMOONSHOT_CFLAGS
642 JANSSON_LIBS
643 JANSSON_LDFLAGS
644 JANSSON_CFLAGS
645 RADSEC_LIBS
646 RADSEC_LDFLAGS
647 RADSEC_CFLAGS
648 OPENSSL_LIBS
649 OPENSSL_LDFLAGS
650 OPENSSL_CFLAGS
651 SHIBSP_LIBS
652 SHIBSP_LDFLAGS
653 SHIBSP_CXXFLAGS
654 SHIBRESOLVER_FALSE
655 SHIBRESOLVER_TRUE
656 SHIBRESOLVER_LIBS
657 SHIBRESOLVER_LDFLAGS
658 SHIBRESOLVER_CXXFLAGS
659 OPENSAML_FALSE
660 OPENSAML_TRUE
661 OPENSAML_LIBS
662 OPENSAML_LDFLAGS
663 OPENSAML_CXXFLAGS
664 HEIMDAL_FALSE
665 HEIMDAL_TRUE
666 KRB5_LIBS
667 KRB5_LDFLAGS
668 KRB5_CFLAGS
669 COMPILE_ET
670 TARGET_WINDOWS_FALSE
671 TARGET_WINDOWS_TRUE
672 TARGET_LDFLAGS
673 TARGET_CFLAGS
674 GSSEAP_ENABLE_ACCEPTOR_FALSE
675 GSSEAP_ENABLE_ACCEPTOR_TRUE
676 GSSEAP_ENABLE_REAUTH_FALSE
677 GSSEAP_ENABLE_REAUTH_TRUE
678 LIBOBJS
679 CXXCPP
680 am__fastdepCXX_FALSE
681 am__fastdepCXX_TRUE
682 CXXDEPMODE
683 ac_ct_CXX
684 CXXFLAGS
685 CXX
686 OTOOL64
687 OTOOL
688 LIPO
689 NMEDIT
690 DSYMUTIL
691 MANIFEST_TOOL
692 RANLIB
693 ac_ct_AR
694 AR
695 LN_S
696 NM
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 SED
702 host_os
703 host_vendor
704 host_cpu
705 host
706 build_os
707 build_vendor
708 build_cpu
709 build
710 LIBTOOL
711 OBJDUMP
712 DLLTOOL
713 AS
714 MAINT
715 MAINTAINER_MODE_FALSE
716 MAINTAINER_MODE_TRUE
717 AM_BACKSLASH
718 AM_DEFAULT_VERBOSITY
719 AM_DEFAULT_V
720 AM_V
721 am__fastdepCC_FALSE
722 am__fastdepCC_TRUE
723 CCDEPMODE
724 am__nodep
725 AMDEPBACKSLASH
726 AMDEP_FALSE
727 AMDEP_TRUE
728 am__quote
729 am__include
730 DEPDIR
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
736 AWK
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 EGREP
755 GREP
756 CPP
757 OBJEXT
758 EXEEXT
759 ac_ct_CC
760 CPPFLAGS
761 LDFLAGS
762 CFLAGS
763 CC
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 enable_dependency_tracking
806 enable_silent_rules
807 enable_maintainer_mode
808 enable_static
809 enable_shared
810 with_pic
811 enable_fast_install
812 with_gnu_ld
813 with_sysroot
814 enable_libtool_lock
815 enable_reauth
816 enable_acceptor
817 with_krb5
818 with_opensaml
819 with_shibresolver
820 with_shibsp
821 with_openssl
822 with_radsec
823 with_jansson
824 with_libmoonshot
825 '
826       ac_precious_vars='build_alias
827 host_alias
828 target_alias
829 CC
830 CFLAGS
831 LDFLAGS
832 LIBS
833 CPPFLAGS
834 CPP
835 CXX
836 CXXFLAGS
837 CCC
838 CXXCPP'
839
840
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
862
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
888
889 ac_prev=
890 ac_dashdash=
891 for ac_option
892 do
893   # If the previous option needs an argument, assign it.
894   if test -n "$ac_prev"; then
895     eval $ac_prev=\$ac_option
896     ac_prev=
897     continue
898   fi
899
900   case $ac_option in
901   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902   *=)   ac_optarg= ;;
903   *)    ac_optarg=yes ;;
904   esac
905
906   # Accept the important Cygnus configure options, so we can diagnose typos.
907
908   case $ac_dashdash$ac_option in
909   --)
910     ac_dashdash=yes ;;
911
912   -bindir | --bindir | --bindi | --bind | --bin | --bi)
913     ac_prev=bindir ;;
914   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915     bindir=$ac_optarg ;;
916
917   -build | --build | --buil | --bui | --bu)
918     ac_prev=build_alias ;;
919   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920     build_alias=$ac_optarg ;;
921
922   -cache-file | --cache-file | --cache-fil | --cache-fi \
923   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924     ac_prev=cache_file ;;
925   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927     cache_file=$ac_optarg ;;
928
929   --config-cache | -C)
930     cache_file=config.cache ;;
931
932   -datadir | --datadir | --datadi | --datad)
933     ac_prev=datadir ;;
934   -datadir=* | --datadir=* | --datadi=* | --datad=*)
935     datadir=$ac_optarg ;;
936
937   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938   | --dataroo | --dataro | --datar)
939     ac_prev=datarootdir ;;
940   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942     datarootdir=$ac_optarg ;;
943
944   -disable-* | --disable-*)
945     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946     # Reject names that are not valid shell variable names.
947     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948       as_fn_error $? "invalid feature name: $ac_useropt"
949     ac_useropt_orig=$ac_useropt
950     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951     case $ac_user_opts in
952       *"
953 "enable_$ac_useropt"
954 "*) ;;
955       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956          ac_unrecognized_sep=', ';;
957     esac
958     eval enable_$ac_useropt=no ;;
959
960   -docdir | --docdir | --docdi | --doc | --do)
961     ac_prev=docdir ;;
962   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963     docdir=$ac_optarg ;;
964
965   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966     ac_prev=dvidir ;;
967   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968     dvidir=$ac_optarg ;;
969
970   -enable-* | --enable-*)
971     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972     # Reject names that are not valid shell variable names.
973     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974       as_fn_error $? "invalid feature name: $ac_useropt"
975     ac_useropt_orig=$ac_useropt
976     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977     case $ac_user_opts in
978       *"
979 "enable_$ac_useropt"
980 "*) ;;
981       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982          ac_unrecognized_sep=', ';;
983     esac
984     eval enable_$ac_useropt=\$ac_optarg ;;
985
986   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988   | --exec | --exe | --ex)
989     ac_prev=exec_prefix ;;
990   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992   | --exec=* | --exe=* | --ex=*)
993     exec_prefix=$ac_optarg ;;
994
995   -gas | --gas | --ga | --g)
996     # Obsolete; use --with-gas.
997     with_gas=yes ;;
998
999   -help | --help | --hel | --he | -h)
1000     ac_init_help=long ;;
1001   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002     ac_init_help=recursive ;;
1003   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004     ac_init_help=short ;;
1005
1006   -host | --host | --hos | --ho)
1007     ac_prev=host_alias ;;
1008   -host=* | --host=* | --hos=* | --ho=*)
1009     host_alias=$ac_optarg ;;
1010
1011   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012     ac_prev=htmldir ;;
1013   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014   | --ht=*)
1015     htmldir=$ac_optarg ;;
1016
1017   -includedir | --includedir | --includedi | --included | --include \
1018   | --includ | --inclu | --incl | --inc)
1019     ac_prev=includedir ;;
1020   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021   | --includ=* | --inclu=* | --incl=* | --inc=*)
1022     includedir=$ac_optarg ;;
1023
1024   -infodir | --infodir | --infodi | --infod | --info | --inf)
1025     ac_prev=infodir ;;
1026   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027     infodir=$ac_optarg ;;
1028
1029   -libdir | --libdir | --libdi | --libd)
1030     ac_prev=libdir ;;
1031   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032     libdir=$ac_optarg ;;
1033
1034   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035   | --libexe | --libex | --libe)
1036     ac_prev=libexecdir ;;
1037   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038   | --libexe=* | --libex=* | --libe=*)
1039     libexecdir=$ac_optarg ;;
1040
1041   -localedir | --localedir | --localedi | --localed | --locale)
1042     ac_prev=localedir ;;
1043   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044     localedir=$ac_optarg ;;
1045
1046   -localstatedir | --localstatedir | --localstatedi | --localstated \
1047   | --localstate | --localstat | --localsta | --localst | --locals)
1048     ac_prev=localstatedir ;;
1049   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051     localstatedir=$ac_optarg ;;
1052
1053   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054     ac_prev=mandir ;;
1055   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056     mandir=$ac_optarg ;;
1057
1058   -nfp | --nfp | --nf)
1059     # Obsolete; use --without-fp.
1060     with_fp=no ;;
1061
1062   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063   | --no-cr | --no-c | -n)
1064     no_create=yes ;;
1065
1066   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068     no_recursion=yes ;;
1069
1070   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072   | --oldin | --oldi | --old | --ol | --o)
1073     ac_prev=oldincludedir ;;
1074   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077     oldincludedir=$ac_optarg ;;
1078
1079   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080     ac_prev=prefix ;;
1081   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082     prefix=$ac_optarg ;;
1083
1084   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085   | --program-pre | --program-pr | --program-p)
1086     ac_prev=program_prefix ;;
1087   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089     program_prefix=$ac_optarg ;;
1090
1091   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092   | --program-suf | --program-su | --program-s)
1093     ac_prev=program_suffix ;;
1094   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096     program_suffix=$ac_optarg ;;
1097
1098   -program-transform-name | --program-transform-name \
1099   | --program-transform-nam | --program-transform-na \
1100   | --program-transform-n | --program-transform- \
1101   | --program-transform | --program-transfor \
1102   | --program-transfo | --program-transf \
1103   | --program-trans | --program-tran \
1104   | --progr-tra | --program-tr | --program-t)
1105     ac_prev=program_transform_name ;;
1106   -program-transform-name=* | --program-transform-name=* \
1107   | --program-transform-nam=* | --program-transform-na=* \
1108   | --program-transform-n=* | --program-transform-=* \
1109   | --program-transform=* | --program-transfor=* \
1110   | --program-transfo=* | --program-transf=* \
1111   | --program-trans=* | --program-tran=* \
1112   | --progr-tra=* | --program-tr=* | --program-t=*)
1113     program_transform_name=$ac_optarg ;;
1114
1115   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116     ac_prev=pdfdir ;;
1117   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118     pdfdir=$ac_optarg ;;
1119
1120   -psdir | --psdir | --psdi | --psd | --ps)
1121     ac_prev=psdir ;;
1122   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123     psdir=$ac_optarg ;;
1124
1125   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126   | -silent | --silent | --silen | --sile | --sil)
1127     silent=yes ;;
1128
1129   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130     ac_prev=sbindir ;;
1131   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132   | --sbi=* | --sb=*)
1133     sbindir=$ac_optarg ;;
1134
1135   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137   | --sharedst | --shareds | --shared | --share | --shar \
1138   | --sha | --sh)
1139     ac_prev=sharedstatedir ;;
1140   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143   | --sha=* | --sh=*)
1144     sharedstatedir=$ac_optarg ;;
1145
1146   -site | --site | --sit)
1147     ac_prev=site ;;
1148   -site=* | --site=* | --sit=*)
1149     site=$ac_optarg ;;
1150
1151   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152     ac_prev=srcdir ;;
1153   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154     srcdir=$ac_optarg ;;
1155
1156   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157   | --syscon | --sysco | --sysc | --sys | --sy)
1158     ac_prev=sysconfdir ;;
1159   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161     sysconfdir=$ac_optarg ;;
1162
1163   -target | --target | --targe | --targ | --tar | --ta | --t)
1164     ac_prev=target_alias ;;
1165   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166     target_alias=$ac_optarg ;;
1167
1168   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169     verbose=yes ;;
1170
1171   -version | --version | --versio | --versi | --vers | -V)
1172     ac_init_version=: ;;
1173
1174   -with-* | --with-*)
1175     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178       as_fn_error $? "invalid package name: $ac_useropt"
1179     ac_useropt_orig=$ac_useropt
1180     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181     case $ac_user_opts in
1182       *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186          ac_unrecognized_sep=', ';;
1187     esac
1188     eval with_$ac_useropt=\$ac_optarg ;;
1189
1190   -without-* | --without-*)
1191     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192     # Reject names that are not valid shell variable names.
1193     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194       as_fn_error $? "invalid package name: $ac_useropt"
1195     ac_useropt_orig=$ac_useropt
1196     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197     case $ac_user_opts in
1198       *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202          ac_unrecognized_sep=', ';;
1203     esac
1204     eval with_$ac_useropt=no ;;
1205
1206   --x)
1207     # Obsolete; use --with-x.
1208     with_x=yes ;;
1209
1210   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211   | --x-incl | --x-inc | --x-in | --x-i)
1212     ac_prev=x_includes ;;
1213   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215     x_includes=$ac_optarg ;;
1216
1217   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219     ac_prev=x_libraries ;;
1220   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222     x_libraries=$ac_optarg ;;
1223
1224   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information"
1226     ;;
1227
1228   *=*)
1229     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230     # Reject names that are not valid shell variable names.
1231     case $ac_envvar in #(
1232       '' | [0-9]* | *[!_$as_cr_alnum]* )
1233       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234     esac
1235     eval $ac_envvar=\$ac_optarg
1236     export $ac_envvar ;;
1237
1238   *)
1239     # FIXME: should be removed in autoconf 3.0.
1240     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244     ;;
1245
1246   esac
1247 done
1248
1249 if test -n "$ac_prev"; then
1250   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251   as_fn_error $? "missing argument to $ac_option"
1252 fi
1253
1254 if test -n "$ac_unrecognized_opts"; then
1255   case $enable_option_checking in
1256     no) ;;
1257     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259   esac
1260 fi
1261
1262 # Check all directory arguments for consistency.
1263 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264                 datadir sysconfdir sharedstatedir localstatedir includedir \
1265                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266                 libdir localedir mandir
1267 do
1268   eval ac_val=\$$ac_var
1269   # Remove trailing slashes.
1270   case $ac_val in
1271     */ )
1272       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273       eval $ac_var=\$ac_val;;
1274   esac
1275   # Be sure to have absolute directory names.
1276   case $ac_val in
1277     [\\/$]* | ?:[\\/]* )  continue;;
1278     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279   esac
1280   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1282
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1289
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292   if test "x$build_alias" = x; then
1293     cross_compiling=maybe
1294   elif test "x$build_alias" != "x$host_alias"; then
1295     cross_compiling=yes
1296   fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308   as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310   as_fn_error $? "pwd does not report name of working directory"
1311
1312
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315   ac_srcdir_defaulted=yes
1316   # Try the directory containing this script, then the parent directory.
1317   ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319          X"$as_myself" : 'X\(//\)[^/]' \| \
1320          X"$as_myself" : 'X\(//\)$' \| \
1321          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\/\)[^/].*/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\/\)$/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\).*/{
1336             s//\1/
1337             q
1338           }
1339           s/.*/./; q'`
1340   srcdir=$ac_confdir
1341   if test ! -r "$srcdir/$ac_unique_file"; then
1342     srcdir=..
1343   fi
1344 else
1345   ac_srcdir_defaulted=no
1346 fi
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 fi
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354         pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357   srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367   eval ac_env_${ac_var}_value=\$${ac_var}
1368   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1371
1372 #
1373 # Report the --help message.
1374 #
1375 if test "$ac_init_help" = "long"; then
1376   # Omit some internal or obsolete options to make the list less imposing.
1377   # This message is too long to be a string in the A/UX 3.1 sh.
1378   cat <<_ACEOF
1379 \`configure' configures mech_eap 0.9.2 to adapt to many kinds of systems.
1380
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE.  See below for descriptions of some of the useful variables.
1385
1386 Defaults for the options are specified in brackets.
1387
1388 Configuration:
1389   -h, --help              display this help and exit
1390       --help=short        display options specific to this package
1391       --help=recursive    display the short help of all the included packages
1392   -V, --version           display version information and exit
1393   -q, --quiet, --silent   do not print \`checking ...' messages
1394       --cache-file=FILE   cache test results in FILE [disabled]
1395   -C, --config-cache      alias for \`--cache-file=config.cache'
1396   -n, --no-create         do not create output files
1397       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1398
1399 Installation directories:
1400   --prefix=PREFIX         install architecture-independent files in PREFIX
1401                           [$ac_default_prefix]
1402   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1403                           [PREFIX]
1404
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1409
1410 For better control, use the options below.
1411
1412 Fine tuning of the installation directories:
1413   --bindir=DIR            user executables [EPREFIX/bin]
1414   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1415   --libexecdir=DIR        program executables [EPREFIX/libexec]
1416   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1417   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1418   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1419   --libdir=DIR            object code libraries [EPREFIX/lib]
1420   --includedir=DIR        C header files [PREFIX/include]
1421   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1422   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1423   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1424   --infodir=DIR           info documentation [DATAROOTDIR/info]
1425   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1426   --mandir=DIR            man documentation [DATAROOTDIR/man]
1427   --docdir=DIR            documentation root [DATAROOTDIR/doc/mech_eap]
1428   --htmldir=DIR           html documentation [DOCDIR]
1429   --dvidir=DIR            dvi documentation [DOCDIR]
1430   --pdfdir=DIR            pdf documentation [DOCDIR]
1431   --psdir=DIR             ps documentation [DOCDIR]
1432 _ACEOF
1433
1434   cat <<\_ACEOF
1435
1436 Program names:
1437   --program-prefix=PREFIX            prepend PREFIX to installed program names
1438   --program-suffix=SUFFIX            append SUFFIX to installed program names
1439   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1440
1441 System types:
1442   --build=BUILD     configure for building on BUILD [guessed]
1443   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448   case $ac_init_help in
1449      short | recursive ) echo "Configuration of mech_eap 0.9.2:";;
1450    esac
1451   cat <<\_ACEOF
1452
1453 Optional Features:
1454   --disable-option-checking  ignore unrecognized --enable/--with options
1455   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1456   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1457   --enable-dependency-tracking
1458                           do not reject slow dependency extractors
1459   --disable-dependency-tracking
1460                           speeds up one-time build
1461   --enable-silent-rules   less verbose build output (undo: "make V=1")
1462   --disable-silent-rules  verbose build output (undo: "make V=0")
1463   --enable-maintainer-mode
1464                           enable make rules and dependencies not useful (and
1465                           sometimes confusing) to the casual installer
1466   --enable-static[=PKGS]  build static libraries [default=no]
1467   --enable-shared[=PKGS]  build shared libraries [default=yes]
1468   --enable-fast-install[=PKGS]
1469                           optimize for fast installation [default=yes]
1470   --disable-libtool-lock  avoid locking (might break parallel builds)
1471   --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no
1472   --enable-acceptor whether to enable acceptor codepaths: yes/no; default yes
1473
1474 Optional Packages:
1475   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1476   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1477   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1478                           both]
1479   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1480   --with-sysroot=DIR Search for dependent libraries within DIR
1481                         (or the compiler's sysroot if not specified).
1482   --with-krb5             Use krb5 (in specified installation directory)
1483   --with-opensaml         Use OpenSAML (in specified installation directory)
1484   --with-shibresolver     Use Shibboleth resolver (in specified installation
1485                           directory)
1486   --with-shibsp           Use shibspboleth (in specified installation
1487                           directory)
1488   --with-openssl          Use OpenSSL (in specified installation directory)
1489   --with-radsec           Use radsec (in specified installation directory)
1490   --with-jansson          Use jansson (in specified installation directory)
1491   --with-libmoonshot      Use libmoonshot (in specified installation
1492                           directory)
1493
1494 Some influential environment variables:
1495   CC          C compiler command
1496   CFLAGS      C compiler flags
1497   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1498               nonstandard directory <lib dir>
1499   LIBS        libraries to pass to the linker, e.g. -l<library>
1500   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501               you have headers in a nonstandard directory <include dir>
1502   CPP         C preprocessor
1503   CXX         C++ compiler command
1504   CXXFLAGS    C++ compiler flags
1505   CXXCPP      C++ preprocessor
1506
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1509
1510 Report bugs to <bugs@project-moonshot.org>.
1511 _ACEOF
1512 ac_status=$?
1513 fi
1514
1515 if test "$ac_init_help" = "recursive"; then
1516   # If there are subdirs, report their specific --help.
1517   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518     test -d "$ac_dir" ||
1519       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1520       continue
1521     ac_builddir=.
1522
1523 case "$ac_dir" in
1524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *)
1526   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1527   # A ".." for each directory in $ac_dir_suffix.
1528   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1529   case $ac_top_builddir_sub in
1530   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532   esac ;;
1533 esac
1534 ac_abs_top_builddir=$ac_pwd
1535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536 # for backward compatibility:
1537 ac_top_builddir=$ac_top_build_prefix
1538
1539 case $srcdir in
1540   .)  # We are building in place.
1541     ac_srcdir=.
1542     ac_top_srcdir=$ac_top_builddir_sub
1543     ac_abs_top_srcdir=$ac_pwd ;;
1544   [\\/]* | ?:[\\/]* )  # Absolute name.
1545     ac_srcdir=$srcdir$ac_dir_suffix;
1546     ac_top_srcdir=$srcdir
1547     ac_abs_top_srcdir=$srcdir ;;
1548   *) # Relative name.
1549     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550     ac_top_srcdir=$ac_top_build_prefix$srcdir
1551     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552 esac
1553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554
1555     cd "$ac_dir" || { ac_status=$?; continue; }
1556     # Check for guested configure.
1557     if test -f "$ac_srcdir/configure.gnu"; then
1558       echo &&
1559       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560     elif test -f "$ac_srcdir/configure"; then
1561       echo &&
1562       $SHELL "$ac_srcdir/configure" --help=recursive
1563     else
1564       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565     fi || ac_status=$?
1566     cd "$ac_pwd" || { ac_status=$?; break; }
1567   done
1568 fi
1569
1570 test -n "$ac_init_help" && exit $ac_status
1571 if $ac_init_version; then
1572   cat <<\_ACEOF
1573 mech_eap configure 0.9.2
1574 generated by GNU Autoconf 2.69
1575
1576 Copyright (C) 2012 Free Software Foundation, Inc.
1577 This configure script is free software; the Free Software Foundation
1578 gives unlimited permission to copy, distribute and modify it.
1579 _ACEOF
1580   exit
1581 fi
1582
1583 ## ------------------------ ##
1584 ## Autoconf initialization. ##
1585 ## ------------------------ ##
1586
1587 # ac_fn_c_try_compile LINENO
1588 # --------------------------
1589 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_compile ()
1591 {
1592   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593   rm -f conftest.$ac_objext
1594   if { { ac_try="$ac_compile"
1595 case "(($ac_try" in
1596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597   *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601   (eval "$ac_compile") 2>conftest.err
1602   ac_status=$?
1603   if test -s conftest.err; then
1604     grep -v '^ *+' conftest.err >conftest.er1
1605     cat conftest.er1 >&5
1606     mv -f conftest.er1 conftest.err
1607   fi
1608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609   test $ac_status = 0; } && {
1610          test -z "$ac_c_werror_flag" ||
1611          test ! -s conftest.err
1612        } && test -s conftest.$ac_objext; then :
1613   ac_retval=0
1614 else
1615   $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618         ac_retval=1
1619 fi
1620   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621   as_fn_set_status $ac_retval
1622
1623 } # ac_fn_c_try_compile
1624
1625 # ac_fn_c_try_cpp LINENO
1626 # ----------------------
1627 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_cpp ()
1629 {
1630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631   if { { ac_try="$ac_cpp conftest.$ac_ext"
1632 case "(($ac_try" in
1633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634   *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639   ac_status=$?
1640   if test -s conftest.err; then
1641     grep -v '^ *+' conftest.err >conftest.er1
1642     cat conftest.er1 >&5
1643     mv -f conftest.er1 conftest.err
1644   fi
1645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646   test $ac_status = 0; } > conftest.i && {
1647          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648          test ! -s conftest.err
1649        }; then :
1650   ac_retval=0
1651 else
1652   $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655     ac_retval=1
1656 fi
1657   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658   as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_cpp
1661
1662 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1663 # -------------------------------------------------------
1664 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1665 # the include files in INCLUDES and setting the cache variable VAR
1666 # accordingly.
1667 ac_fn_c_check_header_mongrel ()
1668 {
1669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670   if eval \${$3+:} false; then :
1671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if eval \${$3+:} false; then :
1674   $as_echo_n "(cached) " >&6
1675 fi
1676 eval ac_res=\$$3
1677                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 else
1680   # Is the header compilable?
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1682 $as_echo_n "checking $2 usability... " >&6; }
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h.  */
1685 $4
1686 #include <$2>
1687 _ACEOF
1688 if ac_fn_c_try_compile "$LINENO"; then :
1689   ac_header_compiler=yes
1690 else
1691   ac_header_compiler=no
1692 fi
1693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1695 $as_echo "$ac_header_compiler" >&6; }
1696
1697 # Is the header present?
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1699 $as_echo_n "checking $2 presence... " >&6; }
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h.  */
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_cpp "$LINENO"; then :
1705   ac_header_preproc=yes
1706 else
1707   ac_header_preproc=no
1708 fi
1709 rm -f conftest.err conftest.i conftest.$ac_ext
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1711 $as_echo "$ac_header_preproc" >&6; }
1712
1713 # So?  What about this header?
1714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1715   yes:no: )
1716     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1717 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1718     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720     ;;
1721   no:yes:* )
1722     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1723 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1724     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1725 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1726     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1727 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1728     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1729 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1731 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1732 ( $as_echo "## ---------------------------------------- ##
1733 ## Report this to bugs@project-moonshot.org ##
1734 ## ---------------------------------------- ##"
1735      ) | sed "s/^/$as_me: WARNING:     /" >&2
1736     ;;
1737 esac
1738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741   $as_echo_n "(cached) " >&6
1742 else
1743   eval "$3=\$ac_header_compiler"
1744 fi
1745 eval ac_res=\$$3
1746                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1748 fi
1749   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750
1751 } # ac_fn_c_check_header_mongrel
1752
1753 # ac_fn_c_try_run LINENO
1754 # ----------------------
1755 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1756 # that executables *can* be run.
1757 ac_fn_c_try_run ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   if { { ac_try="$ac_link"
1761 case "(($ac_try" in
1762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763   *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767   (eval "$ac_link") 2>&5
1768   ac_status=$?
1769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1771   { { case "(($ac_try" in
1772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773   *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777   (eval "$ac_try") 2>&5
1778   ac_status=$?
1779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780   test $ac_status = 0; }; }; then :
1781   ac_retval=0
1782 else
1783   $as_echo "$as_me: program exited with status $ac_status" >&5
1784        $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787        ac_retval=$ac_status
1788 fi
1789   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791   as_fn_set_status $ac_retval
1792
1793 } # ac_fn_c_try_run
1794
1795 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists and can be compiled using the include files in
1798 # INCLUDES, setting the cache variable VAR accordingly.
1799 ac_fn_c_check_header_compile ()
1800 {
1801   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if eval \${$3+:} false; then :
1805   $as_echo_n "(cached) " >&6
1806 else
1807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h.  */
1809 $4
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"; then :
1813   eval "$3=yes"
1814 else
1815   eval "$3=no"
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 fi
1819 eval ac_res=\$$3
1820                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823
1824 } # ac_fn_c_check_header_compile
1825
1826 # ac_fn_c_try_link LINENO
1827 # -----------------------
1828 # Try to link conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_c_try_link ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   rm -f conftest.$ac_objext conftest$ac_exeext
1833   if { { ac_try="$ac_link"
1834 case "(($ac_try" in
1835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836   *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840   (eval "$ac_link") 2>conftest.err
1841   ac_status=$?
1842   if test -s conftest.err; then
1843     grep -v '^ *+' conftest.err >conftest.er1
1844     cat conftest.er1 >&5
1845     mv -f conftest.er1 conftest.err
1846   fi
1847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848   test $ac_status = 0; } && {
1849          test -z "$ac_c_werror_flag" ||
1850          test ! -s conftest.err
1851        } && test -s conftest$ac_exeext && {
1852          test "$cross_compiling" = yes ||
1853          test -x conftest$ac_exeext
1854        }; then :
1855   ac_retval=0
1856 else
1857   $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1859
1860         ac_retval=1
1861 fi
1862   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1863   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1864   # interfere with the next link command; also delete a directory that is
1865   # left behind by Apple's compiler.  We do this before executing the actions.
1866   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868   as_fn_set_status $ac_retval
1869
1870 } # ac_fn_c_try_link
1871
1872 # ac_fn_c_check_func LINENO FUNC VAR
1873 # ----------------------------------
1874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1875 ac_fn_c_check_func ()
1876 {
1877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881   $as_echo_n "(cached) " >&6
1882 else
1883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h.  */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1887 #define $2 innocuous_$2
1888
1889 /* System header to define __stub macros and hopefully few prototypes,
1890     which can conflict with char $2 (); below.
1891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892     <limits.h> exists even on freestanding compilers.  */
1893
1894 #ifdef __STDC__
1895 # include <limits.h>
1896 #else
1897 # include <assert.h>
1898 #endif
1899
1900 #undef $2
1901
1902 /* Override any GCC internal prototype to avoid an error.
1903    Use char because int might match the return type of a GCC
1904    builtin and then its argument prototype would still apply.  */
1905 #ifdef __cplusplus
1906 extern "C"
1907 #endif
1908 char $2 ();
1909 /* The GNU C library defines this for functions which it implements
1910     to always fail with ENOSYS.  Some functions are actually named
1911     something starting with __ and the normal name is an alias.  */
1912 #if defined __stub_$2 || defined __stub___$2
1913 choke me
1914 #endif
1915
1916 int
1917 main ()
1918 {
1919 return $2 ();
1920   ;
1921   return 0;
1922 }
1923 _ACEOF
1924 if ac_fn_c_try_link "$LINENO"; then :
1925   eval "$3=yes"
1926 else
1927   eval "$3=no"
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext \
1930     conftest$ac_exeext conftest.$ac_ext
1931 fi
1932 eval ac_res=\$$3
1933                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937 } # ac_fn_c_check_func
1938
1939 # ac_fn_cxx_try_compile LINENO
1940 # ----------------------------
1941 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1942 ac_fn_cxx_try_compile ()
1943 {
1944   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945   rm -f conftest.$ac_objext
1946   if { { ac_try="$ac_compile"
1947 case "(($ac_try" in
1948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949   *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953   (eval "$ac_compile") 2>conftest.err
1954   ac_status=$?
1955   if test -s conftest.err; then
1956     grep -v '^ *+' conftest.err >conftest.er1
1957     cat conftest.er1 >&5
1958     mv -f conftest.er1 conftest.err
1959   fi
1960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961   test $ac_status = 0; } && {
1962          test -z "$ac_cxx_werror_flag" ||
1963          test ! -s conftest.err
1964        } && test -s conftest.$ac_objext; then :
1965   ac_retval=0
1966 else
1967   $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1969
1970         ac_retval=1
1971 fi
1972   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973   as_fn_set_status $ac_retval
1974
1975 } # ac_fn_cxx_try_compile
1976
1977 # ac_fn_cxx_try_cpp LINENO
1978 # ------------------------
1979 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_cxx_try_cpp ()
1981 {
1982   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983   if { { ac_try="$ac_cpp conftest.$ac_ext"
1984 case "(($ac_try" in
1985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986   *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1991   ac_status=$?
1992   if test -s conftest.err; then
1993     grep -v '^ *+' conftest.err >conftest.er1
1994     cat conftest.er1 >&5
1995     mv -f conftest.er1 conftest.err
1996   fi
1997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998   test $ac_status = 0; } > conftest.i && {
1999          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2000          test ! -s conftest.err
2001        }; then :
2002   ac_retval=0
2003 else
2004   $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007     ac_retval=1
2008 fi
2009   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010   as_fn_set_status $ac_retval
2011
2012 } # ac_fn_cxx_try_cpp
2013
2014 # ac_fn_cxx_try_link LINENO
2015 # -------------------------
2016 # Try to link conftest.$ac_ext, and return whether this succeeded.
2017 ac_fn_cxx_try_link ()
2018 {
2019   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020   rm -f conftest.$ac_objext conftest$ac_exeext
2021   if { { ac_try="$ac_link"
2022 case "(($ac_try" in
2023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024   *) ac_try_echo=$ac_try;;
2025 esac
2026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2027 $as_echo "$ac_try_echo"; } >&5
2028   (eval "$ac_link") 2>conftest.err
2029   ac_status=$?
2030   if test -s conftest.err; then
2031     grep -v '^ *+' conftest.err >conftest.er1
2032     cat conftest.er1 >&5
2033     mv -f conftest.er1 conftest.err
2034   fi
2035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2036   test $ac_status = 0; } && {
2037          test -z "$ac_cxx_werror_flag" ||
2038          test ! -s conftest.err
2039        } && test -s conftest$ac_exeext && {
2040          test "$cross_compiling" = yes ||
2041          test -x conftest$ac_exeext
2042        }; then :
2043   ac_retval=0
2044 else
2045   $as_echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2047
2048         ac_retval=1
2049 fi
2050   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2051   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2052   # interfere with the next link command; also delete a directory that is
2053   # left behind by Apple's compiler.  We do this before executing the actions.
2054   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2055   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056   as_fn_set_status $ac_retval
2057
2058 } # ac_fn_cxx_try_link
2059 cat >config.log <<_ACEOF
2060 This file contains any messages produced by compilers while
2061 running configure, to aid debugging if configure makes a mistake.
2062
2063 It was created by mech_eap $as_me 0.9.2, which was
2064 generated by GNU Autoconf 2.69.  Invocation command line was
2065
2066   $ $0 $@
2067
2068 _ACEOF
2069 exec 5>>config.log
2070 {
2071 cat <<_ASUNAME
2072 ## --------- ##
2073 ## Platform. ##
2074 ## --------- ##
2075
2076 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2077 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2078 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2079 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2080 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2081
2082 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2083 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2084
2085 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2086 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2087 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2088 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2089 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2090 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2091 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2092
2093 _ASUNAME
2094
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2097 do
2098   IFS=$as_save_IFS
2099   test -z "$as_dir" && as_dir=.
2100     $as_echo "PATH: $as_dir"
2101   done
2102 IFS=$as_save_IFS
2103
2104 } >&5
2105
2106 cat >&5 <<_ACEOF
2107
2108
2109 ## ----------- ##
2110 ## Core tests. ##
2111 ## ----------- ##
2112
2113 _ACEOF
2114
2115
2116 # Keep a trace of the command line.
2117 # Strip out --no-create and --no-recursion so they do not pile up.
2118 # Strip out --silent because we don't want to record it for future runs.
2119 # Also quote any args containing shell meta-characters.
2120 # Make two passes to allow for proper duplicate-argument suppression.
2121 ac_configure_args=
2122 ac_configure_args0=
2123 ac_configure_args1=
2124 ac_must_keep_next=false
2125 for ac_pass in 1 2
2126 do
2127   for ac_arg
2128   do
2129     case $ac_arg in
2130     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2131     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2132     | -silent | --silent | --silen | --sile | --sil)
2133       continue ;;
2134     *\'*)
2135       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2136     esac
2137     case $ac_pass in
2138     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2139     2)
2140       as_fn_append ac_configure_args1 " '$ac_arg'"
2141       if test $ac_must_keep_next = true; then
2142         ac_must_keep_next=false # Got value, back to normal.
2143       else
2144         case $ac_arg in
2145           *=* | --config-cache | -C | -disable-* | --disable-* \
2146           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2147           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2148           | -with-* | --with-* | -without-* | --without-* | --x)
2149             case "$ac_configure_args0 " in
2150               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2151             esac
2152             ;;
2153           -* ) ac_must_keep_next=true ;;
2154         esac
2155       fi
2156       as_fn_append ac_configure_args " '$ac_arg'"
2157       ;;
2158     esac
2159   done
2160 done
2161 { ac_configure_args0=; unset ac_configure_args0;}
2162 { ac_configure_args1=; unset ac_configure_args1;}
2163
2164 # When interrupted or exit'd, cleanup temporary files, and complete
2165 # config.log.  We remove comments because anyway the quotes in there
2166 # would cause problems or look ugly.
2167 # WARNING: Use '\'' to represent an apostrophe within the trap.
2168 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2169 trap 'exit_status=$?
2170   # Save into config.log some information that might help in debugging.
2171   {
2172     echo
2173
2174     $as_echo "## ---------------- ##
2175 ## Cache variables. ##
2176 ## ---------------- ##"
2177     echo
2178     # The following way of writing the cache mishandles newlines in values,
2179 (
2180   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2181     eval ac_val=\$$ac_var
2182     case $ac_val in #(
2183     *${as_nl}*)
2184       case $ac_var in #(
2185       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2187       esac
2188       case $ac_var in #(
2189       _ | IFS | as_nl) ;; #(
2190       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2191       *) { eval $ac_var=; unset $ac_var;} ;;
2192       esac ;;
2193     esac
2194   done
2195   (set) 2>&1 |
2196     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2197     *${as_nl}ac_space=\ *)
2198       sed -n \
2199         "s/'\''/'\''\\\\'\'''\''/g;
2200           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2201       ;; #(
2202     *)
2203       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2204       ;;
2205     esac |
2206     sort
2207 )
2208     echo
2209
2210     $as_echo "## ----------------- ##
2211 ## Output variables. ##
2212 ## ----------------- ##"
2213     echo
2214     for ac_var in $ac_subst_vars
2215     do
2216       eval ac_val=\$$ac_var
2217       case $ac_val in
2218       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219       esac
2220       $as_echo "$ac_var='\''$ac_val'\''"
2221     done | sort
2222     echo
2223
2224     if test -n "$ac_subst_files"; then
2225       $as_echo "## ------------------- ##
2226 ## File substitutions. ##
2227 ## ------------------- ##"
2228       echo
2229       for ac_var in $ac_subst_files
2230       do
2231         eval ac_val=\$$ac_var
2232         case $ac_val in
2233         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2234         esac
2235         $as_echo "$ac_var='\''$ac_val'\''"
2236       done | sort
2237       echo
2238     fi
2239
2240     if test -s confdefs.h; then
2241       $as_echo "## ----------- ##
2242 ## confdefs.h. ##
2243 ## ----------- ##"
2244       echo
2245       cat confdefs.h
2246       echo
2247     fi
2248     test "$ac_signal" != 0 &&
2249       $as_echo "$as_me: caught signal $ac_signal"
2250     $as_echo "$as_me: exit $exit_status"
2251   } >&5
2252   rm -f core *.core core.conftest.* &&
2253     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2254     exit $exit_status
2255 ' 0
2256 for ac_signal in 1 2 13 15; do
2257   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2258 done
2259 ac_signal=0
2260
2261 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2262 rm -f -r conftest* confdefs.h
2263
2264 $as_echo "/* confdefs.h */" > confdefs.h
2265
2266 # Predefined preprocessor variables.
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_NAME "$PACKAGE_NAME"
2270 _ACEOF
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2274 _ACEOF
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2278 _ACEOF
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_STRING "$PACKAGE_STRING"
2282 _ACEOF
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2286 _ACEOF
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_URL "$PACKAGE_URL"
2290 _ACEOF
2291
2292
2293 # Let the site file select an alternate cache file if it wants to.
2294 # Prefer an explicitly selected file to automatically selected ones.
2295 ac_site_file1=NONE
2296 ac_site_file2=NONE
2297 if test -n "$CONFIG_SITE"; then
2298   # We do not want a PATH search for config.site.
2299   case $CONFIG_SITE in #((
2300     -*)  ac_site_file1=./$CONFIG_SITE;;
2301     */*) ac_site_file1=$CONFIG_SITE;;
2302     *)   ac_site_file1=./$CONFIG_SITE;;
2303   esac
2304 elif test "x$prefix" != xNONE; then
2305   ac_site_file1=$prefix/share/config.site
2306   ac_site_file2=$prefix/etc/config.site
2307 else
2308   ac_site_file1=$ac_default_prefix/share/config.site
2309   ac_site_file2=$ac_default_prefix/etc/config.site
2310 fi
2311 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2312 do
2313   test "x$ac_site_file" = xNONE && continue
2314   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2315     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2316 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2317     sed 's/^/| /' "$ac_site_file" >&5
2318     . "$ac_site_file" \
2319       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 as_fn_error $? "failed to load site script $ac_site_file
2322 See \`config.log' for more details" "$LINENO" 5; }
2323   fi
2324 done
2325
2326 if test -r "$cache_file"; then
2327   # Some versions of bash will fail to source /dev/null (special files
2328   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2329   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2330     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2331 $as_echo "$as_me: loading cache $cache_file" >&6;}
2332     case $cache_file in
2333       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2334       *)                      . "./$cache_file";;
2335     esac
2336   fi
2337 else
2338   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2339 $as_echo "$as_me: creating cache $cache_file" >&6;}
2340   >$cache_file
2341 fi
2342
2343 # Check that the precious variables saved in the cache have kept the same
2344 # value.
2345 ac_cache_corrupted=false
2346 for ac_var in $ac_precious_vars; do
2347   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2348   eval ac_new_set=\$ac_env_${ac_var}_set
2349   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2350   eval ac_new_val=\$ac_env_${ac_var}_value
2351   case $ac_old_set,$ac_new_set in
2352     set,)
2353       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2354 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2355       ac_cache_corrupted=: ;;
2356     ,set)
2357       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2358 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2359       ac_cache_corrupted=: ;;
2360     ,);;
2361     *)
2362       if test "x$ac_old_val" != "x$ac_new_val"; then
2363         # differences in whitespace do not lead to failure.
2364         ac_old_val_w=`echo x $ac_old_val`
2365         ac_new_val_w=`echo x $ac_new_val`
2366         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2367           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2368 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2369           ac_cache_corrupted=:
2370         else
2371           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2372 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2373           eval $ac_var=\$ac_old_val
2374         fi
2375         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2376 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2377         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2378 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2379       fi;;
2380   esac
2381   # Pass precious variables to config.status.
2382   if test "$ac_new_set" = set; then
2383     case $ac_new_val in
2384     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2385     *) ac_arg=$ac_var=$ac_new_val ;;
2386     esac
2387     case " $ac_configure_args " in
2388       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2389       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2390     esac
2391   fi
2392 done
2393 if $ac_cache_corrupted; then
2394   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2397 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2398   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2399 fi
2400 ## -------------------- ##
2401 ## Main body of script. ##
2402 ## -------------------- ##
2403
2404 ac_ext=c
2405 ac_cpp='$CPP $CPPFLAGS'
2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2409
2410
2411
2412 ac_aux_dir=
2413 for ac_dir in build-aux "$srcdir"/build-aux; do
2414   if test -f "$ac_dir/install-sh"; then
2415     ac_aux_dir=$ac_dir
2416     ac_install_sh="$ac_aux_dir/install-sh -c"
2417     break
2418   elif test -f "$ac_dir/install.sh"; then
2419     ac_aux_dir=$ac_dir
2420     ac_install_sh="$ac_aux_dir/install.sh -c"
2421     break
2422   elif test -f "$ac_dir/shtool"; then
2423     ac_aux_dir=$ac_dir
2424     ac_install_sh="$ac_aux_dir/shtool install -c"
2425     break
2426   fi
2427 done
2428 if test -z "$ac_aux_dir"; then
2429   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2430 fi
2431
2432 # These three variables are undocumented and unsupported,
2433 # and are intended to be withdrawn in a future Autoconf release.
2434 # They can cause serious problems if a builder's source tree is in a directory
2435 # whose full name contains unusual characters.
2436 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2437 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2438 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2439
2440
2441
2442 # expand $ac_aux_dir to an absolute path
2443 am_aux_dir=`cd $ac_aux_dir && pwd`
2444
2445 ac_ext=c
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450 if test -n "$ac_tool_prefix"; then
2451   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2452 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454 $as_echo_n "checking for $ac_word... " >&6; }
2455 if ${ac_cv_prog_CC+:} false; then :
2456   $as_echo_n "(cached) " >&6
2457 else
2458   if test -n "$CC"; then
2459   ac_cv_prog_CC="$CC" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464   IFS=$as_save_IFS
2465   test -z "$as_dir" && as_dir=.
2466     for ac_exec_ext in '' $ac_executable_extensions; do
2467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2468     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2470     break 2
2471   fi
2472 done
2473   done
2474 IFS=$as_save_IFS
2475
2476 fi
2477 fi
2478 CC=$ac_cv_prog_CC
2479 if test -n "$CC"; then
2480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2481 $as_echo "$CC" >&6; }
2482 else
2483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2484 $as_echo "no" >&6; }
2485 fi
2486
2487
2488 fi
2489 if test -z "$ac_cv_prog_CC"; then
2490   ac_ct_CC=$CC
2491   # Extract the first word of "gcc", so it can be a program name with args.
2492 set dummy gcc; ac_word=$2
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2494 $as_echo_n "checking for $ac_word... " >&6; }
2495 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2496   $as_echo_n "(cached) " >&6
2497 else
2498   if test -n "$ac_ct_CC"; then
2499   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2500 else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504   IFS=$as_save_IFS
2505   test -z "$as_dir" && as_dir=.
2506     for ac_exec_ext in '' $ac_executable_extensions; do
2507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508     ac_cv_prog_ac_ct_CC="gcc"
2509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2510     break 2
2511   fi
2512 done
2513   done
2514 IFS=$as_save_IFS
2515
2516 fi
2517 fi
2518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2519 if test -n "$ac_ct_CC"; then
2520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2521 $as_echo "$ac_ct_CC" >&6; }
2522 else
2523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2524 $as_echo "no" >&6; }
2525 fi
2526
2527   if test "x$ac_ct_CC" = x; then
2528     CC=""
2529   else
2530     case $cross_compiling:$ac_tool_warned in
2531 yes:)
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2534 ac_tool_warned=yes ;;
2535 esac
2536     CC=$ac_ct_CC
2537   fi
2538 else
2539   CC="$ac_cv_prog_CC"
2540 fi
2541
2542 if test -z "$CC"; then
2543           if test -n "$ac_tool_prefix"; then
2544     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2545 set dummy ${ac_tool_prefix}cc; ac_word=$2
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if ${ac_cv_prog_CC+:} false; then :
2549   $as_echo_n "(cached) " >&6
2550 else
2551   if test -n "$CC"; then
2552   ac_cv_prog_CC="$CC" # Let the user override the test.
2553 else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2556 do
2557   IFS=$as_save_IFS
2558   test -z "$as_dir" && as_dir=.
2559     for ac_exec_ext in '' $ac_executable_extensions; do
2560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2561     ac_cv_prog_CC="${ac_tool_prefix}cc"
2562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563     break 2
2564   fi
2565 done
2566   done
2567 IFS=$as_save_IFS
2568
2569 fi
2570 fi
2571 CC=$ac_cv_prog_CC
2572 if test -n "$CC"; then
2573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2574 $as_echo "$CC" >&6; }
2575 else
2576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577 $as_echo "no" >&6; }
2578 fi
2579
2580
2581   fi
2582 fi
2583 if test -z "$CC"; then
2584   # Extract the first word of "cc", so it can be a program name with args.
2585 set dummy cc; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if ${ac_cv_prog_CC+:} false; then :
2589   $as_echo_n "(cached) " >&6
2590 else
2591   if test -n "$CC"; then
2592   ac_cv_prog_CC="$CC" # Let the user override the test.
2593 else
2594   ac_prog_rejected=no
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598   IFS=$as_save_IFS
2599   test -z "$as_dir" && as_dir=.
2600     for ac_exec_ext in '' $ac_executable_extensions; do
2601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2603        ac_prog_rejected=yes
2604        continue
2605      fi
2606     ac_cv_prog_CC="cc"
2607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608     break 2
2609   fi
2610 done
2611   done
2612 IFS=$as_save_IFS
2613
2614 if test $ac_prog_rejected = yes; then
2615   # We found a bogon in the path, so make sure we never use it.
2616   set dummy $ac_cv_prog_CC
2617   shift
2618   if test $# != 0; then
2619     # We chose a different compiler from the bogus one.
2620     # However, it has the same basename, so the bogon will be chosen
2621     # first if we set CC to just the basename; use the full file name.
2622     shift
2623     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2624   fi
2625 fi
2626 fi
2627 fi
2628 CC=$ac_cv_prog_CC
2629 if test -n "$CC"; then
2630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2631 $as_echo "$CC" >&6; }
2632 else
2633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634 $as_echo "no" >&6; }
2635 fi
2636
2637
2638 fi
2639 if test -z "$CC"; then
2640   if test -n "$ac_tool_prefix"; then
2641   for ac_prog in cl.exe
2642   do
2643     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if ${ac_cv_prog_CC+:} false; then :
2648   $as_echo_n "(cached) " >&6
2649 else
2650   if test -n "$CC"; then
2651   ac_cv_prog_CC="$CC" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658     for ac_exec_ext in '' $ac_executable_extensions; do
2659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665   done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 CC=$ac_cv_prog_CC
2671 if test -n "$CC"; then
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2673 $as_echo "$CC" >&6; }
2674 else
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680     test -n "$CC" && break
2681   done
2682 fi
2683 if test -z "$CC"; then
2684   ac_ct_CC=$CC
2685   for ac_prog in cl.exe
2686 do
2687   # Extract the first word of "$ac_prog", so it can be a program name with args.
2688 set dummy $ac_prog; ac_word=$2
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2692   $as_echo_n "(cached) " >&6
2693 else
2694   if test -n "$ac_ct_CC"; then
2695   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700   IFS=$as_save_IFS
2701   test -z "$as_dir" && as_dir=.
2702     for ac_exec_ext in '' $ac_executable_extensions; do
2703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704     ac_cv_prog_ac_ct_CC="$ac_prog"
2705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706     break 2
2707   fi
2708 done
2709   done
2710 IFS=$as_save_IFS
2711
2712 fi
2713 fi
2714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2715 if test -n "$ac_ct_CC"; then
2716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2717 $as_echo "$ac_ct_CC" >&6; }
2718 else
2719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2721 fi
2722
2723
2724   test -n "$ac_ct_CC" && break
2725 done
2726
2727   if test "x$ac_ct_CC" = x; then
2728     CC=""
2729   else
2730     case $cross_compiling:$ac_tool_warned in
2731 yes:)
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734 ac_tool_warned=yes ;;
2735 esac
2736     CC=$ac_ct_CC
2737   fi
2738 fi
2739
2740 fi
2741
2742
2743 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745 as_fn_error $? "no acceptable C compiler found in \$PATH
2746 See \`config.log' for more details" "$LINENO" 5; }
2747
2748 # Provide some information about the compiler.
2749 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2750 set X $ac_compile
2751 ac_compiler=$2
2752 for ac_option in --version -v -V -qversion; do
2753   { { ac_try="$ac_compiler $ac_option >&5"
2754 case "(($ac_try" in
2755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756   *) ac_try_echo=$ac_try;;
2757 esac
2758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2759 $as_echo "$ac_try_echo"; } >&5
2760   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2761   ac_status=$?
2762   if test -s conftest.err; then
2763     sed '10a\
2764 ... rest of stderr output deleted ...
2765          10q' conftest.err >conftest.er1
2766     cat conftest.er1 >&5
2767   fi
2768   rm -f conftest.er1 conftest.err
2769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2770   test $ac_status = 0; }
2771 done
2772
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h.  */
2775
2776 int
2777 main ()
2778 {
2779
2780   ;
2781   return 0;
2782 }
2783 _ACEOF
2784 ac_clean_files_save=$ac_clean_files
2785 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2786 # Try to create an executable without -o first, disregard a.out.
2787 # It will help us diagnose broken compilers, and finding out an intuition
2788 # of exeext.
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2790 $as_echo_n "checking whether the C compiler works... " >&6; }
2791 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2792
2793 # The possible output files:
2794 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2795
2796 ac_rmfiles=
2797 for ac_file in $ac_files
2798 do
2799   case $ac_file in
2800     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2801     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2802   esac
2803 done
2804 rm -f $ac_rmfiles
2805
2806 if { { ac_try="$ac_link_default"
2807 case "(($ac_try" in
2808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809   *) ac_try_echo=$ac_try;;
2810 esac
2811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812 $as_echo "$ac_try_echo"; } >&5
2813   (eval "$ac_link_default") 2>&5
2814   ac_status=$?
2815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2816   test $ac_status = 0; }; then :
2817   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2818 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2819 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2820 # so that the user can short-circuit this test for compilers unknown to
2821 # Autoconf.
2822 for ac_file in $ac_files ''
2823 do
2824   test -f "$ac_file" || continue
2825   case $ac_file in
2826     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2827         ;;
2828     [ab].out )
2829         # We found the default executable, but exeext='' is most
2830         # certainly right.
2831         break;;
2832     *.* )
2833         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2834         then :; else
2835            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2836         fi
2837         # We set ac_cv_exeext here because the later test for it is not
2838         # safe: cross compilers may not add the suffix if given an `-o'
2839         # argument, so we may need to know it at that point already.
2840         # Even if this section looks crufty: it has the advantage of
2841         # actually working.
2842         break;;
2843     * )
2844         break;;
2845   esac
2846 done
2847 test "$ac_cv_exeext" = no && ac_cv_exeext=
2848
2849 else
2850   ac_file=''
2851 fi
2852 if test -z "$ac_file"; then :
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 $as_echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2860 as_fn_error 77 "C compiler cannot create executables
2861 See \`config.log' for more details" "$LINENO" 5; }
2862 else
2863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2864 $as_echo "yes" >&6; }
2865 fi
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2867 $as_echo_n "checking for C compiler default output file name... " >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2869 $as_echo "$ac_file" >&6; }
2870 ac_exeext=$ac_cv_exeext
2871
2872 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2873 ac_clean_files=$ac_clean_files_save
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2875 $as_echo_n "checking for suffix of executables... " >&6; }
2876 if { { ac_try="$ac_link"
2877 case "(($ac_try" in
2878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879   *) ac_try_echo=$ac_try;;
2880 esac
2881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2882 $as_echo "$ac_try_echo"; } >&5
2883   (eval "$ac_link") 2>&5
2884   ac_status=$?
2885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2886   test $ac_status = 0; }; then :
2887   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2889 # work properly (i.e., refer to `conftest.exe'), while it won't with
2890 # `rm'.
2891 for ac_file in conftest.exe conftest conftest.*; do
2892   test -f "$ac_file" || continue
2893   case $ac_file in
2894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2895     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2896           break;;
2897     * ) break;;
2898   esac
2899 done
2900 else
2901   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2903 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2904 See \`config.log' for more details" "$LINENO" 5; }
2905 fi
2906 rm -f conftest conftest$ac_cv_exeext
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2908 $as_echo "$ac_cv_exeext" >&6; }
2909
2910 rm -f conftest.$ac_ext
2911 EXEEXT=$ac_cv_exeext
2912 ac_exeext=$EXEEXT
2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2914 /* end confdefs.h.  */
2915 #include <stdio.h>
2916 int
2917 main ()
2918 {
2919 FILE *f = fopen ("conftest.out", "w");
2920  return ferror (f) || fclose (f) != 0;
2921
2922   ;
2923   return 0;
2924 }
2925 _ACEOF
2926 ac_clean_files="$ac_clean_files conftest.out"
2927 # Check that the compiler produces executables we can run.  If not, either
2928 # the compiler is broken, or we cross compile.
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2930 $as_echo_n "checking whether we are cross compiling... " >&6; }
2931 if test "$cross_compiling" != yes; then
2932   { { ac_try="$ac_link"
2933 case "(($ac_try" in
2934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935   *) ac_try_echo=$ac_try;;
2936 esac
2937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2938 $as_echo "$ac_try_echo"; } >&5
2939   (eval "$ac_link") 2>&5
2940   ac_status=$?
2941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942   test $ac_status = 0; }
2943   if { ac_try='./conftest$ac_cv_exeext'
2944   { { case "(($ac_try" in
2945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946   *) ac_try_echo=$ac_try;;
2947 esac
2948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949 $as_echo "$ac_try_echo"; } >&5
2950   (eval "$ac_try") 2>&5
2951   ac_status=$?
2952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953   test $ac_status = 0; }; }; then
2954     cross_compiling=no
2955   else
2956     if test "$cross_compiling" = maybe; then
2957         cross_compiling=yes
2958     else
2959         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2961 as_fn_error $? "cannot run C compiled programs.
2962 If you meant to cross compile, use \`--host'.
2963 See \`config.log' for more details" "$LINENO" 5; }
2964     fi
2965   fi
2966 fi
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2968 $as_echo "$cross_compiling" >&6; }
2969
2970 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2971 ac_clean_files=$ac_clean_files_save
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2973 $as_echo_n "checking for suffix of object files... " >&6; }
2974 if ${ac_cv_objext+:} false; then :
2975   $as_echo_n "(cached) " >&6
2976 else
2977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2978 /* end confdefs.h.  */
2979
2980 int
2981 main ()
2982 {
2983
2984   ;
2985   return 0;
2986 }
2987 _ACEOF
2988 rm -f conftest.o conftest.obj
2989 if { { ac_try="$ac_compile"
2990 case "(($ac_try" in
2991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992   *) ac_try_echo=$ac_try;;
2993 esac
2994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2995 $as_echo "$ac_try_echo"; } >&5
2996   (eval "$ac_compile") 2>&5
2997   ac_status=$?
2998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2999   test $ac_status = 0; }; then :
3000   for ac_file in conftest.o conftest.obj conftest.*; do
3001   test -f "$ac_file" || continue;
3002   case $ac_file in
3003     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3004     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3005        break;;
3006   esac
3007 done
3008 else
3009   $as_echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3011
3012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014 as_fn_error $? "cannot compute suffix of object files: cannot compile
3015 See \`config.log' for more details" "$LINENO" 5; }
3016 fi
3017 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3018 fi
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3020 $as_echo "$ac_cv_objext" >&6; }
3021 OBJEXT=$ac_cv_objext
3022 ac_objext=$OBJEXT
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3024 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3025 if ${ac_cv_c_compiler_gnu+:} false; then :
3026   $as_echo_n "(cached) " >&6
3027 else
3028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029 /* end confdefs.h.  */
3030
3031 int
3032 main ()
3033 {
3034 #ifndef __GNUC__
3035        choke me
3036 #endif
3037
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 if ac_fn_c_try_compile "$LINENO"; then :
3043   ac_compiler_gnu=yes
3044 else
3045   ac_compiler_gnu=no
3046 fi
3047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3049
3050 fi
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3052 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3053 if test $ac_compiler_gnu = yes; then
3054   GCC=yes
3055 else
3056   GCC=
3057 fi
3058 ac_test_CFLAGS=${CFLAGS+set}
3059 ac_save_CFLAGS=$CFLAGS
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3061 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3062 if ${ac_cv_prog_cc_g+:} false; then :
3063   $as_echo_n "(cached) " >&6
3064 else
3065   ac_save_c_werror_flag=$ac_c_werror_flag
3066    ac_c_werror_flag=yes
3067    ac_cv_prog_cc_g=no
3068    CFLAGS="-g"
3069    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070 /* end confdefs.h.  */
3071
3072 int
3073 main ()
3074 {
3075
3076   ;
3077   return 0;
3078 }
3079 _ACEOF
3080 if ac_fn_c_try_compile "$LINENO"; then :
3081   ac_cv_prog_cc_g=yes
3082 else
3083   CFLAGS=""
3084       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085 /* end confdefs.h.  */
3086
3087 int
3088 main ()
3089 {
3090
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 if ac_fn_c_try_compile "$LINENO"; then :
3096
3097 else
3098   ac_c_werror_flag=$ac_save_c_werror_flag
3099          CFLAGS="-g"
3100          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101 /* end confdefs.h.  */
3102
3103 int
3104 main ()
3105 {
3106
3107   ;
3108   return 0;
3109 }
3110 _ACEOF
3111 if ac_fn_c_try_compile "$LINENO"; then :
3112   ac_cv_prog_cc_g=yes
3113 fi
3114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115 fi
3116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117 fi
3118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119    ac_c_werror_flag=$ac_save_c_werror_flag
3120 fi
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3122 $as_echo "$ac_cv_prog_cc_g" >&6; }
3123 if test "$ac_test_CFLAGS" = set; then
3124   CFLAGS=$ac_save_CFLAGS
3125 elif test $ac_cv_prog_cc_g = yes; then
3126   if test "$GCC" = yes; then
3127     CFLAGS="-g -O2"
3128   else
3129     CFLAGS="-g"
3130   fi
3131 else
3132   if test "$GCC" = yes; then
3133     CFLAGS="-O2"
3134   else
3135     CFLAGS=
3136   fi
3137 fi
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3139 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3140 if ${ac_cv_prog_cc_c89+:} false; then :
3141   $as_echo_n "(cached) " >&6
3142 else
3143   ac_cv_prog_cc_c89=no
3144 ac_save_CC=$CC
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h.  */
3147 #include <stdarg.h>
3148 #include <stdio.h>
3149 struct stat;
3150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3151 struct buf { int x; };
3152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3153 static char *e (p, i)
3154      char **p;
3155      int i;
3156 {
3157   return p[i];
3158 }
3159 static char *f (char * (*g) (char **, int), char **p, ...)
3160 {
3161   char *s;
3162   va_list v;
3163   va_start (v,p);
3164   s = g (p, va_arg (v,int));
3165   va_end (v);
3166   return s;
3167 }
3168
3169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3170    function prototypes and stuff, but not '\xHH' hex character constants.
3171    These don't provoke an error unfortunately, instead are silently treated
3172    as 'x'.  The following induces an error, until -std is added to get
3173    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3174    array size at least.  It's necessary to write '\x00'==0 to get something
3175    that's true only with -std.  */
3176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3177
3178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3179    inside strings and character constants.  */
3180 #define FOO(x) 'x'
3181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3182
3183 int test (int i, double x);
3184 struct s1 {int (*f) (int a);};
3185 struct s2 {int (*f) (double a);};
3186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3187 int argc;
3188 char **argv;
3189 int
3190 main ()
3191 {
3192 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3198         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3199 do
3200   CC="$ac_save_CC $ac_arg"
3201   if ac_fn_c_try_compile "$LINENO"; then :
3202   ac_cv_prog_cc_c89=$ac_arg
3203 fi
3204 rm -f core conftest.err conftest.$ac_objext
3205   test "x$ac_cv_prog_cc_c89" != "xno" && break
3206 done
3207 rm -f conftest.$ac_ext
3208 CC=$ac_save_CC
3209
3210 fi
3211 # AC_CACHE_VAL
3212 case "x$ac_cv_prog_cc_c89" in
3213   x)
3214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3215 $as_echo "none needed" >&6; } ;;
3216   xno)
3217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3218 $as_echo "unsupported" >&6; } ;;
3219   *)
3220     CC="$CC $ac_cv_prog_cc_c89"
3221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3222 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3223 esac
3224 if test "x$ac_cv_prog_cc_c89" != xno; then :
3225
3226 fi
3227
3228 ac_ext=c
3229 ac_cpp='$CPP $CPPFLAGS'
3230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233
3234 ac_ext=c
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3240 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3241 if ${am_cv_prog_cc_c_o+:} false; then :
3242   $as_echo_n "(cached) " >&6
3243 else
3244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h.  */
3246
3247 int
3248 main ()
3249 {
3250
3251   ;
3252   return 0;
3253 }
3254 _ACEOF
3255   # Make sure it works both with $CC and with simple cc.
3256   # Following AC_PROG_CC_C_O, we do the test twice because some
3257   # compilers refuse to overwrite an existing .o file with -o,
3258   # though they will create one.
3259   am_cv_prog_cc_c_o=yes
3260   for am_i in 1 2; do
3261     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3262    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3263    ac_status=$?
3264    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265    (exit $ac_status); } \
3266          && test -f conftest2.$ac_objext; then
3267       : OK
3268     else
3269       am_cv_prog_cc_c_o=no
3270       break
3271     fi
3272   done
3273   rm -f core conftest*
3274   unset am_i
3275 fi
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3277 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3278 if test "$am_cv_prog_cc_c_o" != yes; then
3279    # Losing compiler, so override with the script.
3280    # FIXME: It is wrong to rewrite CC.
3281    # But if we don't then we get into trouble of one sort or another.
3282    # A longer-term fix would be to have automake use am__CC in this case,
3283    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3284    CC="$am_aux_dir/compile $CC"
3285 fi
3286 ac_ext=c
3287 ac_cpp='$CPP $CPPFLAGS'
3288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291
3292
3293
3294 ac_ext=c
3295 ac_cpp='$CPP $CPPFLAGS'
3296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3300 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3301 # On Suns, sometimes $CPP names a directory.
3302 if test -n "$CPP" && test -d "$CPP"; then
3303   CPP=
3304 fi
3305 if test -z "$CPP"; then
3306   if ${ac_cv_prog_CPP+:} false; then :
3307   $as_echo_n "(cached) " >&6
3308 else
3309       # Double quotes because CPP needs to be expanded
3310     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3311     do
3312       ac_preproc_ok=false
3313 for ac_c_preproc_warn_flag in '' yes
3314 do
3315   # Use a header file that comes with gcc, so configuring glibc
3316   # with a fresh cross-compiler works.
3317   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3318   # <limits.h> exists even on freestanding compilers.
3319   # On the NeXT, cc -E runs the code through the compiler's parser,
3320   # not just through cpp. "Syntax error" is here to catch this case.
3321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h.  */
3323 #ifdef __STDC__
3324 # include <limits.h>
3325 #else
3326 # include <assert.h>
3327 #endif
3328                      Syntax error
3329 _ACEOF
3330 if ac_fn_c_try_cpp "$LINENO"; then :
3331
3332 else
3333   # Broken: fails on valid input.
3334 continue
3335 fi
3336 rm -f conftest.err conftest.i conftest.$ac_ext
3337
3338   # OK, works on sane cases.  Now check whether nonexistent headers
3339   # can be detected and how.
3340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h.  */
3342 #include <ac_nonexistent.h>
3343 _ACEOF
3344 if ac_fn_c_try_cpp "$LINENO"; then :
3345   # Broken: success on invalid input.
3346 continue
3347 else
3348   # Passes both tests.
3349 ac_preproc_ok=:
3350 break
3351 fi
3352 rm -f conftest.err conftest.i conftest.$ac_ext
3353
3354 done
3355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3356 rm -f conftest.i conftest.err conftest.$ac_ext
3357 if $ac_preproc_ok; then :
3358   break
3359 fi
3360
3361     done
3362     ac_cv_prog_CPP=$CPP
3363
3364 fi
3365   CPP=$ac_cv_prog_CPP
3366 else
3367   ac_cv_prog_CPP=$CPP
3368 fi
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3370 $as_echo "$CPP" >&6; }
3371 ac_preproc_ok=false
3372 for ac_c_preproc_warn_flag in '' yes
3373 do
3374   # Use a header file that comes with gcc, so configuring glibc
3375   # with a fresh cross-compiler works.
3376   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377   # <limits.h> exists even on freestanding compilers.
3378   # On the NeXT, cc -E runs the code through the compiler's parser,
3379   # not just through cpp. "Syntax error" is here to catch this case.
3380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h.  */
3382 #ifdef __STDC__
3383 # include <limits.h>
3384 #else
3385 # include <assert.h>
3386 #endif
3387                      Syntax error
3388 _ACEOF
3389 if ac_fn_c_try_cpp "$LINENO"; then :
3390
3391 else
3392   # Broken: fails on valid input.
3393 continue
3394 fi
3395 rm -f conftest.err conftest.i conftest.$ac_ext
3396
3397   # OK, works on sane cases.  Now check whether nonexistent headers
3398   # can be detected and how.
3399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h.  */
3401 #include <ac_nonexistent.h>
3402 _ACEOF
3403 if ac_fn_c_try_cpp "$LINENO"; then :
3404   # Broken: success on invalid input.
3405 continue
3406 else
3407   # Passes both tests.
3408 ac_preproc_ok=:
3409 break
3410 fi
3411 rm -f conftest.err conftest.i conftest.$ac_ext
3412
3413 done
3414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3415 rm -f conftest.i conftest.err conftest.$ac_ext
3416 if $ac_preproc_ok; then :
3417
3418 else
3419   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3421 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3422 See \`config.log' for more details" "$LINENO" 5; }
3423 fi
3424
3425 ac_ext=c
3426 ac_cpp='$CPP $CPPFLAGS'
3427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430
3431
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3433 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3434 if ${ac_cv_path_GREP+:} false; then :
3435   $as_echo_n "(cached) " >&6
3436 else
3437   if test -z "$GREP"; then
3438   ac_path_GREP_found=false
3439   # Loop through the user's path and test for each of PROGNAME-LIST
3440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3442 do
3443   IFS=$as_save_IFS
3444   test -z "$as_dir" && as_dir=.
3445     for ac_prog in grep ggrep; do
3446     for ac_exec_ext in '' $ac_executable_extensions; do
3447       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3448       as_fn_executable_p "$ac_path_GREP" || continue
3449 # Check for GNU ac_path_GREP and select it if it is found.
3450   # Check for GNU $ac_path_GREP
3451 case `"$ac_path_GREP" --version 2>&1` in
3452 *GNU*)
3453   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3454 *)
3455   ac_count=0
3456   $as_echo_n 0123456789 >"conftest.in"
3457   while :
3458   do
3459     cat "conftest.in" "conftest.in" >"conftest.tmp"
3460     mv "conftest.tmp" "conftest.in"
3461     cp "conftest.in" "conftest.nl"
3462     $as_echo 'GREP' >> "conftest.nl"
3463     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3464     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3465     as_fn_arith $ac_count + 1 && ac_count=$as_val
3466     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3467       # Best one so far, save it but keep looking for a better one
3468       ac_cv_path_GREP="$ac_path_GREP"
3469       ac_path_GREP_max=$ac_count
3470     fi
3471     # 10*(2^10) chars as input seems more than enough
3472     test $ac_count -gt 10 && break
3473   done
3474   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3475 esac
3476
3477       $ac_path_GREP_found && break 3
3478     done
3479   done
3480   done
3481 IFS=$as_save_IFS
3482   if test -z "$ac_cv_path_GREP"; then
3483     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3484   fi
3485 else
3486   ac_cv_path_GREP=$GREP
3487 fi
3488
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3491 $as_echo "$ac_cv_path_GREP" >&6; }
3492  GREP="$ac_cv_path_GREP"
3493
3494
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3496 $as_echo_n "checking for egrep... " >&6; }
3497 if ${ac_cv_path_EGREP+:} false; then :
3498   $as_echo_n "(cached) " >&6
3499 else
3500   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3501    then ac_cv_path_EGREP="$GREP -E"
3502    else
3503      if test -z "$EGREP"; then
3504   ac_path_EGREP_found=false
3505   # Loop through the user's path and test for each of PROGNAME-LIST
3506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511     for ac_prog in egrep; do
3512     for ac_exec_ext in '' $ac_executable_extensions; do
3513       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3514       as_fn_executable_p "$ac_path_EGREP" || continue
3515 # Check for GNU ac_path_EGREP and select it if it is found.
3516   # Check for GNU $ac_path_EGREP
3517 case `"$ac_path_EGREP" --version 2>&1` in
3518 *GNU*)
3519   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3520 *)
3521   ac_count=0
3522   $as_echo_n 0123456789 >"conftest.in"
3523   while :
3524   do
3525     cat "conftest.in" "conftest.in" >"conftest.tmp"
3526     mv "conftest.tmp" "conftest.in"
3527     cp "conftest.in" "conftest.nl"
3528     $as_echo 'EGREP' >> "conftest.nl"
3529     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3530     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3531     as_fn_arith $ac_count + 1 && ac_count=$as_val
3532     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3533       # Best one so far, save it but keep looking for a better one
3534       ac_cv_path_EGREP="$ac_path_EGREP"
3535       ac_path_EGREP_max=$ac_count
3536     fi
3537     # 10*(2^10) chars as input seems more than enough
3538     test $ac_count -gt 10 && break
3539   done
3540   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3541 esac
3542
3543       $ac_path_EGREP_found && break 3
3544     done
3545   done
3546   done
3547 IFS=$as_save_IFS
3548   if test -z "$ac_cv_path_EGREP"; then
3549     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3550   fi
3551 else
3552   ac_cv_path_EGREP=$EGREP
3553 fi
3554
3555    fi
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3558 $as_echo "$ac_cv_path_EGREP" >&6; }
3559  EGREP="$ac_cv_path_EGREP"
3560
3561
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3563 $as_echo_n "checking for ANSI C header files... " >&6; }
3564 if ${ac_cv_header_stdc+:} false; then :
3565   $as_echo_n "(cached) " >&6
3566 else
3567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h.  */
3569 #include <stdlib.h>
3570 #include <stdarg.h>
3571 #include <string.h>
3572 #include <float.h>
3573
3574 int
3575 main ()
3576 {
3577
3578   ;
3579   return 0;
3580 }
3581 _ACEOF
3582 if ac_fn_c_try_compile "$LINENO"; then :
3583   ac_cv_header_stdc=yes
3584 else
3585   ac_cv_header_stdc=no
3586 fi
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588
3589 if test $ac_cv_header_stdc = yes; then
3590   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h.  */
3593 #include <string.h>
3594
3595 _ACEOF
3596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3597   $EGREP "memchr" >/dev/null 2>&1; then :
3598
3599 else
3600   ac_cv_header_stdc=no
3601 fi
3602 rm -f conftest*
3603
3604 fi
3605
3606 if test $ac_cv_header_stdc = yes; then
3607   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h.  */
3610 #include <stdlib.h>
3611
3612 _ACEOF
3613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3614   $EGREP "free" >/dev/null 2>&1; then :
3615
3616 else
3617   ac_cv_header_stdc=no
3618 fi
3619 rm -f conftest*
3620
3621 fi
3622
3623 if test $ac_cv_header_stdc = yes; then
3624   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3625   if test "$cross_compiling" = yes; then :
3626   :
3627 else
3628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h.  */
3630 #include <ctype.h>
3631 #include <stdlib.h>
3632 #if ((' ' & 0x0FF) == 0x020)
3633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3635 #else
3636 # define ISLOWER(c) \
3637                    (('a' <= (c) && (c) <= 'i') \
3638                      || ('j' <= (c) && (c) <= 'r') \
3639                      || ('s' <= (c) && (c) <= 'z'))
3640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3641 #endif
3642
3643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3644 int
3645 main ()
3646 {
3647   int i;
3648   for (i = 0; i < 256; i++)
3649     if (XOR (islower (i), ISLOWER (i))
3650         || toupper (i) != TOUPPER (i))
3651       return 2;
3652   return 0;
3653 }
3654 _ACEOF
3655 if ac_fn_c_try_run "$LINENO"; then :
3656
3657 else
3658   ac_cv_header_stdc=no
3659 fi
3660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3661   conftest.$ac_objext conftest.beam conftest.$ac_ext
3662 fi
3663
3664 fi
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3667 $as_echo "$ac_cv_header_stdc" >&6; }
3668 if test $ac_cv_header_stdc = yes; then
3669
3670 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3671
3672 fi
3673
3674 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3675 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3676                   inttypes.h stdint.h unistd.h
3677 do :
3678   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3679 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3680 "
3681 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3682   cat >>confdefs.h <<_ACEOF
3683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3684 _ACEOF
3685
3686 fi
3687
3688 done
3689
3690
3691
3692   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3693 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3694   MINIX=yes
3695 else
3696   MINIX=
3697 fi
3698
3699
3700   if test "$MINIX" = yes; then
3701
3702 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3703
3704
3705 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3706
3707
3708 $as_echo "#define _MINIX 1" >>confdefs.h
3709
3710   fi
3711
3712
3713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3714 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3715 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3716   $as_echo_n "(cached) " >&6
3717 else
3718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h.  */
3720
3721 #         define __EXTENSIONS__ 1
3722           $ac_includes_default
3723 int
3724 main ()
3725 {
3726
3727   ;
3728   return 0;
3729 }
3730 _ACEOF
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732   ac_cv_safe_to_define___extensions__=yes
3733 else
3734   ac_cv_safe_to_define___extensions__=no
3735 fi
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 fi
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3739 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3740   test $ac_cv_safe_to_define___extensions__ = yes &&
3741     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3742
3743   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3744
3745   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3746
3747   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3748
3749   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3750
3751
3752 am__api_version='1.14'
3753
3754 # Find a good install program.  We prefer a C program (faster),
3755 # so one script is as good as another.  But avoid the broken or
3756 # incompatible versions:
3757 # SysV /etc/install, /usr/sbin/install
3758 # SunOS /usr/etc/install
3759 # IRIX /sbin/install
3760 # AIX /bin/install
3761 # AmigaOS /C/install, which installs bootblocks on floppy discs
3762 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3763 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3764 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3765 # OS/2's system install, which has a completely different semantic
3766 # ./install, which can be erroneously created by make from ./install.sh.
3767 # Reject install programs that cannot install multiple files.
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3769 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3770 if test -z "$INSTALL"; then
3771 if ${ac_cv_path_install+:} false; then :
3772   $as_echo_n "(cached) " >&6
3773 else
3774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3776 do
3777   IFS=$as_save_IFS
3778   test -z "$as_dir" && as_dir=.
3779     # Account for people who put trailing slashes in PATH elements.
3780 case $as_dir/ in #((
3781   ./ | .// | /[cC]/* | \
3782   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3783   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3784   /usr/ucb/* ) ;;
3785   *)
3786     # OSF1 and SCO ODT 3.0 have their own names for install.
3787     # Don't use installbsd from OSF since it installs stuff as root
3788     # by default.
3789     for ac_prog in ginstall scoinst install; do
3790       for ac_exec_ext in '' $ac_executable_extensions; do
3791         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3792           if test $ac_prog = install &&
3793             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3794             # AIX install.  It has an incompatible calling convention.
3795             :
3796           elif test $ac_prog = install &&
3797             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3798             # program-specific install script used by HP pwplus--don't use.
3799             :
3800           else
3801             rm -rf conftest.one conftest.two conftest.dir
3802             echo one > conftest.one
3803             echo two > conftest.two
3804             mkdir conftest.dir
3805             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3806               test -s conftest.one && test -s conftest.two &&
3807               test -s conftest.dir/conftest.one &&
3808               test -s conftest.dir/conftest.two
3809             then
3810               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3811               break 3
3812             fi
3813           fi
3814         fi
3815       done
3816     done
3817     ;;
3818 esac
3819
3820   done
3821 IFS=$as_save_IFS
3822
3823 rm -rf conftest.one conftest.two conftest.dir
3824
3825 fi
3826   if test "${ac_cv_path_install+set}" = set; then
3827     INSTALL=$ac_cv_path_install
3828   else
3829     # As a last resort, use the slow shell script.  Don't cache a
3830     # value for INSTALL within a source directory, because that will
3831     # break other packages using the cache if that directory is
3832     # removed, or if the value is a relative name.
3833     INSTALL=$ac_install_sh
3834   fi
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3837 $as_echo "$INSTALL" >&6; }
3838
3839 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3840 # It thinks the first close brace ends the variable substitution.
3841 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3842
3843 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3844
3845 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3846
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3848 $as_echo_n "checking whether build environment is sane... " >&6; }
3849 # Reject unsafe characters in $srcdir or the absolute working directory
3850 # name.  Accept space and tab only in the latter.
3851 am_lf='
3852 '
3853 case `pwd` in
3854   *[\\\"\#\$\&\'\`$am_lf]*)
3855     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3856 esac
3857 case $srcdir in
3858   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3859     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3860 esac
3861
3862 # Do 'set' in a subshell so we don't clobber the current shell's
3863 # arguments.  Must try -L first in case configure is actually a
3864 # symlink; some systems play weird games with the mod time of symlinks
3865 # (eg FreeBSD returns the mod time of the symlink's containing
3866 # directory).
3867 if (
3868    am_has_slept=no
3869    for am_try in 1 2; do
3870      echo "timestamp, slept: $am_has_slept" > conftest.file
3871      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3872      if test "$*" = "X"; then
3873         # -L didn't work.
3874         set X `ls -t "$srcdir/configure" conftest.file`
3875      fi
3876      if test "$*" != "X $srcdir/configure conftest.file" \
3877         && test "$*" != "X conftest.file $srcdir/configure"; then
3878
3879         # If neither matched, then we have a broken ls.  This can happen
3880         # if, for instance, CONFIG_SHELL is bash and it inherits a
3881         # broken ls alias from the environment.  This has actually
3882         # happened.  Such a system could not be considered "sane".
3883         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3884   alias in your environment" "$LINENO" 5
3885      fi
3886      if test "$2" = conftest.file || test $am_try -eq 2; then
3887        break
3888      fi
3889      # Just in case.
3890      sleep 1
3891      am_has_slept=yes
3892    done
3893    test "$2" = conftest.file
3894    )
3895 then
3896    # Ok.
3897    :
3898 else
3899    as_fn_error $? "newly created file is older than distributed files!
3900 Check your system clock" "$LINENO" 5
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3903 $as_echo "yes" >&6; }
3904 # If we didn't sleep, we still need to ensure time stamps of config.status and
3905 # generated files are strictly newer.
3906 am_sleep_pid=
3907 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3908   ( sleep 1 ) &
3909   am_sleep_pid=$!
3910 fi
3911
3912 rm -f conftest.file
3913
3914 test "$program_prefix" != NONE &&
3915   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3916 # Use a double $ so make ignores it.
3917 test "$program_suffix" != NONE &&
3918   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3919 # Double any \ or $.
3920 # By default was `s,x,x', remove it if useless.
3921 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3922 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3923
3924 if test x"${MISSING+set}" != xset; then
3925   case $am_aux_dir in
3926   *\ * | *\     *)
3927     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3928   *)
3929     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3930   esac
3931 fi
3932 # Use eval to expand $SHELL
3933 if eval "$MISSING --is-lightweight"; then
3934   am_missing_run="$MISSING "
3935 else
3936   am_missing_run=
3937   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3938 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3939 fi
3940
3941 if test x"${install_sh}" != xset; then
3942   case $am_aux_dir in
3943   *\ * | *\     *)
3944     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3945   *)
3946     install_sh="\${SHELL} $am_aux_dir/install-sh"
3947   esac
3948 fi
3949
3950 # Installed binaries are usually stripped using 'strip' when the user
3951 # run "make install-strip".  However 'strip' might not be the right
3952 # tool to use in cross-compilation environments, therefore Automake
3953 # will honor the 'STRIP' environment variable to overrule this program.
3954 if test "$cross_compiling" != no; then
3955   if test -n "$ac_tool_prefix"; then
3956   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3957 set dummy ${ac_tool_prefix}strip; ac_word=$2
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959 $as_echo_n "checking for $ac_word... " >&6; }
3960 if ${ac_cv_prog_STRIP+:} false; then :
3961   $as_echo_n "(cached) " >&6
3962 else
3963   if test -n "$STRIP"; then
3964   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3965 else
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH
3968 do
3969   IFS=$as_save_IFS
3970   test -z "$as_dir" && as_dir=.
3971     for ac_exec_ext in '' $ac_executable_extensions; do
3972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975     break 2
3976   fi
3977 done
3978   done
3979 IFS=$as_save_IFS
3980
3981 fi
3982 fi
3983 STRIP=$ac_cv_prog_STRIP
3984 if test -n "$STRIP"; then
3985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3986 $as_echo "$STRIP" >&6; }
3987 else
3988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3990 fi
3991
3992
3993 fi
3994 if test -z "$ac_cv_prog_STRIP"; then
3995   ac_ct_STRIP=$STRIP
3996   # Extract the first word of "strip", so it can be a program name with args.
3997 set dummy strip; ac_word=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003   if test -n "$ac_ct_STRIP"; then
4004   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4005 else
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH
4008 do
4009   IFS=$as_save_IFS
4010   test -z "$as_dir" && as_dir=.
4011     for ac_exec_ext in '' $ac_executable_extensions; do
4012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013     ac_cv_prog_ac_ct_STRIP="strip"
4014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4015     break 2
4016   fi
4017 done
4018   done
4019 IFS=$as_save_IFS
4020
4021 fi
4022 fi
4023 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4024 if test -n "$ac_ct_STRIP"; then
4025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4026 $as_echo "$ac_ct_STRIP" >&6; }
4027 else
4028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4030 fi
4031
4032   if test "x$ac_ct_STRIP" = x; then
4033     STRIP=":"
4034   else
4035     case $cross_compiling:$ac_tool_warned in
4036 yes:)
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4039 ac_tool_warned=yes ;;
4040 esac
4041     STRIP=$ac_ct_STRIP
4042   fi
4043 else
4044   STRIP="$ac_cv_prog_STRIP"
4045 fi
4046
4047 fi
4048 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4049
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4051 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4052 if test -z "$MKDIR_P"; then
4053   if ${ac_cv_path_mkdir+:} false; then :
4054   $as_echo_n "(cached) " >&6
4055 else
4056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061     for ac_prog in mkdir gmkdir; do
4062          for ac_exec_ext in '' $ac_executable_extensions; do
4063            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4064            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4065              'mkdir (GNU coreutils) '* | \
4066              'mkdir (coreutils) '* | \
4067              'mkdir (fileutils) '4.1*)
4068                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4069                break 3;;
4070            esac
4071          done
4072        done
4073   done
4074 IFS=$as_save_IFS
4075
4076 fi
4077
4078   test -d ./--version && rmdir ./--version
4079   if test "${ac_cv_path_mkdir+set}" = set; then
4080     MKDIR_P="$ac_cv_path_mkdir -p"
4081   else
4082     # As a last resort, use the slow shell script.  Don't cache a
4083     # value for MKDIR_P within a source directory, because that will
4084     # break other packages using the cache if that directory is
4085     # removed, or if the value is a relative name.
4086     MKDIR_P="$ac_install_sh -d"
4087   fi
4088 fi
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4090 $as_echo "$MKDIR_P" >&6; }
4091
4092 for ac_prog in gawk mawk nawk awk
4093 do
4094   # Extract the first word of "$ac_prog", so it can be a program name with args.
4095 set dummy $ac_prog; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_AWK+:} false; then :
4099   $as_echo_n "(cached) " >&6
4100 else
4101   if test -n "$AWK"; then
4102   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107   IFS=$as_save_IFS
4108   test -z "$as_dir" && as_dir=.
4109     for ac_exec_ext in '' $ac_executable_extensions; do
4110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111     ac_cv_prog_AWK="$ac_prog"
4112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113     break 2
4114   fi
4115 done
4116   done
4117 IFS=$as_save_IFS
4118
4119 fi
4120 fi
4121 AWK=$ac_cv_prog_AWK
4122 if test -n "$AWK"; then
4123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4124 $as_echo "$AWK" >&6; }
4125 else
4126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4128 fi
4129
4130
4131   test -n "$AWK" && break
4132 done
4133
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4135 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4136 set x ${MAKE-make}
4137 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4138 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4139   $as_echo_n "(cached) " >&6
4140 else
4141   cat >conftest.make <<\_ACEOF
4142 SHELL = /bin/sh
4143 all:
4144         @echo '@@@%%%=$(MAKE)=@@@%%%'
4145 _ACEOF
4146 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4147 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4148   *@@@%%%=?*=@@@%%%*)
4149     eval ac_cv_prog_make_${ac_make}_set=yes;;
4150   *)
4151     eval ac_cv_prog_make_${ac_make}_set=no;;
4152 esac
4153 rm -f conftest.make
4154 fi
4155 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4157 $as_echo "yes" >&6; }
4158   SET_MAKE=
4159 else
4160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4162   SET_MAKE="MAKE=${MAKE-make}"
4163 fi
4164
4165 rm -rf .tst 2>/dev/null
4166 mkdir .tst 2>/dev/null
4167 if test -d .tst; then
4168   am__leading_dot=.
4169 else
4170   am__leading_dot=_
4171 fi
4172 rmdir .tst 2>/dev/null
4173
4174 DEPDIR="${am__leading_dot}deps"
4175
4176 ac_config_commands="$ac_config_commands depfiles"
4177
4178
4179 am_make=${MAKE-make}
4180 cat > confinc << 'END'
4181 am__doit:
4182         @echo this is the am__doit target
4183 .PHONY: am__doit
4184 END
4185 # If we don't find an include directive, just comment out the code.
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4187 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4188 am__include="#"
4189 am__quote=
4190 _am_result=none
4191 # First try GNU make style include.
4192 echo "include confinc" > confmf
4193 # Ignore all kinds of additional output from 'make'.
4194 case `$am_make -s -f confmf 2> /dev/null` in #(
4195 *the\ am__doit\ target*)
4196   am__include=include
4197   am__quote=
4198   _am_result=GNU
4199   ;;
4200 esac
4201 # Now try BSD make style include.
4202 if test "$am__include" = "#"; then
4203    echo '.include "confinc"' > confmf
4204    case `$am_make -s -f confmf 2> /dev/null` in #(
4205    *the\ am__doit\ target*)
4206      am__include=.include
4207      am__quote="\""
4208      _am_result=BSD
4209      ;;
4210    esac
4211 fi
4212
4213
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4215 $as_echo "$_am_result" >&6; }
4216 rm -f confinc confmf
4217
4218 # Check whether --enable-dependency-tracking was given.
4219 if test "${enable_dependency_tracking+set}" = set; then :
4220   enableval=$enable_dependency_tracking;
4221 fi
4222
4223 if test "x$enable_dependency_tracking" != xno; then
4224   am_depcomp="$ac_aux_dir/depcomp"
4225   AMDEPBACKSLASH='\'
4226   am__nodep='_no'
4227 fi
4228  if test "x$enable_dependency_tracking" != xno; then
4229   AMDEP_TRUE=
4230   AMDEP_FALSE='#'
4231 else
4232   AMDEP_TRUE='#'
4233   AMDEP_FALSE=
4234 fi
4235
4236
4237 # Check whether --enable-silent-rules was given.
4238 if test "${enable_silent_rules+set}" = set; then :
4239   enableval=$enable_silent_rules;
4240 fi
4241
4242 case $enable_silent_rules in # (((
4243   yes) AM_DEFAULT_VERBOSITY=0;;
4244    no) AM_DEFAULT_VERBOSITY=1;;
4245     *) AM_DEFAULT_VERBOSITY=1;;
4246 esac
4247 am_make=${MAKE-make}
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4249 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4250 if ${am_cv_make_support_nested_variables+:} false; then :
4251   $as_echo_n "(cached) " >&6
4252 else
4253   if $as_echo 'TRUE=$(BAR$(V))
4254 BAR0=false
4255 BAR1=true
4256 V=1
4257 am__doit:
4258         @$(TRUE)
4259 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4260   am_cv_make_support_nested_variables=yes
4261 else
4262   am_cv_make_support_nested_variables=no
4263 fi
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4266 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4267 if test $am_cv_make_support_nested_variables = yes; then
4268     AM_V='$(V)'
4269   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4270 else
4271   AM_V=$AM_DEFAULT_VERBOSITY
4272   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4273 fi
4274 AM_BACKSLASH='\'
4275
4276 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4277   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4278   # is not polluted with repeated "-I."
4279   am__isrc=' -I$(srcdir)'
4280   # test to see if srcdir already configured
4281   if test -f $srcdir/config.status; then
4282     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4283   fi
4284 fi
4285
4286 # test whether we have cygpath
4287 if test -z "$CYGPATH_W"; then
4288   if (cygpath --version) >/dev/null 2>/dev/null; then
4289     CYGPATH_W='cygpath -w'
4290   else
4291     CYGPATH_W=echo
4292   fi
4293 fi
4294
4295
4296 # Define the identity of the package.
4297  PACKAGE='mech_eap'
4298  VERSION='0.9.2'
4299
4300
4301 cat >>confdefs.h <<_ACEOF
4302 #define PACKAGE "$PACKAGE"
4303 _ACEOF
4304
4305
4306 cat >>confdefs.h <<_ACEOF
4307 #define VERSION "$VERSION"
4308 _ACEOF
4309
4310 # Some tools Automake needs.
4311
4312 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4313
4314
4315 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4316
4317
4318 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4319
4320
4321 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4322
4323
4324 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4325
4326 # For better backward compatibility.  To be removed once Automake 1.9.x
4327 # dies out for good.  For more background, see:
4328 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4329 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4330 mkdir_p='$(MKDIR_P)'
4331
4332 # We need awk for the "check" target.  The system "awk" is bad on
4333 # some platforms.
4334 # Always define AMTAR for backward compatibility.  Yes, it's still used
4335 # in the wild :-(  We should find a proper way to deprecate it ...
4336 AMTAR='$${TAR-tar}'
4337
4338
4339 # We'll loop over all known methods to create a tar archive until one works.
4340 _am_tools='gnutar  pax cpio none'
4341
4342 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4343
4344
4345
4346
4347
4348 depcc="$CC"   am_compiler_list=
4349
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4351 $as_echo_n "checking dependency style of $depcc... " >&6; }
4352 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4353   $as_echo_n "(cached) " >&6
4354 else
4355   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4356   # We make a subdir and do the tests there.  Otherwise we can end up
4357   # making bogus files that we don't know about and never remove.  For
4358   # instance it was reported that on HP-UX the gcc test will end up
4359   # making a dummy file named 'D' -- because '-MD' means "put the output
4360   # in D".
4361   rm -rf conftest.dir
4362   mkdir conftest.dir
4363   # Copy depcomp to subdir because otherwise we won't find it if we're
4364   # using a relative directory.
4365   cp "$am_depcomp" conftest.dir
4366   cd conftest.dir
4367   # We will build objects and dependencies in a subdirectory because
4368   # it helps to detect inapplicable dependency modes.  For instance
4369   # both Tru64's cc and ICC support -MD to output dependencies as a
4370   # side effect of compilation, but ICC will put the dependencies in
4371   # the current directory while Tru64 will put them in the object
4372   # directory.
4373   mkdir sub
4374
4375   am_cv_CC_dependencies_compiler_type=none
4376   if test "$am_compiler_list" = ""; then
4377      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4378   fi
4379   am__universal=false
4380   case " $depcc " in #(
4381      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4382      esac
4383
4384   for depmode in $am_compiler_list; do
4385     # Setup a source with many dependencies, because some compilers
4386     # like to wrap large dependency lists on column 80 (with \), and
4387     # we should not choose a depcomp mode which is confused by this.
4388     #
4389     # We need to recreate these files for each test, as the compiler may
4390     # overwrite some of them when testing with obscure command lines.
4391     # This happens at least with the AIX C compiler.
4392     : > sub/conftest.c
4393     for i in 1 2 3 4 5 6; do
4394       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4395       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4396       # Solaris 10 /bin/sh.
4397       echo '/* dummy */' > sub/conftst$i.h
4398     done
4399     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4400
4401     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4402     # mode.  It turns out that the SunPro C++ compiler does not properly
4403     # handle '-M -o', and we need to detect this.  Also, some Intel
4404     # versions had trouble with output in subdirs.
4405     am__obj=sub/conftest.${OBJEXT-o}
4406     am__minus_obj="-o $am__obj"
4407     case $depmode in
4408     gcc)
4409       # This depmode causes a compiler race in universal mode.
4410       test "$am__universal" = false || continue
4411       ;;
4412     nosideeffect)
4413       # After this tag, mechanisms are not by side-effect, so they'll
4414       # only be used when explicitly requested.
4415       if test "x$enable_dependency_tracking" = xyes; then
4416         continue
4417       else
4418         break
4419       fi
4420       ;;
4421     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4422       # This compiler won't grok '-c -o', but also, the minuso test has
4423       # not run yet.  These depmodes are late enough in the game, and
4424       # so weak that their functioning should not be impacted.
4425       am__obj=conftest.${OBJEXT-o}
4426       am__minus_obj=
4427       ;;
4428     none) break ;;
4429     esac
4430     if depmode=$depmode \
4431        source=sub/conftest.c object=$am__obj \
4432        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4433        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4434          >/dev/null 2>conftest.err &&
4435        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4436        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4437        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4438        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4439       # icc doesn't choke on unknown options, it will just issue warnings
4440       # or remarks (even with -Werror).  So we grep stderr for any message
4441       # that says an option was ignored or not supported.
4442       # When given -MP, icc 7.0 and 7.1 complain thusly:
4443       #   icc: Command line warning: ignoring option '-M'; no argument required
4444       # The diagnosis changed in icc 8.0:
4445       #   icc: Command line remark: option '-MP' not supported
4446       if (grep 'ignoring option' conftest.err ||
4447           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4448         am_cv_CC_dependencies_compiler_type=$depmode
4449         break
4450       fi
4451     fi
4452   done
4453
4454   cd ..
4455   rm -rf conftest.dir
4456 else
4457   am_cv_CC_dependencies_compiler_type=none
4458 fi
4459
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4462 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4463 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4464
4465  if
4466   test "x$enable_dependency_tracking" != xno \
4467   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4468   am__fastdepCC_TRUE=
4469   am__fastdepCC_FALSE='#'
4470 else
4471   am__fastdepCC_TRUE='#'
4472   am__fastdepCC_FALSE=
4473 fi
4474
4475
4476
4477 # POSIX will say in a future version that running "rm -f" with no argument
4478 # is OK; and we want to be able to make that assumption in our Makefile
4479 # recipes.  So use an aggressive probe to check that the usage we want is
4480 # actually supported "in the wild" to an acceptable degree.
4481 # See automake bug#10828.
4482 # To make any issue more visible, cause the running configure to be aborted
4483 # by default if the 'rm' program in use doesn't match our expectations; the
4484 # user can still override this though.
4485 if rm -f && rm -fr && rm -rf; then : OK; else
4486   cat >&2 <<'END'
4487 Oops!
4488
4489 Your 'rm' program seems unable to run without file operands specified
4490 on the command line, even when the '-f' option is present.  This is contrary
4491 to the behaviour of most rm programs out there, and not conforming with
4492 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4493
4494 Please tell bug-automake@gnu.org about your system, including the value
4495 of your $PATH and any error possibly output before this message.  This
4496 can help us improve future automake versions.
4497
4498 END
4499   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4500     echo 'Configuration will proceed anyway, since you have set the' >&2
4501     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4502     echo >&2
4503   else
4504     cat >&2 <<'END'
4505 Aborting the configuration process, to ensure you take notice of the issue.
4506
4507 You can download and install GNU coreutils to get an 'rm' implementation
4508 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4509
4510 If you want to complete the configuration process using your problematic
4511 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4512 to "yes", and re-run configure.
4513
4514 END
4515     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4516   fi
4517 fi
4518
4519 if test "x$CC" != xcc; then
4520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4521 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4522 else
4523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4524 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4525 fi
4526 set dummy $CC; ac_cc=`$as_echo "$2" |
4527                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4528 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4529   $as_echo_n "(cached) " >&6
4530 else
4531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h.  */
4533
4534 int
4535 main ()
4536 {
4537
4538   ;
4539   return 0;
4540 }
4541 _ACEOF
4542 # Make sure it works both with $CC and with simple cc.
4543 # We do the test twice because some compilers refuse to overwrite an
4544 # existing .o file with -o, though they will create one.
4545 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4546 rm -f conftest2.*
4547 if { { case "(($ac_try" in
4548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549   *) ac_try_echo=$ac_try;;
4550 esac
4551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4552 $as_echo "$ac_try_echo"; } >&5
4553   (eval "$ac_try") 2>&5
4554   ac_status=$?
4555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4556   test $ac_status = 0; } &&
4557    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559   *) ac_try_echo=$ac_try;;
4560 esac
4561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4562 $as_echo "$ac_try_echo"; } >&5
4563   (eval "$ac_try") 2>&5
4564   ac_status=$?
4565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4566   test $ac_status = 0; };
4567 then
4568   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4569   if test "x$CC" != xcc; then
4570     # Test first that cc exists at all.
4571     if { ac_try='cc -c conftest.$ac_ext >&5'
4572   { { case "(($ac_try" in
4573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574   *) ac_try_echo=$ac_try;;
4575 esac
4576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4577 $as_echo "$ac_try_echo"; } >&5
4578   (eval "$ac_try") 2>&5
4579   ac_status=$?
4580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4581   test $ac_status = 0; }; }; then
4582       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4583       rm -f conftest2.*
4584       if { { case "(($ac_try" in
4585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586   *) ac_try_echo=$ac_try;;
4587 esac
4588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4589 $as_echo "$ac_try_echo"; } >&5
4590   (eval "$ac_try") 2>&5
4591   ac_status=$?
4592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4593   test $ac_status = 0; } &&
4594          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596   *) ac_try_echo=$ac_try;;
4597 esac
4598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4599 $as_echo "$ac_try_echo"; } >&5
4600   (eval "$ac_try") 2>&5
4601   ac_status=$?
4602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4603   test $ac_status = 0; };
4604       then
4605         # cc works too.
4606         :
4607       else
4608         # cc exists but doesn't like -o.
4609         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4610       fi
4611     fi
4612   fi
4613 else
4614   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4615 fi
4616 rm -f core conftest*
4617
4618 fi
4619 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4621 $as_echo "yes" >&6; }
4622 else
4623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4625
4626 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4627
4628 fi
4629
4630 # FIXME: we rely on the cache variable name because
4631 # there is no other way.
4632 set dummy $CC
4633 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4634 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4635 if test "$am_t" != yes; then
4636    # Losing compiler, so override with the script.
4637    # FIXME: It is wrong to rewrite CC.
4638    # But if we don't then we get into trouble of one sort or another.
4639    # A longer-term fix would be to have automake use am__CC in this case,
4640    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4641    CC="$am_aux_dir/compile $CC"
4642 fi
4643
4644
4645
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4647 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4648     # Check whether --enable-maintainer-mode was given.
4649 if test "${enable_maintainer_mode+set}" = set; then :
4650   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4651 else
4652   USE_MAINTAINER_MODE=no
4653 fi
4654
4655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4656 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4657    if test $USE_MAINTAINER_MODE = yes; then
4658   MAINTAINER_MODE_TRUE=
4659   MAINTAINER_MODE_FALSE='#'
4660 else
4661   MAINTAINER_MODE_TRUE='#'
4662   MAINTAINER_MODE_FALSE=
4663 fi
4664
4665   MAINT=$MAINTAINER_MODE_TRUE
4666
4667
4668
4669 case `pwd` in
4670   *\ * | *\     *)
4671     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4672 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4673 esac
4674
4675
4676
4677 macro_version='2.4.2'
4678 macro_revision='1.3337'
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692 ltmain="$ac_aux_dir/ltmain.sh"
4693
4694 # Make sure we can run config.sub.
4695 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4696   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4697
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4699 $as_echo_n "checking build system type... " >&6; }
4700 if ${ac_cv_build+:} false; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703   ac_build_alias=$build_alias
4704 test "x$ac_build_alias" = x &&
4705   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4706 test "x$ac_build_alias" = x &&
4707   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4708 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4709   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4710
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4713 $as_echo "$ac_cv_build" >&6; }
4714 case $ac_cv_build in
4715 *-*-*) ;;
4716 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4717 esac
4718 build=$ac_cv_build
4719 ac_save_IFS=$IFS; IFS='-'
4720 set x $ac_cv_build
4721 shift
4722 build_cpu=$1
4723 build_vendor=$2
4724 shift; shift
4725 # Remember, the first character of IFS is used to create $*,
4726 # except with old shells:
4727 build_os=$*
4728 IFS=$ac_save_IFS
4729 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4730
4731
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4733 $as_echo_n "checking host system type... " >&6; }
4734 if ${ac_cv_host+:} false; then :
4735   $as_echo_n "(cached) " >&6
4736 else
4737   if test "x$host_alias" = x; then
4738   ac_cv_host=$ac_cv_build
4739 else
4740   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4741     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4742 fi
4743
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4746 $as_echo "$ac_cv_host" >&6; }
4747 case $ac_cv_host in
4748 *-*-*) ;;
4749 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4750 esac
4751 host=$ac_cv_host
4752 ac_save_IFS=$IFS; IFS='-'
4753 set x $ac_cv_host
4754 shift
4755 host_cpu=$1
4756 host_vendor=$2
4757 shift; shift
4758 # Remember, the first character of IFS is used to create $*,
4759 # except with old shells:
4760 host_os=$*
4761 IFS=$ac_save_IFS
4762 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4763
4764
4765 # Backslashify metacharacters that are still active within
4766 # double-quoted strings.
4767 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4768
4769 # Same as above, but do not quote variable references.
4770 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4771
4772 # Sed substitution to delay expansion of an escaped shell variable in a
4773 # double_quote_subst'ed string.
4774 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4775
4776 # Sed substitution to delay expansion of an escaped single quote.
4777 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4778
4779 # Sed substitution to avoid accidental globbing in evaled expressions
4780 no_glob_subst='s/\*/\\\*/g'
4781
4782 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4783 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4784 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4785
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4787 $as_echo_n "checking how to print strings... " >&6; }
4788 # Test print first, because it will be a builtin if present.
4789 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4790    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4791   ECHO='print -r --'
4792 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4793   ECHO='printf %s\n'
4794 else
4795   # Use this function as a fallback that always works.
4796   func_fallback_echo ()
4797   {
4798     eval 'cat <<_LTECHO_EOF
4799 $1
4800 _LTECHO_EOF'
4801   }
4802   ECHO='func_fallback_echo'
4803 fi
4804
4805 # func_echo_all arg...
4806 # Invoke $ECHO with all args, space-separated.
4807 func_echo_all ()
4808 {
4809     $ECHO ""
4810 }
4811
4812 case "$ECHO" in
4813   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4814 $as_echo "printf" >&6; } ;;
4815   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4816 $as_echo "print -r" >&6; } ;;
4817   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4818 $as_echo "cat" >&6; } ;;
4819 esac
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4835 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4836 if ${ac_cv_path_SED+:} false; then :
4837   $as_echo_n "(cached) " >&6
4838 else
4839             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4840      for ac_i in 1 2 3 4 5 6 7; do
4841        ac_script="$ac_script$as_nl$ac_script"
4842      done
4843      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4844      { ac_script=; unset ac_script;}
4845      if test -z "$SED"; then
4846   ac_path_SED_found=false
4847   # Loop through the user's path and test for each of PROGNAME-LIST
4848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4850 do
4851   IFS=$as_save_IFS
4852   test -z "$as_dir" && as_dir=.
4853     for ac_prog in sed gsed; do
4854     for ac_exec_ext in '' $ac_executable_extensions; do
4855       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4856       as_fn_executable_p "$ac_path_SED" || continue
4857 # Check for GNU ac_path_SED and select it if it is found.
4858   # Check for GNU $ac_path_SED
4859 case `"$ac_path_SED" --version 2>&1` in
4860 *GNU*)
4861   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4862 *)
4863   ac_count=0
4864   $as_echo_n 0123456789 >"conftest.in"
4865   while :
4866   do
4867     cat "conftest.in" "conftest.in" >"conftest.tmp"
4868     mv "conftest.tmp" "conftest.in"
4869     cp "conftest.in" "conftest.nl"
4870     $as_echo '' >> "conftest.nl"
4871     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4872     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4873     as_fn_arith $ac_count + 1 && ac_count=$as_val
4874     if test $ac_count -gt ${ac_path_SED_max-0}; then
4875       # Best one so far, save it but keep looking for a better one
4876       ac_cv_path_SED="$ac_path_SED"
4877       ac_path_SED_max=$ac_count
4878     fi
4879     # 10*(2^10) chars as input seems more than enough
4880     test $ac_count -gt 10 && break
4881   done
4882   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4883 esac
4884
4885       $ac_path_SED_found && break 3
4886     done
4887   done
4888   done
4889 IFS=$as_save_IFS
4890   if test -z "$ac_cv_path_SED"; then
4891     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4892   fi
4893 else
4894   ac_cv_path_SED=$SED
4895 fi
4896
4897 fi
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4899 $as_echo "$ac_cv_path_SED" >&6; }
4900  SED="$ac_cv_path_SED"
4901   rm -f conftest.sed
4902
4903 test -z "$SED" && SED=sed
4904 Xsed="$SED -e 1s/^X//"
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4917 $as_echo_n "checking for fgrep... " >&6; }
4918 if ${ac_cv_path_FGREP+:} false; then :
4919   $as_echo_n "(cached) " >&6
4920 else
4921   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4922    then ac_cv_path_FGREP="$GREP -F"
4923    else
4924      if test -z "$FGREP"; then
4925   ac_path_FGREP_found=false
4926   # Loop through the user's path and test for each of PROGNAME-LIST
4927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4929 do
4930   IFS=$as_save_IFS
4931   test -z "$as_dir" && as_dir=.
4932     for ac_prog in fgrep; do
4933     for ac_exec_ext in '' $ac_executable_extensions; do
4934       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4935       as_fn_executable_p "$ac_path_FGREP" || continue
4936 # Check for GNU ac_path_FGREP and select it if it is found.
4937   # Check for GNU $ac_path_FGREP
4938 case `"$ac_path_FGREP" --version 2>&1` in
4939 *GNU*)
4940   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4941 *)
4942   ac_count=0
4943   $as_echo_n 0123456789 >"conftest.in"
4944   while :
4945   do
4946     cat "conftest.in" "conftest.in" >"conftest.tmp"
4947     mv "conftest.tmp" "conftest.in"
4948     cp "conftest.in" "conftest.nl"
4949     $as_echo 'FGREP' >> "conftest.nl"
4950     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4951     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4952     as_fn_arith $ac_count + 1 && ac_count=$as_val
4953     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4954       # Best one so far, save it but keep looking for a better one
4955       ac_cv_path_FGREP="$ac_path_FGREP"
4956       ac_path_FGREP_max=$ac_count
4957     fi
4958     # 10*(2^10) chars as input seems more than enough
4959     test $ac_count -gt 10 && break
4960   done
4961   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4962 esac
4963
4964       $ac_path_FGREP_found && break 3
4965     done
4966   done
4967   done
4968 IFS=$as_save_IFS
4969   if test -z "$ac_cv_path_FGREP"; then
4970     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4971   fi
4972 else
4973   ac_cv_path_FGREP=$FGREP
4974 fi
4975
4976    fi
4977 fi
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4979 $as_echo "$ac_cv_path_FGREP" >&6; }
4980  FGREP="$ac_cv_path_FGREP"
4981
4982
4983 test -z "$GREP" && GREP=grep
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003 # Check whether --with-gnu-ld was given.
5004 if test "${with_gnu_ld+set}" = set; then :
5005   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5006 else
5007   with_gnu_ld=no
5008 fi
5009
5010 ac_prog=ld
5011 if test "$GCC" = yes; then
5012   # Check if gcc -print-prog-name=ld gives a path.
5013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5014 $as_echo_n "checking for ld used by $CC... " >&6; }
5015   case $host in
5016   *-*-mingw*)
5017     # gcc leaves a trailing carriage return which upsets mingw
5018     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5019   *)
5020     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5021   esac
5022   case $ac_prog in
5023     # Accept absolute paths.
5024     [\\/]* | ?:[\\/]*)
5025       re_direlt='/[^/][^/]*/\.\./'
5026       # Canonicalize the pathname of ld
5027       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5028       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5029         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5030       done
5031       test -z "$LD" && LD="$ac_prog"
5032       ;;
5033   "")
5034     # If it fails, then pretend we aren't using GCC.
5035     ac_prog=ld
5036     ;;
5037   *)
5038     # If it is relative, then search for the first ld in PATH.
5039     with_gnu_ld=unknown
5040     ;;
5041   esac
5042 elif test "$with_gnu_ld" = yes; then
5043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5044 $as_echo_n "checking for GNU ld... " >&6; }
5045 else
5046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5047 $as_echo_n "checking for non-GNU ld... " >&6; }
5048 fi
5049 if ${lt_cv_path_LD+:} false; then :
5050   $as_echo_n "(cached) " >&6
5051 else
5052   if test -z "$LD"; then
5053   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5054   for ac_dir in $PATH; do
5055     IFS="$lt_save_ifs"
5056     test -z "$ac_dir" && ac_dir=.
5057     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5058       lt_cv_path_LD="$ac_dir/$ac_prog"
5059       # Check to see if the program is GNU ld.  I'd rather use --version,
5060       # but apparently some variants of GNU ld only accept -v.
5061       # Break only if it was the GNU/non-GNU ld that we prefer.
5062       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5063       *GNU* | *'with BFD'*)
5064         test "$with_gnu_ld" != no && break
5065         ;;
5066       *)
5067         test "$with_gnu_ld" != yes && break
5068         ;;
5069       esac
5070     fi
5071   done
5072   IFS="$lt_save_ifs"
5073 else
5074   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5075 fi
5076 fi
5077
5078 LD="$lt_cv_path_LD"
5079 if test -n "$LD"; then
5080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5081 $as_echo "$LD" >&6; }
5082 else
5083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5085 fi
5086 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5088 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5089 if ${lt_cv_prog_gnu_ld+:} false; then :
5090   $as_echo_n "(cached) " >&6
5091 else
5092   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5093 case `$LD -v 2>&1 </dev/null` in
5094 *GNU* | *'with BFD'*)
5095   lt_cv_prog_gnu_ld=yes
5096   ;;
5097 *)
5098   lt_cv_prog_gnu_ld=no
5099   ;;
5100 esac
5101 fi
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5103 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5104 with_gnu_ld=$lt_cv_prog_gnu_ld
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5115 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5116 if ${lt_cv_path_NM+:} false; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   if test -n "$NM"; then
5120   # Let the user override the test.
5121   lt_cv_path_NM="$NM"
5122 else
5123   lt_nm_to_check="${ac_tool_prefix}nm"
5124   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5125     lt_nm_to_check="$lt_nm_to_check nm"
5126   fi
5127   for lt_tmp_nm in $lt_nm_to_check; do
5128     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5129     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5130       IFS="$lt_save_ifs"
5131       test -z "$ac_dir" && ac_dir=.
5132       tmp_nm="$ac_dir/$lt_tmp_nm"
5133       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5134         # Check to see if the nm accepts a BSD-compat flag.
5135         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5136         #   nm: unknown option "B" ignored
5137         # Tru64's nm complains that /dev/null is an invalid object file
5138         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5139         */dev/null* | *'Invalid file or object type'*)
5140           lt_cv_path_NM="$tmp_nm -B"
5141           break
5142           ;;
5143         *)
5144           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5145           */dev/null*)
5146             lt_cv_path_NM="$tmp_nm -p"
5147             break
5148             ;;
5149           *)
5150             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5151             continue # so that we can try to find one that supports BSD flags
5152             ;;
5153           esac
5154           ;;
5155         esac
5156       fi
5157     done
5158     IFS="$lt_save_ifs"
5159   done
5160   : ${lt_cv_path_NM=no}
5161 fi
5162 fi
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5164 $as_echo "$lt_cv_path_NM" >&6; }
5165 if test "$lt_cv_path_NM" != "no"; then
5166   NM="$lt_cv_path_NM"
5167 else
5168   # Didn't find any BSD compatible name lister, look for dumpbin.
5169   if test -n "$DUMPBIN"; then :
5170     # Let the user override the test.
5171   else
5172     if test -n "$ac_tool_prefix"; then
5173   for ac_prog in dumpbin "link -dump"
5174   do
5175     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_DUMPBIN+:} false; then :
5180   $as_echo_n "(cached) " >&6
5181 else
5182   if test -n "$DUMPBIN"; then
5183   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188   IFS=$as_save_IFS
5189   test -z "$as_dir" && as_dir=.
5190     for ac_exec_ext in '' $ac_executable_extensions; do
5191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194     break 2
5195   fi
5196 done
5197   done
5198 IFS=$as_save_IFS
5199
5200 fi
5201 fi
5202 DUMPBIN=$ac_cv_prog_DUMPBIN
5203 if test -n "$DUMPBIN"; then
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5205 $as_echo "$DUMPBIN" >&6; }
5206 else
5207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5209 fi
5210
5211
5212     test -n "$DUMPBIN" && break
5213   done
5214 fi
5215 if test -z "$DUMPBIN"; then
5216   ac_ct_DUMPBIN=$DUMPBIN
5217   for ac_prog in dumpbin "link -dump"
5218 do
5219   # Extract the first word of "$ac_prog", so it can be a program name with args.
5220 set dummy $ac_prog; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5224   $as_echo_n "(cached) " >&6
5225 else
5226   if test -n "$ac_ct_DUMPBIN"; then
5227   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232   IFS=$as_save_IFS
5233   test -z "$as_dir" && as_dir=.
5234     for ac_exec_ext in '' $ac_executable_extensions; do
5235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238     break 2
5239   fi
5240 done
5241   done
5242 IFS=$as_save_IFS
5243
5244 fi
5245 fi
5246 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5247 if test -n "$ac_ct_DUMPBIN"; then
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5249 $as_echo "$ac_ct_DUMPBIN" >&6; }
5250 else
5251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5253 fi
5254
5255
5256   test -n "$ac_ct_DUMPBIN" && break
5257 done
5258
5259   if test "x$ac_ct_DUMPBIN" = x; then
5260     DUMPBIN=":"
5261   else
5262     case $cross_compiling:$ac_tool_warned in
5263 yes:)
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5266 ac_tool_warned=yes ;;
5267 esac
5268     DUMPBIN=$ac_ct_DUMPBIN
5269   fi
5270 fi
5271
5272     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5273     *COFF*)
5274       DUMPBIN="$DUMPBIN -symbols"
5275       ;;
5276     *)
5277       DUMPBIN=:
5278       ;;
5279     esac
5280   fi
5281
5282   if test "$DUMPBIN" != ":"; then
5283     NM="$DUMPBIN"
5284   fi
5285 fi
5286 test -z "$NM" && NM=nm
5287
5288
5289
5290
5291
5292
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5294 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5295 if ${lt_cv_nm_interface+:} false; then :
5296   $as_echo_n "(cached) " >&6
5297 else
5298   lt_cv_nm_interface="BSD nm"
5299   echo "int some_variable = 0;" > conftest.$ac_ext
5300   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5301   (eval "$ac_compile" 2>conftest.err)
5302   cat conftest.err >&5
5303   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5304   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5305   cat conftest.err >&5
5306   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5307   cat conftest.out >&5
5308   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5309     lt_cv_nm_interface="MS dumpbin"
5310   fi
5311   rm -f conftest*
5312 fi
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5314 $as_echo "$lt_cv_nm_interface" >&6; }
5315
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5317 $as_echo_n "checking whether ln -s works... " >&6; }
5318 LN_S=$as_ln_s
5319 if test "$LN_S" = "ln -s"; then
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5321 $as_echo "yes" >&6; }
5322 else
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5324 $as_echo "no, using $LN_S" >&6; }
5325 fi
5326
5327 # find the maximum length of command line arguments
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5329 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5330 if ${lt_cv_sys_max_cmd_len+:} false; then :
5331   $as_echo_n "(cached) " >&6
5332 else
5333     i=0
5334   teststring="ABCD"
5335
5336   case $build_os in
5337   msdosdjgpp*)
5338     # On DJGPP, this test can blow up pretty badly due to problems in libc
5339     # (any single argument exceeding 2000 bytes causes a buffer overrun
5340     # during glob expansion).  Even if it were fixed, the result of this
5341     # check would be larger than it should be.
5342     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5343     ;;
5344
5345   gnu*)
5346     # Under GNU Hurd, this test is not required because there is
5347     # no limit to the length of command line arguments.
5348     # Libtool will interpret -1 as no limit whatsoever
5349     lt_cv_sys_max_cmd_len=-1;
5350     ;;
5351
5352   cygwin* | mingw* | cegcc*)
5353     # On Win9x/ME, this test blows up -- it succeeds, but takes
5354     # about 5 minutes as the teststring grows exponentially.
5355     # Worse, since 9x/ME are not pre-emptively multitasking,
5356     # you end up with a "frozen" computer, even though with patience
5357     # the test eventually succeeds (with a max line length of 256k).
5358     # Instead, let's just punt: use the minimum linelength reported by
5359     # all of the supported platforms: 8192 (on NT/2K/XP).
5360     lt_cv_sys_max_cmd_len=8192;
5361     ;;
5362
5363   mint*)
5364     # On MiNT this can take a long time and run out of memory.
5365     lt_cv_sys_max_cmd_len=8192;
5366     ;;
5367
5368   amigaos*)
5369     # On AmigaOS with pdksh, this test takes hours, literally.
5370     # So we just punt and use a minimum line length of 8192.
5371     lt_cv_sys_max_cmd_len=8192;
5372     ;;
5373
5374   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5375     # This has been around since 386BSD, at least.  Likely further.
5376     if test -x /sbin/sysctl; then
5377       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5378     elif test -x /usr/sbin/sysctl; then
5379       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5380     else
5381       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5382     fi
5383     # And add a safety zone
5384     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5385     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5386     ;;
5387
5388   interix*)
5389     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5390     lt_cv_sys_max_cmd_len=196608
5391     ;;
5392
5393   os2*)
5394     # The test takes a long time on OS/2.
5395     lt_cv_sys_max_cmd_len=8192
5396     ;;
5397
5398   osf*)
5399     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5400     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5401     # nice to cause kernel panics so lets avoid the loop below.
5402     # First set a reasonable default.
5403     lt_cv_sys_max_cmd_len=16384
5404     #
5405     if test -x /sbin/sysconfig; then
5406       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5407         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5408       esac
5409     fi
5410     ;;
5411   sco3.2v5*)
5412     lt_cv_sys_max_cmd_len=102400
5413     ;;
5414   sysv5* | sco5v6* | sysv4.2uw2*)
5415     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5416     if test -n "$kargmax"; then
5417       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5418     else
5419       lt_cv_sys_max_cmd_len=32768
5420     fi
5421     ;;
5422   *)
5423     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5424     if test -n "$lt_cv_sys_max_cmd_len" && \
5425         test undefined != "$lt_cv_sys_max_cmd_len"; then
5426       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5427       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5428     else
5429       # Make teststring a little bigger before we do anything with it.
5430       # a 1K string should be a reasonable start.
5431       for i in 1 2 3 4 5 6 7 8 ; do
5432         teststring=$teststring$teststring
5433       done
5434       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5435       # If test is not a shell built-in, we'll probably end up computing a
5436       # maximum length that is only half of the actual maximum length, but
5437       # we can't tell.
5438       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5439                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5440               test $i != 17 # 1/2 MB should be enough
5441       do
5442         i=`expr $i + 1`
5443         teststring=$teststring$teststring
5444       done
5445       # Only check the string length outside the loop.
5446       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5447       teststring=
5448       # Add a significant safety factor because C++ compilers can tack on
5449       # massive amounts of additional arguments before passing them to the
5450       # linker.  It appears as though 1/2 is a usable value.
5451       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5452     fi
5453     ;;
5454   esac
5455
5456 fi
5457
5458 if test -n $lt_cv_sys_max_cmd_len ; then
5459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5460 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5461 else
5462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5463 $as_echo "none" >&6; }
5464 fi
5465 max_cmd_len=$lt_cv_sys_max_cmd_len
5466
5467
5468
5469
5470
5471
5472 : ${CP="cp -f"}
5473 : ${MV="mv -f"}
5474 : ${RM="rm -f"}
5475
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5477 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5478 # Try some XSI features
5479 xsi_shell=no
5480 ( _lt_dummy="a/b/c"
5481   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5482       = c,a/b,b/c, \
5483     && eval 'test $(( 1 + 1 )) -eq 2 \
5484     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5485   && xsi_shell=yes
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5487 $as_echo "$xsi_shell" >&6; }
5488
5489
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5491 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5492 lt_shell_append=no
5493 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5494     >/dev/null 2>&1 \
5495   && lt_shell_append=yes
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5497 $as_echo "$lt_shell_append" >&6; }
5498
5499
5500 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5501   lt_unset=unset
5502 else
5503   lt_unset=false
5504 fi
5505
5506
5507
5508
5509
5510 # test EBCDIC or ASCII
5511 case `echo X|tr X '\101'` in
5512  A) # ASCII based system
5513     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5514   lt_SP2NL='tr \040 \012'
5515   lt_NL2SP='tr \015\012 \040\040'
5516   ;;
5517  *) # EBCDIC based system
5518   lt_SP2NL='tr \100 \n'
5519   lt_NL2SP='tr \r\n \100\100'
5520   ;;
5521 esac
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5532 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5533 if ${lt_cv_to_host_file_cmd+:} false; then :
5534   $as_echo_n "(cached) " >&6
5535 else
5536   case $host in
5537   *-*-mingw* )
5538     case $build in
5539       *-*-mingw* ) # actually msys
5540         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5541         ;;
5542       *-*-cygwin* )
5543         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5544         ;;
5545       * ) # otherwise, assume *nix
5546         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5547         ;;
5548     esac
5549     ;;
5550   *-*-cygwin* )
5551     case $build in
5552       *-*-mingw* ) # actually msys
5553         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5554         ;;
5555       *-*-cygwin* )
5556         lt_cv_to_host_file_cmd=func_convert_file_noop
5557         ;;
5558       * ) # otherwise, assume *nix
5559         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5560         ;;
5561     esac
5562     ;;
5563   * ) # unhandled hosts (and "normal" native builds)
5564     lt_cv_to_host_file_cmd=func_convert_file_noop
5565     ;;
5566 esac
5567
5568 fi
5569
5570 to_host_file_cmd=$lt_cv_to_host_file_cmd
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5572 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5573
5574
5575
5576
5577
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5579 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5580 if ${lt_cv_to_tool_file_cmd+:} false; then :
5581   $as_echo_n "(cached) " >&6
5582 else
5583   #assume ordinary cross tools, or native build.
5584 lt_cv_to_tool_file_cmd=func_convert_file_noop
5585 case $host in
5586   *-*-mingw* )
5587     case $build in
5588       *-*-mingw* ) # actually msys
5589         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5590         ;;
5591     esac
5592     ;;
5593 esac
5594
5595 fi
5596
5597 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5599 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5600
5601
5602
5603
5604
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5606 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5607 if ${lt_cv_ld_reload_flag+:} false; then :
5608   $as_echo_n "(cached) " >&6
5609 else
5610   lt_cv_ld_reload_flag='-r'
5611 fi
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5613 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5614 reload_flag=$lt_cv_ld_reload_flag
5615 case $reload_flag in
5616 "" | " "*) ;;
5617 *) reload_flag=" $reload_flag" ;;
5618 esac
5619 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5620 case $host_os in
5621   cygwin* | mingw* | pw32* | cegcc*)
5622     if test "$GCC" != yes; then
5623       reload_cmds=false
5624     fi
5625     ;;
5626   darwin*)
5627     if test "$GCC" = yes; then
5628       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5629     else
5630       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5631     fi
5632     ;;
5633 esac
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643 if test -n "$ac_tool_prefix"; then
5644   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5645 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_prog_OBJDUMP+:} false; then :
5649   $as_echo_n "(cached) " >&6
5650 else
5651   if test -n "$OBJDUMP"; then
5652   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5656 do
5657   IFS=$as_save_IFS
5658   test -z "$as_dir" && as_dir=.
5659     for ac_exec_ext in '' $ac_executable_extensions; do
5660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663     break 2
5664   fi
5665 done
5666   done
5667 IFS=$as_save_IFS
5668
5669 fi
5670 fi
5671 OBJDUMP=$ac_cv_prog_OBJDUMP
5672 if test -n "$OBJDUMP"; then
5673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5674 $as_echo "$OBJDUMP" >&6; }
5675 else
5676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5678 fi
5679
5680
5681 fi
5682 if test -z "$ac_cv_prog_OBJDUMP"; then
5683   ac_ct_OBJDUMP=$OBJDUMP
5684   # Extract the first word of "objdump", so it can be a program name with args.
5685 set dummy objdump; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5689   $as_echo_n "(cached) " >&6
5690 else
5691   if test -n "$ac_ct_OBJDUMP"; then
5692   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5696 do
5697   IFS=$as_save_IFS
5698   test -z "$as_dir" && as_dir=.
5699     for ac_exec_ext in '' $ac_executable_extensions; do
5700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703     break 2
5704   fi
5705 done
5706   done
5707 IFS=$as_save_IFS
5708
5709 fi
5710 fi
5711 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5712 if test -n "$ac_ct_OBJDUMP"; then
5713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5714 $as_echo "$ac_ct_OBJDUMP" >&6; }
5715 else
5716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5718 fi
5719
5720   if test "x$ac_ct_OBJDUMP" = x; then
5721     OBJDUMP="false"
5722   else
5723     case $cross_compiling:$ac_tool_warned in
5724 yes:)
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5727 ac_tool_warned=yes ;;
5728 esac
5729     OBJDUMP=$ac_ct_OBJDUMP
5730   fi
5731 else
5732   OBJDUMP="$ac_cv_prog_OBJDUMP"
5733 fi
5734
5735 test -z "$OBJDUMP" && OBJDUMP=objdump
5736
5737
5738
5739
5740
5741
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5743 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5744 if ${lt_cv_deplibs_check_method+:} false; then :
5745   $as_echo_n "(cached) " >&6
5746 else
5747   lt_cv_file_magic_cmd='$MAGIC_CMD'
5748 lt_cv_file_magic_test_file=
5749 lt_cv_deplibs_check_method='unknown'
5750 # Need to set the preceding variable on all platforms that support
5751 # interlibrary dependencies.
5752 # 'none' -- dependencies not supported.
5753 # `unknown' -- same as none, but documents that we really don't know.
5754 # 'pass_all' -- all dependencies passed with no checks.
5755 # 'test_compile' -- check by making test program.
5756 # 'file_magic [[regex]]' -- check by looking for files in library path
5757 # which responds to the $file_magic_cmd with a given extended regex.
5758 # If you have `file' or equivalent on your system and you're not sure
5759 # whether `pass_all' will *always* work, you probably want this one.
5760
5761 case $host_os in
5762 aix[4-9]*)
5763   lt_cv_deplibs_check_method=pass_all
5764   ;;
5765
5766 beos*)
5767   lt_cv_deplibs_check_method=pass_all
5768   ;;
5769
5770 bsdi[45]*)
5771   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5772   lt_cv_file_magic_cmd='/usr/bin/file -L'
5773   lt_cv_file_magic_test_file=/shlib/libc.so
5774   ;;
5775
5776 cygwin*)
5777   # func_win32_libid is a shell function defined in ltmain.sh
5778   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5779   lt_cv_file_magic_cmd='func_win32_libid'
5780   ;;
5781
5782 mingw* | pw32*)
5783   # Base MSYS/MinGW do not provide the 'file' command needed by
5784   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5785   # unless we find 'file', for example because we are cross-compiling.
5786   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5787   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5788     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5789     lt_cv_file_magic_cmd='func_win32_libid'
5790   else
5791     # Keep this pattern in sync with the one in func_win32_libid.
5792     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5793     lt_cv_file_magic_cmd='$OBJDUMP -f'
5794   fi
5795   ;;
5796
5797 cegcc*)
5798   # use the weaker test based on 'objdump'. See mingw*.
5799   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5800   lt_cv_file_magic_cmd='$OBJDUMP -f'
5801   ;;
5802
5803 darwin* | rhapsody*)
5804   lt_cv_deplibs_check_method=pass_all
5805   ;;
5806
5807 freebsd* | dragonfly*)
5808   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5809     case $host_cpu in
5810     i*86 )
5811       # Not sure whether the presence of OpenBSD here was a mistake.
5812       # Let's accept both of them until this is cleared up.
5813       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5814       lt_cv_file_magic_cmd=/usr/bin/file
5815       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5816       ;;
5817     esac
5818   else
5819     lt_cv_deplibs_check_method=pass_all
5820   fi
5821   ;;
5822
5823 haiku*)
5824   lt_cv_deplibs_check_method=pass_all
5825   ;;
5826
5827 hpux10.20* | hpux11*)
5828   lt_cv_file_magic_cmd=/usr/bin/file
5829   case $host_cpu in
5830   ia64*)
5831     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5832     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5833     ;;
5834   hppa*64*)
5835     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5836     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5837     ;;
5838   *)
5839     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5840     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5841     ;;
5842   esac
5843   ;;
5844
5845 interix[3-9]*)
5846   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5847   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5848   ;;
5849
5850 irix5* | irix6* | nonstopux*)
5851   case $LD in
5852   *-32|*"-32 ") libmagic=32-bit;;
5853   *-n32|*"-n32 ") libmagic=N32;;
5854   *-64|*"-64 ") libmagic=64-bit;;
5855   *) libmagic=never-match;;
5856   esac
5857   lt_cv_deplibs_check_method=pass_all
5858   ;;
5859
5860 # This must be glibc/ELF.
5861 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5862   lt_cv_deplibs_check_method=pass_all
5863   ;;
5864
5865 netbsd* | netbsdelf*-gnu)
5866   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5867     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5868   else
5869     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5870   fi
5871   ;;
5872
5873 newos6*)
5874   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5875   lt_cv_file_magic_cmd=/usr/bin/file
5876   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5877   ;;
5878
5879 *nto* | *qnx*)
5880   lt_cv_deplibs_check_method=pass_all
5881   ;;
5882
5883 openbsd*)
5884   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5885     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5886   else
5887     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5888   fi
5889   ;;
5890
5891 osf3* | osf4* | osf5*)
5892   lt_cv_deplibs_check_method=pass_all
5893   ;;
5894
5895 rdos*)
5896   lt_cv_deplibs_check_method=pass_all
5897   ;;
5898
5899 solaris*)
5900   lt_cv_deplibs_check_method=pass_all
5901   ;;
5902
5903 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5904   lt_cv_deplibs_check_method=pass_all
5905   ;;
5906
5907 sysv4 | sysv4.3*)
5908   case $host_vendor in
5909   motorola)
5910     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]'
5911     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5912     ;;
5913   ncr)
5914     lt_cv_deplibs_check_method=pass_all
5915     ;;
5916   sequent)
5917     lt_cv_file_magic_cmd='/bin/file'
5918     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5919     ;;
5920   sni)
5921     lt_cv_file_magic_cmd='/bin/file'
5922     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5923     lt_cv_file_magic_test_file=/lib/libc.so
5924     ;;
5925   siemens)
5926     lt_cv_deplibs_check_method=pass_all
5927     ;;
5928   pc)
5929     lt_cv_deplibs_check_method=pass_all
5930     ;;
5931   esac
5932   ;;
5933
5934 tpf*)
5935   lt_cv_deplibs_check_method=pass_all
5936   ;;
5937 esac
5938
5939 fi
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5941 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5942
5943 file_magic_glob=
5944 want_nocaseglob=no
5945 if test "$build" = "$host"; then
5946   case $host_os in
5947   mingw* | pw32*)
5948     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5949       want_nocaseglob=yes
5950     else
5951       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5952     fi
5953     ;;
5954   esac
5955 fi
5956
5957 file_magic_cmd=$lt_cv_file_magic_cmd
5958 deplibs_check_method=$lt_cv_deplibs_check_method
5959 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982 if test -n "$ac_tool_prefix"; then
5983   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5984 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if ${ac_cv_prog_DLLTOOL+:} false; then :
5988   $as_echo_n "(cached) " >&6
5989 else
5990   if test -n "$DLLTOOL"; then
5991   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
5996   IFS=$as_save_IFS
5997   test -z "$as_dir" && as_dir=.
5998     for ac_exec_ext in '' $ac_executable_extensions; do
5999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002     break 2
6003   fi
6004 done
6005   done
6006 IFS=$as_save_IFS
6007
6008 fi
6009 fi
6010 DLLTOOL=$ac_cv_prog_DLLTOOL
6011 if test -n "$DLLTOOL"; then
6012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6013 $as_echo "$DLLTOOL" >&6; }
6014 else
6015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6017 fi
6018
6019
6020 fi
6021 if test -z "$ac_cv_prog_DLLTOOL"; then
6022   ac_ct_DLLTOOL=$DLLTOOL
6023   # Extract the first word of "dlltool", so it can be a program name with args.
6024 set dummy dlltool; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6028   $as_echo_n "(cached) " >&6
6029 else
6030   if test -n "$ac_ct_DLLTOOL"; then
6031   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036   IFS=$as_save_IFS
6037   test -z "$as_dir" && as_dir=.
6038     for ac_exec_ext in '' $ac_executable_extensions; do
6039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042     break 2
6043   fi
6044 done
6045   done
6046 IFS=$as_save_IFS
6047
6048 fi
6049 fi
6050 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6051 if test -n "$ac_ct_DLLTOOL"; then
6052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6053 $as_echo "$ac_ct_DLLTOOL" >&6; }
6054 else
6055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6057 fi
6058
6059   if test "x$ac_ct_DLLTOOL" = x; then
6060     DLLTOOL="false"
6061   else
6062     case $cross_compiling:$ac_tool_warned in
6063 yes:)
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6066 ac_tool_warned=yes ;;
6067 esac
6068     DLLTOOL=$ac_ct_DLLTOOL
6069   fi
6070 else
6071   DLLTOOL="$ac_cv_prog_DLLTOOL"
6072 fi
6073
6074 test -z "$DLLTOOL" && DLLTOOL=dlltool
6075
6076
6077
6078
6079
6080
6081
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6083 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6084 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6085   $as_echo_n "(cached) " >&6
6086 else
6087   lt_cv_sharedlib_from_linklib_cmd='unknown'
6088
6089 case $host_os in
6090 cygwin* | mingw* | pw32* | cegcc*)
6091   # two different shell functions defined in ltmain.sh
6092   # decide which to use based on capabilities of $DLLTOOL
6093   case `$DLLTOOL --help 2>&1` in
6094   *--identify-strict*)
6095     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6096     ;;
6097   *)
6098     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6099     ;;
6100   esac
6101   ;;
6102 *)
6103   # fallback: assume linklib IS sharedlib
6104   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6105   ;;
6106 esac
6107
6108 fi
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6110 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6111 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6112 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6113
6114
6115
6116
6117
6118
6119
6120 if test -n "$ac_tool_prefix"; then
6121   for ac_prog in ar
6122   do
6123     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 $as_echo_n "checking for $ac_word... " >&6; }
6127 if ${ac_cv_prog_AR+:} false; then :
6128   $as_echo_n "(cached) " >&6
6129 else
6130   if test -n "$AR"; then
6131   ac_cv_prog_AR="$AR" # Let the user override the test.
6132 else
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6135 do
6136   IFS=$as_save_IFS
6137   test -z "$as_dir" && as_dir=.
6138     for ac_exec_ext in '' $ac_executable_extensions; do
6139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6140     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142     break 2
6143   fi
6144 done
6145   done
6146 IFS=$as_save_IFS
6147
6148 fi
6149 fi
6150 AR=$ac_cv_prog_AR
6151 if test -n "$AR"; then
6152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6153 $as_echo "$AR" >&6; }
6154 else
6155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156 $as_echo "no" >&6; }
6157 fi
6158
6159
6160     test -n "$AR" && break
6161   done
6162 fi
6163 if test -z "$AR"; then
6164   ac_ct_AR=$AR
6165   for ac_prog in ar
6166 do
6167   # Extract the first word of "$ac_prog", so it can be a program name with args.
6168 set dummy $ac_prog; ac_word=$2
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6172   $as_echo_n "(cached) " >&6
6173 else
6174   if test -n "$ac_ct_AR"; then
6175   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180   IFS=$as_save_IFS
6181   test -z "$as_dir" && as_dir=.
6182     for ac_exec_ext in '' $ac_executable_extensions; do
6183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6184     ac_cv_prog_ac_ct_AR="$ac_prog"
6185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186     break 2
6187   fi
6188 done
6189   done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6195 if test -n "$ac_ct_AR"; then
6196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6197 $as_echo "$ac_ct_AR" >&6; }
6198 else
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 $as_echo "no" >&6; }
6201 fi
6202
6203
6204   test -n "$ac_ct_AR" && break
6205 done
6206
6207   if test "x$ac_ct_AR" = x; then
6208     AR="false"
6209   else
6210     case $cross_compiling:$ac_tool_warned in
6211 yes:)
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6214 ac_tool_warned=yes ;;
6215 esac
6216     AR=$ac_ct_AR
6217   fi
6218 fi
6219
6220 : ${AR=ar}
6221 : ${AR_FLAGS=cru}
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6234 $as_echo_n "checking for archiver @FILE support... " >&6; }
6235 if ${lt_cv_ar_at_file+:} false; then :
6236   $as_echo_n "(cached) " >&6
6237 else
6238   lt_cv_ar_at_file=no
6239    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h.  */
6241
6242 int
6243 main ()
6244 {
6245
6246   ;
6247   return 0;
6248 }
6249 _ACEOF
6250 if ac_fn_c_try_compile "$LINENO"; then :
6251   echo conftest.$ac_objext > conftest.lst
6252       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6253       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6254   (eval $lt_ar_try) 2>&5
6255   ac_status=$?
6256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6257   test $ac_status = 0; }
6258       if test "$ac_status" -eq 0; then
6259         # Ensure the archiver fails upon bogus file names.
6260         rm -f conftest.$ac_objext libconftest.a
6261         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6262   (eval $lt_ar_try) 2>&5
6263   ac_status=$?
6264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6265   test $ac_status = 0; }
6266         if test "$ac_status" -ne 0; then
6267           lt_cv_ar_at_file=@
6268         fi
6269       fi
6270       rm -f conftest.* libconftest.a
6271
6272 fi
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6274
6275 fi
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6277 $as_echo "$lt_cv_ar_at_file" >&6; }
6278
6279 if test "x$lt_cv_ar_at_file" = xno; then
6280   archiver_list_spec=
6281 else
6282   archiver_list_spec=$lt_cv_ar_at_file
6283 fi
6284
6285
6286
6287
6288
6289
6290
6291 if test -n "$ac_tool_prefix"; then
6292   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6293 set dummy ${ac_tool_prefix}strip; ac_word=$2
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if ${ac_cv_prog_STRIP+:} false; then :
6297   $as_echo_n "(cached) " >&6
6298 else
6299   if test -n "$STRIP"; then
6300   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6301 else
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6304 do
6305   IFS=$as_save_IFS
6306   test -z "$as_dir" && as_dir=.
6307     for ac_exec_ext in '' $ac_executable_extensions; do
6308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6309     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311     break 2
6312   fi
6313 done
6314   done
6315 IFS=$as_save_IFS
6316
6317 fi
6318 fi
6319 STRIP=$ac_cv_prog_STRIP
6320 if test -n "$STRIP"; then
6321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6322 $as_echo "$STRIP" >&6; }
6323 else
6324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6326 fi
6327
6328
6329 fi
6330 if test -z "$ac_cv_prog_STRIP"; then
6331   ac_ct_STRIP=$STRIP
6332   # Extract the first word of "strip", so it can be a program name with args.
6333 set dummy strip; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6337   $as_echo_n "(cached) " >&6
6338 else
6339   if test -n "$ac_ct_STRIP"; then
6340   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345   IFS=$as_save_IFS
6346   test -z "$as_dir" && as_dir=.
6347     for ac_exec_ext in '' $ac_executable_extensions; do
6348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349     ac_cv_prog_ac_ct_STRIP="strip"
6350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351     break 2
6352   fi
6353 done
6354   done
6355 IFS=$as_save_IFS
6356
6357 fi
6358 fi
6359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6360 if test -n "$ac_ct_STRIP"; then
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6362 $as_echo "$ac_ct_STRIP" >&6; }
6363 else
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6366 fi
6367
6368   if test "x$ac_ct_STRIP" = x; then
6369     STRIP=":"
6370   else
6371     case $cross_compiling:$ac_tool_warned in
6372 yes:)
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375 ac_tool_warned=yes ;;
6376 esac
6377     STRIP=$ac_ct_STRIP
6378   fi
6379 else
6380   STRIP="$ac_cv_prog_STRIP"
6381 fi
6382
6383 test -z "$STRIP" && STRIP=:
6384
6385
6386
6387
6388
6389
6390 if test -n "$ac_tool_prefix"; then
6391   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6392 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if ${ac_cv_prog_RANLIB+:} false; then :
6396   $as_echo_n "(cached) " >&6
6397 else
6398   if test -n "$RANLIB"; then
6399   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404   IFS=$as_save_IFS
6405   test -z "$as_dir" && as_dir=.
6406     for ac_exec_ext in '' $ac_executable_extensions; do
6407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410     break 2
6411   fi
6412 done
6413   done
6414 IFS=$as_save_IFS
6415
6416 fi
6417 fi
6418 RANLIB=$ac_cv_prog_RANLIB
6419 if test -n "$RANLIB"; then
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6421 $as_echo "$RANLIB" >&6; }
6422 else
6423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6425 fi
6426
6427
6428 fi
6429 if test -z "$ac_cv_prog_RANLIB"; then
6430   ac_ct_RANLIB=$RANLIB
6431   # Extract the first word of "ranlib", so it can be a program name with args.
6432 set dummy ranlib; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6436   $as_echo_n "(cached) " >&6
6437 else
6438   if test -n "$ac_ct_RANLIB"; then
6439   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444   IFS=$as_save_IFS
6445   test -z "$as_dir" && as_dir=.
6446     for ac_exec_ext in '' $ac_executable_extensions; do
6447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448     ac_cv_prog_ac_ct_RANLIB="ranlib"
6449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450     break 2
6451   fi
6452 done
6453   done
6454 IFS=$as_save_IFS
6455
6456 fi
6457 fi
6458 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6459 if test -n "$ac_ct_RANLIB"; then
6460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6461 $as_echo "$ac_ct_RANLIB" >&6; }
6462 else
6463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6465 fi
6466
6467   if test "x$ac_ct_RANLIB" = x; then
6468     RANLIB=":"
6469   else
6470     case $cross_compiling:$ac_tool_warned in
6471 yes:)
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6474 ac_tool_warned=yes ;;
6475 esac
6476     RANLIB=$ac_ct_RANLIB
6477   fi
6478 else
6479   RANLIB="$ac_cv_prog_RANLIB"
6480 fi
6481
6482 test -z "$RANLIB" && RANLIB=:
6483
6484
6485
6486
6487
6488
6489 # Determine commands to create old-style static archives.
6490 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6491 old_postinstall_cmds='chmod 644 $oldlib'
6492 old_postuninstall_cmds=
6493
6494 if test -n "$RANLIB"; then
6495   case $host_os in
6496   openbsd*)
6497     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6498     ;;
6499   *)
6500     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6501     ;;
6502   esac
6503   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6504 fi
6505
6506 case $host_os in
6507   darwin*)
6508     lock_old_archive_extraction=yes ;;
6509   *)
6510     lock_old_archive_extraction=no ;;
6511 esac
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551 # If no C compiler was specified, use CC.
6552 LTCC=${LTCC-"$CC"}
6553
6554 # If no C compiler flags were specified, use CFLAGS.
6555 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6556
6557 # Allow CC to be a program name with arguments.
6558 compiler=$CC
6559
6560
6561 # Check for command to grab the raw symbol name followed by C symbol from nm.
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6563 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6564 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6565   $as_echo_n "(cached) " >&6
6566 else
6567
6568 # These are sane defaults that work on at least a few old systems.
6569 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6570
6571 # Character class describing NM global symbol codes.
6572 symcode='[BCDEGRST]'
6573
6574 # Regexp to match symbols that can be accessed directly from C.
6575 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6576
6577 # Define system-specific variables.
6578 case $host_os in
6579 aix*)
6580   symcode='[BCDT]'
6581   ;;
6582 cygwin* | mingw* | pw32* | cegcc*)
6583   symcode='[ABCDGISTW]'
6584   ;;
6585 hpux*)
6586   if test "$host_cpu" = ia64; then
6587     symcode='[ABCDEGRST]'
6588   fi
6589   ;;
6590 irix* | nonstopux*)
6591   symcode='[BCDEGRST]'
6592   ;;
6593 osf*)
6594   symcode='[BCDEGQRST]'
6595   ;;
6596 solaris*)
6597   symcode='[BDRT]'
6598   ;;
6599 sco3.2v5*)
6600   symcode='[DT]'
6601   ;;
6602 sysv4.2uw2*)
6603   symcode='[DT]'
6604   ;;
6605 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6606   symcode='[ABDT]'
6607   ;;
6608 sysv4)
6609   symcode='[DFNSTU]'
6610   ;;
6611 esac
6612
6613 # If we're using GNU nm, then use its standard symbol codes.
6614 case `$NM -V 2>&1` in
6615 *GNU* | *'with BFD'*)
6616   symcode='[ABCDGIRSTW]' ;;
6617 esac
6618
6619 # Transform an extracted symbol line into a proper C declaration.
6620 # Some systems (esp. on ia64) link data and code symbols differently,
6621 # so use this general approach.
6622 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6623
6624 # Transform an extracted symbol line into symbol name and symbol address
6625 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6626 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'"
6627
6628 # Handle CRLF in mingw tool chain
6629 opt_cr=
6630 case $build_os in
6631 mingw*)
6632   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6633   ;;
6634 esac
6635
6636 # Try without a prefix underscore, then with it.
6637 for ac_symprfx in "" "_"; do
6638
6639   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6640   symxfrm="\\1 $ac_symprfx\\2 \\2"
6641
6642   # Write the raw and C identifiers.
6643   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6644     # Fake it for dumpbin and say T for any non-static function
6645     # and D for any global variable.
6646     # Also find C++ and __fastcall symbols from MSVC++,
6647     # which start with @ or ?.
6648     lt_cv_sys_global_symbol_pipe="$AWK '"\
6649 "     {last_section=section; section=\$ 3};"\
6650 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6651 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6652 "     \$ 0!~/External *\|/{next};"\
6653 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6654 "     {if(hide[section]) next};"\
6655 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6656 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6657 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6658 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6659 "     ' prfx=^$ac_symprfx"
6660   else
6661     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6662   fi
6663   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6664
6665   # Check to see that the pipe works correctly.
6666   pipe_works=no
6667
6668   rm -f conftest*
6669   cat > conftest.$ac_ext <<_LT_EOF
6670 #ifdef __cplusplus
6671 extern "C" {
6672 #endif
6673 char nm_test_var;
6674 void nm_test_func(void);
6675 void nm_test_func(void){}
6676 #ifdef __cplusplus
6677 }
6678 #endif
6679 int main(){nm_test_var='a';nm_test_func();return(0);}
6680 _LT_EOF
6681
6682   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6683   (eval $ac_compile) 2>&5
6684   ac_status=$?
6685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686   test $ac_status = 0; }; then
6687     # Now try to grab the symbols.
6688     nlist=conftest.nm
6689     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6690   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6691   ac_status=$?
6692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6693   test $ac_status = 0; } && test -s "$nlist"; then
6694       # Try sorting and uniquifying the output.
6695       if sort "$nlist" | uniq > "$nlist"T; then
6696         mv -f "$nlist"T "$nlist"
6697       else
6698         rm -f "$nlist"T
6699       fi
6700
6701       # Make sure that we snagged all the symbols we need.
6702       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6703         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6704           cat <<_LT_EOF > conftest.$ac_ext
6705 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6706 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6707 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6708    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6709 # define LT_DLSYM_CONST
6710 #elif defined(__osf__)
6711 /* This system does not cope well with relocations in const data.  */
6712 # define LT_DLSYM_CONST
6713 #else
6714 # define LT_DLSYM_CONST const
6715 #endif
6716
6717 #ifdef __cplusplus
6718 extern "C" {
6719 #endif
6720
6721 _LT_EOF
6722           # Now generate the symbol file.
6723           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6724
6725           cat <<_LT_EOF >> conftest.$ac_ext
6726
6727 /* The mapping between symbol names and symbols.  */
6728 LT_DLSYM_CONST struct {
6729   const char *name;
6730   void       *address;
6731 }
6732 lt__PROGRAM__LTX_preloaded_symbols[] =
6733 {
6734   { "@PROGRAM@", (void *) 0 },
6735 _LT_EOF
6736           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6737           cat <<\_LT_EOF >> conftest.$ac_ext
6738   {0, (void *) 0}
6739 };
6740
6741 /* This works around a problem in FreeBSD linker */
6742 #ifdef FREEBSD_WORKAROUND
6743 static const void *lt_preloaded_setup() {
6744   return lt__PROGRAM__LTX_preloaded_symbols;
6745 }
6746 #endif
6747
6748 #ifdef __cplusplus
6749 }
6750 #endif
6751 _LT_EOF
6752           # Now try linking the two files.
6753           mv conftest.$ac_objext conftstm.$ac_objext
6754           lt_globsym_save_LIBS=$LIBS
6755           lt_globsym_save_CFLAGS=$CFLAGS
6756           LIBS="conftstm.$ac_objext"
6757           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6758           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6759   (eval $ac_link) 2>&5
6760   ac_status=$?
6761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6762   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6763             pipe_works=yes
6764           fi
6765           LIBS=$lt_globsym_save_LIBS
6766           CFLAGS=$lt_globsym_save_CFLAGS
6767         else
6768           echo "cannot find nm_test_func in $nlist" >&5
6769         fi
6770       else
6771         echo "cannot find nm_test_var in $nlist" >&5
6772       fi
6773     else
6774       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6775     fi
6776   else
6777     echo "$progname: failed program was:" >&5
6778     cat conftest.$ac_ext >&5
6779   fi
6780   rm -rf conftest* conftst*
6781
6782   # Do not use the global_symbol_pipe unless it works.
6783   if test "$pipe_works" = yes; then
6784     break
6785   else
6786     lt_cv_sys_global_symbol_pipe=
6787   fi
6788 done
6789
6790 fi
6791
6792 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6793   lt_cv_sys_global_symbol_to_cdecl=
6794 fi
6795 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6797 $as_echo "failed" >&6; }
6798 else
6799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6800 $as_echo "ok" >&6; }
6801 fi
6802
6803 # Response file support.
6804 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6805   nm_file_list_spec='@'
6806 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6807   nm_file_list_spec='@'
6808 fi
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6837 $as_echo_n "checking for sysroot... " >&6; }
6838
6839 # Check whether --with-sysroot was given.
6840 if test "${with_sysroot+set}" = set; then :
6841   withval=$with_sysroot;
6842 else
6843   with_sysroot=no
6844 fi
6845
6846
6847 lt_sysroot=
6848 case ${with_sysroot} in #(
6849  yes)
6850    if test "$GCC" = yes; then
6851      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6852    fi
6853    ;; #(
6854  /*)
6855    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6856    ;; #(
6857  no|'')
6858    ;; #(
6859  *)
6860    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6861 $as_echo "${with_sysroot}" >&6; }
6862    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6863    ;;
6864 esac
6865
6866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6867 $as_echo "${lt_sysroot:-no}" >&6; }
6868
6869
6870
6871
6872
6873 # Check whether --enable-libtool-lock was given.
6874 if test "${enable_libtool_lock+set}" = set; then :
6875   enableval=$enable_libtool_lock;
6876 fi
6877
6878 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6879
6880 # Some flags need to be propagated to the compiler or linker for good
6881 # libtool support.
6882 case $host in
6883 ia64-*-hpux*)
6884   # Find out which ABI we are using.
6885   echo 'int i;' > conftest.$ac_ext
6886   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6887   (eval $ac_compile) 2>&5
6888   ac_status=$?
6889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890   test $ac_status = 0; }; then
6891     case `/usr/bin/file conftest.$ac_objext` in
6892       *ELF-32*)
6893         HPUX_IA64_MODE="32"
6894         ;;
6895       *ELF-64*)
6896         HPUX_IA64_MODE="64"
6897         ;;
6898     esac
6899   fi
6900   rm -rf conftest*
6901   ;;
6902 *-*-irix6*)
6903   # Find out which ABI we are using.
6904   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6905   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6906   (eval $ac_compile) 2>&5
6907   ac_status=$?
6908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909   test $ac_status = 0; }; then
6910     if test "$lt_cv_prog_gnu_ld" = yes; then
6911       case `/usr/bin/file conftest.$ac_objext` in
6912         *32-bit*)
6913           LD="${LD-ld} -melf32bsmip"
6914           ;;
6915         *N32*)
6916           LD="${LD-ld} -melf32bmipn32"
6917           ;;
6918         *64-bit*)
6919           LD="${LD-ld} -melf64bmip"
6920         ;;
6921       esac
6922     else
6923       case `/usr/bin/file conftest.$ac_objext` in
6924         *32-bit*)
6925           LD="${LD-ld} -32"
6926           ;;
6927         *N32*)
6928           LD="${LD-ld} -n32"
6929           ;;
6930         *64-bit*)
6931           LD="${LD-ld} -64"
6932           ;;
6933       esac
6934     fi
6935   fi
6936   rm -rf conftest*
6937   ;;
6938
6939 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6940 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6941   # Find out which ABI we are using.
6942   echo 'int i;' > conftest.$ac_ext
6943   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6944   (eval $ac_compile) 2>&5
6945   ac_status=$?
6946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6947   test $ac_status = 0; }; then
6948     case `/usr/bin/file conftest.o` in
6949       *32-bit*)
6950         case $host in
6951           x86_64-*kfreebsd*-gnu)
6952             LD="${LD-ld} -m elf_i386_fbsd"
6953             ;;
6954           x86_64-*linux*)
6955             case `/usr/bin/file conftest.o` in
6956               *x86-64*)
6957                 LD="${LD-ld} -m elf32_x86_64"
6958                 ;;
6959               *)
6960                 LD="${LD-ld} -m elf_i386"
6961                 ;;
6962             esac
6963             ;;
6964           powerpc64le-*)
6965             LD="${LD-ld} -m elf32lppclinux"
6966             ;;
6967           powerpc64-*)
6968             LD="${LD-ld} -m elf32ppclinux"
6969             ;;
6970           s390x-*linux*)
6971             LD="${LD-ld} -m elf_s390"
6972             ;;
6973           sparc64-*linux*)
6974             LD="${LD-ld} -m elf32_sparc"
6975             ;;
6976         esac
6977         ;;
6978       *64-bit*)
6979         case $host in
6980           x86_64-*kfreebsd*-gnu)
6981             LD="${LD-ld} -m elf_x86_64_fbsd"
6982             ;;
6983           x86_64-*linux*)
6984             LD="${LD-ld} -m elf_x86_64"
6985             ;;
6986           powerpcle-*)
6987             LD="${LD-ld} -m elf64lppc"
6988             ;;
6989           powerpc-*)
6990             LD="${LD-ld} -m elf64ppc"
6991             ;;
6992           s390*-*linux*|s390*-*tpf*)
6993             LD="${LD-ld} -m elf64_s390"
6994             ;;
6995           sparc*-*linux*)
6996             LD="${LD-ld} -m elf64_sparc"
6997             ;;
6998         esac
6999         ;;
7000     esac
7001   fi
7002   rm -rf conftest*
7003   ;;
7004
7005 *-*-sco3.2v5*)
7006   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7007   SAVE_CFLAGS="$CFLAGS"
7008   CFLAGS="$CFLAGS -belf"
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7010 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7011 if ${lt_cv_cc_needs_belf+:} false; then :
7012   $as_echo_n "(cached) " >&6
7013 else
7014   ac_ext=c
7015 ac_cpp='$CPP $CPPFLAGS'
7016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7019
7020      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h.  */
7022
7023 int
7024 main ()
7025 {
7026
7027   ;
7028   return 0;
7029 }
7030 _ACEOF
7031 if ac_fn_c_try_link "$LINENO"; then :
7032   lt_cv_cc_needs_belf=yes
7033 else
7034   lt_cv_cc_needs_belf=no
7035 fi
7036 rm -f core conftest.err conftest.$ac_objext \
7037     conftest$ac_exeext conftest.$ac_ext
7038      ac_ext=c
7039 ac_cpp='$CPP $CPPFLAGS'
7040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7043
7044 fi
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7046 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7047   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7048     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7049     CFLAGS="$SAVE_CFLAGS"
7050   fi
7051   ;;
7052 *-*solaris*)
7053   # Find out which ABI we are using.
7054   echo 'int i;' > conftest.$ac_ext
7055   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7056   (eval $ac_compile) 2>&5
7057   ac_status=$?
7058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7059   test $ac_status = 0; }; then
7060     case `/usr/bin/file conftest.o` in
7061     *64-bit*)
7062       case $lt_cv_prog_gnu_ld in
7063       yes*)
7064         case $host in
7065         i?86-*-solaris*)
7066           LD="${LD-ld} -m elf_x86_64"
7067           ;;
7068         sparc*-*-solaris*)
7069           LD="${LD-ld} -m elf64_sparc"
7070           ;;
7071         esac
7072         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7073         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7074           LD="${LD-ld}_sol2"
7075         fi
7076         ;;
7077       *)
7078         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7079           LD="${LD-ld} -64"
7080         fi
7081         ;;
7082       esac
7083       ;;
7084     esac
7085   fi
7086   rm -rf conftest*
7087   ;;
7088 esac
7089
7090 need_locks="$enable_libtool_lock"
7091
7092 if test -n "$ac_tool_prefix"; then
7093   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7094 set dummy ${ac_tool_prefix}mt; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7098   $as_echo_n "(cached) " >&6
7099 else
7100   if test -n "$MANIFEST_TOOL"; then
7101   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7102 else
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7105 do
7106   IFS=$as_save_IFS
7107   test -z "$as_dir" && as_dir=.
7108     for ac_exec_ext in '' $ac_executable_extensions; do
7109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112     break 2
7113   fi
7114 done
7115   done
7116 IFS=$as_save_IFS
7117
7118 fi
7119 fi
7120 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7121 if test -n "$MANIFEST_TOOL"; then
7122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7123 $as_echo "$MANIFEST_TOOL" >&6; }
7124 else
7125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7127 fi
7128
7129
7130 fi
7131 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7132   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7133   # Extract the first word of "mt", so it can be a program name with args.
7134 set dummy mt; ac_word=$2
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136 $as_echo_n "checking for $ac_word... " >&6; }
7137 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7138   $as_echo_n "(cached) " >&6
7139 else
7140   if test -n "$ac_ct_MANIFEST_TOOL"; then
7141   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7142 else
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7145 do
7146   IFS=$as_save_IFS
7147   test -z "$as_dir" && as_dir=.
7148     for ac_exec_ext in '' $ac_executable_extensions; do
7149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7150     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152     break 2
7153   fi
7154 done
7155   done
7156 IFS=$as_save_IFS
7157
7158 fi
7159 fi
7160 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7161 if test -n "$ac_ct_MANIFEST_TOOL"; then
7162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7163 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7164 else
7165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7167 fi
7168
7169   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7170     MANIFEST_TOOL=":"
7171   else
7172     case $cross_compiling:$ac_tool_warned in
7173 yes:)
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7176 ac_tool_warned=yes ;;
7177 esac
7178     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7179   fi
7180 else
7181   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7182 fi
7183
7184 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7186 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7187 if ${lt_cv_path_mainfest_tool+:} false; then :
7188   $as_echo_n "(cached) " >&6
7189 else
7190   lt_cv_path_mainfest_tool=no
7191   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7192   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7193   cat conftest.err >&5
7194   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7195     lt_cv_path_mainfest_tool=yes
7196   fi
7197   rm -f conftest*
7198 fi
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7200 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7201 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7202   MANIFEST_TOOL=:
7203 fi
7204
7205
7206
7207
7208
7209
7210   case $host_os in
7211     rhapsody* | darwin*)
7212     if test -n "$ac_tool_prefix"; then
7213   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7214 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7218   $as_echo_n "(cached) " >&6
7219 else
7220   if test -n "$DSYMUTIL"; then
7221   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226   IFS=$as_save_IFS
7227   test -z "$as_dir" && as_dir=.
7228     for ac_exec_ext in '' $ac_executable_extensions; do
7229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232     break 2
7233   fi
7234 done
7235   done
7236 IFS=$as_save_IFS
7237
7238 fi
7239 fi
7240 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7241 if test -n "$DSYMUTIL"; then
7242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7243 $as_echo "$DSYMUTIL" >&6; }
7244 else
7245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7247 fi
7248
7249
7250 fi
7251 if test -z "$ac_cv_prog_DSYMUTIL"; then
7252   ac_ct_DSYMUTIL=$DSYMUTIL
7253   # Extract the first word of "dsymutil", so it can be a program name with args.
7254 set dummy dsymutil; ac_word=$2
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256 $as_echo_n "checking for $ac_word... " >&6; }
7257 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7258   $as_echo_n "(cached) " >&6
7259 else
7260   if test -n "$ac_ct_DSYMUTIL"; then
7261   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7262 else
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH
7265 do
7266   IFS=$as_save_IFS
7267   test -z "$as_dir" && as_dir=.
7268     for ac_exec_ext in '' $ac_executable_extensions; do
7269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7272     break 2
7273   fi
7274 done
7275   done
7276 IFS=$as_save_IFS
7277
7278 fi
7279 fi
7280 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7281 if test -n "$ac_ct_DSYMUTIL"; then
7282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7283 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7284 else
7285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286 $as_echo "no" >&6; }
7287 fi
7288
7289   if test "x$ac_ct_DSYMUTIL" = x; then
7290     DSYMUTIL=":"
7291   else
7292     case $cross_compiling:$ac_tool_warned in
7293 yes:)
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7296 ac_tool_warned=yes ;;
7297 esac
7298     DSYMUTIL=$ac_ct_DSYMUTIL
7299   fi
7300 else
7301   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7302 fi
7303
7304     if test -n "$ac_tool_prefix"; then
7305   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7306 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_prog_NMEDIT+:} false; then :
7310   $as_echo_n "(cached) " >&6
7311 else
7312   if test -n "$NMEDIT"; then
7313   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7314 else
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7317 do
7318   IFS=$as_save_IFS
7319   test -z "$as_dir" && as_dir=.
7320     for ac_exec_ext in '' $ac_executable_extensions; do
7321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324     break 2
7325   fi
7326 done
7327   done
7328 IFS=$as_save_IFS
7329
7330 fi
7331 fi
7332 NMEDIT=$ac_cv_prog_NMEDIT
7333 if test -n "$NMEDIT"; then
7334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7335 $as_echo "$NMEDIT" >&6; }
7336 else
7337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7339 fi
7340
7341
7342 fi
7343 if test -z "$ac_cv_prog_NMEDIT"; then
7344   ac_ct_NMEDIT=$NMEDIT
7345   # Extract the first word of "nmedit", so it can be a program name with args.
7346 set dummy nmedit; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7350   $as_echo_n "(cached) " >&6
7351 else
7352   if test -n "$ac_ct_NMEDIT"; then
7353   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7354 else
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358   IFS=$as_save_IFS
7359   test -z "$as_dir" && as_dir=.
7360     for ac_exec_ext in '' $ac_executable_extensions; do
7361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364     break 2
7365   fi
7366 done
7367   done
7368 IFS=$as_save_IFS
7369
7370 fi
7371 fi
7372 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7373 if test -n "$ac_ct_NMEDIT"; then
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7375 $as_echo "$ac_ct_NMEDIT" >&6; }
7376 else
7377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7379 fi
7380
7381   if test "x$ac_ct_NMEDIT" = x; then
7382     NMEDIT=":"
7383   else
7384     case $cross_compiling:$ac_tool_warned in
7385 yes:)
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7388 ac_tool_warned=yes ;;
7389 esac
7390     NMEDIT=$ac_ct_NMEDIT
7391   fi
7392 else
7393   NMEDIT="$ac_cv_prog_NMEDIT"
7394 fi
7395
7396     if test -n "$ac_tool_prefix"; then
7397   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7398 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 $as_echo_n "checking for $ac_word... " >&6; }
7401 if ${ac_cv_prog_LIPO+:} false; then :
7402   $as_echo_n "(cached) " >&6
7403 else
7404   if test -n "$LIPO"; then
7405   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7409 do
7410   IFS=$as_save_IFS
7411   test -z "$as_dir" && as_dir=.
7412     for ac_exec_ext in '' $ac_executable_extensions; do
7413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7414     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416     break 2
7417   fi
7418 done
7419   done
7420 IFS=$as_save_IFS
7421
7422 fi
7423 fi
7424 LIPO=$ac_cv_prog_LIPO
7425 if test -n "$LIPO"; then
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7427 $as_echo "$LIPO" >&6; }
7428 else
7429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7431 fi
7432
7433
7434 fi
7435 if test -z "$ac_cv_prog_LIPO"; then
7436   ac_ct_LIPO=$LIPO
7437   # Extract the first word of "lipo", so it can be a program name with args.
7438 set dummy lipo; ac_word=$2
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440 $as_echo_n "checking for $ac_word... " >&6; }
7441 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7442   $as_echo_n "(cached) " >&6
7443 else
7444   if test -n "$ac_ct_LIPO"; then
7445   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450   IFS=$as_save_IFS
7451   test -z "$as_dir" && as_dir=.
7452     for ac_exec_ext in '' $ac_executable_extensions; do
7453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454     ac_cv_prog_ac_ct_LIPO="lipo"
7455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456     break 2
7457   fi
7458 done
7459   done
7460 IFS=$as_save_IFS
7461
7462 fi
7463 fi
7464 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7465 if test -n "$ac_ct_LIPO"; then
7466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7467 $as_echo "$ac_ct_LIPO" >&6; }
7468 else
7469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7471 fi
7472
7473   if test "x$ac_ct_LIPO" = x; then
7474     LIPO=":"
7475   else
7476     case $cross_compiling:$ac_tool_warned in
7477 yes:)
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7480 ac_tool_warned=yes ;;
7481 esac
7482     LIPO=$ac_ct_LIPO
7483   fi
7484 else
7485   LIPO="$ac_cv_prog_LIPO"
7486 fi
7487
7488     if test -n "$ac_tool_prefix"; then
7489   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7490 set dummy ${ac_tool_prefix}otool; ac_word=$2
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492 $as_echo_n "checking for $ac_word... " >&6; }
7493 if ${ac_cv_prog_OTOOL+:} false; then :
7494   $as_echo_n "(cached) " >&6
7495 else
7496   if test -n "$OTOOL"; then
7497   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7498 else
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500 for as_dir in $PATH
7501 do
7502   IFS=$as_save_IFS
7503   test -z "$as_dir" && as_dir=.
7504     for ac_exec_ext in '' $ac_executable_extensions; do
7505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7506     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508     break 2
7509   fi
7510 done
7511   done
7512 IFS=$as_save_IFS
7513
7514 fi
7515 fi
7516 OTOOL=$ac_cv_prog_OTOOL
7517 if test -n "$OTOOL"; then
7518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7519 $as_echo "$OTOOL" >&6; }
7520 else
7521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7523 fi
7524
7525
7526 fi
7527 if test -z "$ac_cv_prog_OTOOL"; then
7528   ac_ct_OTOOL=$OTOOL
7529   # Extract the first word of "otool", so it can be a program name with args.
7530 set dummy otool; ac_word=$2
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 $as_echo_n "checking for $ac_word... " >&6; }
7533 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7534   $as_echo_n "(cached) " >&6
7535 else
7536   if test -n "$ac_ct_OTOOL"; then
7537   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7538 else
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7541 do
7542   IFS=$as_save_IFS
7543   test -z "$as_dir" && as_dir=.
7544     for ac_exec_ext in '' $ac_executable_extensions; do
7545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546     ac_cv_prog_ac_ct_OTOOL="otool"
7547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548     break 2
7549   fi
7550 done
7551   done
7552 IFS=$as_save_IFS
7553
7554 fi
7555 fi
7556 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7557 if test -n "$ac_ct_OTOOL"; then
7558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7559 $as_echo "$ac_ct_OTOOL" >&6; }
7560 else
7561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7563 fi
7564
7565   if test "x$ac_ct_OTOOL" = x; then
7566     OTOOL=":"
7567   else
7568     case $cross_compiling:$ac_tool_warned in
7569 yes:)
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7572 ac_tool_warned=yes ;;
7573 esac
7574     OTOOL=$ac_ct_OTOOL
7575   fi
7576 else
7577   OTOOL="$ac_cv_prog_OTOOL"
7578 fi
7579
7580     if test -n "$ac_tool_prefix"; then
7581   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7582 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if ${ac_cv_prog_OTOOL64+:} false; then :
7586   $as_echo_n "(cached) " >&6
7587 else
7588   if test -n "$OTOOL64"; then
7589   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594   IFS=$as_save_IFS
7595   test -z "$as_dir" && as_dir=.
7596     for ac_exec_ext in '' $ac_executable_extensions; do
7597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600     break 2
7601   fi
7602 done
7603   done
7604 IFS=$as_save_IFS
7605
7606 fi
7607 fi
7608 OTOOL64=$ac_cv_prog_OTOOL64
7609 if test -n "$OTOOL64"; then
7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7611 $as_echo "$OTOOL64" >&6; }
7612 else
7613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7615 fi
7616
7617
7618 fi
7619 if test -z "$ac_cv_prog_OTOOL64"; then
7620   ac_ct_OTOOL64=$OTOOL64
7621   # Extract the first word of "otool64", so it can be a program name with args.
7622 set dummy otool64; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7626   $as_echo_n "(cached) " >&6
7627 else
7628   if test -n "$ac_ct_OTOOL64"; then
7629   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7633 do
7634   IFS=$as_save_IFS
7635   test -z "$as_dir" && as_dir=.
7636     for ac_exec_ext in '' $ac_executable_extensions; do
7637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7638     ac_cv_prog_ac_ct_OTOOL64="otool64"
7639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640     break 2
7641   fi
7642 done
7643   done
7644 IFS=$as_save_IFS
7645
7646 fi
7647 fi
7648 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7649 if test -n "$ac_ct_OTOOL64"; then
7650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7651 $as_echo "$ac_ct_OTOOL64" >&6; }
7652 else
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7655 fi
7656
7657   if test "x$ac_ct_OTOOL64" = x; then
7658     OTOOL64=":"
7659   else
7660     case $cross_compiling:$ac_tool_warned in
7661 yes:)
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7664 ac_tool_warned=yes ;;
7665 esac
7666     OTOOL64=$ac_ct_OTOOL64
7667   fi
7668 else
7669   OTOOL64="$ac_cv_prog_OTOOL64"
7670 fi
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7699 $as_echo_n "checking for -single_module linker flag... " >&6; }
7700 if ${lt_cv_apple_cc_single_mod+:} false; then :
7701   $as_echo_n "(cached) " >&6
7702 else
7703   lt_cv_apple_cc_single_mod=no
7704       if test -z "${LT_MULTI_MODULE}"; then
7705         # By default we will add the -single_module flag. You can override
7706         # by either setting the environment variable LT_MULTI_MODULE
7707         # non-empty at configure time, or by adding -multi_module to the
7708         # link flags.
7709         rm -rf libconftest.dylib*
7710         echo "int foo(void){return 1;}" > conftest.c
7711         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7712 -dynamiclib -Wl,-single_module conftest.c" >&5
7713         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7714           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7715         _lt_result=$?
7716         # If there is a non-empty error log, and "single_module"
7717         # appears in it, assume the flag caused a linker warning
7718         if test -s conftest.err && $GREP single_module conftest.err; then
7719           cat conftest.err >&5
7720         # Otherwise, if the output was created with a 0 exit code from
7721         # the compiler, it worked.
7722         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7723           lt_cv_apple_cc_single_mod=yes
7724         else
7725           cat conftest.err >&5
7726         fi
7727         rm -rf libconftest.dylib*
7728         rm -f conftest.*
7729       fi
7730 fi
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7732 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7733
7734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7735 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7736 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7737   $as_echo_n "(cached) " >&6
7738 else
7739   lt_cv_ld_exported_symbols_list=no
7740       save_LDFLAGS=$LDFLAGS
7741       echo "_main" > conftest.sym
7742       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7743       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h.  */
7745
7746 int
7747 main ()
7748 {
7749
7750   ;
7751   return 0;
7752 }
7753 _ACEOF
7754 if ac_fn_c_try_link "$LINENO"; then :
7755   lt_cv_ld_exported_symbols_list=yes
7756 else
7757   lt_cv_ld_exported_symbols_list=no
7758 fi
7759 rm -f core conftest.err conftest.$ac_objext \
7760     conftest$ac_exeext conftest.$ac_ext
7761         LDFLAGS="$save_LDFLAGS"
7762
7763 fi
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7765 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7766
7767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7768 $as_echo_n "checking for -force_load linker flag... " >&6; }
7769 if ${lt_cv_ld_force_load+:} false; then :
7770   $as_echo_n "(cached) " >&6
7771 else
7772   lt_cv_ld_force_load=no
7773       cat > conftest.c << _LT_EOF
7774 int forced_loaded() { return 2;}
7775 _LT_EOF
7776       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7777       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7778       echo "$AR cru libconftest.a conftest.o" >&5
7779       $AR cru libconftest.a conftest.o 2>&5
7780       echo "$RANLIB libconftest.a" >&5
7781       $RANLIB libconftest.a 2>&5
7782       cat > conftest.c << _LT_EOF
7783 int main() { return 0;}
7784 _LT_EOF
7785       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7786       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7787       _lt_result=$?
7788       if test -s conftest.err && $GREP force_load conftest.err; then
7789         cat conftest.err >&5
7790       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7791         lt_cv_ld_force_load=yes
7792       else
7793         cat conftest.err >&5
7794       fi
7795         rm -f conftest.err libconftest.a conftest conftest.c
7796         rm -rf conftest.dSYM
7797
7798 fi
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7800 $as_echo "$lt_cv_ld_force_load" >&6; }
7801     case $host_os in
7802     rhapsody* | darwin1.[012])
7803       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7804     darwin1.*)
7805       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7806     darwin*) # darwin 5.x on
7807       # if running on 10.5 or later, the deployment target defaults
7808       # to the OS version, if on x86, and 10.4, the deployment
7809       # target defaults to 10.4. Don't you love it?
7810       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7811         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7812           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7813         10.[012]*)
7814           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7815         10.*)
7816           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7817       esac
7818     ;;
7819   esac
7820     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7821       _lt_dar_single_mod='$single_module'
7822     fi
7823     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7824       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7825     else
7826       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7827     fi
7828     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7829       _lt_dsymutil='~$DSYMUTIL $lib || :'
7830     else
7831       _lt_dsymutil=
7832     fi
7833     ;;
7834   esac
7835
7836 for ac_header in dlfcn.h
7837 do :
7838   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7839 "
7840 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7841   cat >>confdefs.h <<_ACEOF
7842 #define HAVE_DLFCN_H 1
7843 _ACEOF
7844
7845 fi
7846
7847 done
7848
7849
7850
7851
7852
7853 # Set options
7854 enable_dlopen=yes
7855 # Check whether --enable-static was given.
7856 if test "${enable_static+set}" = set; then :
7857   enableval=$enable_static; p=${PACKAGE-default}
7858     case $enableval in
7859     yes) enable_static=yes ;;
7860     no) enable_static=no ;;
7861     *)
7862      enable_static=no
7863       # Look at the argument we got.  We use all the common list separators.
7864       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7865       for pkg in $enableval; do
7866         IFS="$lt_save_ifs"
7867         if test "X$pkg" = "X$p"; then
7868           enable_static=yes
7869         fi
7870       done
7871       IFS="$lt_save_ifs"
7872       ;;
7873     esac
7874 else
7875   enable_static=no
7876 fi
7877
7878
7879
7880
7881
7882
7883
7884 enable_win32_dll=yes
7885
7886 case $host in
7887 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7888   if test -n "$ac_tool_prefix"; then
7889   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7890 set dummy ${ac_tool_prefix}as; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if ${ac_cv_prog_AS+:} false; then :
7894   $as_echo_n "(cached) " >&6
7895 else
7896   if test -n "$AS"; then
7897   ac_cv_prog_AS="$AS" # Let the user override the test.
7898 else
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7901 do
7902   IFS=$as_save_IFS
7903   test -z "$as_dir" && as_dir=.
7904     for ac_exec_ext in '' $ac_executable_extensions; do
7905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906     ac_cv_prog_AS="${ac_tool_prefix}as"
7907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908     break 2
7909   fi
7910 done
7911   done
7912 IFS=$as_save_IFS
7913
7914 fi
7915 fi
7916 AS=$ac_cv_prog_AS
7917 if test -n "$AS"; then
7918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7919 $as_echo "$AS" >&6; }
7920 else
7921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7923 fi
7924
7925
7926 fi
7927 if test -z "$ac_cv_prog_AS"; then
7928   ac_ct_AS=$AS
7929   # Extract the first word of "as", so it can be a program name with args.
7930 set dummy as; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7934   $as_echo_n "(cached) " >&6
7935 else
7936   if test -n "$ac_ct_AS"; then
7937   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7938 else
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 for as_dir in $PATH
7941 do
7942   IFS=$as_save_IFS
7943   test -z "$as_dir" && as_dir=.
7944     for ac_exec_ext in '' $ac_executable_extensions; do
7945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7946     ac_cv_prog_ac_ct_AS="as"
7947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948     break 2
7949   fi
7950 done
7951   done
7952 IFS=$as_save_IFS
7953
7954 fi
7955 fi
7956 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7957 if test -n "$ac_ct_AS"; then
7958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7959 $as_echo "$ac_ct_AS" >&6; }
7960 else
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7963 fi
7964
7965   if test "x$ac_ct_AS" = x; then
7966     AS="false"
7967   else
7968     case $cross_compiling:$ac_tool_warned in
7969 yes:)
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7972 ac_tool_warned=yes ;;
7973 esac
7974     AS=$ac_ct_AS
7975   fi
7976 else
7977   AS="$ac_cv_prog_AS"
7978 fi
7979
7980   if test -n "$ac_tool_prefix"; then
7981   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7982 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if ${ac_cv_prog_DLLTOOL+:} false; then :
7986   $as_echo_n "(cached) " >&6
7987 else
7988   if test -n "$DLLTOOL"; then
7989   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994   IFS=$as_save_IFS
7995   test -z "$as_dir" && as_dir=.
7996     for ac_exec_ext in '' $ac_executable_extensions; do
7997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000     break 2
8001   fi
8002 done
8003   done
8004 IFS=$as_save_IFS
8005
8006 fi
8007 fi
8008 DLLTOOL=$ac_cv_prog_DLLTOOL
8009 if test -n "$DLLTOOL"; then
8010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8011 $as_echo "$DLLTOOL" >&6; }
8012 else
8013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8015 fi
8016
8017
8018 fi
8019 if test -z "$ac_cv_prog_DLLTOOL"; then
8020   ac_ct_DLLTOOL=$DLLTOOL
8021   # Extract the first word of "dlltool", so it can be a program name with args.
8022 set dummy dlltool; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8026   $as_echo_n "(cached) " >&6
8027 else
8028   if test -n "$ac_ct_DLLTOOL"; then
8029   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8030 else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034   IFS=$as_save_IFS
8035   test -z "$as_dir" && as_dir=.
8036     for ac_exec_ext in '' $ac_executable_extensions; do
8037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040     break 2
8041   fi
8042 done
8043   done
8044 IFS=$as_save_IFS
8045
8046 fi
8047 fi
8048 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8049 if test -n "$ac_ct_DLLTOOL"; then
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8051 $as_echo "$ac_ct_DLLTOOL" >&6; }
8052 else
8053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056
8057   if test "x$ac_ct_DLLTOOL" = x; then
8058     DLLTOOL="false"
8059   else
8060     case $cross_compiling:$ac_tool_warned in
8061 yes:)
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064 ac_tool_warned=yes ;;
8065 esac
8066     DLLTOOL=$ac_ct_DLLTOOL
8067   fi
8068 else
8069   DLLTOOL="$ac_cv_prog_DLLTOOL"
8070 fi
8071
8072   if test -n "$ac_tool_prefix"; then
8073   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8074 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_prog_OBJDUMP+:} false; then :
8078   $as_echo_n "(cached) " >&6
8079 else
8080   if test -n "$OBJDUMP"; then
8081   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086   IFS=$as_save_IFS
8087   test -z "$as_dir" && as_dir=.
8088     for ac_exec_ext in '' $ac_executable_extensions; do
8089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092     break 2
8093   fi
8094 done
8095   done
8096 IFS=$as_save_IFS
8097
8098 fi
8099 fi
8100 OBJDUMP=$ac_cv_prog_OBJDUMP
8101 if test -n "$OBJDUMP"; then
8102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8103 $as_echo "$OBJDUMP" >&6; }
8104 else
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8107 fi
8108
8109
8110 fi
8111 if test -z "$ac_cv_prog_OBJDUMP"; then
8112   ac_ct_OBJDUMP=$OBJDUMP
8113   # Extract the first word of "objdump", so it can be a program name with args.
8114 set dummy objdump; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8118   $as_echo_n "(cached) " >&6
8119 else
8120   if test -n "$ac_ct_OBJDUMP"; then
8121   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8125 do
8126   IFS=$as_save_IFS
8127   test -z "$as_dir" && as_dir=.
8128     for ac_exec_ext in '' $ac_executable_extensions; do
8129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132     break 2
8133   fi
8134 done
8135   done
8136 IFS=$as_save_IFS
8137
8138 fi
8139 fi
8140 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8141 if test -n "$ac_ct_OBJDUMP"; then
8142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8143 $as_echo "$ac_ct_OBJDUMP" >&6; }
8144 else
8145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8147 fi
8148
8149   if test "x$ac_ct_OBJDUMP" = x; then
8150     OBJDUMP="false"
8151   else
8152     case $cross_compiling:$ac_tool_warned in
8153 yes:)
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8156 ac_tool_warned=yes ;;
8157 esac
8158     OBJDUMP=$ac_ct_OBJDUMP
8159   fi
8160 else
8161   OBJDUMP="$ac_cv_prog_OBJDUMP"
8162 fi
8163
8164   ;;
8165 esac
8166
8167 test -z "$AS" && AS=as
8168
8169
8170
8171
8172
8173 test -z "$DLLTOOL" && DLLTOOL=dlltool
8174
8175
8176
8177
8178
8179 test -z "$OBJDUMP" && OBJDUMP=objdump
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189             # Check whether --enable-shared was given.
8190 if test "${enable_shared+set}" = set; then :
8191   enableval=$enable_shared; p=${PACKAGE-default}
8192     case $enableval in
8193     yes) enable_shared=yes ;;
8194     no) enable_shared=no ;;
8195     *)
8196       enable_shared=no
8197       # Look at the argument we got.  We use all the common list separators.
8198       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8199       for pkg in $enableval; do
8200         IFS="$lt_save_ifs"
8201         if test "X$pkg" = "X$p"; then
8202           enable_shared=yes
8203         fi
8204       done
8205       IFS="$lt_save_ifs"
8206       ;;
8207     esac
8208 else
8209   enable_shared=yes
8210 fi
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222 # Check whether --with-pic was given.
8223 if test "${with_pic+set}" = set; then :
8224   withval=$with_pic; lt_p=${PACKAGE-default}
8225     case $withval in
8226     yes|no) pic_mode=$withval ;;
8227     *)
8228       pic_mode=default
8229       # Look at the argument we got.  We use all the common list separators.
8230       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8231       for lt_pkg in $withval; do
8232         IFS="$lt_save_ifs"
8233         if test "X$lt_pkg" = "X$lt_p"; then
8234           pic_mode=yes
8235         fi
8236       done
8237       IFS="$lt_save_ifs"
8238       ;;
8239     esac
8240 else
8241   pic_mode=default
8242 fi
8243
8244
8245 test -z "$pic_mode" && pic_mode=default
8246
8247
8248
8249
8250
8251
8252
8253   # Check whether --enable-fast-install was given.
8254 if test "${enable_fast_install+set}" = set; then :
8255   enableval=$enable_fast_install; p=${PACKAGE-default}
8256     case $enableval in
8257     yes) enable_fast_install=yes ;;
8258     no) enable_fast_install=no ;;
8259     *)
8260       enable_fast_install=no
8261       # Look at the argument we got.  We use all the common list separators.
8262       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8263       for pkg in $enableval; do
8264         IFS="$lt_save_ifs"
8265         if test "X$pkg" = "X$p"; then
8266           enable_fast_install=yes
8267         fi
8268       done
8269       IFS="$lt_save_ifs"
8270       ;;
8271     esac
8272 else
8273   enable_fast_install=yes
8274 fi
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286 # This can be used to rebuild libtool when needed
8287 LIBTOOL_DEPS="$ltmain"
8288
8289 # Always use our own libtool.
8290 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321 test -z "$LN_S" && LN_S="ln -s"
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336 if test -n "${ZSH_VERSION+set}" ; then
8337    setopt NO_GLOB_SUBST
8338 fi
8339
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8341 $as_echo_n "checking for objdir... " >&6; }
8342 if ${lt_cv_objdir+:} false; then :
8343   $as_echo_n "(cached) " >&6
8344 else
8345   rm -f .libs 2>/dev/null
8346 mkdir .libs 2>/dev/null
8347 if test -d .libs; then
8348   lt_cv_objdir=.libs
8349 else
8350   # MS-DOS does not allow filenames that begin with a dot.
8351   lt_cv_objdir=_libs
8352 fi
8353 rmdir .libs 2>/dev/null
8354 fi
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8356 $as_echo "$lt_cv_objdir" >&6; }
8357 objdir=$lt_cv_objdir
8358
8359
8360
8361
8362
8363 cat >>confdefs.h <<_ACEOF
8364 #define LT_OBJDIR "$lt_cv_objdir/"
8365 _ACEOF
8366
8367
8368
8369
8370 case $host_os in
8371 aix3*)
8372   # AIX sometimes has problems with the GCC collect2 program.  For some
8373   # reason, if we set the COLLECT_NAMES environment variable, the problems
8374   # vanish in a puff of smoke.
8375   if test "X${COLLECT_NAMES+set}" != Xset; then
8376     COLLECT_NAMES=
8377     export COLLECT_NAMES
8378   fi
8379   ;;
8380 esac
8381
8382 # Global variables:
8383 ofile=libtool
8384 can_build_shared=yes
8385
8386 # All known linkers require a `.a' archive for static linking (except MSVC,
8387 # which needs '.lib').
8388 libext=a
8389
8390 with_gnu_ld="$lt_cv_prog_gnu_ld"
8391
8392 old_CC="$CC"
8393 old_CFLAGS="$CFLAGS"
8394
8395 # Set sane defaults for various variables
8396 test -z "$CC" && CC=cc
8397 test -z "$LTCC" && LTCC=$CC
8398 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8399 test -z "$LD" && LD=ld
8400 test -z "$ac_objext" && ac_objext=o
8401
8402 for cc_temp in $compiler""; do
8403   case $cc_temp in
8404     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8405     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8406     \-*) ;;
8407     *) break;;
8408   esac
8409 done
8410 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8411
8412
8413 # Only perform the check for file, if the check method requires it
8414 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8415 case $deplibs_check_method in
8416 file_magic*)
8417   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8419 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8420 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8421   $as_echo_n "(cached) " >&6
8422 else
8423   case $MAGIC_CMD in
8424 [\\/*] |  ?:[\\/]*)
8425   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8426   ;;
8427 *)
8428   lt_save_MAGIC_CMD="$MAGIC_CMD"
8429   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8430   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8431   for ac_dir in $ac_dummy; do
8432     IFS="$lt_save_ifs"
8433     test -z "$ac_dir" && ac_dir=.
8434     if test -f $ac_dir/${ac_tool_prefix}file; then
8435       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8436       if test -n "$file_magic_test_file"; then
8437         case $deplibs_check_method in
8438         "file_magic "*)
8439           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8440           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8441           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8442             $EGREP "$file_magic_regex" > /dev/null; then
8443             :
8444           else
8445             cat <<_LT_EOF 1>&2
8446
8447 *** Warning: the command libtool uses to detect shared libraries,
8448 *** $file_magic_cmd, produces output that libtool cannot recognize.
8449 *** The result is that libtool may fail to recognize shared libraries
8450 *** as such.  This will affect the creation of libtool libraries that
8451 *** depend on shared libraries, but programs linked with such libtool
8452 *** libraries will work regardless of this problem.  Nevertheless, you
8453 *** may want to report the problem to your system manager and/or to
8454 *** bug-libtool@gnu.org
8455
8456 _LT_EOF
8457           fi ;;
8458         esac
8459       fi
8460       break
8461     fi
8462   done
8463   IFS="$lt_save_ifs"
8464   MAGIC_CMD="$lt_save_MAGIC_CMD"
8465   ;;
8466 esac
8467 fi
8468
8469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8470 if test -n "$MAGIC_CMD"; then
8471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8472 $as_echo "$MAGIC_CMD" >&6; }
8473 else
8474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 $as_echo "no" >&6; }
8476 fi
8477
8478
8479
8480
8481
8482 if test -z "$lt_cv_path_MAGIC_CMD"; then
8483   if test -n "$ac_tool_prefix"; then
8484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8485 $as_echo_n "checking for file... " >&6; }
8486 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8487   $as_echo_n "(cached) " >&6
8488 else
8489   case $MAGIC_CMD in
8490 [\\/*] |  ?:[\\/]*)
8491   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8492   ;;
8493 *)
8494   lt_save_MAGIC_CMD="$MAGIC_CMD"
8495   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8496   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8497   for ac_dir in $ac_dummy; do
8498     IFS="$lt_save_ifs"
8499     test -z "$ac_dir" && ac_dir=.
8500     if test -f $ac_dir/file; then
8501       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8502       if test -n "$file_magic_test_file"; then
8503         case $deplibs_check_method in
8504         "file_magic "*)
8505           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8506           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8507           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8508             $EGREP "$file_magic_regex" > /dev/null; then
8509             :
8510           else
8511             cat <<_LT_EOF 1>&2
8512
8513 *** Warning: the command libtool uses to detect shared libraries,
8514 *** $file_magic_cmd, produces output that libtool cannot recognize.
8515 *** The result is that libtool may fail to recognize shared libraries
8516 *** as such.  This will affect the creation of libtool libraries that
8517 *** depend on shared libraries, but programs linked with such libtool
8518 *** libraries will work regardless of this problem.  Nevertheless, you
8519 *** may want to report the problem to your system manager and/or to
8520 *** bug-libtool@gnu.org
8521
8522 _LT_EOF
8523           fi ;;
8524         esac
8525       fi
8526       break
8527     fi
8528   done
8529   IFS="$lt_save_ifs"
8530   MAGIC_CMD="$lt_save_MAGIC_CMD"
8531   ;;
8532 esac
8533 fi
8534
8535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8536 if test -n "$MAGIC_CMD"; then
8537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8538 $as_echo "$MAGIC_CMD" >&6; }
8539 else
8540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8542 fi
8543
8544
8545   else
8546     MAGIC_CMD=:
8547   fi
8548 fi
8549
8550   fi
8551   ;;
8552 esac
8553
8554 # Use C for the default configuration in the libtool script
8555
8556 lt_save_CC="$CC"
8557 ac_ext=c
8558 ac_cpp='$CPP $CPPFLAGS'
8559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8562
8563
8564 # Source file extension for C test sources.
8565 ac_ext=c
8566
8567 # Object file extension for compiled C test sources.
8568 objext=o
8569 objext=$objext
8570
8571 # Code to be used in simple compile tests
8572 lt_simple_compile_test_code="int some_variable = 0;"
8573
8574 # Code to be used in simple link tests
8575 lt_simple_link_test_code='int main(){return(0);}'
8576
8577
8578
8579
8580
8581
8582
8583 # If no C compiler was specified, use CC.
8584 LTCC=${LTCC-"$CC"}
8585
8586 # If no C compiler flags were specified, use CFLAGS.
8587 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8588
8589 # Allow CC to be a program name with arguments.
8590 compiler=$CC
8591
8592 # Save the default compiler, since it gets overwritten when the other
8593 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8594 compiler_DEFAULT=$CC
8595
8596 # save warnings/boilerplate of simple test code
8597 ac_outfile=conftest.$ac_objext
8598 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8599 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8600 _lt_compiler_boilerplate=`cat conftest.err`
8601 $RM conftest*
8602
8603 ac_outfile=conftest.$ac_objext
8604 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8605 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8606 _lt_linker_boilerplate=`cat conftest.err`
8607 $RM -r conftest*
8608
8609
8610 ## CAVEAT EMPTOR:
8611 ## There is no encapsulation within the following macros, do not change
8612 ## the running order or otherwise move them around unless you know exactly
8613 ## what you are doing...
8614 if test -n "$compiler"; then
8615
8616 lt_prog_compiler_no_builtin_flag=
8617
8618 if test "$GCC" = yes; then
8619   case $cc_basename in
8620   nvcc*)
8621     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8622   *)
8623     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8624   esac
8625
8626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8627 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8628 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8629   $as_echo_n "(cached) " >&6
8630 else
8631   lt_cv_prog_compiler_rtti_exceptions=no
8632    ac_outfile=conftest.$ac_objext
8633    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8634    lt_compiler_flag="-fno-rtti -fno-exceptions"
8635    # Insert the option either (1) after the last *FLAGS variable, or
8636    # (2) before a word containing "conftest.", or (3) at the end.
8637    # Note that $ac_compile itself does not contain backslashes and begins
8638    # with a dollar sign (not a hyphen), so the echo should work correctly.
8639    # The option is referenced via a variable to avoid confusing sed.
8640    lt_compile=`echo "$ac_compile" | $SED \
8641    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8642    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8643    -e 's:$: $lt_compiler_flag:'`
8644    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8645    (eval "$lt_compile" 2>conftest.err)
8646    ac_status=$?
8647    cat conftest.err >&5
8648    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649    if (exit $ac_status) && test -s "$ac_outfile"; then
8650      # The compiler can only warn and ignore the option if not recognized
8651      # So say no if there are warnings other than the usual output.
8652      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8653      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8654      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8655        lt_cv_prog_compiler_rtti_exceptions=yes
8656      fi
8657    fi
8658    $RM conftest*
8659
8660 fi
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8662 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8663
8664 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8665     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8666 else
8667     :
8668 fi
8669
8670 fi
8671
8672
8673
8674
8675
8676
8677   lt_prog_compiler_wl=
8678 lt_prog_compiler_pic=
8679 lt_prog_compiler_static=
8680
8681
8682   if test "$GCC" = yes; then
8683     lt_prog_compiler_wl='-Wl,'
8684     lt_prog_compiler_static='-static'
8685
8686     case $host_os in
8687       aix*)
8688       # All AIX code is PIC.
8689       if test "$host_cpu" = ia64; then
8690         # AIX 5 now supports IA64 processor
8691         lt_prog_compiler_static='-Bstatic'
8692       fi
8693       ;;
8694
8695     amigaos*)
8696       case $host_cpu in
8697       powerpc)
8698             # see comment about AmigaOS4 .so support
8699             lt_prog_compiler_pic='-fPIC'
8700         ;;
8701       m68k)
8702             # FIXME: we need at least 68020 code to build shared libraries, but
8703             # adding the `-m68020' flag to GCC prevents building anything better,
8704             # like `-m68040'.
8705             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8706         ;;
8707       esac
8708       ;;
8709
8710     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8711       # PIC is the default for these OSes.
8712       ;;
8713
8714     mingw* | cygwin* | pw32* | os2* | cegcc*)
8715       # This hack is so that the source file can tell whether it is being
8716       # built for inclusion in a dll (and should export symbols for example).
8717       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8718       # (--disable-auto-import) libraries
8719       lt_prog_compiler_pic='-DDLL_EXPORT'
8720       ;;
8721
8722     darwin* | rhapsody*)
8723       # PIC is the default on this platform
8724       # Common symbols not allowed in MH_DYLIB files
8725       lt_prog_compiler_pic='-fno-common'
8726       ;;
8727
8728     haiku*)
8729       # PIC is the default for Haiku.
8730       # The "-static" flag exists, but is broken.
8731       lt_prog_compiler_static=
8732       ;;
8733
8734     hpux*)
8735       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8736       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8737       # sets the default TLS model and affects inlining.
8738       case $host_cpu in
8739       hppa*64*)
8740         # +Z the default
8741         ;;
8742       *)
8743         lt_prog_compiler_pic='-fPIC'
8744         ;;
8745       esac
8746       ;;
8747
8748     interix[3-9]*)
8749       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8750       # Instead, we relocate shared libraries at runtime.
8751       ;;
8752
8753     msdosdjgpp*)
8754       # Just because we use GCC doesn't mean we suddenly get shared libraries
8755       # on systems that don't support them.
8756       lt_prog_compiler_can_build_shared=no
8757       enable_shared=no
8758       ;;
8759
8760     *nto* | *qnx*)
8761       # QNX uses GNU C++, but need to define -shared option too, otherwise
8762       # it will coredump.
8763       lt_prog_compiler_pic='-fPIC -shared'
8764       ;;
8765
8766     sysv4*MP*)
8767       if test -d /usr/nec; then
8768         lt_prog_compiler_pic=-Kconform_pic
8769       fi
8770       ;;
8771
8772     *)
8773       lt_prog_compiler_pic='-fPIC'
8774       ;;
8775     esac
8776
8777     case $cc_basename in
8778     nvcc*) # Cuda Compiler Driver 2.2
8779       lt_prog_compiler_wl='-Xlinker '
8780       if test -n "$lt_prog_compiler_pic"; then
8781         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8782       fi
8783       ;;
8784     esac
8785   else
8786     # PORTME Check for flag to pass linker flags through the system compiler.
8787     case $host_os in
8788     aix*)
8789       lt_prog_compiler_wl='-Wl,'
8790       if test "$host_cpu" = ia64; then
8791         # AIX 5 now supports IA64 processor
8792         lt_prog_compiler_static='-Bstatic'
8793       else
8794         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8795       fi
8796       ;;
8797
8798     mingw* | cygwin* | pw32* | os2* | cegcc*)
8799       # This hack is so that the source file can tell whether it is being
8800       # built for inclusion in a dll (and should export symbols for example).
8801       lt_prog_compiler_pic='-DDLL_EXPORT'
8802       ;;
8803
8804     hpux9* | hpux10* | hpux11*)
8805       lt_prog_compiler_wl='-Wl,'
8806       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8807       # not for PA HP-UX.
8808       case $host_cpu in
8809       hppa*64*|ia64*)
8810         # +Z the default
8811         ;;
8812       *)
8813         lt_prog_compiler_pic='+Z'
8814         ;;
8815       esac
8816       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8817       lt_prog_compiler_static='${wl}-a ${wl}archive'
8818       ;;
8819
8820     irix5* | irix6* | nonstopux*)
8821       lt_prog_compiler_wl='-Wl,'
8822       # PIC (with -KPIC) is the default.
8823       lt_prog_compiler_static='-non_shared'
8824       ;;
8825
8826     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8827       case $cc_basename in
8828       # old Intel for x86_64 which still supported -KPIC.
8829       ecc*)
8830         lt_prog_compiler_wl='-Wl,'
8831         lt_prog_compiler_pic='-KPIC'
8832         lt_prog_compiler_static='-static'
8833         ;;
8834       # icc used to be incompatible with GCC.
8835       # ICC 10 doesn't accept -KPIC any more.
8836       icc* | ifort*)
8837         lt_prog_compiler_wl='-Wl,'
8838         lt_prog_compiler_pic='-fPIC'
8839         lt_prog_compiler_static='-static'
8840         ;;
8841       # Lahey Fortran 8.1.
8842       lf95*)
8843         lt_prog_compiler_wl='-Wl,'
8844         lt_prog_compiler_pic='--shared'
8845         lt_prog_compiler_static='--static'
8846         ;;
8847       nagfor*)
8848         # NAG Fortran compiler
8849         lt_prog_compiler_wl='-Wl,-Wl,,'
8850         lt_prog_compiler_pic='-PIC'
8851         lt_prog_compiler_static='-Bstatic'
8852         ;;
8853       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8854         # Portland Group compilers (*not* the Pentium gcc compiler,
8855         # which looks to be a dead project)
8856         lt_prog_compiler_wl='-Wl,'
8857         lt_prog_compiler_pic='-fpic'
8858         lt_prog_compiler_static='-Bstatic'
8859         ;;
8860       ccc*)
8861         lt_prog_compiler_wl='-Wl,'
8862         # All Alpha code is PIC.
8863         lt_prog_compiler_static='-non_shared'
8864         ;;
8865       xl* | bgxl* | bgf* | mpixl*)
8866         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8867         lt_prog_compiler_wl='-Wl,'
8868         lt_prog_compiler_pic='-qpic'
8869         lt_prog_compiler_static='-qstaticlink'
8870         ;;
8871       *)
8872         case `$CC -V 2>&1 | sed 5q` in
8873         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8874           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8875           lt_prog_compiler_pic='-KPIC'
8876           lt_prog_compiler_static='-Bstatic'
8877           lt_prog_compiler_wl=''
8878           ;;
8879         *Sun\ F* | *Sun*Fortran*)
8880           lt_prog_compiler_pic='-KPIC'
8881           lt_prog_compiler_static='-Bstatic'
8882           lt_prog_compiler_wl='-Qoption ld '
8883           ;;
8884         *Sun\ C*)
8885           # Sun C 5.9
8886           lt_prog_compiler_pic='-KPIC'
8887           lt_prog_compiler_static='-Bstatic'
8888           lt_prog_compiler_wl='-Wl,'
8889           ;;
8890         *Intel*\ [CF]*Compiler*)
8891           lt_prog_compiler_wl='-Wl,'
8892           lt_prog_compiler_pic='-fPIC'
8893           lt_prog_compiler_static='-static'
8894           ;;
8895         *Portland\ Group*)
8896           lt_prog_compiler_wl='-Wl,'
8897           lt_prog_compiler_pic='-fpic'
8898           lt_prog_compiler_static='-Bstatic'
8899           ;;
8900         esac
8901         ;;
8902       esac
8903       ;;
8904
8905     newsos6)
8906       lt_prog_compiler_pic='-KPIC'
8907       lt_prog_compiler_static='-Bstatic'
8908       ;;
8909
8910     *nto* | *qnx*)
8911       # QNX uses GNU C++, but need to define -shared option too, otherwise
8912       # it will coredump.
8913       lt_prog_compiler_pic='-fPIC -shared'
8914       ;;
8915
8916     osf3* | osf4* | osf5*)
8917       lt_prog_compiler_wl='-Wl,'
8918       # All OSF/1 code is PIC.
8919       lt_prog_compiler_static='-non_shared'
8920       ;;
8921
8922     rdos*)
8923       lt_prog_compiler_static='-non_shared'
8924       ;;
8925
8926     solaris*)
8927       lt_prog_compiler_pic='-KPIC'
8928       lt_prog_compiler_static='-Bstatic'
8929       case $cc_basename in
8930       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8931         lt_prog_compiler_wl='-Qoption ld ';;
8932       *)
8933         lt_prog_compiler_wl='-Wl,';;
8934       esac
8935       ;;
8936
8937     sunos4*)
8938       lt_prog_compiler_wl='-Qoption ld '
8939       lt_prog_compiler_pic='-PIC'
8940       lt_prog_compiler_static='-Bstatic'
8941       ;;
8942
8943     sysv4 | sysv4.2uw2* | sysv4.3*)
8944       lt_prog_compiler_wl='-Wl,'
8945       lt_prog_compiler_pic='-KPIC'
8946       lt_prog_compiler_static='-Bstatic'
8947       ;;
8948
8949     sysv4*MP*)
8950       if test -d /usr/nec ;then
8951         lt_prog_compiler_pic='-Kconform_pic'
8952         lt_prog_compiler_static='-Bstatic'
8953       fi
8954       ;;
8955
8956     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8957       lt_prog_compiler_wl='-Wl,'
8958       lt_prog_compiler_pic='-KPIC'
8959       lt_prog_compiler_static='-Bstatic'
8960       ;;
8961
8962     unicos*)
8963       lt_prog_compiler_wl='-Wl,'
8964       lt_prog_compiler_can_build_shared=no
8965       ;;
8966
8967     uts4*)
8968       lt_prog_compiler_pic='-pic'
8969       lt_prog_compiler_static='-Bstatic'
8970       ;;
8971
8972     *)
8973       lt_prog_compiler_can_build_shared=no
8974       ;;
8975     esac
8976   fi
8977
8978 case $host_os in
8979   # For platforms which do not support PIC, -DPIC is meaningless:
8980   *djgpp*)
8981     lt_prog_compiler_pic=
8982     ;;
8983   *)
8984     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8985     ;;
8986 esac
8987
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8989 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8990 if ${lt_cv_prog_compiler_pic+:} false; then :
8991   $as_echo_n "(cached) " >&6
8992 else
8993   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8994 fi
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8996 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8997 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8998
8999 #
9000 # Check to make sure the PIC flag actually works.
9001 #
9002 if test -n "$lt_prog_compiler_pic"; then
9003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9004 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9005 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9006   $as_echo_n "(cached) " >&6
9007 else
9008   lt_cv_prog_compiler_pic_works=no
9009    ac_outfile=conftest.$ac_objext
9010    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9011    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9012    # Insert the option either (1) after the last *FLAGS variable, or
9013    # (2) before a word containing "conftest.", or (3) at the end.
9014    # Note that $ac_compile itself does not contain backslashes and begins
9015    # with a dollar sign (not a hyphen), so the echo should work correctly.
9016    # The option is referenced via a variable to avoid confusing sed.
9017    lt_compile=`echo "$ac_compile" | $SED \
9018    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9019    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9020    -e 's:$: $lt_compiler_flag:'`
9021    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9022    (eval "$lt_compile" 2>conftest.err)
9023    ac_status=$?
9024    cat conftest.err >&5
9025    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026    if (exit $ac_status) && test -s "$ac_outfile"; then
9027      # The compiler can only warn and ignore the option if not recognized
9028      # So say no if there are warnings other than the usual output.
9029      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9030      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9031      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9032        lt_cv_prog_compiler_pic_works=yes
9033      fi
9034    fi
9035    $RM conftest*
9036
9037 fi
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9039 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9040
9041 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9042     case $lt_prog_compiler_pic in
9043      "" | " "*) ;;
9044      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9045      esac
9046 else
9047     lt_prog_compiler_pic=
9048      lt_prog_compiler_can_build_shared=no
9049 fi
9050
9051 fi
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063 #
9064 # Check to make sure the static flag actually works.
9065 #
9066 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9068 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9069 if ${lt_cv_prog_compiler_static_works+:} false; then :
9070   $as_echo_n "(cached) " >&6
9071 else
9072   lt_cv_prog_compiler_static_works=no
9073    save_LDFLAGS="$LDFLAGS"
9074    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9075    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9076    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9077      # The linker can only warn and ignore the option if not recognized
9078      # So say no if there are warnings
9079      if test -s conftest.err; then
9080        # Append any errors to the config.log.
9081        cat conftest.err 1>&5
9082        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9083        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9084        if diff conftest.exp conftest.er2 >/dev/null; then
9085          lt_cv_prog_compiler_static_works=yes
9086        fi
9087      else
9088        lt_cv_prog_compiler_static_works=yes
9089      fi
9090    fi
9091    $RM -r conftest*
9092    LDFLAGS="$save_LDFLAGS"
9093
9094 fi
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9096 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9097
9098 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9099     :
9100 else
9101     lt_prog_compiler_static=
9102 fi
9103
9104
9105
9106
9107
9108
9109
9110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9111 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9112 if ${lt_cv_prog_compiler_c_o+:} false; then :
9113   $as_echo_n "(cached) " >&6
9114 else
9115   lt_cv_prog_compiler_c_o=no
9116    $RM -r conftest 2>/dev/null
9117    mkdir conftest
9118    cd conftest
9119    mkdir out
9120    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9121
9122    lt_compiler_flag="-o out/conftest2.$ac_objext"
9123    # Insert the option either (1) after the last *FLAGS variable, or
9124    # (2) before a word containing "conftest.", or (3) at the end.
9125    # Note that $ac_compile itself does not contain backslashes and begins
9126    # with a dollar sign (not a hyphen), so the echo should work correctly.
9127    lt_compile=`echo "$ac_compile" | $SED \
9128    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9129    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9130    -e 's:$: $lt_compiler_flag:'`
9131    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9132    (eval "$lt_compile" 2>out/conftest.err)
9133    ac_status=$?
9134    cat out/conftest.err >&5
9135    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9137    then
9138      # The compiler can only warn and ignore the option if not recognized
9139      # So say no if there are warnings
9140      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9141      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9142      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9143        lt_cv_prog_compiler_c_o=yes
9144      fi
9145    fi
9146    chmod u+w . 2>&5
9147    $RM conftest*
9148    # SGI C++ compiler will create directory out/ii_files/ for
9149    # template instantiation
9150    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9151    $RM out/* && rmdir out
9152    cd ..
9153    $RM -r conftest
9154    $RM conftest*
9155
9156 fi
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9158 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9159
9160
9161
9162
9163
9164
9165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9166 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9167 if ${lt_cv_prog_compiler_c_o+:} false; then :
9168   $as_echo_n "(cached) " >&6
9169 else
9170   lt_cv_prog_compiler_c_o=no
9171    $RM -r conftest 2>/dev/null
9172    mkdir conftest
9173    cd conftest
9174    mkdir out
9175    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9176
9177    lt_compiler_flag="-o out/conftest2.$ac_objext"
9178    # Insert the option either (1) after the last *FLAGS variable, or
9179    # (2) before a word containing "conftest.", or (3) at the end.
9180    # Note that $ac_compile itself does not contain backslashes and begins
9181    # with a dollar sign (not a hyphen), so the echo should work correctly.
9182    lt_compile=`echo "$ac_compile" | $SED \
9183    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9184    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9185    -e 's:$: $lt_compiler_flag:'`
9186    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9187    (eval "$lt_compile" 2>out/conftest.err)
9188    ac_status=$?
9189    cat out/conftest.err >&5
9190    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9192    then
9193      # The compiler can only warn and ignore the option if not recognized
9194      # So say no if there are warnings
9195      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9196      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9197      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9198        lt_cv_prog_compiler_c_o=yes
9199      fi
9200    fi
9201    chmod u+w . 2>&5
9202    $RM conftest*
9203    # SGI C++ compiler will create directory out/ii_files/ for
9204    # template instantiation
9205    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9206    $RM out/* && rmdir out
9207    cd ..
9208    $RM -r conftest
9209    $RM conftest*
9210
9211 fi
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9213 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9214
9215
9216
9217
9218 hard_links="nottested"
9219 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9220   # do not overwrite the value of need_locks provided by the user
9221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9222 $as_echo_n "checking if we can lock with hard links... " >&6; }
9223   hard_links=yes
9224   $RM conftest*
9225   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9226   touch conftest.a
9227   ln conftest.a conftest.b 2>&5 || hard_links=no
9228   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9230 $as_echo "$hard_links" >&6; }
9231   if test "$hard_links" = no; then
9232     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9233 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9234     need_locks=warn
9235   fi
9236 else
9237   need_locks=no
9238 fi
9239
9240
9241
9242
9243
9244
9245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9246 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9247
9248   runpath_var=
9249   allow_undefined_flag=
9250   always_export_symbols=no
9251   archive_cmds=
9252   archive_expsym_cmds=
9253   compiler_needs_object=no
9254   enable_shared_with_static_runtimes=no
9255   export_dynamic_flag_spec=
9256   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9257   hardcode_automatic=no
9258   hardcode_direct=no
9259   hardcode_direct_absolute=no
9260   hardcode_libdir_flag_spec=
9261   hardcode_libdir_separator=
9262   hardcode_minus_L=no
9263   hardcode_shlibpath_var=unsupported
9264   inherit_rpath=no
9265   link_all_deplibs=unknown
9266   module_cmds=
9267   module_expsym_cmds=
9268   old_archive_from_new_cmds=
9269   old_archive_from_expsyms_cmds=
9270   thread_safe_flag_spec=
9271   whole_archive_flag_spec=
9272   # include_expsyms should be a list of space-separated symbols to be *always*
9273   # included in the symbol list
9274   include_expsyms=
9275   # exclude_expsyms can be an extended regexp of symbols to exclude
9276   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9277   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9278   # as well as any symbol that contains `d'.
9279   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9280   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9281   # platforms (ab)use it in PIC code, but their linkers get confused if
9282   # the symbol is explicitly referenced.  Since portable code cannot
9283   # rely on this symbol name, it's probably fine to never include it in
9284   # preloaded symbol tables.
9285   # Exclude shared library initialization/finalization symbols.
9286   extract_expsyms_cmds=
9287
9288   case $host_os in
9289   cygwin* | mingw* | pw32* | cegcc*)
9290     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9291     # When not using gcc, we currently assume that we are using
9292     # Microsoft Visual C++.
9293     if test "$GCC" != yes; then
9294       with_gnu_ld=no
9295     fi
9296     ;;
9297   interix*)
9298     # we just hope/assume this is gcc and not c89 (= MSVC++)
9299     with_gnu_ld=yes
9300     ;;
9301   openbsd*)
9302     with_gnu_ld=no
9303     ;;
9304   linux* | k*bsd*-gnu | gnu*)
9305     link_all_deplibs=no
9306     ;;
9307   esac
9308
9309   ld_shlibs=yes
9310
9311   # On some targets, GNU ld is compatible enough with the native linker
9312   # that we're better off using the native interface for both.
9313   lt_use_gnu_ld_interface=no
9314   if test "$with_gnu_ld" = yes; then
9315     case $host_os in
9316       aix*)
9317         # The AIX port of GNU ld has always aspired to compatibility
9318         # with the native linker.  However, as the warning in the GNU ld
9319         # block says, versions before 2.19.5* couldn't really create working
9320         # shared libraries, regardless of the interface used.
9321         case `$LD -v 2>&1` in
9322           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9323           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9324           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9325           *)
9326             lt_use_gnu_ld_interface=yes
9327             ;;
9328         esac
9329         ;;
9330       *)
9331         lt_use_gnu_ld_interface=yes
9332         ;;
9333     esac
9334   fi
9335
9336   if test "$lt_use_gnu_ld_interface" = yes; then
9337     # If archive_cmds runs LD, not CC, wlarc should be empty
9338     wlarc='${wl}'
9339
9340     # Set some defaults for GNU ld with shared library support. These
9341     # are reset later if shared libraries are not supported. Putting them
9342     # here allows them to be overridden if necessary.
9343     runpath_var=LD_RUN_PATH
9344     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9345     export_dynamic_flag_spec='${wl}--export-dynamic'
9346     # ancient GNU ld didn't support --whole-archive et. al.
9347     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9348       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9349     else
9350       whole_archive_flag_spec=
9351     fi
9352     supports_anon_versioning=no
9353     case `$LD -v 2>&1` in
9354       *GNU\ gold*) supports_anon_versioning=yes ;;
9355       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9356       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9357       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9358       *\ 2.11.*) ;; # other 2.11 versions
9359       *) supports_anon_versioning=yes ;;
9360     esac
9361
9362     # See if GNU ld supports shared libraries.
9363     case $host_os in
9364     aix[3-9]*)
9365       # On AIX/PPC, the GNU linker is very broken
9366       if test "$host_cpu" != ia64; then
9367         ld_shlibs=no
9368         cat <<_LT_EOF 1>&2
9369
9370 *** Warning: the GNU linker, at least up to release 2.19, is reported
9371 *** to be unable to reliably create shared libraries on AIX.
9372 *** Therefore, libtool is disabling shared libraries support.  If you
9373 *** really care for shared libraries, you may want to install binutils
9374 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9375 *** You will then need to restart the configuration process.
9376
9377 _LT_EOF
9378       fi
9379       ;;
9380
9381     amigaos*)
9382       case $host_cpu in
9383       powerpc)
9384             # see comment about AmigaOS4 .so support
9385             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9386             archive_expsym_cmds=''
9387         ;;
9388       m68k)
9389             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)'
9390             hardcode_libdir_flag_spec='-L$libdir'
9391             hardcode_minus_L=yes
9392         ;;
9393       esac
9394       ;;
9395
9396     beos*)
9397       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9398         allow_undefined_flag=unsupported
9399         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9400         # support --undefined.  This deserves some investigation.  FIXME
9401         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9402       else
9403         ld_shlibs=no
9404       fi
9405       ;;
9406
9407     cygwin* | mingw* | pw32* | cegcc*)
9408       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9409       # as there is no search path for DLLs.
9410       hardcode_libdir_flag_spec='-L$libdir'
9411       export_dynamic_flag_spec='${wl}--export-all-symbols'
9412       allow_undefined_flag=unsupported
9413       always_export_symbols=no
9414       enable_shared_with_static_runtimes=yes
9415       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9416       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9417
9418       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9419         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9420         # If the export-symbols file already is a .def file (1st line
9421         # is EXPORTS), use it as is; otherwise, prepend...
9422         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9423           cp $export_symbols $output_objdir/$soname.def;
9424         else
9425           echo EXPORTS > $output_objdir/$soname.def;
9426           cat $export_symbols >> $output_objdir/$soname.def;
9427         fi~
9428         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9429       else
9430         ld_shlibs=no
9431       fi
9432       ;;
9433
9434     haiku*)
9435       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9436       link_all_deplibs=yes
9437       ;;
9438
9439     interix[3-9]*)
9440       hardcode_direct=no
9441       hardcode_shlibpath_var=no
9442       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9443       export_dynamic_flag_spec='${wl}-E'
9444       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9445       # Instead, shared libraries are loaded at an image base (0x10000000 by
9446       # default) and relocated if they conflict, which is a slow very memory
9447       # consuming and fragmenting process.  To avoid this, we pick a random,
9448       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9449       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9450       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9451       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'
9452       ;;
9453
9454     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9455       tmp_diet=no
9456       if test "$host_os" = linux-dietlibc; then
9457         case $cc_basename in
9458           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9459         esac
9460       fi
9461       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9462          && test "$tmp_diet" = no
9463       then
9464         tmp_addflag=' $pic_flag'
9465         tmp_sharedflag='-shared'
9466         case $cc_basename,$host_cpu in
9467         pgcc*)                          # Portland Group C compiler
9468           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9469           tmp_addflag=' $pic_flag'
9470           ;;
9471         pgf77* | pgf90* | pgf95* | pgfortran*)
9472                                         # Portland Group f77 and f90 compilers
9473           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9474           tmp_addflag=' $pic_flag -Mnomain' ;;
9475         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9476           tmp_addflag=' -i_dynamic' ;;
9477         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9478           tmp_addflag=' -i_dynamic -nofor_main' ;;
9479         ifc* | ifort*)                  # Intel Fortran compiler
9480           tmp_addflag=' -nofor_main' ;;
9481         lf95*)                          # Lahey Fortran 8.1
9482           whole_archive_flag_spec=
9483           tmp_sharedflag='--shared' ;;
9484         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9485           tmp_sharedflag='-qmkshrobj'
9486           tmp_addflag= ;;
9487         nvcc*)  # Cuda Compiler Driver 2.2
9488           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9489           compiler_needs_object=yes
9490           ;;
9491         esac
9492         case `$CC -V 2>&1 | sed 5q` in
9493         *Sun\ C*)                       # Sun C 5.9
9494           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9495           compiler_needs_object=yes
9496           tmp_sharedflag='-G' ;;
9497         *Sun\ F*)                       # Sun Fortran 8.3
9498           tmp_sharedflag='-G' ;;
9499         esac
9500         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9501
9502         if test "x$supports_anon_versioning" = xyes; then
9503           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9504             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9505             echo "local: *; };" >> $output_objdir/$libname.ver~
9506             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9507         fi
9508
9509         case $cc_basename in
9510         xlf* | bgf* | bgxlf* | mpixlf*)
9511           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9512           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9513           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9514           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9515           if test "x$supports_anon_versioning" = xyes; then
9516             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9517               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9518               echo "local: *; };" >> $output_objdir/$libname.ver~
9519               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9520           fi
9521           ;;
9522         esac
9523       else
9524         ld_shlibs=no
9525       fi
9526       ;;
9527
9528     netbsd* | netbsdelf*-gnu)
9529       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9530         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9531         wlarc=
9532       else
9533         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9534         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9535       fi
9536       ;;
9537
9538     solaris*)
9539       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9540         ld_shlibs=no
9541         cat <<_LT_EOF 1>&2
9542
9543 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9544 *** create shared libraries on Solaris systems.  Therefore, libtool
9545 *** is disabling shared libraries support.  We urge you to upgrade GNU
9546 *** binutils to release 2.9.1 or newer.  Another option is to modify
9547 *** your PATH or compiler configuration so that the native linker is
9548 *** used, and then restart.
9549
9550 _LT_EOF
9551       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9552         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9553         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9554       else
9555         ld_shlibs=no
9556       fi
9557       ;;
9558
9559     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9560       case `$LD -v 2>&1` in
9561         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9562         ld_shlibs=no
9563         cat <<_LT_EOF 1>&2
9564
9565 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9566 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9567 *** is disabling shared libraries support.  We urge you to upgrade GNU
9568 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9569 *** your PATH or compiler configuration so that the native linker is
9570 *** used, and then restart.
9571
9572 _LT_EOF
9573         ;;
9574         *)
9575           # For security reasons, it is highly recommended that you always
9576           # use absolute paths for naming shared libraries, and exclude the
9577           # DT_RUNPATH tag from executables and libraries.  But doing so
9578           # requires that you compile everything twice, which is a pain.
9579           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9580             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9581             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9582             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9583           else
9584             ld_shlibs=no
9585           fi
9586         ;;
9587       esac
9588       ;;
9589
9590     sunos4*)
9591       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9592       wlarc=
9593       hardcode_direct=yes
9594       hardcode_shlibpath_var=no
9595       ;;
9596
9597     *)
9598       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9599         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9600         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9601       else
9602         ld_shlibs=no
9603       fi
9604       ;;
9605     esac
9606
9607     if test "$ld_shlibs" = no; then
9608       runpath_var=
9609       hardcode_libdir_flag_spec=
9610       export_dynamic_flag_spec=
9611       whole_archive_flag_spec=
9612     fi
9613   else
9614     # PORTME fill in a description of your system's linker (not GNU ld)
9615     case $host_os in
9616     aix3*)
9617       allow_undefined_flag=unsupported
9618       always_export_symbols=yes
9619       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'
9620       # Note: this linker hardcodes the directories in LIBPATH if there
9621       # are no directories specified by -L.
9622       hardcode_minus_L=yes
9623       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9624         # Neither direct hardcoding nor static linking is supported with a
9625         # broken collect2.
9626         hardcode_direct=unsupported
9627       fi
9628       ;;
9629
9630     aix[4-9]*)
9631       if test "$host_cpu" = ia64; then
9632         # On IA64, the linker does run time linking by default, so we don't
9633         # have to do anything special.
9634         aix_use_runtimelinking=no
9635         exp_sym_flag='-Bexport'
9636         no_entry_flag=""
9637       else
9638         # If we're using GNU nm, then we don't want the "-C" option.
9639         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9640         # Also, AIX nm treats weak defined symbols like other global
9641         # defined symbols, whereas GNU nm marks them as "W".
9642         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9643           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9644         else
9645           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'
9646         fi
9647         aix_use_runtimelinking=no
9648
9649         # Test if we are trying to use run time linking or normal
9650         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9651         # need to do runtime linking.
9652         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9653           for ld_flag in $LDFLAGS; do
9654           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9655             aix_use_runtimelinking=yes
9656             break
9657           fi
9658           done
9659           ;;
9660         esac
9661
9662         exp_sym_flag='-bexport'
9663         no_entry_flag='-bnoentry'
9664       fi
9665
9666       # When large executables or shared objects are built, AIX ld can
9667       # have problems creating the table of contents.  If linking a library
9668       # or program results in "error TOC overflow" add -mminimal-toc to
9669       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9670       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9671
9672       archive_cmds=''
9673       hardcode_direct=yes
9674       hardcode_direct_absolute=yes
9675       hardcode_libdir_separator=':'
9676       link_all_deplibs=yes
9677       file_list_spec='${wl}-f,'
9678
9679       if test "$GCC" = yes; then
9680         case $host_os in aix4.[012]|aix4.[012].*)
9681         # We only want to do this on AIX 4.2 and lower, the check
9682         # below for broken collect2 doesn't work under 4.3+
9683           collect2name=`${CC} -print-prog-name=collect2`
9684           if test -f "$collect2name" &&
9685            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9686           then
9687           # We have reworked collect2
9688           :
9689           else
9690           # We have old collect2
9691           hardcode_direct=unsupported
9692           # It fails to find uninstalled libraries when the uninstalled
9693           # path is not listed in the libpath.  Setting hardcode_minus_L
9694           # to unsupported forces relinking
9695           hardcode_minus_L=yes
9696           hardcode_libdir_flag_spec='-L$libdir'
9697           hardcode_libdir_separator=
9698           fi
9699           ;;
9700         esac
9701         shared_flag='-shared'
9702         if test "$aix_use_runtimelinking" = yes; then
9703           shared_flag="$shared_flag "'${wl}-G'
9704         fi
9705         link_all_deplibs=no
9706       else
9707         # not using gcc
9708         if test "$host_cpu" = ia64; then
9709         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9710         # chokes on -Wl,-G. The following line is correct:
9711           shared_flag='-G'
9712         else
9713           if test "$aix_use_runtimelinking" = yes; then
9714             shared_flag='${wl}-G'
9715           else
9716             shared_flag='${wl}-bM:SRE'
9717           fi
9718         fi
9719       fi
9720
9721       export_dynamic_flag_spec='${wl}-bexpall'
9722       # It seems that -bexpall does not export symbols beginning with
9723       # underscore (_), so it is better to generate a list of symbols to export.
9724       always_export_symbols=yes
9725       if test "$aix_use_runtimelinking" = yes; then
9726         # Warning - without using the other runtime loading flags (-brtl),
9727         # -berok will link without error, but may produce a broken library.
9728         allow_undefined_flag='-berok'
9729         # Determine the default libpath from the value encoded in an
9730         # empty executable.
9731         if test "${lt_cv_aix_libpath+set}" = set; then
9732   aix_libpath=$lt_cv_aix_libpath
9733 else
9734   if ${lt_cv_aix_libpath_+:} false; then :
9735   $as_echo_n "(cached) " >&6
9736 else
9737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9738 /* end confdefs.h.  */
9739
9740 int
9741 main ()
9742 {
9743
9744   ;
9745   return 0;
9746 }
9747 _ACEOF
9748 if ac_fn_c_try_link "$LINENO"; then :
9749
9750   lt_aix_libpath_sed='
9751       /Import File Strings/,/^$/ {
9752           /^0/ {
9753               s/^0  *\([^ ]*\) *$/\1/
9754               p
9755           }
9756       }'
9757   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9758   # Check for a 64-bit object if we didn't find anything.
9759   if test -z "$lt_cv_aix_libpath_"; then
9760     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9761   fi
9762 fi
9763 rm -f core conftest.err conftest.$ac_objext \
9764     conftest$ac_exeext conftest.$ac_ext
9765   if test -z "$lt_cv_aix_libpath_"; then
9766     lt_cv_aix_libpath_="/usr/lib:/lib"
9767   fi
9768
9769 fi
9770
9771   aix_libpath=$lt_cv_aix_libpath_
9772 fi
9773
9774         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9775         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9776       else
9777         if test "$host_cpu" = ia64; then
9778           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9779           allow_undefined_flag="-z nodefs"
9780           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"
9781         else
9782          # Determine the default libpath from the value encoded in an
9783          # empty executable.
9784          if test "${lt_cv_aix_libpath+set}" = set; then
9785   aix_libpath=$lt_cv_aix_libpath
9786 else
9787   if ${lt_cv_aix_libpath_+:} false; then :
9788   $as_echo_n "(cached) " >&6
9789 else
9790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h.  */
9792
9793 int
9794 main ()
9795 {
9796
9797   ;
9798   return 0;
9799 }
9800 _ACEOF
9801 if ac_fn_c_try_link "$LINENO"; then :
9802
9803   lt_aix_libpath_sed='
9804       /Import File Strings/,/^$/ {
9805           /^0/ {
9806               s/^0  *\([^ ]*\) *$/\1/
9807               p
9808           }
9809       }'
9810   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9811   # Check for a 64-bit object if we didn't find anything.
9812   if test -z "$lt_cv_aix_libpath_"; then
9813     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9814   fi
9815 fi
9816 rm -f core conftest.err conftest.$ac_objext \
9817     conftest$ac_exeext conftest.$ac_ext
9818   if test -z "$lt_cv_aix_libpath_"; then
9819     lt_cv_aix_libpath_="/usr/lib:/lib"
9820   fi
9821
9822 fi
9823
9824   aix_libpath=$lt_cv_aix_libpath_
9825 fi
9826
9827          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9828           # Warning - without using the other run time loading flags,
9829           # -berok will link without error, but may produce a broken library.
9830           no_undefined_flag=' ${wl}-bernotok'
9831           allow_undefined_flag=' ${wl}-berok'
9832           if test "$with_gnu_ld" = yes; then
9833             # We only use this code for GNU lds that support --whole-archive.
9834             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9835           else
9836             # Exported symbols can be pulled into shared objects from archives
9837             whole_archive_flag_spec='$convenience'
9838           fi
9839           archive_cmds_need_lc=yes
9840           # This is similar to how AIX traditionally builds its shared libraries.
9841           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'
9842         fi
9843       fi
9844       ;;
9845
9846     amigaos*)
9847       case $host_cpu in
9848       powerpc)
9849             # see comment about AmigaOS4 .so support
9850             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851             archive_expsym_cmds=''
9852         ;;
9853       m68k)
9854             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)'
9855             hardcode_libdir_flag_spec='-L$libdir'
9856             hardcode_minus_L=yes
9857         ;;
9858       esac
9859       ;;
9860
9861     bsdi[45]*)
9862       export_dynamic_flag_spec=-rdynamic
9863       ;;
9864
9865     cygwin* | mingw* | pw32* | cegcc*)
9866       # When not using gcc, we currently assume that we are using
9867       # Microsoft Visual C++.
9868       # hardcode_libdir_flag_spec is actually meaningless, as there is
9869       # no search path for DLLs.
9870       case $cc_basename in
9871       cl*)
9872         # Native MSVC
9873         hardcode_libdir_flag_spec=' '
9874         allow_undefined_flag=unsupported
9875         always_export_symbols=yes
9876         file_list_spec='@'
9877         # Tell ltmain to make .lib files, not .a files.
9878         libext=lib
9879         # Tell ltmain to make .dll files, not .so files.
9880         shrext_cmds=".dll"
9881         # FIXME: Setting linknames here is a bad hack.
9882         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9883         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9884             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9885           else
9886             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9887           fi~
9888           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9889           linknames='
9890         # The linker will not automatically build a static lib if we build a DLL.
9891         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9892         enable_shared_with_static_runtimes=yes
9893         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9894         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9895         # Don't use ranlib
9896         old_postinstall_cmds='chmod 644 $oldlib'
9897         postlink_cmds='lt_outputfile="@OUTPUT@"~
9898           lt_tool_outputfile="@TOOL_OUTPUT@"~
9899           case $lt_outputfile in
9900             *.exe|*.EXE) ;;
9901             *)
9902               lt_outputfile="$lt_outputfile.exe"
9903               lt_tool_outputfile="$lt_tool_outputfile.exe"
9904               ;;
9905           esac~
9906           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9907             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9908             $RM "$lt_outputfile.manifest";
9909           fi'
9910         ;;
9911       *)
9912         # Assume MSVC wrapper
9913         hardcode_libdir_flag_spec=' '
9914         allow_undefined_flag=unsupported
9915         # Tell ltmain to make .lib files, not .a files.
9916         libext=lib
9917         # Tell ltmain to make .dll files, not .so files.
9918         shrext_cmds=".dll"
9919         # FIXME: Setting linknames here is a bad hack.
9920         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9921         # The linker will automatically build a .lib file if we build a DLL.
9922         old_archive_from_new_cmds='true'
9923         # FIXME: Should let the user specify the lib program.
9924         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9925         enable_shared_with_static_runtimes=yes
9926         ;;
9927       esac
9928       ;;
9929
9930     darwin* | rhapsody*)
9931
9932
9933   archive_cmds_need_lc=no
9934   hardcode_direct=no
9935   hardcode_automatic=yes
9936   hardcode_shlibpath_var=unsupported
9937   if test "$lt_cv_ld_force_load" = "yes"; then
9938     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9939
9940   else
9941     whole_archive_flag_spec=''
9942   fi
9943   link_all_deplibs=yes
9944   allow_undefined_flag="$_lt_dar_allow_undefined"
9945   case $cc_basename in
9946      ifort*) _lt_dar_can_shared=yes ;;
9947      *) _lt_dar_can_shared=$GCC ;;
9948   esac
9949   if test "$_lt_dar_can_shared" = "yes"; then
9950     output_verbose_link_cmd=func_echo_all
9951     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9952     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9953     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}"
9954     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}"
9955
9956   else
9957   ld_shlibs=no
9958   fi
9959
9960       ;;
9961
9962     dgux*)
9963       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9964       hardcode_libdir_flag_spec='-L$libdir'
9965       hardcode_shlibpath_var=no
9966       ;;
9967
9968     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9969     # support.  Future versions do this automatically, but an explicit c++rt0.o
9970     # does not break anything, and helps significantly (at the cost of a little
9971     # extra space).
9972     freebsd2.2*)
9973       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9974       hardcode_libdir_flag_spec='-R$libdir'
9975       hardcode_direct=yes
9976       hardcode_shlibpath_var=no
9977       ;;
9978
9979     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9980     freebsd2.*)
9981       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9982       hardcode_direct=yes
9983       hardcode_minus_L=yes
9984       hardcode_shlibpath_var=no
9985       ;;
9986
9987     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9988     freebsd* | dragonfly*)
9989       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9990       hardcode_libdir_flag_spec='-R$libdir'
9991       hardcode_direct=yes
9992       hardcode_shlibpath_var=no
9993       ;;
9994
9995     hpux9*)
9996       if test "$GCC" = yes; then
9997         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9998       else
9999         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'
10000       fi
10001       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10002       hardcode_libdir_separator=:
10003       hardcode_direct=yes
10004
10005       # hardcode_minus_L: Not really in the search PATH,
10006       # but as the default location of the library.
10007       hardcode_minus_L=yes
10008       export_dynamic_flag_spec='${wl}-E'
10009       ;;
10010
10011     hpux10*)
10012       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10013         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10014       else
10015         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10016       fi
10017       if test "$with_gnu_ld" = no; then
10018         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10019         hardcode_libdir_separator=:
10020         hardcode_direct=yes
10021         hardcode_direct_absolute=yes
10022         export_dynamic_flag_spec='${wl}-E'
10023         # hardcode_minus_L: Not really in the search PATH,
10024         # but as the default location of the library.
10025         hardcode_minus_L=yes
10026       fi
10027       ;;
10028
10029     hpux11*)
10030       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10031         case $host_cpu in
10032         hppa*64*)
10033           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10034           ;;
10035         ia64*)
10036           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10037           ;;
10038         *)
10039           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10040           ;;
10041         esac
10042       else
10043         case $host_cpu in
10044         hppa*64*)
10045           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10046           ;;
10047         ia64*)
10048           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10049           ;;
10050         *)
10051
10052           # Older versions of the 11.00 compiler do not understand -b yet
10053           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10054           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10055 $as_echo_n "checking if $CC understands -b... " >&6; }
10056 if ${lt_cv_prog_compiler__b+:} false; then :
10057   $as_echo_n "(cached) " >&6
10058 else
10059   lt_cv_prog_compiler__b=no
10060    save_LDFLAGS="$LDFLAGS"
10061    LDFLAGS="$LDFLAGS -b"
10062    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10063    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10064      # The linker can only warn and ignore the option if not recognized
10065      # So say no if there are warnings
10066      if test -s conftest.err; then
10067        # Append any errors to the config.log.
10068        cat conftest.err 1>&5
10069        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10070        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10071        if diff conftest.exp conftest.er2 >/dev/null; then
10072          lt_cv_prog_compiler__b=yes
10073        fi
10074      else
10075        lt_cv_prog_compiler__b=yes
10076      fi
10077    fi
10078    $RM -r conftest*
10079    LDFLAGS="$save_LDFLAGS"
10080
10081 fi
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10083 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10084
10085 if test x"$lt_cv_prog_compiler__b" = xyes; then
10086     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10087 else
10088     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10089 fi
10090
10091           ;;
10092         esac
10093       fi
10094       if test "$with_gnu_ld" = no; then
10095         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10096         hardcode_libdir_separator=:
10097
10098         case $host_cpu in
10099         hppa*64*|ia64*)
10100           hardcode_direct=no
10101           hardcode_shlibpath_var=no
10102           ;;
10103         *)
10104           hardcode_direct=yes
10105           hardcode_direct_absolute=yes
10106           export_dynamic_flag_spec='${wl}-E'
10107
10108           # hardcode_minus_L: Not really in the search PATH,
10109           # but as the default location of the library.
10110           hardcode_minus_L=yes
10111           ;;
10112         esac
10113       fi
10114       ;;
10115
10116     irix5* | irix6* | nonstopux*)
10117       if test "$GCC" = yes; then
10118         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10119         # Try to use the -exported_symbol ld option, if it does not
10120         # work, assume that -exports_file does not work either and
10121         # implicitly export all symbols.
10122         # This should be the same for all languages, so no per-tag cache variable.
10123         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10124 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10125 if ${lt_cv_irix_exported_symbol+:} false; then :
10126   $as_echo_n "(cached) " >&6
10127 else
10128   save_LDFLAGS="$LDFLAGS"
10129            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10130            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10131 /* end confdefs.h.  */
10132 int foo (void) { return 0; }
10133 _ACEOF
10134 if ac_fn_c_try_link "$LINENO"; then :
10135   lt_cv_irix_exported_symbol=yes
10136 else
10137   lt_cv_irix_exported_symbol=no
10138 fi
10139 rm -f core conftest.err conftest.$ac_objext \
10140     conftest$ac_exeext conftest.$ac_ext
10141            LDFLAGS="$save_LDFLAGS"
10142 fi
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10144 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10145         if test "$lt_cv_irix_exported_symbol" = yes; then
10146           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10147         fi
10148       else
10149         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10150         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10151       fi
10152       archive_cmds_need_lc='no'
10153       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10154       hardcode_libdir_separator=:
10155       inherit_rpath=yes
10156       link_all_deplibs=yes
10157       ;;
10158
10159     netbsd* | netbsdelf*-gnu)
10160       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10161         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10162       else
10163         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10164       fi
10165       hardcode_libdir_flag_spec='-R$libdir'
10166       hardcode_direct=yes
10167       hardcode_shlibpath_var=no
10168       ;;
10169
10170     newsos6)
10171       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10172       hardcode_direct=yes
10173       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10174       hardcode_libdir_separator=:
10175       hardcode_shlibpath_var=no
10176       ;;
10177
10178     *nto* | *qnx*)
10179       ;;
10180
10181     openbsd*)
10182       if test -f /usr/libexec/ld.so; then
10183         hardcode_direct=yes
10184         hardcode_shlibpath_var=no
10185         hardcode_direct_absolute=yes
10186         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10187           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10188           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10189           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10190           export_dynamic_flag_spec='${wl}-E'
10191         else
10192           case $host_os in
10193            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10194              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10195              hardcode_libdir_flag_spec='-R$libdir'
10196              ;;
10197            *)
10198              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10199              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10200              ;;
10201           esac
10202         fi
10203       else
10204         ld_shlibs=no
10205       fi
10206       ;;
10207
10208     os2*)
10209       hardcode_libdir_flag_spec='-L$libdir'
10210       hardcode_minus_L=yes
10211       allow_undefined_flag=unsupported
10212       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'
10213       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10214       ;;
10215
10216     osf3*)
10217       if test "$GCC" = yes; then
10218         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10219         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10220       else
10221         allow_undefined_flag=' -expect_unresolved \*'
10222         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10223       fi
10224       archive_cmds_need_lc='no'
10225       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10226       hardcode_libdir_separator=:
10227       ;;
10228
10229     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10230       if test "$GCC" = yes; then
10231         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10232         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10233         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10234       else
10235         allow_undefined_flag=' -expect_unresolved \*'
10236         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10237         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~
10238         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10239
10240         # Both c and cxx compiler support -rpath directly
10241         hardcode_libdir_flag_spec='-rpath $libdir'
10242       fi
10243       archive_cmds_need_lc='no'
10244       hardcode_libdir_separator=:
10245       ;;
10246
10247     solaris*)
10248       no_undefined_flag=' -z defs'
10249       if test "$GCC" = yes; then
10250         wlarc='${wl}'
10251         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10252         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10253           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10254       else
10255         case `$CC -V 2>&1` in
10256         *"Compilers 5.0"*)
10257           wlarc=''
10258           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10260           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10261           ;;
10262         *)
10263           wlarc='${wl}'
10264           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10265           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10266           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10267           ;;
10268         esac
10269       fi
10270       hardcode_libdir_flag_spec='-R$libdir'
10271       hardcode_shlibpath_var=no
10272       case $host_os in
10273       solaris2.[0-5] | solaris2.[0-5].*) ;;
10274       *)
10275         # The compiler driver will combine and reorder linker options,
10276         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10277         # but is careful enough not to reorder.
10278         # Supported since Solaris 2.6 (maybe 2.5.1?)
10279         if test "$GCC" = yes; then
10280           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10281         else
10282           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10283         fi
10284         ;;
10285       esac
10286       link_all_deplibs=yes
10287       ;;
10288
10289     sunos4*)
10290       if test "x$host_vendor" = xsequent; then
10291         # Use $CC to link under sequent, because it throws in some extra .o
10292         # files that make .init and .fini sections work.
10293         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10294       else
10295         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10296       fi
10297       hardcode_libdir_flag_spec='-L$libdir'
10298       hardcode_direct=yes
10299       hardcode_minus_L=yes
10300       hardcode_shlibpath_var=no
10301       ;;
10302
10303     sysv4)
10304       case $host_vendor in
10305         sni)
10306           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307           hardcode_direct=yes # is this really true???
10308         ;;
10309         siemens)
10310           ## LD is ld it makes a PLAMLIB
10311           ## CC just makes a GrossModule.
10312           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10313           reload_cmds='$CC -r -o $output$reload_objs'
10314           hardcode_direct=no
10315         ;;
10316         motorola)
10317           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10318           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10319         ;;
10320       esac
10321       runpath_var='LD_RUN_PATH'
10322       hardcode_shlibpath_var=no
10323       ;;
10324
10325     sysv4.3*)
10326       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10327       hardcode_shlibpath_var=no
10328       export_dynamic_flag_spec='-Bexport'
10329       ;;
10330
10331     sysv4*MP*)
10332       if test -d /usr/nec; then
10333         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10334         hardcode_shlibpath_var=no
10335         runpath_var=LD_RUN_PATH
10336         hardcode_runpath_var=yes
10337         ld_shlibs=yes
10338       fi
10339       ;;
10340
10341     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10342       no_undefined_flag='${wl}-z,text'
10343       archive_cmds_need_lc=no
10344       hardcode_shlibpath_var=no
10345       runpath_var='LD_RUN_PATH'
10346
10347       if test "$GCC" = yes; then
10348         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10349         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10350       else
10351         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10352         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10353       fi
10354       ;;
10355
10356     sysv5* | sco3.2v5* | sco5v6*)
10357       # Note: We can NOT use -z defs as we might desire, because we do not
10358       # link with -lc, and that would cause any symbols used from libc to
10359       # always be unresolved, which means just about no library would
10360       # ever link correctly.  If we're not using GNU ld we use -z text
10361       # though, which does catch some bad symbols but isn't as heavy-handed
10362       # as -z defs.
10363       no_undefined_flag='${wl}-z,text'
10364       allow_undefined_flag='${wl}-z,nodefs'
10365       archive_cmds_need_lc=no
10366       hardcode_shlibpath_var=no
10367       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10368       hardcode_libdir_separator=':'
10369       link_all_deplibs=yes
10370       export_dynamic_flag_spec='${wl}-Bexport'
10371       runpath_var='LD_RUN_PATH'
10372
10373       if test "$GCC" = yes; then
10374         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10375         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10376       else
10377         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10378         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10379       fi
10380       ;;
10381
10382     uts4*)
10383       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10384       hardcode_libdir_flag_spec='-L$libdir'
10385       hardcode_shlibpath_var=no
10386       ;;
10387
10388     *)
10389       ld_shlibs=no
10390       ;;
10391     esac
10392
10393     if test x$host_vendor = xsni; then
10394       case $host in
10395       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10396         export_dynamic_flag_spec='${wl}-Blargedynsym'
10397         ;;
10398       esac
10399     fi
10400   fi
10401
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10403 $as_echo "$ld_shlibs" >&6; }
10404 test "$ld_shlibs" = no && can_build_shared=no
10405
10406 with_gnu_ld=$with_gnu_ld
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422 #
10423 # Do we need to explicitly link libc?
10424 #
10425 case "x$archive_cmds_need_lc" in
10426 x|xyes)
10427   # Assume -lc should be added
10428   archive_cmds_need_lc=yes
10429
10430   if test "$enable_shared" = yes && test "$GCC" = yes; then
10431     case $archive_cmds in
10432     *'~'*)
10433       # FIXME: we may have to deal with multi-command sequences.
10434       ;;
10435     '$CC '*)
10436       # Test whether the compiler implicitly links with -lc since on some
10437       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10438       # to ld, don't add -lc before -lgcc.
10439       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10440 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10441 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10442   $as_echo_n "(cached) " >&6
10443 else
10444   $RM conftest*
10445         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10446
10447         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10448   (eval $ac_compile) 2>&5
10449   ac_status=$?
10450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10451   test $ac_status = 0; } 2>conftest.err; then
10452           soname=conftest
10453           lib=conftest
10454           libobjs=conftest.$ac_objext
10455           deplibs=
10456           wl=$lt_prog_compiler_wl
10457           pic_flag=$lt_prog_compiler_pic
10458           compiler_flags=-v
10459           linker_flags=-v
10460           verstring=
10461           output_objdir=.
10462           libname=conftest
10463           lt_save_allow_undefined_flag=$allow_undefined_flag
10464           allow_undefined_flag=
10465           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10466   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10467   ac_status=$?
10468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10469   test $ac_status = 0; }
10470           then
10471             lt_cv_archive_cmds_need_lc=no
10472           else
10473             lt_cv_archive_cmds_need_lc=yes
10474           fi
10475           allow_undefined_flag=$lt_save_allow_undefined_flag
10476         else
10477           cat conftest.err 1>&5
10478         fi
10479         $RM conftest*
10480
10481 fi
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10483 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10484       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10485       ;;
10486     esac
10487   fi
10488   ;;
10489 esac
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10643 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10644
10645 if test "$GCC" = yes; then
10646   case $host_os in
10647     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10648     *) lt_awk_arg="/^libraries:/" ;;
10649   esac
10650   case $host_os in
10651     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10652     *) lt_sed_strip_eq="s,=/,/,g" ;;
10653   esac
10654   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10655   case $lt_search_path_spec in
10656   *\;*)
10657     # if the path contains ";" then we assume it to be the separator
10658     # otherwise default to the standard path separator (i.e. ":") - it is
10659     # assumed that no part of a normal pathname contains ";" but that should
10660     # okay in the real world where ";" in dirpaths is itself problematic.
10661     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10662     ;;
10663   *)
10664     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10665     ;;
10666   esac
10667   # Ok, now we have the path, separated by spaces, we can step through it
10668   # and add multilib dir if necessary.
10669   lt_tmp_lt_search_path_spec=
10670   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10671   for lt_sys_path in $lt_search_path_spec; do
10672     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10673       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10674     else
10675       test -d "$lt_sys_path" && \
10676         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10677     fi
10678   done
10679   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10680 BEGIN {RS=" "; FS="/|\n";} {
10681   lt_foo="";
10682   lt_count=0;
10683   for (lt_i = NF; lt_i > 0; lt_i--) {
10684     if ($lt_i != "" && $lt_i != ".") {
10685       if ($lt_i == "..") {
10686         lt_count++;
10687       } else {
10688         if (lt_count == 0) {
10689           lt_foo="/" $lt_i lt_foo;
10690         } else {
10691           lt_count--;
10692         }
10693       }
10694     }
10695   }
10696   if (lt_foo != "") { lt_freq[lt_foo]++; }
10697   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10698 }'`
10699   # AWK program above erroneously prepends '/' to C:/dos/paths
10700   # for these hosts.
10701   case $host_os in
10702     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10703       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10704   esac
10705   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10706 else
10707   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10708 fi
10709 library_names_spec=
10710 libname_spec='lib$name'
10711 soname_spec=
10712 shrext_cmds=".so"
10713 postinstall_cmds=
10714 postuninstall_cmds=
10715 finish_cmds=
10716 finish_eval=
10717 shlibpath_var=
10718 shlibpath_overrides_runpath=unknown
10719 version_type=none
10720 dynamic_linker="$host_os ld.so"
10721 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10722 need_lib_prefix=unknown
10723 hardcode_into_libs=no
10724
10725 # when you set need_version to no, make sure it does not cause -set_version
10726 # flags to be left without arguments
10727 need_version=unknown
10728
10729 case $host_os in
10730 aix3*)
10731   version_type=linux # correct to gnu/linux during the next big refactor
10732   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10733   shlibpath_var=LIBPATH
10734
10735   # AIX 3 has no versioning support, so we append a major version to the name.
10736   soname_spec='${libname}${release}${shared_ext}$major'
10737   ;;
10738
10739 aix[4-9]*)
10740   version_type=linux # correct to gnu/linux during the next big refactor
10741   need_lib_prefix=no
10742   need_version=no
10743   hardcode_into_libs=yes
10744   if test "$host_cpu" = ia64; then
10745     # AIX 5 supports IA64
10746     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10747     shlibpath_var=LD_LIBRARY_PATH
10748   else
10749     # With GCC up to 2.95.x, collect2 would create an import file
10750     # for dependence libraries.  The import file would start with
10751     # the line `#! .'.  This would cause the generated library to
10752     # depend on `.', always an invalid library.  This was fixed in
10753     # development snapshots of GCC prior to 3.0.
10754     case $host_os in
10755       aix4 | aix4.[01] | aix4.[01].*)
10756       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10757            echo ' yes '
10758            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10759         :
10760       else
10761         can_build_shared=no
10762       fi
10763       ;;
10764     esac
10765     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10766     # soname into executable. Probably we can add versioning support to
10767     # collect2, so additional links can be useful in future.
10768     if test "$aix_use_runtimelinking" = yes; then
10769       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10770       # instead of lib<name>.a to let people know that these are not
10771       # typical AIX shared libraries.
10772       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773     else
10774       # We preserve .a as extension for shared libraries through AIX4.2
10775       # and later when we are not doing run time linking.
10776       library_names_spec='${libname}${release}.a $libname.a'
10777       soname_spec='${libname}${release}${shared_ext}$major'
10778     fi
10779     shlibpath_var=LIBPATH
10780   fi
10781   ;;
10782
10783 amigaos*)
10784   case $host_cpu in
10785   powerpc)
10786     # Since July 2007 AmigaOS4 officially supports .so libraries.
10787     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789     ;;
10790   m68k)
10791     library_names_spec='$libname.ixlibrary $libname.a'
10792     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10793     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10794     ;;
10795   esac
10796   ;;
10797
10798 beos*)
10799   library_names_spec='${libname}${shared_ext}'
10800   dynamic_linker="$host_os ld.so"
10801   shlibpath_var=LIBRARY_PATH
10802   ;;
10803
10804 bsdi[45]*)
10805   version_type=linux # correct to gnu/linux during the next big refactor
10806   need_version=no
10807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10808   soname_spec='${libname}${release}${shared_ext}$major'
10809   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10810   shlibpath_var=LD_LIBRARY_PATH
10811   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10812   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10813   # the default ld.so.conf also contains /usr/contrib/lib and
10814   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10815   # libtool to hard-code these into programs
10816   ;;
10817
10818 cygwin* | mingw* | pw32* | cegcc*)
10819   version_type=windows
10820   shrext_cmds=".dll"
10821   need_version=no
10822   need_lib_prefix=no
10823
10824   case $GCC,$cc_basename in
10825   yes,*)
10826     # gcc
10827     library_names_spec='$libname.dll.a'
10828     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10829     postinstall_cmds='base_file=`basename \${file}`~
10830       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10831       dldir=$destdir/`dirname \$dlpath`~
10832       test -d \$dldir || mkdir -p \$dldir~
10833       $install_prog $dir/$dlname \$dldir/$dlname~
10834       chmod a+x \$dldir/$dlname~
10835       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10836         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10837       fi'
10838     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10839       dlpath=$dir/\$dldll~
10840        $RM \$dlpath'
10841     shlibpath_overrides_runpath=yes
10842
10843     case $host_os in
10844     cygwin*)
10845       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10846       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10847
10848       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10849       ;;
10850     mingw* | cegcc*)
10851       # MinGW DLLs use traditional 'lib' prefix
10852       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10853       ;;
10854     pw32*)
10855       # pw32 DLLs use 'pw' prefix rather than 'lib'
10856       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10857       ;;
10858     esac
10859     dynamic_linker='Win32 ld.exe'
10860     ;;
10861
10862   *,cl*)
10863     # Native MSVC
10864     libname_spec='$name'
10865     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10866     library_names_spec='${libname}.dll.lib'
10867
10868     case $build_os in
10869     mingw*)
10870       sys_lib_search_path_spec=
10871       lt_save_ifs=$IFS
10872       IFS=';'
10873       for lt_path in $LIB
10874       do
10875         IFS=$lt_save_ifs
10876         # Let DOS variable expansion print the short 8.3 style file name.
10877         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10878         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10879       done
10880       IFS=$lt_save_ifs
10881       # Convert to MSYS style.
10882       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10883       ;;
10884     cygwin*)
10885       # Convert to unix form, then to dos form, then back to unix form
10886       # but this time dos style (no spaces!) so that the unix form looks
10887       # like /cygdrive/c/PROGRA~1:/cygdr...
10888       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10889       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10890       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10891       ;;
10892     *)
10893       sys_lib_search_path_spec="$LIB"
10894       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10895         # It is most probably a Windows format PATH.
10896         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10897       else
10898         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10899       fi
10900       # FIXME: find the short name or the path components, as spaces are
10901       # common. (e.g. "Program Files" -> "PROGRA~1")
10902       ;;
10903     esac
10904
10905     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10906     postinstall_cmds='base_file=`basename \${file}`~
10907       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10908       dldir=$destdir/`dirname \$dlpath`~
10909       test -d \$dldir || mkdir -p \$dldir~
10910       $install_prog $dir/$dlname \$dldir/$dlname'
10911     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10912       dlpath=$dir/\$dldll~
10913        $RM \$dlpath'
10914     shlibpath_overrides_runpath=yes
10915     dynamic_linker='Win32 link.exe'
10916     ;;
10917
10918   *)
10919     # Assume MSVC wrapper
10920     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10921     dynamic_linker='Win32 ld.exe'
10922     ;;
10923   esac
10924   # FIXME: first we should search . and the directory the executable is in
10925   shlibpath_var=PATH
10926   ;;
10927
10928 darwin* | rhapsody*)
10929   dynamic_linker="$host_os dyld"
10930   version_type=darwin
10931   need_lib_prefix=no
10932   need_version=no
10933   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10934   soname_spec='${libname}${release}${major}$shared_ext'
10935   shlibpath_overrides_runpath=yes
10936   shlibpath_var=DYLD_LIBRARY_PATH
10937   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10938
10939   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10940   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10941   ;;
10942
10943 dgux*)
10944   version_type=linux # correct to gnu/linux during the next big refactor
10945   need_lib_prefix=no
10946   need_version=no
10947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10948   soname_spec='${libname}${release}${shared_ext}$major'
10949   shlibpath_var=LD_LIBRARY_PATH
10950   ;;
10951
10952 freebsd* | dragonfly*)
10953   # DragonFly does not have aout.  When/if they implement a new
10954   # versioning mechanism, adjust this.
10955   if test -x /usr/bin/objformat; then
10956     objformat=`/usr/bin/objformat`
10957   else
10958     case $host_os in
10959     freebsd[23].*) objformat=aout ;;
10960     *) objformat=elf ;;
10961     esac
10962   fi
10963   version_type=freebsd-$objformat
10964   case $version_type in
10965     freebsd-elf*)
10966       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10967       need_version=no
10968       need_lib_prefix=no
10969       ;;
10970     freebsd-*)
10971       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10972       need_version=yes
10973       ;;
10974   esac
10975   shlibpath_var=LD_LIBRARY_PATH
10976   case $host_os in
10977   freebsd2.*)
10978     shlibpath_overrides_runpath=yes
10979     ;;
10980   freebsd3.[01]* | freebsdelf3.[01]*)
10981     shlibpath_overrides_runpath=yes
10982     hardcode_into_libs=yes
10983     ;;
10984   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10985   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10986     shlibpath_overrides_runpath=no
10987     hardcode_into_libs=yes
10988     ;;
10989   *) # from 4.6 on, and DragonFly
10990     shlibpath_overrides_runpath=yes
10991     hardcode_into_libs=yes
10992     ;;
10993   esac
10994   ;;
10995
10996 haiku*)
10997   version_type=linux # correct to gnu/linux during the next big refactor
10998   need_lib_prefix=no
10999   need_version=no
11000   dynamic_linker="$host_os runtime_loader"
11001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11002   soname_spec='${libname}${release}${shared_ext}$major'
11003   shlibpath_var=LIBRARY_PATH
11004   shlibpath_overrides_runpath=yes
11005   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11006   hardcode_into_libs=yes
11007   ;;
11008
11009 hpux9* | hpux10* | hpux11*)
11010   # Give a soname corresponding to the major version so that dld.sl refuses to
11011   # link against other versions.
11012   version_type=sunos
11013   need_lib_prefix=no
11014   need_version=no
11015   case $host_cpu in
11016   ia64*)
11017     shrext_cmds='.so'
11018     hardcode_into_libs=yes
11019     dynamic_linker="$host_os dld.so"
11020     shlibpath_var=LD_LIBRARY_PATH
11021     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023     soname_spec='${libname}${release}${shared_ext}$major'
11024     if test "X$HPUX_IA64_MODE" = X32; then
11025       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11026     else
11027       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11028     fi
11029     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11030     ;;
11031   hppa*64*)
11032     shrext_cmds='.sl'
11033     hardcode_into_libs=yes
11034     dynamic_linker="$host_os dld.sl"
11035     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11036     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11037     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11038     soname_spec='${libname}${release}${shared_ext}$major'
11039     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11040     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11041     ;;
11042   *)
11043     shrext_cmds='.sl'
11044     dynamic_linker="$host_os dld.sl"
11045     shlibpath_var=SHLIB_PATH
11046     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048     soname_spec='${libname}${release}${shared_ext}$major'
11049     ;;
11050   esac
11051   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11052   postinstall_cmds='chmod 555 $lib'
11053   # or fails outright, so override atomically:
11054   install_override_mode=555
11055   ;;
11056
11057 interix[3-9]*)
11058   version_type=linux # correct to gnu/linux during the next big refactor
11059   need_lib_prefix=no
11060   need_version=no
11061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11062   soname_spec='${libname}${release}${shared_ext}$major'
11063   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11064   shlibpath_var=LD_LIBRARY_PATH
11065   shlibpath_overrides_runpath=no
11066   hardcode_into_libs=yes
11067   ;;
11068
11069 irix5* | irix6* | nonstopux*)
11070   case $host_os in
11071     nonstopux*) version_type=nonstopux ;;
11072     *)
11073         if test "$lt_cv_prog_gnu_ld" = yes; then
11074                 version_type=linux # correct to gnu/linux during the next big refactor
11075         else
11076                 version_type=irix
11077         fi ;;
11078   esac
11079   need_lib_prefix=no
11080   need_version=no
11081   soname_spec='${libname}${release}${shared_ext}$major'
11082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11083   case $host_os in
11084   irix5* | nonstopux*)
11085     libsuff= shlibsuff=
11086     ;;
11087   *)
11088     case $LD in # libtool.m4 will add one of these switches to LD
11089     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11090       libsuff= shlibsuff= libmagic=32-bit;;
11091     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11092       libsuff=32 shlibsuff=N32 libmagic=N32;;
11093     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11094       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11095     *) libsuff= shlibsuff= libmagic=never-match;;
11096     esac
11097     ;;
11098   esac
11099   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11100   shlibpath_overrides_runpath=no
11101   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11102   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11103   hardcode_into_libs=yes
11104   ;;
11105
11106 # No shared lib support for Linux oldld, aout, or coff.
11107 linux*oldld* | linux*aout* | linux*coff*)
11108   dynamic_linker=no
11109   ;;
11110
11111 # This must be glibc/ELF.
11112 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11113   version_type=linux # correct to gnu/linux during the next big refactor
11114   need_lib_prefix=no
11115   need_version=no
11116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11117   soname_spec='${libname}${release}${shared_ext}$major'
11118   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11119   shlibpath_var=LD_LIBRARY_PATH
11120   shlibpath_overrides_runpath=no
11121
11122   # Some binutils ld are patched to set DT_RUNPATH
11123   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11124   $as_echo_n "(cached) " >&6
11125 else
11126   lt_cv_shlibpath_overrides_runpath=no
11127     save_LDFLAGS=$LDFLAGS
11128     save_libdir=$libdir
11129     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11130          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11131     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11132 /* end confdefs.h.  */
11133
11134 int
11135 main ()
11136 {
11137
11138   ;
11139   return 0;
11140 }
11141 _ACEOF
11142 if ac_fn_c_try_link "$LINENO"; then :
11143   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11144   lt_cv_shlibpath_overrides_runpath=yes
11145 fi
11146 fi
11147 rm -f core conftest.err conftest.$ac_objext \
11148     conftest$ac_exeext conftest.$ac_ext
11149     LDFLAGS=$save_LDFLAGS
11150     libdir=$save_libdir
11151
11152 fi
11153
11154   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11155
11156   # This implies no fast_install, which is unacceptable.
11157   # Some rework will be needed to allow for fast_install
11158   # before this can be enabled.
11159   hardcode_into_libs=yes
11160
11161   # Append ld.so.conf contents to the search path
11162   if test -f /etc/ld.so.conf; then
11163     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11164     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11165   fi
11166
11167   # We used to test for /lib/ld.so.1 and disable shared libraries on
11168   # powerpc, because MkLinux only supported shared libraries with the
11169   # GNU dynamic linker.  Since this was broken with cross compilers,
11170   # most powerpc-linux boxes support dynamic linking these days and
11171   # people can always --disable-shared, the test was removed, and we
11172   # assume the GNU/Linux dynamic linker is in use.
11173   dynamic_linker='GNU/Linux ld.so'
11174   ;;
11175
11176 netbsdelf*-gnu)
11177   version_type=linux
11178   need_lib_prefix=no
11179   need_version=no
11180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11181   soname_spec='${libname}${release}${shared_ext}$major'
11182   shlibpath_var=LD_LIBRARY_PATH
11183   shlibpath_overrides_runpath=no
11184   hardcode_into_libs=yes
11185   dynamic_linker='NetBSD ld.elf_so'
11186   ;;
11187
11188 netbsd*)
11189   version_type=sunos
11190   need_lib_prefix=no
11191   need_version=no
11192   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11194     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11195     dynamic_linker='NetBSD (a.out) ld.so'
11196   else
11197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11198     soname_spec='${libname}${release}${shared_ext}$major'
11199     dynamic_linker='NetBSD ld.elf_so'
11200   fi
11201   shlibpath_var=LD_LIBRARY_PATH
11202   shlibpath_overrides_runpath=yes
11203   hardcode_into_libs=yes
11204   ;;
11205
11206 newsos6)
11207   version_type=linux # correct to gnu/linux during the next big refactor
11208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209   shlibpath_var=LD_LIBRARY_PATH
11210   shlibpath_overrides_runpath=yes
11211   ;;
11212
11213 *nto* | *qnx*)
11214   version_type=qnx
11215   need_lib_prefix=no
11216   need_version=no
11217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218   soname_spec='${libname}${release}${shared_ext}$major'
11219   shlibpath_var=LD_LIBRARY_PATH
11220   shlibpath_overrides_runpath=no
11221   hardcode_into_libs=yes
11222   dynamic_linker='ldqnx.so'
11223   ;;
11224
11225 openbsd*)
11226   version_type=sunos
11227   sys_lib_dlsearch_path_spec="/usr/lib"
11228   need_lib_prefix=no
11229   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11230   case $host_os in
11231     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11232     *)                          need_version=no  ;;
11233   esac
11234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11235   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11236   shlibpath_var=LD_LIBRARY_PATH
11237   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11238     case $host_os in
11239       openbsd2.[89] | openbsd2.[89].*)
11240         shlibpath_overrides_runpath=no
11241         ;;
11242       *)
11243         shlibpath_overrides_runpath=yes
11244         ;;
11245       esac
11246   else
11247     shlibpath_overrides_runpath=yes
11248   fi
11249   ;;
11250
11251 os2*)
11252   libname_spec='$name'
11253   shrext_cmds=".dll"
11254   need_lib_prefix=no
11255   library_names_spec='$libname${shared_ext} $libname.a'
11256   dynamic_linker='OS/2 ld.exe'
11257   shlibpath_var=LIBPATH
11258   ;;
11259
11260 osf3* | osf4* | osf5*)
11261   version_type=osf
11262   need_lib_prefix=no
11263   need_version=no
11264   soname_spec='${libname}${release}${shared_ext}$major'
11265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266   shlibpath_var=LD_LIBRARY_PATH
11267   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11268   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11269   ;;
11270
11271 rdos*)
11272   dynamic_linker=no
11273   ;;
11274
11275 solaris*)
11276   version_type=linux # correct to gnu/linux during the next big refactor
11277   need_lib_prefix=no
11278   need_version=no
11279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280   soname_spec='${libname}${release}${shared_ext}$major'
11281   shlibpath_var=LD_LIBRARY_PATH
11282   shlibpath_overrides_runpath=yes
11283   hardcode_into_libs=yes
11284   # ldd complains unless libraries are executable
11285   postinstall_cmds='chmod +x $lib'
11286   ;;
11287
11288 sunos4*)
11289   version_type=sunos
11290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11291   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11292   shlibpath_var=LD_LIBRARY_PATH
11293   shlibpath_overrides_runpath=yes
11294   if test "$with_gnu_ld" = yes; then
11295     need_lib_prefix=no
11296   fi
11297   need_version=yes
11298   ;;
11299
11300 sysv4 | sysv4.3*)
11301   version_type=linux # correct to gnu/linux during the next big refactor
11302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303   soname_spec='${libname}${release}${shared_ext}$major'
11304   shlibpath_var=LD_LIBRARY_PATH
11305   case $host_vendor in
11306     sni)
11307       shlibpath_overrides_runpath=no
11308       need_lib_prefix=no
11309       runpath_var=LD_RUN_PATH
11310       ;;
11311     siemens)
11312       need_lib_prefix=no
11313       ;;
11314     motorola)
11315       need_lib_prefix=no
11316       need_version=no
11317       shlibpath_overrides_runpath=no
11318       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11319       ;;
11320   esac
11321   ;;
11322
11323 sysv4*MP*)
11324   if test -d /usr/nec ;then
11325     version_type=linux # correct to gnu/linux during the next big refactor
11326     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11327     soname_spec='$libname${shared_ext}.$major'
11328     shlibpath_var=LD_LIBRARY_PATH
11329   fi
11330   ;;
11331
11332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11333   version_type=freebsd-elf
11334   need_lib_prefix=no
11335   need_version=no
11336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11337   soname_spec='${libname}${release}${shared_ext}$major'
11338   shlibpath_var=LD_LIBRARY_PATH
11339   shlibpath_overrides_runpath=yes
11340   hardcode_into_libs=yes
11341   if test "$with_gnu_ld" = yes; then
11342     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11343   else
11344     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11345     case $host_os in
11346       sco3.2v5*)
11347         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11348         ;;
11349     esac
11350   fi
11351   sys_lib_dlsearch_path_spec='/usr/lib'
11352   ;;
11353
11354 tpf*)
11355   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11356   version_type=linux # correct to gnu/linux during the next big refactor
11357   need_lib_prefix=no
11358   need_version=no
11359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360   shlibpath_var=LD_LIBRARY_PATH
11361   shlibpath_overrides_runpath=no
11362   hardcode_into_libs=yes
11363   ;;
11364
11365 uts4*)
11366   version_type=linux # correct to gnu/linux during the next big refactor
11367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11368   soname_spec='${libname}${release}${shared_ext}$major'
11369   shlibpath_var=LD_LIBRARY_PATH
11370   ;;
11371
11372 *)
11373   dynamic_linker=no
11374   ;;
11375 esac
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11377 $as_echo "$dynamic_linker" >&6; }
11378 test "$dynamic_linker" = no && can_build_shared=no
11379
11380 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11381 if test "$GCC" = yes; then
11382   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11383 fi
11384
11385 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11386   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11387 fi
11388 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11389   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11390 fi
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11484 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11485 hardcode_action=
11486 if test -n "$hardcode_libdir_flag_spec" ||
11487    test -n "$runpath_var" ||
11488    test "X$hardcode_automatic" = "Xyes" ; then
11489
11490   # We can hardcode non-existent directories.
11491   if test "$hardcode_direct" != no &&
11492      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11493      # have to relink, otherwise we might link with an installed library
11494      # when we should be linking with a yet-to-be-installed one
11495      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11496      test "$hardcode_minus_L" != no; then
11497     # Linking always hardcodes the temporary library directory.
11498     hardcode_action=relink
11499   else
11500     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11501     hardcode_action=immediate
11502   fi
11503 else
11504   # We cannot hardcode anything, or else we can only hardcode existing
11505   # directories.
11506   hardcode_action=unsupported
11507 fi
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11509 $as_echo "$hardcode_action" >&6; }
11510
11511 if test "$hardcode_action" = relink ||
11512    test "$inherit_rpath" = yes; then
11513   # Fast installation is not supported
11514   enable_fast_install=no
11515 elif test "$shlibpath_overrides_runpath" = yes ||
11516      test "$enable_shared" = no; then
11517   # Fast installation is not necessary
11518   enable_fast_install=needless
11519 fi
11520
11521
11522
11523
11524
11525
11526   if test "x$enable_dlopen" != xyes; then
11527   enable_dlopen=unknown
11528   enable_dlopen_self=unknown
11529   enable_dlopen_self_static=unknown
11530 else
11531   lt_cv_dlopen=no
11532   lt_cv_dlopen_libs=
11533
11534   case $host_os in
11535   beos*)
11536     lt_cv_dlopen="load_add_on"
11537     lt_cv_dlopen_libs=
11538     lt_cv_dlopen_self=yes
11539     ;;
11540
11541   mingw* | pw32* | cegcc*)
11542     lt_cv_dlopen="LoadLibrary"
11543     lt_cv_dlopen_libs=
11544     ;;
11545
11546   cygwin*)
11547     lt_cv_dlopen="dlopen"
11548     lt_cv_dlopen_libs=
11549     ;;
11550
11551   darwin*)
11552   # if libdl is installed we need to link against it
11553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11554 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11555 if ${ac_cv_lib_dl_dlopen+:} false; then :
11556   $as_echo_n "(cached) " >&6
11557 else
11558   ac_check_lib_save_LIBS=$LIBS
11559 LIBS="-ldl  $LIBS"
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h.  */
11562
11563 /* Override any GCC internal prototype to avoid an error.
11564    Use char because int might match the return type of a GCC
11565    builtin and then its argument prototype would still apply.  */
11566 #ifdef __cplusplus
11567 extern "C"
11568 #endif
11569 char dlopen ();
11570 int
11571 main ()
11572 {
11573 return dlopen ();
11574   ;
11575   return 0;
11576 }
11577 _ACEOF
11578 if ac_fn_c_try_link "$LINENO"; then :
11579   ac_cv_lib_dl_dlopen=yes
11580 else
11581   ac_cv_lib_dl_dlopen=no
11582 fi
11583 rm -f core conftest.err conftest.$ac_objext \
11584     conftest$ac_exeext conftest.$ac_ext
11585 LIBS=$ac_check_lib_save_LIBS
11586 fi
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11588 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11589 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11590   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11591 else
11592
11593     lt_cv_dlopen="dyld"
11594     lt_cv_dlopen_libs=
11595     lt_cv_dlopen_self=yes
11596
11597 fi
11598
11599     ;;
11600
11601   *)
11602     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11603 if test "x$ac_cv_func_shl_load" = xyes; then :
11604   lt_cv_dlopen="shl_load"
11605 else
11606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11607 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11608 if ${ac_cv_lib_dld_shl_load+:} false; then :
11609   $as_echo_n "(cached) " >&6
11610 else
11611   ac_check_lib_save_LIBS=$LIBS
11612 LIBS="-ldld  $LIBS"
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h.  */
11615
11616 /* Override any GCC internal prototype to avoid an error.
11617    Use char because int might match the return type of a GCC
11618    builtin and then its argument prototype would still apply.  */
11619 #ifdef __cplusplus
11620 extern "C"
11621 #endif
11622 char shl_load ();
11623 int
11624 main ()
11625 {
11626 return shl_load ();
11627   ;
11628   return 0;
11629 }
11630 _ACEOF
11631 if ac_fn_c_try_link "$LINENO"; then :
11632   ac_cv_lib_dld_shl_load=yes
11633 else
11634   ac_cv_lib_dld_shl_load=no
11635 fi
11636 rm -f core conftest.err conftest.$ac_objext \
11637     conftest$ac_exeext conftest.$ac_ext
11638 LIBS=$ac_check_lib_save_LIBS
11639 fi
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11641 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11642 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11643   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11644 else
11645   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11646 if test "x$ac_cv_func_dlopen" = xyes; then :
11647   lt_cv_dlopen="dlopen"
11648 else
11649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11650 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11651 if ${ac_cv_lib_dl_dlopen+:} false; then :
11652   $as_echo_n "(cached) " >&6
11653 else
11654   ac_check_lib_save_LIBS=$LIBS
11655 LIBS="-ldl  $LIBS"
11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h.  */
11658
11659 /* Override any GCC internal prototype to avoid an error.
11660    Use char because int might match the return type of a GCC
11661    builtin and then its argument prototype would still apply.  */
11662 #ifdef __cplusplus
11663 extern "C"
11664 #endif
11665 char dlopen ();
11666 int
11667 main ()
11668 {
11669 return dlopen ();
11670   ;
11671   return 0;
11672 }
11673 _ACEOF
11674 if ac_fn_c_try_link "$LINENO"; then :
11675   ac_cv_lib_dl_dlopen=yes
11676 else
11677   ac_cv_lib_dl_dlopen=no
11678 fi
11679 rm -f core conftest.err conftest.$ac_objext \
11680     conftest$ac_exeext conftest.$ac_ext
11681 LIBS=$ac_check_lib_save_LIBS
11682 fi
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11684 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11685 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11686   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11687 else
11688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11689 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11690 if ${ac_cv_lib_svld_dlopen+:} false; then :
11691   $as_echo_n "(cached) " >&6
11692 else
11693   ac_check_lib_save_LIBS=$LIBS
11694 LIBS="-lsvld  $LIBS"
11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h.  */
11697
11698 /* Override any GCC internal prototype to avoid an error.
11699    Use char because int might match the return type of a GCC
11700    builtin and then its argument prototype would still apply.  */
11701 #ifdef __cplusplus
11702 extern "C"
11703 #endif
11704 char dlopen ();
11705 int
11706 main ()
11707 {
11708 return dlopen ();
11709   ;
11710   return 0;
11711 }
11712 _ACEOF
11713 if ac_fn_c_try_link "$LINENO"; then :
11714   ac_cv_lib_svld_dlopen=yes
11715 else
11716   ac_cv_lib_svld_dlopen=no
11717 fi
11718 rm -f core conftest.err conftest.$ac_objext \
11719     conftest$ac_exeext conftest.$ac_ext
11720 LIBS=$ac_check_lib_save_LIBS
11721 fi
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11723 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11724 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11725   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11726 else
11727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11728 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11729 if ${ac_cv_lib_dld_dld_link+:} false; then :
11730   $as_echo_n "(cached) " >&6
11731 else
11732   ac_check_lib_save_LIBS=$LIBS
11733 LIBS="-ldld  $LIBS"
11734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735 /* end confdefs.h.  */
11736
11737 /* Override any GCC internal prototype to avoid an error.
11738    Use char because int might match the return type of a GCC
11739    builtin and then its argument prototype would still apply.  */
11740 #ifdef __cplusplus
11741 extern "C"
11742 #endif
11743 char dld_link ();
11744 int
11745 main ()
11746 {
11747 return dld_link ();
11748   ;
11749   return 0;
11750 }
11751 _ACEOF
11752 if ac_fn_c_try_link "$LINENO"; then :
11753   ac_cv_lib_dld_dld_link=yes
11754 else
11755   ac_cv_lib_dld_dld_link=no
11756 fi
11757 rm -f core conftest.err conftest.$ac_objext \
11758     conftest$ac_exeext conftest.$ac_ext
11759 LIBS=$ac_check_lib_save_LIBS
11760 fi
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11762 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11763 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11764   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11765 fi
11766
11767
11768 fi
11769
11770
11771 fi
11772
11773
11774 fi
11775
11776
11777 fi
11778
11779
11780 fi
11781
11782     ;;
11783   esac
11784
11785   if test "x$lt_cv_dlopen" != xno; then
11786     enable_dlopen=yes
11787   else
11788     enable_dlopen=no
11789   fi
11790
11791   case $lt_cv_dlopen in
11792   dlopen)
11793     save_CPPFLAGS="$CPPFLAGS"
11794     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11795
11796     save_LDFLAGS="$LDFLAGS"
11797     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11798
11799     save_LIBS="$LIBS"
11800     LIBS="$lt_cv_dlopen_libs $LIBS"
11801
11802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11803 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11804 if ${lt_cv_dlopen_self+:} false; then :
11805   $as_echo_n "(cached) " >&6
11806 else
11807           if test "$cross_compiling" = yes; then :
11808   lt_cv_dlopen_self=cross
11809 else
11810   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11811   lt_status=$lt_dlunknown
11812   cat > conftest.$ac_ext <<_LT_EOF
11813 #line $LINENO "configure"
11814 #include "confdefs.h"
11815
11816 #if HAVE_DLFCN_H
11817 #include <dlfcn.h>
11818 #endif
11819
11820 #include <stdio.h>
11821
11822 #ifdef RTLD_GLOBAL
11823 #  define LT_DLGLOBAL           RTLD_GLOBAL
11824 #else
11825 #  ifdef DL_GLOBAL
11826 #    define LT_DLGLOBAL         DL_GLOBAL
11827 #  else
11828 #    define LT_DLGLOBAL         0
11829 #  endif
11830 #endif
11831
11832 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11833    find out it does not work in some platform. */
11834 #ifndef LT_DLLAZY_OR_NOW
11835 #  ifdef RTLD_LAZY
11836 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11837 #  else
11838 #    ifdef DL_LAZY
11839 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11840 #    else
11841 #      ifdef RTLD_NOW
11842 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11843 #      else
11844 #        ifdef DL_NOW
11845 #          define LT_DLLAZY_OR_NOW      DL_NOW
11846 #        else
11847 #          define LT_DLLAZY_OR_NOW      0
11848 #        endif
11849 #      endif
11850 #    endif
11851 #  endif
11852 #endif
11853
11854 /* When -fvisbility=hidden is used, assume the code has been annotated
11855    correspondingly for the symbols needed.  */
11856 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11857 int fnord () __attribute__((visibility("default")));
11858 #endif
11859
11860 int fnord () { return 42; }
11861 int main ()
11862 {
11863   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11864   int status = $lt_dlunknown;
11865
11866   if (self)
11867     {
11868       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11869       else
11870         {
11871           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11872           else puts (dlerror ());
11873         }
11874       /* dlclose (self); */
11875     }
11876   else
11877     puts (dlerror ());
11878
11879   return status;
11880 }
11881 _LT_EOF
11882   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11883   (eval $ac_link) 2>&5
11884   ac_status=$?
11885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11886   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11887     (./conftest; exit; ) >&5 2>/dev/null
11888     lt_status=$?
11889     case x$lt_status in
11890       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11891       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11892       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11893     esac
11894   else :
11895     # compilation failed
11896     lt_cv_dlopen_self=no
11897   fi
11898 fi
11899 rm -fr conftest*
11900
11901
11902 fi
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11904 $as_echo "$lt_cv_dlopen_self" >&6; }
11905
11906     if test "x$lt_cv_dlopen_self" = xyes; then
11907       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11908       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11909 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11910 if ${lt_cv_dlopen_self_static+:} false; then :
11911   $as_echo_n "(cached) " >&6
11912 else
11913           if test "$cross_compiling" = yes; then :
11914   lt_cv_dlopen_self_static=cross
11915 else
11916   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11917   lt_status=$lt_dlunknown
11918   cat > conftest.$ac_ext <<_LT_EOF
11919 #line $LINENO "configure"
11920 #include "confdefs.h"
11921
11922 #if HAVE_DLFCN_H
11923 #include <dlfcn.h>
11924 #endif
11925
11926 #include <stdio.h>
11927
11928 #ifdef RTLD_GLOBAL
11929 #  define LT_DLGLOBAL           RTLD_GLOBAL
11930 #else
11931 #  ifdef DL_GLOBAL
11932 #    define LT_DLGLOBAL         DL_GLOBAL
11933 #  else
11934 #    define LT_DLGLOBAL         0
11935 #  endif
11936 #endif
11937
11938 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11939    find out it does not work in some platform. */
11940 #ifndef LT_DLLAZY_OR_NOW
11941 #  ifdef RTLD_LAZY
11942 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11943 #  else
11944 #    ifdef DL_LAZY
11945 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11946 #    else
11947 #      ifdef RTLD_NOW
11948 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11949 #      else
11950 #        ifdef DL_NOW
11951 #          define LT_DLLAZY_OR_NOW      DL_NOW
11952 #        else
11953 #          define LT_DLLAZY_OR_NOW      0
11954 #        endif
11955 #      endif
11956 #    endif
11957 #  endif
11958 #endif
11959
11960 /* When -fvisbility=hidden is used, assume the code has been annotated
11961    correspondingly for the symbols needed.  */
11962 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11963 int fnord () __attribute__((visibility("default")));
11964 #endif
11965
11966 int fnord () { return 42; }
11967 int main ()
11968 {
11969   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11970   int status = $lt_dlunknown;
11971
11972   if (self)
11973     {
11974       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11975       else
11976         {
11977           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11978           else puts (dlerror ());
11979         }
11980       /* dlclose (self); */
11981     }
11982   else
11983     puts (dlerror ());
11984
11985   return status;
11986 }
11987 _LT_EOF
11988   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11989   (eval $ac_link) 2>&5
11990   ac_status=$?
11991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11992   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11993     (./conftest; exit; ) >&5 2>/dev/null
11994     lt_status=$?
11995     case x$lt_status in
11996       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11997       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11998       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11999     esac
12000   else :
12001     # compilation failed
12002     lt_cv_dlopen_self_static=no
12003   fi
12004 fi
12005 rm -fr conftest*
12006
12007
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12010 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12011     fi
12012
12013     CPPFLAGS="$save_CPPFLAGS"
12014     LDFLAGS="$save_LDFLAGS"
12015     LIBS="$save_LIBS"
12016     ;;
12017   esac
12018
12019   case $lt_cv_dlopen_self in
12020   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12021   *) enable_dlopen_self=unknown ;;
12022   esac
12023
12024   case $lt_cv_dlopen_self_static in
12025   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12026   *) enable_dlopen_self_static=unknown ;;
12027   esac
12028 fi
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046 striplib=
12047 old_striplib=
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12049 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12050 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12051   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12052   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12054 $as_echo "yes" >&6; }
12055 else
12056 # FIXME - insert some real tests, host_os isn't really good enough
12057   case $host_os in
12058   darwin*)
12059     if test -n "$STRIP" ; then
12060       striplib="$STRIP -x"
12061       old_striplib="$STRIP -S"
12062       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12063 $as_echo "yes" >&6; }
12064     else
12065       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12067     fi
12068     ;;
12069   *)
12070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12072     ;;
12073   esac
12074 fi
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087   # Report which library types will actually be built
12088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12089 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12091 $as_echo "$can_build_shared" >&6; }
12092
12093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12094 $as_echo_n "checking whether to build shared libraries... " >&6; }
12095   test "$can_build_shared" = "no" && enable_shared=no
12096
12097   # On AIX, shared libraries and static libraries use the same namespace, and
12098   # are all built from PIC.
12099   case $host_os in
12100   aix3*)
12101     test "$enable_shared" = yes && enable_static=no
12102     if test -n "$RANLIB"; then
12103       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12104       postinstall_cmds='$RANLIB $lib'
12105     fi
12106     ;;
12107
12108   aix[4-9]*)
12109     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12110       test "$enable_shared" = yes && enable_static=no
12111     fi
12112     ;;
12113   esac
12114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12115 $as_echo "$enable_shared" >&6; }
12116
12117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12118 $as_echo_n "checking whether to build static libraries... " >&6; }
12119   # Make sure either enable_shared or enable_static is yes.
12120   test "$enable_shared" = yes || enable_static=yes
12121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12122 $as_echo "$enable_static" >&6; }
12123
12124
12125
12126
12127 fi
12128 ac_ext=c
12129 ac_cpp='$CPP $CPPFLAGS'
12130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12133
12134 CC="$lt_save_CC"
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150         ac_config_commands="$ac_config_commands libtool"
12151
12152
12153
12154
12155 # Only expand once:
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 if test -z "$CXX"; then
12165   if test -n "$CCC"; then
12166     CXX=$CCC
12167   else
12168     if test -n "$ac_tool_prefix"; then
12169   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12170   do
12171     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12174 $as_echo_n "checking for $ac_word... " >&6; }
12175 if ${ac_cv_prog_CXX+:} false; then :
12176   $as_echo_n "(cached) " >&6
12177 else
12178   if test -n "$CXX"; then
12179   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12180 else
12181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182 for as_dir in $PATH
12183 do
12184   IFS=$as_save_IFS
12185   test -z "$as_dir" && as_dir=.
12186     for ac_exec_ext in '' $ac_executable_extensions; do
12187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12188     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12190     break 2
12191   fi
12192 done
12193   done
12194 IFS=$as_save_IFS
12195
12196 fi
12197 fi
12198 CXX=$ac_cv_prog_CXX
12199 if test -n "$CXX"; then
12200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12201 $as_echo "$CXX" >&6; }
12202 else
12203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12205 fi
12206
12207
12208     test -n "$CXX" && break
12209   done
12210 fi
12211 if test -z "$CXX"; then
12212   ac_ct_CXX=$CXX
12213   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12214 do
12215   # Extract the first word of "$ac_prog", so it can be a program name with args.
12216 set dummy $ac_prog; ac_word=$2
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12218 $as_echo_n "checking for $ac_word... " >&6; }
12219 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12220   $as_echo_n "(cached) " >&6
12221 else
12222   if test -n "$ac_ct_CXX"; then
12223   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12224 else
12225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226 for as_dir in $PATH
12227 do
12228   IFS=$as_save_IFS
12229   test -z "$as_dir" && as_dir=.
12230     for ac_exec_ext in '' $ac_executable_extensions; do
12231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12232     ac_cv_prog_ac_ct_CXX="$ac_prog"
12233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12234     break 2
12235   fi
12236 done
12237   done
12238 IFS=$as_save_IFS
12239
12240 fi
12241 fi
12242 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12243 if test -n "$ac_ct_CXX"; then
12244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12245 $as_echo "$ac_ct_CXX" >&6; }
12246 else
12247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248 $as_echo "no" >&6; }
12249 fi
12250
12251
12252   test -n "$ac_ct_CXX" && break
12253 done
12254
12255   if test "x$ac_ct_CXX" = x; then
12256     CXX="g++"
12257   else
12258     case $cross_compiling:$ac_tool_warned in
12259 yes:)
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12262 ac_tool_warned=yes ;;
12263 esac
12264     CXX=$ac_ct_CXX
12265   fi
12266 fi
12267
12268   fi
12269 fi
12270 # Provide some information about the compiler.
12271 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12272 set X $ac_compile
12273 ac_compiler=$2
12274 for ac_option in --version -v -V -qversion; do
12275   { { ac_try="$ac_compiler $ac_option >&5"
12276 case "(($ac_try" in
12277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278   *) ac_try_echo=$ac_try;;
12279 esac
12280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12281 $as_echo "$ac_try_echo"; } >&5
12282   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12283   ac_status=$?
12284   if test -s conftest.err; then
12285     sed '10a\
12286 ... rest of stderr output deleted ...
12287          10q' conftest.err >conftest.er1
12288     cat conftest.er1 >&5
12289   fi
12290   rm -f conftest.er1 conftest.err
12291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12292   test $ac_status = 0; }
12293 done
12294
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12296 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12297 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12298   $as_echo_n "(cached) " >&6
12299 else
12300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h.  */
12302
12303 int
12304 main ()
12305 {
12306 #ifndef __GNUC__
12307        choke me
12308 #endif
12309
12310   ;
12311   return 0;
12312 }
12313 _ACEOF
12314 if ac_fn_cxx_try_compile "$LINENO"; then :
12315   ac_compiler_gnu=yes
12316 else
12317   ac_compiler_gnu=no
12318 fi
12319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12321
12322 fi
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12324 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12325 if test $ac_compiler_gnu = yes; then
12326   GXX=yes
12327 else
12328   GXX=
12329 fi
12330 ac_test_CXXFLAGS=${CXXFLAGS+set}
12331 ac_save_CXXFLAGS=$CXXFLAGS
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12333 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12334 if ${ac_cv_prog_cxx_g+:} false; then :
12335   $as_echo_n "(cached) " >&6
12336 else
12337   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12338    ac_cxx_werror_flag=yes
12339    ac_cv_prog_cxx_g=no
12340    CXXFLAGS="-g"
12341    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h.  */
12343
12344 int
12345 main ()
12346 {
12347
12348   ;
12349   return 0;
12350 }
12351 _ACEOF
12352 if ac_fn_cxx_try_compile "$LINENO"; then :
12353   ac_cv_prog_cxx_g=yes
12354 else
12355   CXXFLAGS=""
12356       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h.  */
12358
12359 int
12360 main ()
12361 {
12362
12363   ;
12364   return 0;
12365 }
12366 _ACEOF
12367 if ac_fn_cxx_try_compile "$LINENO"; then :
12368
12369 else
12370   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12371          CXXFLAGS="-g"
12372          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h.  */
12374
12375 int
12376 main ()
12377 {
12378
12379   ;
12380   return 0;
12381 }
12382 _ACEOF
12383 if ac_fn_cxx_try_compile "$LINENO"; then :
12384   ac_cv_prog_cxx_g=yes
12385 fi
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 fi
12388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389 fi
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12392 fi
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12394 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12395 if test "$ac_test_CXXFLAGS" = set; then
12396   CXXFLAGS=$ac_save_CXXFLAGS
12397 elif test $ac_cv_prog_cxx_g = yes; then
12398   if test "$GXX" = yes; then
12399     CXXFLAGS="-g -O2"
12400   else
12401     CXXFLAGS="-g"
12402   fi
12403 else
12404   if test "$GXX" = yes; then
12405     CXXFLAGS="-O2"
12406   else
12407     CXXFLAGS=
12408   fi
12409 fi
12410 ac_ext=c
12411 ac_cpp='$CPP $CPPFLAGS'
12412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12415
12416 depcc="$CXX"  am_compiler_list=
12417
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12419 $as_echo_n "checking dependency style of $depcc... " >&6; }
12420 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12421   $as_echo_n "(cached) " >&6
12422 else
12423   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12424   # We make a subdir and do the tests there.  Otherwise we can end up
12425   # making bogus files that we don't know about and never remove.  For
12426   # instance it was reported that on HP-UX the gcc test will end up
12427   # making a dummy file named 'D' -- because '-MD' means "put the output
12428   # in D".
12429   rm -rf conftest.dir
12430   mkdir conftest.dir
12431   # Copy depcomp to subdir because otherwise we won't find it if we're
12432   # using a relative directory.
12433   cp "$am_depcomp" conftest.dir
12434   cd conftest.dir
12435   # We will build objects and dependencies in a subdirectory because
12436   # it helps to detect inapplicable dependency modes.  For instance
12437   # both Tru64's cc and ICC support -MD to output dependencies as a
12438   # side effect of compilation, but ICC will put the dependencies in
12439   # the current directory while Tru64 will put them in the object
12440   # directory.
12441   mkdir sub
12442
12443   am_cv_CXX_dependencies_compiler_type=none
12444   if test "$am_compiler_list" = ""; then
12445      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12446   fi
12447   am__universal=false
12448   case " $depcc " in #(
12449      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12450      esac
12451
12452   for depmode in $am_compiler_list; do
12453     # Setup a source with many dependencies, because some compilers
12454     # like to wrap large dependency lists on column 80 (with \), and
12455     # we should not choose a depcomp mode which is confused by this.
12456     #
12457     # We need to recreate these files for each test, as the compiler may
12458     # overwrite some of them when testing with obscure command lines.
12459     # This happens at least with the AIX C compiler.
12460     : > sub/conftest.c
12461     for i in 1 2 3 4 5 6; do
12462       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12463       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12464       # Solaris 10 /bin/sh.
12465       echo '/* dummy */' > sub/conftst$i.h
12466     done
12467     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12468
12469     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12470     # mode.  It turns out that the SunPro C++ compiler does not properly
12471     # handle '-M -o', and we need to detect this.  Also, some Intel
12472     # versions had trouble with output in subdirs.
12473     am__obj=sub/conftest.${OBJEXT-o}
12474     am__minus_obj="-o $am__obj"
12475     case $depmode in
12476     gcc)
12477       # This depmode causes a compiler race in universal mode.
12478       test "$am__universal" = false || continue
12479       ;;
12480     nosideeffect)
12481       # After this tag, mechanisms are not by side-effect, so they'll
12482       # only be used when explicitly requested.
12483       if test "x$enable_dependency_tracking" = xyes; then
12484         continue
12485       else
12486         break
12487       fi
12488       ;;
12489     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12490       # This compiler won't grok '-c -o', but also, the minuso test has
12491       # not run yet.  These depmodes are late enough in the game, and
12492       # so weak that their functioning should not be impacted.
12493       am__obj=conftest.${OBJEXT-o}
12494       am__minus_obj=
12495       ;;
12496     none) break ;;
12497     esac
12498     if depmode=$depmode \
12499        source=sub/conftest.c object=$am__obj \
12500        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12501        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12502          >/dev/null 2>conftest.err &&
12503        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12504        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12505        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12506        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12507       # icc doesn't choke on unknown options, it will just issue warnings
12508       # or remarks (even with -Werror).  So we grep stderr for any message
12509       # that says an option was ignored or not supported.
12510       # When given -MP, icc 7.0 and 7.1 complain thusly:
12511       #   icc: Command line warning: ignoring option '-M'; no argument required
12512       # The diagnosis changed in icc 8.0:
12513       #   icc: Command line remark: option '-MP' not supported
12514       if (grep 'ignoring option' conftest.err ||
12515           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12516         am_cv_CXX_dependencies_compiler_type=$depmode
12517         break
12518       fi
12519     fi
12520   done
12521
12522   cd ..
12523   rm -rf conftest.dir
12524 else
12525   am_cv_CXX_dependencies_compiler_type=none
12526 fi
12527
12528 fi
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12530 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12531 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12532
12533  if
12534   test "x$enable_dependency_tracking" != xno \
12535   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12536   am__fastdepCXX_TRUE=
12537   am__fastdepCXX_FALSE='#'
12538 else
12539   am__fastdepCXX_TRUE='#'
12540   am__fastdepCXX_FALSE=
12541 fi
12542
12543
12544
12545
12546 func_stripname_cnf ()
12547 {
12548   case ${2} in
12549   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12550   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12551   esac
12552 } # func_stripname_cnf
12553
12554       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12555     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12556     (test "X$CXX" != "Xg++"))) ; then
12557   ac_ext=cpp
12558 ac_cpp='$CXXCPP $CPPFLAGS'
12559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12563 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12564 if test -z "$CXXCPP"; then
12565   if ${ac_cv_prog_CXXCPP+:} false; then :
12566   $as_echo_n "(cached) " >&6
12567 else
12568       # Double quotes because CXXCPP needs to be expanded
12569     for CXXCPP in "$CXX -E" "/lib/cpp"
12570     do
12571       ac_preproc_ok=false
12572 for ac_cxx_preproc_warn_flag in '' yes
12573 do
12574   # Use a header file that comes with gcc, so configuring glibc
12575   # with a fresh cross-compiler works.
12576   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12577   # <limits.h> exists even on freestanding compilers.
12578   # On the NeXT, cc -E runs the code through the compiler's parser,
12579   # not just through cpp. "Syntax error" is here to catch this case.
12580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h.  */
12582 #ifdef __STDC__
12583 # include <limits.h>
12584 #else
12585 # include <assert.h>
12586 #endif
12587                      Syntax error
12588 _ACEOF
12589 if ac_fn_cxx_try_cpp "$LINENO"; then :
12590
12591 else
12592   # Broken: fails on valid input.
12593 continue
12594 fi
12595 rm -f conftest.err conftest.i conftest.$ac_ext
12596
12597   # OK, works on sane cases.  Now check whether nonexistent headers
12598   # can be detected and how.
12599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h.  */
12601 #include <ac_nonexistent.h>
12602 _ACEOF
12603 if ac_fn_cxx_try_cpp "$LINENO"; then :
12604   # Broken: success on invalid input.
12605 continue
12606 else
12607   # Passes both tests.
12608 ac_preproc_ok=:
12609 break
12610 fi
12611 rm -f conftest.err conftest.i conftest.$ac_ext
12612
12613 done
12614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12615 rm -f conftest.i conftest.err conftest.$ac_ext
12616 if $ac_preproc_ok; then :
12617   break
12618 fi
12619
12620     done
12621     ac_cv_prog_CXXCPP=$CXXCPP
12622
12623 fi
12624   CXXCPP=$ac_cv_prog_CXXCPP
12625 else
12626   ac_cv_prog_CXXCPP=$CXXCPP
12627 fi
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12629 $as_echo "$CXXCPP" >&6; }
12630 ac_preproc_ok=false
12631 for ac_cxx_preproc_warn_flag in '' yes
12632 do
12633   # Use a header file that comes with gcc, so configuring glibc
12634   # with a fresh cross-compiler works.
12635   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12636   # <limits.h> exists even on freestanding compilers.
12637   # On the NeXT, cc -E runs the code through the compiler's parser,
12638   # not just through cpp. "Syntax error" is here to catch this case.
12639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h.  */
12641 #ifdef __STDC__
12642 # include <limits.h>
12643 #else
12644 # include <assert.h>
12645 #endif
12646                      Syntax error
12647 _ACEOF
12648 if ac_fn_cxx_try_cpp "$LINENO"; then :
12649
12650 else
12651   # Broken: fails on valid input.
12652 continue
12653 fi
12654 rm -f conftest.err conftest.i conftest.$ac_ext
12655
12656   # OK, works on sane cases.  Now check whether nonexistent headers
12657   # can be detected and how.
12658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659 /* end confdefs.h.  */
12660 #include <ac_nonexistent.h>
12661 _ACEOF
12662 if ac_fn_cxx_try_cpp "$LINENO"; then :
12663   # Broken: success on invalid input.
12664 continue
12665 else
12666   # Passes both tests.
12667 ac_preproc_ok=:
12668 break
12669 fi
12670 rm -f conftest.err conftest.i conftest.$ac_ext
12671
12672 done
12673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12674 rm -f conftest.i conftest.err conftest.$ac_ext
12675 if $ac_preproc_ok; then :
12676
12677 else
12678   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12680 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12681 See \`config.log' for more details" "$LINENO" 5; }
12682 fi
12683
12684 ac_ext=c
12685 ac_cpp='$CPP $CPPFLAGS'
12686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12689
12690 else
12691   _lt_caught_CXX_error=yes
12692 fi
12693
12694 ac_ext=cpp
12695 ac_cpp='$CXXCPP $CPPFLAGS'
12696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12699
12700 archive_cmds_need_lc_CXX=no
12701 allow_undefined_flag_CXX=
12702 always_export_symbols_CXX=no
12703 archive_expsym_cmds_CXX=
12704 compiler_needs_object_CXX=no
12705 export_dynamic_flag_spec_CXX=
12706 hardcode_direct_CXX=no
12707 hardcode_direct_absolute_CXX=no
12708 hardcode_libdir_flag_spec_CXX=
12709 hardcode_libdir_separator_CXX=
12710 hardcode_minus_L_CXX=no
12711 hardcode_shlibpath_var_CXX=unsupported
12712 hardcode_automatic_CXX=no
12713 inherit_rpath_CXX=no
12714 module_cmds_CXX=
12715 module_expsym_cmds_CXX=
12716 link_all_deplibs_CXX=unknown
12717 old_archive_cmds_CXX=$old_archive_cmds
12718 reload_flag_CXX=$reload_flag
12719 reload_cmds_CXX=$reload_cmds
12720 no_undefined_flag_CXX=
12721 whole_archive_flag_spec_CXX=
12722 enable_shared_with_static_runtimes_CXX=no
12723
12724 # Source file extension for C++ test sources.
12725 ac_ext=cpp
12726
12727 # Object file extension for compiled C++ test sources.
12728 objext=o
12729 objext_CXX=$objext
12730
12731 # No sense in running all these tests if we already determined that
12732 # the CXX compiler isn't working.  Some variables (like enable_shared)
12733 # are currently assumed to apply to all compilers on this platform,
12734 # and will be corrupted by setting them based on a non-working compiler.
12735 if test "$_lt_caught_CXX_error" != yes; then
12736   # Code to be used in simple compile tests
12737   lt_simple_compile_test_code="int some_variable = 0;"
12738
12739   # Code to be used in simple link tests
12740   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12741
12742   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12743
12744
12745
12746
12747
12748
12749 # If no C compiler was specified, use CC.
12750 LTCC=${LTCC-"$CC"}
12751
12752 # If no C compiler flags were specified, use CFLAGS.
12753 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12754
12755 # Allow CC to be a program name with arguments.
12756 compiler=$CC
12757
12758
12759   # save warnings/boilerplate of simple test code
12760   ac_outfile=conftest.$ac_objext
12761 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12762 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12763 _lt_compiler_boilerplate=`cat conftest.err`
12764 $RM conftest*
12765
12766   ac_outfile=conftest.$ac_objext
12767 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12768 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12769 _lt_linker_boilerplate=`cat conftest.err`
12770 $RM -r conftest*
12771
12772
12773   # Allow CC to be a program name with arguments.
12774   lt_save_CC=$CC
12775   lt_save_CFLAGS=$CFLAGS
12776   lt_save_LD=$LD
12777   lt_save_GCC=$GCC
12778   GCC=$GXX
12779   lt_save_with_gnu_ld=$with_gnu_ld
12780   lt_save_path_LD=$lt_cv_path_LD
12781   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12782     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12783   else
12784     $as_unset lt_cv_prog_gnu_ld
12785   fi
12786   if test -n "${lt_cv_path_LDCXX+set}"; then
12787     lt_cv_path_LD=$lt_cv_path_LDCXX
12788   else
12789     $as_unset lt_cv_path_LD
12790   fi
12791   test -z "${LDCXX+set}" || LD=$LDCXX
12792   CC=${CXX-"c++"}
12793   CFLAGS=$CXXFLAGS
12794   compiler=$CC
12795   compiler_CXX=$CC
12796   for cc_temp in $compiler""; do
12797   case $cc_temp in
12798     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12799     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12800     \-*) ;;
12801     *) break;;
12802   esac
12803 done
12804 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12805
12806
12807   if test -n "$compiler"; then
12808     # We don't want -fno-exception when compiling C++ code, so set the
12809     # no_builtin_flag separately
12810     if test "$GXX" = yes; then
12811       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12812     else
12813       lt_prog_compiler_no_builtin_flag_CXX=
12814     fi
12815
12816     if test "$GXX" = yes; then
12817       # Set up default GNU C++ configuration
12818
12819
12820
12821 # Check whether --with-gnu-ld was given.
12822 if test "${with_gnu_ld+set}" = set; then :
12823   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12824 else
12825   with_gnu_ld=no
12826 fi
12827
12828 ac_prog=ld
12829 if test "$GCC" = yes; then
12830   # Check if gcc -print-prog-name=ld gives a path.
12831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12832 $as_echo_n "checking for ld used by $CC... " >&6; }
12833   case $host in
12834   *-*-mingw*)
12835     # gcc leaves a trailing carriage return which upsets mingw
12836     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12837   *)
12838     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12839   esac
12840   case $ac_prog in
12841     # Accept absolute paths.
12842     [\\/]* | ?:[\\/]*)
12843       re_direlt='/[^/][^/]*/\.\./'
12844       # Canonicalize the pathname of ld
12845       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12846       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12847         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12848       done
12849       test -z "$LD" && LD="$ac_prog"
12850       ;;
12851   "")
12852     # If it fails, then pretend we aren't using GCC.
12853     ac_prog=ld
12854     ;;
12855   *)
12856     # If it is relative, then search for the first ld in PATH.
12857     with_gnu_ld=unknown
12858     ;;
12859   esac
12860 elif test "$with_gnu_ld" = yes; then
12861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12862 $as_echo_n "checking for GNU ld... " >&6; }
12863 else
12864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12865 $as_echo_n "checking for non-GNU ld... " >&6; }
12866 fi
12867 if ${lt_cv_path_LD+:} false; then :
12868   $as_echo_n "(cached) " >&6
12869 else
12870   if test -z "$LD"; then
12871   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12872   for ac_dir in $PATH; do
12873     IFS="$lt_save_ifs"
12874     test -z "$ac_dir" && ac_dir=.
12875     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12876       lt_cv_path_LD="$ac_dir/$ac_prog"
12877       # Check to see if the program is GNU ld.  I'd rather use --version,
12878       # but apparently some variants of GNU ld only accept -v.
12879       # Break only if it was the GNU/non-GNU ld that we prefer.
12880       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12881       *GNU* | *'with BFD'*)
12882         test "$with_gnu_ld" != no && break
12883         ;;
12884       *)
12885         test "$with_gnu_ld" != yes && break
12886         ;;
12887       esac
12888     fi
12889   done
12890   IFS="$lt_save_ifs"
12891 else
12892   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12893 fi
12894 fi
12895
12896 LD="$lt_cv_path_LD"
12897 if test -n "$LD"; then
12898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12899 $as_echo "$LD" >&6; }
12900 else
12901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12903 fi
12904 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12906 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12907 if ${lt_cv_prog_gnu_ld+:} false; then :
12908   $as_echo_n "(cached) " >&6
12909 else
12910   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12911 case `$LD -v 2>&1 </dev/null` in
12912 *GNU* | *'with BFD'*)
12913   lt_cv_prog_gnu_ld=yes
12914   ;;
12915 *)
12916   lt_cv_prog_gnu_ld=no
12917   ;;
12918 esac
12919 fi
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12921 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12922 with_gnu_ld=$lt_cv_prog_gnu_ld
12923
12924
12925
12926
12927
12928
12929
12930       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12931       # archiving commands below assume that GNU ld is being used.
12932       if test "$with_gnu_ld" = yes; then
12933         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12934         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12935
12936         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12937         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12938
12939         # If archive_cmds runs LD, not CC, wlarc should be empty
12940         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12941         #     investigate it a little bit more. (MM)
12942         wlarc='${wl}'
12943
12944         # ancient GNU ld didn't support --whole-archive et. al.
12945         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12946           $GREP 'no-whole-archive' > /dev/null; then
12947           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12948         else
12949           whole_archive_flag_spec_CXX=
12950         fi
12951       else
12952         with_gnu_ld=no
12953         wlarc=
12954
12955         # A generic and very simple default shared library creation
12956         # command for GNU C++ for the case where it uses the native
12957         # linker, instead of GNU ld.  If possible, this setting should
12958         # overridden to take advantage of the native linker features on
12959         # the platform it is being used on.
12960         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12961       fi
12962
12963       # Commands to make compiler produce verbose output that lists
12964       # what "hidden" libraries, object files and flags are used when
12965       # linking a shared library.
12966       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12967
12968     else
12969       GXX=no
12970       with_gnu_ld=no
12971       wlarc=
12972     fi
12973
12974     # PORTME: fill in a description of your system's C++ link characteristics
12975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12976 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12977     ld_shlibs_CXX=yes
12978     case $host_os in
12979       aix3*)
12980         # FIXME: insert proper C++ library support
12981         ld_shlibs_CXX=no
12982         ;;
12983       aix[4-9]*)
12984         if test "$host_cpu" = ia64; then
12985           # On IA64, the linker does run time linking by default, so we don't
12986           # have to do anything special.
12987           aix_use_runtimelinking=no
12988           exp_sym_flag='-Bexport'
12989           no_entry_flag=""
12990         else
12991           aix_use_runtimelinking=no
12992
12993           # Test if we are trying to use run time linking or normal
12994           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12995           # need to do runtime linking.
12996           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12997             for ld_flag in $LDFLAGS; do
12998               case $ld_flag in
12999               *-brtl*)
13000                 aix_use_runtimelinking=yes
13001                 break
13002                 ;;
13003               esac
13004             done
13005             ;;
13006           esac
13007
13008           exp_sym_flag='-bexport'
13009           no_entry_flag='-bnoentry'
13010         fi
13011
13012         # When large executables or shared objects are built, AIX ld can
13013         # have problems creating the table of contents.  If linking a library
13014         # or program results in "error TOC overflow" add -mminimal-toc to
13015         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13016         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13017
13018         archive_cmds_CXX=''
13019         hardcode_direct_CXX=yes
13020         hardcode_direct_absolute_CXX=yes
13021         hardcode_libdir_separator_CXX=':'
13022         link_all_deplibs_CXX=yes
13023         file_list_spec_CXX='${wl}-f,'
13024
13025         if test "$GXX" = yes; then
13026           case $host_os in aix4.[012]|aix4.[012].*)
13027           # We only want to do this on AIX 4.2 and lower, the check
13028           # below for broken collect2 doesn't work under 4.3+
13029           collect2name=`${CC} -print-prog-name=collect2`
13030           if test -f "$collect2name" &&
13031              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13032           then
13033             # We have reworked collect2
13034             :
13035           else
13036             # We have old collect2
13037             hardcode_direct_CXX=unsupported
13038             # It fails to find uninstalled libraries when the uninstalled
13039             # path is not listed in the libpath.  Setting hardcode_minus_L
13040             # to unsupported forces relinking
13041             hardcode_minus_L_CXX=yes
13042             hardcode_libdir_flag_spec_CXX='-L$libdir'
13043             hardcode_libdir_separator_CXX=
13044           fi
13045           esac
13046           shared_flag='-shared'
13047           if test "$aix_use_runtimelinking" = yes; then
13048             shared_flag="$shared_flag "'${wl}-G'
13049           fi
13050         else
13051           # not using gcc
13052           if test "$host_cpu" = ia64; then
13053           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13054           # chokes on -Wl,-G. The following line is correct:
13055           shared_flag='-G'
13056           else
13057             if test "$aix_use_runtimelinking" = yes; then
13058               shared_flag='${wl}-G'
13059             else
13060               shared_flag='${wl}-bM:SRE'
13061             fi
13062           fi
13063         fi
13064
13065         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13066         # It seems that -bexpall does not export symbols beginning with
13067         # underscore (_), so it is better to generate a list of symbols to
13068         # export.
13069         always_export_symbols_CXX=yes
13070         if test "$aix_use_runtimelinking" = yes; then
13071           # Warning - without using the other runtime loading flags (-brtl),
13072           # -berok will link without error, but may produce a broken library.
13073           allow_undefined_flag_CXX='-berok'
13074           # Determine the default libpath from the value encoded in an empty
13075           # executable.
13076           if test "${lt_cv_aix_libpath+set}" = set; then
13077   aix_libpath=$lt_cv_aix_libpath
13078 else
13079   if ${lt_cv_aix_libpath__CXX+:} false; then :
13080   $as_echo_n "(cached) " >&6
13081 else
13082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h.  */
13084
13085 int
13086 main ()
13087 {
13088
13089   ;
13090   return 0;
13091 }
13092 _ACEOF
13093 if ac_fn_cxx_try_link "$LINENO"; then :
13094
13095   lt_aix_libpath_sed='
13096       /Import File Strings/,/^$/ {
13097           /^0/ {
13098               s/^0  *\([^ ]*\) *$/\1/
13099               p
13100           }
13101       }'
13102   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13103   # Check for a 64-bit object if we didn't find anything.
13104   if test -z "$lt_cv_aix_libpath__CXX"; then
13105     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13106   fi
13107 fi
13108 rm -f core conftest.err conftest.$ac_objext \
13109     conftest$ac_exeext conftest.$ac_ext
13110   if test -z "$lt_cv_aix_libpath__CXX"; then
13111     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13112   fi
13113
13114 fi
13115
13116   aix_libpath=$lt_cv_aix_libpath__CXX
13117 fi
13118
13119           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13120
13121           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13122         else
13123           if test "$host_cpu" = ia64; then
13124             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13125             allow_undefined_flag_CXX="-z nodefs"
13126             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"
13127           else
13128             # Determine the default libpath from the value encoded in an
13129             # empty executable.
13130             if test "${lt_cv_aix_libpath+set}" = set; then
13131   aix_libpath=$lt_cv_aix_libpath
13132 else
13133   if ${lt_cv_aix_libpath__CXX+:} false; then :
13134   $as_echo_n "(cached) " >&6
13135 else
13136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h.  */
13138
13139 int
13140 main ()
13141 {
13142
13143   ;
13144   return 0;
13145 }
13146 _ACEOF
13147 if ac_fn_cxx_try_link "$LINENO"; then :
13148
13149   lt_aix_libpath_sed='
13150       /Import File Strings/,/^$/ {
13151           /^0/ {
13152               s/^0  *\([^ ]*\) *$/\1/
13153               p
13154           }
13155       }'
13156   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13157   # Check for a 64-bit object if we didn't find anything.
13158   if test -z "$lt_cv_aix_libpath__CXX"; then
13159     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13160   fi
13161 fi
13162 rm -f core conftest.err conftest.$ac_objext \
13163     conftest$ac_exeext conftest.$ac_ext
13164   if test -z "$lt_cv_aix_libpath__CXX"; then
13165     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13166   fi
13167
13168 fi
13169
13170   aix_libpath=$lt_cv_aix_libpath__CXX
13171 fi
13172
13173             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13174             # Warning - without using the other run time loading flags,
13175             # -berok will link without error, but may produce a broken library.
13176             no_undefined_flag_CXX=' ${wl}-bernotok'
13177             allow_undefined_flag_CXX=' ${wl}-berok'
13178             if test "$with_gnu_ld" = yes; then
13179               # We only use this code for GNU lds that support --whole-archive.
13180               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13181             else
13182               # Exported symbols can be pulled into shared objects from archives
13183               whole_archive_flag_spec_CXX='$convenience'
13184             fi
13185             archive_cmds_need_lc_CXX=yes
13186             # This is similar to how AIX traditionally builds its shared
13187             # libraries.
13188             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'
13189           fi
13190         fi
13191         ;;
13192
13193       beos*)
13194         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13195           allow_undefined_flag_CXX=unsupported
13196           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13197           # support --undefined.  This deserves some investigation.  FIXME
13198           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13199         else
13200           ld_shlibs_CXX=no
13201         fi
13202         ;;
13203
13204       chorus*)
13205         case $cc_basename in
13206           *)
13207           # FIXME: insert proper C++ library support
13208           ld_shlibs_CXX=no
13209           ;;
13210         esac
13211         ;;
13212
13213       cygwin* | mingw* | pw32* | cegcc*)
13214         case $GXX,$cc_basename in
13215         ,cl* | no,cl*)
13216           # Native MSVC
13217           # hardcode_libdir_flag_spec is actually meaningless, as there is
13218           # no search path for DLLs.
13219           hardcode_libdir_flag_spec_CXX=' '
13220           allow_undefined_flag_CXX=unsupported
13221           always_export_symbols_CXX=yes
13222           file_list_spec_CXX='@'
13223           # Tell ltmain to make .lib files, not .a files.
13224           libext=lib
13225           # Tell ltmain to make .dll files, not .so files.
13226           shrext_cmds=".dll"
13227           # FIXME: Setting linknames here is a bad hack.
13228           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13229           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13230               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13231             else
13232               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13233             fi~
13234             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13235             linknames='
13236           # The linker will not automatically build a static lib if we build a DLL.
13237           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13238           enable_shared_with_static_runtimes_CXX=yes
13239           # Don't use ranlib
13240           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13241           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13242             lt_tool_outputfile="@TOOL_OUTPUT@"~
13243             case $lt_outputfile in
13244               *.exe|*.EXE) ;;
13245               *)
13246                 lt_outputfile="$lt_outputfile.exe"
13247                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13248                 ;;
13249             esac~
13250             func_to_tool_file "$lt_outputfile"~
13251             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13252               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13253               $RM "$lt_outputfile.manifest";
13254             fi'
13255           ;;
13256         *)
13257           # g++
13258           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13259           # as there is no search path for DLLs.
13260           hardcode_libdir_flag_spec_CXX='-L$libdir'
13261           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13262           allow_undefined_flag_CXX=unsupported
13263           always_export_symbols_CXX=no
13264           enable_shared_with_static_runtimes_CXX=yes
13265
13266           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13267             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'
13268             # If the export-symbols file already is a .def file (1st line
13269             # is EXPORTS), use it as is; otherwise, prepend...
13270             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13271               cp $export_symbols $output_objdir/$soname.def;
13272             else
13273               echo EXPORTS > $output_objdir/$soname.def;
13274               cat $export_symbols >> $output_objdir/$soname.def;
13275             fi~
13276             $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'
13277           else
13278             ld_shlibs_CXX=no
13279           fi
13280           ;;
13281         esac
13282         ;;
13283       darwin* | rhapsody*)
13284
13285
13286   archive_cmds_need_lc_CXX=no
13287   hardcode_direct_CXX=no
13288   hardcode_automatic_CXX=yes
13289   hardcode_shlibpath_var_CXX=unsupported
13290   if test "$lt_cv_ld_force_load" = "yes"; then
13291     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13292
13293   else
13294     whole_archive_flag_spec_CXX=''
13295   fi
13296   link_all_deplibs_CXX=yes
13297   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13298   case $cc_basename in
13299      ifort*) _lt_dar_can_shared=yes ;;
13300      *) _lt_dar_can_shared=$GCC ;;
13301   esac
13302   if test "$_lt_dar_can_shared" = "yes"; then
13303     output_verbose_link_cmd=func_echo_all
13304     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}"
13305     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13306     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}"
13307     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}"
13308        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13309       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}"
13310       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}"
13311     fi
13312
13313   else
13314   ld_shlibs_CXX=no
13315   fi
13316
13317         ;;
13318
13319       dgux*)
13320         case $cc_basename in
13321           ec++*)
13322             # FIXME: insert proper C++ library support
13323             ld_shlibs_CXX=no
13324             ;;
13325           ghcx*)
13326             # Green Hills C++ Compiler
13327             # FIXME: insert proper C++ library support
13328             ld_shlibs_CXX=no
13329             ;;
13330           *)
13331             # FIXME: insert proper C++ library support
13332             ld_shlibs_CXX=no
13333             ;;
13334         esac
13335         ;;
13336
13337       freebsd2.*)
13338         # C++ shared libraries reported to be fairly broken before
13339         # switch to ELF
13340         ld_shlibs_CXX=no
13341         ;;
13342
13343       freebsd-elf*)
13344         archive_cmds_need_lc_CXX=no
13345         ;;
13346
13347       freebsd* | dragonfly*)
13348         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13349         # conventions
13350         ld_shlibs_CXX=yes
13351         ;;
13352
13353       haiku*)
13354         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13355         link_all_deplibs_CXX=yes
13356         ;;
13357
13358       hpux9*)
13359         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13360         hardcode_libdir_separator_CXX=:
13361         export_dynamic_flag_spec_CXX='${wl}-E'
13362         hardcode_direct_CXX=yes
13363         hardcode_minus_L_CXX=yes # Not in the search PATH,
13364                                              # but as the default
13365                                              # location of the library.
13366
13367         case $cc_basename in
13368           CC*)
13369             # FIXME: insert proper C++ library support
13370             ld_shlibs_CXX=no
13371             ;;
13372           aCC*)
13373             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'
13374             # Commands to make compiler produce verbose output that lists
13375             # what "hidden" libraries, object files and flags are used when
13376             # linking a shared library.
13377             #
13378             # There doesn't appear to be a way to prevent this compiler from
13379             # explicitly linking system object files so we need to strip them
13380             # from the output so that they don't get included in the library
13381             # dependencies.
13382             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13383             ;;
13384           *)
13385             if test "$GXX" = yes; then
13386               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13387             else
13388               # FIXME: insert proper C++ library support
13389               ld_shlibs_CXX=no
13390             fi
13391             ;;
13392         esac
13393         ;;
13394
13395       hpux10*|hpux11*)
13396         if test $with_gnu_ld = no; then
13397           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13398           hardcode_libdir_separator_CXX=:
13399
13400           case $host_cpu in
13401             hppa*64*|ia64*)
13402               ;;
13403             *)
13404               export_dynamic_flag_spec_CXX='${wl}-E'
13405               ;;
13406           esac
13407         fi
13408         case $host_cpu in
13409           hppa*64*|ia64*)
13410             hardcode_direct_CXX=no
13411             hardcode_shlibpath_var_CXX=no
13412             ;;
13413           *)
13414             hardcode_direct_CXX=yes
13415             hardcode_direct_absolute_CXX=yes
13416             hardcode_minus_L_CXX=yes # Not in the search PATH,
13417                                                  # but as the default
13418                                                  # location of the library.
13419             ;;
13420         esac
13421
13422         case $cc_basename in
13423           CC*)
13424             # FIXME: insert proper C++ library support
13425             ld_shlibs_CXX=no
13426             ;;
13427           aCC*)
13428             case $host_cpu in
13429               hppa*64*)
13430                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13431                 ;;
13432               ia64*)
13433                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13434                 ;;
13435               *)
13436                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13437                 ;;
13438             esac
13439             # Commands to make compiler produce verbose output that lists
13440             # what "hidden" libraries, object files and flags are used when
13441             # linking a shared library.
13442             #
13443             # There doesn't appear to be a way to prevent this compiler from
13444             # explicitly linking system object files so we need to strip them
13445             # from the output so that they don't get included in the library
13446             # dependencies.
13447             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13448             ;;
13449           *)
13450             if test "$GXX" = yes; then
13451               if test $with_gnu_ld = no; then
13452                 case $host_cpu in
13453                   hppa*64*)
13454                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13455                     ;;
13456                   ia64*)
13457                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13458                     ;;
13459                   *)
13460                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13461                     ;;
13462                 esac
13463               fi
13464             else
13465               # FIXME: insert proper C++ library support
13466               ld_shlibs_CXX=no
13467             fi
13468             ;;
13469         esac
13470         ;;
13471
13472       interix[3-9]*)
13473         hardcode_direct_CXX=no
13474         hardcode_shlibpath_var_CXX=no
13475         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13476         export_dynamic_flag_spec_CXX='${wl}-E'
13477         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13478         # Instead, shared libraries are loaded at an image base (0x10000000 by
13479         # default) and relocated if they conflict, which is a slow very memory
13480         # consuming and fragmenting process.  To avoid this, we pick a random,
13481         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13482         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13483         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'
13484         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'
13485         ;;
13486       irix5* | irix6*)
13487         case $cc_basename in
13488           CC*)
13489             # SGI C++
13490             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13491
13492             # Archives containing C++ object files must be created using
13493             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13494             # necessary to make sure instantiated templates are included
13495             # in the archive.
13496             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13497             ;;
13498           *)
13499             if test "$GXX" = yes; then
13500               if test "$with_gnu_ld" = no; then
13501                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13502               else
13503                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13504               fi
13505             fi
13506             link_all_deplibs_CXX=yes
13507             ;;
13508         esac
13509         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13510         hardcode_libdir_separator_CXX=:
13511         inherit_rpath_CXX=yes
13512         ;;
13513
13514       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13515         case $cc_basename in
13516           KCC*)
13517             # Kuck and Associates, Inc. (KAI) C++ Compiler
13518
13519             # KCC will only create a shared library if the output file
13520             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13521             # to its proper name (with version) after linking.
13522             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'
13523             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'
13524             # Commands to make compiler produce verbose output that lists
13525             # what "hidden" libraries, object files and flags are used when
13526             # linking a shared library.
13527             #
13528             # There doesn't appear to be a way to prevent this compiler from
13529             # explicitly linking system object files so we need to strip them
13530             # from the output so that they don't get included in the library
13531             # dependencies.
13532             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13533
13534             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13535             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13536
13537             # Archives containing C++ object files must be created using
13538             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13539             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13540             ;;
13541           icpc* | ecpc* )
13542             # Intel C++
13543             with_gnu_ld=yes
13544             # version 8.0 and above of icpc choke on multiply defined symbols
13545             # if we add $predep_objects and $postdep_objects, however 7.1 and
13546             # earlier do not add the objects themselves.
13547             case `$CC -V 2>&1` in
13548               *"Version 7."*)
13549                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13550                 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'
13551                 ;;
13552               *)  # Version 8.0 or newer
13553                 tmp_idyn=
13554                 case $host_cpu in
13555                   ia64*) tmp_idyn=' -i_dynamic';;
13556                 esac
13557                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13558                 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'
13559                 ;;
13560             esac
13561             archive_cmds_need_lc_CXX=no
13562             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13563             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13564             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13565             ;;
13566           pgCC* | pgcpp*)
13567             # Portland Group C++ compiler
13568             case `$CC -V` in
13569             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13570               prelink_cmds_CXX='tpldir=Template.dir~
13571                 rm -rf $tpldir~
13572                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13573                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13574               old_archive_cmds_CXX='tpldir=Template.dir~
13575                 rm -rf $tpldir~
13576                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13577                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13578                 $RANLIB $oldlib'
13579               archive_cmds_CXX='tpldir=Template.dir~
13580                 rm -rf $tpldir~
13581                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13582                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13583               archive_expsym_cmds_CXX='tpldir=Template.dir~
13584                 rm -rf $tpldir~
13585                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13586                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13587               ;;
13588             *) # Version 6 and above use weak symbols
13589               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13590               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'
13591               ;;
13592             esac
13593
13594             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13595             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13596             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13597             ;;
13598           cxx*)
13599             # Compaq C++
13600             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13601             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'
13602
13603             runpath_var=LD_RUN_PATH
13604             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13605             hardcode_libdir_separator_CXX=:
13606
13607             # Commands to make compiler produce verbose output that lists
13608             # what "hidden" libraries, object files and flags are used when
13609             # linking a shared library.
13610             #
13611             # There doesn't appear to be a way to prevent this compiler from
13612             # explicitly linking system object files so we need to strip them
13613             # from the output so that they don't get included in the library
13614             # dependencies.
13615             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13616             ;;
13617           xl* | mpixl* | bgxl*)
13618             # IBM XL 8.0 on PPC, with GNU ld
13619             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13620             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13621             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13622             if test "x$supports_anon_versioning" = xyes; then
13623               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13624                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13625                 echo "local: *; };" >> $output_objdir/$libname.ver~
13626                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13627             fi
13628             ;;
13629           *)
13630             case `$CC -V 2>&1 | sed 5q` in
13631             *Sun\ C*)
13632               # Sun C++ 5.9
13633               no_undefined_flag_CXX=' -zdefs'
13634               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13635               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'
13636               hardcode_libdir_flag_spec_CXX='-R$libdir'
13637               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13638               compiler_needs_object_CXX=yes
13639
13640               # Not sure whether something based on
13641               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13642               # would be better.
13643               output_verbose_link_cmd='func_echo_all'
13644
13645               # Archives containing C++ object files must be created using
13646               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13647               # necessary to make sure instantiated templates are included
13648               # in the archive.
13649               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13650               ;;
13651             esac
13652             ;;
13653         esac
13654         ;;
13655
13656       lynxos*)
13657         # FIXME: insert proper C++ library support
13658         ld_shlibs_CXX=no
13659         ;;
13660
13661       m88k*)
13662         # FIXME: insert proper C++ library support
13663         ld_shlibs_CXX=no
13664         ;;
13665
13666       mvs*)
13667         case $cc_basename in
13668           cxx*)
13669             # FIXME: insert proper C++ library support
13670             ld_shlibs_CXX=no
13671             ;;
13672           *)
13673             # FIXME: insert proper C++ library support
13674             ld_shlibs_CXX=no
13675             ;;
13676         esac
13677         ;;
13678
13679       netbsd*)
13680         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13681           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13682           wlarc=
13683           hardcode_libdir_flag_spec_CXX='-R$libdir'
13684           hardcode_direct_CXX=yes
13685           hardcode_shlibpath_var_CXX=no
13686         fi
13687         # Workaround some broken pre-1.5 toolchains
13688         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13689         ;;
13690
13691       *nto* | *qnx*)
13692         ld_shlibs_CXX=yes
13693         ;;
13694
13695       openbsd2*)
13696         # C++ shared libraries are fairly broken
13697         ld_shlibs_CXX=no
13698         ;;
13699
13700       openbsd*)
13701         if test -f /usr/libexec/ld.so; then
13702           hardcode_direct_CXX=yes
13703           hardcode_shlibpath_var_CXX=no
13704           hardcode_direct_absolute_CXX=yes
13705           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13706           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13707           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13708             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13709             export_dynamic_flag_spec_CXX='${wl}-E'
13710             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13711           fi
13712           output_verbose_link_cmd=func_echo_all
13713         else
13714           ld_shlibs_CXX=no
13715         fi
13716         ;;
13717
13718       osf3* | osf4* | osf5*)
13719         case $cc_basename in
13720           KCC*)
13721             # Kuck and Associates, Inc. (KAI) C++ Compiler
13722
13723             # KCC will only create a shared library if the output file
13724             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13725             # to its proper name (with version) after linking.
13726             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'
13727
13728             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13729             hardcode_libdir_separator_CXX=:
13730
13731             # Archives containing C++ object files must be created using
13732             # the KAI C++ compiler.
13733             case $host in
13734               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13735               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13736             esac
13737             ;;
13738           RCC*)
13739             # Rational C++ 2.4.1
13740             # FIXME: insert proper C++ library support
13741             ld_shlibs_CXX=no
13742             ;;
13743           cxx*)
13744             case $host in
13745               osf3*)
13746                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13747                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13748                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13749                 ;;
13750               *)
13751                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13752                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13753                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13754                   echo "-hidden">> $lib.exp~
13755                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13756                   $RM $lib.exp'
13757                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13758                 ;;
13759             esac
13760
13761             hardcode_libdir_separator_CXX=:
13762
13763             # Commands to make compiler produce verbose output that lists
13764             # what "hidden" libraries, object files and flags are used when
13765             # linking a shared library.
13766             #
13767             # There doesn't appear to be a way to prevent this compiler from
13768             # explicitly linking system object files so we need to strip them
13769             # from the output so that they don't get included in the library
13770             # dependencies.
13771             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13772             ;;
13773           *)
13774             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13775               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13776               case $host in
13777                 osf3*)
13778                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13779                   ;;
13780                 *)
13781                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13782                   ;;
13783               esac
13784
13785               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13786               hardcode_libdir_separator_CXX=:
13787
13788               # Commands to make compiler produce verbose output that lists
13789               # what "hidden" libraries, object files and flags are used when
13790               # linking a shared library.
13791               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13792
13793             else
13794               # FIXME: insert proper C++ library support
13795               ld_shlibs_CXX=no
13796             fi
13797             ;;
13798         esac
13799         ;;
13800
13801       psos*)
13802         # FIXME: insert proper C++ library support
13803         ld_shlibs_CXX=no
13804         ;;
13805
13806       sunos4*)
13807         case $cc_basename in
13808           CC*)
13809             # Sun C++ 4.x
13810             # FIXME: insert proper C++ library support
13811             ld_shlibs_CXX=no
13812             ;;
13813           lcc*)
13814             # Lucid
13815             # FIXME: insert proper C++ library support
13816             ld_shlibs_CXX=no
13817             ;;
13818           *)
13819             # FIXME: insert proper C++ library support
13820             ld_shlibs_CXX=no
13821             ;;
13822         esac
13823         ;;
13824
13825       solaris*)
13826         case $cc_basename in
13827           CC* | sunCC*)
13828             # Sun C++ 4.2, 5.x and Centerline C++
13829             archive_cmds_need_lc_CXX=yes
13830             no_undefined_flag_CXX=' -zdefs'
13831             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13832             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13833               $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'
13834
13835             hardcode_libdir_flag_spec_CXX='-R$libdir'
13836             hardcode_shlibpath_var_CXX=no
13837             case $host_os in
13838               solaris2.[0-5] | solaris2.[0-5].*) ;;
13839               *)
13840                 # The compiler driver will combine and reorder linker options,
13841                 # but understands `-z linker_flag'.
13842                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13843                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13844                 ;;
13845             esac
13846             link_all_deplibs_CXX=yes
13847
13848             output_verbose_link_cmd='func_echo_all'
13849
13850             # Archives containing C++ object files must be created using
13851             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13852             # necessary to make sure instantiated templates are included
13853             # in the archive.
13854             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13855             ;;
13856           gcx*)
13857             # Green Hills C++ Compiler
13858             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13859
13860             # The C++ compiler must be used to create the archive.
13861             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13862             ;;
13863           *)
13864             # GNU C++ compiler with Solaris linker
13865             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13866               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13867               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13868                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13869                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13870                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13871
13872                 # Commands to make compiler produce verbose output that lists
13873                 # what "hidden" libraries, object files and flags are used when
13874                 # linking a shared library.
13875                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13876               else
13877                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13878                 # platform.
13879                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13880                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13881                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13882
13883                 # Commands to make compiler produce verbose output that lists
13884                 # what "hidden" libraries, object files and flags are used when
13885                 # linking a shared library.
13886                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13887               fi
13888
13889               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13890               case $host_os in
13891                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13892                 *)
13893                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13894                   ;;
13895               esac
13896             fi
13897             ;;
13898         esac
13899         ;;
13900
13901     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13902       no_undefined_flag_CXX='${wl}-z,text'
13903       archive_cmds_need_lc_CXX=no
13904       hardcode_shlibpath_var_CXX=no
13905       runpath_var='LD_RUN_PATH'
13906
13907       case $cc_basename in
13908         CC*)
13909           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13910           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13911           ;;
13912         *)
13913           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13914           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13915           ;;
13916       esac
13917       ;;
13918
13919       sysv5* | sco3.2v5* | sco5v6*)
13920         # Note: We can NOT use -z defs as we might desire, because we do not
13921         # link with -lc, and that would cause any symbols used from libc to
13922         # always be unresolved, which means just about no library would
13923         # ever link correctly.  If we're not using GNU ld we use -z text
13924         # though, which does catch some bad symbols but isn't as heavy-handed
13925         # as -z defs.
13926         no_undefined_flag_CXX='${wl}-z,text'
13927         allow_undefined_flag_CXX='${wl}-z,nodefs'
13928         archive_cmds_need_lc_CXX=no
13929         hardcode_shlibpath_var_CXX=no
13930         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13931         hardcode_libdir_separator_CXX=':'
13932         link_all_deplibs_CXX=yes
13933         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13934         runpath_var='LD_RUN_PATH'
13935
13936         case $cc_basename in
13937           CC*)
13938             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13939             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13940             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13941               '"$old_archive_cmds_CXX"
13942             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13943               '"$reload_cmds_CXX"
13944             ;;
13945           *)
13946             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13947             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13948             ;;
13949         esac
13950       ;;
13951
13952       tandem*)
13953         case $cc_basename in
13954           NCC*)
13955             # NonStop-UX NCC 3.20
13956             # FIXME: insert proper C++ library support
13957             ld_shlibs_CXX=no
13958             ;;
13959           *)
13960             # FIXME: insert proper C++ library support
13961             ld_shlibs_CXX=no
13962             ;;
13963         esac
13964         ;;
13965
13966       vxworks*)
13967         # FIXME: insert proper C++ library support
13968         ld_shlibs_CXX=no
13969         ;;
13970
13971       *)
13972         # FIXME: insert proper C++ library support
13973         ld_shlibs_CXX=no
13974         ;;
13975     esac
13976
13977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13978 $as_echo "$ld_shlibs_CXX" >&6; }
13979     test "$ld_shlibs_CXX" = no && can_build_shared=no
13980
13981     GCC_CXX="$GXX"
13982     LD_CXX="$LD"
13983
13984     ## CAVEAT EMPTOR:
13985     ## There is no encapsulation within the following macros, do not change
13986     ## the running order or otherwise move them around unless you know exactly
13987     ## what you are doing...
13988     # Dependencies to place before and after the object being linked:
13989 predep_objects_CXX=
13990 postdep_objects_CXX=
13991 predeps_CXX=
13992 postdeps_CXX=
13993 compiler_lib_search_path_CXX=
13994
13995 cat > conftest.$ac_ext <<_LT_EOF
13996 class Foo
13997 {
13998 public:
13999   Foo (void) { a = 0; }
14000 private:
14001   int a;
14002 };
14003 _LT_EOF
14004
14005
14006 _lt_libdeps_save_CFLAGS=$CFLAGS
14007 case "$CC $CFLAGS " in #(
14008 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14009 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14010 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14011 esac
14012
14013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14014   (eval $ac_compile) 2>&5
14015   ac_status=$?
14016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14017   test $ac_status = 0; }; then
14018   # Parse the compiler output and extract the necessary
14019   # objects, libraries and library flags.
14020
14021   # Sentinel used to keep track of whether or not we are before
14022   # the conftest object file.
14023   pre_test_object_deps_done=no
14024
14025   for p in `eval "$output_verbose_link_cmd"`; do
14026     case ${prev}${p} in
14027
14028     -L* | -R* | -l*)
14029        # Some compilers place space between "-{L,R}" and the path.
14030        # Remove the space.
14031        if test $p = "-L" ||
14032           test $p = "-R"; then
14033          prev=$p
14034          continue
14035        fi
14036
14037        # Expand the sysroot to ease extracting the directories later.
14038        if test -z "$prev"; then
14039          case $p in
14040          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14041          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14042          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14043          esac
14044        fi
14045        case $p in
14046        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14047        esac
14048        if test "$pre_test_object_deps_done" = no; then
14049          case ${prev} in
14050          -L | -R)
14051            # Internal compiler library paths should come after those
14052            # provided the user.  The postdeps already come after the
14053            # user supplied libs so there is no need to process them.
14054            if test -z "$compiler_lib_search_path_CXX"; then
14055              compiler_lib_search_path_CXX="${prev}${p}"
14056            else
14057              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14058            fi
14059            ;;
14060          # The "-l" case would never come before the object being
14061          # linked, so don't bother handling this case.
14062          esac
14063        else
14064          if test -z "$postdeps_CXX"; then
14065            postdeps_CXX="${prev}${p}"
14066          else
14067            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14068          fi
14069        fi
14070        prev=
14071        ;;
14072
14073     *.lto.$objext) ;; # Ignore GCC LTO objects
14074     *.$objext)
14075        # This assumes that the test object file only shows up
14076        # once in the compiler output.
14077        if test "$p" = "conftest.$objext"; then
14078          pre_test_object_deps_done=yes
14079          continue
14080        fi
14081
14082        if test "$pre_test_object_deps_done" = no; then
14083          if test -z "$predep_objects_CXX"; then
14084            predep_objects_CXX="$p"
14085          else
14086            predep_objects_CXX="$predep_objects_CXX $p"
14087          fi
14088        else
14089          if test -z "$postdep_objects_CXX"; then
14090            postdep_objects_CXX="$p"
14091          else
14092            postdep_objects_CXX="$postdep_objects_CXX $p"
14093          fi
14094        fi
14095        ;;
14096
14097     *) ;; # Ignore the rest.
14098
14099     esac
14100   done
14101
14102   # Clean up.
14103   rm -f a.out a.exe
14104 else
14105   echo "libtool.m4: error: problem compiling CXX test program"
14106 fi
14107
14108 $RM -f confest.$objext
14109 CFLAGS=$_lt_libdeps_save_CFLAGS
14110
14111 # PORTME: override above test on systems where it is broken
14112 case $host_os in
14113 interix[3-9]*)
14114   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14115   # hack all around it, let's just trust "g++" to DTRT.
14116   predep_objects_CXX=
14117   postdep_objects_CXX=
14118   postdeps_CXX=
14119   ;;
14120
14121 linux*)
14122   case `$CC -V 2>&1 | sed 5q` in
14123   *Sun\ C*)
14124     # Sun C++ 5.9
14125
14126     # The more standards-conforming stlport4 library is
14127     # incompatible with the Cstd library. Avoid specifying
14128     # it if it's in CXXFLAGS. Ignore libCrun as
14129     # -library=stlport4 depends on it.
14130     case " $CXX $CXXFLAGS " in
14131     *" -library=stlport4 "*)
14132       solaris_use_stlport4=yes
14133       ;;
14134     esac
14135
14136     if test "$solaris_use_stlport4" != yes; then
14137       postdeps_CXX='-library=Cstd -library=Crun'
14138     fi
14139     ;;
14140   esac
14141   ;;
14142
14143 solaris*)
14144   case $cc_basename in
14145   CC* | sunCC*)
14146     # The more standards-conforming stlport4 library is
14147     # incompatible with the Cstd library. Avoid specifying
14148     # it if it's in CXXFLAGS. Ignore libCrun as
14149     # -library=stlport4 depends on it.
14150     case " $CXX $CXXFLAGS " in
14151     *" -library=stlport4 "*)
14152       solaris_use_stlport4=yes
14153       ;;
14154     esac
14155
14156     # Adding this requires a known-good setup of shared libraries for
14157     # Sun compiler versions before 5.6, else PIC objects from an old
14158     # archive will be linked into the output, leading to subtle bugs.
14159     if test "$solaris_use_stlport4" != yes; then
14160       postdeps_CXX='-library=Cstd -library=Crun'
14161     fi
14162     ;;
14163   esac
14164   ;;
14165 esac
14166
14167
14168 case " $postdeps_CXX " in
14169 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14170 esac
14171  compiler_lib_search_dirs_CXX=
14172 if test -n "${compiler_lib_search_path_CXX}"; then
14173  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14174 fi
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206     lt_prog_compiler_wl_CXX=
14207 lt_prog_compiler_pic_CXX=
14208 lt_prog_compiler_static_CXX=
14209
14210
14211   # C++ specific cases for pic, static, wl, etc.
14212   if test "$GXX" = yes; then
14213     lt_prog_compiler_wl_CXX='-Wl,'
14214     lt_prog_compiler_static_CXX='-static'
14215
14216     case $host_os in
14217     aix*)
14218       # All AIX code is PIC.
14219       if test "$host_cpu" = ia64; then
14220         # AIX 5 now supports IA64 processor
14221         lt_prog_compiler_static_CXX='-Bstatic'
14222       fi
14223       ;;
14224
14225     amigaos*)
14226       case $host_cpu in
14227       powerpc)
14228             # see comment about AmigaOS4 .so support
14229             lt_prog_compiler_pic_CXX='-fPIC'
14230         ;;
14231       m68k)
14232             # FIXME: we need at least 68020 code to build shared libraries, but
14233             # adding the `-m68020' flag to GCC prevents building anything better,
14234             # like `-m68040'.
14235             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14236         ;;
14237       esac
14238       ;;
14239
14240     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14241       # PIC is the default for these OSes.
14242       ;;
14243     mingw* | cygwin* | os2* | pw32* | cegcc*)
14244       # This hack is so that the source file can tell whether it is being
14245       # built for inclusion in a dll (and should export symbols for example).
14246       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14247       # (--disable-auto-import) libraries
14248       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14249       ;;
14250     darwin* | rhapsody*)
14251       # PIC is the default on this platform
14252       # Common symbols not allowed in MH_DYLIB files
14253       lt_prog_compiler_pic_CXX='-fno-common'
14254       ;;
14255     *djgpp*)
14256       # DJGPP does not support shared libraries at all
14257       lt_prog_compiler_pic_CXX=
14258       ;;
14259     haiku*)
14260       # PIC is the default for Haiku.
14261       # The "-static" flag exists, but is broken.
14262       lt_prog_compiler_static_CXX=
14263       ;;
14264     interix[3-9]*)
14265       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14266       # Instead, we relocate shared libraries at runtime.
14267       ;;
14268     sysv4*MP*)
14269       if test -d /usr/nec; then
14270         lt_prog_compiler_pic_CXX=-Kconform_pic
14271       fi
14272       ;;
14273     hpux*)
14274       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14275       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14276       # sets the default TLS model and affects inlining.
14277       case $host_cpu in
14278       hppa*64*)
14279         ;;
14280       *)
14281         lt_prog_compiler_pic_CXX='-fPIC'
14282         ;;
14283       esac
14284       ;;
14285     *qnx* | *nto*)
14286       # QNX uses GNU C++, but need to define -shared option too, otherwise
14287       # it will coredump.
14288       lt_prog_compiler_pic_CXX='-fPIC -shared'
14289       ;;
14290     *)
14291       lt_prog_compiler_pic_CXX='-fPIC'
14292       ;;
14293     esac
14294   else
14295     case $host_os in
14296       aix[4-9]*)
14297         # All AIX code is PIC.
14298         if test "$host_cpu" = ia64; then
14299           # AIX 5 now supports IA64 processor
14300           lt_prog_compiler_static_CXX='-Bstatic'
14301         else
14302           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14303         fi
14304         ;;
14305       chorus*)
14306         case $cc_basename in
14307         cxch68*)
14308           # Green Hills C++ Compiler
14309           # _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"
14310           ;;
14311         esac
14312         ;;
14313       mingw* | cygwin* | os2* | pw32* | cegcc*)
14314         # This hack is so that the source file can tell whether it is being
14315         # built for inclusion in a dll (and should export symbols for example).
14316         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14317         ;;
14318       dgux*)
14319         case $cc_basename in
14320           ec++*)
14321             lt_prog_compiler_pic_CXX='-KPIC'
14322             ;;
14323           ghcx*)
14324             # Green Hills C++ Compiler
14325             lt_prog_compiler_pic_CXX='-pic'
14326             ;;
14327           *)
14328             ;;
14329         esac
14330         ;;
14331       freebsd* | dragonfly*)
14332         # FreeBSD uses GNU C++
14333         ;;
14334       hpux9* | hpux10* | hpux11*)
14335         case $cc_basename in
14336           CC*)
14337             lt_prog_compiler_wl_CXX='-Wl,'
14338             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14339             if test "$host_cpu" != ia64; then
14340               lt_prog_compiler_pic_CXX='+Z'
14341             fi
14342             ;;
14343           aCC*)
14344             lt_prog_compiler_wl_CXX='-Wl,'
14345             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14346             case $host_cpu in
14347             hppa*64*|ia64*)
14348               # +Z the default
14349               ;;
14350             *)
14351               lt_prog_compiler_pic_CXX='+Z'
14352               ;;
14353             esac
14354             ;;
14355           *)
14356             ;;
14357         esac
14358         ;;
14359       interix*)
14360         # This is c89, which is MS Visual C++ (no shared libs)
14361         # Anyone wants to do a port?
14362         ;;
14363       irix5* | irix6* | nonstopux*)
14364         case $cc_basename in
14365           CC*)
14366             lt_prog_compiler_wl_CXX='-Wl,'
14367             lt_prog_compiler_static_CXX='-non_shared'
14368             # CC pic flag -KPIC is the default.
14369             ;;
14370           *)
14371             ;;
14372         esac
14373         ;;
14374       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14375         case $cc_basename in
14376           KCC*)
14377             # KAI C++ Compiler
14378             lt_prog_compiler_wl_CXX='--backend -Wl,'
14379             lt_prog_compiler_pic_CXX='-fPIC'
14380             ;;
14381           ecpc* )
14382             # old Intel C++ for x86_64 which still supported -KPIC.
14383             lt_prog_compiler_wl_CXX='-Wl,'
14384             lt_prog_compiler_pic_CXX='-KPIC'
14385             lt_prog_compiler_static_CXX='-static'
14386             ;;
14387           icpc* )
14388             # Intel C++, used to be incompatible with GCC.
14389             # ICC 10 doesn't accept -KPIC any more.
14390             lt_prog_compiler_wl_CXX='-Wl,'
14391             lt_prog_compiler_pic_CXX='-fPIC'
14392             lt_prog_compiler_static_CXX='-static'
14393             ;;
14394           pgCC* | pgcpp*)
14395             # Portland Group C++ compiler
14396             lt_prog_compiler_wl_CXX='-Wl,'
14397             lt_prog_compiler_pic_CXX='-fpic'
14398             lt_prog_compiler_static_CXX='-Bstatic'
14399             ;;
14400           cxx*)
14401             # Compaq C++
14402             # Make sure the PIC flag is empty.  It appears that all Alpha
14403             # Linux and Compaq Tru64 Unix objects are PIC.
14404             lt_prog_compiler_pic_CXX=
14405             lt_prog_compiler_static_CXX='-non_shared'
14406             ;;
14407           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14408             # IBM XL 8.0, 9.0 on PPC and BlueGene
14409             lt_prog_compiler_wl_CXX='-Wl,'
14410             lt_prog_compiler_pic_CXX='-qpic'
14411             lt_prog_compiler_static_CXX='-qstaticlink'
14412             ;;
14413           *)
14414             case `$CC -V 2>&1 | sed 5q` in
14415             *Sun\ C*)
14416               # Sun C++ 5.9
14417               lt_prog_compiler_pic_CXX='-KPIC'
14418               lt_prog_compiler_static_CXX='-Bstatic'
14419               lt_prog_compiler_wl_CXX='-Qoption ld '
14420               ;;
14421             esac
14422             ;;
14423         esac
14424         ;;
14425       lynxos*)
14426         ;;
14427       m88k*)
14428         ;;
14429       mvs*)
14430         case $cc_basename in
14431           cxx*)
14432             lt_prog_compiler_pic_CXX='-W c,exportall'
14433             ;;
14434           *)
14435             ;;
14436         esac
14437         ;;
14438       netbsd* | netbsdelf*-gnu)
14439         ;;
14440       *qnx* | *nto*)
14441         # QNX uses GNU C++, but need to define -shared option too, otherwise
14442         # it will coredump.
14443         lt_prog_compiler_pic_CXX='-fPIC -shared'
14444         ;;
14445       osf3* | osf4* | osf5*)
14446         case $cc_basename in
14447           KCC*)
14448             lt_prog_compiler_wl_CXX='--backend -Wl,'
14449             ;;
14450           RCC*)
14451             # Rational C++ 2.4.1
14452             lt_prog_compiler_pic_CXX='-pic'
14453             ;;
14454           cxx*)
14455             # Digital/Compaq C++
14456             lt_prog_compiler_wl_CXX='-Wl,'
14457             # Make sure the PIC flag is empty.  It appears that all Alpha
14458             # Linux and Compaq Tru64 Unix objects are PIC.
14459             lt_prog_compiler_pic_CXX=
14460             lt_prog_compiler_static_CXX='-non_shared'
14461             ;;
14462           *)
14463             ;;
14464         esac
14465         ;;
14466       psos*)
14467         ;;
14468       solaris*)
14469         case $cc_basename in
14470           CC* | sunCC*)
14471             # Sun C++ 4.2, 5.x and Centerline C++
14472             lt_prog_compiler_pic_CXX='-KPIC'
14473             lt_prog_compiler_static_CXX='-Bstatic'
14474             lt_prog_compiler_wl_CXX='-Qoption ld '
14475             ;;
14476           gcx*)
14477             # Green Hills C++ Compiler
14478             lt_prog_compiler_pic_CXX='-PIC'
14479             ;;
14480           *)
14481             ;;
14482         esac
14483         ;;
14484       sunos4*)
14485         case $cc_basename in
14486           CC*)
14487             # Sun C++ 4.x
14488             lt_prog_compiler_pic_CXX='-pic'
14489             lt_prog_compiler_static_CXX='-Bstatic'
14490             ;;
14491           lcc*)
14492             # Lucid
14493             lt_prog_compiler_pic_CXX='-pic'
14494             ;;
14495           *)
14496             ;;
14497         esac
14498         ;;
14499       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14500         case $cc_basename in
14501           CC*)
14502             lt_prog_compiler_wl_CXX='-Wl,'
14503             lt_prog_compiler_pic_CXX='-KPIC'
14504             lt_prog_compiler_static_CXX='-Bstatic'
14505             ;;
14506         esac
14507         ;;
14508       tandem*)
14509         case $cc_basename in
14510           NCC*)
14511             # NonStop-UX NCC 3.20
14512             lt_prog_compiler_pic_CXX='-KPIC'
14513             ;;
14514           *)
14515             ;;
14516         esac
14517         ;;
14518       vxworks*)
14519         ;;
14520       *)
14521         lt_prog_compiler_can_build_shared_CXX=no
14522         ;;
14523     esac
14524   fi
14525
14526 case $host_os in
14527   # For platforms which do not support PIC, -DPIC is meaningless:
14528   *djgpp*)
14529     lt_prog_compiler_pic_CXX=
14530     ;;
14531   *)
14532     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14533     ;;
14534 esac
14535
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14537 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14538 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14539   $as_echo_n "(cached) " >&6
14540 else
14541   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14542 fi
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14544 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14545 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14546
14547 #
14548 # Check to make sure the PIC flag actually works.
14549 #
14550 if test -n "$lt_prog_compiler_pic_CXX"; then
14551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14552 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14553 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14554   $as_echo_n "(cached) " >&6
14555 else
14556   lt_cv_prog_compiler_pic_works_CXX=no
14557    ac_outfile=conftest.$ac_objext
14558    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14559    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14560    # Insert the option either (1) after the last *FLAGS variable, or
14561    # (2) before a word containing "conftest.", or (3) at the end.
14562    # Note that $ac_compile itself does not contain backslashes and begins
14563    # with a dollar sign (not a hyphen), so the echo should work correctly.
14564    # The option is referenced via a variable to avoid confusing sed.
14565    lt_compile=`echo "$ac_compile" | $SED \
14566    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14567    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14568    -e 's:$: $lt_compiler_flag:'`
14569    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14570    (eval "$lt_compile" 2>conftest.err)
14571    ac_status=$?
14572    cat conftest.err >&5
14573    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574    if (exit $ac_status) && test -s "$ac_outfile"; then
14575      # The compiler can only warn and ignore the option if not recognized
14576      # So say no if there are warnings other than the usual output.
14577      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14578      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14579      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14580        lt_cv_prog_compiler_pic_works_CXX=yes
14581      fi
14582    fi
14583    $RM conftest*
14584
14585 fi
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14587 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14588
14589 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14590     case $lt_prog_compiler_pic_CXX in
14591      "" | " "*) ;;
14592      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14593      esac
14594 else
14595     lt_prog_compiler_pic_CXX=
14596      lt_prog_compiler_can_build_shared_CXX=no
14597 fi
14598
14599 fi
14600
14601
14602
14603
14604
14605 #
14606 # Check to make sure the static flag actually works.
14607 #
14608 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14610 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14611 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14612   $as_echo_n "(cached) " >&6
14613 else
14614   lt_cv_prog_compiler_static_works_CXX=no
14615    save_LDFLAGS="$LDFLAGS"
14616    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14617    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14618    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14619      # The linker can only warn and ignore the option if not recognized
14620      # So say no if there are warnings
14621      if test -s conftest.err; then
14622        # Append any errors to the config.log.
14623        cat conftest.err 1>&5
14624        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14625        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14626        if diff conftest.exp conftest.er2 >/dev/null; then
14627          lt_cv_prog_compiler_static_works_CXX=yes
14628        fi
14629      else
14630        lt_cv_prog_compiler_static_works_CXX=yes
14631      fi
14632    fi
14633    $RM -r conftest*
14634    LDFLAGS="$save_LDFLAGS"
14635
14636 fi
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14638 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14639
14640 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14641     :
14642 else
14643     lt_prog_compiler_static_CXX=
14644 fi
14645
14646
14647
14648
14649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14650 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14651 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14652   $as_echo_n "(cached) " >&6
14653 else
14654   lt_cv_prog_compiler_c_o_CXX=no
14655    $RM -r conftest 2>/dev/null
14656    mkdir conftest
14657    cd conftest
14658    mkdir out
14659    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14660
14661    lt_compiler_flag="-o out/conftest2.$ac_objext"
14662    # Insert the option either (1) after the last *FLAGS variable, or
14663    # (2) before a word containing "conftest.", or (3) at the end.
14664    # Note that $ac_compile itself does not contain backslashes and begins
14665    # with a dollar sign (not a hyphen), so the echo should work correctly.
14666    lt_compile=`echo "$ac_compile" | $SED \
14667    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14668    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14669    -e 's:$: $lt_compiler_flag:'`
14670    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14671    (eval "$lt_compile" 2>out/conftest.err)
14672    ac_status=$?
14673    cat out/conftest.err >&5
14674    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14676    then
14677      # The compiler can only warn and ignore the option if not recognized
14678      # So say no if there are warnings
14679      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14680      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14681      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14682        lt_cv_prog_compiler_c_o_CXX=yes
14683      fi
14684    fi
14685    chmod u+w . 2>&5
14686    $RM conftest*
14687    # SGI C++ compiler will create directory out/ii_files/ for
14688    # template instantiation
14689    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14690    $RM out/* && rmdir out
14691    cd ..
14692    $RM -r conftest
14693    $RM conftest*
14694
14695 fi
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14697 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14698
14699
14700
14701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14702 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14703 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14704   $as_echo_n "(cached) " >&6
14705 else
14706   lt_cv_prog_compiler_c_o_CXX=no
14707    $RM -r conftest 2>/dev/null
14708    mkdir conftest
14709    cd conftest
14710    mkdir out
14711    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14712
14713    lt_compiler_flag="-o out/conftest2.$ac_objext"
14714    # Insert the option either (1) after the last *FLAGS variable, or
14715    # (2) before a word containing "conftest.", or (3) at the end.
14716    # Note that $ac_compile itself does not contain backslashes and begins
14717    # with a dollar sign (not a hyphen), so the echo should work correctly.
14718    lt_compile=`echo "$ac_compile" | $SED \
14719    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14720    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14721    -e 's:$: $lt_compiler_flag:'`
14722    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14723    (eval "$lt_compile" 2>out/conftest.err)
14724    ac_status=$?
14725    cat out/conftest.err >&5
14726    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14728    then
14729      # The compiler can only warn and ignore the option if not recognized
14730      # So say no if there are warnings
14731      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14732      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14733      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14734        lt_cv_prog_compiler_c_o_CXX=yes
14735      fi
14736    fi
14737    chmod u+w . 2>&5
14738    $RM conftest*
14739    # SGI C++ compiler will create directory out/ii_files/ for
14740    # template instantiation
14741    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14742    $RM out/* && rmdir out
14743    cd ..
14744    $RM -r conftest
14745    $RM conftest*
14746
14747 fi
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14749 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14750
14751
14752
14753
14754 hard_links="nottested"
14755 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14756   # do not overwrite the value of need_locks provided by the user
14757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14758 $as_echo_n "checking if we can lock with hard links... " >&6; }
14759   hard_links=yes
14760   $RM conftest*
14761   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14762   touch conftest.a
14763   ln conftest.a conftest.b 2>&5 || hard_links=no
14764   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14766 $as_echo "$hard_links" >&6; }
14767   if test "$hard_links" = no; then
14768     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14769 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14770     need_locks=warn
14771   fi
14772 else
14773   need_locks=no
14774 fi
14775
14776
14777
14778     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14779 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14780
14781   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14782   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14783   case $host_os in
14784   aix[4-9]*)
14785     # If we're using GNU nm, then we don't want the "-C" option.
14786     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14787     # Also, AIX nm treats weak defined symbols like other global defined
14788     # symbols, whereas GNU nm marks them as "W".
14789     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14790       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14791     else
14792       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'
14793     fi
14794     ;;
14795   pw32*)
14796     export_symbols_cmds_CXX="$ltdll_cmds"
14797     ;;
14798   cygwin* | mingw* | cegcc*)
14799     case $cc_basename in
14800     cl*)
14801       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14802       ;;
14803     *)
14804       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14805       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14806       ;;
14807     esac
14808     ;;
14809   linux* | k*bsd*-gnu | gnu*)
14810     link_all_deplibs_CXX=no
14811     ;;
14812   *)
14813     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14814     ;;
14815   esac
14816
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14818 $as_echo "$ld_shlibs_CXX" >&6; }
14819 test "$ld_shlibs_CXX" = no && can_build_shared=no
14820
14821 with_gnu_ld_CXX=$with_gnu_ld
14822
14823
14824
14825
14826
14827
14828 #
14829 # Do we need to explicitly link libc?
14830 #
14831 case "x$archive_cmds_need_lc_CXX" in
14832 x|xyes)
14833   # Assume -lc should be added
14834   archive_cmds_need_lc_CXX=yes
14835
14836   if test "$enable_shared" = yes && test "$GCC" = yes; then
14837     case $archive_cmds_CXX in
14838     *'~'*)
14839       # FIXME: we may have to deal with multi-command sequences.
14840       ;;
14841     '$CC '*)
14842       # Test whether the compiler implicitly links with -lc since on some
14843       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14844       # to ld, don't add -lc before -lgcc.
14845       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14846 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14847 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14848   $as_echo_n "(cached) " >&6
14849 else
14850   $RM conftest*
14851         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14852
14853         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14854   (eval $ac_compile) 2>&5
14855   ac_status=$?
14856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14857   test $ac_status = 0; } 2>conftest.err; then
14858           soname=conftest
14859           lib=conftest
14860           libobjs=conftest.$ac_objext
14861           deplibs=
14862           wl=$lt_prog_compiler_wl_CXX
14863           pic_flag=$lt_prog_compiler_pic_CXX
14864           compiler_flags=-v
14865           linker_flags=-v
14866           verstring=
14867           output_objdir=.
14868           libname=conftest
14869           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14870           allow_undefined_flag_CXX=
14871           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14872   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14873   ac_status=$?
14874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14875   test $ac_status = 0; }
14876           then
14877             lt_cv_archive_cmds_need_lc_CXX=no
14878           else
14879             lt_cv_archive_cmds_need_lc_CXX=yes
14880           fi
14881           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14882         else
14883           cat conftest.err 1>&5
14884         fi
14885         $RM conftest*
14886
14887 fi
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14889 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14890       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14891       ;;
14892     esac
14893   fi
14894   ;;
14895 esac
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
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
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14959 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14960
14961 library_names_spec=
14962 libname_spec='lib$name'
14963 soname_spec=
14964 shrext_cmds=".so"
14965 postinstall_cmds=
14966 postuninstall_cmds=
14967 finish_cmds=
14968 finish_eval=
14969 shlibpath_var=
14970 shlibpath_overrides_runpath=unknown
14971 version_type=none
14972 dynamic_linker="$host_os ld.so"
14973 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14974 need_lib_prefix=unknown
14975 hardcode_into_libs=no
14976
14977 # when you set need_version to no, make sure it does not cause -set_version
14978 # flags to be left without arguments
14979 need_version=unknown
14980
14981 case $host_os in
14982 aix3*)
14983   version_type=linux # correct to gnu/linux during the next big refactor
14984   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14985   shlibpath_var=LIBPATH
14986
14987   # AIX 3 has no versioning support, so we append a major version to the name.
14988   soname_spec='${libname}${release}${shared_ext}$major'
14989   ;;
14990
14991 aix[4-9]*)
14992   version_type=linux # correct to gnu/linux during the next big refactor
14993   need_lib_prefix=no
14994   need_version=no
14995   hardcode_into_libs=yes
14996   if test "$host_cpu" = ia64; then
14997     # AIX 5 supports IA64
14998     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14999     shlibpath_var=LD_LIBRARY_PATH
15000   else
15001     # With GCC up to 2.95.x, collect2 would create an import file
15002     # for dependence libraries.  The import file would start with
15003     # the line `#! .'.  This would cause the generated library to
15004     # depend on `.', always an invalid library.  This was fixed in
15005     # development snapshots of GCC prior to 3.0.
15006     case $host_os in
15007       aix4 | aix4.[01] | aix4.[01].*)
15008       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15009            echo ' yes '
15010            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15011         :
15012       else
15013         can_build_shared=no
15014       fi
15015       ;;
15016     esac
15017     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15018     # soname into executable. Probably we can add versioning support to
15019     # collect2, so additional links can be useful in future.
15020     if test "$aix_use_runtimelinking" = yes; then
15021       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15022       # instead of lib<name>.a to let people know that these are not
15023       # typical AIX shared libraries.
15024       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025     else
15026       # We preserve .a as extension for shared libraries through AIX4.2
15027       # and later when we are not doing run time linking.
15028       library_names_spec='${libname}${release}.a $libname.a'
15029       soname_spec='${libname}${release}${shared_ext}$major'
15030     fi
15031     shlibpath_var=LIBPATH
15032   fi
15033   ;;
15034
15035 amigaos*)
15036   case $host_cpu in
15037   powerpc)
15038     # Since July 2007 AmigaOS4 officially supports .so libraries.
15039     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15040     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041     ;;
15042   m68k)
15043     library_names_spec='$libname.ixlibrary $libname.a'
15044     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15045     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15046     ;;
15047   esac
15048   ;;
15049
15050 beos*)
15051   library_names_spec='${libname}${shared_ext}'
15052   dynamic_linker="$host_os ld.so"
15053   shlibpath_var=LIBRARY_PATH
15054   ;;
15055
15056 bsdi[45]*)
15057   version_type=linux # correct to gnu/linux during the next big refactor
15058   need_version=no
15059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15060   soname_spec='${libname}${release}${shared_ext}$major'
15061   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15062   shlibpath_var=LD_LIBRARY_PATH
15063   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15064   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15065   # the default ld.so.conf also contains /usr/contrib/lib and
15066   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15067   # libtool to hard-code these into programs
15068   ;;
15069
15070 cygwin* | mingw* | pw32* | cegcc*)
15071   version_type=windows
15072   shrext_cmds=".dll"
15073   need_version=no
15074   need_lib_prefix=no
15075
15076   case $GCC,$cc_basename in
15077   yes,*)
15078     # gcc
15079     library_names_spec='$libname.dll.a'
15080     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15081     postinstall_cmds='base_file=`basename \${file}`~
15082       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15083       dldir=$destdir/`dirname \$dlpath`~
15084       test -d \$dldir || mkdir -p \$dldir~
15085       $install_prog $dir/$dlname \$dldir/$dlname~
15086       chmod a+x \$dldir/$dlname~
15087       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15088         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15089       fi'
15090     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15091       dlpath=$dir/\$dldll~
15092        $RM \$dlpath'
15093     shlibpath_overrides_runpath=yes
15094
15095     case $host_os in
15096     cygwin*)
15097       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15098       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15099
15100       ;;
15101     mingw* | cegcc*)
15102       # MinGW DLLs use traditional 'lib' prefix
15103       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15104       ;;
15105     pw32*)
15106       # pw32 DLLs use 'pw' prefix rather than 'lib'
15107       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15108       ;;
15109     esac
15110     dynamic_linker='Win32 ld.exe'
15111     ;;
15112
15113   *,cl*)
15114     # Native MSVC
15115     libname_spec='$name'
15116     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15117     library_names_spec='${libname}.dll.lib'
15118
15119     case $build_os in
15120     mingw*)
15121       sys_lib_search_path_spec=
15122       lt_save_ifs=$IFS
15123       IFS=';'
15124       for lt_path in $LIB
15125       do
15126         IFS=$lt_save_ifs
15127         # Let DOS variable expansion print the short 8.3 style file name.
15128         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15129         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15130       done
15131       IFS=$lt_save_ifs
15132       # Convert to MSYS style.
15133       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15134       ;;
15135     cygwin*)
15136       # Convert to unix form, then to dos form, then back to unix form
15137       # but this time dos style (no spaces!) so that the unix form looks
15138       # like /cygdrive/c/PROGRA~1:/cygdr...
15139       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15140       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15141       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15142       ;;
15143     *)
15144       sys_lib_search_path_spec="$LIB"
15145       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15146         # It is most probably a Windows format PATH.
15147         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15148       else
15149         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15150       fi
15151       # FIXME: find the short name or the path components, as spaces are
15152       # common. (e.g. "Program Files" -> "PROGRA~1")
15153       ;;
15154     esac
15155
15156     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15157     postinstall_cmds='base_file=`basename \${file}`~
15158       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15159       dldir=$destdir/`dirname \$dlpath`~
15160       test -d \$dldir || mkdir -p \$dldir~
15161       $install_prog $dir/$dlname \$dldir/$dlname'
15162     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15163       dlpath=$dir/\$dldll~
15164        $RM \$dlpath'
15165     shlibpath_overrides_runpath=yes
15166     dynamic_linker='Win32 link.exe'
15167     ;;
15168
15169   *)
15170     # Assume MSVC wrapper
15171     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15172     dynamic_linker='Win32 ld.exe'
15173     ;;
15174   esac
15175   # FIXME: first we should search . and the directory the executable is in
15176   shlibpath_var=PATH
15177   ;;
15178
15179 darwin* | rhapsody*)
15180   dynamic_linker="$host_os dyld"
15181   version_type=darwin
15182   need_lib_prefix=no
15183   need_version=no
15184   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15185   soname_spec='${libname}${release}${major}$shared_ext'
15186   shlibpath_overrides_runpath=yes
15187   shlibpath_var=DYLD_LIBRARY_PATH
15188   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15189
15190   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15191   ;;
15192
15193 dgux*)
15194   version_type=linux # correct to gnu/linux during the next big refactor
15195   need_lib_prefix=no
15196   need_version=no
15197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15198   soname_spec='${libname}${release}${shared_ext}$major'
15199   shlibpath_var=LD_LIBRARY_PATH
15200   ;;
15201
15202 freebsd* | dragonfly*)
15203   # DragonFly does not have aout.  When/if they implement a new
15204   # versioning mechanism, adjust this.
15205   if test -x /usr/bin/objformat; then
15206     objformat=`/usr/bin/objformat`
15207   else
15208     case $host_os in
15209     freebsd[23].*) objformat=aout ;;
15210     *) objformat=elf ;;
15211     esac
15212   fi
15213   version_type=freebsd-$objformat
15214   case $version_type in
15215     freebsd-elf*)
15216       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15217       need_version=no
15218       need_lib_prefix=no
15219       ;;
15220     freebsd-*)
15221       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15222       need_version=yes
15223       ;;
15224   esac
15225   shlibpath_var=LD_LIBRARY_PATH
15226   case $host_os in
15227   freebsd2.*)
15228     shlibpath_overrides_runpath=yes
15229     ;;
15230   freebsd3.[01]* | freebsdelf3.[01]*)
15231     shlibpath_overrides_runpath=yes
15232     hardcode_into_libs=yes
15233     ;;
15234   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15235   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15236     shlibpath_overrides_runpath=no
15237     hardcode_into_libs=yes
15238     ;;
15239   *) # from 4.6 on, and DragonFly
15240     shlibpath_overrides_runpath=yes
15241     hardcode_into_libs=yes
15242     ;;
15243   esac
15244   ;;
15245
15246 haiku*)
15247   version_type=linux # correct to gnu/linux during the next big refactor
15248   need_lib_prefix=no
15249   need_version=no
15250   dynamic_linker="$host_os runtime_loader"
15251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15252   soname_spec='${libname}${release}${shared_ext}$major'
15253   shlibpath_var=LIBRARY_PATH
15254   shlibpath_overrides_runpath=yes
15255   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15256   hardcode_into_libs=yes
15257   ;;
15258
15259 hpux9* | hpux10* | hpux11*)
15260   # Give a soname corresponding to the major version so that dld.sl refuses to
15261   # link against other versions.
15262   version_type=sunos
15263   need_lib_prefix=no
15264   need_version=no
15265   case $host_cpu in
15266   ia64*)
15267     shrext_cmds='.so'
15268     hardcode_into_libs=yes
15269     dynamic_linker="$host_os dld.so"
15270     shlibpath_var=LD_LIBRARY_PATH
15271     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15273     soname_spec='${libname}${release}${shared_ext}$major'
15274     if test "X$HPUX_IA64_MODE" = X32; then
15275       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15276     else
15277       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15278     fi
15279     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15280     ;;
15281   hppa*64*)
15282     shrext_cmds='.sl'
15283     hardcode_into_libs=yes
15284     dynamic_linker="$host_os dld.sl"
15285     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15286     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15287     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288     soname_spec='${libname}${release}${shared_ext}$major'
15289     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15290     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15291     ;;
15292   *)
15293     shrext_cmds='.sl'
15294     dynamic_linker="$host_os dld.sl"
15295     shlibpath_var=SHLIB_PATH
15296     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15298     soname_spec='${libname}${release}${shared_ext}$major'
15299     ;;
15300   esac
15301   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15302   postinstall_cmds='chmod 555 $lib'
15303   # or fails outright, so override atomically:
15304   install_override_mode=555
15305   ;;
15306
15307 interix[3-9]*)
15308   version_type=linux # correct to gnu/linux during the next big refactor
15309   need_lib_prefix=no
15310   need_version=no
15311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15312   soname_spec='${libname}${release}${shared_ext}$major'
15313   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15314   shlibpath_var=LD_LIBRARY_PATH
15315   shlibpath_overrides_runpath=no
15316   hardcode_into_libs=yes
15317   ;;
15318
15319 irix5* | irix6* | nonstopux*)
15320   case $host_os in
15321     nonstopux*) version_type=nonstopux ;;
15322     *)
15323         if test "$lt_cv_prog_gnu_ld" = yes; then
15324                 version_type=linux # correct to gnu/linux during the next big refactor
15325         else
15326                 version_type=irix
15327         fi ;;
15328   esac
15329   need_lib_prefix=no
15330   need_version=no
15331   soname_spec='${libname}${release}${shared_ext}$major'
15332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15333   case $host_os in
15334   irix5* | nonstopux*)
15335     libsuff= shlibsuff=
15336     ;;
15337   *)
15338     case $LD in # libtool.m4 will add one of these switches to LD
15339     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15340       libsuff= shlibsuff= libmagic=32-bit;;
15341     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15342       libsuff=32 shlibsuff=N32 libmagic=N32;;
15343     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15344       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15345     *) libsuff= shlibsuff= libmagic=never-match;;
15346     esac
15347     ;;
15348   esac
15349   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15350   shlibpath_overrides_runpath=no
15351   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15352   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15353   hardcode_into_libs=yes
15354   ;;
15355
15356 # No shared lib support for Linux oldld, aout, or coff.
15357 linux*oldld* | linux*aout* | linux*coff*)
15358   dynamic_linker=no
15359   ;;
15360
15361 # This must be glibc/ELF.
15362 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15363   version_type=linux # correct to gnu/linux during the next big refactor
15364   need_lib_prefix=no
15365   need_version=no
15366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15367   soname_spec='${libname}${release}${shared_ext}$major'
15368   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15369   shlibpath_var=LD_LIBRARY_PATH
15370   shlibpath_overrides_runpath=no
15371
15372   # Some binutils ld are patched to set DT_RUNPATH
15373   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15374   $as_echo_n "(cached) " >&6
15375 else
15376   lt_cv_shlibpath_overrides_runpath=no
15377     save_LDFLAGS=$LDFLAGS
15378     save_libdir=$libdir
15379     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15380          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15381     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15382 /* end confdefs.h.  */
15383
15384 int
15385 main ()
15386 {
15387
15388   ;
15389   return 0;
15390 }
15391 _ACEOF
15392 if ac_fn_cxx_try_link "$LINENO"; then :
15393   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15394   lt_cv_shlibpath_overrides_runpath=yes
15395 fi
15396 fi
15397 rm -f core conftest.err conftest.$ac_objext \
15398     conftest$ac_exeext conftest.$ac_ext
15399     LDFLAGS=$save_LDFLAGS
15400     libdir=$save_libdir
15401
15402 fi
15403
15404   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15405
15406   # This implies no fast_install, which is unacceptable.
15407   # Some rework will be needed to allow for fast_install
15408   # before this can be enabled.
15409   hardcode_into_libs=yes
15410
15411   # Append ld.so.conf contents to the search path
15412   if test -f /etc/ld.so.conf; then
15413     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15414     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15415   fi
15416
15417   # We used to test for /lib/ld.so.1 and disable shared libraries on
15418   # powerpc, because MkLinux only supported shared libraries with the
15419   # GNU dynamic linker.  Since this was broken with cross compilers,
15420   # most powerpc-linux boxes support dynamic linking these days and
15421   # people can always --disable-shared, the test was removed, and we
15422   # assume the GNU/Linux dynamic linker is in use.
15423   dynamic_linker='GNU/Linux ld.so'
15424   ;;
15425
15426 netbsdelf*-gnu)
15427   version_type=linux
15428   need_lib_prefix=no
15429   need_version=no
15430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15431   soname_spec='${libname}${release}${shared_ext}$major'
15432   shlibpath_var=LD_LIBRARY_PATH
15433   shlibpath_overrides_runpath=no
15434   hardcode_into_libs=yes
15435   dynamic_linker='NetBSD ld.elf_so'
15436   ;;
15437
15438 netbsd*)
15439   version_type=sunos
15440   need_lib_prefix=no
15441   need_version=no
15442   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15443     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15444     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15445     dynamic_linker='NetBSD (a.out) ld.so'
15446   else
15447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15448     soname_spec='${libname}${release}${shared_ext}$major'
15449     dynamic_linker='NetBSD ld.elf_so'
15450   fi
15451   shlibpath_var=LD_LIBRARY_PATH
15452   shlibpath_overrides_runpath=yes
15453   hardcode_into_libs=yes
15454   ;;
15455
15456 newsos6)
15457   version_type=linux # correct to gnu/linux during the next big refactor
15458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459   shlibpath_var=LD_LIBRARY_PATH
15460   shlibpath_overrides_runpath=yes
15461   ;;
15462
15463 *nto* | *qnx*)
15464   version_type=qnx
15465   need_lib_prefix=no
15466   need_version=no
15467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15468   soname_spec='${libname}${release}${shared_ext}$major'
15469   shlibpath_var=LD_LIBRARY_PATH
15470   shlibpath_overrides_runpath=no
15471   hardcode_into_libs=yes
15472   dynamic_linker='ldqnx.so'
15473   ;;
15474
15475 openbsd*)
15476   version_type=sunos
15477   sys_lib_dlsearch_path_spec="/usr/lib"
15478   need_lib_prefix=no
15479   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15480   case $host_os in
15481     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15482     *)                          need_version=no  ;;
15483   esac
15484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15485   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15486   shlibpath_var=LD_LIBRARY_PATH
15487   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15488     case $host_os in
15489       openbsd2.[89] | openbsd2.[89].*)
15490         shlibpath_overrides_runpath=no
15491         ;;
15492       *)
15493         shlibpath_overrides_runpath=yes
15494         ;;
15495       esac
15496   else
15497     shlibpath_overrides_runpath=yes
15498   fi
15499   ;;
15500
15501 os2*)
15502   libname_spec='$name'
15503   shrext_cmds=".dll"
15504   need_lib_prefix=no
15505   library_names_spec='$libname${shared_ext} $libname.a'
15506   dynamic_linker='OS/2 ld.exe'
15507   shlibpath_var=LIBPATH
15508   ;;
15509
15510 osf3* | osf4* | osf5*)
15511   version_type=osf
15512   need_lib_prefix=no
15513   need_version=no
15514   soname_spec='${libname}${release}${shared_ext}$major'
15515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15516   shlibpath_var=LD_LIBRARY_PATH
15517   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15518   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15519   ;;
15520
15521 rdos*)
15522   dynamic_linker=no
15523   ;;
15524
15525 solaris*)
15526   version_type=linux # correct to gnu/linux during the next big refactor
15527   need_lib_prefix=no
15528   need_version=no
15529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15530   soname_spec='${libname}${release}${shared_ext}$major'
15531   shlibpath_var=LD_LIBRARY_PATH
15532   shlibpath_overrides_runpath=yes
15533   hardcode_into_libs=yes
15534   # ldd complains unless libraries are executable
15535   postinstall_cmds='chmod +x $lib'
15536   ;;
15537
15538 sunos4*)
15539   version_type=sunos
15540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15541   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15542   shlibpath_var=LD_LIBRARY_PATH
15543   shlibpath_overrides_runpath=yes
15544   if test "$with_gnu_ld" = yes; then
15545     need_lib_prefix=no
15546   fi
15547   need_version=yes
15548   ;;
15549
15550 sysv4 | sysv4.3*)
15551   version_type=linux # correct to gnu/linux during the next big refactor
15552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15553   soname_spec='${libname}${release}${shared_ext}$major'
15554   shlibpath_var=LD_LIBRARY_PATH
15555   case $host_vendor in
15556     sni)
15557       shlibpath_overrides_runpath=no
15558       need_lib_prefix=no
15559       runpath_var=LD_RUN_PATH
15560       ;;
15561     siemens)
15562       need_lib_prefix=no
15563       ;;
15564     motorola)
15565       need_lib_prefix=no
15566       need_version=no
15567       shlibpath_overrides_runpath=no
15568       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15569       ;;
15570   esac
15571   ;;
15572
15573 sysv4*MP*)
15574   if test -d /usr/nec ;then
15575     version_type=linux # correct to gnu/linux during the next big refactor
15576     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15577     soname_spec='$libname${shared_ext}.$major'
15578     shlibpath_var=LD_LIBRARY_PATH
15579   fi
15580   ;;
15581
15582 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15583   version_type=freebsd-elf
15584   need_lib_prefix=no
15585   need_version=no
15586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15587   soname_spec='${libname}${release}${shared_ext}$major'
15588   shlibpath_var=LD_LIBRARY_PATH
15589   shlibpath_overrides_runpath=yes
15590   hardcode_into_libs=yes
15591   if test "$with_gnu_ld" = yes; then
15592     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15593   else
15594     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15595     case $host_os in
15596       sco3.2v5*)
15597         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15598         ;;
15599     esac
15600   fi
15601   sys_lib_dlsearch_path_spec='/usr/lib'
15602   ;;
15603
15604 tpf*)
15605   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15606   version_type=linux # correct to gnu/linux during the next big refactor
15607   need_lib_prefix=no
15608   need_version=no
15609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15610   shlibpath_var=LD_LIBRARY_PATH
15611   shlibpath_overrides_runpath=no
15612   hardcode_into_libs=yes
15613   ;;
15614
15615 uts4*)
15616   version_type=linux # correct to gnu/linux during the next big refactor
15617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618   soname_spec='${libname}${release}${shared_ext}$major'
15619   shlibpath_var=LD_LIBRARY_PATH
15620   ;;
15621
15622 *)
15623   dynamic_linker=no
15624   ;;
15625 esac
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15627 $as_echo "$dynamic_linker" >&6; }
15628 test "$dynamic_linker" = no && can_build_shared=no
15629
15630 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15631 if test "$GCC" = yes; then
15632   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15633 fi
15634
15635 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15636   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15637 fi
15638 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15639   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15640 fi
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15680 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15681 hardcode_action_CXX=
15682 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15683    test -n "$runpath_var_CXX" ||
15684    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15685
15686   # We can hardcode non-existent directories.
15687   if test "$hardcode_direct_CXX" != no &&
15688      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15689      # have to relink, otherwise we might link with an installed library
15690      # when we should be linking with a yet-to-be-installed one
15691      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15692      test "$hardcode_minus_L_CXX" != no; then
15693     # Linking always hardcodes the temporary library directory.
15694     hardcode_action_CXX=relink
15695   else
15696     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15697     hardcode_action_CXX=immediate
15698   fi
15699 else
15700   # We cannot hardcode anything, or else we can only hardcode existing
15701   # directories.
15702   hardcode_action_CXX=unsupported
15703 fi
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15705 $as_echo "$hardcode_action_CXX" >&6; }
15706
15707 if test "$hardcode_action_CXX" = relink ||
15708    test "$inherit_rpath_CXX" = yes; then
15709   # Fast installation is not supported
15710   enable_fast_install=no
15711 elif test "$shlibpath_overrides_runpath" = yes ||
15712      test "$enable_shared" = no; then
15713   # Fast installation is not necessary
15714   enable_fast_install=needless
15715 fi
15716
15717
15718
15719
15720
15721
15722
15723   fi # test -n "$compiler"
15724
15725   CC=$lt_save_CC
15726   CFLAGS=$lt_save_CFLAGS
15727   LDCXX=$LD
15728   LD=$lt_save_LD
15729   GCC=$lt_save_GCC
15730   with_gnu_ld=$lt_save_with_gnu_ld
15731   lt_cv_path_LDCXX=$lt_cv_path_LD
15732   lt_cv_path_LD=$lt_save_path_LD
15733   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15734   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15735 fi # test "$_lt_caught_CXX_error" != yes
15736
15737 ac_ext=c
15738 ac_cpp='$CPP $CPPFLAGS'
15739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15742
15743
15744 ac_config_headers="$ac_config_headers config.h"
15745
15746 for ac_header in stdarg.h stdio.h stdint.h sys/param.h
15747 do :
15748   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15749 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15750 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15751   cat >>confdefs.h <<_ACEOF
15752 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15753 _ACEOF
15754
15755 fi
15756
15757 done
15758
15759 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
15760 if test "x$ac_cv_func_vasprintf" = xyes; then :
15761   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
15762
15763 else
15764   case " $LIBOBJS " in
15765   *" vasprintf.$ac_objext "* ) ;;
15766   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
15767  ;;
15768 esac
15769
15770 fi
15771
15772
15773
15774
15775 reauth=no
15776 # Check whether --enable-reauth was given.
15777 if test "${enable_reauth+set}" = set; then :
15778   enableval=$enable_reauth;  if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
15779       reauth=$enableval
15780     else
15781       echo "--enable-reauth argument must be yes or no"
15782       exit -1
15783     fi
15784
15785 fi
15786
15787
15788 if test "x$reauth" = "xyes" ; then
15789   echo "Fast reauthentication protocol enabled"
15790   TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
15791 fi
15792  if test "x$reauth" != "xno"; then
15793   GSSEAP_ENABLE_REAUTH_TRUE=
15794   GSSEAP_ENABLE_REAUTH_FALSE='#'
15795 else
15796   GSSEAP_ENABLE_REAUTH_TRUE='#'
15797   GSSEAP_ENABLE_REAUTH_FALSE=
15798 fi
15799
15800
15801 acceptor=yes
15802 # Check whether --enable-acceptor was given.
15803 if test "${enable_acceptor+set}" = set; then :
15804   enableval=$enable_acceptor;  if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
15805       acceptor=$enableval
15806     else
15807       echo "--enable-acceptor argument must be yes or no"
15808       exit -1
15809     fi
15810
15811 fi
15812
15813
15814 if test "x$acceptor" = "xyes" ; then
15815   echo "acceptor enabled"
15816   TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_ACCEPTOR"
15817 fi
15818  if test "x$acceptor" != "xno"; then
15819   GSSEAP_ENABLE_ACCEPTOR_TRUE=
15820   GSSEAP_ENABLE_ACCEPTOR_FALSE='#'
15821 else
15822   GSSEAP_ENABLE_ACCEPTOR_TRUE='#'
15823   GSSEAP_ENABLE_ACCEPTOR_FALSE=
15824 fi
15825
15826
15827
15828
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows" >&5
15830 $as_echo_n "checking for windows... " >&6; }
15831 target_windows="no"
15832 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
15833 if test "x$ac_cv_header_windows_h" = xyes; then :
15834   target_windows="yes"
15835 else
15836   target_windows="no"
15837 fi
15838
15839
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_windows" >&5
15841 $as_echo "$target_windows" >&6; }
15842  if test "x$target_windows" = "xyes"; then
15843   TARGET_WINDOWS_TRUE=
15844   TARGET_WINDOWS_FALSE='#'
15845 else
15846   TARGET_WINDOWS_TRUE='#'
15847   TARGET_WINDOWS_FALSE=
15848 fi
15849
15850
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS-API and Kerberos implementation" >&5
15852 $as_echo_n "checking for GSS-API and Kerberos implementation... " >&6; }
15853 KRB5_DIR=
15854 found_krb5="no"
15855
15856 # Check whether --with-krb5 was given.
15857 if test "${with_krb5+set}" = set; then :
15858   withval=$with_krb5; check_krb5_dir="$withval"
15859 else
15860   check_krb5_dir=
15861 fi
15862
15863 for dir in $check_krb5_dir $prefix /usr/local /usr ; do
15864    krb5dir="$dir"
15865    if test -x "$dir/bin/krb5-config"; then
15866      found_krb5="yes";
15867      if test "x$target_windows" = "xyes"; then
15868         KRB5_CFLAGS=-I"$check_krb5_dir/include";
15869         KRB5_LDFLAGS="-L$check_krb5_dir/lib/";
15870         KRB5_LIBS="-lkrb5_32 -lgssapi32";
15871         COMPILE_ET="$check_krb5_dir/bin/compile_et";
15872         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15873 $as_echo "yes" >&6; }
15874      else
15875         KRB5_CFLAGS=`$dir/bin/krb5-config gssapi --cflags`;
15876         KRB5_LDFLAGS="-L$dir/lib";
15877         KRB5_LIBS=`$dir/bin/krb5-config gssapi --libs`
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15879 $as_echo "yes" >&6; }
15880         # Extract the first word of "compile_et", so it can be a program name with args.
15881 set dummy compile_et; ac_word=$2
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15883 $as_echo_n "checking for $ac_word... " >&6; }
15884 if ${ac_cv_path_COMPILE_ET+:} false; then :
15885   $as_echo_n "(cached) " >&6
15886 else
15887   case $COMPILE_ET in
15888   [\\/]* | ?:[\\/]*)
15889   ac_cv_path_COMPILE_ET="$COMPILE_ET" # Let the user override the test with a path.
15890   ;;
15891   *)
15892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15893 for as_dir in $dir/bin$PATH_SEPARATOr
15894 do
15895   IFS=$as_save_IFS
15896   test -z "$as_dir" && as_dir=.
15897     for ac_exec_ext in '' $ac_executable_extensions; do
15898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15899     ac_cv_path_COMPILE_ET="$as_dir/$ac_word$ac_exec_ext"
15900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15901     break 2
15902   fi
15903 done
15904   done
15905 IFS=$as_save_IFS
15906
15907   test -z "$ac_cv_path_COMPILE_ET" && ac_cv_path_COMPILE_ET="compile_et"
15908   ;;
15909 esac
15910 fi
15911 COMPILE_ET=$ac_cv_path_COMPILE_ET
15912 if test -n "$COMPILE_ET"; then
15913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
15914 $as_echo "$COMPILE_ET" >&6; }
15915 else
15916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15917 $as_echo "no" >&6; }
15918 fi
15919
15920
15921      fi
15922      break;
15923    fi
15924 done
15925 if test x_$found_krb5 != x_yes; then
15926    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_krb5" >&5
15927 $as_echo "$found_krb5" >&6; }
15928    as_fn_error $? "
15929 ----------------------------------------------------------------------
15930   Cannot find GSS-API/Kerberos libraries.
15931
15932   Please install MIT or Heimdal or specify installation directory with
15933   --with-krb5=(dir).
15934 ----------------------------------------------------------------------
15935 " "$LINENO" 5
15936 else
15937         printf "Kerberos found in $krb5dir\n";
15938
15939
15940
15941
15942         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5" >&5
15943 $as_echo_n "checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5... " >&6; }
15944 if ${ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT+:} false; then :
15945   $as_echo_n "(cached) " >&6
15946 else
15947   ac_check_lib_save_LIBS=$LIBS
15948 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h.  */
15951
15952 /* Override any GCC internal prototype to avoid an error.
15953    Use char because int might match the return type of a GCC
15954    builtin and then its argument prototype would still apply.  */
15955 #ifdef __cplusplus
15956 extern "C"
15957 #endif
15958 char GSS_C_NT_COMPOSITE_EXPORT ();
15959 int
15960 main ()
15961 {
15962 return GSS_C_NT_COMPOSITE_EXPORT ();
15963   ;
15964   return 0;
15965 }
15966 _ACEOF
15967 if ac_fn_c_try_link "$LINENO"; then :
15968   ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=yes
15969 else
15970   ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=no
15971 fi
15972 rm -f core conftest.err conftest.$ac_objext \
15973     conftest$ac_exeext conftest.$ac_ext
15974 LIBS=$ac_check_lib_save_LIBS
15975 fi
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&5
15977 $as_echo "$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&6; }
15978 if test "x$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" = xyes; then :
15979
15980 cat >>confdefs.h <<_ACEOF
15981 #define HAVE_GSS_C_NT_COMPOSITE_EXPORT 1
15982 _ACEOF
15983
15984 fi
15985
15986         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_inquire_attrs_for_mech in -lkrb5" >&5
15987 $as_echo_n "checking for gss_inquire_attrs_for_mech in -lkrb5... " >&6; }
15988 if ${ac_cv_lib_krb5_gss_inquire_attrs_for_mech+:} false; then :
15989   $as_echo_n "(cached) " >&6
15990 else
15991   ac_check_lib_save_LIBS=$LIBS
15992 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h.  */
15995
15996 /* Override any GCC internal prototype to avoid an error.
15997    Use char because int might match the return type of a GCC
15998    builtin and then its argument prototype would still apply.  */
15999 #ifdef __cplusplus
16000 extern "C"
16001 #endif
16002 char gss_inquire_attrs_for_mech ();
16003 int
16004 main ()
16005 {
16006 return gss_inquire_attrs_for_mech ();
16007   ;
16008   return 0;
16009 }
16010 _ACEOF
16011 if ac_fn_c_try_link "$LINENO"; then :
16012   ac_cv_lib_krb5_gss_inquire_attrs_for_mech=yes
16013 else
16014   ac_cv_lib_krb5_gss_inquire_attrs_for_mech=no
16015 fi
16016 rm -f core conftest.err conftest.$ac_objext \
16017     conftest$ac_exeext conftest.$ac_ext
16018 LIBS=$ac_check_lib_save_LIBS
16019 fi
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&5
16021 $as_echo "$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&6; }
16022 if test "x$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" = xyes; then :
16023
16024 cat >>confdefs.h <<_ACEOF
16025 #define HAVE_GSS_INQUIRE_ATTRS_FOR_MECH 1
16026 _ACEOF
16027
16028 fi
16029
16030         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_import_cred in -lkrb5" >&5
16031 $as_echo_n "checking for gss_krb5_import_cred in -lkrb5... " >&6; }
16032 if ${ac_cv_lib_krb5_gss_krb5_import_cred+:} false; then :
16033   $as_echo_n "(cached) " >&6
16034 else
16035   ac_check_lib_save_LIBS=$LIBS
16036 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
16037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16038 /* end confdefs.h.  */
16039
16040 /* Override any GCC internal prototype to avoid an error.
16041    Use char because int might match the return type of a GCC
16042    builtin and then its argument prototype would still apply.  */
16043 #ifdef __cplusplus
16044 extern "C"
16045 #endif
16046 char gss_krb5_import_cred ();
16047 int
16048 main ()
16049 {
16050 return gss_krb5_import_cred ();
16051   ;
16052   return 0;
16053 }
16054 _ACEOF
16055 if ac_fn_c_try_link "$LINENO"; then :
16056   ac_cv_lib_krb5_gss_krb5_import_cred=yes
16057 else
16058   ac_cv_lib_krb5_gss_krb5_import_cred=no
16059 fi
16060 rm -f core conftest.err conftest.$ac_objext \
16061     conftest$ac_exeext conftest.$ac_ext
16062 LIBS=$ac_check_lib_save_LIBS
16063 fi
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_krb5_import_cred" >&5
16065 $as_echo "$ac_cv_lib_krb5_gss_krb5_import_cred" >&6; }
16066 if test "x$ac_cv_lib_krb5_gss_krb5_import_cred" = xyes; then :
16067
16068 cat >>confdefs.h <<_ACEOF
16069 #define HAVE_GSS_KRB5_IMPORT_CRED 1
16070 _ACEOF
16071
16072 fi
16073
16074         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heimdal_version in -lkrb5" >&5
16075 $as_echo_n "checking for heimdal_version in -lkrb5... " >&6; }
16076 if ${ac_cv_lib_krb5_heimdal_version+:} false; then :
16077   $as_echo_n "(cached) " >&6
16078 else
16079   ac_check_lib_save_LIBS=$LIBS
16080 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h.  */
16083
16084 /* Override any GCC internal prototype to avoid an error.
16085    Use char because int might match the return type of a GCC
16086    builtin and then its argument prototype would still apply.  */
16087 #ifdef __cplusplus
16088 extern "C"
16089 #endif
16090 char heimdal_version ();
16091 int
16092 main ()
16093 {
16094 return heimdal_version ();
16095   ;
16096   return 0;
16097 }
16098 _ACEOF
16099 if ac_fn_c_try_link "$LINENO"; then :
16100   ac_cv_lib_krb5_heimdal_version=yes
16101 else
16102   ac_cv_lib_krb5_heimdal_version=no
16103 fi
16104 rm -f core conftest.err conftest.$ac_objext \
16105     conftest$ac_exeext conftest.$ac_ext
16106 LIBS=$ac_check_lib_save_LIBS
16107 fi
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_heimdal_version" >&5
16109 $as_echo "$ac_cv_lib_krb5_heimdal_version" >&6; }
16110 if test "x$ac_cv_lib_krb5_heimdal_version" = xyes; then :
16111
16112 cat >>confdefs.h <<_ACEOF
16113 #define HAVE_HEIMDAL_VERSION 1
16114 _ACEOF
16115 , heimdal=yes
16116 else
16117   heimdal=no
16118 fi
16119
16120          if test "x$heimdal" != "xno"; then
16121   HEIMDAL_TRUE=
16122   HEIMDAL_FALSE='#'
16123 else
16124   HEIMDAL_TRUE='#'
16125   HEIMDAL_FALSE=
16126 fi
16127
16128 fi
16129
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSAML implementation" >&5
16131 $as_echo_n "checking for OpenSAML implementation... " >&6; }
16132 OPENSAML_DIR=
16133 found_opensaml="no"
16134
16135 # Check whether --with-opensaml was given.
16136 if test "${with_opensaml+set}" = set; then :
16137   withval=$with_opensaml; check_opensaml_dir="$withval"
16138 else
16139   check_opensaml_dir=
16140 fi
16141
16142 if test x_$check_opensaml_dir != x_no; then
16143 for dir in $check_opensaml_dir $prefix /usr /usr/local ; do
16144    opensamldir="$dir"
16145    if test -f "$dir/include/saml/Assertion.h"; then
16146      found_opensaml="yes";
16147      OPENSAML_DIR="${opensamldir}"
16148      OPENSAML_CXXFLAGS="-I$opensamldir/include";
16149      break;
16150    fi
16151 done
16152 fi
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_opensaml" >&5
16154 $as_echo "$found_opensaml" >&6; }
16155 if test x_$check_opensaml_dir != x_no; then
16156 if test x_$found_opensaml != x_yes; then
16157    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16158 ----------------------------------------------------------------------
16159   Cannot find OpenSAML libraries, building without OpenSAML support.
16160
16161   Please install OpenSAML or specify installation directory with
16162   --with-opensaml=(dir).
16163 ----------------------------------------------------------------------
16164 " >&5
16165 $as_echo "$as_me: WARNING:
16166 ----------------------------------------------------------------------
16167   Cannot find OpenSAML libraries, building without OpenSAML support.
16168
16169   Please install OpenSAML or specify installation directory with
16170   --with-opensaml=(dir).
16171 ----------------------------------------------------------------------
16172 " >&2;}
16173 else
16174         printf "OpenSAML found in $opensamldir\n";
16175         OPENSAML_LIBS="-lsaml -lxml-security-c -lxmltooling -lxerces-c";
16176         OPENSAML_LDFLAGS="-L$opensamldir/lib";
16177
16178
16179
16180
16181 cat >>confdefs.h <<_ACEOF
16182 #define HAVE_OPENSAML 1
16183 _ACEOF
16184
16185 fi
16186 fi
16187
16188  if test "x_$check_opensaml_dir" != "x_no"; then
16189   OPENSAML_TRUE=
16190   OPENSAML_FALSE='#'
16191 else
16192   OPENSAML_TRUE='#'
16193   OPENSAML_FALSE=
16194 fi
16195
16196
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth resolver implementation" >&5
16198 $as_echo_n "checking for Shibboleth resolver implementation... " >&6; }
16199 SHIBRESOLVER_DIR=
16200 found_shibresolver="no"
16201
16202 # Check whether --with-shibresolver was given.
16203 if test "${with_shibresolver+set}" = set; then :
16204   withval=$with_shibresolver; check_shibresolver_dir="$withval"
16205 else
16206   check_shibresolver_dir=
16207 fi
16208
16209 if test x_$check_shibresolver_dir != x_no; then
16210 for dir in $check_shibresolver_dir $prefix /usr /usr/local ; do
16211    shibresolverdir="$dir"
16212    if test -f "$dir/include/shibresolver/resolver.h"; then
16213      found_shibresolver="yes";
16214      SHIBRESOLVER_DIR="${shibresolverdir}"
16215      SHIBRESOLVER_CXXFLAGS="-I$shibresolverdir/include";
16216      break;
16217    fi
16218 done
16219 fi
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibresolver" >&5
16221 $as_echo "$found_shibresolver" >&6; }
16222 if test x_$check_shibresolver_dir != x_no; then
16223 if test x_$found_shibresolver != x_yes; then
16224    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16225 ----------------------------------------------------------------------
16226   Cannot find Shibboleth resolver libraries, building without
16227   Shibboleth support.
16228
16229   Please install Shibboleth or specify installation directory with
16230   --with-shibresolver=(dir).
16231 ----------------------------------------------------------------------
16232 " >&5
16233 $as_echo "$as_me: WARNING:
16234 ----------------------------------------------------------------------
16235   Cannot find Shibboleth resolver libraries, building without
16236   Shibboleth support.
16237
16238   Please install Shibboleth or specify installation directory with
16239   --with-shibresolver=(dir).
16240 ----------------------------------------------------------------------
16241 " >&2;}
16242 else
16243         printf "Shibboleth resolver found in $shibresolverdir\n";
16244         SHIBRESOLVER_LIBS="-lshibresolver";
16245         SHIBRESOLVER_LDFLAGS="-L$shibresolverdir/lib";
16246
16247
16248
16249
16250 cat >>confdefs.h <<_ACEOF
16251 #define HAVE_SHIBRESOLVER 1
16252 _ACEOF
16253
16254 fi
16255 fi
16256
16257  if test "x_$check_shibresolver_dir" != "x_no"; then
16258   SHIBRESOLVER_TRUE=
16259   SHIBRESOLVER_FALSE='#'
16260 else
16261   SHIBRESOLVER_TRUE='#'
16262   SHIBRESOLVER_FALSE=
16263 fi
16264
16265 if test x_$found_shibresolver = x_yes; then
16266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth implementation" >&5
16267 $as_echo_n "checking for Shibboleth implementation... " >&6; }
16268 SHIBSP_DIR=
16269 found_shibsp="no"
16270
16271 # Check whether --with-shibsp was given.
16272 if test "${with_shibsp+set}" = set; then :
16273   withval=$with_shibsp; check_shibsp_dir="$withval"
16274 else
16275   check_shibsp_dir=
16276 fi
16277
16278 for dir in $check_shibsp_dir $prefix /usr /usr/local ; do
16279    shibspdir="$dir"
16280    if test -f "$dir/include/shibsp/SPConfig.h"; then
16281      found_shibsp="yes";
16282      SHIBSP_DIR="${shibspdir}"
16283      SHIBSP_CXXFLAGS="-I$shibspdir/include";
16284      break;
16285    fi
16286 done
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibsp" >&5
16288 $as_echo "$found_shibsp" >&6; }
16289 if test x_$found_shibsp != x_yes; then
16290    as_fn_error $? "
16291 ----------------------------------------------------------------------
16292   Cannot find Shibboleth libraries.
16293
16294   Please install Shibboleth or specify installation directory with
16295   --with-shibsp=(dir).
16296 ----------------------------------------------------------------------
16297 " "$LINENO" 5
16298 else
16299         printf "Shibboleth found in $shibspdir\n";
16300         SHIBSP_LIBS="-lshibsp -lsaml -lxml-security-c -lxmltooling -lxerces-c";
16301         SHIBSP_LDFLAGS="-L$shibspdir/lib";
16302
16303
16304
16305
16306 cat >>confdefs.h <<_ACEOF
16307 #define HAVE_SHIBSP 1
16308 _ACEOF
16309
16310 fi
16311
16312 fi
16313
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
16315 $as_echo_n "checking for OpenSSL... " >&6; }
16316 OPENSSL_DIR=
16317 found_openssl="no"
16318
16319 # Check whether --with-openssl was given.
16320 if test "${with_openssl+set}" = set; then :
16321   withval=$with_openssl; check_openssl_dir="$withval"
16322 else
16323   check_openssl_dir=
16324 fi
16325
16326 for dir in $check_openssl_dir $prefix /usr /usr/local ; do
16327    openssldir="$dir"
16328    if test -f "$dir/include/openssl/opensslv.h"; then
16329      found_openssl="yes";
16330      OPENSSL_DIR="${openssldir}"
16331      OPENSSL_CFLAGS="-I$openssldir/include";
16332      break;
16333    fi
16334 done
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_openssl" >&5
16336 $as_echo "$found_openssl" >&6; }
16337 if test x_$found_openssl != x_yes; then
16338    as_fn_error $? "
16339 ----------------------------------------------------------------------
16340   Cannot find OpenSSL libraries.
16341
16342   Please install libssl or specify installation directory with
16343   --with-openssl=(dir).
16344 ----------------------------------------------------------------------
16345 " "$LINENO" 5
16346 else
16347         printf "OpenSSL found in $openssldir\n";
16348         OPENSSL_LIBS="-lssl -lcrypto";
16349         OPENSSL_LDFLAGS="-L$openssldir/lib";
16350
16351
16352
16353 fi
16354
16355
16356 if test "x$acceptor" = "xyes" ; then
16357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for radsec" >&5
16358 $as_echo_n "checking for radsec... " >&6; }
16359 RADSEC_DIR=
16360 found_radsec="no"
16361
16362 # Check whether --with-radsec was given.
16363 if test "${with_radsec+set}" = set; then :
16364   withval=$with_radsec; check_radsec_dir="$withval"
16365 else
16366   check_radsec_dir=
16367 fi
16368
16369 for dir in $check_radsec_dir $prefix /usr /usr/local ; do
16370    radsecdir="$dir"
16371    if test -f "$dir/include/radsec/radsec.h"; then
16372      found_radsec="yes";
16373      RADSEC_DIR="${radsecdir}"
16374      RADSEC_CFLAGS="-I$radsecdir/include";
16375      break;
16376    fi
16377 done
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_radsec" >&5
16379 $as_echo "$found_radsec" >&6; }
16380 if test x_$found_radsec != x_yes; then
16381    as_fn_error $? "
16382 ----------------------------------------------------------------------
16383   Cannot find radsec libraries.
16384
16385   Please install libradsec or specify installation directory with
16386   --with-radsec=(dir).
16387 ----------------------------------------------------------------------
16388 " "$LINENO" 5
16389 else
16390         printf "radsec found in $radsecdir\n";
16391         RADSEC_LIBS="-lradsec";
16392         RADSEC_LDFLAGS="-L$radsecdir/lib";
16393
16394
16395
16396 fi
16397
16398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
16399 $as_echo_n "checking for jansson... " >&6; }
16400 JANSSON_DIR=
16401 found_jansson="no"
16402
16403 # Check whether --with-jansson was given.
16404 if test "${with_jansson+set}" = set; then :
16405   withval=$with_jansson; check_jansson_dir="$withval"
16406 else
16407   check_jansson_dir=
16408 fi
16409
16410 for dir in $check_jansson_dir $prefix /usr /usr/local ; do
16411    janssondir="$dir"
16412    if test -f "$dir/include/jansson.h"; then
16413      found_jansson="yes";
16414      JANSSON_DIR="${janssondir}"
16415      JANSSON_CFLAGS="-I$janssondir/include";
16416      break;
16417    fi
16418 done
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_jansson" >&5
16420 $as_echo "$found_jansson" >&6; }
16421 if test x_$found_jansson != x_yes; then
16422    as_fn_error $? "
16423 ----------------------------------------------------------------------
16424   Cannot find jansson libraries.
16425
16426   Please install libjansson or specify installation directory with
16427   --with-jansson=(dir).
16428 ----------------------------------------------------------------------
16429 " "$LINENO" 5
16430 else
16431         printf "jansson found in $janssondir\n";
16432         JANSSON_LIBS="-ljansson";
16433         JANSSON_LDFLAGS="-L$janssondir/lib";
16434
16435
16436
16437 fi
16438
16439 fi
16440
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Moonshot identity selector implementation" >&5
16442 $as_echo_n "checking for Moonshot identity selector implementation... " >&6; }
16443 LIBMOONSHOT_DIR=
16444 LIBMOONSHOT_CFLAGS=
16445 LIBMOONSHOT_LDFLAGS=
16446 LIBMOONSHOT_LIBS=
16447 found_libmoonshot="no"
16448
16449 # Check whether --with-libmoonshot was given.
16450 if test "${with_libmoonshot+set}" = set; then :
16451   withval=$with_libmoonshot; check_libmoonshot_dir="$withval"
16452 else
16453   check_libmoonshot_dir=
16454 fi
16455
16456 for dir in $check_libmoonshot_dir $prefix /usr /usr/local ; do
16457    libmoonshotdir="$dir"
16458    if test -f "$dir/include/libmoonshot.h"; then
16459      found_libmoonshot="yes";
16460      LIBMOONSHOT_DIR="${libmoonshotdir}"
16461      LIBMOONSHOT_CFLAGS="-I$libmoonshotdir/include";
16462      break;
16463    fi
16464 done
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_libmoonshot" >&5
16466 $as_echo "$found_libmoonshot" >&6; }
16467 if test x_$found_libmoonshot = x_yes; then
16468     printf "libmoonshot found in $libmoonshotdir\n";
16469     LIBMOONSHOT_LIBS="-lmoonshot";
16470     LIBMOONSHOT_LDFLAGS="-L$libmoonshot/lib";
16471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot_get_identity in -lmoonshot" >&5
16472 $as_echo_n "checking for moonshot_get_identity in -lmoonshot... " >&6; }
16473 if ${ac_cv_lib_moonshot_moonshot_get_identity+:} false; then :
16474   $as_echo_n "(cached) " >&6
16475 else
16476   ac_check_lib_save_LIBS=$LIBS
16477 LIBS="-lmoonshot "$LIBMOONSHOT_LIBS" $LIBS"
16478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16479 /* end confdefs.h.  */
16480
16481 /* Override any GCC internal prototype to avoid an error.
16482    Use char because int might match the return type of a GCC
16483    builtin and then its argument prototype would still apply.  */
16484 #ifdef __cplusplus
16485 extern "C"
16486 #endif
16487 char moonshot_get_identity ();
16488 int
16489 main ()
16490 {
16491 return moonshot_get_identity ();
16492   ;
16493   return 0;
16494 }
16495 _ACEOF
16496 if ac_fn_c_try_link "$LINENO"; then :
16497   ac_cv_lib_moonshot_moonshot_get_identity=yes
16498 else
16499   ac_cv_lib_moonshot_moonshot_get_identity=no
16500 fi
16501 rm -f core conftest.err conftest.$ac_objext \
16502     conftest$ac_exeext conftest.$ac_ext
16503 LIBS=$ac_check_lib_save_LIBS
16504 fi
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_moonshot_moonshot_get_identity" >&5
16506 $as_echo "$ac_cv_lib_moonshot_moonshot_get_identity" >&6; }
16507 if test "x$ac_cv_lib_moonshot_moonshot_get_identity" = xyes; then :
16508
16509 cat >>confdefs.h <<_ACEOF
16510 #define HAVE_MOONSHOT_GET_IDENTITY 1
16511 _ACEOF
16512
16513 fi
16514
16515 fi
16516
16517
16518
16519      if test "x$found_libmoonshot" != "xno"; then
16520   LIBMOONSHOT_TRUE=
16521   LIBMOONSHOT_FALSE='#'
16522 else
16523   LIBMOONSHOT_TRUE='#'
16524   LIBMOONSHOT_FALSE=
16525 fi
16526
16527
16528 ac_config_files="$ac_config_files Makefile libeap/Makefile mech_eap/Makefile mech_eap.spec"
16529
16530 cat >confcache <<\_ACEOF
16531 # This file is a shell script that caches the results of configure
16532 # tests run on this system so they can be shared between configure
16533 # scripts and configure runs, see configure's option --config-cache.
16534 # It is not useful on other systems.  If it contains results you don't
16535 # want to keep, you may remove or edit it.
16536 #
16537 # config.status only pays attention to the cache file if you give it
16538 # the --recheck option to rerun configure.
16539 #
16540 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16541 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16542 # following values.
16543
16544 _ACEOF
16545
16546 # The following way of writing the cache mishandles newlines in values,
16547 # but we know of no workaround that is simple, portable, and efficient.
16548 # So, we kill variables containing newlines.
16549 # Ultrix sh set writes to stderr and can't be redirected directly,
16550 # and sets the high bit in the cache file unless we assign to the vars.
16551 (
16552   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16553     eval ac_val=\$$ac_var
16554     case $ac_val in #(
16555     *${as_nl}*)
16556       case $ac_var in #(
16557       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16558 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16559       esac
16560       case $ac_var in #(
16561       _ | IFS | as_nl) ;; #(
16562       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16563       *) { eval $ac_var=; unset $ac_var;} ;;
16564       esac ;;
16565     esac
16566   done
16567
16568   (set) 2>&1 |
16569     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16570     *${as_nl}ac_space=\ *)
16571       # `set' does not quote correctly, so add quotes: double-quote
16572       # substitution turns \\\\ into \\, and sed turns \\ into \.
16573       sed -n \
16574         "s/'/'\\\\''/g;
16575           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16576       ;; #(
16577     *)
16578       # `set' quotes correctly as required by POSIX, so do not add quotes.
16579       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16580       ;;
16581     esac |
16582     sort
16583 ) |
16584   sed '
16585      /^ac_cv_env_/b end
16586      t clear
16587      :clear
16588      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16589      t end
16590      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16591      :end' >>confcache
16592 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16593   if test -w "$cache_file"; then
16594     if test "x$cache_file" != "x/dev/null"; then
16595       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16596 $as_echo "$as_me: updating cache $cache_file" >&6;}
16597       if test ! -f "$cache_file" || test -h "$cache_file"; then
16598         cat confcache >"$cache_file"
16599       else
16600         case $cache_file in #(
16601         */* | ?:*)
16602           mv -f confcache "$cache_file"$$ &&
16603           mv -f "$cache_file"$$ "$cache_file" ;; #(
16604         *)
16605           mv -f confcache "$cache_file" ;;
16606         esac
16607       fi
16608     fi
16609   else
16610     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16611 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16612   fi
16613 fi
16614 rm -f confcache
16615
16616 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16617 # Let make expand exec_prefix.
16618 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16619
16620 DEFS=-DHAVE_CONFIG_H
16621
16622 ac_libobjs=
16623 ac_ltlibobjs=
16624 U=
16625 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16626   # 1. Remove the extension, and $U if already installed.
16627   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16628   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16629   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16630   #    will be set to the directory where LIBOBJS objects are built.
16631   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16632   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16633 done
16634 LIBOBJS=$ac_libobjs
16635
16636 LTLIBOBJS=$ac_ltlibobjs
16637
16638
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16640 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16641    if test -n "$am_sleep_pid"; then
16642      # Hide warnings about reused PIDs.
16643      wait $am_sleep_pid 2>/dev/null
16644    fi
16645    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16646 $as_echo "done" >&6; }
16647 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16648   as_fn_error $? "conditional \"AMDEP\" was never defined.
16649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16650 fi
16651 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16652   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16654 fi
16655  if test -n "$EXEEXT"; then
16656   am__EXEEXT_TRUE=
16657   am__EXEEXT_FALSE='#'
16658 else
16659   am__EXEEXT_TRUE='#'
16660   am__EXEEXT_FALSE=
16661 fi
16662
16663 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16664   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16666 fi
16667 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16668   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16670 fi
16671 if test -z "${GSSEAP_ENABLE_REAUTH_TRUE}" && test -z "${GSSEAP_ENABLE_REAUTH_FALSE}"; then
16672   as_fn_error $? "conditional \"GSSEAP_ENABLE_REAUTH\" was never defined.
16673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16674 fi
16675 if test -z "${GSSEAP_ENABLE_ACCEPTOR_TRUE}" && test -z "${GSSEAP_ENABLE_ACCEPTOR_FALSE}"; then
16676   as_fn_error $? "conditional \"GSSEAP_ENABLE_ACCEPTOR\" was never defined.
16677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16678 fi
16679 if test -z "${TARGET_WINDOWS_TRUE}" && test -z "${TARGET_WINDOWS_FALSE}"; then
16680   as_fn_error $? "conditional \"TARGET_WINDOWS\" was never defined.
16681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16682 fi
16683 if test -z "${HEIMDAL_TRUE}" && test -z "${HEIMDAL_FALSE}"; then
16684   as_fn_error $? "conditional \"HEIMDAL\" was never defined.
16685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16686 fi
16687 if test -z "${OPENSAML_TRUE}" && test -z "${OPENSAML_FALSE}"; then
16688   as_fn_error $? "conditional \"OPENSAML\" was never defined.
16689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16690 fi
16691 if test -z "${SHIBRESOLVER_TRUE}" && test -z "${SHIBRESOLVER_FALSE}"; then
16692   as_fn_error $? "conditional \"SHIBRESOLVER\" was never defined.
16693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16694 fi
16695 if test -z "${LIBMOONSHOT_TRUE}" && test -z "${LIBMOONSHOT_FALSE}"; then
16696   as_fn_error $? "conditional \"LIBMOONSHOT\" was never defined.
16697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16698 fi
16699
16700 : "${CONFIG_STATUS=./config.status}"
16701 ac_write_fail=0
16702 ac_clean_files_save=$ac_clean_files
16703 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16705 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16706 as_write_fail=0
16707 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16708 #! $SHELL
16709 # Generated by $as_me.
16710 # Run this file to recreate the current configuration.
16711 # Compiler output produced by configure, useful for debugging
16712 # configure, is in config.log if it exists.
16713
16714 debug=false
16715 ac_cs_recheck=false
16716 ac_cs_silent=false
16717
16718 SHELL=\${CONFIG_SHELL-$SHELL}
16719 export SHELL
16720 _ASEOF
16721 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16722 ## -------------------- ##
16723 ## M4sh Initialization. ##
16724 ## -------------------- ##
16725
16726 # Be more Bourne compatible
16727 DUALCASE=1; export DUALCASE # for MKS sh
16728 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16729   emulate sh
16730   NULLCMD=:
16731   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16732   # is contrary to our usage.  Disable this feature.
16733   alias -g '${1+"$@"}'='"$@"'
16734   setopt NO_GLOB_SUBST
16735 else
16736   case `(set -o) 2>/dev/null` in #(
16737   *posix*) :
16738     set -o posix ;; #(
16739   *) :
16740      ;;
16741 esac
16742 fi
16743
16744
16745 as_nl='
16746 '
16747 export as_nl
16748 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16749 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16752 # Prefer a ksh shell builtin over an external printf program on Solaris,
16753 # but without wasting forks for bash or zsh.
16754 if test -z "$BASH_VERSION$ZSH_VERSION" \
16755     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16756   as_echo='print -r --'
16757   as_echo_n='print -rn --'
16758 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16759   as_echo='printf %s\n'
16760   as_echo_n='printf %s'
16761 else
16762   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16763     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16764     as_echo_n='/usr/ucb/echo -n'
16765   else
16766     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16767     as_echo_n_body='eval
16768       arg=$1;
16769       case $arg in #(
16770       *"$as_nl"*)
16771         expr "X$arg" : "X\\(.*\\)$as_nl";
16772         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16773       esac;
16774       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16775     '
16776     export as_echo_n_body
16777     as_echo_n='sh -c $as_echo_n_body as_echo'
16778   fi
16779   export as_echo_body
16780   as_echo='sh -c $as_echo_body as_echo'
16781 fi
16782
16783 # The user is always right.
16784 if test "${PATH_SEPARATOR+set}" != set; then
16785   PATH_SEPARATOR=:
16786   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16787     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16788       PATH_SEPARATOR=';'
16789   }
16790 fi
16791
16792
16793 # IFS
16794 # We need space, tab and new line, in precisely that order.  Quoting is
16795 # there to prevent editors from complaining about space-tab.
16796 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16797 # splitting by setting IFS to empty value.)
16798 IFS=" ""        $as_nl"
16799
16800 # Find who we are.  Look in the path if we contain no directory separator.
16801 as_myself=
16802 case $0 in #((
16803   *[\\/]* ) as_myself=$0 ;;
16804   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16805 for as_dir in $PATH
16806 do
16807   IFS=$as_save_IFS
16808   test -z "$as_dir" && as_dir=.
16809     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16810   done
16811 IFS=$as_save_IFS
16812
16813      ;;
16814 esac
16815 # We did not find ourselves, most probably we were run as `sh COMMAND'
16816 # in which case we are not to be found in the path.
16817 if test "x$as_myself" = x; then
16818   as_myself=$0
16819 fi
16820 if test ! -f "$as_myself"; then
16821   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16822   exit 1
16823 fi
16824
16825 # Unset variables that we do not need and which cause bugs (e.g. in
16826 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16827 # suppresses any "Segmentation fault" message there.  '((' could
16828 # trigger a bug in pdksh 5.2.14.
16829 for as_var in BASH_ENV ENV MAIL MAILPATH
16830 do eval test x\${$as_var+set} = xset \
16831   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16832 done
16833 PS1='$ '
16834 PS2='> '
16835 PS4='+ '
16836
16837 # NLS nuisances.
16838 LC_ALL=C
16839 export LC_ALL
16840 LANGUAGE=C
16841 export LANGUAGE
16842
16843 # CDPATH.
16844 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16845
16846
16847 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16848 # ----------------------------------------
16849 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16850 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16851 # script with STATUS, using 1 if that was 0.
16852 as_fn_error ()
16853 {
16854   as_status=$1; test $as_status -eq 0 && as_status=1
16855   if test "$4"; then
16856     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16857     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16858   fi
16859   $as_echo "$as_me: error: $2" >&2
16860   as_fn_exit $as_status
16861 } # as_fn_error
16862
16863
16864 # as_fn_set_status STATUS
16865 # -----------------------
16866 # Set $? to STATUS, without forking.
16867 as_fn_set_status ()
16868 {
16869   return $1
16870 } # as_fn_set_status
16871
16872 # as_fn_exit STATUS
16873 # -----------------
16874 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16875 as_fn_exit ()
16876 {
16877   set +e
16878   as_fn_set_status $1
16879   exit $1
16880 } # as_fn_exit
16881
16882 # as_fn_unset VAR
16883 # ---------------
16884 # Portably unset VAR.
16885 as_fn_unset ()
16886 {
16887   { eval $1=; unset $1;}
16888 }
16889 as_unset=as_fn_unset
16890 # as_fn_append VAR VALUE
16891 # ----------------------
16892 # Append the text in VALUE to the end of the definition contained in VAR. Take
16893 # advantage of any shell optimizations that allow amortized linear growth over
16894 # repeated appends, instead of the typical quadratic growth present in naive
16895 # implementations.
16896 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16897   eval 'as_fn_append ()
16898   {
16899     eval $1+=\$2
16900   }'
16901 else
16902   as_fn_append ()
16903   {
16904     eval $1=\$$1\$2
16905   }
16906 fi # as_fn_append
16907
16908 # as_fn_arith ARG...
16909 # ------------------
16910 # Perform arithmetic evaluation on the ARGs, and store the result in the
16911 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16912 # must be portable across $(()) and expr.
16913 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16914   eval 'as_fn_arith ()
16915   {
16916     as_val=$(( $* ))
16917   }'
16918 else
16919   as_fn_arith ()
16920   {
16921     as_val=`expr "$@" || test $? -eq 1`
16922   }
16923 fi # as_fn_arith
16924
16925
16926 if expr a : '\(a\)' >/dev/null 2>&1 &&
16927    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16928   as_expr=expr
16929 else
16930   as_expr=false
16931 fi
16932
16933 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16934   as_basename=basename
16935 else
16936   as_basename=false
16937 fi
16938
16939 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16940   as_dirname=dirname
16941 else
16942   as_dirname=false
16943 fi
16944
16945 as_me=`$as_basename -- "$0" ||
16946 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16947          X"$0" : 'X\(//\)$' \| \
16948          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16949 $as_echo X/"$0" |
16950     sed '/^.*\/\([^/][^/]*\)\/*$/{
16951             s//\1/
16952             q
16953           }
16954           /^X\/\(\/\/\)$/{
16955             s//\1/
16956             q
16957           }
16958           /^X\/\(\/\).*/{
16959             s//\1/
16960             q
16961           }
16962           s/.*/./; q'`
16963
16964 # Avoid depending upon Character Ranges.
16965 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16966 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16967 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16968 as_cr_digits='0123456789'
16969 as_cr_alnum=$as_cr_Letters$as_cr_digits
16970
16971 ECHO_C= ECHO_N= ECHO_T=
16972 case `echo -n x` in #(((((
16973 -n*)
16974   case `echo 'xy\c'` in
16975   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16976   xy)  ECHO_C='\c';;
16977   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16978        ECHO_T=' ';;
16979   esac;;
16980 *)
16981   ECHO_N='-n';;
16982 esac
16983
16984 rm -f conf$$ conf$$.exe conf$$.file
16985 if test -d conf$$.dir; then
16986   rm -f conf$$.dir/conf$$.file
16987 else
16988   rm -f conf$$.dir
16989   mkdir conf$$.dir 2>/dev/null
16990 fi
16991 if (echo >conf$$.file) 2>/dev/null; then
16992   if ln -s conf$$.file conf$$ 2>/dev/null; then
16993     as_ln_s='ln -s'
16994     # ... but there are two gotchas:
16995     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16996     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16997     # In both cases, we have to default to `cp -pR'.
16998     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16999       as_ln_s='cp -pR'
17000   elif ln conf$$.file conf$$ 2>/dev/null; then
17001     as_ln_s=ln
17002   else
17003     as_ln_s='cp -pR'
17004   fi
17005 else
17006   as_ln_s='cp -pR'
17007 fi
17008 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17009 rmdir conf$$.dir 2>/dev/null
17010
17011
17012 # as_fn_mkdir_p
17013 # -------------
17014 # Create "$as_dir" as a directory, including parents if necessary.
17015 as_fn_mkdir_p ()
17016 {
17017
17018   case $as_dir in #(
17019   -*) as_dir=./$as_dir;;
17020   esac
17021   test -d "$as_dir" || eval $as_mkdir_p || {
17022     as_dirs=
17023     while :; do
17024       case $as_dir in #(
17025       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17026       *) as_qdir=$as_dir;;
17027       esac
17028       as_dirs="'$as_qdir' $as_dirs"
17029       as_dir=`$as_dirname -- "$as_dir" ||
17030 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17031          X"$as_dir" : 'X\(//\)[^/]' \| \
17032          X"$as_dir" : 'X\(//\)$' \| \
17033          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17034 $as_echo X"$as_dir" |
17035     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17036             s//\1/
17037             q
17038           }
17039           /^X\(\/\/\)[^/].*/{
17040             s//\1/
17041             q
17042           }
17043           /^X\(\/\/\)$/{
17044             s//\1/
17045             q
17046           }
17047           /^X\(\/\).*/{
17048             s//\1/
17049             q
17050           }
17051           s/.*/./; q'`
17052       test -d "$as_dir" && break
17053     done
17054     test -z "$as_dirs" || eval "mkdir $as_dirs"
17055   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17056
17057
17058 } # as_fn_mkdir_p
17059 if mkdir -p . 2>/dev/null; then
17060   as_mkdir_p='mkdir -p "$as_dir"'
17061 else
17062   test -d ./-p && rmdir ./-p
17063   as_mkdir_p=false
17064 fi
17065
17066
17067 # as_fn_executable_p FILE
17068 # -----------------------
17069 # Test if FILE is an executable regular file.
17070 as_fn_executable_p ()
17071 {
17072   test -f "$1" && test -x "$1"
17073 } # as_fn_executable_p
17074 as_test_x='test -x'
17075 as_executable_p=as_fn_executable_p
17076
17077 # Sed expression to map a string onto a valid CPP name.
17078 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17079
17080 # Sed expression to map a string onto a valid variable name.
17081 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17082
17083
17084 exec 6>&1
17085 ## ----------------------------------- ##
17086 ## Main body of $CONFIG_STATUS script. ##
17087 ## ----------------------------------- ##
17088 _ASEOF
17089 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17090
17091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17092 # Save the log message, to keep $0 and so on meaningful, and to
17093 # report actual input values of CONFIG_FILES etc. instead of their
17094 # values after options handling.
17095 ac_log="
17096 This file was extended by mech_eap $as_me 0.9.2, which was
17097 generated by GNU Autoconf 2.69.  Invocation command line was
17098
17099   CONFIG_FILES    = $CONFIG_FILES
17100   CONFIG_HEADERS  = $CONFIG_HEADERS
17101   CONFIG_LINKS    = $CONFIG_LINKS
17102   CONFIG_COMMANDS = $CONFIG_COMMANDS
17103   $ $0 $@
17104
17105 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17106 "
17107
17108 _ACEOF
17109
17110 case $ac_config_files in *"
17111 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17112 esac
17113
17114 case $ac_config_headers in *"
17115 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17116 esac
17117
17118
17119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17120 # Files that config.status was made for.
17121 config_files="$ac_config_files"
17122 config_headers="$ac_config_headers"
17123 config_commands="$ac_config_commands"
17124
17125 _ACEOF
17126
17127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17128 ac_cs_usage="\
17129 \`$as_me' instantiates files and other configuration actions
17130 from templates according to the current configuration.  Unless the files
17131 and actions are specified as TAGs, all are instantiated by default.
17132
17133 Usage: $0 [OPTION]... [TAG]...
17134
17135   -h, --help       print this help, then exit
17136   -V, --version    print version number and configuration settings, then exit
17137       --config     print configuration, then exit
17138   -q, --quiet, --silent
17139                    do not print progress messages
17140   -d, --debug      don't remove temporary files
17141       --recheck    update $as_me by reconfiguring in the same conditions
17142       --file=FILE[:TEMPLATE]
17143                    instantiate the configuration file FILE
17144       --header=FILE[:TEMPLATE]
17145                    instantiate the configuration header FILE
17146
17147 Configuration files:
17148 $config_files
17149
17150 Configuration headers:
17151 $config_headers
17152
17153 Configuration commands:
17154 $config_commands
17155
17156 Report bugs to <bugs@project-moonshot.org>."
17157
17158 _ACEOF
17159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17160 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17161 ac_cs_version="\\
17162 mech_eap config.status 0.9.2
17163 configured by $0, generated by GNU Autoconf 2.69,
17164   with options \\"\$ac_cs_config\\"
17165
17166 Copyright (C) 2012 Free Software Foundation, Inc.
17167 This config.status script is free software; the Free Software Foundation
17168 gives unlimited permission to copy, distribute and modify it."
17169
17170 ac_pwd='$ac_pwd'
17171 srcdir='$srcdir'
17172 INSTALL='$INSTALL'
17173 MKDIR_P='$MKDIR_P'
17174 AWK='$AWK'
17175 test -n "\$AWK" || AWK=awk
17176 _ACEOF
17177
17178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17179 # The default lists apply if the user does not specify any file.
17180 ac_need_defaults=:
17181 while test $# != 0
17182 do
17183   case $1 in
17184   --*=?*)
17185     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17186     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17187     ac_shift=:
17188     ;;
17189   --*=)
17190     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17191     ac_optarg=
17192     ac_shift=:
17193     ;;
17194   *)
17195     ac_option=$1
17196     ac_optarg=$2
17197     ac_shift=shift
17198     ;;
17199   esac
17200
17201   case $ac_option in
17202   # Handling of the options.
17203   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17204     ac_cs_recheck=: ;;
17205   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17206     $as_echo "$ac_cs_version"; exit ;;
17207   --config | --confi | --conf | --con | --co | --c )
17208     $as_echo "$ac_cs_config"; exit ;;
17209   --debug | --debu | --deb | --de | --d | -d )
17210     debug=: ;;
17211   --file | --fil | --fi | --f )
17212     $ac_shift
17213     case $ac_optarg in
17214     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17215     '') as_fn_error $? "missing file argument" ;;
17216     esac
17217     as_fn_append CONFIG_FILES " '$ac_optarg'"
17218     ac_need_defaults=false;;
17219   --header | --heade | --head | --hea )
17220     $ac_shift
17221     case $ac_optarg in
17222     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17223     esac
17224     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17225     ac_need_defaults=false;;
17226   --he | --h)
17227     # Conflict between --help and --header
17228     as_fn_error $? "ambiguous option: \`$1'
17229 Try \`$0 --help' for more information.";;
17230   --help | --hel | -h )
17231     $as_echo "$ac_cs_usage"; exit ;;
17232   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17233   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17234     ac_cs_silent=: ;;
17235
17236   # This is an error.
17237   -*) as_fn_error $? "unrecognized option: \`$1'
17238 Try \`$0 --help' for more information." ;;
17239
17240   *) as_fn_append ac_config_targets " $1"
17241      ac_need_defaults=false ;;
17242
17243   esac
17244   shift
17245 done
17246
17247 ac_configure_extra_args=
17248
17249 if $ac_cs_silent; then
17250   exec 6>/dev/null
17251   ac_configure_extra_args="$ac_configure_extra_args --silent"
17252 fi
17253
17254 _ACEOF
17255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17256 if \$ac_cs_recheck; then
17257   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17258   shift
17259   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17260   CONFIG_SHELL='$SHELL'
17261   export CONFIG_SHELL
17262   exec "\$@"
17263 fi
17264
17265 _ACEOF
17266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17267 exec 5>>config.log
17268 {
17269   echo
17270   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17271 ## Running $as_me. ##
17272 _ASBOX
17273   $as_echo "$ac_log"
17274 } >&5
17275
17276 _ACEOF
17277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17278 #
17279 # INIT-COMMANDS
17280 #
17281 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17282
17283
17284 # The HP-UX ksh and POSIX shell print the target directory to stdout
17285 # if CDPATH is set.
17286 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17287
17288 sed_quote_subst='$sed_quote_subst'
17289 double_quote_subst='$double_quote_subst'
17290 delay_variable_subst='$delay_variable_subst'
17291 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17292 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17293 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17294 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17295 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17296 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17297 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17298 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17299 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17300 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17301 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17302 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17303 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17304 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17305 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17306 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17307 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17308 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17309 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17310 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17311 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17312 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17313 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17314 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17315 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17316 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17317 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17318 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17319 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17320 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17321 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17322 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17323 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17324 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17325 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17326 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17327 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17328 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17329 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17330 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17331 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17332 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17333 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17334 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17335 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17336 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17337 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17338 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17339 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17340 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17341 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17342 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17343 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17344 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17345 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17346 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17347 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17348 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17349 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17350 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17351 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17352 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17353 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17354 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17355 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17356 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17357 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17358 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17359 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17360 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17361 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17362 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17363 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17364 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17365 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17366 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17367 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17368 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17369 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17370 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17371 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17372 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17373 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17374 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17375 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17376 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17377 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17378 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17379 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17380 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17381 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17382 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17383 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17384 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17385 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17386 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17387 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17388 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17389 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17390 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17391 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17392 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17393 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17394 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17395 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17396 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17397 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17398 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17399 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17400 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17401 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17402 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17403 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17404 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17405 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17406 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17407 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17408 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17409 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17410 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17411 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17412 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17413 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17414 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17415 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17416 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17417 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17418 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17419 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17420 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17421 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17422 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17423 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17424 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17425 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17426 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17427 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17428 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17429 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17430 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17431 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17432 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17433 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17434 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17435 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17436 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17437 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17438 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17439 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17440 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17441 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17442 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17443 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17444 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17445 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17446 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17447 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17448 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17449 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17450 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17451 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17452 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17453 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17454 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17455 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17456 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17457 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17458 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17459 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17460 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17461 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17462 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17463 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17464 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17465 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17466 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17467 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17468 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17469 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17470 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17471 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17472 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17473 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17474 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17475 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17476
17477 LTCC='$LTCC'
17478 LTCFLAGS='$LTCFLAGS'
17479 compiler='$compiler_DEFAULT'
17480
17481 # A function that is used when there is no print builtin or printf.
17482 func_fallback_echo ()
17483 {
17484   eval 'cat <<_LTECHO_EOF
17485 \$1
17486 _LTECHO_EOF'
17487 }
17488
17489 # Quote evaled strings.
17490 for var in AS \
17491 DLLTOOL \
17492 OBJDUMP \
17493 SHELL \
17494 ECHO \
17495 PATH_SEPARATOR \
17496 SED \
17497 GREP \
17498 EGREP \
17499 FGREP \
17500 LD \
17501 NM \
17502 LN_S \
17503 lt_SP2NL \
17504 lt_NL2SP \
17505 reload_flag \
17506 deplibs_check_method \
17507 file_magic_cmd \
17508 file_magic_glob \
17509 want_nocaseglob \
17510 sharedlib_from_linklib_cmd \
17511 AR \
17512 AR_FLAGS \
17513 archiver_list_spec \
17514 STRIP \
17515 RANLIB \
17516 CC \
17517 CFLAGS \
17518 compiler \
17519 lt_cv_sys_global_symbol_pipe \
17520 lt_cv_sys_global_symbol_to_cdecl \
17521 lt_cv_sys_global_symbol_to_c_name_address \
17522 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17523 nm_file_list_spec \
17524 lt_prog_compiler_no_builtin_flag \
17525 lt_prog_compiler_pic \
17526 lt_prog_compiler_wl \
17527 lt_prog_compiler_static \
17528 lt_cv_prog_compiler_c_o \
17529 need_locks \
17530 MANIFEST_TOOL \
17531 DSYMUTIL \
17532 NMEDIT \
17533 LIPO \
17534 OTOOL \
17535 OTOOL64 \
17536 shrext_cmds \
17537 export_dynamic_flag_spec \
17538 whole_archive_flag_spec \
17539 compiler_needs_object \
17540 with_gnu_ld \
17541 allow_undefined_flag \
17542 no_undefined_flag \
17543 hardcode_libdir_flag_spec \
17544 hardcode_libdir_separator \
17545 exclude_expsyms \
17546 include_expsyms \
17547 file_list_spec \
17548 variables_saved_for_relink \
17549 libname_spec \
17550 library_names_spec \
17551 soname_spec \
17552 install_override_mode \
17553 finish_eval \
17554 old_striplib \
17555 striplib \
17556 compiler_lib_search_dirs \
17557 predep_objects \
17558 postdep_objects \
17559 predeps \
17560 postdeps \
17561 compiler_lib_search_path \
17562 LD_CXX \
17563 reload_flag_CXX \
17564 compiler_CXX \
17565 lt_prog_compiler_no_builtin_flag_CXX \
17566 lt_prog_compiler_pic_CXX \
17567 lt_prog_compiler_wl_CXX \
17568 lt_prog_compiler_static_CXX \
17569 lt_cv_prog_compiler_c_o_CXX \
17570 export_dynamic_flag_spec_CXX \
17571 whole_archive_flag_spec_CXX \
17572 compiler_needs_object_CXX \
17573 with_gnu_ld_CXX \
17574 allow_undefined_flag_CXX \
17575 no_undefined_flag_CXX \
17576 hardcode_libdir_flag_spec_CXX \
17577 hardcode_libdir_separator_CXX \
17578 exclude_expsyms_CXX \
17579 include_expsyms_CXX \
17580 file_list_spec_CXX \
17581 compiler_lib_search_dirs_CXX \
17582 predep_objects_CXX \
17583 postdep_objects_CXX \
17584 predeps_CXX \
17585 postdeps_CXX \
17586 compiler_lib_search_path_CXX; do
17587     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17588     *[\\\\\\\`\\"\\\$]*)
17589       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17590       ;;
17591     *)
17592       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17593       ;;
17594     esac
17595 done
17596
17597 # Double-quote double-evaled strings.
17598 for var in reload_cmds \
17599 old_postinstall_cmds \
17600 old_postuninstall_cmds \
17601 old_archive_cmds \
17602 extract_expsyms_cmds \
17603 old_archive_from_new_cmds \
17604 old_archive_from_expsyms_cmds \
17605 archive_cmds \
17606 archive_expsym_cmds \
17607 module_cmds \
17608 module_expsym_cmds \
17609 export_symbols_cmds \
17610 prelink_cmds \
17611 postlink_cmds \
17612 postinstall_cmds \
17613 postuninstall_cmds \
17614 finish_cmds \
17615 sys_lib_search_path_spec \
17616 sys_lib_dlsearch_path_spec \
17617 reload_cmds_CXX \
17618 old_archive_cmds_CXX \
17619 old_archive_from_new_cmds_CXX \
17620 old_archive_from_expsyms_cmds_CXX \
17621 archive_cmds_CXX \
17622 archive_expsym_cmds_CXX \
17623 module_cmds_CXX \
17624 module_expsym_cmds_CXX \
17625 export_symbols_cmds_CXX \
17626 prelink_cmds_CXX \
17627 postlink_cmds_CXX; do
17628     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17629     *[\\\\\\\`\\"\\\$]*)
17630       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17631       ;;
17632     *)
17633       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17634       ;;
17635     esac
17636 done
17637
17638 ac_aux_dir='$ac_aux_dir'
17639 xsi_shell='$xsi_shell'
17640 lt_shell_append='$lt_shell_append'
17641
17642 # See if we are running on zsh, and set the options which allow our
17643 # commands through without removal of \ escapes INIT.
17644 if test -n "\${ZSH_VERSION+set}" ; then
17645    setopt NO_GLOB_SUBST
17646 fi
17647
17648
17649     PACKAGE='$PACKAGE'
17650     VERSION='$VERSION'
17651     TIMESTAMP='$TIMESTAMP'
17652     RM='$RM'
17653     ofile='$ofile'
17654
17655
17656
17657
17658
17659
17660 _ACEOF
17661
17662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17663
17664 # Handling of arguments.
17665 for ac_config_target in $ac_config_targets
17666 do
17667   case $ac_config_target in
17668     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17669     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17670     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17671     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17672     "libeap/Makefile") CONFIG_FILES="$CONFIG_FILES libeap/Makefile" ;;
17673     "mech_eap/Makefile") CONFIG_FILES="$CONFIG_FILES mech_eap/Makefile" ;;
17674     "mech_eap.spec") CONFIG_FILES="$CONFIG_FILES mech_eap.spec" ;;
17675
17676   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17677   esac
17678 done
17679
17680
17681 # If the user did not use the arguments to specify the items to instantiate,
17682 # then the envvar interface is used.  Set only those that are not.
17683 # We use the long form for the default assignment because of an extremely
17684 # bizarre bug on SunOS 4.1.3.
17685 if $ac_need_defaults; then
17686   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17687   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17688   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17689 fi
17690
17691 # Have a temporary directory for convenience.  Make it in the build tree
17692 # simply because there is no reason against having it here, and in addition,
17693 # creating and moving files from /tmp can sometimes cause problems.
17694 # Hook for its removal unless debugging.
17695 # Note that there is a small window in which the directory will not be cleaned:
17696 # after its creation but before its name has been assigned to `$tmp'.
17697 $debug ||
17698 {
17699   tmp= ac_tmp=
17700   trap 'exit_status=$?
17701   : "${ac_tmp:=$tmp}"
17702   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17703 ' 0
17704   trap 'as_fn_exit 1' 1 2 13 15
17705 }
17706 # Create a (secure) tmp directory for tmp files.
17707
17708 {
17709   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17710   test -d "$tmp"
17711 }  ||
17712 {
17713   tmp=./conf$$-$RANDOM
17714   (umask 077 && mkdir "$tmp")
17715 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17716 ac_tmp=$tmp
17717
17718 # Set up the scripts for CONFIG_FILES section.
17719 # No need to generate them if there are no CONFIG_FILES.
17720 # This happens for instance with `./config.status config.h'.
17721 if test -n "$CONFIG_FILES"; then
17722
17723
17724 ac_cr=`echo X | tr X '\015'`
17725 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17726 # But we know of no other shell where ac_cr would be empty at this
17727 # point, so we can use a bashism as a fallback.
17728 if test "x$ac_cr" = x; then
17729   eval ac_cr=\$\'\\r\'
17730 fi
17731 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17732 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17733   ac_cs_awk_cr='\\r'
17734 else
17735   ac_cs_awk_cr=$ac_cr
17736 fi
17737
17738 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17739 _ACEOF
17740
17741
17742 {
17743   echo "cat >conf$$subs.awk <<_ACEOF" &&
17744   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17745   echo "_ACEOF"
17746 } >conf$$subs.sh ||
17747   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17748 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17749 ac_delim='%!_!# '
17750 for ac_last_try in false false false false false :; do
17751   . ./conf$$subs.sh ||
17752     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17753
17754   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17755   if test $ac_delim_n = $ac_delim_num; then
17756     break
17757   elif $ac_last_try; then
17758     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17759   else
17760     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17761   fi
17762 done
17763 rm -f conf$$subs.sh
17764
17765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17766 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17767 _ACEOF
17768 sed -n '
17769 h
17770 s/^/S["/; s/!.*/"]=/
17771 p
17772 g
17773 s/^[^!]*!//
17774 :repl
17775 t repl
17776 s/'"$ac_delim"'$//
17777 t delim
17778 :nl
17779 h
17780 s/\(.\{148\}\)..*/\1/
17781 t more1
17782 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17783 p
17784 n
17785 b repl
17786 :more1
17787 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17788 p
17789 g
17790 s/.\{148\}//
17791 t nl
17792 :delim
17793 h
17794 s/\(.\{148\}\)..*/\1/
17795 t more2
17796 s/["\\]/\\&/g; s/^/"/; s/$/"/
17797 p
17798 b
17799 :more2
17800 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17801 p
17802 g
17803 s/.\{148\}//
17804 t delim
17805 ' <conf$$subs.awk | sed '
17806 /^[^""]/{
17807   N
17808   s/\n//
17809 }
17810 ' >>$CONFIG_STATUS || ac_write_fail=1
17811 rm -f conf$$subs.awk
17812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17813 _ACAWK
17814 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17815   for (key in S) S_is_set[key] = 1
17816   FS = "\a"
17817
17818 }
17819 {
17820   line = $ 0
17821   nfields = split(line, field, "@")
17822   substed = 0
17823   len = length(field[1])
17824   for (i = 2; i < nfields; i++) {
17825     key = field[i]
17826     keylen = length(key)
17827     if (S_is_set[key]) {
17828       value = S[key]
17829       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17830       len += length(value) + length(field[++i])
17831       substed = 1
17832     } else
17833       len += 1 + keylen
17834   }
17835
17836   print line
17837 }
17838
17839 _ACAWK
17840 _ACEOF
17841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17842 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17843   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17844 else
17845   cat
17846 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17847   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17848 _ACEOF
17849
17850 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17851 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17852 # trailing colons and then remove the whole line if VPATH becomes empty
17853 # (actually we leave an empty line to preserve line numbers).
17854 if test "x$srcdir" = x.; then
17855   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17856 h
17857 s///
17858 s/^/:/
17859 s/[      ]*$/:/
17860 s/:\$(srcdir):/:/g
17861 s/:\${srcdir}:/:/g
17862 s/:@srcdir@:/:/g
17863 s/^:*//
17864 s/:*$//
17865 x
17866 s/\(=[   ]*\).*/\1/
17867 G
17868 s/\n//
17869 s/^[^=]*=[       ]*$//
17870 }'
17871 fi
17872
17873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17874 fi # test -n "$CONFIG_FILES"
17875
17876 # Set up the scripts for CONFIG_HEADERS section.
17877 # No need to generate them if there are no CONFIG_HEADERS.
17878 # This happens for instance with `./config.status Makefile'.
17879 if test -n "$CONFIG_HEADERS"; then
17880 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17881 BEGIN {
17882 _ACEOF
17883
17884 # Transform confdefs.h into an awk script `defines.awk', embedded as
17885 # here-document in config.status, that substitutes the proper values into
17886 # config.h.in to produce config.h.
17887
17888 # Create a delimiter string that does not exist in confdefs.h, to ease
17889 # handling of long lines.
17890 ac_delim='%!_!# '
17891 for ac_last_try in false false :; do
17892   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17893   if test -z "$ac_tt"; then
17894     break
17895   elif $ac_last_try; then
17896     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17897   else
17898     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17899   fi
17900 done
17901
17902 # For the awk script, D is an array of macro values keyed by name,
17903 # likewise P contains macro parameters if any.  Preserve backslash
17904 # newline sequences.
17905
17906 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17907 sed -n '
17908 s/.\{148\}/&'"$ac_delim"'/g
17909 t rset
17910 :rset
17911 s/^[     ]*#[    ]*define[       ][      ]*/ /
17912 t def
17913 d
17914 :def
17915 s/\\$//
17916 t bsnl
17917 s/["\\]/\\&/g
17918 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17919 D["\1"]=" \3"/p
17920 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17921 d
17922 :bsnl
17923 s/["\\]/\\&/g
17924 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17925 D["\1"]=" \3\\\\\\n"\\/p
17926 t cont
17927 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17928 t cont
17929 d
17930 :cont
17931 n
17932 s/.\{148\}/&'"$ac_delim"'/g
17933 t clear
17934 :clear
17935 s/\\$//
17936 t bsnlc
17937 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17938 d
17939 :bsnlc
17940 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17941 b cont
17942 ' <confdefs.h | sed '
17943 s/'"$ac_delim"'/"\\\
17944 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17945
17946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17947   for (key in D) D_is_set[key] = 1
17948   FS = "\a"
17949 }
17950 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17951   line = \$ 0
17952   split(line, arg, " ")
17953   if (arg[1] == "#") {
17954     defundef = arg[2]
17955     mac1 = arg[3]
17956   } else {
17957     defundef = substr(arg[1], 2)
17958     mac1 = arg[2]
17959   }
17960   split(mac1, mac2, "(") #)
17961   macro = mac2[1]
17962   prefix = substr(line, 1, index(line, defundef) - 1)
17963   if (D_is_set[macro]) {
17964     # Preserve the white space surrounding the "#".
17965     print prefix "define", macro P[macro] D[macro]
17966     next
17967   } else {
17968     # Replace #undef with comments.  This is necessary, for example,
17969     # in the case of _POSIX_SOURCE, which is predefined and required
17970     # on some systems where configure will not decide to define it.
17971     if (defundef == "undef") {
17972       print "/*", prefix defundef, macro, "*/"
17973       next
17974     }
17975   }
17976 }
17977 { print }
17978 _ACAWK
17979 _ACEOF
17980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17981   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17982 fi # test -n "$CONFIG_HEADERS"
17983
17984
17985 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17986 shift
17987 for ac_tag
17988 do
17989   case $ac_tag in
17990   :[FHLC]) ac_mode=$ac_tag; continue;;
17991   esac
17992   case $ac_mode$ac_tag in
17993   :[FHL]*:*);;
17994   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17995   :[FH]-) ac_tag=-:-;;
17996   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17997   esac
17998   ac_save_IFS=$IFS
17999   IFS=:
18000   set x $ac_tag
18001   IFS=$ac_save_IFS
18002   shift
18003   ac_file=$1
18004   shift
18005
18006   case $ac_mode in
18007   :L) ac_source=$1;;
18008   :[FH])
18009     ac_file_inputs=
18010     for ac_f
18011     do
18012       case $ac_f in
18013       -) ac_f="$ac_tmp/stdin";;
18014       *) # Look for the file first in the build tree, then in the source tree
18015          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18016          # because $ac_f cannot contain `:'.
18017          test -f "$ac_f" ||
18018            case $ac_f in
18019            [\\/$]*) false;;
18020            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18021            esac ||
18022            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18023       esac
18024       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18025       as_fn_append ac_file_inputs " '$ac_f'"
18026     done
18027
18028     # Let's still pretend it is `configure' which instantiates (i.e., don't
18029     # use $as_me), people would be surprised to read:
18030     #    /* config.h.  Generated by config.status.  */
18031     configure_input='Generated from '`
18032           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18033         `' by configure.'
18034     if test x"$ac_file" != x-; then
18035       configure_input="$ac_file.  $configure_input"
18036       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18037 $as_echo "$as_me: creating $ac_file" >&6;}
18038     fi
18039     # Neutralize special characters interpreted by sed in replacement strings.
18040     case $configure_input in #(
18041     *\&* | *\|* | *\\* )
18042        ac_sed_conf_input=`$as_echo "$configure_input" |
18043        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18044     *) ac_sed_conf_input=$configure_input;;
18045     esac
18046
18047     case $ac_tag in
18048     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18049       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18050     esac
18051     ;;
18052   esac
18053
18054   ac_dir=`$as_dirname -- "$ac_file" ||
18055 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18056          X"$ac_file" : 'X\(//\)[^/]' \| \
18057          X"$ac_file" : 'X\(//\)$' \| \
18058          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18059 $as_echo X"$ac_file" |
18060     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18061             s//\1/
18062             q
18063           }
18064           /^X\(\/\/\)[^/].*/{
18065             s//\1/
18066             q
18067           }
18068           /^X\(\/\/\)$/{
18069             s//\1/
18070             q
18071           }
18072           /^X\(\/\).*/{
18073             s//\1/
18074             q
18075           }
18076           s/.*/./; q'`
18077   as_dir="$ac_dir"; as_fn_mkdir_p
18078   ac_builddir=.
18079
18080 case "$ac_dir" in
18081 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18082 *)
18083   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18084   # A ".." for each directory in $ac_dir_suffix.
18085   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18086   case $ac_top_builddir_sub in
18087   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18088   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18089   esac ;;
18090 esac
18091 ac_abs_top_builddir=$ac_pwd
18092 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18093 # for backward compatibility:
18094 ac_top_builddir=$ac_top_build_prefix
18095
18096 case $srcdir in
18097   .)  # We are building in place.
18098     ac_srcdir=.
18099     ac_top_srcdir=$ac_top_builddir_sub
18100     ac_abs_top_srcdir=$ac_pwd ;;
18101   [\\/]* | ?:[\\/]* )  # Absolute name.
18102     ac_srcdir=$srcdir$ac_dir_suffix;
18103     ac_top_srcdir=$srcdir
18104     ac_abs_top_srcdir=$srcdir ;;
18105   *) # Relative name.
18106     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18107     ac_top_srcdir=$ac_top_build_prefix$srcdir
18108     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18109 esac
18110 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18111
18112
18113   case $ac_mode in
18114   :F)
18115   #
18116   # CONFIG_FILE
18117   #
18118
18119   case $INSTALL in
18120   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18121   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18122   esac
18123   ac_MKDIR_P=$MKDIR_P
18124   case $MKDIR_P in
18125   [\\/$]* | ?:[\\/]* ) ;;
18126   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18127   esac
18128 _ACEOF
18129
18130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18131 # If the template does not know about datarootdir, expand it.
18132 # FIXME: This hack should be removed a few years after 2.60.
18133 ac_datarootdir_hack=; ac_datarootdir_seen=
18134 ac_sed_dataroot='
18135 /datarootdir/ {
18136   p
18137   q
18138 }
18139 /@datadir@/p
18140 /@docdir@/p
18141 /@infodir@/p
18142 /@localedir@/p
18143 /@mandir@/p'
18144 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18145 *datarootdir*) ac_datarootdir_seen=yes;;
18146 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18147   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18148 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18149 _ACEOF
18150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18151   ac_datarootdir_hack='
18152   s&@datadir@&$datadir&g
18153   s&@docdir@&$docdir&g
18154   s&@infodir@&$infodir&g
18155   s&@localedir@&$localedir&g
18156   s&@mandir@&$mandir&g
18157   s&\\\${datarootdir}&$datarootdir&g' ;;
18158 esac
18159 _ACEOF
18160
18161 # Neutralize VPATH when `$srcdir' = `.'.
18162 # Shell code in configure.ac might set extrasub.
18163 # FIXME: do we really want to maintain this feature?
18164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18165 ac_sed_extra="$ac_vpsub
18166 $extrasub
18167 _ACEOF
18168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18169 :t
18170 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18171 s|@configure_input@|$ac_sed_conf_input|;t t
18172 s&@top_builddir@&$ac_top_builddir_sub&;t t
18173 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18174 s&@srcdir@&$ac_srcdir&;t t
18175 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18176 s&@top_srcdir@&$ac_top_srcdir&;t t
18177 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18178 s&@builddir@&$ac_builddir&;t t
18179 s&@abs_builddir@&$ac_abs_builddir&;t t
18180 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18181 s&@INSTALL@&$ac_INSTALL&;t t
18182 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18183 $ac_datarootdir_hack
18184 "
18185 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18186   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18187
18188 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18189   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18190   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18191       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18192   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18193 which seems to be undefined.  Please make sure it is defined" >&5
18194 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18195 which seems to be undefined.  Please make sure it is defined" >&2;}
18196
18197   rm -f "$ac_tmp/stdin"
18198   case $ac_file in
18199   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18200   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18201   esac \
18202   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18203  ;;
18204   :H)
18205   #
18206   # CONFIG_HEADER
18207   #
18208   if test x"$ac_file" != x-; then
18209     {
18210       $as_echo "/* $configure_input  */" \
18211       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18212     } >"$ac_tmp/config.h" \
18213       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18214     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18215       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18216 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18217     else
18218       rm -f "$ac_file"
18219       mv "$ac_tmp/config.h" "$ac_file" \
18220         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18221     fi
18222   else
18223     $as_echo "/* $configure_input  */" \
18224       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18225       || as_fn_error $? "could not create -" "$LINENO" 5
18226   fi
18227 # Compute "$ac_file"'s index in $config_headers.
18228 _am_arg="$ac_file"
18229 _am_stamp_count=1
18230 for _am_header in $config_headers :; do
18231   case $_am_header in
18232     $_am_arg | $_am_arg:* )
18233       break ;;
18234     * )
18235       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18236   esac
18237 done
18238 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18239 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18240          X"$_am_arg" : 'X\(//\)[^/]' \| \
18241          X"$_am_arg" : 'X\(//\)$' \| \
18242          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18243 $as_echo X"$_am_arg" |
18244     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18245             s//\1/
18246             q
18247           }
18248           /^X\(\/\/\)[^/].*/{
18249             s//\1/
18250             q
18251           }
18252           /^X\(\/\/\)$/{
18253             s//\1/
18254             q
18255           }
18256           /^X\(\/\).*/{
18257             s//\1/
18258             q
18259           }
18260           s/.*/./; q'`/stamp-h$_am_stamp_count
18261  ;;
18262
18263   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18264 $as_echo "$as_me: executing $ac_file commands" >&6;}
18265  ;;
18266   esac
18267
18268
18269   case $ac_file$ac_mode in
18270     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18271   # Older Autoconf quotes --file arguments for eval, but not when files
18272   # are listed without --file.  Let's play safe and only enable the eval
18273   # if we detect the quoting.
18274   case $CONFIG_FILES in
18275   *\'*) eval set x "$CONFIG_FILES" ;;
18276   *)   set x $CONFIG_FILES ;;
18277   esac
18278   shift
18279   for mf
18280   do
18281     # Strip MF so we end up with the name of the file.
18282     mf=`echo "$mf" | sed -e 's/:.*$//'`
18283     # Check whether this is an Automake generated Makefile or not.
18284     # We used to match only the files named 'Makefile.in', but
18285     # some people rename them; so instead we look at the file content.
18286     # Grep'ing the first line is not enough: some people post-process
18287     # each Makefile.in and add a new line on top of each file to say so.
18288     # Grep'ing the whole file is not good either: AIX grep has a line
18289     # limit of 2048, but all sed's we know have understand at least 4000.
18290     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18291       dirpart=`$as_dirname -- "$mf" ||
18292 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18293          X"$mf" : 'X\(//\)[^/]' \| \
18294          X"$mf" : 'X\(//\)$' \| \
18295          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18296 $as_echo X"$mf" |
18297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18298             s//\1/
18299             q
18300           }
18301           /^X\(\/\/\)[^/].*/{
18302             s//\1/
18303             q
18304           }
18305           /^X\(\/\/\)$/{
18306             s//\1/
18307             q
18308           }
18309           /^X\(\/\).*/{
18310             s//\1/
18311             q
18312           }
18313           s/.*/./; q'`
18314     else
18315       continue
18316     fi
18317     # Extract the definition of DEPDIR, am__include, and am__quote
18318     # from the Makefile without running 'make'.
18319     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18320     test -z "$DEPDIR" && continue
18321     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18322     test -z "$am__include" && continue
18323     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18324     # Find all dependency output files, they are included files with
18325     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18326     # simplest approach to changing $(DEPDIR) to its actual value in the
18327     # expansion.
18328     for file in `sed -n "
18329       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18330          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18331       # Make sure the directory exists.
18332       test -f "$dirpart/$file" && continue
18333       fdir=`$as_dirname -- "$file" ||
18334 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18335          X"$file" : 'X\(//\)[^/]' \| \
18336          X"$file" : 'X\(//\)$' \| \
18337          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18338 $as_echo X"$file" |
18339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18340             s//\1/
18341             q
18342           }
18343           /^X\(\/\/\)[^/].*/{
18344             s//\1/
18345             q
18346           }
18347           /^X\(\/\/\)$/{
18348             s//\1/
18349             q
18350           }
18351           /^X\(\/\).*/{
18352             s//\1/
18353             q
18354           }
18355           s/.*/./; q'`
18356       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18357       # echo "creating $dirpart/$file"
18358       echo '# dummy' > "$dirpart/$file"
18359     done
18360   done
18361 }
18362  ;;
18363     "libtool":C)
18364
18365     # See if we are running on zsh, and set the options which allow our
18366     # commands through without removal of \ escapes.
18367     if test -n "${ZSH_VERSION+set}" ; then
18368       setopt NO_GLOB_SUBST
18369     fi
18370
18371     cfgfile="${ofile}T"
18372     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18373     $RM "$cfgfile"
18374
18375     cat <<_LT_EOF >> "$cfgfile"
18376 #! $SHELL
18377
18378 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18379 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18380 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18381 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18382 #
18383 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18384 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18385 #                 Foundation, Inc.
18386 #   Written by Gordon Matzigkeit, 1996
18387 #
18388 #   This file is part of GNU Libtool.
18389 #
18390 # GNU Libtool is free software; you can redistribute it and/or
18391 # modify it under the terms of the GNU General Public License as
18392 # published by the Free Software Foundation; either version 2 of
18393 # the License, or (at your option) any later version.
18394 #
18395 # As a special exception to the GNU General Public License,
18396 # if you distribute this file as part of a program or library that
18397 # is built using GNU Libtool, you may include this file under the
18398 # same distribution terms that you use for the rest of that program.
18399 #
18400 # GNU Libtool is distributed in the hope that it will be useful,
18401 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18402 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18403 # GNU General Public License for more details.
18404 #
18405 # You should have received a copy of the GNU General Public License
18406 # along with GNU Libtool; see the file COPYING.  If not, a copy
18407 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18408 # obtained by writing to the Free Software Foundation, Inc.,
18409 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18410
18411
18412 # The names of the tagged configurations supported by this script.
18413 available_tags="CXX "
18414
18415 # ### BEGIN LIBTOOL CONFIG
18416
18417 # Which release of libtool.m4 was used?
18418 macro_version=$macro_version
18419 macro_revision=$macro_revision
18420
18421 # Whether or not to build static libraries.
18422 build_old_libs=$enable_static
18423
18424 # Assembler program.
18425 AS=$lt_AS
18426
18427 # DLL creation program.
18428 DLLTOOL=$lt_DLLTOOL
18429
18430 # Object dumper program.
18431 OBJDUMP=$lt_OBJDUMP
18432
18433 # Whether or not to build shared libraries.
18434 build_libtool_libs=$enable_shared
18435
18436 # What type of objects to build.
18437 pic_mode=$pic_mode
18438
18439 # Whether or not to optimize for fast installation.
18440 fast_install=$enable_fast_install
18441
18442 # Shell to use when invoking shell scripts.
18443 SHELL=$lt_SHELL
18444
18445 # An echo program that protects backslashes.
18446 ECHO=$lt_ECHO
18447
18448 # The PATH separator for the build system.
18449 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18450
18451 # The host system.
18452 host_alias=$host_alias
18453 host=$host
18454 host_os=$host_os
18455
18456 # The build system.
18457 build_alias=$build_alias
18458 build=$build
18459 build_os=$build_os
18460
18461 # A sed program that does not truncate output.
18462 SED=$lt_SED
18463
18464 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18465 Xsed="\$SED -e 1s/^X//"
18466
18467 # A grep program that handles long lines.
18468 GREP=$lt_GREP
18469
18470 # An ERE matcher.
18471 EGREP=$lt_EGREP
18472
18473 # A literal string matcher.
18474 FGREP=$lt_FGREP
18475
18476 # A BSD- or MS-compatible name lister.
18477 NM=$lt_NM
18478
18479 # Whether we need soft or hard links.
18480 LN_S=$lt_LN_S
18481
18482 # What is the maximum length of a command?
18483 max_cmd_len=$max_cmd_len
18484
18485 # Object file suffix (normally "o").
18486 objext=$ac_objext
18487
18488 # Executable file suffix (normally "").
18489 exeext=$exeext
18490
18491 # whether the shell understands "unset".
18492 lt_unset=$lt_unset
18493
18494 # turn spaces into newlines.
18495 SP2NL=$lt_lt_SP2NL
18496
18497 # turn newlines into spaces.
18498 NL2SP=$lt_lt_NL2SP
18499
18500 # convert \$build file names to \$host format.
18501 to_host_file_cmd=$lt_cv_to_host_file_cmd
18502
18503 # convert \$build files to toolchain format.
18504 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18505
18506 # Method to check whether dependent libraries are shared objects.
18507 deplibs_check_method=$lt_deplibs_check_method
18508
18509 # Command to use when deplibs_check_method = "file_magic".
18510 file_magic_cmd=$lt_file_magic_cmd
18511
18512 # How to find potential files when deplibs_check_method = "file_magic".
18513 file_magic_glob=$lt_file_magic_glob
18514
18515 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18516 want_nocaseglob=$lt_want_nocaseglob
18517
18518 # Command to associate shared and link libraries.
18519 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18520
18521 # The archiver.
18522 AR=$lt_AR
18523
18524 # Flags to create an archive.
18525 AR_FLAGS=$lt_AR_FLAGS
18526
18527 # How to feed a file listing to the archiver.
18528 archiver_list_spec=$lt_archiver_list_spec
18529
18530 # A symbol stripping program.
18531 STRIP=$lt_STRIP
18532
18533 # Commands used to install an old-style archive.
18534 RANLIB=$lt_RANLIB
18535 old_postinstall_cmds=$lt_old_postinstall_cmds
18536 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18537
18538 # Whether to use a lock for old archive extraction.
18539 lock_old_archive_extraction=$lock_old_archive_extraction
18540
18541 # A C compiler.
18542 LTCC=$lt_CC
18543
18544 # LTCC compiler flags.
18545 LTCFLAGS=$lt_CFLAGS
18546
18547 # Take the output of nm and produce a listing of raw symbols and C names.
18548 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18549
18550 # Transform the output of nm in a proper C declaration.
18551 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18552
18553 # Transform the output of nm in a C name address pair.
18554 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18555
18556 # Transform the output of nm in a C name address pair when lib prefix is needed.
18557 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18558
18559 # Specify filename containing input files for \$NM.
18560 nm_file_list_spec=$lt_nm_file_list_spec
18561
18562 # The root where to search for dependent libraries,and in which our libraries should be installed.
18563 lt_sysroot=$lt_sysroot
18564
18565 # The name of the directory that contains temporary libtool files.
18566 objdir=$objdir
18567
18568 # Used to examine libraries when file_magic_cmd begins with "file".
18569 MAGIC_CMD=$MAGIC_CMD
18570
18571 # Must we lock files when doing compilation?
18572 need_locks=$lt_need_locks
18573
18574 # Manifest tool.
18575 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18576
18577 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18578 DSYMUTIL=$lt_DSYMUTIL
18579
18580 # Tool to change global to local symbols on Mac OS X.
18581 NMEDIT=$lt_NMEDIT
18582
18583 # Tool to manipulate fat objects and archives on Mac OS X.
18584 LIPO=$lt_LIPO
18585
18586 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18587 OTOOL=$lt_OTOOL
18588
18589 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18590 OTOOL64=$lt_OTOOL64
18591
18592 # Old archive suffix (normally "a").
18593 libext=$libext
18594
18595 # Shared library suffix (normally ".so").
18596 shrext_cmds=$lt_shrext_cmds
18597
18598 # The commands to extract the exported symbol list from a shared archive.
18599 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18600
18601 # Variables whose values should be saved in libtool wrapper scripts and
18602 # restored at link time.
18603 variables_saved_for_relink=$lt_variables_saved_for_relink
18604
18605 # Do we need the "lib" prefix for modules?
18606 need_lib_prefix=$need_lib_prefix
18607
18608 # Do we need a version for libraries?
18609 need_version=$need_version
18610
18611 # Library versioning type.
18612 version_type=$version_type
18613
18614 # Shared library runtime path variable.
18615 runpath_var=$runpath_var
18616
18617 # Shared library path variable.
18618 shlibpath_var=$shlibpath_var
18619
18620 # Is shlibpath searched before the hard-coded library search path?
18621 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18622
18623 # Format of library name prefix.
18624 libname_spec=$lt_libname_spec
18625
18626 # List of archive names.  First name is the real one, the rest are links.
18627 # The last name is the one that the linker finds with -lNAME
18628 library_names_spec=$lt_library_names_spec
18629
18630 # The coded name of the library, if different from the real name.
18631 soname_spec=$lt_soname_spec
18632
18633 # Permission mode override for installation of shared libraries.
18634 install_override_mode=$lt_install_override_mode
18635
18636 # Command to use after installation of a shared archive.
18637 postinstall_cmds=$lt_postinstall_cmds
18638
18639 # Command to use after uninstallation of a shared archive.
18640 postuninstall_cmds=$lt_postuninstall_cmds
18641
18642 # Commands used to finish a libtool library installation in a directory.
18643 finish_cmds=$lt_finish_cmds
18644
18645 # As "finish_cmds", except a single script fragment to be evaled but
18646 # not shown.
18647 finish_eval=$lt_finish_eval
18648
18649 # Whether we should hardcode library paths into libraries.
18650 hardcode_into_libs=$hardcode_into_libs
18651
18652 # Compile-time system search path for libraries.
18653 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18654
18655 # Run-time system search path for libraries.
18656 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18657
18658 # Whether dlopen is supported.
18659 dlopen_support=$enable_dlopen
18660
18661 # Whether dlopen of programs is supported.
18662 dlopen_self=$enable_dlopen_self
18663
18664 # Whether dlopen of statically linked programs is supported.
18665 dlopen_self_static=$enable_dlopen_self_static
18666
18667 # Commands to strip libraries.
18668 old_striplib=$lt_old_striplib
18669 striplib=$lt_striplib
18670
18671
18672 # The linker used to build libraries.
18673 LD=$lt_LD
18674
18675 # How to create reloadable object files.
18676 reload_flag=$lt_reload_flag
18677 reload_cmds=$lt_reload_cmds
18678
18679 # Commands used to build an old-style archive.
18680 old_archive_cmds=$lt_old_archive_cmds
18681
18682 # A language specific compiler.
18683 CC=$lt_compiler
18684
18685 # Is the compiler the GNU compiler?
18686 with_gcc=$GCC
18687
18688 # Compiler flag to turn off builtin functions.
18689 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18690
18691 # Additional compiler flags for building library objects.
18692 pic_flag=$lt_lt_prog_compiler_pic
18693
18694 # How to pass a linker flag through the compiler.
18695 wl=$lt_lt_prog_compiler_wl
18696
18697 # Compiler flag to prevent dynamic linking.
18698 link_static_flag=$lt_lt_prog_compiler_static
18699
18700 # Does compiler simultaneously support -c and -o options?
18701 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18702
18703 # Whether or not to add -lc for building shared libraries.
18704 build_libtool_need_lc=$archive_cmds_need_lc
18705
18706 # Whether or not to disallow shared libs when runtime libs are static.
18707 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18708
18709 # Compiler flag to allow reflexive dlopens.
18710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18711
18712 # Compiler flag to generate shared objects directly from archives.
18713 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18714
18715 # Whether the compiler copes with passing no objects directly.
18716 compiler_needs_object=$lt_compiler_needs_object
18717
18718 # Create an old-style archive from a shared archive.
18719 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18720
18721 # Create a temporary old-style archive to link instead of a shared archive.
18722 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18723
18724 # Commands used to build a shared archive.
18725 archive_cmds=$lt_archive_cmds
18726 archive_expsym_cmds=$lt_archive_expsym_cmds
18727
18728 # Commands used to build a loadable module if different from building
18729 # a shared archive.
18730 module_cmds=$lt_module_cmds
18731 module_expsym_cmds=$lt_module_expsym_cmds
18732
18733 # Whether we are building with GNU ld or not.
18734 with_gnu_ld=$lt_with_gnu_ld
18735
18736 # Flag that allows shared libraries with undefined symbols to be built.
18737 allow_undefined_flag=$lt_allow_undefined_flag
18738
18739 # Flag that enforces no undefined symbols.
18740 no_undefined_flag=$lt_no_undefined_flag
18741
18742 # Flag to hardcode \$libdir into a binary during linking.
18743 # This must work even if \$libdir does not exist
18744 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18745
18746 # Whether we need a single "-rpath" flag with a separated argument.
18747 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18748
18749 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18750 # DIR into the resulting binary.
18751 hardcode_direct=$hardcode_direct
18752
18753 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18754 # DIR into the resulting binary and the resulting library dependency is
18755 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18756 # library is relocated.
18757 hardcode_direct_absolute=$hardcode_direct_absolute
18758
18759 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18760 # into the resulting binary.
18761 hardcode_minus_L=$hardcode_minus_L
18762
18763 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18764 # into the resulting binary.
18765 hardcode_shlibpath_var=$hardcode_shlibpath_var
18766
18767 # Set to "yes" if building a shared library automatically hardcodes DIR
18768 # into the library and all subsequent libraries and executables linked
18769 # against it.
18770 hardcode_automatic=$hardcode_automatic
18771
18772 # Set to yes if linker adds runtime paths of dependent libraries
18773 # to runtime path list.
18774 inherit_rpath=$inherit_rpath
18775
18776 # Whether libtool must link a program against all its dependency libraries.
18777 link_all_deplibs=$link_all_deplibs
18778
18779 # Set to "yes" if exported symbols are required.
18780 always_export_symbols=$always_export_symbols
18781
18782 # The commands to list exported symbols.
18783 export_symbols_cmds=$lt_export_symbols_cmds
18784
18785 # Symbols that should not be listed in the preloaded symbols.
18786 exclude_expsyms=$lt_exclude_expsyms
18787
18788 # Symbols that must always be exported.
18789 include_expsyms=$lt_include_expsyms
18790
18791 # Commands necessary for linking programs (against libraries) with templates.
18792 prelink_cmds=$lt_prelink_cmds
18793
18794 # Commands necessary for finishing linking programs.
18795 postlink_cmds=$lt_postlink_cmds
18796
18797 # Specify filename containing input files.
18798 file_list_spec=$lt_file_list_spec
18799
18800 # How to hardcode a shared library path into an executable.
18801 hardcode_action=$hardcode_action
18802
18803 # The directories searched by this compiler when creating a shared library.
18804 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18805
18806 # Dependencies to place before and after the objects being linked to
18807 # create a shared library.
18808 predep_objects=$lt_predep_objects
18809 postdep_objects=$lt_postdep_objects
18810 predeps=$lt_predeps
18811 postdeps=$lt_postdeps
18812
18813 # The library search path used internally by the compiler when linking
18814 # a shared library.
18815 compiler_lib_search_path=$lt_compiler_lib_search_path
18816
18817 # ### END LIBTOOL CONFIG
18818
18819 _LT_EOF
18820
18821   case $host_os in
18822   aix3*)
18823     cat <<\_LT_EOF >> "$cfgfile"
18824 # AIX sometimes has problems with the GCC collect2 program.  For some
18825 # reason, if we set the COLLECT_NAMES environment variable, the problems
18826 # vanish in a puff of smoke.
18827 if test "X${COLLECT_NAMES+set}" != Xset; then
18828   COLLECT_NAMES=
18829   export COLLECT_NAMES
18830 fi
18831 _LT_EOF
18832     ;;
18833   esac
18834
18835
18836 ltmain="$ac_aux_dir/ltmain.sh"
18837
18838
18839   # We use sed instead of cat because bash on DJGPP gets confused if
18840   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18841   # text mode, it properly converts lines to CR/LF.  This bash problem
18842   # is reportedly fixed, but why not run on old versions too?
18843   sed '$q' "$ltmain" >> "$cfgfile" \
18844      || (rm -f "$cfgfile"; exit 1)
18845
18846   if test x"$xsi_shell" = xyes; then
18847   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18848 func_dirname ()\
18849 {\
18850 \    case ${1} in\
18851 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18852 \      *  ) func_dirname_result="${3}" ;;\
18853 \    esac\
18854 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18855   && mv -f "$cfgfile.tmp" "$cfgfile" \
18856     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18857 test 0 -eq $? || _lt_function_replace_fail=:
18858
18859
18860   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18861 func_basename ()\
18862 {\
18863 \    func_basename_result="${1##*/}"\
18864 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18865   && mv -f "$cfgfile.tmp" "$cfgfile" \
18866     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18867 test 0 -eq $? || _lt_function_replace_fail=:
18868
18869
18870   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18871 func_dirname_and_basename ()\
18872 {\
18873 \    case ${1} in\
18874 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18875 \      *  ) func_dirname_result="${3}" ;;\
18876 \    esac\
18877 \    func_basename_result="${1##*/}"\
18878 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18879   && mv -f "$cfgfile.tmp" "$cfgfile" \
18880     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18881 test 0 -eq $? || _lt_function_replace_fail=:
18882
18883
18884   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18885 func_stripname ()\
18886 {\
18887 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18888 \    # positional parameters, so assign one to ordinary parameter first.\
18889 \    func_stripname_result=${3}\
18890 \    func_stripname_result=${func_stripname_result#"${1}"}\
18891 \    func_stripname_result=${func_stripname_result%"${2}"}\
18892 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18893   && mv -f "$cfgfile.tmp" "$cfgfile" \
18894     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18895 test 0 -eq $? || _lt_function_replace_fail=:
18896
18897
18898   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18899 func_split_long_opt ()\
18900 {\
18901 \    func_split_long_opt_name=${1%%=*}\
18902 \    func_split_long_opt_arg=${1#*=}\
18903 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18904   && mv -f "$cfgfile.tmp" "$cfgfile" \
18905     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18906 test 0 -eq $? || _lt_function_replace_fail=:
18907
18908
18909   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18910 func_split_short_opt ()\
18911 {\
18912 \    func_split_short_opt_arg=${1#??}\
18913 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18914 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18915   && mv -f "$cfgfile.tmp" "$cfgfile" \
18916     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18917 test 0 -eq $? || _lt_function_replace_fail=:
18918
18919
18920   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18921 func_lo2o ()\
18922 {\
18923 \    case ${1} in\
18924 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18925 \      *)    func_lo2o_result=${1} ;;\
18926 \    esac\
18927 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18928   && mv -f "$cfgfile.tmp" "$cfgfile" \
18929     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18930 test 0 -eq $? || _lt_function_replace_fail=:
18931
18932
18933   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18934 func_xform ()\
18935 {\
18936     func_xform_result=${1%.*}.lo\
18937 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18938   && mv -f "$cfgfile.tmp" "$cfgfile" \
18939     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18940 test 0 -eq $? || _lt_function_replace_fail=:
18941
18942
18943   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18944 func_arith ()\
18945 {\
18946     func_arith_result=$(( $* ))\
18947 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18948   && mv -f "$cfgfile.tmp" "$cfgfile" \
18949     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18950 test 0 -eq $? || _lt_function_replace_fail=:
18951
18952
18953   sed -e '/^func_len ()$/,/^} # func_len /c\
18954 func_len ()\
18955 {\
18956     func_len_result=${#1}\
18957 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18958   && mv -f "$cfgfile.tmp" "$cfgfile" \
18959     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18960 test 0 -eq $? || _lt_function_replace_fail=:
18961
18962 fi
18963
18964 if test x"$lt_shell_append" = xyes; then
18965   sed -e '/^func_append ()$/,/^} # func_append /c\
18966 func_append ()\
18967 {\
18968     eval "${1}+=\\${2}"\
18969 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18970   && mv -f "$cfgfile.tmp" "$cfgfile" \
18971     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18972 test 0 -eq $? || _lt_function_replace_fail=:
18973
18974
18975   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18976 func_append_quoted ()\
18977 {\
18978 \    func_quote_for_eval "${2}"\
18979 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18980 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18981   && mv -f "$cfgfile.tmp" "$cfgfile" \
18982     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18983 test 0 -eq $? || _lt_function_replace_fail=:
18984
18985
18986   # Save a `func_append' function call where possible by direct use of '+='
18987   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18988     && mv -f "$cfgfile.tmp" "$cfgfile" \
18989       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18990   test 0 -eq $? || _lt_function_replace_fail=:
18991 else
18992   # Save a `func_append' function call even when '+=' is not available
18993   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18994     && mv -f "$cfgfile.tmp" "$cfgfile" \
18995       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18996   test 0 -eq $? || _lt_function_replace_fail=:
18997 fi
18998
18999 if test x"$_lt_function_replace_fail" = x":"; then
19000   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19001 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19002 fi
19003
19004
19005    mv -f "$cfgfile" "$ofile" ||
19006     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19007   chmod +x "$ofile"
19008
19009
19010     cat <<_LT_EOF >> "$ofile"
19011
19012 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19013
19014 # The linker used to build libraries.
19015 LD=$lt_LD_CXX
19016
19017 # How to create reloadable object files.
19018 reload_flag=$lt_reload_flag_CXX
19019 reload_cmds=$lt_reload_cmds_CXX
19020
19021 # Commands used to build an old-style archive.
19022 old_archive_cmds=$lt_old_archive_cmds_CXX
19023
19024 # A language specific compiler.
19025 CC=$lt_compiler_CXX
19026
19027 # Is the compiler the GNU compiler?
19028 with_gcc=$GCC_CXX
19029
19030 # Compiler flag to turn off builtin functions.
19031 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19032
19033 # Additional compiler flags for building library objects.
19034 pic_flag=$lt_lt_prog_compiler_pic_CXX
19035
19036 # How to pass a linker flag through the compiler.
19037 wl=$lt_lt_prog_compiler_wl_CXX
19038
19039 # Compiler flag to prevent dynamic linking.
19040 link_static_flag=$lt_lt_prog_compiler_static_CXX
19041
19042 # Does compiler simultaneously support -c and -o options?
19043 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19044
19045 # Whether or not to add -lc for building shared libraries.
19046 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19047
19048 # Whether or not to disallow shared libs when runtime libs are static.
19049 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19050
19051 # Compiler flag to allow reflexive dlopens.
19052 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19053
19054 # Compiler flag to generate shared objects directly from archives.
19055 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19056
19057 # Whether the compiler copes with passing no objects directly.
19058 compiler_needs_object=$lt_compiler_needs_object_CXX
19059
19060 # Create an old-style archive from a shared archive.
19061 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19062
19063 # Create a temporary old-style archive to link instead of a shared archive.
19064 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19065
19066 # Commands used to build a shared archive.
19067 archive_cmds=$lt_archive_cmds_CXX
19068 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19069
19070 # Commands used to build a loadable module if different from building
19071 # a shared archive.
19072 module_cmds=$lt_module_cmds_CXX
19073 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19074
19075 # Whether we are building with GNU ld or not.
19076 with_gnu_ld=$lt_with_gnu_ld_CXX
19077
19078 # Flag that allows shared libraries with undefined symbols to be built.
19079 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19080
19081 # Flag that enforces no undefined symbols.
19082 no_undefined_flag=$lt_no_undefined_flag_CXX
19083
19084 # Flag to hardcode \$libdir into a binary during linking.
19085 # This must work even if \$libdir does not exist
19086 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19087
19088 # Whether we need a single "-rpath" flag with a separated argument.
19089 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19090
19091 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19092 # DIR into the resulting binary.
19093 hardcode_direct=$hardcode_direct_CXX
19094
19095 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19096 # DIR into the resulting binary and the resulting library dependency is
19097 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19098 # library is relocated.
19099 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19100
19101 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19102 # into the resulting binary.
19103 hardcode_minus_L=$hardcode_minus_L_CXX
19104
19105 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19106 # into the resulting binary.
19107 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19108
19109 # Set to "yes" if building a shared library automatically hardcodes DIR
19110 # into the library and all subsequent libraries and executables linked
19111 # against it.
19112 hardcode_automatic=$hardcode_automatic_CXX
19113
19114 # Set to yes if linker adds runtime paths of dependent libraries
19115 # to runtime path list.
19116 inherit_rpath=$inherit_rpath_CXX
19117
19118 # Whether libtool must link a program against all its dependency libraries.
19119 link_all_deplibs=$link_all_deplibs_CXX
19120
19121 # Set to "yes" if exported symbols are required.
19122 always_export_symbols=$always_export_symbols_CXX
19123
19124 # The commands to list exported symbols.
19125 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19126
19127 # Symbols that should not be listed in the preloaded symbols.
19128 exclude_expsyms=$lt_exclude_expsyms_CXX
19129
19130 # Symbols that must always be exported.
19131 include_expsyms=$lt_include_expsyms_CXX
19132
19133 # Commands necessary for linking programs (against libraries) with templates.
19134 prelink_cmds=$lt_prelink_cmds_CXX
19135
19136 # Commands necessary for finishing linking programs.
19137 postlink_cmds=$lt_postlink_cmds_CXX
19138
19139 # Specify filename containing input files.
19140 file_list_spec=$lt_file_list_spec_CXX
19141
19142 # How to hardcode a shared library path into an executable.
19143 hardcode_action=$hardcode_action_CXX
19144
19145 # The directories searched by this compiler when creating a shared library.
19146 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19147
19148 # Dependencies to place before and after the objects being linked to
19149 # create a shared library.
19150 predep_objects=$lt_predep_objects_CXX
19151 postdep_objects=$lt_postdep_objects_CXX
19152 predeps=$lt_predeps_CXX
19153 postdeps=$lt_postdeps_CXX
19154
19155 # The library search path used internally by the compiler when linking
19156 # a shared library.
19157 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19158
19159 # ### END LIBTOOL TAG CONFIG: CXX
19160 _LT_EOF
19161
19162  ;;
19163
19164   esac
19165 done # for ac_tag
19166
19167
19168 as_fn_exit 0
19169 _ACEOF
19170 ac_clean_files=$ac_clean_files_save
19171
19172 test $ac_write_fail = 0 ||
19173   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19174
19175
19176 # configure is writing to config.log, and then calls config.status.
19177 # config.status does its own redirection, appending to config.log.
19178 # Unfortunately, on DOS this fails, as config.log is still kept open
19179 # by configure, so config.status won't be able to write to it; its
19180 # output is simply discarded.  So we exec the FD to /dev/null,
19181 # effectively closing config.log, so it can be properly (re)opened and
19182 # appended to by config.status.  When coming back to configure, we
19183 # need to make the FD available again.
19184 if test "$no_create" != yes; then
19185   ac_cs_success=:
19186   ac_config_status_args=
19187   test "$silent" = yes &&
19188     ac_config_status_args="$ac_config_status_args --quiet"
19189   exec 5>/dev/null
19190   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19191   exec 5>>config.log
19192   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19193   # would make configure fail if this is the last instruction.
19194   $ac_cs_success || as_fn_exit 1
19195 fi
19196 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19197   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19198 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19199 fi
19200