Permit 1-component service names
[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.
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'
594 PACKAGE_STRING='mech_eap 0.9'
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__fastdepCC_FALSE
718 am__fastdepCC_TRUE
719 CCDEPMODE
720 am__nodep
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__quote
725 am__include
726 DEPDIR
727 am__untar
728 am__tar
729 AMTAR
730 am__leading_dot
731 SET_MAKE
732 AWK
733 mkdir_p
734 MKDIR_P
735 INSTALL_STRIP_PROGRAM
736 STRIP
737 install_sh
738 MAKEINFO
739 AUTOHEADER
740 AUTOMAKE
741 AUTOCONF
742 ACLOCAL
743 VERSION
744 PACKAGE
745 CYGPATH_W
746 am__isrc
747 INSTALL_DATA
748 INSTALL_SCRIPT
749 INSTALL_PROGRAM
750 EGREP
751 GREP
752 CPP
753 OBJEXT
754 EXEEXT
755 ac_ct_CC
756 CPPFLAGS
757 LDFLAGS
758 CFLAGS
759 CC
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 enable_dependency_tracking
802 enable_maintainer_mode
803 enable_static
804 enable_shared
805 with_pic
806 enable_fast_install
807 with_gnu_ld
808 with_sysroot
809 enable_libtool_lock
810 enable_reauth
811 enable_acceptor
812 with_krb5
813 with_opensaml
814 with_shibresolver
815 with_shibsp
816 with_openssl
817 with_radsec
818 with_jansson
819 with_libmoonshot
820 '
821       ac_precious_vars='build_alias
822 host_alias
823 target_alias
824 CC
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
829 CPP
830 CXX
831 CXXFLAGS
832 CCC
833 CXXCPP'
834
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
857
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
883
884 ac_prev=
885 ac_dashdash=
886 for ac_option
887 do
888   # If the previous option needs an argument, assign it.
889   if test -n "$ac_prev"; then
890     eval $ac_prev=\$ac_option
891     ac_prev=
892     continue
893   fi
894
895   case $ac_option in
896   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897   *=)   ac_optarg= ;;
898   *)    ac_optarg=yes ;;
899   esac
900
901   # Accept the important Cygnus configure options, so we can diagnose typos.
902
903   case $ac_dashdash$ac_option in
904   --)
905     ac_dashdash=yes ;;
906
907   -bindir | --bindir | --bindi | --bind | --bin | --bi)
908     ac_prev=bindir ;;
909   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910     bindir=$ac_optarg ;;
911
912   -build | --build | --buil | --bui | --bu)
913     ac_prev=build_alias ;;
914   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915     build_alias=$ac_optarg ;;
916
917   -cache-file | --cache-file | --cache-fil | --cache-fi \
918   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919     ac_prev=cache_file ;;
920   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922     cache_file=$ac_optarg ;;
923
924   --config-cache | -C)
925     cache_file=config.cache ;;
926
927   -datadir | --datadir | --datadi | --datad)
928     ac_prev=datadir ;;
929   -datadir=* | --datadir=* | --datadi=* | --datad=*)
930     datadir=$ac_optarg ;;
931
932   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933   | --dataroo | --dataro | --datar)
934     ac_prev=datarootdir ;;
935   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937     datarootdir=$ac_optarg ;;
938
939   -disable-* | --disable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error $? "invalid feature name: $ac_useropt"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=no ;;
954
955   -docdir | --docdir | --docdi | --doc | --do)
956     ac_prev=docdir ;;
957   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958     docdir=$ac_optarg ;;
959
960   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961     ac_prev=dvidir ;;
962   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963     dvidir=$ac_optarg ;;
964
965   -enable-* | --enable-*)
966     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969       as_fn_error $? "invalid feature name: $ac_useropt"
970     ac_useropt_orig=$ac_useropt
971     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972     case $ac_user_opts in
973       *"
974 "enable_$ac_useropt"
975 "*) ;;
976       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977          ac_unrecognized_sep=', ';;
978     esac
979     eval enable_$ac_useropt=\$ac_optarg ;;
980
981   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983   | --exec | --exe | --ex)
984     ac_prev=exec_prefix ;;
985   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987   | --exec=* | --exe=* | --ex=*)
988     exec_prefix=$ac_optarg ;;
989
990   -gas | --gas | --ga | --g)
991     # Obsolete; use --with-gas.
992     with_gas=yes ;;
993
994   -help | --help | --hel | --he | -h)
995     ac_init_help=long ;;
996   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997     ac_init_help=recursive ;;
998   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999     ac_init_help=short ;;
1000
1001   -host | --host | --hos | --ho)
1002     ac_prev=host_alias ;;
1003   -host=* | --host=* | --hos=* | --ho=*)
1004     host_alias=$ac_optarg ;;
1005
1006   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007     ac_prev=htmldir ;;
1008   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009   | --ht=*)
1010     htmldir=$ac_optarg ;;
1011
1012   -includedir | --includedir | --includedi | --included | --include \
1013   | --includ | --inclu | --incl | --inc)
1014     ac_prev=includedir ;;
1015   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016   | --includ=* | --inclu=* | --incl=* | --inc=*)
1017     includedir=$ac_optarg ;;
1018
1019   -infodir | --infodir | --infodi | --infod | --info | --inf)
1020     ac_prev=infodir ;;
1021   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022     infodir=$ac_optarg ;;
1023
1024   -libdir | --libdir | --libdi | --libd)
1025     ac_prev=libdir ;;
1026   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027     libdir=$ac_optarg ;;
1028
1029   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030   | --libexe | --libex | --libe)
1031     ac_prev=libexecdir ;;
1032   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033   | --libexe=* | --libex=* | --libe=*)
1034     libexecdir=$ac_optarg ;;
1035
1036   -localedir | --localedir | --localedi | --localed | --locale)
1037     ac_prev=localedir ;;
1038   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039     localedir=$ac_optarg ;;
1040
1041   -localstatedir | --localstatedir | --localstatedi | --localstated \
1042   | --localstate | --localstat | --localsta | --localst | --locals)
1043     ac_prev=localstatedir ;;
1044   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046     localstatedir=$ac_optarg ;;
1047
1048   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049     ac_prev=mandir ;;
1050   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051     mandir=$ac_optarg ;;
1052
1053   -nfp | --nfp | --nf)
1054     # Obsolete; use --without-fp.
1055     with_fp=no ;;
1056
1057   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058   | --no-cr | --no-c | -n)
1059     no_create=yes ;;
1060
1061   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063     no_recursion=yes ;;
1064
1065   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067   | --oldin | --oldi | --old | --ol | --o)
1068     ac_prev=oldincludedir ;;
1069   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072     oldincludedir=$ac_optarg ;;
1073
1074   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075     ac_prev=prefix ;;
1076   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077     prefix=$ac_optarg ;;
1078
1079   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080   | --program-pre | --program-pr | --program-p)
1081     ac_prev=program_prefix ;;
1082   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084     program_prefix=$ac_optarg ;;
1085
1086   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087   | --program-suf | --program-su | --program-s)
1088     ac_prev=program_suffix ;;
1089   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091     program_suffix=$ac_optarg ;;
1092
1093   -program-transform-name | --program-transform-name \
1094   | --program-transform-nam | --program-transform-na \
1095   | --program-transform-n | --program-transform- \
1096   | --program-transform | --program-transfor \
1097   | --program-transfo | --program-transf \
1098   | --program-trans | --program-tran \
1099   | --progr-tra | --program-tr | --program-t)
1100     ac_prev=program_transform_name ;;
1101   -program-transform-name=* | --program-transform-name=* \
1102   | --program-transform-nam=* | --program-transform-na=* \
1103   | --program-transform-n=* | --program-transform-=* \
1104   | --program-transform=* | --program-transfor=* \
1105   | --program-transfo=* | --program-transf=* \
1106   | --program-trans=* | --program-tran=* \
1107   | --progr-tra=* | --program-tr=* | --program-t=*)
1108     program_transform_name=$ac_optarg ;;
1109
1110   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111     ac_prev=pdfdir ;;
1112   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113     pdfdir=$ac_optarg ;;
1114
1115   -psdir | --psdir | --psdi | --psd | --ps)
1116     ac_prev=psdir ;;
1117   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118     psdir=$ac_optarg ;;
1119
1120   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121   | -silent | --silent | --silen | --sile | --sil)
1122     silent=yes ;;
1123
1124   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125     ac_prev=sbindir ;;
1126   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127   | --sbi=* | --sb=*)
1128     sbindir=$ac_optarg ;;
1129
1130   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132   | --sharedst | --shareds | --shared | --share | --shar \
1133   | --sha | --sh)
1134     ac_prev=sharedstatedir ;;
1135   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138   | --sha=* | --sh=*)
1139     sharedstatedir=$ac_optarg ;;
1140
1141   -site | --site | --sit)
1142     ac_prev=site ;;
1143   -site=* | --site=* | --sit=*)
1144     site=$ac_optarg ;;
1145
1146   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147     ac_prev=srcdir ;;
1148   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149     srcdir=$ac_optarg ;;
1150
1151   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152   | --syscon | --sysco | --sysc | --sys | --sy)
1153     ac_prev=sysconfdir ;;
1154   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156     sysconfdir=$ac_optarg ;;
1157
1158   -target | --target | --targe | --targ | --tar | --ta | --t)
1159     ac_prev=target_alias ;;
1160   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161     target_alias=$ac_optarg ;;
1162
1163   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164     verbose=yes ;;
1165
1166   -version | --version | --versio | --versi | --vers | -V)
1167     ac_init_version=: ;;
1168
1169   -with-* | --with-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error $? "invalid package name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval with_$ac_useropt=\$ac_optarg ;;
1184
1185   -without-* | --without-*)
1186     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187     # Reject names that are not valid shell variable names.
1188     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189       as_fn_error $? "invalid package name: $ac_useropt"
1190     ac_useropt_orig=$ac_useropt
1191     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192     case $ac_user_opts in
1193       *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197          ac_unrecognized_sep=', ';;
1198     esac
1199     eval with_$ac_useropt=no ;;
1200
1201   --x)
1202     # Obsolete; use --with-x.
1203     with_x=yes ;;
1204
1205   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206   | --x-incl | --x-inc | --x-in | --x-i)
1207     ac_prev=x_includes ;;
1208   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210     x_includes=$ac_optarg ;;
1211
1212   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214     ac_prev=x_libraries ;;
1215   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217     x_libraries=$ac_optarg ;;
1218
1219   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1221     ;;
1222
1223   *=*)
1224     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225     # Reject names that are not valid shell variable names.
1226     case $ac_envvar in #(
1227       '' | [0-9]* | *[!_$as_cr_alnum]* )
1228       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229     esac
1230     eval $ac_envvar=\$ac_optarg
1231     export $ac_envvar ;;
1232
1233   *)
1234     # FIXME: should be removed in autoconf 3.0.
1235     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239     ;;
1240
1241   esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246   as_fn_error $? "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250   case $enable_option_checking in
1251     no) ;;
1252     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254   esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259                 datadir sysconfdir sharedstatedir localstatedir includedir \
1260                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261                 libdir localedir mandir
1262 do
1263   eval ac_val=\$$ac_var
1264   # Remove trailing slashes.
1265   case $ac_val in
1266     */ )
1267       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268       eval $ac_var=\$ac_val;;
1269   esac
1270   # Be sure to have absolute directory names.
1271   case $ac_val in
1272     [\\/$]* | ?:[\\/]* )  continue;;
1273     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274   esac
1275   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287   if test "x$build_alias" = x; then
1288     cross_compiling=maybe
1289   elif test "x$build_alias" != "x$host_alias"; then
1290     cross_compiling=yes
1291   fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303   as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305   as_fn_error $? "pwd does not report name of working directory"
1306
1307
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310   ac_srcdir_defaulted=yes
1311   # Try the directory containing this script, then the parent directory.
1312   ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314          X"$as_myself" : 'X\(//\)[^/]' \| \
1315          X"$as_myself" : 'X\(//\)$' \| \
1316          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319             s//\1/
1320             q
1321           }
1322           /^X\(\/\/\)[^/].*/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\/\)$/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\).*/{
1331             s//\1/
1332             q
1333           }
1334           s/.*/./; q'`
1335   srcdir=$ac_confdir
1336   if test ! -r "$srcdir/$ac_unique_file"; then
1337     srcdir=..
1338   fi
1339 else
1340   ac_srcdir_defaulted=no
1341 fi
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345 fi
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349         pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352   srcdir=.
1353 fi
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362   eval ac_env_${ac_var}_value=\$${ac_var}
1363   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1366
1367 #
1368 # Report the --help message.
1369 #
1370 if test "$ac_init_help" = "long"; then
1371   # Omit some internal or obsolete options to make the list less imposing.
1372   # This message is too long to be a string in the A/UX 3.1 sh.
1373   cat <<_ACEOF
1374 \`configure' configures mech_eap 0.9 to adapt to many kinds of systems.
1375
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE.  See below for descriptions of some of the useful variables.
1380
1381 Defaults for the options are specified in brackets.
1382
1383 Configuration:
1384   -h, --help              display this help and exit
1385       --help=short        display options specific to this package
1386       --help=recursive    display the short help of all the included packages
1387   -V, --version           display version information and exit
1388   -q, --quiet, --silent   do not print \`checking ...' messages
1389       --cache-file=FILE   cache test results in FILE [disabled]
1390   -C, --config-cache      alias for \`--cache-file=config.cache'
1391   -n, --no-create         do not create output files
1392       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1393
1394 Installation directories:
1395   --prefix=PREFIX         install architecture-independent files in PREFIX
1396                           [$ac_default_prefix]
1397   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1398                           [PREFIX]
1399
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1404
1405 For better control, use the options below.
1406
1407 Fine tuning of the installation directories:
1408   --bindir=DIR            user executables [EPREFIX/bin]
1409   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1410   --libexecdir=DIR        program executables [EPREFIX/libexec]
1411   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1412   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1413   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1414   --libdir=DIR            object code libraries [EPREFIX/lib]
1415   --includedir=DIR        C header files [PREFIX/include]
1416   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1417   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1418   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1419   --infodir=DIR           info documentation [DATAROOTDIR/info]
1420   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1421   --mandir=DIR            man documentation [DATAROOTDIR/man]
1422   --docdir=DIR            documentation root [DATAROOTDIR/doc/mech_eap]
1423   --htmldir=DIR           html documentation [DOCDIR]
1424   --dvidir=DIR            dvi documentation [DOCDIR]
1425   --pdfdir=DIR            pdf documentation [DOCDIR]
1426   --psdir=DIR             ps documentation [DOCDIR]
1427 _ACEOF
1428
1429   cat <<\_ACEOF
1430
1431 Program names:
1432   --program-prefix=PREFIX            prepend PREFIX to installed program names
1433   --program-suffix=SUFFIX            append SUFFIX to installed program names
1434   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1435
1436 System types:
1437   --build=BUILD     configure for building on BUILD [guessed]
1438   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1439 _ACEOF
1440 fi
1441
1442 if test -n "$ac_init_help"; then
1443   case $ac_init_help in
1444      short | recursive ) echo "Configuration of mech_eap 0.9:";;
1445    esac
1446   cat <<\_ACEOF
1447
1448 Optional Features:
1449   --disable-option-checking  ignore unrecognized --enable/--with options
1450   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1451   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1452   --disable-dependency-tracking  speeds up one-time build
1453   --enable-dependency-tracking   do not reject slow dependency extractors
1454   --enable-maintainer-mode  enable make rules and dependencies not useful
1455                           (and sometimes confusing) to the casual installer
1456   --enable-static[=PKGS]  build static libraries [default=no]
1457   --enable-shared[=PKGS]  build shared libraries [default=yes]
1458   --enable-fast-install[=PKGS]
1459                           optimize for fast installation [default=yes]
1460   --disable-libtool-lock  avoid locking (might break parallel builds)
1461   --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no
1462   --enable-acceptor whether to enable acceptor codepaths: yes/no; default yes
1463
1464 Optional Packages:
1465   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1466   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1467   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1468                           both]
1469   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1470   --with-sysroot=DIR Search for dependent libraries within DIR
1471                         (or the compiler's sysroot if not specified).
1472   --with-krb5             Use krb5 (in specified installation directory)
1473   --with-opensaml         Use OpenSAML (in specified installation directory)
1474   --with-shibresolver     Use Shibboleth resolver (in specified installation
1475                           directory)
1476   --with-shibsp           Use shibspboleth (in specified installation
1477                           directory)
1478   --with-openssl          Use OpenSSL (in specified installation directory)
1479   --with-radsec           Use radsec (in specified installation directory)
1480   --with-jansson          Use jansson (in specified installation directory)
1481   --with-libmoonshot      Use libmoonshot (in specified installation
1482                           directory)
1483
1484 Some influential environment variables:
1485   CC          C compiler command
1486   CFLAGS      C compiler flags
1487   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1488               nonstandard directory <lib dir>
1489   LIBS        libraries to pass to the linker, e.g. -l<library>
1490   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1491               you have headers in a nonstandard directory <include dir>
1492   CPP         C preprocessor
1493   CXX         C++ compiler command
1494   CXXFLAGS    C++ compiler flags
1495   CXXCPP      C++ preprocessor
1496
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1499
1500 Report bugs to <bugs@project-moonshot.org>.
1501 _ACEOF
1502 ac_status=$?
1503 fi
1504
1505 if test "$ac_init_help" = "recursive"; then
1506   # If there are subdirs, report their specific --help.
1507   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508     test -d "$ac_dir" ||
1509       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510       continue
1511     ac_builddir=.
1512
1513 case "$ac_dir" in
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *)
1516   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517   # A ".." for each directory in $ac_dir_suffix.
1518   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519   case $ac_top_builddir_sub in
1520   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522   esac ;;
1523 esac
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1528
1529 case $srcdir in
1530   .)  # We are building in place.
1531     ac_srcdir=.
1532     ac_top_srcdir=$ac_top_builddir_sub
1533     ac_abs_top_srcdir=$ac_pwd ;;
1534   [\\/]* | ?:[\\/]* )  # Absolute name.
1535     ac_srcdir=$srcdir$ac_dir_suffix;
1536     ac_top_srcdir=$srcdir
1537     ac_abs_top_srcdir=$srcdir ;;
1538   *) # Relative name.
1539     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540     ac_top_srcdir=$ac_top_build_prefix$srcdir
1541     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 esac
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545     cd "$ac_dir" || { ac_status=$?; continue; }
1546     # Check for guested configure.
1547     if test -f "$ac_srcdir/configure.gnu"; then
1548       echo &&
1549       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550     elif test -f "$ac_srcdir/configure"; then
1551       echo &&
1552       $SHELL "$ac_srcdir/configure" --help=recursive
1553     else
1554       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555     fi || ac_status=$?
1556     cd "$ac_pwd" || { ac_status=$?; break; }
1557   done
1558 fi
1559
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562   cat <<\_ACEOF
1563 mech_eap configure 0.9
1564 generated by GNU Autoconf 2.69
1565
1566 Copyright (C) 2012 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570   exit
1571 fi
1572
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1576
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1581 {
1582   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583   rm -f conftest.$ac_objext
1584   if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587   *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591   (eval "$ac_compile") 2>conftest.err
1592   ac_status=$?
1593   if test -s conftest.err; then
1594     grep -v '^ *+' conftest.err >conftest.er1
1595     cat conftest.er1 >&5
1596     mv -f conftest.er1 conftest.err
1597   fi
1598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599   test $ac_status = 0; } && {
1600          test -z "$ac_c_werror_flag" ||
1601          test ! -s conftest.err
1602        } && test -s conftest.$ac_objext; then :
1603   ac_retval=0
1604 else
1605   $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608         ac_retval=1
1609 fi
1610   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611   as_fn_set_status $ac_retval
1612
1613 } # ac_fn_c_try_compile
1614
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_cpp ()
1619 {
1620   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621   if { { ac_try="$ac_cpp conftest.$ac_ext"
1622 case "(($ac_try" in
1623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624   *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629   ac_status=$?
1630   if test -s conftest.err; then
1631     grep -v '^ *+' conftest.err >conftest.er1
1632     cat conftest.er1 >&5
1633     mv -f conftest.er1 conftest.err
1634   fi
1635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636   test $ac_status = 0; } > conftest.i && {
1637          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638          test ! -s conftest.err
1639        }; then :
1640   ac_retval=0
1641 else
1642   $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645     ac_retval=1
1646 fi
1647   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648   as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_cpp
1651
1652 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1655 # the include files in INCLUDES and setting the cache variable VAR
1656 # accordingly.
1657 ac_fn_c_check_header_mongrel ()
1658 {
1659   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660   if eval \${$3+:} false; then :
1661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664   $as_echo_n "(cached) " >&6
1665 fi
1666 eval ac_res=\$$3
1667                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 else
1670   # Is the header compilable?
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1672 $as_echo_n "checking $2 usability... " >&6; }
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h.  */
1675 $4
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679   ac_header_compiler=yes
1680 else
1681   ac_header_compiler=no
1682 fi
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1685 $as_echo "$ac_header_compiler" >&6; }
1686
1687 # Is the header present?
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1689 $as_echo_n "checking $2 presence... " >&6; }
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h.  */
1692 #include <$2>
1693 _ACEOF
1694 if ac_fn_c_try_cpp "$LINENO"; then :
1695   ac_header_preproc=yes
1696 else
1697   ac_header_preproc=no
1698 fi
1699 rm -f conftest.err conftest.i conftest.$ac_ext
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1701 $as_echo "$ac_header_preproc" >&6; }
1702
1703 # So?  What about this header?
1704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1705   yes:no: )
1706     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1707 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1708     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1709 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1710     ;;
1711   no:yes:* )
1712     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1713 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1714     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1715 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1716     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1717 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1718     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1719 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1720     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722 ( $as_echo "## ---------------------------------------- ##
1723 ## Report this to bugs@project-moonshot.org ##
1724 ## ---------------------------------------- ##"
1725      ) | sed "s/^/$as_me: WARNING:     /" >&2
1726     ;;
1727 esac
1728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731   $as_echo_n "(cached) " >&6
1732 else
1733   eval "$3=\$ac_header_compiler"
1734 fi
1735 eval ac_res=\$$3
1736                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738 fi
1739   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740
1741 } # ac_fn_c_check_header_mongrel
1742
1743 # ac_fn_c_try_run LINENO
1744 # ----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746 # that executables *can* be run.
1747 ac_fn_c_try_run ()
1748 {
1749   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750   if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753   *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757   (eval "$ac_link") 2>&5
1758   ac_status=$?
1759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1768   ac_status=$?
1769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770   test $ac_status = 0; }; }; then :
1771   ac_retval=0
1772 else
1773   $as_echo "$as_me: program exited with status $ac_status" >&5
1774        $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777        ac_retval=$ac_status
1778 fi
1779   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781   as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_run
1784
1785 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists and can be compiled using the include files in
1788 # INCLUDES, setting the cache variable VAR accordingly.
1789 ac_fn_c_check_header_compile ()
1790 {
1791   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795   $as_echo_n "(cached) " >&6
1796 else
1797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h.  */
1799 $4
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"; then :
1803   eval "$3=yes"
1804 else
1805   eval "$3=no"
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 fi
1809 eval ac_res=\$$3
1810                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814 } # ac_fn_c_check_header_compile
1815
1816 # ac_fn_c_try_link LINENO
1817 # -----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_link ()
1820 {
1821   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822   rm -f conftest.$ac_objext conftest$ac_exeext
1823   if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826   *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830   (eval "$ac_link") 2>conftest.err
1831   ac_status=$?
1832   if test -s conftest.err; then
1833     grep -v '^ *+' conftest.err >conftest.er1
1834     cat conftest.er1 >&5
1835     mv -f conftest.er1 conftest.err
1836   fi
1837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838   test $ac_status = 0; } && {
1839          test -z "$ac_c_werror_flag" ||
1840          test ! -s conftest.err
1841        } && test -s conftest$ac_exeext && {
1842          test "$cross_compiling" = yes ||
1843          test -x conftest$ac_exeext
1844        }; then :
1845   ac_retval=0
1846 else
1847   $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850         ac_retval=1
1851 fi
1852   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854   # interfere with the next link command; also delete a directory that is
1855   # left behind by Apple's compiler.  We do this before executing the actions.
1856   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858   as_fn_set_status $ac_retval
1859
1860 } # ac_fn_c_try_link
1861
1862 # ac_fn_c_check_func LINENO FUNC VAR
1863 # ----------------------------------
1864 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1865 ac_fn_c_check_func ()
1866 {
1867   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871   $as_echo_n "(cached) " >&6
1872 else
1873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h.  */
1875 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1877 #define $2 innocuous_$2
1878
1879 /* System header to define __stub macros and hopefully few prototypes,
1880     which can conflict with char $2 (); below.
1881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1882     <limits.h> exists even on freestanding compilers.  */
1883
1884 #ifdef __STDC__
1885 # include <limits.h>
1886 #else
1887 # include <assert.h>
1888 #endif
1889
1890 #undef $2
1891
1892 /* Override any GCC internal prototype to avoid an error.
1893    Use char because int might match the return type of a GCC
1894    builtin and then its argument prototype would still apply.  */
1895 #ifdef __cplusplus
1896 extern "C"
1897 #endif
1898 char $2 ();
1899 /* The GNU C library defines this for functions which it implements
1900     to always fail with ENOSYS.  Some functions are actually named
1901     something starting with __ and the normal name is an alias.  */
1902 #if defined __stub_$2 || defined __stub___$2
1903 choke me
1904 #endif
1905
1906 int
1907 main ()
1908 {
1909 return $2 ();
1910   ;
1911   return 0;
1912 }
1913 _ACEOF
1914 if ac_fn_c_try_link "$LINENO"; then :
1915   eval "$3=yes"
1916 else
1917   eval "$3=no"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext \
1920     conftest$ac_exeext conftest.$ac_ext
1921 fi
1922 eval ac_res=\$$3
1923                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927 } # ac_fn_c_check_func
1928
1929 # ac_fn_cxx_try_compile LINENO
1930 # ----------------------------
1931 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_cxx_try_compile ()
1933 {
1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935   rm -f conftest.$ac_objext
1936   if { { ac_try="$ac_compile"
1937 case "(($ac_try" in
1938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939   *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943   (eval "$ac_compile") 2>conftest.err
1944   ac_status=$?
1945   if test -s conftest.err; then
1946     grep -v '^ *+' conftest.err >conftest.er1
1947     cat conftest.er1 >&5
1948     mv -f conftest.er1 conftest.err
1949   fi
1950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951   test $ac_status = 0; } && {
1952          test -z "$ac_cxx_werror_flag" ||
1953          test ! -s conftest.err
1954        } && test -s conftest.$ac_objext; then :
1955   ac_retval=0
1956 else
1957   $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1959
1960         ac_retval=1
1961 fi
1962   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963   as_fn_set_status $ac_retval
1964
1965 } # ac_fn_cxx_try_compile
1966
1967 # ac_fn_cxx_try_cpp LINENO
1968 # ------------------------
1969 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1970 ac_fn_cxx_try_cpp ()
1971 {
1972   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973   if { { ac_try="$ac_cpp conftest.$ac_ext"
1974 case "(($ac_try" in
1975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976   *) ac_try_echo=$ac_try;;
1977 esac
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1981   ac_status=$?
1982   if test -s conftest.err; then
1983     grep -v '^ *+' conftest.err >conftest.er1
1984     cat conftest.er1 >&5
1985     mv -f conftest.er1 conftest.err
1986   fi
1987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988   test $ac_status = 0; } > conftest.i && {
1989          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1990          test ! -s conftest.err
1991        }; then :
1992   ac_retval=0
1993 else
1994   $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997     ac_retval=1
1998 fi
1999   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000   as_fn_set_status $ac_retval
2001
2002 } # ac_fn_cxx_try_cpp
2003
2004 # ac_fn_cxx_try_link LINENO
2005 # -------------------------
2006 # Try to link conftest.$ac_ext, and return whether this succeeded.
2007 ac_fn_cxx_try_link ()
2008 {
2009   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010   rm -f conftest.$ac_objext conftest$ac_exeext
2011   if { { ac_try="$ac_link"
2012 case "(($ac_try" in
2013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014   *) ac_try_echo=$ac_try;;
2015 esac
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 $as_echo "$ac_try_echo"; } >&5
2018   (eval "$ac_link") 2>conftest.err
2019   ac_status=$?
2020   if test -s conftest.err; then
2021     grep -v '^ *+' conftest.err >conftest.er1
2022     cat conftest.er1 >&5
2023     mv -f conftest.er1 conftest.err
2024   fi
2025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026   test $ac_status = 0; } && {
2027          test -z "$ac_cxx_werror_flag" ||
2028          test ! -s conftest.err
2029        } && test -s conftest$ac_exeext && {
2030          test "$cross_compiling" = yes ||
2031          test -x conftest$ac_exeext
2032        }; then :
2033   ac_retval=0
2034 else
2035   $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2037
2038         ac_retval=1
2039 fi
2040   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2041   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2042   # interfere with the next link command; also delete a directory that is
2043   # left behind by Apple's compiler.  We do this before executing the actions.
2044   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2045   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046   as_fn_set_status $ac_retval
2047
2048 } # ac_fn_cxx_try_link
2049 cat >config.log <<_ACEOF
2050 This file contains any messages produced by compilers while
2051 running configure, to aid debugging if configure makes a mistake.
2052
2053 It was created by mech_eap $as_me 0.9, which was
2054 generated by GNU Autoconf 2.69.  Invocation command line was
2055
2056   $ $0 $@
2057
2058 _ACEOF
2059 exec 5>>config.log
2060 {
2061 cat <<_ASUNAME
2062 ## --------- ##
2063 ## Platform. ##
2064 ## --------- ##
2065
2066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2071
2072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2073 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2074
2075 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2076 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2078 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2079 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2080 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2081 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2082
2083 _ASUNAME
2084
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088   IFS=$as_save_IFS
2089   test -z "$as_dir" && as_dir=.
2090     $as_echo "PATH: $as_dir"
2091   done
2092 IFS=$as_save_IFS
2093
2094 } >&5
2095
2096 cat >&5 <<_ACEOF
2097
2098
2099 ## ----------- ##
2100 ## Core tests. ##
2101 ## ----------- ##
2102
2103 _ACEOF
2104
2105
2106 # Keep a trace of the command line.
2107 # Strip out --no-create and --no-recursion so they do not pile up.
2108 # Strip out --silent because we don't want to record it for future runs.
2109 # Also quote any args containing shell meta-characters.
2110 # Make two passes to allow for proper duplicate-argument suppression.
2111 ac_configure_args=
2112 ac_configure_args0=
2113 ac_configure_args1=
2114 ac_must_keep_next=false
2115 for ac_pass in 1 2
2116 do
2117   for ac_arg
2118   do
2119     case $ac_arg in
2120     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2121     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2122     | -silent | --silent | --silen | --sile | --sil)
2123       continue ;;
2124     *\'*)
2125       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2126     esac
2127     case $ac_pass in
2128     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2129     2)
2130       as_fn_append ac_configure_args1 " '$ac_arg'"
2131       if test $ac_must_keep_next = true; then
2132         ac_must_keep_next=false # Got value, back to normal.
2133       else
2134         case $ac_arg in
2135           *=* | --config-cache | -C | -disable-* | --disable-* \
2136           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2137           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2138           | -with-* | --with-* | -without-* | --without-* | --x)
2139             case "$ac_configure_args0 " in
2140               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2141             esac
2142             ;;
2143           -* ) ac_must_keep_next=true ;;
2144         esac
2145       fi
2146       as_fn_append ac_configure_args " '$ac_arg'"
2147       ;;
2148     esac
2149   done
2150 done
2151 { ac_configure_args0=; unset ac_configure_args0;}
2152 { ac_configure_args1=; unset ac_configure_args1;}
2153
2154 # When interrupted or exit'd, cleanup temporary files, and complete
2155 # config.log.  We remove comments because anyway the quotes in there
2156 # would cause problems or look ugly.
2157 # WARNING: Use '\'' to represent an apostrophe within the trap.
2158 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2159 trap 'exit_status=$?
2160   # Save into config.log some information that might help in debugging.
2161   {
2162     echo
2163
2164     $as_echo "## ---------------- ##
2165 ## Cache variables. ##
2166 ## ---------------- ##"
2167     echo
2168     # The following way of writing the cache mishandles newlines in values,
2169 (
2170   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2171     eval ac_val=\$$ac_var
2172     case $ac_val in #(
2173     *${as_nl}*)
2174       case $ac_var in #(
2175       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2176 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2177       esac
2178       case $ac_var in #(
2179       _ | IFS | as_nl) ;; #(
2180       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2181       *) { eval $ac_var=; unset $ac_var;} ;;
2182       esac ;;
2183     esac
2184   done
2185   (set) 2>&1 |
2186     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2187     *${as_nl}ac_space=\ *)
2188       sed -n \
2189         "s/'\''/'\''\\\\'\'''\''/g;
2190           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2191       ;; #(
2192     *)
2193       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2194       ;;
2195     esac |
2196     sort
2197 )
2198     echo
2199
2200     $as_echo "## ----------------- ##
2201 ## Output variables. ##
2202 ## ----------------- ##"
2203     echo
2204     for ac_var in $ac_subst_vars
2205     do
2206       eval ac_val=\$$ac_var
2207       case $ac_val in
2208       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209       esac
2210       $as_echo "$ac_var='\''$ac_val'\''"
2211     done | sort
2212     echo
2213
2214     if test -n "$ac_subst_files"; then
2215       $as_echo "## ------------------- ##
2216 ## File substitutions. ##
2217 ## ------------------- ##"
2218       echo
2219       for ac_var in $ac_subst_files
2220       do
2221         eval ac_val=\$$ac_var
2222         case $ac_val in
2223         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2224         esac
2225         $as_echo "$ac_var='\''$ac_val'\''"
2226       done | sort
2227       echo
2228     fi
2229
2230     if test -s confdefs.h; then
2231       $as_echo "## ----------- ##
2232 ## confdefs.h. ##
2233 ## ----------- ##"
2234       echo
2235       cat confdefs.h
2236       echo
2237     fi
2238     test "$ac_signal" != 0 &&
2239       $as_echo "$as_me: caught signal $ac_signal"
2240     $as_echo "$as_me: exit $exit_status"
2241   } >&5
2242   rm -f core *.core core.conftest.* &&
2243     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2244     exit $exit_status
2245 ' 0
2246 for ac_signal in 1 2 13 15; do
2247   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2248 done
2249 ac_signal=0
2250
2251 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2252 rm -f -r conftest* confdefs.h
2253
2254 $as_echo "/* confdefs.h */" > confdefs.h
2255
2256 # Predefined preprocessor variables.
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_NAME "$PACKAGE_NAME"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2268 _ACEOF
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_STRING "$PACKAGE_STRING"
2272 _ACEOF
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_URL "$PACKAGE_URL"
2280 _ACEOF
2281
2282
2283 # Let the site file select an alternate cache file if it wants to.
2284 # Prefer an explicitly selected file to automatically selected ones.
2285 ac_site_file1=NONE
2286 ac_site_file2=NONE
2287 if test -n "$CONFIG_SITE"; then
2288   # We do not want a PATH search for config.site.
2289   case $CONFIG_SITE in #((
2290     -*)  ac_site_file1=./$CONFIG_SITE;;
2291     */*) ac_site_file1=$CONFIG_SITE;;
2292     *)   ac_site_file1=./$CONFIG_SITE;;
2293   esac
2294 elif test "x$prefix" != xNONE; then
2295   ac_site_file1=$prefix/share/config.site
2296   ac_site_file2=$prefix/etc/config.site
2297 else
2298   ac_site_file1=$ac_default_prefix/share/config.site
2299   ac_site_file2=$ac_default_prefix/etc/config.site
2300 fi
2301 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2302 do
2303   test "x$ac_site_file" = xNONE && continue
2304   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2305     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2306 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2307     sed 's/^/| /' "$ac_site_file" >&5
2308     . "$ac_site_file" \
2309       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311 as_fn_error $? "failed to load site script $ac_site_file
2312 See \`config.log' for more details" "$LINENO" 5; }
2313   fi
2314 done
2315
2316 if test -r "$cache_file"; then
2317   # Some versions of bash will fail to source /dev/null (special files
2318   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2319   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2320     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2321 $as_echo "$as_me: loading cache $cache_file" >&6;}
2322     case $cache_file in
2323       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2324       *)                      . "./$cache_file";;
2325     esac
2326   fi
2327 else
2328   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2329 $as_echo "$as_me: creating cache $cache_file" >&6;}
2330   >$cache_file
2331 fi
2332
2333 # Check that the precious variables saved in the cache have kept the same
2334 # value.
2335 ac_cache_corrupted=false
2336 for ac_var in $ac_precious_vars; do
2337   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2338   eval ac_new_set=\$ac_env_${ac_var}_set
2339   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2340   eval ac_new_val=\$ac_env_${ac_var}_value
2341   case $ac_old_set,$ac_new_set in
2342     set,)
2343       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2344 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2345       ac_cache_corrupted=: ;;
2346     ,set)
2347       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2348 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2349       ac_cache_corrupted=: ;;
2350     ,);;
2351     *)
2352       if test "x$ac_old_val" != "x$ac_new_val"; then
2353         # differences in whitespace do not lead to failure.
2354         ac_old_val_w=`echo x $ac_old_val`
2355         ac_new_val_w=`echo x $ac_new_val`
2356         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2357           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2358 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2359           ac_cache_corrupted=:
2360         else
2361           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2362 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2363           eval $ac_var=\$ac_old_val
2364         fi
2365         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2366 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2367         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2368 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2369       fi;;
2370   esac
2371   # Pass precious variables to config.status.
2372   if test "$ac_new_set" = set; then
2373     case $ac_new_val in
2374     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2375     *) ac_arg=$ac_var=$ac_new_val ;;
2376     esac
2377     case " $ac_configure_args " in
2378       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2379       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2380     esac
2381   fi
2382 done
2383 if $ac_cache_corrupted; then
2384   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2386   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2387 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2388   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2389 fi
2390 ## -------------------- ##
2391 ## Main body of script. ##
2392 ## -------------------- ##
2393
2394 ac_ext=c
2395 ac_cpp='$CPP $CPPFLAGS'
2396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2399
2400
2401
2402 ac_aux_dir=
2403 for ac_dir in build-aux "$srcdir"/build-aux; do
2404   if test -f "$ac_dir/install-sh"; then
2405     ac_aux_dir=$ac_dir
2406     ac_install_sh="$ac_aux_dir/install-sh -c"
2407     break
2408   elif test -f "$ac_dir/install.sh"; then
2409     ac_aux_dir=$ac_dir
2410     ac_install_sh="$ac_aux_dir/install.sh -c"
2411     break
2412   elif test -f "$ac_dir/shtool"; then
2413     ac_aux_dir=$ac_dir
2414     ac_install_sh="$ac_aux_dir/shtool install -c"
2415     break
2416   fi
2417 done
2418 if test -z "$ac_aux_dir"; then
2419   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2420 fi
2421
2422 # These three variables are undocumented and unsupported,
2423 # and are intended to be withdrawn in a future Autoconf release.
2424 # They can cause serious problems if a builder's source tree is in a directory
2425 # whose full name contains unusual characters.
2426 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2427 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2428 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2429
2430
2431
2432 ac_ext=c
2433 ac_cpp='$CPP $CPPFLAGS'
2434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2437 if test -n "$ac_tool_prefix"; then
2438   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2441 $as_echo_n "checking for $ac_word... " >&6; }
2442 if ${ac_cv_prog_CC+:} false; then :
2443   $as_echo_n "(cached) " >&6
2444 else
2445   if test -n "$CC"; then
2446   ac_cv_prog_CC="$CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453     for ac_exec_ext in '' $ac_executable_extensions; do
2454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460   done
2461 IFS=$as_save_IFS
2462
2463 fi
2464 fi
2465 CC=$ac_cv_prog_CC
2466 if test -n "$CC"; then
2467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2468 $as_echo "$CC" >&6; }
2469 else
2470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2471 $as_echo "no" >&6; }
2472 fi
2473
2474
2475 fi
2476 if test -z "$ac_cv_prog_CC"; then
2477   ac_ct_CC=$CC
2478   # Extract the first word of "gcc", so it can be a program name with args.
2479 set dummy gcc; ac_word=$2
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2481 $as_echo_n "checking for $ac_word... " >&6; }
2482 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2483   $as_echo_n "(cached) " >&6
2484 else
2485   if test -n "$ac_ct_CC"; then
2486   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493     for ac_exec_ext in '' $ac_executable_extensions; do
2494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495     ac_cv_prog_ac_ct_CC="gcc"
2496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500   done
2501 IFS=$as_save_IFS
2502
2503 fi
2504 fi
2505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2506 if test -n "$ac_ct_CC"; then
2507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2508 $as_echo "$ac_ct_CC" >&6; }
2509 else
2510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2511 $as_echo "no" >&6; }
2512 fi
2513
2514   if test "x$ac_ct_CC" = x; then
2515     CC=""
2516   else
2517     case $cross_compiling:$ac_tool_warned in
2518 yes:)
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2521 ac_tool_warned=yes ;;
2522 esac
2523     CC=$ac_ct_CC
2524   fi
2525 else
2526   CC="$ac_cv_prog_CC"
2527 fi
2528
2529 if test -z "$CC"; then
2530           if test -n "$ac_tool_prefix"; then
2531     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2532 set dummy ${ac_tool_prefix}cc; ac_word=$2
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2534 $as_echo_n "checking for $ac_word... " >&6; }
2535 if ${ac_cv_prog_CC+:} false; then :
2536   $as_echo_n "(cached) " >&6
2537 else
2538   if test -n "$CC"; then
2539   ac_cv_prog_CC="$CC" # Let the user override the test.
2540 else
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2543 do
2544   IFS=$as_save_IFS
2545   test -z "$as_dir" && as_dir=.
2546     for ac_exec_ext in '' $ac_executable_extensions; do
2547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2548     ac_cv_prog_CC="${ac_tool_prefix}cc"
2549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2550     break 2
2551   fi
2552 done
2553   done
2554 IFS=$as_save_IFS
2555
2556 fi
2557 fi
2558 CC=$ac_cv_prog_CC
2559 if test -n "$CC"; then
2560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2561 $as_echo "$CC" >&6; }
2562 else
2563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564 $as_echo "no" >&6; }
2565 fi
2566
2567
2568   fi
2569 fi
2570 if test -z "$CC"; then
2571   # Extract the first word of "cc", so it can be a program name with args.
2572 set dummy cc; ac_word=$2
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574 $as_echo_n "checking for $ac_word... " >&6; }
2575 if ${ac_cv_prog_CC+:} false; then :
2576   $as_echo_n "(cached) " >&6
2577 else
2578   if test -n "$CC"; then
2579   ac_cv_prog_CC="$CC" # Let the user override the test.
2580 else
2581   ac_prog_rejected=no
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585   IFS=$as_save_IFS
2586   test -z "$as_dir" && as_dir=.
2587     for ac_exec_ext in '' $ac_executable_extensions; do
2588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2590        ac_prog_rejected=yes
2591        continue
2592      fi
2593     ac_cv_prog_CC="cc"
2594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595     break 2
2596   fi
2597 done
2598   done
2599 IFS=$as_save_IFS
2600
2601 if test $ac_prog_rejected = yes; then
2602   # We found a bogon in the path, so make sure we never use it.
2603   set dummy $ac_cv_prog_CC
2604   shift
2605   if test $# != 0; then
2606     # We chose a different compiler from the bogus one.
2607     # However, it has the same basename, so the bogon will be chosen
2608     # first if we set CC to just the basename; use the full file name.
2609     shift
2610     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2611   fi
2612 fi
2613 fi
2614 fi
2615 CC=$ac_cv_prog_CC
2616 if test -n "$CC"; then
2617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2618 $as_echo "$CC" >&6; }
2619 else
2620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 fi
2623
2624
2625 fi
2626 if test -z "$CC"; then
2627   if test -n "$ac_tool_prefix"; then
2628   for ac_prog in cl.exe
2629   do
2630     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2631 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if ${ac_cv_prog_CC+:} false; then :
2635   $as_echo_n "(cached) " >&6
2636 else
2637   if test -n "$CC"; then
2638   ac_cv_prog_CC="$CC" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2642 do
2643   IFS=$as_save_IFS
2644   test -z "$as_dir" && as_dir=.
2645     for ac_exec_ext in '' $ac_executable_extensions; do
2646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649     break 2
2650   fi
2651 done
2652   done
2653 IFS=$as_save_IFS
2654
2655 fi
2656 fi
2657 CC=$ac_cv_prog_CC
2658 if test -n "$CC"; then
2659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2660 $as_echo "$CC" >&6; }
2661 else
2662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2664 fi
2665
2666
2667     test -n "$CC" && break
2668   done
2669 fi
2670 if test -z "$CC"; then
2671   ac_ct_CC=$CC
2672   for ac_prog in cl.exe
2673 do
2674   # Extract the first word of "$ac_prog", so it can be a program name with args.
2675 set dummy $ac_prog; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2679   $as_echo_n "(cached) " >&6
2680 else
2681   if test -n "$ac_ct_CC"; then
2682   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687   IFS=$as_save_IFS
2688   test -z "$as_dir" && as_dir=.
2689     for ac_exec_ext in '' $ac_executable_extensions; do
2690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691     ac_cv_prog_ac_ct_CC="$ac_prog"
2692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693     break 2
2694   fi
2695 done
2696   done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2702 if test -n "$ac_ct_CC"; then
2703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2704 $as_echo "$ac_ct_CC" >&6; }
2705 else
2706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 fi
2709
2710
2711   test -n "$ac_ct_CC" && break
2712 done
2713
2714   if test "x$ac_ct_CC" = x; then
2715     CC=""
2716   else
2717     case $cross_compiling:$ac_tool_warned in
2718 yes:)
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2721 ac_tool_warned=yes ;;
2722 esac
2723     CC=$ac_ct_CC
2724   fi
2725 fi
2726
2727 fi
2728
2729
2730 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2732 as_fn_error $? "no acceptable C compiler found in \$PATH
2733 See \`config.log' for more details" "$LINENO" 5; }
2734
2735 # Provide some information about the compiler.
2736 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2737 set X $ac_compile
2738 ac_compiler=$2
2739 for ac_option in --version -v -V -qversion; do
2740   { { ac_try="$ac_compiler $ac_option >&5"
2741 case "(($ac_try" in
2742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743   *) ac_try_echo=$ac_try;;
2744 esac
2745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2746 $as_echo "$ac_try_echo"; } >&5
2747   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2748   ac_status=$?
2749   if test -s conftest.err; then
2750     sed '10a\
2751 ... rest of stderr output deleted ...
2752          10q' conftest.err >conftest.er1
2753     cat conftest.er1 >&5
2754   fi
2755   rm -f conftest.er1 conftest.err
2756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2757   test $ac_status = 0; }
2758 done
2759
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h.  */
2762
2763 int
2764 main ()
2765 {
2766
2767   ;
2768   return 0;
2769 }
2770 _ACEOF
2771 ac_clean_files_save=$ac_clean_files
2772 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2773 # Try to create an executable without -o first, disregard a.out.
2774 # It will help us diagnose broken compilers, and finding out an intuition
2775 # of exeext.
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2777 $as_echo_n "checking whether the C compiler works... " >&6; }
2778 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2779
2780 # The possible output files:
2781 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2782
2783 ac_rmfiles=
2784 for ac_file in $ac_files
2785 do
2786   case $ac_file in
2787     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2788     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2789   esac
2790 done
2791 rm -f $ac_rmfiles
2792
2793 if { { ac_try="$ac_link_default"
2794 case "(($ac_try" in
2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796   *) ac_try_echo=$ac_try;;
2797 esac
2798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2799 $as_echo "$ac_try_echo"; } >&5
2800   (eval "$ac_link_default") 2>&5
2801   ac_status=$?
2802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2803   test $ac_status = 0; }; then :
2804   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2805 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2806 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2807 # so that the user can short-circuit this test for compilers unknown to
2808 # Autoconf.
2809 for ac_file in $ac_files ''
2810 do
2811   test -f "$ac_file" || continue
2812   case $ac_file in
2813     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2814         ;;
2815     [ab].out )
2816         # We found the default executable, but exeext='' is most
2817         # certainly right.
2818         break;;
2819     *.* )
2820         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2821         then :; else
2822            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2823         fi
2824         # We set ac_cv_exeext here because the later test for it is not
2825         # safe: cross compilers may not add the suffix if given an `-o'
2826         # argument, so we may need to know it at that point already.
2827         # Even if this section looks crufty: it has the advantage of
2828         # actually working.
2829         break;;
2830     * )
2831         break;;
2832   esac
2833 done
2834 test "$ac_cv_exeext" = no && ac_cv_exeext=
2835
2836 else
2837   ac_file=''
2838 fi
2839 if test -z "$ac_file"; then :
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2842 $as_echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2847 as_fn_error 77 "C compiler cannot create executables
2848 See \`config.log' for more details" "$LINENO" 5; }
2849 else
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2851 $as_echo "yes" >&6; }
2852 fi
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2854 $as_echo_n "checking for C compiler default output file name... " >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2856 $as_echo "$ac_file" >&6; }
2857 ac_exeext=$ac_cv_exeext
2858
2859 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2860 ac_clean_files=$ac_clean_files_save
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2862 $as_echo_n "checking for suffix of executables... " >&6; }
2863 if { { ac_try="$ac_link"
2864 case "(($ac_try" in
2865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866   *) ac_try_echo=$ac_try;;
2867 esac
2868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2869 $as_echo "$ac_try_echo"; } >&5
2870   (eval "$ac_link") 2>&5
2871   ac_status=$?
2872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2873   test $ac_status = 0; }; then :
2874   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2875 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2876 # work properly (i.e., refer to `conftest.exe'), while it won't with
2877 # `rm'.
2878 for ac_file in conftest.exe conftest conftest.*; do
2879   test -f "$ac_file" || continue
2880   case $ac_file in
2881     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2882     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2883           break;;
2884     * ) break;;
2885   esac
2886 done
2887 else
2888   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2890 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2891 See \`config.log' for more details" "$LINENO" 5; }
2892 fi
2893 rm -f conftest conftest$ac_cv_exeext
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2895 $as_echo "$ac_cv_exeext" >&6; }
2896
2897 rm -f conftest.$ac_ext
2898 EXEEXT=$ac_cv_exeext
2899 ac_exeext=$EXEEXT
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h.  */
2902 #include <stdio.h>
2903 int
2904 main ()
2905 {
2906 FILE *f = fopen ("conftest.out", "w");
2907  return ferror (f) || fclose (f) != 0;
2908
2909   ;
2910   return 0;
2911 }
2912 _ACEOF
2913 ac_clean_files="$ac_clean_files conftest.out"
2914 # Check that the compiler produces executables we can run.  If not, either
2915 # the compiler is broken, or we cross compile.
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2917 $as_echo_n "checking whether we are cross compiling... " >&6; }
2918 if test "$cross_compiling" != yes; then
2919   { { ac_try="$ac_link"
2920 case "(($ac_try" in
2921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922   *) ac_try_echo=$ac_try;;
2923 esac
2924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2925 $as_echo "$ac_try_echo"; } >&5
2926   (eval "$ac_link") 2>&5
2927   ac_status=$?
2928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2929   test $ac_status = 0; }
2930   if { ac_try='./conftest$ac_cv_exeext'
2931   { { case "(($ac_try" in
2932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933   *) ac_try_echo=$ac_try;;
2934 esac
2935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2936 $as_echo "$ac_try_echo"; } >&5
2937   (eval "$ac_try") 2>&5
2938   ac_status=$?
2939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2940   test $ac_status = 0; }; }; then
2941     cross_compiling=no
2942   else
2943     if test "$cross_compiling" = maybe; then
2944         cross_compiling=yes
2945     else
2946         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948 as_fn_error $? "cannot run C compiled programs.
2949 If you meant to cross compile, use \`--host'.
2950 See \`config.log' for more details" "$LINENO" 5; }
2951     fi
2952   fi
2953 fi
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2955 $as_echo "$cross_compiling" >&6; }
2956
2957 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2958 ac_clean_files=$ac_clean_files_save
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2960 $as_echo_n "checking for suffix of object files... " >&6; }
2961 if ${ac_cv_objext+:} false; then :
2962   $as_echo_n "(cached) " >&6
2963 else
2964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965 /* end confdefs.h.  */
2966
2967 int
2968 main ()
2969 {
2970
2971   ;
2972   return 0;
2973 }
2974 _ACEOF
2975 rm -f conftest.o conftest.obj
2976 if { { ac_try="$ac_compile"
2977 case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2982 $as_echo "$ac_try_echo"; } >&5
2983   (eval "$ac_compile") 2>&5
2984   ac_status=$?
2985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2986   test $ac_status = 0; }; then :
2987   for ac_file in conftest.o conftest.obj conftest.*; do
2988   test -f "$ac_file" || continue;
2989   case $ac_file in
2990     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2991     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2992        break;;
2993   esac
2994 done
2995 else
2996   $as_echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2998
2999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3001 as_fn_error $? "cannot compute suffix of object files: cannot compile
3002 See \`config.log' for more details" "$LINENO" 5; }
3003 fi
3004 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3005 fi
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3007 $as_echo "$ac_cv_objext" >&6; }
3008 OBJEXT=$ac_cv_objext
3009 ac_objext=$OBJEXT
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3011 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3012 if ${ac_cv_c_compiler_gnu+:} false; then :
3013   $as_echo_n "(cached) " >&6
3014 else
3015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h.  */
3017
3018 int
3019 main ()
3020 {
3021 #ifndef __GNUC__
3022        choke me
3023 #endif
3024
3025   ;
3026   return 0;
3027 }
3028 _ACEOF
3029 if ac_fn_c_try_compile "$LINENO"; then :
3030   ac_compiler_gnu=yes
3031 else
3032   ac_compiler_gnu=no
3033 fi
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3036
3037 fi
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3039 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3040 if test $ac_compiler_gnu = yes; then
3041   GCC=yes
3042 else
3043   GCC=
3044 fi
3045 ac_test_CFLAGS=${CFLAGS+set}
3046 ac_save_CFLAGS=$CFLAGS
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3048 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3049 if ${ac_cv_prog_cc_g+:} false; then :
3050   $as_echo_n "(cached) " >&6
3051 else
3052   ac_save_c_werror_flag=$ac_c_werror_flag
3053    ac_c_werror_flag=yes
3054    ac_cv_prog_cc_g=no
3055    CFLAGS="-g"
3056    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h.  */
3058
3059 int
3060 main ()
3061 {
3062
3063   ;
3064   return 0;
3065 }
3066 _ACEOF
3067 if ac_fn_c_try_compile "$LINENO"; then :
3068   ac_cv_prog_cc_g=yes
3069 else
3070   CFLAGS=""
3071       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h.  */
3073
3074 int
3075 main ()
3076 {
3077
3078   ;
3079   return 0;
3080 }
3081 _ACEOF
3082 if ac_fn_c_try_compile "$LINENO"; then :
3083
3084 else
3085   ac_c_werror_flag=$ac_save_c_werror_flag
3086          CFLAGS="-g"
3087          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h.  */
3089
3090 int
3091 main ()
3092 {
3093
3094   ;
3095   return 0;
3096 }
3097 _ACEOF
3098 if ac_fn_c_try_compile "$LINENO"; then :
3099   ac_cv_prog_cc_g=yes
3100 fi
3101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3102 fi
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104 fi
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106    ac_c_werror_flag=$ac_save_c_werror_flag
3107 fi
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3109 $as_echo "$ac_cv_prog_cc_g" >&6; }
3110 if test "$ac_test_CFLAGS" = set; then
3111   CFLAGS=$ac_save_CFLAGS
3112 elif test $ac_cv_prog_cc_g = yes; then
3113   if test "$GCC" = yes; then
3114     CFLAGS="-g -O2"
3115   else
3116     CFLAGS="-g"
3117   fi
3118 else
3119   if test "$GCC" = yes; then
3120     CFLAGS="-O2"
3121   else
3122     CFLAGS=
3123   fi
3124 fi
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3126 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3127 if ${ac_cv_prog_cc_c89+:} false; then :
3128   $as_echo_n "(cached) " >&6
3129 else
3130   ac_cv_prog_cc_c89=no
3131 ac_save_CC=$CC
3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 /* end confdefs.h.  */
3134 #include <stdarg.h>
3135 #include <stdio.h>
3136 struct stat;
3137 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3138 struct buf { int x; };
3139 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3140 static char *e (p, i)
3141      char **p;
3142      int i;
3143 {
3144   return p[i];
3145 }
3146 static char *f (char * (*g) (char **, int), char **p, ...)
3147 {
3148   char *s;
3149   va_list v;
3150   va_start (v,p);
3151   s = g (p, va_arg (v,int));
3152   va_end (v);
3153   return s;
3154 }
3155
3156 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3157    function prototypes and stuff, but not '\xHH' hex character constants.
3158    These don't provoke an error unfortunately, instead are silently treated
3159    as 'x'.  The following induces an error, until -std is added to get
3160    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3161    array size at least.  It's necessary to write '\x00'==0 to get something
3162    that's true only with -std.  */
3163 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3164
3165 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3166    inside strings and character constants.  */
3167 #define FOO(x) 'x'
3168 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3169
3170 int test (int i, double x);
3171 struct s1 {int (*f) (int a);};
3172 struct s2 {int (*f) (double a);};
3173 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3174 int argc;
3175 char **argv;
3176 int
3177 main ()
3178 {
3179 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3180   ;
3181   return 0;
3182 }
3183 _ACEOF
3184 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3185         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3186 do
3187   CC="$ac_save_CC $ac_arg"
3188   if ac_fn_c_try_compile "$LINENO"; then :
3189   ac_cv_prog_cc_c89=$ac_arg
3190 fi
3191 rm -f core conftest.err conftest.$ac_objext
3192   test "x$ac_cv_prog_cc_c89" != "xno" && break
3193 done
3194 rm -f conftest.$ac_ext
3195 CC=$ac_save_CC
3196
3197 fi
3198 # AC_CACHE_VAL
3199 case "x$ac_cv_prog_cc_c89" in
3200   x)
3201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3202 $as_echo "none needed" >&6; } ;;
3203   xno)
3204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3205 $as_echo "unsupported" >&6; } ;;
3206   *)
3207     CC="$CC $ac_cv_prog_cc_c89"
3208     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3209 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3210 esac
3211 if test "x$ac_cv_prog_cc_c89" != xno; then :
3212
3213 fi
3214
3215 ac_ext=c
3216 ac_cpp='$CPP $CPPFLAGS'
3217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220
3221
3222 ac_ext=c
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3228 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3229 # On Suns, sometimes $CPP names a directory.
3230 if test -n "$CPP" && test -d "$CPP"; then
3231   CPP=
3232 fi
3233 if test -z "$CPP"; then
3234   if ${ac_cv_prog_CPP+:} false; then :
3235   $as_echo_n "(cached) " >&6
3236 else
3237       # Double quotes because CPP needs to be expanded
3238     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3239     do
3240       ac_preproc_ok=false
3241 for ac_c_preproc_warn_flag in '' yes
3242 do
3243   # Use a header file that comes with gcc, so configuring glibc
3244   # with a fresh cross-compiler works.
3245   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3246   # <limits.h> exists even on freestanding compilers.
3247   # On the NeXT, cc -E runs the code through the compiler's parser,
3248   # not just through cpp. "Syntax error" is here to catch this case.
3249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h.  */
3251 #ifdef __STDC__
3252 # include <limits.h>
3253 #else
3254 # include <assert.h>
3255 #endif
3256                      Syntax error
3257 _ACEOF
3258 if ac_fn_c_try_cpp "$LINENO"; then :
3259
3260 else
3261   # Broken: fails on valid input.
3262 continue
3263 fi
3264 rm -f conftest.err conftest.i conftest.$ac_ext
3265
3266   # OK, works on sane cases.  Now check whether nonexistent headers
3267   # can be detected and how.
3268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h.  */
3270 #include <ac_nonexistent.h>
3271 _ACEOF
3272 if ac_fn_c_try_cpp "$LINENO"; then :
3273   # Broken: success on invalid input.
3274 continue
3275 else
3276   # Passes both tests.
3277 ac_preproc_ok=:
3278 break
3279 fi
3280 rm -f conftest.err conftest.i conftest.$ac_ext
3281
3282 done
3283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3284 rm -f conftest.i conftest.err conftest.$ac_ext
3285 if $ac_preproc_ok; then :
3286   break
3287 fi
3288
3289     done
3290     ac_cv_prog_CPP=$CPP
3291
3292 fi
3293   CPP=$ac_cv_prog_CPP
3294 else
3295   ac_cv_prog_CPP=$CPP
3296 fi
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3298 $as_echo "$CPP" >&6; }
3299 ac_preproc_ok=false
3300 for ac_c_preproc_warn_flag in '' yes
3301 do
3302   # Use a header file that comes with gcc, so configuring glibc
3303   # with a fresh cross-compiler works.
3304   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3305   # <limits.h> exists even on freestanding compilers.
3306   # On the NeXT, cc -E runs the code through the compiler's parser,
3307   # not just through cpp. "Syntax error" is here to catch this case.
3308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h.  */
3310 #ifdef __STDC__
3311 # include <limits.h>
3312 #else
3313 # include <assert.h>
3314 #endif
3315                      Syntax error
3316 _ACEOF
3317 if ac_fn_c_try_cpp "$LINENO"; then :
3318
3319 else
3320   # Broken: fails on valid input.
3321 continue
3322 fi
3323 rm -f conftest.err conftest.i conftest.$ac_ext
3324
3325   # OK, works on sane cases.  Now check whether nonexistent headers
3326   # can be detected and how.
3327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h.  */
3329 #include <ac_nonexistent.h>
3330 _ACEOF
3331 if ac_fn_c_try_cpp "$LINENO"; then :
3332   # Broken: success on invalid input.
3333 continue
3334 else
3335   # Passes both tests.
3336 ac_preproc_ok=:
3337 break
3338 fi
3339 rm -f conftest.err conftest.i conftest.$ac_ext
3340
3341 done
3342 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3343 rm -f conftest.i conftest.err conftest.$ac_ext
3344 if $ac_preproc_ok; then :
3345
3346 else
3347   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3350 See \`config.log' for more details" "$LINENO" 5; }
3351 fi
3352
3353 ac_ext=c
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358
3359
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3361 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3362 if ${ac_cv_path_GREP+:} false; then :
3363   $as_echo_n "(cached) " >&6
3364 else
3365   if test -z "$GREP"; then
3366   ac_path_GREP_found=false
3367   # Loop through the user's path and test for each of PROGNAME-LIST
3368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3370 do
3371   IFS=$as_save_IFS
3372   test -z "$as_dir" && as_dir=.
3373     for ac_prog in grep ggrep; do
3374     for ac_exec_ext in '' $ac_executable_extensions; do
3375       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3376       as_fn_executable_p "$ac_path_GREP" || continue
3377 # Check for GNU ac_path_GREP and select it if it is found.
3378   # Check for GNU $ac_path_GREP
3379 case `"$ac_path_GREP" --version 2>&1` in
3380 *GNU*)
3381   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3382 *)
3383   ac_count=0
3384   $as_echo_n 0123456789 >"conftest.in"
3385   while :
3386   do
3387     cat "conftest.in" "conftest.in" >"conftest.tmp"
3388     mv "conftest.tmp" "conftest.in"
3389     cp "conftest.in" "conftest.nl"
3390     $as_echo 'GREP' >> "conftest.nl"
3391     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3392     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3393     as_fn_arith $ac_count + 1 && ac_count=$as_val
3394     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3395       # Best one so far, save it but keep looking for a better one
3396       ac_cv_path_GREP="$ac_path_GREP"
3397       ac_path_GREP_max=$ac_count
3398     fi
3399     # 10*(2^10) chars as input seems more than enough
3400     test $ac_count -gt 10 && break
3401   done
3402   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3403 esac
3404
3405       $ac_path_GREP_found && break 3
3406     done
3407   done
3408   done
3409 IFS=$as_save_IFS
3410   if test -z "$ac_cv_path_GREP"; then
3411     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3412   fi
3413 else
3414   ac_cv_path_GREP=$GREP
3415 fi
3416
3417 fi
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3419 $as_echo "$ac_cv_path_GREP" >&6; }
3420  GREP="$ac_cv_path_GREP"
3421
3422
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3424 $as_echo_n "checking for egrep... " >&6; }
3425 if ${ac_cv_path_EGREP+:} false; then :
3426   $as_echo_n "(cached) " >&6
3427 else
3428   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3429    then ac_cv_path_EGREP="$GREP -E"
3430    else
3431      if test -z "$EGREP"; then
3432   ac_path_EGREP_found=false
3433   # Loop through the user's path and test for each of PROGNAME-LIST
3434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3436 do
3437   IFS=$as_save_IFS
3438   test -z "$as_dir" && as_dir=.
3439     for ac_prog in egrep; do
3440     for ac_exec_ext in '' $ac_executable_extensions; do
3441       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3442       as_fn_executable_p "$ac_path_EGREP" || continue
3443 # Check for GNU ac_path_EGREP and select it if it is found.
3444   # Check for GNU $ac_path_EGREP
3445 case `"$ac_path_EGREP" --version 2>&1` in
3446 *GNU*)
3447   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3448 *)
3449   ac_count=0
3450   $as_echo_n 0123456789 >"conftest.in"
3451   while :
3452   do
3453     cat "conftest.in" "conftest.in" >"conftest.tmp"
3454     mv "conftest.tmp" "conftest.in"
3455     cp "conftest.in" "conftest.nl"
3456     $as_echo 'EGREP' >> "conftest.nl"
3457     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3458     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3459     as_fn_arith $ac_count + 1 && ac_count=$as_val
3460     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3461       # Best one so far, save it but keep looking for a better one
3462       ac_cv_path_EGREP="$ac_path_EGREP"
3463       ac_path_EGREP_max=$ac_count
3464     fi
3465     # 10*(2^10) chars as input seems more than enough
3466     test $ac_count -gt 10 && break
3467   done
3468   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3469 esac
3470
3471       $ac_path_EGREP_found && break 3
3472     done
3473   done
3474   done
3475 IFS=$as_save_IFS
3476   if test -z "$ac_cv_path_EGREP"; then
3477     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3478   fi
3479 else
3480   ac_cv_path_EGREP=$EGREP
3481 fi
3482
3483    fi
3484 fi
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3486 $as_echo "$ac_cv_path_EGREP" >&6; }
3487  EGREP="$ac_cv_path_EGREP"
3488
3489
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3491 $as_echo_n "checking for ANSI C header files... " >&6; }
3492 if ${ac_cv_header_stdc+:} false; then :
3493   $as_echo_n "(cached) " >&6
3494 else
3495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h.  */
3497 #include <stdlib.h>
3498 #include <stdarg.h>
3499 #include <string.h>
3500 #include <float.h>
3501
3502 int
3503 main ()
3504 {
3505
3506   ;
3507   return 0;
3508 }
3509 _ACEOF
3510 if ac_fn_c_try_compile "$LINENO"; then :
3511   ac_cv_header_stdc=yes
3512 else
3513   ac_cv_header_stdc=no
3514 fi
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516
3517 if test $ac_cv_header_stdc = yes; then
3518   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h.  */
3521 #include <string.h>
3522
3523 _ACEOF
3524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3525   $EGREP "memchr" >/dev/null 2>&1; then :
3526
3527 else
3528   ac_cv_header_stdc=no
3529 fi
3530 rm -f conftest*
3531
3532 fi
3533
3534 if test $ac_cv_header_stdc = yes; then
3535   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h.  */
3538 #include <stdlib.h>
3539
3540 _ACEOF
3541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3542   $EGREP "free" >/dev/null 2>&1; then :
3543
3544 else
3545   ac_cv_header_stdc=no
3546 fi
3547 rm -f conftest*
3548
3549 fi
3550
3551 if test $ac_cv_header_stdc = yes; then
3552   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3553   if test "$cross_compiling" = yes; then :
3554   :
3555 else
3556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h.  */
3558 #include <ctype.h>
3559 #include <stdlib.h>
3560 #if ((' ' & 0x0FF) == 0x020)
3561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3563 #else
3564 # define ISLOWER(c) \
3565                    (('a' <= (c) && (c) <= 'i') \
3566                      || ('j' <= (c) && (c) <= 'r') \
3567                      || ('s' <= (c) && (c) <= 'z'))
3568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3569 #endif
3570
3571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3572 int
3573 main ()
3574 {
3575   int i;
3576   for (i = 0; i < 256; i++)
3577     if (XOR (islower (i), ISLOWER (i))
3578         || toupper (i) != TOUPPER (i))
3579       return 2;
3580   return 0;
3581 }
3582 _ACEOF
3583 if ac_fn_c_try_run "$LINENO"; then :
3584
3585 else
3586   ac_cv_header_stdc=no
3587 fi
3588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3589   conftest.$ac_objext conftest.beam conftest.$ac_ext
3590 fi
3591
3592 fi
3593 fi
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3595 $as_echo "$ac_cv_header_stdc" >&6; }
3596 if test $ac_cv_header_stdc = yes; then
3597
3598 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3599
3600 fi
3601
3602 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3603 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3604                   inttypes.h stdint.h unistd.h
3605 do :
3606   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3607 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3608 "
3609 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3610   cat >>confdefs.h <<_ACEOF
3611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3612 _ACEOF
3613
3614 fi
3615
3616 done
3617
3618
3619
3620   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3621 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3622   MINIX=yes
3623 else
3624   MINIX=
3625 fi
3626
3627
3628   if test "$MINIX" = yes; then
3629
3630 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3631
3632
3633 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3634
3635
3636 $as_echo "#define _MINIX 1" >>confdefs.h
3637
3638   fi
3639
3640
3641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3642 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3643 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3644   $as_echo_n "(cached) " >&6
3645 else
3646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h.  */
3648
3649 #         define __EXTENSIONS__ 1
3650           $ac_includes_default
3651 int
3652 main ()
3653 {
3654
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660   ac_cv_safe_to_define___extensions__=yes
3661 else
3662   ac_cv_safe_to_define___extensions__=no
3663 fi
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3667 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3668   test $ac_cv_safe_to_define___extensions__ = yes &&
3669     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3670
3671   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3672
3673   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3674
3675   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3676
3677   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3678
3679
3680 am__api_version='1.11'
3681
3682 # Find a good install program.  We prefer a C program (faster),
3683 # so one script is as good as another.  But avoid the broken or
3684 # incompatible versions:
3685 # SysV /etc/install, /usr/sbin/install
3686 # SunOS /usr/etc/install
3687 # IRIX /sbin/install
3688 # AIX /bin/install
3689 # AmigaOS /C/install, which installs bootblocks on floppy discs
3690 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3691 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3692 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3693 # OS/2's system install, which has a completely different semantic
3694 # ./install, which can be erroneously created by make from ./install.sh.
3695 # Reject install programs that cannot install multiple files.
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3697 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3698 if test -z "$INSTALL"; then
3699 if ${ac_cv_path_install+:} false; then :
3700   $as_echo_n "(cached) " >&6
3701 else
3702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3704 do
3705   IFS=$as_save_IFS
3706   test -z "$as_dir" && as_dir=.
3707     # Account for people who put trailing slashes in PATH elements.
3708 case $as_dir/ in #((
3709   ./ | .// | /[cC]/* | \
3710   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3711   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3712   /usr/ucb/* ) ;;
3713   *)
3714     # OSF1 and SCO ODT 3.0 have their own names for install.
3715     # Don't use installbsd from OSF since it installs stuff as root
3716     # by default.
3717     for ac_prog in ginstall scoinst install; do
3718       for ac_exec_ext in '' $ac_executable_extensions; do
3719         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3720           if test $ac_prog = install &&
3721             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3722             # AIX install.  It has an incompatible calling convention.
3723             :
3724           elif test $ac_prog = install &&
3725             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3726             # program-specific install script used by HP pwplus--don't use.
3727             :
3728           else
3729             rm -rf conftest.one conftest.two conftest.dir
3730             echo one > conftest.one
3731             echo two > conftest.two
3732             mkdir conftest.dir
3733             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3734               test -s conftest.one && test -s conftest.two &&
3735               test -s conftest.dir/conftest.one &&
3736               test -s conftest.dir/conftest.two
3737             then
3738               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3739               break 3
3740             fi
3741           fi
3742         fi
3743       done
3744     done
3745     ;;
3746 esac
3747
3748   done
3749 IFS=$as_save_IFS
3750
3751 rm -rf conftest.one conftest.two conftest.dir
3752
3753 fi
3754   if test "${ac_cv_path_install+set}" = set; then
3755     INSTALL=$ac_cv_path_install
3756   else
3757     # As a last resort, use the slow shell script.  Don't cache a
3758     # value for INSTALL within a source directory, because that will
3759     # break other packages using the cache if that directory is
3760     # removed, or if the value is a relative name.
3761     INSTALL=$ac_install_sh
3762   fi
3763 fi
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3765 $as_echo "$INSTALL" >&6; }
3766
3767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3768 # It thinks the first close brace ends the variable substitution.
3769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3770
3771 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3772
3773 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3774
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3776 $as_echo_n "checking whether build environment is sane... " >&6; }
3777 # Just in case
3778 sleep 1
3779 echo timestamp > conftest.file
3780 # Reject unsafe characters in $srcdir or the absolute working directory
3781 # name.  Accept space and tab only in the latter.
3782 am_lf='
3783 '
3784 case `pwd` in
3785   *[\\\"\#\$\&\'\`$am_lf]*)
3786     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3787 esac
3788 case $srcdir in
3789   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3790     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3791 esac
3792
3793 # Do `set' in a subshell so we don't clobber the current shell's
3794 # arguments.  Must try -L first in case configure is actually a
3795 # symlink; some systems play weird games with the mod time of symlinks
3796 # (eg FreeBSD returns the mod time of the symlink's containing
3797 # directory).
3798 if (
3799    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3800    if test "$*" = "X"; then
3801       # -L didn't work.
3802       set X `ls -t "$srcdir/configure" conftest.file`
3803    fi
3804    rm -f conftest.file
3805    if test "$*" != "X $srcdir/configure conftest.file" \
3806       && test "$*" != "X conftest.file $srcdir/configure"; then
3807
3808       # If neither matched, then we have a broken ls.  This can happen
3809       # if, for instance, CONFIG_SHELL is bash and it inherits a
3810       # broken ls alias from the environment.  This has actually
3811       # happened.  Such a system could not be considered "sane".
3812       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3813 alias in your environment" "$LINENO" 5
3814    fi
3815
3816    test "$2" = conftest.file
3817    )
3818 then
3819    # Ok.
3820    :
3821 else
3822    as_fn_error $? "newly created file is older than distributed files!
3823 Check your system clock" "$LINENO" 5
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3826 $as_echo "yes" >&6; }
3827 test "$program_prefix" != NONE &&
3828   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3829 # Use a double $ so make ignores it.
3830 test "$program_suffix" != NONE &&
3831   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3832 # Double any \ or $.
3833 # By default was `s,x,x', remove it if useless.
3834 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3835 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3836
3837 # expand $ac_aux_dir to an absolute path
3838 am_aux_dir=`cd $ac_aux_dir && pwd`
3839
3840 if test x"${MISSING+set}" != xset; then
3841   case $am_aux_dir in
3842   *\ * | *\     *)
3843     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3844   *)
3845     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3846   esac
3847 fi
3848 # Use eval to expand $SHELL
3849 if eval "$MISSING --run true"; then
3850   am_missing_run="$MISSING --run "
3851 else
3852   am_missing_run=
3853   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3854 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3855 fi
3856
3857 if test x"${install_sh}" != xset; then
3858   case $am_aux_dir in
3859   *\ * | *\     *)
3860     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3861   *)
3862     install_sh="\${SHELL} $am_aux_dir/install-sh"
3863   esac
3864 fi
3865
3866 # Installed binaries are usually stripped using `strip' when the user
3867 # run `make install-strip'.  However `strip' might not be the right
3868 # tool to use in cross-compilation environments, therefore Automake
3869 # will honor the `STRIP' environment variable to overrule this program.
3870 if test "$cross_compiling" != no; then
3871   if test -n "$ac_tool_prefix"; then
3872   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3873 set dummy ${ac_tool_prefix}strip; ac_word=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if ${ac_cv_prog_STRIP+:} false; then :
3877   $as_echo_n "(cached) " >&6
3878 else
3879   if test -n "$STRIP"; then
3880   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885   IFS=$as_save_IFS
3886   test -z "$as_dir" && as_dir=.
3887     for ac_exec_ext in '' $ac_executable_extensions; do
3888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891     break 2
3892   fi
3893 done
3894   done
3895 IFS=$as_save_IFS
3896
3897 fi
3898 fi
3899 STRIP=$ac_cv_prog_STRIP
3900 if test -n "$STRIP"; then
3901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3902 $as_echo "$STRIP" >&6; }
3903 else
3904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3906 fi
3907
3908
3909 fi
3910 if test -z "$ac_cv_prog_STRIP"; then
3911   ac_ct_STRIP=$STRIP
3912   # Extract the first word of "strip", so it can be a program name with args.
3913 set dummy strip; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3917   $as_echo_n "(cached) " >&6
3918 else
3919   if test -n "$ac_ct_STRIP"; then
3920   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925   IFS=$as_save_IFS
3926   test -z "$as_dir" && as_dir=.
3927     for ac_exec_ext in '' $ac_executable_extensions; do
3928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929     ac_cv_prog_ac_ct_STRIP="strip"
3930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931     break 2
3932   fi
3933 done
3934   done
3935 IFS=$as_save_IFS
3936
3937 fi
3938 fi
3939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3940 if test -n "$ac_ct_STRIP"; then
3941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3942 $as_echo "$ac_ct_STRIP" >&6; }
3943 else
3944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3946 fi
3947
3948   if test "x$ac_ct_STRIP" = x; then
3949     STRIP=":"
3950   else
3951     case $cross_compiling:$ac_tool_warned in
3952 yes:)
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3955 ac_tool_warned=yes ;;
3956 esac
3957     STRIP=$ac_ct_STRIP
3958   fi
3959 else
3960   STRIP="$ac_cv_prog_STRIP"
3961 fi
3962
3963 fi
3964 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3965
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3967 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3968 if test -z "$MKDIR_P"; then
3969   if ${ac_cv_path_mkdir+:} false; then :
3970   $as_echo_n "(cached) " >&6
3971 else
3972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3974 do
3975   IFS=$as_save_IFS
3976   test -z "$as_dir" && as_dir=.
3977     for ac_prog in mkdir gmkdir; do
3978          for ac_exec_ext in '' $ac_executable_extensions; do
3979            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3980            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3981              'mkdir (GNU coreutils) '* | \
3982              'mkdir (coreutils) '* | \
3983              'mkdir (fileutils) '4.1*)
3984                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3985                break 3;;
3986            esac
3987          done
3988        done
3989   done
3990 IFS=$as_save_IFS
3991
3992 fi
3993
3994   test -d ./--version && rmdir ./--version
3995   if test "${ac_cv_path_mkdir+set}" = set; then
3996     MKDIR_P="$ac_cv_path_mkdir -p"
3997   else
3998     # As a last resort, use the slow shell script.  Don't cache a
3999     # value for MKDIR_P within a source directory, because that will
4000     # break other packages using the cache if that directory is
4001     # removed, or if the value is a relative name.
4002     MKDIR_P="$ac_install_sh -d"
4003   fi
4004 fi
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4006 $as_echo "$MKDIR_P" >&6; }
4007
4008 mkdir_p="$MKDIR_P"
4009 case $mkdir_p in
4010   [\\/$]* | ?:[\\/]*) ;;
4011   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4012 esac
4013
4014 for ac_prog in gawk mawk nawk awk
4015 do
4016   # Extract the first word of "$ac_prog", so it can be a program name with args.
4017 set dummy $ac_prog; ac_word=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if ${ac_cv_prog_AWK+:} false; then :
4021   $as_echo_n "(cached) " >&6
4022 else
4023   if test -n "$AWK"; then
4024   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4028 do
4029   IFS=$as_save_IFS
4030   test -z "$as_dir" && as_dir=.
4031     for ac_exec_ext in '' $ac_executable_extensions; do
4032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033     ac_cv_prog_AWK="$ac_prog"
4034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035     break 2
4036   fi
4037 done
4038   done
4039 IFS=$as_save_IFS
4040
4041 fi
4042 fi
4043 AWK=$ac_cv_prog_AWK
4044 if test -n "$AWK"; then
4045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4046 $as_echo "$AWK" >&6; }
4047 else
4048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4050 fi
4051
4052
4053   test -n "$AWK" && break
4054 done
4055
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4057 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4058 set x ${MAKE-make}
4059 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4060 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4061   $as_echo_n "(cached) " >&6
4062 else
4063   cat >conftest.make <<\_ACEOF
4064 SHELL = /bin/sh
4065 all:
4066         @echo '@@@%%%=$(MAKE)=@@@%%%'
4067 _ACEOF
4068 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4069 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4070   *@@@%%%=?*=@@@%%%*)
4071     eval ac_cv_prog_make_${ac_make}_set=yes;;
4072   *)
4073     eval ac_cv_prog_make_${ac_make}_set=no;;
4074 esac
4075 rm -f conftest.make
4076 fi
4077 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4079 $as_echo "yes" >&6; }
4080   SET_MAKE=
4081 else
4082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 $as_echo "no" >&6; }
4084   SET_MAKE="MAKE=${MAKE-make}"
4085 fi
4086
4087 rm -rf .tst 2>/dev/null
4088 mkdir .tst 2>/dev/null
4089 if test -d .tst; then
4090   am__leading_dot=.
4091 else
4092   am__leading_dot=_
4093 fi
4094 rmdir .tst 2>/dev/null
4095
4096 DEPDIR="${am__leading_dot}deps"
4097
4098 ac_config_commands="$ac_config_commands depfiles"
4099
4100
4101 am_make=${MAKE-make}
4102 cat > confinc << 'END'
4103 am__doit:
4104         @echo this is the am__doit target
4105 .PHONY: am__doit
4106 END
4107 # If we don't find an include directive, just comment out the code.
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4109 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4110 am__include="#"
4111 am__quote=
4112 _am_result=none
4113 # First try GNU make style include.
4114 echo "include confinc" > confmf
4115 # Ignore all kinds of additional output from `make'.
4116 case `$am_make -s -f confmf 2> /dev/null` in #(
4117 *the\ am__doit\ target*)
4118   am__include=include
4119   am__quote=
4120   _am_result=GNU
4121   ;;
4122 esac
4123 # Now try BSD make style include.
4124 if test "$am__include" = "#"; then
4125    echo '.include "confinc"' > confmf
4126    case `$am_make -s -f confmf 2> /dev/null` in #(
4127    *the\ am__doit\ target*)
4128      am__include=.include
4129      am__quote="\""
4130      _am_result=BSD
4131      ;;
4132    esac
4133 fi
4134
4135
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4137 $as_echo "$_am_result" >&6; }
4138 rm -f confinc confmf
4139
4140 # Check whether --enable-dependency-tracking was given.
4141 if test "${enable_dependency_tracking+set}" = set; then :
4142   enableval=$enable_dependency_tracking;
4143 fi
4144
4145 if test "x$enable_dependency_tracking" != xno; then
4146   am_depcomp="$ac_aux_dir/depcomp"
4147   AMDEPBACKSLASH='\'
4148   am__nodep='_no'
4149 fi
4150  if test "x$enable_dependency_tracking" != xno; then
4151   AMDEP_TRUE=
4152   AMDEP_FALSE='#'
4153 else
4154   AMDEP_TRUE='#'
4155   AMDEP_FALSE=
4156 fi
4157
4158
4159 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4160   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4161   # is not polluted with repeated "-I."
4162   am__isrc=' -I$(srcdir)'
4163   # test to see if srcdir already configured
4164   if test -f $srcdir/config.status; then
4165     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4166   fi
4167 fi
4168
4169 # test whether we have cygpath
4170 if test -z "$CYGPATH_W"; then
4171   if (cygpath --version) >/dev/null 2>/dev/null; then
4172     CYGPATH_W='cygpath -w'
4173   else
4174     CYGPATH_W=echo
4175   fi
4176 fi
4177
4178
4179 # Define the identity of the package.
4180  PACKAGE='mech_eap'
4181  VERSION='0.9'
4182
4183
4184 cat >>confdefs.h <<_ACEOF
4185 #define PACKAGE "$PACKAGE"
4186 _ACEOF
4187
4188
4189 cat >>confdefs.h <<_ACEOF
4190 #define VERSION "$VERSION"
4191 _ACEOF
4192
4193 # Some tools Automake needs.
4194
4195 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4196
4197
4198 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4199
4200
4201 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4202
4203
4204 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4205
4206
4207 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4208
4209 # We need awk for the "check" target.  The system "awk" is bad on
4210 # some platforms.
4211 # Always define AMTAR for backward compatibility.  Yes, it's still used
4212 # in the wild :-(  We should find a proper way to deprecate it ...
4213 AMTAR='$${TAR-tar}'
4214
4215 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4216
4217
4218
4219
4220 depcc="$CC"   am_compiler_list=
4221
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4223 $as_echo_n "checking dependency style of $depcc... " >&6; }
4224 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4225   $as_echo_n "(cached) " >&6
4226 else
4227   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4228   # We make a subdir and do the tests there.  Otherwise we can end up
4229   # making bogus files that we don't know about and never remove.  For
4230   # instance it was reported that on HP-UX the gcc test will end up
4231   # making a dummy file named `D' -- because `-MD' means `put the output
4232   # in D'.
4233   rm -rf conftest.dir
4234   mkdir conftest.dir
4235   # Copy depcomp to subdir because otherwise we won't find it if we're
4236   # using a relative directory.
4237   cp "$am_depcomp" conftest.dir
4238   cd conftest.dir
4239   # We will build objects and dependencies in a subdirectory because
4240   # it helps to detect inapplicable dependency modes.  For instance
4241   # both Tru64's cc and ICC support -MD to output dependencies as a
4242   # side effect of compilation, but ICC will put the dependencies in
4243   # the current directory while Tru64 will put them in the object
4244   # directory.
4245   mkdir sub
4246
4247   am_cv_CC_dependencies_compiler_type=none
4248   if test "$am_compiler_list" = ""; then
4249      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4250   fi
4251   am__universal=false
4252   case " $depcc " in #(
4253      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4254      esac
4255
4256   for depmode in $am_compiler_list; do
4257     # Setup a source with many dependencies, because some compilers
4258     # like to wrap large dependency lists on column 80 (with \), and
4259     # we should not choose a depcomp mode which is confused by this.
4260     #
4261     # We need to recreate these files for each test, as the compiler may
4262     # overwrite some of them when testing with obscure command lines.
4263     # This happens at least with the AIX C compiler.
4264     : > sub/conftest.c
4265     for i in 1 2 3 4 5 6; do
4266       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4267       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4268       # Solaris 8's {/usr,}/bin/sh.
4269       touch sub/conftst$i.h
4270     done
4271     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4272
4273     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4274     # mode.  It turns out that the SunPro C++ compiler does not properly
4275     # handle `-M -o', and we need to detect this.  Also, some Intel
4276     # versions had trouble with output in subdirs
4277     am__obj=sub/conftest.${OBJEXT-o}
4278     am__minus_obj="-o $am__obj"
4279     case $depmode in
4280     gcc)
4281       # This depmode causes a compiler race in universal mode.
4282       test "$am__universal" = false || continue
4283       ;;
4284     nosideeffect)
4285       # after this tag, mechanisms are not by side-effect, so they'll
4286       # only be used when explicitly requested
4287       if test "x$enable_dependency_tracking" = xyes; then
4288         continue
4289       else
4290         break
4291       fi
4292       ;;
4293     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4294       # This compiler won't grok `-c -o', but also, the minuso test has
4295       # not run yet.  These depmodes are late enough in the game, and
4296       # so weak that their functioning should not be impacted.
4297       am__obj=conftest.${OBJEXT-o}
4298       am__minus_obj=
4299       ;;
4300     none) break ;;
4301     esac
4302     if depmode=$depmode \
4303        source=sub/conftest.c object=$am__obj \
4304        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4305        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4306          >/dev/null 2>conftest.err &&
4307        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4308        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4309        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4310        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4311       # icc doesn't choke on unknown options, it will just issue warnings
4312       # or remarks (even with -Werror).  So we grep stderr for any message
4313       # that says an option was ignored or not supported.
4314       # When given -MP, icc 7.0 and 7.1 complain thusly:
4315       #   icc: Command line warning: ignoring option '-M'; no argument required
4316       # The diagnosis changed in icc 8.0:
4317       #   icc: Command line remark: option '-MP' not supported
4318       if (grep 'ignoring option' conftest.err ||
4319           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4320         am_cv_CC_dependencies_compiler_type=$depmode
4321         break
4322       fi
4323     fi
4324   done
4325
4326   cd ..
4327   rm -rf conftest.dir
4328 else
4329   am_cv_CC_dependencies_compiler_type=none
4330 fi
4331
4332 fi
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4334 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4335 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4336
4337  if
4338   test "x$enable_dependency_tracking" != xno \
4339   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4340   am__fastdepCC_TRUE=
4341   am__fastdepCC_FALSE='#'
4342 else
4343   am__fastdepCC_TRUE='#'
4344   am__fastdepCC_FALSE=
4345 fi
4346
4347
4348
4349 if test "x$CC" != xcc; then
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4351 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4352 else
4353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4354 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4355 fi
4356 set dummy $CC; ac_cc=`$as_echo "$2" |
4357                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4358 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4359   $as_echo_n "(cached) " >&6
4360 else
4361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h.  */
4363
4364 int
4365 main ()
4366 {
4367
4368   ;
4369   return 0;
4370 }
4371 _ACEOF
4372 # Make sure it works both with $CC and with simple cc.
4373 # We do the test twice because some compilers refuse to overwrite an
4374 # existing .o file with -o, though they will create one.
4375 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4376 rm -f conftest2.*
4377 if { { case "(($ac_try" in
4378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379   *) ac_try_echo=$ac_try;;
4380 esac
4381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382 $as_echo "$ac_try_echo"; } >&5
4383   (eval "$ac_try") 2>&5
4384   ac_status=$?
4385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4386   test $ac_status = 0; } &&
4387    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389   *) ac_try_echo=$ac_try;;
4390 esac
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 $as_echo "$ac_try_echo"; } >&5
4393   (eval "$ac_try") 2>&5
4394   ac_status=$?
4395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396   test $ac_status = 0; };
4397 then
4398   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4399   if test "x$CC" != xcc; then
4400     # Test first that cc exists at all.
4401     if { ac_try='cc -c conftest.$ac_ext >&5'
4402   { { case "(($ac_try" in
4403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404   *) ac_try_echo=$ac_try;;
4405 esac
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408   (eval "$ac_try") 2>&5
4409   ac_status=$?
4410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411   test $ac_status = 0; }; }; then
4412       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4413       rm -f conftest2.*
4414       if { { case "(($ac_try" in
4415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416   *) ac_try_echo=$ac_try;;
4417 esac
4418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419 $as_echo "$ac_try_echo"; } >&5
4420   (eval "$ac_try") 2>&5
4421   ac_status=$?
4422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423   test $ac_status = 0; } &&
4424          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426   *) ac_try_echo=$ac_try;;
4427 esac
4428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4429 $as_echo "$ac_try_echo"; } >&5
4430   (eval "$ac_try") 2>&5
4431   ac_status=$?
4432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4433   test $ac_status = 0; };
4434       then
4435         # cc works too.
4436         :
4437       else
4438         # cc exists but doesn't like -o.
4439         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4440       fi
4441     fi
4442   fi
4443 else
4444   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4445 fi
4446 rm -f core conftest*
4447
4448 fi
4449 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4451 $as_echo "yes" >&6; }
4452 else
4453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4455
4456 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4457
4458 fi
4459
4460 # FIXME: we rely on the cache variable name because
4461 # there is no other way.
4462 set dummy $CC
4463 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4464 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4465 if test "$am_t" != yes; then
4466    # Losing compiler, so override with the script.
4467    # FIXME: It is wrong to rewrite CC.
4468    # But if we don't then we get into trouble of one sort or another.
4469    # A longer-term fix would be to have automake use am__CC in this case,
4470    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4471    CC="$am_aux_dir/compile $CC"
4472 fi
4473
4474
4475
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4477 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4478     # Check whether --enable-maintainer-mode was given.
4479 if test "${enable_maintainer_mode+set}" = set; then :
4480   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4481 else
4482   USE_MAINTAINER_MODE=no
4483 fi
4484
4485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4486 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4487    if test $USE_MAINTAINER_MODE = yes; then
4488   MAINTAINER_MODE_TRUE=
4489   MAINTAINER_MODE_FALSE='#'
4490 else
4491   MAINTAINER_MODE_TRUE='#'
4492   MAINTAINER_MODE_FALSE=
4493 fi
4494
4495   MAINT=$MAINTAINER_MODE_TRUE
4496
4497
4498
4499 case `pwd` in
4500   *\ * | *\     *)
4501     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4502 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4503 esac
4504
4505
4506
4507 macro_version='2.4.2'
4508 macro_revision='1.3337'
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522 ltmain="$ac_aux_dir/ltmain.sh"
4523
4524 # Make sure we can run config.sub.
4525 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4526   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4527
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4529 $as_echo_n "checking build system type... " >&6; }
4530 if ${ac_cv_build+:} false; then :
4531   $as_echo_n "(cached) " >&6
4532 else
4533   ac_build_alias=$build_alias
4534 test "x$ac_build_alias" = x &&
4535   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4536 test "x$ac_build_alias" = x &&
4537   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4538 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4539   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4540
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4543 $as_echo "$ac_cv_build" >&6; }
4544 case $ac_cv_build in
4545 *-*-*) ;;
4546 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4547 esac
4548 build=$ac_cv_build
4549 ac_save_IFS=$IFS; IFS='-'
4550 set x $ac_cv_build
4551 shift
4552 build_cpu=$1
4553 build_vendor=$2
4554 shift; shift
4555 # Remember, the first character of IFS is used to create $*,
4556 # except with old shells:
4557 build_os=$*
4558 IFS=$ac_save_IFS
4559 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4560
4561
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4563 $as_echo_n "checking host system type... " >&6; }
4564 if ${ac_cv_host+:} false; then :
4565   $as_echo_n "(cached) " >&6
4566 else
4567   if test "x$host_alias" = x; then
4568   ac_cv_host=$ac_cv_build
4569 else
4570   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4571     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4572 fi
4573
4574 fi
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4576 $as_echo "$ac_cv_host" >&6; }
4577 case $ac_cv_host in
4578 *-*-*) ;;
4579 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4580 esac
4581 host=$ac_cv_host
4582 ac_save_IFS=$IFS; IFS='-'
4583 set x $ac_cv_host
4584 shift
4585 host_cpu=$1
4586 host_vendor=$2
4587 shift; shift
4588 # Remember, the first character of IFS is used to create $*,
4589 # except with old shells:
4590 host_os=$*
4591 IFS=$ac_save_IFS
4592 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4593
4594
4595 # Backslashify metacharacters that are still active within
4596 # double-quoted strings.
4597 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4598
4599 # Same as above, but do not quote variable references.
4600 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4601
4602 # Sed substitution to delay expansion of an escaped shell variable in a
4603 # double_quote_subst'ed string.
4604 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4605
4606 # Sed substitution to delay expansion of an escaped single quote.
4607 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4608
4609 # Sed substitution to avoid accidental globbing in evaled expressions
4610 no_glob_subst='s/\*/\\\*/g'
4611
4612 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4613 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4614 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4615
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4617 $as_echo_n "checking how to print strings... " >&6; }
4618 # Test print first, because it will be a builtin if present.
4619 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4620    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4621   ECHO='print -r --'
4622 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4623   ECHO='printf %s\n'
4624 else
4625   # Use this function as a fallback that always works.
4626   func_fallback_echo ()
4627   {
4628     eval 'cat <<_LTECHO_EOF
4629 $1
4630 _LTECHO_EOF'
4631   }
4632   ECHO='func_fallback_echo'
4633 fi
4634
4635 # func_echo_all arg...
4636 # Invoke $ECHO with all args, space-separated.
4637 func_echo_all ()
4638 {
4639     $ECHO ""
4640 }
4641
4642 case "$ECHO" in
4643   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4644 $as_echo "printf" >&6; } ;;
4645   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4646 $as_echo "print -r" >&6; } ;;
4647   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4648 $as_echo "cat" >&6; } ;;
4649 esac
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4665 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4666 if ${ac_cv_path_SED+:} false; then :
4667   $as_echo_n "(cached) " >&6
4668 else
4669             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4670      for ac_i in 1 2 3 4 5 6 7; do
4671        ac_script="$ac_script$as_nl$ac_script"
4672      done
4673      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4674      { ac_script=; unset ac_script;}
4675      if test -z "$SED"; then
4676   ac_path_SED_found=false
4677   # Loop through the user's path and test for each of PROGNAME-LIST
4678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681   IFS=$as_save_IFS
4682   test -z "$as_dir" && as_dir=.
4683     for ac_prog in sed gsed; do
4684     for ac_exec_ext in '' $ac_executable_extensions; do
4685       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4686       as_fn_executable_p "$ac_path_SED" || continue
4687 # Check for GNU ac_path_SED and select it if it is found.
4688   # Check for GNU $ac_path_SED
4689 case `"$ac_path_SED" --version 2>&1` in
4690 *GNU*)
4691   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4692 *)
4693   ac_count=0
4694   $as_echo_n 0123456789 >"conftest.in"
4695   while :
4696   do
4697     cat "conftest.in" "conftest.in" >"conftest.tmp"
4698     mv "conftest.tmp" "conftest.in"
4699     cp "conftest.in" "conftest.nl"
4700     $as_echo '' >> "conftest.nl"
4701     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4702     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4703     as_fn_arith $ac_count + 1 && ac_count=$as_val
4704     if test $ac_count -gt ${ac_path_SED_max-0}; then
4705       # Best one so far, save it but keep looking for a better one
4706       ac_cv_path_SED="$ac_path_SED"
4707       ac_path_SED_max=$ac_count
4708     fi
4709     # 10*(2^10) chars as input seems more than enough
4710     test $ac_count -gt 10 && break
4711   done
4712   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4713 esac
4714
4715       $ac_path_SED_found && break 3
4716     done
4717   done
4718   done
4719 IFS=$as_save_IFS
4720   if test -z "$ac_cv_path_SED"; then
4721     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4722   fi
4723 else
4724   ac_cv_path_SED=$SED
4725 fi
4726
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4729 $as_echo "$ac_cv_path_SED" >&6; }
4730  SED="$ac_cv_path_SED"
4731   rm -f conftest.sed
4732
4733 test -z "$SED" && SED=sed
4734 Xsed="$SED -e 1s/^X//"
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4747 $as_echo_n "checking for fgrep... " >&6; }
4748 if ${ac_cv_path_FGREP+:} false; then :
4749   $as_echo_n "(cached) " >&6
4750 else
4751   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4752    then ac_cv_path_FGREP="$GREP -F"
4753    else
4754      if test -z "$FGREP"; then
4755   ac_path_FGREP_found=false
4756   # Loop through the user's path and test for each of PROGNAME-LIST
4757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4759 do
4760   IFS=$as_save_IFS
4761   test -z "$as_dir" && as_dir=.
4762     for ac_prog in fgrep; do
4763     for ac_exec_ext in '' $ac_executable_extensions; do
4764       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4765       as_fn_executable_p "$ac_path_FGREP" || continue
4766 # Check for GNU ac_path_FGREP and select it if it is found.
4767   # Check for GNU $ac_path_FGREP
4768 case `"$ac_path_FGREP" --version 2>&1` in
4769 *GNU*)
4770   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4771 *)
4772   ac_count=0
4773   $as_echo_n 0123456789 >"conftest.in"
4774   while :
4775   do
4776     cat "conftest.in" "conftest.in" >"conftest.tmp"
4777     mv "conftest.tmp" "conftest.in"
4778     cp "conftest.in" "conftest.nl"
4779     $as_echo 'FGREP' >> "conftest.nl"
4780     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4781     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4782     as_fn_arith $ac_count + 1 && ac_count=$as_val
4783     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4784       # Best one so far, save it but keep looking for a better one
4785       ac_cv_path_FGREP="$ac_path_FGREP"
4786       ac_path_FGREP_max=$ac_count
4787     fi
4788     # 10*(2^10) chars as input seems more than enough
4789     test $ac_count -gt 10 && break
4790   done
4791   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4792 esac
4793
4794       $ac_path_FGREP_found && break 3
4795     done
4796   done
4797   done
4798 IFS=$as_save_IFS
4799   if test -z "$ac_cv_path_FGREP"; then
4800     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4801   fi
4802 else
4803   ac_cv_path_FGREP=$FGREP
4804 fi
4805
4806    fi
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4809 $as_echo "$ac_cv_path_FGREP" >&6; }
4810  FGREP="$ac_cv_path_FGREP"
4811
4812
4813 test -z "$GREP" && GREP=grep
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833 # Check whether --with-gnu-ld was given.
4834 if test "${with_gnu_ld+set}" = set; then :
4835   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4836 else
4837   with_gnu_ld=no
4838 fi
4839
4840 ac_prog=ld
4841 if test "$GCC" = yes; then
4842   # Check if gcc -print-prog-name=ld gives a path.
4843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4844 $as_echo_n "checking for ld used by $CC... " >&6; }
4845   case $host in
4846   *-*-mingw*)
4847     # gcc leaves a trailing carriage return which upsets mingw
4848     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4849   *)
4850     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4851   esac
4852   case $ac_prog in
4853     # Accept absolute paths.
4854     [\\/]* | ?:[\\/]*)
4855       re_direlt='/[^/][^/]*/\.\./'
4856       # Canonicalize the pathname of ld
4857       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4858       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4859         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4860       done
4861       test -z "$LD" && LD="$ac_prog"
4862       ;;
4863   "")
4864     # If it fails, then pretend we aren't using GCC.
4865     ac_prog=ld
4866     ;;
4867   *)
4868     # If it is relative, then search for the first ld in PATH.
4869     with_gnu_ld=unknown
4870     ;;
4871   esac
4872 elif test "$with_gnu_ld" = yes; then
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4874 $as_echo_n "checking for GNU ld... " >&6; }
4875 else
4876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4877 $as_echo_n "checking for non-GNU ld... " >&6; }
4878 fi
4879 if ${lt_cv_path_LD+:} false; then :
4880   $as_echo_n "(cached) " >&6
4881 else
4882   if test -z "$LD"; then
4883   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4884   for ac_dir in $PATH; do
4885     IFS="$lt_save_ifs"
4886     test -z "$ac_dir" && ac_dir=.
4887     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4888       lt_cv_path_LD="$ac_dir/$ac_prog"
4889       # Check to see if the program is GNU ld.  I'd rather use --version,
4890       # but apparently some variants of GNU ld only accept -v.
4891       # Break only if it was the GNU/non-GNU ld that we prefer.
4892       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4893       *GNU* | *'with BFD'*)
4894         test "$with_gnu_ld" != no && break
4895         ;;
4896       *)
4897         test "$with_gnu_ld" != yes && break
4898         ;;
4899       esac
4900     fi
4901   done
4902   IFS="$lt_save_ifs"
4903 else
4904   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4905 fi
4906 fi
4907
4908 LD="$lt_cv_path_LD"
4909 if test -n "$LD"; then
4910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4911 $as_echo "$LD" >&6; }
4912 else
4913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4915 fi
4916 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4918 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4919 if ${lt_cv_prog_gnu_ld+:} false; then :
4920   $as_echo_n "(cached) " >&6
4921 else
4922   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4923 case `$LD -v 2>&1 </dev/null` in
4924 *GNU* | *'with BFD'*)
4925   lt_cv_prog_gnu_ld=yes
4926   ;;
4927 *)
4928   lt_cv_prog_gnu_ld=no
4929   ;;
4930 esac
4931 fi
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4933 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4934 with_gnu_ld=$lt_cv_prog_gnu_ld
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4945 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4946 if ${lt_cv_path_NM+:} false; then :
4947   $as_echo_n "(cached) " >&6
4948 else
4949   if test -n "$NM"; then
4950   # Let the user override the test.
4951   lt_cv_path_NM="$NM"
4952 else
4953   lt_nm_to_check="${ac_tool_prefix}nm"
4954   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4955     lt_nm_to_check="$lt_nm_to_check nm"
4956   fi
4957   for lt_tmp_nm in $lt_nm_to_check; do
4958     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4959     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4960       IFS="$lt_save_ifs"
4961       test -z "$ac_dir" && ac_dir=.
4962       tmp_nm="$ac_dir/$lt_tmp_nm"
4963       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4964         # Check to see if the nm accepts a BSD-compat flag.
4965         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4966         #   nm: unknown option "B" ignored
4967         # Tru64's nm complains that /dev/null is an invalid object file
4968         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4969         */dev/null* | *'Invalid file or object type'*)
4970           lt_cv_path_NM="$tmp_nm -B"
4971           break
4972           ;;
4973         *)
4974           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4975           */dev/null*)
4976             lt_cv_path_NM="$tmp_nm -p"
4977             break
4978             ;;
4979           *)
4980             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4981             continue # so that we can try to find one that supports BSD flags
4982             ;;
4983           esac
4984           ;;
4985         esac
4986       fi
4987     done
4988     IFS="$lt_save_ifs"
4989   done
4990   : ${lt_cv_path_NM=no}
4991 fi
4992 fi
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4994 $as_echo "$lt_cv_path_NM" >&6; }
4995 if test "$lt_cv_path_NM" != "no"; then
4996   NM="$lt_cv_path_NM"
4997 else
4998   # Didn't find any BSD compatible name lister, look for dumpbin.
4999   if test -n "$DUMPBIN"; then :
5000     # Let the user override the test.
5001   else
5002     if test -n "$ac_tool_prefix"; then
5003   for ac_prog in dumpbin "link -dump"
5004   do
5005     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if ${ac_cv_prog_DUMPBIN+:} false; then :
5010   $as_echo_n "(cached) " >&6
5011 else
5012   if test -n "$DUMPBIN"; then
5013   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018   IFS=$as_save_IFS
5019   test -z "$as_dir" && as_dir=.
5020     for ac_exec_ext in '' $ac_executable_extensions; do
5021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024     break 2
5025   fi
5026 done
5027   done
5028 IFS=$as_save_IFS
5029
5030 fi
5031 fi
5032 DUMPBIN=$ac_cv_prog_DUMPBIN
5033 if test -n "$DUMPBIN"; then
5034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5035 $as_echo "$DUMPBIN" >&6; }
5036 else
5037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5039 fi
5040
5041
5042     test -n "$DUMPBIN" && break
5043   done
5044 fi
5045 if test -z "$DUMPBIN"; then
5046   ac_ct_DUMPBIN=$DUMPBIN
5047   for ac_prog in dumpbin "link -dump"
5048 do
5049   # Extract the first word of "$ac_prog", so it can be a program name with args.
5050 set dummy $ac_prog; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5054   $as_echo_n "(cached) " >&6
5055 else
5056   if test -n "$ac_ct_DUMPBIN"; then
5057   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064     for ac_exec_ext in '' $ac_executable_extensions; do
5065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071   done
5072 IFS=$as_save_IFS
5073
5074 fi
5075 fi
5076 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5077 if test -n "$ac_ct_DUMPBIN"; then
5078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5079 $as_echo "$ac_ct_DUMPBIN" >&6; }
5080 else
5081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5083 fi
5084
5085
5086   test -n "$ac_ct_DUMPBIN" && break
5087 done
5088
5089   if test "x$ac_ct_DUMPBIN" = x; then
5090     DUMPBIN=":"
5091   else
5092     case $cross_compiling:$ac_tool_warned in
5093 yes:)
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096 ac_tool_warned=yes ;;
5097 esac
5098     DUMPBIN=$ac_ct_DUMPBIN
5099   fi
5100 fi
5101
5102     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5103     *COFF*)
5104       DUMPBIN="$DUMPBIN -symbols"
5105       ;;
5106     *)
5107       DUMPBIN=:
5108       ;;
5109     esac
5110   fi
5111
5112   if test "$DUMPBIN" != ":"; then
5113     NM="$DUMPBIN"
5114   fi
5115 fi
5116 test -z "$NM" && NM=nm
5117
5118
5119
5120
5121
5122
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5124 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5125 if ${lt_cv_nm_interface+:} false; then :
5126   $as_echo_n "(cached) " >&6
5127 else
5128   lt_cv_nm_interface="BSD nm"
5129   echo "int some_variable = 0;" > conftest.$ac_ext
5130   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5131   (eval "$ac_compile" 2>conftest.err)
5132   cat conftest.err >&5
5133   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5134   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5135   cat conftest.err >&5
5136   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5137   cat conftest.out >&5
5138   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5139     lt_cv_nm_interface="MS dumpbin"
5140   fi
5141   rm -f conftest*
5142 fi
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5144 $as_echo "$lt_cv_nm_interface" >&6; }
5145
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5147 $as_echo_n "checking whether ln -s works... " >&6; }
5148 LN_S=$as_ln_s
5149 if test "$LN_S" = "ln -s"; then
5150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5151 $as_echo "yes" >&6; }
5152 else
5153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5154 $as_echo "no, using $LN_S" >&6; }
5155 fi
5156
5157 # find the maximum length of command line arguments
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5159 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5160 if ${lt_cv_sys_max_cmd_len+:} false; then :
5161   $as_echo_n "(cached) " >&6
5162 else
5163     i=0
5164   teststring="ABCD"
5165
5166   case $build_os in
5167   msdosdjgpp*)
5168     # On DJGPP, this test can blow up pretty badly due to problems in libc
5169     # (any single argument exceeding 2000 bytes causes a buffer overrun
5170     # during glob expansion).  Even if it were fixed, the result of this
5171     # check would be larger than it should be.
5172     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5173     ;;
5174
5175   gnu*)
5176     # Under GNU Hurd, this test is not required because there is
5177     # no limit to the length of command line arguments.
5178     # Libtool will interpret -1 as no limit whatsoever
5179     lt_cv_sys_max_cmd_len=-1;
5180     ;;
5181
5182   cygwin* | mingw* | cegcc*)
5183     # On Win9x/ME, this test blows up -- it succeeds, but takes
5184     # about 5 minutes as the teststring grows exponentially.
5185     # Worse, since 9x/ME are not pre-emptively multitasking,
5186     # you end up with a "frozen" computer, even though with patience
5187     # the test eventually succeeds (with a max line length of 256k).
5188     # Instead, let's just punt: use the minimum linelength reported by
5189     # all of the supported platforms: 8192 (on NT/2K/XP).
5190     lt_cv_sys_max_cmd_len=8192;
5191     ;;
5192
5193   mint*)
5194     # On MiNT this can take a long time and run out of memory.
5195     lt_cv_sys_max_cmd_len=8192;
5196     ;;
5197
5198   amigaos*)
5199     # On AmigaOS with pdksh, this test takes hours, literally.
5200     # So we just punt and use a minimum line length of 8192.
5201     lt_cv_sys_max_cmd_len=8192;
5202     ;;
5203
5204   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5205     # This has been around since 386BSD, at least.  Likely further.
5206     if test -x /sbin/sysctl; then
5207       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5208     elif test -x /usr/sbin/sysctl; then
5209       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5210     else
5211       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5212     fi
5213     # And add a safety zone
5214     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5215     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5216     ;;
5217
5218   interix*)
5219     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5220     lt_cv_sys_max_cmd_len=196608
5221     ;;
5222
5223   os2*)
5224     # The test takes a long time on OS/2.
5225     lt_cv_sys_max_cmd_len=8192
5226     ;;
5227
5228   osf*)
5229     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5230     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5231     # nice to cause kernel panics so lets avoid the loop below.
5232     # First set a reasonable default.
5233     lt_cv_sys_max_cmd_len=16384
5234     #
5235     if test -x /sbin/sysconfig; then
5236       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5237         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5238       esac
5239     fi
5240     ;;
5241   sco3.2v5*)
5242     lt_cv_sys_max_cmd_len=102400
5243     ;;
5244   sysv5* | sco5v6* | sysv4.2uw2*)
5245     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5246     if test -n "$kargmax"; then
5247       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5248     else
5249       lt_cv_sys_max_cmd_len=32768
5250     fi
5251     ;;
5252   *)
5253     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5254     if test -n "$lt_cv_sys_max_cmd_len"; then
5255       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5256       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5257     else
5258       # Make teststring a little bigger before we do anything with it.
5259       # a 1K string should be a reasonable start.
5260       for i in 1 2 3 4 5 6 7 8 ; do
5261         teststring=$teststring$teststring
5262       done
5263       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5264       # If test is not a shell built-in, we'll probably end up computing a
5265       # maximum length that is only half of the actual maximum length, but
5266       # we can't tell.
5267       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5268                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5269               test $i != 17 # 1/2 MB should be enough
5270       do
5271         i=`expr $i + 1`
5272         teststring=$teststring$teststring
5273       done
5274       # Only check the string length outside the loop.
5275       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5276       teststring=
5277       # Add a significant safety factor because C++ compilers can tack on
5278       # massive amounts of additional arguments before passing them to the
5279       # linker.  It appears as though 1/2 is a usable value.
5280       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5281     fi
5282     ;;
5283   esac
5284
5285 fi
5286
5287 if test -n $lt_cv_sys_max_cmd_len ; then
5288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5289 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5290 else
5291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5292 $as_echo "none" >&6; }
5293 fi
5294 max_cmd_len=$lt_cv_sys_max_cmd_len
5295
5296
5297
5298
5299
5300
5301 : ${CP="cp -f"}
5302 : ${MV="mv -f"}
5303 : ${RM="rm -f"}
5304
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5306 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5307 # Try some XSI features
5308 xsi_shell=no
5309 ( _lt_dummy="a/b/c"
5310   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5311       = c,a/b,b/c, \
5312     && eval 'test $(( 1 + 1 )) -eq 2 \
5313     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5314   && xsi_shell=yes
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5316 $as_echo "$xsi_shell" >&6; }
5317
5318
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5320 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5321 lt_shell_append=no
5322 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5323     >/dev/null 2>&1 \
5324   && lt_shell_append=yes
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5326 $as_echo "$lt_shell_append" >&6; }
5327
5328
5329 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5330   lt_unset=unset
5331 else
5332   lt_unset=false
5333 fi
5334
5335
5336
5337
5338
5339 # test EBCDIC or ASCII
5340 case `echo X|tr X '\101'` in
5341  A) # ASCII based system
5342     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5343   lt_SP2NL='tr \040 \012'
5344   lt_NL2SP='tr \015\012 \040\040'
5345   ;;
5346  *) # EBCDIC based system
5347   lt_SP2NL='tr \100 \n'
5348   lt_NL2SP='tr \r\n \100\100'
5349   ;;
5350 esac
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5361 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5362 if ${lt_cv_to_host_file_cmd+:} false; then :
5363   $as_echo_n "(cached) " >&6
5364 else
5365   case $host in
5366   *-*-mingw* )
5367     case $build in
5368       *-*-mingw* ) # actually msys
5369         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5370         ;;
5371       *-*-cygwin* )
5372         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5373         ;;
5374       * ) # otherwise, assume *nix
5375         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5376         ;;
5377     esac
5378     ;;
5379   *-*-cygwin* )
5380     case $build in
5381       *-*-mingw* ) # actually msys
5382         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5383         ;;
5384       *-*-cygwin* )
5385         lt_cv_to_host_file_cmd=func_convert_file_noop
5386         ;;
5387       * ) # otherwise, assume *nix
5388         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5389         ;;
5390     esac
5391     ;;
5392   * ) # unhandled hosts (and "normal" native builds)
5393     lt_cv_to_host_file_cmd=func_convert_file_noop
5394     ;;
5395 esac
5396
5397 fi
5398
5399 to_host_file_cmd=$lt_cv_to_host_file_cmd
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5401 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5402
5403
5404
5405
5406
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5408 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5409 if ${lt_cv_to_tool_file_cmd+:} false; then :
5410   $as_echo_n "(cached) " >&6
5411 else
5412   #assume ordinary cross tools, or native build.
5413 lt_cv_to_tool_file_cmd=func_convert_file_noop
5414 case $host in
5415   *-*-mingw* )
5416     case $build in
5417       *-*-mingw* ) # actually msys
5418         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5419         ;;
5420     esac
5421     ;;
5422 esac
5423
5424 fi
5425
5426 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5428 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5429
5430
5431
5432
5433
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5435 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5436 if ${lt_cv_ld_reload_flag+:} false; then :
5437   $as_echo_n "(cached) " >&6
5438 else
5439   lt_cv_ld_reload_flag='-r'
5440 fi
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5442 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5443 reload_flag=$lt_cv_ld_reload_flag
5444 case $reload_flag in
5445 "" | " "*) ;;
5446 *) reload_flag=" $reload_flag" ;;
5447 esac
5448 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5449 case $host_os in
5450   cygwin* | mingw* | pw32* | cegcc*)
5451     if test "$GCC" != yes; then
5452       reload_cmds=false
5453     fi
5454     ;;
5455   darwin*)
5456     if test "$GCC" = yes; then
5457       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5458     else
5459       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5460     fi
5461     ;;
5462 esac
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472 if test -n "$ac_tool_prefix"; then
5473   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5474 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_prog_OBJDUMP+:} false; then :
5478   $as_echo_n "(cached) " >&6
5479 else
5480   if test -n "$OBJDUMP"; then
5481   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486   IFS=$as_save_IFS
5487   test -z "$as_dir" && as_dir=.
5488     for ac_exec_ext in '' $ac_executable_extensions; do
5489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492     break 2
5493   fi
5494 done
5495   done
5496 IFS=$as_save_IFS
5497
5498 fi
5499 fi
5500 OBJDUMP=$ac_cv_prog_OBJDUMP
5501 if test -n "$OBJDUMP"; then
5502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5503 $as_echo "$OBJDUMP" >&6; }
5504 else
5505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5507 fi
5508
5509
5510 fi
5511 if test -z "$ac_cv_prog_OBJDUMP"; then
5512   ac_ct_OBJDUMP=$OBJDUMP
5513   # Extract the first word of "objdump", so it can be a program name with args.
5514 set dummy objdump; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5518   $as_echo_n "(cached) " >&6
5519 else
5520   if test -n "$ac_ct_OBJDUMP"; then
5521   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526   IFS=$as_save_IFS
5527   test -z "$as_dir" && as_dir=.
5528     for ac_exec_ext in '' $ac_executable_extensions; do
5529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532     break 2
5533   fi
5534 done
5535   done
5536 IFS=$as_save_IFS
5537
5538 fi
5539 fi
5540 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5541 if test -n "$ac_ct_OBJDUMP"; then
5542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5543 $as_echo "$ac_ct_OBJDUMP" >&6; }
5544 else
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5547 fi
5548
5549   if test "x$ac_ct_OBJDUMP" = x; then
5550     OBJDUMP="false"
5551   else
5552     case $cross_compiling:$ac_tool_warned in
5553 yes:)
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5556 ac_tool_warned=yes ;;
5557 esac
5558     OBJDUMP=$ac_ct_OBJDUMP
5559   fi
5560 else
5561   OBJDUMP="$ac_cv_prog_OBJDUMP"
5562 fi
5563
5564 test -z "$OBJDUMP" && OBJDUMP=objdump
5565
5566
5567
5568
5569
5570
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5572 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5573 if ${lt_cv_deplibs_check_method+:} false; then :
5574   $as_echo_n "(cached) " >&6
5575 else
5576   lt_cv_file_magic_cmd='$MAGIC_CMD'
5577 lt_cv_file_magic_test_file=
5578 lt_cv_deplibs_check_method='unknown'
5579 # Need to set the preceding variable on all platforms that support
5580 # interlibrary dependencies.
5581 # 'none' -- dependencies not supported.
5582 # `unknown' -- same as none, but documents that we really don't know.
5583 # 'pass_all' -- all dependencies passed with no checks.
5584 # 'test_compile' -- check by making test program.
5585 # 'file_magic [[regex]]' -- check by looking for files in library path
5586 # which responds to the $file_magic_cmd with a given extended regex.
5587 # If you have `file' or equivalent on your system and you're not sure
5588 # whether `pass_all' will *always* work, you probably want this one.
5589
5590 case $host_os in
5591 aix[4-9]*)
5592   lt_cv_deplibs_check_method=pass_all
5593   ;;
5594
5595 beos*)
5596   lt_cv_deplibs_check_method=pass_all
5597   ;;
5598
5599 bsdi[45]*)
5600   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5601   lt_cv_file_magic_cmd='/usr/bin/file -L'
5602   lt_cv_file_magic_test_file=/shlib/libc.so
5603   ;;
5604
5605 cygwin*)
5606   # func_win32_libid is a shell function defined in ltmain.sh
5607   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5608   lt_cv_file_magic_cmd='func_win32_libid'
5609   ;;
5610
5611 mingw* | pw32*)
5612   # Base MSYS/MinGW do not provide the 'file' command needed by
5613   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5614   # unless we find 'file', for example because we are cross-compiling.
5615   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5616   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5617     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5618     lt_cv_file_magic_cmd='func_win32_libid'
5619   else
5620     # Keep this pattern in sync with the one in func_win32_libid.
5621     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5622     lt_cv_file_magic_cmd='$OBJDUMP -f'
5623   fi
5624   ;;
5625
5626 cegcc*)
5627   # use the weaker test based on 'objdump'. See mingw*.
5628   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5629   lt_cv_file_magic_cmd='$OBJDUMP -f'
5630   ;;
5631
5632 darwin* | rhapsody*)
5633   lt_cv_deplibs_check_method=pass_all
5634   ;;
5635
5636 freebsd* | dragonfly*)
5637   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5638     case $host_cpu in
5639     i*86 )
5640       # Not sure whether the presence of OpenBSD here was a mistake.
5641       # Let's accept both of them until this is cleared up.
5642       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5643       lt_cv_file_magic_cmd=/usr/bin/file
5644       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5645       ;;
5646     esac
5647   else
5648     lt_cv_deplibs_check_method=pass_all
5649   fi
5650   ;;
5651
5652 haiku*)
5653   lt_cv_deplibs_check_method=pass_all
5654   ;;
5655
5656 hpux10.20* | hpux11*)
5657   lt_cv_file_magic_cmd=/usr/bin/file
5658   case $host_cpu in
5659   ia64*)
5660     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5661     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5662     ;;
5663   hppa*64*)
5664     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]'
5665     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5666     ;;
5667   *)
5668     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5669     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5670     ;;
5671   esac
5672   ;;
5673
5674 interix[3-9]*)
5675   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5676   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5677   ;;
5678
5679 irix5* | irix6* | nonstopux*)
5680   case $LD in
5681   *-32|*"-32 ") libmagic=32-bit;;
5682   *-n32|*"-n32 ") libmagic=N32;;
5683   *-64|*"-64 ") libmagic=64-bit;;
5684   *) libmagic=never-match;;
5685   esac
5686   lt_cv_deplibs_check_method=pass_all
5687   ;;
5688
5689 # This must be glibc/ELF.
5690 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5691   lt_cv_deplibs_check_method=pass_all
5692   ;;
5693
5694 netbsd* | netbsdelf*-gnu)
5695   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5696     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5697   else
5698     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5699   fi
5700   ;;
5701
5702 newos6*)
5703   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5704   lt_cv_file_magic_cmd=/usr/bin/file
5705   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5706   ;;
5707
5708 *nto* | *qnx*)
5709   lt_cv_deplibs_check_method=pass_all
5710   ;;
5711
5712 openbsd*)
5713   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5714     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5715   else
5716     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5717   fi
5718   ;;
5719
5720 osf3* | osf4* | osf5*)
5721   lt_cv_deplibs_check_method=pass_all
5722   ;;
5723
5724 rdos*)
5725   lt_cv_deplibs_check_method=pass_all
5726   ;;
5727
5728 solaris*)
5729   lt_cv_deplibs_check_method=pass_all
5730   ;;
5731
5732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5733   lt_cv_deplibs_check_method=pass_all
5734   ;;
5735
5736 sysv4 | sysv4.3*)
5737   case $host_vendor in
5738   motorola)
5739     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]'
5740     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5741     ;;
5742   ncr)
5743     lt_cv_deplibs_check_method=pass_all
5744     ;;
5745   sequent)
5746     lt_cv_file_magic_cmd='/bin/file'
5747     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5748     ;;
5749   sni)
5750     lt_cv_file_magic_cmd='/bin/file'
5751     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5752     lt_cv_file_magic_test_file=/lib/libc.so
5753     ;;
5754   siemens)
5755     lt_cv_deplibs_check_method=pass_all
5756     ;;
5757   pc)
5758     lt_cv_deplibs_check_method=pass_all
5759     ;;
5760   esac
5761   ;;
5762
5763 tpf*)
5764   lt_cv_deplibs_check_method=pass_all
5765   ;;
5766 esac
5767
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5770 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5771
5772 file_magic_glob=
5773 want_nocaseglob=no
5774 if test "$build" = "$host"; then
5775   case $host_os in
5776   mingw* | pw32*)
5777     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5778       want_nocaseglob=yes
5779     else
5780       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5781     fi
5782     ;;
5783   esac
5784 fi
5785
5786 file_magic_cmd=$lt_cv_file_magic_cmd
5787 deplibs_check_method=$lt_cv_deplibs_check_method
5788 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811 if test -n "$ac_tool_prefix"; then
5812   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5813 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if ${ac_cv_prog_DLLTOOL+:} false; then :
5817   $as_echo_n "(cached) " >&6
5818 else
5819   if test -n "$DLLTOOL"; then
5820   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5824 do
5825   IFS=$as_save_IFS
5826   test -z "$as_dir" && as_dir=.
5827     for ac_exec_ext in '' $ac_executable_extensions; do
5828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831     break 2
5832   fi
5833 done
5834   done
5835 IFS=$as_save_IFS
5836
5837 fi
5838 fi
5839 DLLTOOL=$ac_cv_prog_DLLTOOL
5840 if test -n "$DLLTOOL"; then
5841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5842 $as_echo "$DLLTOOL" >&6; }
5843 else
5844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5846 fi
5847
5848
5849 fi
5850 if test -z "$ac_cv_prog_DLLTOOL"; then
5851   ac_ct_DLLTOOL=$DLLTOOL
5852   # Extract the first word of "dlltool", so it can be a program name with args.
5853 set dummy dlltool; ac_word=$2
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855 $as_echo_n "checking for $ac_word... " >&6; }
5856 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5857   $as_echo_n "(cached) " >&6
5858 else
5859   if test -n "$ac_ct_DLLTOOL"; then
5860   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5861 else
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5864 do
5865   IFS=$as_save_IFS
5866   test -z "$as_dir" && as_dir=.
5867     for ac_exec_ext in '' $ac_executable_extensions; do
5868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871     break 2
5872   fi
5873 done
5874   done
5875 IFS=$as_save_IFS
5876
5877 fi
5878 fi
5879 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5880 if test -n "$ac_ct_DLLTOOL"; then
5881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5882 $as_echo "$ac_ct_DLLTOOL" >&6; }
5883 else
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5886 fi
5887
5888   if test "x$ac_ct_DLLTOOL" = x; then
5889     DLLTOOL="false"
5890   else
5891     case $cross_compiling:$ac_tool_warned in
5892 yes:)
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5895 ac_tool_warned=yes ;;
5896 esac
5897     DLLTOOL=$ac_ct_DLLTOOL
5898   fi
5899 else
5900   DLLTOOL="$ac_cv_prog_DLLTOOL"
5901 fi
5902
5903 test -z "$DLLTOOL" && DLLTOOL=dlltool
5904
5905
5906
5907
5908
5909
5910
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5912 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5913 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5914   $as_echo_n "(cached) " >&6
5915 else
5916   lt_cv_sharedlib_from_linklib_cmd='unknown'
5917
5918 case $host_os in
5919 cygwin* | mingw* | pw32* | cegcc*)
5920   # two different shell functions defined in ltmain.sh
5921   # decide which to use based on capabilities of $DLLTOOL
5922   case `$DLLTOOL --help 2>&1` in
5923   *--identify-strict*)
5924     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5925     ;;
5926   *)
5927     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5928     ;;
5929   esac
5930   ;;
5931 *)
5932   # fallback: assume linklib IS sharedlib
5933   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5934   ;;
5935 esac
5936
5937 fi
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5939 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5940 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5941 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5942
5943
5944
5945
5946
5947
5948
5949 if test -n "$ac_tool_prefix"; then
5950   for ac_prog in ar
5951   do
5952     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5953 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955 $as_echo_n "checking for $ac_word... " >&6; }
5956 if ${ac_cv_prog_AR+:} false; then :
5957   $as_echo_n "(cached) " >&6
5958 else
5959   if test -n "$AR"; then
5960   ac_cv_prog_AR="$AR" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5964 do
5965   IFS=$as_save_IFS
5966   test -z "$as_dir" && as_dir=.
5967     for ac_exec_ext in '' $ac_executable_extensions; do
5968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5971     break 2
5972   fi
5973 done
5974   done
5975 IFS=$as_save_IFS
5976
5977 fi
5978 fi
5979 AR=$ac_cv_prog_AR
5980 if test -n "$AR"; then
5981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5982 $as_echo "$AR" >&6; }
5983 else
5984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985 $as_echo "no" >&6; }
5986 fi
5987
5988
5989     test -n "$AR" && break
5990   done
5991 fi
5992 if test -z "$AR"; then
5993   ac_ct_AR=$AR
5994   for ac_prog in ar
5995 do
5996   # Extract the first word of "$ac_prog", so it can be a program name with args.
5997 set dummy $ac_prog; ac_word=$2
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6001   $as_echo_n "(cached) " >&6
6002 else
6003   if test -n "$ac_ct_AR"; then
6004   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009   IFS=$as_save_IFS
6010   test -z "$as_dir" && as_dir=.
6011     for ac_exec_ext in '' $ac_executable_extensions; do
6012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6013     ac_cv_prog_ac_ct_AR="$ac_prog"
6014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015     break 2
6016   fi
6017 done
6018   done
6019 IFS=$as_save_IFS
6020
6021 fi
6022 fi
6023 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6024 if test -n "$ac_ct_AR"; then
6025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6026 $as_echo "$ac_ct_AR" >&6; }
6027 else
6028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031
6032
6033   test -n "$ac_ct_AR" && break
6034 done
6035
6036   if test "x$ac_ct_AR" = x; then
6037     AR="false"
6038   else
6039     case $cross_compiling:$ac_tool_warned in
6040 yes:)
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043 ac_tool_warned=yes ;;
6044 esac
6045     AR=$ac_ct_AR
6046   fi
6047 fi
6048
6049 : ${AR=ar}
6050 : ${AR_FLAGS=cru}
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6063 $as_echo_n "checking for archiver @FILE support... " >&6; }
6064 if ${lt_cv_ar_at_file+:} false; then :
6065   $as_echo_n "(cached) " >&6
6066 else
6067   lt_cv_ar_at_file=no
6068    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h.  */
6070
6071 int
6072 main ()
6073 {
6074
6075   ;
6076   return 0;
6077 }
6078 _ACEOF
6079 if ac_fn_c_try_compile "$LINENO"; then :
6080   echo conftest.$ac_objext > conftest.lst
6081       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6082       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6083   (eval $lt_ar_try) 2>&5
6084   ac_status=$?
6085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6086   test $ac_status = 0; }
6087       if test "$ac_status" -eq 0; then
6088         # Ensure the archiver fails upon bogus file names.
6089         rm -f conftest.$ac_objext libconftest.a
6090         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6091   (eval $lt_ar_try) 2>&5
6092   ac_status=$?
6093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6094   test $ac_status = 0; }
6095         if test "$ac_status" -ne 0; then
6096           lt_cv_ar_at_file=@
6097         fi
6098       fi
6099       rm -f conftest.* libconftest.a
6100
6101 fi
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103
6104 fi
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6106 $as_echo "$lt_cv_ar_at_file" >&6; }
6107
6108 if test "x$lt_cv_ar_at_file" = xno; then
6109   archiver_list_spec=
6110 else
6111   archiver_list_spec=$lt_cv_ar_at_file
6112 fi
6113
6114
6115
6116
6117
6118
6119
6120 if test -n "$ac_tool_prefix"; then
6121   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6122 set dummy ${ac_tool_prefix}strip; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if ${ac_cv_prog_STRIP+:} false; then :
6126   $as_echo_n "(cached) " >&6
6127 else
6128   if test -n "$STRIP"; then
6129   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6130 else
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134   IFS=$as_save_IFS
6135   test -z "$as_dir" && as_dir=.
6136     for ac_exec_ext in '' $ac_executable_extensions; do
6137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140     break 2
6141   fi
6142 done
6143   done
6144 IFS=$as_save_IFS
6145
6146 fi
6147 fi
6148 STRIP=$ac_cv_prog_STRIP
6149 if test -n "$STRIP"; then
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6151 $as_echo "$STRIP" >&6; }
6152 else
6153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6155 fi
6156
6157
6158 fi
6159 if test -z "$ac_cv_prog_STRIP"; then
6160   ac_ct_STRIP=$STRIP
6161   # Extract the first word of "strip", so it can be a program name with args.
6162 set dummy strip; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6166   $as_echo_n "(cached) " >&6
6167 else
6168   if test -n "$ac_ct_STRIP"; then
6169   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6173 do
6174   IFS=$as_save_IFS
6175   test -z "$as_dir" && as_dir=.
6176     for ac_exec_ext in '' $ac_executable_extensions; do
6177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6178     ac_cv_prog_ac_ct_STRIP="strip"
6179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180     break 2
6181   fi
6182 done
6183   done
6184 IFS=$as_save_IFS
6185
6186 fi
6187 fi
6188 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6189 if test -n "$ac_ct_STRIP"; then
6190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6191 $as_echo "$ac_ct_STRIP" >&6; }
6192 else
6193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6195 fi
6196
6197   if test "x$ac_ct_STRIP" = x; then
6198     STRIP=":"
6199   else
6200     case $cross_compiling:$ac_tool_warned in
6201 yes:)
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6204 ac_tool_warned=yes ;;
6205 esac
6206     STRIP=$ac_ct_STRIP
6207   fi
6208 else
6209   STRIP="$ac_cv_prog_STRIP"
6210 fi
6211
6212 test -z "$STRIP" && STRIP=:
6213
6214
6215
6216
6217
6218
6219 if test -n "$ac_tool_prefix"; then
6220   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6221 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223 $as_echo_n "checking for $ac_word... " >&6; }
6224 if ${ac_cv_prog_RANLIB+:} false; then :
6225   $as_echo_n "(cached) " >&6
6226 else
6227   if test -n "$RANLIB"; then
6228   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6229 else
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233   IFS=$as_save_IFS
6234   test -z "$as_dir" && as_dir=.
6235     for ac_exec_ext in '' $ac_executable_extensions; do
6236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6237     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6239     break 2
6240   fi
6241 done
6242   done
6243 IFS=$as_save_IFS
6244
6245 fi
6246 fi
6247 RANLIB=$ac_cv_prog_RANLIB
6248 if test -n "$RANLIB"; then
6249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6250 $as_echo "$RANLIB" >&6; }
6251 else
6252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253 $as_echo "no" >&6; }
6254 fi
6255
6256
6257 fi
6258 if test -z "$ac_cv_prog_RANLIB"; then
6259   ac_ct_RANLIB=$RANLIB
6260   # Extract the first word of "ranlib", so it can be a program name with args.
6261 set dummy ranlib; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6265   $as_echo_n "(cached) " >&6
6266 else
6267   if test -n "$ac_ct_RANLIB"; then
6268   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273   IFS=$as_save_IFS
6274   test -z "$as_dir" && as_dir=.
6275     for ac_exec_ext in '' $ac_executable_extensions; do
6276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277     ac_cv_prog_ac_ct_RANLIB="ranlib"
6278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279     break 2
6280   fi
6281 done
6282   done
6283 IFS=$as_save_IFS
6284
6285 fi
6286 fi
6287 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6288 if test -n "$ac_ct_RANLIB"; then
6289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6290 $as_echo "$ac_ct_RANLIB" >&6; }
6291 else
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6294 fi
6295
6296   if test "x$ac_ct_RANLIB" = x; then
6297     RANLIB=":"
6298   else
6299     case $cross_compiling:$ac_tool_warned in
6300 yes:)
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6303 ac_tool_warned=yes ;;
6304 esac
6305     RANLIB=$ac_ct_RANLIB
6306   fi
6307 else
6308   RANLIB="$ac_cv_prog_RANLIB"
6309 fi
6310
6311 test -z "$RANLIB" && RANLIB=:
6312
6313
6314
6315
6316
6317
6318 # Determine commands to create old-style static archives.
6319 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6320 old_postinstall_cmds='chmod 644 $oldlib'
6321 old_postuninstall_cmds=
6322
6323 if test -n "$RANLIB"; then
6324   case $host_os in
6325   openbsd*)
6326     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6327     ;;
6328   *)
6329     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6330     ;;
6331   esac
6332   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6333 fi
6334
6335 case $host_os in
6336   darwin*)
6337     lock_old_archive_extraction=yes ;;
6338   *)
6339     lock_old_archive_extraction=no ;;
6340 esac
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380 # If no C compiler was specified, use CC.
6381 LTCC=${LTCC-"$CC"}
6382
6383 # If no C compiler flags were specified, use CFLAGS.
6384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6385
6386 # Allow CC to be a program name with arguments.
6387 compiler=$CC
6388
6389
6390 # Check for command to grab the raw symbol name followed by C symbol from nm.
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6392 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6393 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6394   $as_echo_n "(cached) " >&6
6395 else
6396
6397 # These are sane defaults that work on at least a few old systems.
6398 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6399
6400 # Character class describing NM global symbol codes.
6401 symcode='[BCDEGRST]'
6402
6403 # Regexp to match symbols that can be accessed directly from C.
6404 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6405
6406 # Define system-specific variables.
6407 case $host_os in
6408 aix*)
6409   symcode='[BCDT]'
6410   ;;
6411 cygwin* | mingw* | pw32* | cegcc*)
6412   symcode='[ABCDGISTW]'
6413   ;;
6414 hpux*)
6415   if test "$host_cpu" = ia64; then
6416     symcode='[ABCDEGRST]'
6417   fi
6418   ;;
6419 irix* | nonstopux*)
6420   symcode='[BCDEGRST]'
6421   ;;
6422 osf*)
6423   symcode='[BCDEGQRST]'
6424   ;;
6425 solaris*)
6426   symcode='[BDRT]'
6427   ;;
6428 sco3.2v5*)
6429   symcode='[DT]'
6430   ;;
6431 sysv4.2uw2*)
6432   symcode='[DT]'
6433   ;;
6434 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6435   symcode='[ABDT]'
6436   ;;
6437 sysv4)
6438   symcode='[DFNSTU]'
6439   ;;
6440 esac
6441
6442 # If we're using GNU nm, then use its standard symbol codes.
6443 case `$NM -V 2>&1` in
6444 *GNU* | *'with BFD'*)
6445   symcode='[ABCDGIRSTW]' ;;
6446 esac
6447
6448 # Transform an extracted symbol line into a proper C declaration.
6449 # Some systems (esp. on ia64) link data and code symbols differently,
6450 # so use this general approach.
6451 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6452
6453 # Transform an extracted symbol line into symbol name and symbol address
6454 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6455 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'"
6456
6457 # Handle CRLF in mingw tool chain
6458 opt_cr=
6459 case $build_os in
6460 mingw*)
6461   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6462   ;;
6463 esac
6464
6465 # Try without a prefix underscore, then with it.
6466 for ac_symprfx in "" "_"; do
6467
6468   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6469   symxfrm="\\1 $ac_symprfx\\2 \\2"
6470
6471   # Write the raw and C identifiers.
6472   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6473     # Fake it for dumpbin and say T for any non-static function
6474     # and D for any global variable.
6475     # Also find C++ and __fastcall symbols from MSVC++,
6476     # which start with @ or ?.
6477     lt_cv_sys_global_symbol_pipe="$AWK '"\
6478 "     {last_section=section; section=\$ 3};"\
6479 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6480 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6481 "     \$ 0!~/External *\|/{next};"\
6482 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6483 "     {if(hide[section]) next};"\
6484 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6485 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6486 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6487 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6488 "     ' prfx=^$ac_symprfx"
6489   else
6490     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6491   fi
6492   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6493
6494   # Check to see that the pipe works correctly.
6495   pipe_works=no
6496
6497   rm -f conftest*
6498   cat > conftest.$ac_ext <<_LT_EOF
6499 #ifdef __cplusplus
6500 extern "C" {
6501 #endif
6502 char nm_test_var;
6503 void nm_test_func(void);
6504 void nm_test_func(void){}
6505 #ifdef __cplusplus
6506 }
6507 #endif
6508 int main(){nm_test_var='a';nm_test_func();return(0);}
6509 _LT_EOF
6510
6511   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6512   (eval $ac_compile) 2>&5
6513   ac_status=$?
6514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6515   test $ac_status = 0; }; then
6516     # Now try to grab the symbols.
6517     nlist=conftest.nm
6518     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6519   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6520   ac_status=$?
6521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6522   test $ac_status = 0; } && test -s "$nlist"; then
6523       # Try sorting and uniquifying the output.
6524       if sort "$nlist" | uniq > "$nlist"T; then
6525         mv -f "$nlist"T "$nlist"
6526       else
6527         rm -f "$nlist"T
6528       fi
6529
6530       # Make sure that we snagged all the symbols we need.
6531       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6532         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6533           cat <<_LT_EOF > conftest.$ac_ext
6534 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6535 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6536 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6537    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6538 # define LT_DLSYM_CONST
6539 #elif defined(__osf__)
6540 /* This system does not cope well with relocations in const data.  */
6541 # define LT_DLSYM_CONST
6542 #else
6543 # define LT_DLSYM_CONST const
6544 #endif
6545
6546 #ifdef __cplusplus
6547 extern "C" {
6548 #endif
6549
6550 _LT_EOF
6551           # Now generate the symbol file.
6552           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6553
6554           cat <<_LT_EOF >> conftest.$ac_ext
6555
6556 /* The mapping between symbol names and symbols.  */
6557 LT_DLSYM_CONST struct {
6558   const char *name;
6559   void       *address;
6560 }
6561 lt__PROGRAM__LTX_preloaded_symbols[] =
6562 {
6563   { "@PROGRAM@", (void *) 0 },
6564 _LT_EOF
6565           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6566           cat <<\_LT_EOF >> conftest.$ac_ext
6567   {0, (void *) 0}
6568 };
6569
6570 /* This works around a problem in FreeBSD linker */
6571 #ifdef FREEBSD_WORKAROUND
6572 static const void *lt_preloaded_setup() {
6573   return lt__PROGRAM__LTX_preloaded_symbols;
6574 }
6575 #endif
6576
6577 #ifdef __cplusplus
6578 }
6579 #endif
6580 _LT_EOF
6581           # Now try linking the two files.
6582           mv conftest.$ac_objext conftstm.$ac_objext
6583           lt_globsym_save_LIBS=$LIBS
6584           lt_globsym_save_CFLAGS=$CFLAGS
6585           LIBS="conftstm.$ac_objext"
6586           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6587           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6588   (eval $ac_link) 2>&5
6589   ac_status=$?
6590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6592             pipe_works=yes
6593           fi
6594           LIBS=$lt_globsym_save_LIBS
6595           CFLAGS=$lt_globsym_save_CFLAGS
6596         else
6597           echo "cannot find nm_test_func in $nlist" >&5
6598         fi
6599       else
6600         echo "cannot find nm_test_var in $nlist" >&5
6601       fi
6602     else
6603       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6604     fi
6605   else
6606     echo "$progname: failed program was:" >&5
6607     cat conftest.$ac_ext >&5
6608   fi
6609   rm -rf conftest* conftst*
6610
6611   # Do not use the global_symbol_pipe unless it works.
6612   if test "$pipe_works" = yes; then
6613     break
6614   else
6615     lt_cv_sys_global_symbol_pipe=
6616   fi
6617 done
6618
6619 fi
6620
6621 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6622   lt_cv_sys_global_symbol_to_cdecl=
6623 fi
6624 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6626 $as_echo "failed" >&6; }
6627 else
6628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6629 $as_echo "ok" >&6; }
6630 fi
6631
6632 # Response file support.
6633 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6634   nm_file_list_spec='@'
6635 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6636   nm_file_list_spec='@'
6637 fi
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6666 $as_echo_n "checking for sysroot... " >&6; }
6667
6668 # Check whether --with-sysroot was given.
6669 if test "${with_sysroot+set}" = set; then :
6670   withval=$with_sysroot;
6671 else
6672   with_sysroot=no
6673 fi
6674
6675
6676 lt_sysroot=
6677 case ${with_sysroot} in #(
6678  yes)
6679    if test "$GCC" = yes; then
6680      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6681    fi
6682    ;; #(
6683  /*)
6684    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6685    ;; #(
6686  no|'')
6687    ;; #(
6688  *)
6689    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6690 $as_echo "${with_sysroot}" >&6; }
6691    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6692    ;;
6693 esac
6694
6695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6696 $as_echo "${lt_sysroot:-no}" >&6; }
6697
6698
6699
6700
6701
6702 # Check whether --enable-libtool-lock was given.
6703 if test "${enable_libtool_lock+set}" = set; then :
6704   enableval=$enable_libtool_lock;
6705 fi
6706
6707 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6708
6709 # Some flags need to be propagated to the compiler or linker for good
6710 # libtool support.
6711 case $host in
6712 ia64-*-hpux*)
6713   # Find out which ABI we are using.
6714   echo 'int i;' > conftest.$ac_ext
6715   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6716   (eval $ac_compile) 2>&5
6717   ac_status=$?
6718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6719   test $ac_status = 0; }; then
6720     case `/usr/bin/file conftest.$ac_objext` in
6721       *ELF-32*)
6722         HPUX_IA64_MODE="32"
6723         ;;
6724       *ELF-64*)
6725         HPUX_IA64_MODE="64"
6726         ;;
6727     esac
6728   fi
6729   rm -rf conftest*
6730   ;;
6731 *-*-irix6*)
6732   # Find out which ABI we are using.
6733   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6734   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6735   (eval $ac_compile) 2>&5
6736   ac_status=$?
6737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6738   test $ac_status = 0; }; then
6739     if test "$lt_cv_prog_gnu_ld" = yes; then
6740       case `/usr/bin/file conftest.$ac_objext` in
6741         *32-bit*)
6742           LD="${LD-ld} -melf32bsmip"
6743           ;;
6744         *N32*)
6745           LD="${LD-ld} -melf32bmipn32"
6746           ;;
6747         *64-bit*)
6748           LD="${LD-ld} -melf64bmip"
6749         ;;
6750       esac
6751     else
6752       case `/usr/bin/file conftest.$ac_objext` in
6753         *32-bit*)
6754           LD="${LD-ld} -32"
6755           ;;
6756         *N32*)
6757           LD="${LD-ld} -n32"
6758           ;;
6759         *64-bit*)
6760           LD="${LD-ld} -64"
6761           ;;
6762       esac
6763     fi
6764   fi
6765   rm -rf conftest*
6766   ;;
6767
6768 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6769 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6770   # Find out which ABI we are using.
6771   echo 'int i;' > conftest.$ac_ext
6772   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6773   (eval $ac_compile) 2>&5
6774   ac_status=$?
6775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776   test $ac_status = 0; }; then
6777     case `/usr/bin/file conftest.o` in
6778       *32-bit*)
6779         case $host in
6780           x86_64-*kfreebsd*-gnu)
6781             LD="${LD-ld} -m elf_i386_fbsd"
6782             ;;
6783           x86_64-*linux*)
6784             LD="${LD-ld} -m elf_i386"
6785             ;;
6786           ppc64-*linux*|powerpc64-*linux*)
6787             LD="${LD-ld} -m elf32ppclinux"
6788             ;;
6789           s390x-*linux*)
6790             LD="${LD-ld} -m elf_s390"
6791             ;;
6792           sparc64-*linux*)
6793             LD="${LD-ld} -m elf32_sparc"
6794             ;;
6795         esac
6796         ;;
6797       *64-bit*)
6798         case $host in
6799           x86_64-*kfreebsd*-gnu)
6800             LD="${LD-ld} -m elf_x86_64_fbsd"
6801             ;;
6802           x86_64-*linux*)
6803             LD="${LD-ld} -m elf_x86_64"
6804             ;;
6805           ppc*-*linux*|powerpc*-*linux*)
6806             LD="${LD-ld} -m elf64ppc"
6807             ;;
6808           s390*-*linux*|s390*-*tpf*)
6809             LD="${LD-ld} -m elf64_s390"
6810             ;;
6811           sparc*-*linux*)
6812             LD="${LD-ld} -m elf64_sparc"
6813             ;;
6814         esac
6815         ;;
6816     esac
6817   fi
6818   rm -rf conftest*
6819   ;;
6820
6821 *-*-sco3.2v5*)
6822   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6823   SAVE_CFLAGS="$CFLAGS"
6824   CFLAGS="$CFLAGS -belf"
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6826 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6827 if ${lt_cv_cc_needs_belf+:} false; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830   ac_ext=c
6831 ac_cpp='$CPP $CPPFLAGS'
6832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6835
6836      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h.  */
6838
6839 int
6840 main ()
6841 {
6842
6843   ;
6844   return 0;
6845 }
6846 _ACEOF
6847 if ac_fn_c_try_link "$LINENO"; then :
6848   lt_cv_cc_needs_belf=yes
6849 else
6850   lt_cv_cc_needs_belf=no
6851 fi
6852 rm -f core conftest.err conftest.$ac_objext \
6853     conftest$ac_exeext conftest.$ac_ext
6854      ac_ext=c
6855 ac_cpp='$CPP $CPPFLAGS'
6856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6859
6860 fi
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6862 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6863   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6864     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6865     CFLAGS="$SAVE_CFLAGS"
6866   fi
6867   ;;
6868 *-*solaris*)
6869   # Find out which ABI we are using.
6870   echo 'int i;' > conftest.$ac_ext
6871   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872   (eval $ac_compile) 2>&5
6873   ac_status=$?
6874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875   test $ac_status = 0; }; then
6876     case `/usr/bin/file conftest.o` in
6877     *64-bit*)
6878       case $lt_cv_prog_gnu_ld in
6879       yes*)
6880         case $host in
6881         i?86-*-solaris*)
6882           LD="${LD-ld} -m elf_x86_64"
6883           ;;
6884         sparc*-*-solaris*)
6885           LD="${LD-ld} -m elf64_sparc"
6886           ;;
6887         esac
6888         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6889         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6890           LD="${LD-ld}_sol2"
6891         fi
6892         ;;
6893       *)
6894         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6895           LD="${LD-ld} -64"
6896         fi
6897         ;;
6898       esac
6899       ;;
6900     esac
6901   fi
6902   rm -rf conftest*
6903   ;;
6904 esac
6905
6906 need_locks="$enable_libtool_lock"
6907
6908 if test -n "$ac_tool_prefix"; then
6909   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6910 set dummy ${ac_tool_prefix}mt; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6914   $as_echo_n "(cached) " >&6
6915 else
6916   if test -n "$MANIFEST_TOOL"; then
6917   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922   IFS=$as_save_IFS
6923   test -z "$as_dir" && as_dir=.
6924     for ac_exec_ext in '' $ac_executable_extensions; do
6925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928     break 2
6929   fi
6930 done
6931   done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6937 if test -n "$MANIFEST_TOOL"; then
6938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6939 $as_echo "$MANIFEST_TOOL" >&6; }
6940 else
6941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945
6946 fi
6947 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6948   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6949   # Extract the first word of "mt", so it can be a program name with args.
6950 set dummy mt; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6954   $as_echo_n "(cached) " >&6
6955 else
6956   if test -n "$ac_ct_MANIFEST_TOOL"; then
6957   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962   IFS=$as_save_IFS
6963   test -z "$as_dir" && as_dir=.
6964     for ac_exec_ext in '' $ac_executable_extensions; do
6965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968     break 2
6969   fi
6970 done
6971   done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6977 if test -n "$ac_ct_MANIFEST_TOOL"; then
6978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6979 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6980 else
6981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984
6985   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6986     MANIFEST_TOOL=":"
6987   else
6988     case $cross_compiling:$ac_tool_warned in
6989 yes:)
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6992 ac_tool_warned=yes ;;
6993 esac
6994     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6995   fi
6996 else
6997   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6998 fi
6999
7000 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7002 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7003 if ${lt_cv_path_mainfest_tool+:} false; then :
7004   $as_echo_n "(cached) " >&6
7005 else
7006   lt_cv_path_mainfest_tool=no
7007   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7008   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7009   cat conftest.err >&5
7010   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7011     lt_cv_path_mainfest_tool=yes
7012   fi
7013   rm -f conftest*
7014 fi
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7016 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7017 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7018   MANIFEST_TOOL=:
7019 fi
7020
7021
7022
7023
7024
7025
7026   case $host_os in
7027     rhapsody* | darwin*)
7028     if test -n "$ac_tool_prefix"; then
7029   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7030 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7034   $as_echo_n "(cached) " >&6
7035 else
7036   if test -n "$DSYMUTIL"; then
7037   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042   IFS=$as_save_IFS
7043   test -z "$as_dir" && as_dir=.
7044     for ac_exec_ext in '' $ac_executable_extensions; do
7045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7046     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048     break 2
7049   fi
7050 done
7051   done
7052 IFS=$as_save_IFS
7053
7054 fi
7055 fi
7056 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7057 if test -n "$DSYMUTIL"; then
7058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7059 $as_echo "$DSYMUTIL" >&6; }
7060 else
7061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7063 fi
7064
7065
7066 fi
7067 if test -z "$ac_cv_prog_DSYMUTIL"; then
7068   ac_ct_DSYMUTIL=$DSYMUTIL
7069   # Extract the first word of "dsymutil", so it can be a program name with args.
7070 set dummy dsymutil; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7074   $as_echo_n "(cached) " >&6
7075 else
7076   if test -n "$ac_ct_DSYMUTIL"; then
7077   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7081 do
7082   IFS=$as_save_IFS
7083   test -z "$as_dir" && as_dir=.
7084     for ac_exec_ext in '' $ac_executable_extensions; do
7085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088     break 2
7089   fi
7090 done
7091   done
7092 IFS=$as_save_IFS
7093
7094 fi
7095 fi
7096 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7097 if test -n "$ac_ct_DSYMUTIL"; then
7098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7099 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7100 else
7101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7103 fi
7104
7105   if test "x$ac_ct_DSYMUTIL" = x; then
7106     DSYMUTIL=":"
7107   else
7108     case $cross_compiling:$ac_tool_warned in
7109 yes:)
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7112 ac_tool_warned=yes ;;
7113 esac
7114     DSYMUTIL=$ac_ct_DSYMUTIL
7115   fi
7116 else
7117   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7118 fi
7119
7120     if test -n "$ac_tool_prefix"; then
7121   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7122 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if ${ac_cv_prog_NMEDIT+:} false; then :
7126   $as_echo_n "(cached) " >&6
7127 else
7128   if test -n "$NMEDIT"; then
7129   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134   IFS=$as_save_IFS
7135   test -z "$as_dir" && as_dir=.
7136     for ac_exec_ext in '' $ac_executable_extensions; do
7137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140     break 2
7141   fi
7142 done
7143   done
7144 IFS=$as_save_IFS
7145
7146 fi
7147 fi
7148 NMEDIT=$ac_cv_prog_NMEDIT
7149 if test -n "$NMEDIT"; then
7150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7151 $as_echo "$NMEDIT" >&6; }
7152 else
7153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7155 fi
7156
7157
7158 fi
7159 if test -z "$ac_cv_prog_NMEDIT"; then
7160   ac_ct_NMEDIT=$NMEDIT
7161   # Extract the first word of "nmedit", so it can be a program name with args.
7162 set dummy nmedit; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7166   $as_echo_n "(cached) " >&6
7167 else
7168   if test -n "$ac_ct_NMEDIT"; then
7169   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174   IFS=$as_save_IFS
7175   test -z "$as_dir" && as_dir=.
7176     for ac_exec_ext in '' $ac_executable_extensions; do
7177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180     break 2
7181   fi
7182 done
7183   done
7184 IFS=$as_save_IFS
7185
7186 fi
7187 fi
7188 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7189 if test -n "$ac_ct_NMEDIT"; then
7190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7191 $as_echo "$ac_ct_NMEDIT" >&6; }
7192 else
7193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7195 fi
7196
7197   if test "x$ac_ct_NMEDIT" = x; then
7198     NMEDIT=":"
7199   else
7200     case $cross_compiling:$ac_tool_warned in
7201 yes:)
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7204 ac_tool_warned=yes ;;
7205 esac
7206     NMEDIT=$ac_ct_NMEDIT
7207   fi
7208 else
7209   NMEDIT="$ac_cv_prog_NMEDIT"
7210 fi
7211
7212     if test -n "$ac_tool_prefix"; then
7213   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7214 set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then :
7218   $as_echo_n "(cached) " >&6
7219 else
7220   if test -n "$LIPO"; then
7221   ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
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 LIPO=$ac_cv_prog_LIPO
7241 if test -n "$LIPO"; then
7242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7243 $as_echo "$LIPO" >&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_LIPO"; then
7252   ac_ct_LIPO=$LIPO
7253   # Extract the first word of "lipo", so it can be a program name with args.
7254 set dummy lipo; 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_LIPO+:} false; then :
7258   $as_echo_n "(cached) " >&6
7259 else
7260   if test -n "$ac_ct_LIPO"; then
7261   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_LIPO="lipo"
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_LIPO=$ac_cv_prog_ac_ct_LIPO
7281 if test -n "$ac_ct_LIPO"; then
7282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7283 $as_echo "$ac_ct_LIPO" >&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_LIPO" = x; then
7290     LIPO=":"
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     LIPO=$ac_ct_LIPO
7299   fi
7300 else
7301   LIPO="$ac_cv_prog_LIPO"
7302 fi
7303
7304     if test -n "$ac_tool_prefix"; then
7305   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7306 set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then :
7310   $as_echo_n "(cached) " >&6
7311 else
7312   if test -n "$OTOOL"; then
7313   ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
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 OTOOL=$ac_cv_prog_OTOOL
7333 if test -n "$OTOOL"; then
7334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7335 $as_echo "$OTOOL" >&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_OTOOL"; then
7344   ac_ct_OTOOL=$OTOOL
7345   # Extract the first word of "otool", so it can be a program name with args.
7346 set dummy otool; 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_OTOOL+:} false; then :
7350   $as_echo_n "(cached) " >&6
7351 else
7352   if test -n "$ac_ct_OTOOL"; then
7353   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_OTOOL="otool"
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_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7373 if test -n "$ac_ct_OTOOL"; then
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7375 $as_echo "$ac_ct_OTOOL" >&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_OTOOL" = x; then
7382     OTOOL=":"
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     OTOOL=$ac_ct_OTOOL
7391   fi
7392 else
7393   OTOOL="$ac_cv_prog_OTOOL"
7394 fi
7395
7396     if test -n "$ac_tool_prefix"; then
7397   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7398 set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then :
7402   $as_echo_n "(cached) " >&6
7403 else
7404   if test -n "$OTOOL64"; then
7405   ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
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 OTOOL64=$ac_cv_prog_OTOOL64
7425 if test -n "$OTOOL64"; then
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7427 $as_echo "$OTOOL64" >&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_OTOOL64"; then
7436   ac_ct_OTOOL64=$OTOOL64
7437   # Extract the first word of "otool64", so it can be a program name with args.
7438 set dummy otool64; 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_OTOOL64+:} false; then :
7442   $as_echo_n "(cached) " >&6
7443 else
7444   if test -n "$ac_ct_OTOOL64"; then
7445   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_OTOOL64="otool64"
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_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7465 if test -n "$ac_ct_OTOOL64"; then
7466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7467 $as_echo "$ac_ct_OTOOL64" >&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_OTOOL64" = x; then
7474     OTOOL64=":"
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     OTOOL64=$ac_ct_OTOOL64
7483   fi
7484 else
7485   OTOOL64="$ac_cv_prog_OTOOL64"
7486 fi
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7515 $as_echo_n "checking for -single_module linker flag... " >&6; }
7516 if ${lt_cv_apple_cc_single_mod+:} false; then :
7517   $as_echo_n "(cached) " >&6
7518 else
7519   lt_cv_apple_cc_single_mod=no
7520       if test -z "${LT_MULTI_MODULE}"; then
7521         # By default we will add the -single_module flag. You can override
7522         # by either setting the environment variable LT_MULTI_MODULE
7523         # non-empty at configure time, or by adding -multi_module to the
7524         # link flags.
7525         rm -rf libconftest.dylib*
7526         echo "int foo(void){return 1;}" > conftest.c
7527         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7528 -dynamiclib -Wl,-single_module conftest.c" >&5
7529         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7530           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7531         _lt_result=$?
7532         # If there is a non-empty error log, and "single_module"
7533         # appears in it, assume the flag caused a linker warning
7534         if test -s conftest.err && $GREP single_module conftest.err; then
7535           cat conftest.err >&5
7536         # Otherwise, if the output was created with a 0 exit code from
7537         # the compiler, it worked.
7538         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7539           lt_cv_apple_cc_single_mod=yes
7540         else
7541           cat conftest.err >&5
7542         fi
7543         rm -rf libconftest.dylib*
7544         rm -f conftest.*
7545       fi
7546 fi
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7548 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7549
7550     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7551 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7552 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7553   $as_echo_n "(cached) " >&6
7554 else
7555   lt_cv_ld_exported_symbols_list=no
7556       save_LDFLAGS=$LDFLAGS
7557       echo "_main" > conftest.sym
7558       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7559       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h.  */
7561
7562 int
7563 main ()
7564 {
7565
7566   ;
7567   return 0;
7568 }
7569 _ACEOF
7570 if ac_fn_c_try_link "$LINENO"; then :
7571   lt_cv_ld_exported_symbols_list=yes
7572 else
7573   lt_cv_ld_exported_symbols_list=no
7574 fi
7575 rm -f core conftest.err conftest.$ac_objext \
7576     conftest$ac_exeext conftest.$ac_ext
7577         LDFLAGS="$save_LDFLAGS"
7578
7579 fi
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7581 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7582
7583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7584 $as_echo_n "checking for -force_load linker flag... " >&6; }
7585 if ${lt_cv_ld_force_load+:} false; then :
7586   $as_echo_n "(cached) " >&6
7587 else
7588   lt_cv_ld_force_load=no
7589       cat > conftest.c << _LT_EOF
7590 int forced_loaded() { return 2;}
7591 _LT_EOF
7592       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7593       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7594       echo "$AR cru libconftest.a conftest.o" >&5
7595       $AR cru libconftest.a conftest.o 2>&5
7596       echo "$RANLIB libconftest.a" >&5
7597       $RANLIB libconftest.a 2>&5
7598       cat > conftest.c << _LT_EOF
7599 int main() { return 0;}
7600 _LT_EOF
7601       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7602       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7603       _lt_result=$?
7604       if test -s conftest.err && $GREP force_load conftest.err; then
7605         cat conftest.err >&5
7606       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7607         lt_cv_ld_force_load=yes
7608       else
7609         cat conftest.err >&5
7610       fi
7611         rm -f conftest.err libconftest.a conftest conftest.c
7612         rm -rf conftest.dSYM
7613
7614 fi
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7616 $as_echo "$lt_cv_ld_force_load" >&6; }
7617     case $host_os in
7618     rhapsody* | darwin1.[012])
7619       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7620     darwin1.*)
7621       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7622     darwin*) # darwin 5.x on
7623       # if running on 10.5 or later, the deployment target defaults
7624       # to the OS version, if on x86, and 10.4, the deployment
7625       # target defaults to 10.4. Don't you love it?
7626       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7627         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7628           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7629         10.[012]*)
7630           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7631         10.*)
7632           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7633       esac
7634     ;;
7635   esac
7636     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7637       _lt_dar_single_mod='$single_module'
7638     fi
7639     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7640       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7641     else
7642       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7643     fi
7644     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7645       _lt_dsymutil='~$DSYMUTIL $lib || :'
7646     else
7647       _lt_dsymutil=
7648     fi
7649     ;;
7650   esac
7651
7652 for ac_header in dlfcn.h
7653 do :
7654   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7655 "
7656 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7657   cat >>confdefs.h <<_ACEOF
7658 #define HAVE_DLFCN_H 1
7659 _ACEOF
7660
7661 fi
7662
7663 done
7664
7665
7666
7667
7668
7669 # Set options
7670 enable_dlopen=yes
7671 # Check whether --enable-static was given.
7672 if test "${enable_static+set}" = set; then :
7673   enableval=$enable_static; p=${PACKAGE-default}
7674     case $enableval in
7675     yes) enable_static=yes ;;
7676     no) enable_static=no ;;
7677     *)
7678      enable_static=no
7679       # Look at the argument we got.  We use all the common list separators.
7680       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7681       for pkg in $enableval; do
7682         IFS="$lt_save_ifs"
7683         if test "X$pkg" = "X$p"; then
7684           enable_static=yes
7685         fi
7686       done
7687       IFS="$lt_save_ifs"
7688       ;;
7689     esac
7690 else
7691   enable_static=no
7692 fi
7693
7694
7695
7696
7697
7698
7699
7700 enable_win32_dll=yes
7701
7702 case $host in
7703 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7704   if test -n "$ac_tool_prefix"; then
7705   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7706 set dummy ${ac_tool_prefix}as; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_AS+:} false; then :
7710   $as_echo_n "(cached) " >&6
7711 else
7712   if test -n "$AS"; then
7713   ac_cv_prog_AS="$AS" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718   IFS=$as_save_IFS
7719   test -z "$as_dir" && as_dir=.
7720     for ac_exec_ext in '' $ac_executable_extensions; do
7721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722     ac_cv_prog_AS="${ac_tool_prefix}as"
7723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724     break 2
7725   fi
7726 done
7727   done
7728 IFS=$as_save_IFS
7729
7730 fi
7731 fi
7732 AS=$ac_cv_prog_AS
7733 if test -n "$AS"; then
7734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7735 $as_echo "$AS" >&6; }
7736 else
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741
7742 fi
7743 if test -z "$ac_cv_prog_AS"; then
7744   ac_ct_AS=$AS
7745   # Extract the first word of "as", so it can be a program name with args.
7746 set dummy as; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7750   $as_echo_n "(cached) " >&6
7751 else
7752   if test -n "$ac_ct_AS"; then
7753   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7754 else
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 for as_dir in $PATH
7757 do
7758   IFS=$as_save_IFS
7759   test -z "$as_dir" && as_dir=.
7760     for ac_exec_ext in '' $ac_executable_extensions; do
7761   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762     ac_cv_prog_ac_ct_AS="as"
7763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764     break 2
7765   fi
7766 done
7767   done
7768 IFS=$as_save_IFS
7769
7770 fi
7771 fi
7772 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7773 if test -n "$ac_ct_AS"; then
7774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7775 $as_echo "$ac_ct_AS" >&6; }
7776 else
7777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7779 fi
7780
7781   if test "x$ac_ct_AS" = x; then
7782     AS="false"
7783   else
7784     case $cross_compiling:$ac_tool_warned in
7785 yes:)
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788 ac_tool_warned=yes ;;
7789 esac
7790     AS=$ac_ct_AS
7791   fi
7792 else
7793   AS="$ac_cv_prog_AS"
7794 fi
7795
7796   if test -n "$ac_tool_prefix"; then
7797   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7798 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if ${ac_cv_prog_DLLTOOL+:} false; then :
7802   $as_echo_n "(cached) " >&6
7803 else
7804   if test -n "$DLLTOOL"; then
7805   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810   IFS=$as_save_IFS
7811   test -z "$as_dir" && as_dir=.
7812     for ac_exec_ext in '' $ac_executable_extensions; do
7813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816     break 2
7817   fi
7818 done
7819   done
7820 IFS=$as_save_IFS
7821
7822 fi
7823 fi
7824 DLLTOOL=$ac_cv_prog_DLLTOOL
7825 if test -n "$DLLTOOL"; then
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7827 $as_echo "$DLLTOOL" >&6; }
7828 else
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832
7833
7834 fi
7835 if test -z "$ac_cv_prog_DLLTOOL"; then
7836   ac_ct_DLLTOOL=$DLLTOOL
7837   # Extract the first word of "dlltool", so it can be a program name with args.
7838 set dummy dlltool; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7842   $as_echo_n "(cached) " >&6
7843 else
7844   if test -n "$ac_ct_DLLTOOL"; then
7845   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7846 else
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7849 do
7850   IFS=$as_save_IFS
7851   test -z "$as_dir" && as_dir=.
7852     for ac_exec_ext in '' $ac_executable_extensions; do
7853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7854     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856     break 2
7857   fi
7858 done
7859   done
7860 IFS=$as_save_IFS
7861
7862 fi
7863 fi
7864 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7865 if test -n "$ac_ct_DLLTOOL"; then
7866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7867 $as_echo "$ac_ct_DLLTOOL" >&6; }
7868 else
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7871 fi
7872
7873   if test "x$ac_ct_DLLTOOL" = x; then
7874     DLLTOOL="false"
7875   else
7876     case $cross_compiling:$ac_tool_warned in
7877 yes:)
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7880 ac_tool_warned=yes ;;
7881 esac
7882     DLLTOOL=$ac_ct_DLLTOOL
7883   fi
7884 else
7885   DLLTOOL="$ac_cv_prog_DLLTOOL"
7886 fi
7887
7888   if test -n "$ac_tool_prefix"; then
7889   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7890 set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+:} false; then :
7894   $as_echo_n "(cached) " >&6
7895 else
7896   if test -n "$OBJDUMP"; then
7897   ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ac_tool_prefix}objdump"
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 OBJDUMP=$ac_cv_prog_OBJDUMP
7917 if test -n "$OBJDUMP"; then
7918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7919 $as_echo "$OBJDUMP" >&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_OBJDUMP"; then
7928   ac_ct_OBJDUMP=$OBJDUMP
7929   # Extract the first word of "objdump", so it can be a program name with args.
7930 set dummy objdump; 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_OBJDUMP+:} false; then :
7934   $as_echo_n "(cached) " >&6
7935 else
7936   if test -n "$ac_ct_OBJDUMP"; then
7937   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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_OBJDUMP="objdump"
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_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7957 if test -n "$ac_ct_OBJDUMP"; then
7958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7959 $as_echo "$ac_ct_OBJDUMP" >&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_OBJDUMP" = x; then
7966     OBJDUMP="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     OBJDUMP=$ac_ct_OBJDUMP
7975   fi
7976 else
7977   OBJDUMP="$ac_cv_prog_OBJDUMP"
7978 fi
7979
7980   ;;
7981 esac
7982
7983 test -z "$AS" && AS=as
7984
7985
7986
7987
7988
7989 test -z "$DLLTOOL" && DLLTOOL=dlltool
7990
7991
7992
7993
7994
7995 test -z "$OBJDUMP" && OBJDUMP=objdump
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005             # Check whether --enable-shared was given.
8006 if test "${enable_shared+set}" = set; then :
8007   enableval=$enable_shared; p=${PACKAGE-default}
8008     case $enableval in
8009     yes) enable_shared=yes ;;
8010     no) enable_shared=no ;;
8011     *)
8012       enable_shared=no
8013       # Look at the argument we got.  We use all the common list separators.
8014       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8015       for pkg in $enableval; do
8016         IFS="$lt_save_ifs"
8017         if test "X$pkg" = "X$p"; then
8018           enable_shared=yes
8019         fi
8020       done
8021       IFS="$lt_save_ifs"
8022       ;;
8023     esac
8024 else
8025   enable_shared=yes
8026 fi
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038 # Check whether --with-pic was given.
8039 if test "${with_pic+set}" = set; then :
8040   withval=$with_pic; lt_p=${PACKAGE-default}
8041     case $withval in
8042     yes|no) pic_mode=$withval ;;
8043     *)
8044       pic_mode=default
8045       # Look at the argument we got.  We use all the common list separators.
8046       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8047       for lt_pkg in $withval; do
8048         IFS="$lt_save_ifs"
8049         if test "X$lt_pkg" = "X$lt_p"; then
8050           pic_mode=yes
8051         fi
8052       done
8053       IFS="$lt_save_ifs"
8054       ;;
8055     esac
8056 else
8057   pic_mode=default
8058 fi
8059
8060
8061 test -z "$pic_mode" && pic_mode=default
8062
8063
8064
8065
8066
8067
8068
8069   # Check whether --enable-fast-install was given.
8070 if test "${enable_fast_install+set}" = set; then :
8071   enableval=$enable_fast_install; p=${PACKAGE-default}
8072     case $enableval in
8073     yes) enable_fast_install=yes ;;
8074     no) enable_fast_install=no ;;
8075     *)
8076       enable_fast_install=no
8077       # Look at the argument we got.  We use all the common list separators.
8078       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8079       for pkg in $enableval; do
8080         IFS="$lt_save_ifs"
8081         if test "X$pkg" = "X$p"; then
8082           enable_fast_install=yes
8083         fi
8084       done
8085       IFS="$lt_save_ifs"
8086       ;;
8087     esac
8088 else
8089   enable_fast_install=yes
8090 fi
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102 # This can be used to rebuild libtool when needed
8103 LIBTOOL_DEPS="$ltmain"
8104
8105 # Always use our own libtool.
8106 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 test -z "$LN_S" && LN_S="ln -s"
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152 if test -n "${ZSH_VERSION+set}" ; then
8153    setopt NO_GLOB_SUBST
8154 fi
8155
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8157 $as_echo_n "checking for objdir... " >&6; }
8158 if ${lt_cv_objdir+:} false; then :
8159   $as_echo_n "(cached) " >&6
8160 else
8161   rm -f .libs 2>/dev/null
8162 mkdir .libs 2>/dev/null
8163 if test -d .libs; then
8164   lt_cv_objdir=.libs
8165 else
8166   # MS-DOS does not allow filenames that begin with a dot.
8167   lt_cv_objdir=_libs
8168 fi
8169 rmdir .libs 2>/dev/null
8170 fi
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8172 $as_echo "$lt_cv_objdir" >&6; }
8173 objdir=$lt_cv_objdir
8174
8175
8176
8177
8178
8179 cat >>confdefs.h <<_ACEOF
8180 #define LT_OBJDIR "$lt_cv_objdir/"
8181 _ACEOF
8182
8183
8184
8185
8186 case $host_os in
8187 aix3*)
8188   # AIX sometimes has problems with the GCC collect2 program.  For some
8189   # reason, if we set the COLLECT_NAMES environment variable, the problems
8190   # vanish in a puff of smoke.
8191   if test "X${COLLECT_NAMES+set}" != Xset; then
8192     COLLECT_NAMES=
8193     export COLLECT_NAMES
8194   fi
8195   ;;
8196 esac
8197
8198 # Global variables:
8199 ofile=libtool
8200 can_build_shared=yes
8201
8202 # All known linkers require a `.a' archive for static linking (except MSVC,
8203 # which needs '.lib').
8204 libext=a
8205
8206 with_gnu_ld="$lt_cv_prog_gnu_ld"
8207
8208 old_CC="$CC"
8209 old_CFLAGS="$CFLAGS"
8210
8211 # Set sane defaults for various variables
8212 test -z "$CC" && CC=cc
8213 test -z "$LTCC" && LTCC=$CC
8214 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8215 test -z "$LD" && LD=ld
8216 test -z "$ac_objext" && ac_objext=o
8217
8218 for cc_temp in $compiler""; do
8219   case $cc_temp in
8220     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8221     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8222     \-*) ;;
8223     *) break;;
8224   esac
8225 done
8226 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8227
8228
8229 # Only perform the check for file, if the check method requires it
8230 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8231 case $deplibs_check_method in
8232 file_magic*)
8233   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8235 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8236 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8237   $as_echo_n "(cached) " >&6
8238 else
8239   case $MAGIC_CMD in
8240 [\\/*] |  ?:[\\/]*)
8241   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8242   ;;
8243 *)
8244   lt_save_MAGIC_CMD="$MAGIC_CMD"
8245   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8246   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8247   for ac_dir in $ac_dummy; do
8248     IFS="$lt_save_ifs"
8249     test -z "$ac_dir" && ac_dir=.
8250     if test -f $ac_dir/${ac_tool_prefix}file; then
8251       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8252       if test -n "$file_magic_test_file"; then
8253         case $deplibs_check_method in
8254         "file_magic "*)
8255           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8256           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8257           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8258             $EGREP "$file_magic_regex" > /dev/null; then
8259             :
8260           else
8261             cat <<_LT_EOF 1>&2
8262
8263 *** Warning: the command libtool uses to detect shared libraries,
8264 *** $file_magic_cmd, produces output that libtool cannot recognize.
8265 *** The result is that libtool may fail to recognize shared libraries
8266 *** as such.  This will affect the creation of libtool libraries that
8267 *** depend on shared libraries, but programs linked with such libtool
8268 *** libraries will work regardless of this problem.  Nevertheless, you
8269 *** may want to report the problem to your system manager and/or to
8270 *** bug-libtool@gnu.org
8271
8272 _LT_EOF
8273           fi ;;
8274         esac
8275       fi
8276       break
8277     fi
8278   done
8279   IFS="$lt_save_ifs"
8280   MAGIC_CMD="$lt_save_MAGIC_CMD"
8281   ;;
8282 esac
8283 fi
8284
8285 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8286 if test -n "$MAGIC_CMD"; then
8287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8288 $as_echo "$MAGIC_CMD" >&6; }
8289 else
8290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8292 fi
8293
8294
8295
8296
8297
8298 if test -z "$lt_cv_path_MAGIC_CMD"; then
8299   if test -n "$ac_tool_prefix"; then
8300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8301 $as_echo_n "checking for file... " >&6; }
8302 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8303   $as_echo_n "(cached) " >&6
8304 else
8305   case $MAGIC_CMD in
8306 [\\/*] |  ?:[\\/]*)
8307   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8308   ;;
8309 *)
8310   lt_save_MAGIC_CMD="$MAGIC_CMD"
8311   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8312   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8313   for ac_dir in $ac_dummy; do
8314     IFS="$lt_save_ifs"
8315     test -z "$ac_dir" && ac_dir=.
8316     if test -f $ac_dir/file; then
8317       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8318       if test -n "$file_magic_test_file"; then
8319         case $deplibs_check_method in
8320         "file_magic "*)
8321           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8322           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8323           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8324             $EGREP "$file_magic_regex" > /dev/null; then
8325             :
8326           else
8327             cat <<_LT_EOF 1>&2
8328
8329 *** Warning: the command libtool uses to detect shared libraries,
8330 *** $file_magic_cmd, produces output that libtool cannot recognize.
8331 *** The result is that libtool may fail to recognize shared libraries
8332 *** as such.  This will affect the creation of libtool libraries that
8333 *** depend on shared libraries, but programs linked with such libtool
8334 *** libraries will work regardless of this problem.  Nevertheless, you
8335 *** may want to report the problem to your system manager and/or to
8336 *** bug-libtool@gnu.org
8337
8338 _LT_EOF
8339           fi ;;
8340         esac
8341       fi
8342       break
8343     fi
8344   done
8345   IFS="$lt_save_ifs"
8346   MAGIC_CMD="$lt_save_MAGIC_CMD"
8347   ;;
8348 esac
8349 fi
8350
8351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8352 if test -n "$MAGIC_CMD"; then
8353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8354 $as_echo "$MAGIC_CMD" >&6; }
8355 else
8356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 $as_echo "no" >&6; }
8358 fi
8359
8360
8361   else
8362     MAGIC_CMD=:
8363   fi
8364 fi
8365
8366   fi
8367   ;;
8368 esac
8369
8370 # Use C for the default configuration in the libtool script
8371
8372 lt_save_CC="$CC"
8373 ac_ext=c
8374 ac_cpp='$CPP $CPPFLAGS'
8375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8378
8379
8380 # Source file extension for C test sources.
8381 ac_ext=c
8382
8383 # Object file extension for compiled C test sources.
8384 objext=o
8385 objext=$objext
8386
8387 # Code to be used in simple compile tests
8388 lt_simple_compile_test_code="int some_variable = 0;"
8389
8390 # Code to be used in simple link tests
8391 lt_simple_link_test_code='int main(){return(0);}'
8392
8393
8394
8395
8396
8397
8398
8399 # If no C compiler was specified, use CC.
8400 LTCC=${LTCC-"$CC"}
8401
8402 # If no C compiler flags were specified, use CFLAGS.
8403 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8404
8405 # Allow CC to be a program name with arguments.
8406 compiler=$CC
8407
8408 # Save the default compiler, since it gets overwritten when the other
8409 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8410 compiler_DEFAULT=$CC
8411
8412 # save warnings/boilerplate of simple test code
8413 ac_outfile=conftest.$ac_objext
8414 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8415 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8416 _lt_compiler_boilerplate=`cat conftest.err`
8417 $RM conftest*
8418
8419 ac_outfile=conftest.$ac_objext
8420 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8421 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8422 _lt_linker_boilerplate=`cat conftest.err`
8423 $RM -r conftest*
8424
8425
8426 ## CAVEAT EMPTOR:
8427 ## There is no encapsulation within the following macros, do not change
8428 ## the running order or otherwise move them around unless you know exactly
8429 ## what you are doing...
8430 if test -n "$compiler"; then
8431
8432 lt_prog_compiler_no_builtin_flag=
8433
8434 if test "$GCC" = yes; then
8435   case $cc_basename in
8436   nvcc*)
8437     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8438   *)
8439     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8440   esac
8441
8442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8443 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8444 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8445   $as_echo_n "(cached) " >&6
8446 else
8447   lt_cv_prog_compiler_rtti_exceptions=no
8448    ac_outfile=conftest.$ac_objext
8449    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8450    lt_compiler_flag="-fno-rtti -fno-exceptions"
8451    # Insert the option either (1) after the last *FLAGS variable, or
8452    # (2) before a word containing "conftest.", or (3) at the end.
8453    # Note that $ac_compile itself does not contain backslashes and begins
8454    # with a dollar sign (not a hyphen), so the echo should work correctly.
8455    # The option is referenced via a variable to avoid confusing sed.
8456    lt_compile=`echo "$ac_compile" | $SED \
8457    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8458    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8459    -e 's:$: $lt_compiler_flag:'`
8460    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8461    (eval "$lt_compile" 2>conftest.err)
8462    ac_status=$?
8463    cat conftest.err >&5
8464    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465    if (exit $ac_status) && test -s "$ac_outfile"; then
8466      # The compiler can only warn and ignore the option if not recognized
8467      # So say no if there are warnings other than the usual output.
8468      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8469      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8470      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8471        lt_cv_prog_compiler_rtti_exceptions=yes
8472      fi
8473    fi
8474    $RM conftest*
8475
8476 fi
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8478 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8479
8480 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8481     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8482 else
8483     :
8484 fi
8485
8486 fi
8487
8488
8489
8490
8491
8492
8493   lt_prog_compiler_wl=
8494 lt_prog_compiler_pic=
8495 lt_prog_compiler_static=
8496
8497
8498   if test "$GCC" = yes; then
8499     lt_prog_compiler_wl='-Wl,'
8500     lt_prog_compiler_static='-static'
8501
8502     case $host_os in
8503       aix*)
8504       # All AIX code is PIC.
8505       if test "$host_cpu" = ia64; then
8506         # AIX 5 now supports IA64 processor
8507         lt_prog_compiler_static='-Bstatic'
8508       fi
8509       ;;
8510
8511     amigaos*)
8512       case $host_cpu in
8513       powerpc)
8514             # see comment about AmigaOS4 .so support
8515             lt_prog_compiler_pic='-fPIC'
8516         ;;
8517       m68k)
8518             # FIXME: we need at least 68020 code to build shared libraries, but
8519             # adding the `-m68020' flag to GCC prevents building anything better,
8520             # like `-m68040'.
8521             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8522         ;;
8523       esac
8524       ;;
8525
8526     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8527       # PIC is the default for these OSes.
8528       ;;
8529
8530     mingw* | cygwin* | pw32* | os2* | cegcc*)
8531       # This hack is so that the source file can tell whether it is being
8532       # built for inclusion in a dll (and should export symbols for example).
8533       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8534       # (--disable-auto-import) libraries
8535       lt_prog_compiler_pic='-DDLL_EXPORT'
8536       ;;
8537
8538     darwin* | rhapsody*)
8539       # PIC is the default on this platform
8540       # Common symbols not allowed in MH_DYLIB files
8541       lt_prog_compiler_pic='-fno-common'
8542       ;;
8543
8544     haiku*)
8545       # PIC is the default for Haiku.
8546       # The "-static" flag exists, but is broken.
8547       lt_prog_compiler_static=
8548       ;;
8549
8550     hpux*)
8551       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8552       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8553       # sets the default TLS model and affects inlining.
8554       case $host_cpu in
8555       hppa*64*)
8556         # +Z the default
8557         ;;
8558       *)
8559         lt_prog_compiler_pic='-fPIC'
8560         ;;
8561       esac
8562       ;;
8563
8564     interix[3-9]*)
8565       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8566       # Instead, we relocate shared libraries at runtime.
8567       ;;
8568
8569     msdosdjgpp*)
8570       # Just because we use GCC doesn't mean we suddenly get shared libraries
8571       # on systems that don't support them.
8572       lt_prog_compiler_can_build_shared=no
8573       enable_shared=no
8574       ;;
8575
8576     *nto* | *qnx*)
8577       # QNX uses GNU C++, but need to define -shared option too, otherwise
8578       # it will coredump.
8579       lt_prog_compiler_pic='-fPIC -shared'
8580       ;;
8581
8582     sysv4*MP*)
8583       if test -d /usr/nec; then
8584         lt_prog_compiler_pic=-Kconform_pic
8585       fi
8586       ;;
8587
8588     *)
8589       lt_prog_compiler_pic='-fPIC'
8590       ;;
8591     esac
8592
8593     case $cc_basename in
8594     nvcc*) # Cuda Compiler Driver 2.2
8595       lt_prog_compiler_wl='-Xlinker '
8596       if test -n "$lt_prog_compiler_pic"; then
8597         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8598       fi
8599       ;;
8600     esac
8601   else
8602     # PORTME Check for flag to pass linker flags through the system compiler.
8603     case $host_os in
8604     aix*)
8605       lt_prog_compiler_wl='-Wl,'
8606       if test "$host_cpu" = ia64; then
8607         # AIX 5 now supports IA64 processor
8608         lt_prog_compiler_static='-Bstatic'
8609       else
8610         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8611       fi
8612       ;;
8613
8614     mingw* | cygwin* | pw32* | os2* | cegcc*)
8615       # This hack is so that the source file can tell whether it is being
8616       # built for inclusion in a dll (and should export symbols for example).
8617       lt_prog_compiler_pic='-DDLL_EXPORT'
8618       ;;
8619
8620     hpux9* | hpux10* | hpux11*)
8621       lt_prog_compiler_wl='-Wl,'
8622       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8623       # not for PA HP-UX.
8624       case $host_cpu in
8625       hppa*64*|ia64*)
8626         # +Z the default
8627         ;;
8628       *)
8629         lt_prog_compiler_pic='+Z'
8630         ;;
8631       esac
8632       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8633       lt_prog_compiler_static='${wl}-a ${wl}archive'
8634       ;;
8635
8636     irix5* | irix6* | nonstopux*)
8637       lt_prog_compiler_wl='-Wl,'
8638       # PIC (with -KPIC) is the default.
8639       lt_prog_compiler_static='-non_shared'
8640       ;;
8641
8642     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8643       case $cc_basename in
8644       # old Intel for x86_64 which still supported -KPIC.
8645       ecc*)
8646         lt_prog_compiler_wl='-Wl,'
8647         lt_prog_compiler_pic='-KPIC'
8648         lt_prog_compiler_static='-static'
8649         ;;
8650       # icc used to be incompatible with GCC.
8651       # ICC 10 doesn't accept -KPIC any more.
8652       icc* | ifort*)
8653         lt_prog_compiler_wl='-Wl,'
8654         lt_prog_compiler_pic='-fPIC'
8655         lt_prog_compiler_static='-static'
8656         ;;
8657       # Lahey Fortran 8.1.
8658       lf95*)
8659         lt_prog_compiler_wl='-Wl,'
8660         lt_prog_compiler_pic='--shared'
8661         lt_prog_compiler_static='--static'
8662         ;;
8663       nagfor*)
8664         # NAG Fortran compiler
8665         lt_prog_compiler_wl='-Wl,-Wl,,'
8666         lt_prog_compiler_pic='-PIC'
8667         lt_prog_compiler_static='-Bstatic'
8668         ;;
8669       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8670         # Portland Group compilers (*not* the Pentium gcc compiler,
8671         # which looks to be a dead project)
8672         lt_prog_compiler_wl='-Wl,'
8673         lt_prog_compiler_pic='-fpic'
8674         lt_prog_compiler_static='-Bstatic'
8675         ;;
8676       ccc*)
8677         lt_prog_compiler_wl='-Wl,'
8678         # All Alpha code is PIC.
8679         lt_prog_compiler_static='-non_shared'
8680         ;;
8681       xl* | bgxl* | bgf* | mpixl*)
8682         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8683         lt_prog_compiler_wl='-Wl,'
8684         lt_prog_compiler_pic='-qpic'
8685         lt_prog_compiler_static='-qstaticlink'
8686         ;;
8687       *)
8688         case `$CC -V 2>&1 | sed 5q` in
8689         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8690           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8691           lt_prog_compiler_pic='-KPIC'
8692           lt_prog_compiler_static='-Bstatic'
8693           lt_prog_compiler_wl=''
8694           ;;
8695         *Sun\ F* | *Sun*Fortran*)
8696           lt_prog_compiler_pic='-KPIC'
8697           lt_prog_compiler_static='-Bstatic'
8698           lt_prog_compiler_wl='-Qoption ld '
8699           ;;
8700         *Sun\ C*)
8701           # Sun C 5.9
8702           lt_prog_compiler_pic='-KPIC'
8703           lt_prog_compiler_static='-Bstatic'
8704           lt_prog_compiler_wl='-Wl,'
8705           ;;
8706         *Intel*\ [CF]*Compiler*)
8707           lt_prog_compiler_wl='-Wl,'
8708           lt_prog_compiler_pic='-fPIC'
8709           lt_prog_compiler_static='-static'
8710           ;;
8711         *Portland\ Group*)
8712           lt_prog_compiler_wl='-Wl,'
8713           lt_prog_compiler_pic='-fpic'
8714           lt_prog_compiler_static='-Bstatic'
8715           ;;
8716         esac
8717         ;;
8718       esac
8719       ;;
8720
8721     newsos6)
8722       lt_prog_compiler_pic='-KPIC'
8723       lt_prog_compiler_static='-Bstatic'
8724       ;;
8725
8726     *nto* | *qnx*)
8727       # QNX uses GNU C++, but need to define -shared option too, otherwise
8728       # it will coredump.
8729       lt_prog_compiler_pic='-fPIC -shared'
8730       ;;
8731
8732     osf3* | osf4* | osf5*)
8733       lt_prog_compiler_wl='-Wl,'
8734       # All OSF/1 code is PIC.
8735       lt_prog_compiler_static='-non_shared'
8736       ;;
8737
8738     rdos*)
8739       lt_prog_compiler_static='-non_shared'
8740       ;;
8741
8742     solaris*)
8743       lt_prog_compiler_pic='-KPIC'
8744       lt_prog_compiler_static='-Bstatic'
8745       case $cc_basename in
8746       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8747         lt_prog_compiler_wl='-Qoption ld ';;
8748       *)
8749         lt_prog_compiler_wl='-Wl,';;
8750       esac
8751       ;;
8752
8753     sunos4*)
8754       lt_prog_compiler_wl='-Qoption ld '
8755       lt_prog_compiler_pic='-PIC'
8756       lt_prog_compiler_static='-Bstatic'
8757       ;;
8758
8759     sysv4 | sysv4.2uw2* | sysv4.3*)
8760       lt_prog_compiler_wl='-Wl,'
8761       lt_prog_compiler_pic='-KPIC'
8762       lt_prog_compiler_static='-Bstatic'
8763       ;;
8764
8765     sysv4*MP*)
8766       if test -d /usr/nec ;then
8767         lt_prog_compiler_pic='-Kconform_pic'
8768         lt_prog_compiler_static='-Bstatic'
8769       fi
8770       ;;
8771
8772     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8773       lt_prog_compiler_wl='-Wl,'
8774       lt_prog_compiler_pic='-KPIC'
8775       lt_prog_compiler_static='-Bstatic'
8776       ;;
8777
8778     unicos*)
8779       lt_prog_compiler_wl='-Wl,'
8780       lt_prog_compiler_can_build_shared=no
8781       ;;
8782
8783     uts4*)
8784       lt_prog_compiler_pic='-pic'
8785       lt_prog_compiler_static='-Bstatic'
8786       ;;
8787
8788     *)
8789       lt_prog_compiler_can_build_shared=no
8790       ;;
8791     esac
8792   fi
8793
8794 case $host_os in
8795   # For platforms which do not support PIC, -DPIC is meaningless:
8796   *djgpp*)
8797     lt_prog_compiler_pic=
8798     ;;
8799   *)
8800     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8801     ;;
8802 esac
8803
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8805 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8806 if ${lt_cv_prog_compiler_pic+:} false; then :
8807   $as_echo_n "(cached) " >&6
8808 else
8809   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8810 fi
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8812 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8813 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8814
8815 #
8816 # Check to make sure the PIC flag actually works.
8817 #
8818 if test -n "$lt_prog_compiler_pic"; then
8819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8820 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8821 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8822   $as_echo_n "(cached) " >&6
8823 else
8824   lt_cv_prog_compiler_pic_works=no
8825    ac_outfile=conftest.$ac_objext
8826    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8827    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8828    # Insert the option either (1) after the last *FLAGS variable, or
8829    # (2) before a word containing "conftest.", or (3) at the end.
8830    # Note that $ac_compile itself does not contain backslashes and begins
8831    # with a dollar sign (not a hyphen), so the echo should work correctly.
8832    # The option is referenced via a variable to avoid confusing sed.
8833    lt_compile=`echo "$ac_compile" | $SED \
8834    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8835    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8836    -e 's:$: $lt_compiler_flag:'`
8837    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8838    (eval "$lt_compile" 2>conftest.err)
8839    ac_status=$?
8840    cat conftest.err >&5
8841    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842    if (exit $ac_status) && test -s "$ac_outfile"; then
8843      # The compiler can only warn and ignore the option if not recognized
8844      # So say no if there are warnings other than the usual output.
8845      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8846      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8847      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8848        lt_cv_prog_compiler_pic_works=yes
8849      fi
8850    fi
8851    $RM conftest*
8852
8853 fi
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8855 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8856
8857 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8858     case $lt_prog_compiler_pic in
8859      "" | " "*) ;;
8860      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8861      esac
8862 else
8863     lt_prog_compiler_pic=
8864      lt_prog_compiler_can_build_shared=no
8865 fi
8866
8867 fi
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879 #
8880 # Check to make sure the static flag actually works.
8881 #
8882 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8884 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8885 if ${lt_cv_prog_compiler_static_works+:} false; then :
8886   $as_echo_n "(cached) " >&6
8887 else
8888   lt_cv_prog_compiler_static_works=no
8889    save_LDFLAGS="$LDFLAGS"
8890    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8891    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8892    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8893      # The linker can only warn and ignore the option if not recognized
8894      # So say no if there are warnings
8895      if test -s conftest.err; then
8896        # Append any errors to the config.log.
8897        cat conftest.err 1>&5
8898        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8899        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8900        if diff conftest.exp conftest.er2 >/dev/null; then
8901          lt_cv_prog_compiler_static_works=yes
8902        fi
8903      else
8904        lt_cv_prog_compiler_static_works=yes
8905      fi
8906    fi
8907    $RM -r conftest*
8908    LDFLAGS="$save_LDFLAGS"
8909
8910 fi
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8912 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8913
8914 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8915     :
8916 else
8917     lt_prog_compiler_static=
8918 fi
8919
8920
8921
8922
8923
8924
8925
8926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8927 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8928 if ${lt_cv_prog_compiler_c_o+:} false; then :
8929   $as_echo_n "(cached) " >&6
8930 else
8931   lt_cv_prog_compiler_c_o=no
8932    $RM -r conftest 2>/dev/null
8933    mkdir conftest
8934    cd conftest
8935    mkdir out
8936    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8937
8938    lt_compiler_flag="-o out/conftest2.$ac_objext"
8939    # Insert the option either (1) after the last *FLAGS variable, or
8940    # (2) before a word containing "conftest.", or (3) at the end.
8941    # Note that $ac_compile itself does not contain backslashes and begins
8942    # with a dollar sign (not a hyphen), so the echo should work correctly.
8943    lt_compile=`echo "$ac_compile" | $SED \
8944    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8945    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8946    -e 's:$: $lt_compiler_flag:'`
8947    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8948    (eval "$lt_compile" 2>out/conftest.err)
8949    ac_status=$?
8950    cat out/conftest.err >&5
8951    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8953    then
8954      # The compiler can only warn and ignore the option if not recognized
8955      # So say no if there are warnings
8956      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8957      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8958      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8959        lt_cv_prog_compiler_c_o=yes
8960      fi
8961    fi
8962    chmod u+w . 2>&5
8963    $RM conftest*
8964    # SGI C++ compiler will create directory out/ii_files/ for
8965    # template instantiation
8966    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8967    $RM out/* && rmdir out
8968    cd ..
8969    $RM -r conftest
8970    $RM conftest*
8971
8972 fi
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8974 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8975
8976
8977
8978
8979
8980
8981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8982 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8983 if ${lt_cv_prog_compiler_c_o+:} false; then :
8984   $as_echo_n "(cached) " >&6
8985 else
8986   lt_cv_prog_compiler_c_o=no
8987    $RM -r conftest 2>/dev/null
8988    mkdir conftest
8989    cd conftest
8990    mkdir out
8991    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8992
8993    lt_compiler_flag="-o out/conftest2.$ac_objext"
8994    # Insert the option either (1) after the last *FLAGS variable, or
8995    # (2) before a word containing "conftest.", or (3) at the end.
8996    # Note that $ac_compile itself does not contain backslashes and begins
8997    # with a dollar sign (not a hyphen), so the echo should work correctly.
8998    lt_compile=`echo "$ac_compile" | $SED \
8999    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9000    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9001    -e 's:$: $lt_compiler_flag:'`
9002    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9003    (eval "$lt_compile" 2>out/conftest.err)
9004    ac_status=$?
9005    cat out/conftest.err >&5
9006    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9008    then
9009      # The compiler can only warn and ignore the option if not recognized
9010      # So say no if there are warnings
9011      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9012      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9013      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9014        lt_cv_prog_compiler_c_o=yes
9015      fi
9016    fi
9017    chmod u+w . 2>&5
9018    $RM conftest*
9019    # SGI C++ compiler will create directory out/ii_files/ for
9020    # template instantiation
9021    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9022    $RM out/* && rmdir out
9023    cd ..
9024    $RM -r conftest
9025    $RM conftest*
9026
9027 fi
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9029 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9030
9031
9032
9033
9034 hard_links="nottested"
9035 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9036   # do not overwrite the value of need_locks provided by the user
9037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9038 $as_echo_n "checking if we can lock with hard links... " >&6; }
9039   hard_links=yes
9040   $RM conftest*
9041   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9042   touch conftest.a
9043   ln conftest.a conftest.b 2>&5 || hard_links=no
9044   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9046 $as_echo "$hard_links" >&6; }
9047   if test "$hard_links" = no; then
9048     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9049 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9050     need_locks=warn
9051   fi
9052 else
9053   need_locks=no
9054 fi
9055
9056
9057
9058
9059
9060
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9062 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9063
9064   runpath_var=
9065   allow_undefined_flag=
9066   always_export_symbols=no
9067   archive_cmds=
9068   archive_expsym_cmds=
9069   compiler_needs_object=no
9070   enable_shared_with_static_runtimes=no
9071   export_dynamic_flag_spec=
9072   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9073   hardcode_automatic=no
9074   hardcode_direct=no
9075   hardcode_direct_absolute=no
9076   hardcode_libdir_flag_spec=
9077   hardcode_libdir_separator=
9078   hardcode_minus_L=no
9079   hardcode_shlibpath_var=unsupported
9080   inherit_rpath=no
9081   link_all_deplibs=unknown
9082   module_cmds=
9083   module_expsym_cmds=
9084   old_archive_from_new_cmds=
9085   old_archive_from_expsyms_cmds=
9086   thread_safe_flag_spec=
9087   whole_archive_flag_spec=
9088   # include_expsyms should be a list of space-separated symbols to be *always*
9089   # included in the symbol list
9090   include_expsyms=
9091   # exclude_expsyms can be an extended regexp of symbols to exclude
9092   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9093   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9094   # as well as any symbol that contains `d'.
9095   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9096   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9097   # platforms (ab)use it in PIC code, but their linkers get confused if
9098   # the symbol is explicitly referenced.  Since portable code cannot
9099   # rely on this symbol name, it's probably fine to never include it in
9100   # preloaded symbol tables.
9101   # Exclude shared library initialization/finalization symbols.
9102   extract_expsyms_cmds=
9103
9104   case $host_os in
9105   cygwin* | mingw* | pw32* | cegcc*)
9106     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9107     # When not using gcc, we currently assume that we are using
9108     # Microsoft Visual C++.
9109     if test "$GCC" != yes; then
9110       with_gnu_ld=no
9111     fi
9112     ;;
9113   interix*)
9114     # we just hope/assume this is gcc and not c89 (= MSVC++)
9115     with_gnu_ld=yes
9116     ;;
9117   openbsd*)
9118     with_gnu_ld=no
9119     ;;
9120   linux* | k*bsd*-gnu | gnu*)
9121     link_all_deplibs=no
9122     ;;
9123   esac
9124
9125   ld_shlibs=yes
9126
9127   # On some targets, GNU ld is compatible enough with the native linker
9128   # that we're better off using the native interface for both.
9129   lt_use_gnu_ld_interface=no
9130   if test "$with_gnu_ld" = yes; then
9131     case $host_os in
9132       aix*)
9133         # The AIX port of GNU ld has always aspired to compatibility
9134         # with the native linker.  However, as the warning in the GNU ld
9135         # block says, versions before 2.19.5* couldn't really create working
9136         # shared libraries, regardless of the interface used.
9137         case `$LD -v 2>&1` in
9138           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9139           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9140           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9141           *)
9142             lt_use_gnu_ld_interface=yes
9143             ;;
9144         esac
9145         ;;
9146       *)
9147         lt_use_gnu_ld_interface=yes
9148         ;;
9149     esac
9150   fi
9151
9152   if test "$lt_use_gnu_ld_interface" = yes; then
9153     # If archive_cmds runs LD, not CC, wlarc should be empty
9154     wlarc='${wl}'
9155
9156     # Set some defaults for GNU ld with shared library support. These
9157     # are reset later if shared libraries are not supported. Putting them
9158     # here allows them to be overridden if necessary.
9159     runpath_var=LD_RUN_PATH
9160     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9161     export_dynamic_flag_spec='${wl}--export-dynamic'
9162     # ancient GNU ld didn't support --whole-archive et. al.
9163     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9164       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9165     else
9166       whole_archive_flag_spec=
9167     fi
9168     supports_anon_versioning=no
9169     case `$LD -v 2>&1` in
9170       *GNU\ gold*) supports_anon_versioning=yes ;;
9171       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9172       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9173       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9174       *\ 2.11.*) ;; # other 2.11 versions
9175       *) supports_anon_versioning=yes ;;
9176     esac
9177
9178     # See if GNU ld supports shared libraries.
9179     case $host_os in
9180     aix[3-9]*)
9181       # On AIX/PPC, the GNU linker is very broken
9182       if test "$host_cpu" != ia64; then
9183         ld_shlibs=no
9184         cat <<_LT_EOF 1>&2
9185
9186 *** Warning: the GNU linker, at least up to release 2.19, is reported
9187 *** to be unable to reliably create shared libraries on AIX.
9188 *** Therefore, libtool is disabling shared libraries support.  If you
9189 *** really care for shared libraries, you may want to install binutils
9190 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9191 *** You will then need to restart the configuration process.
9192
9193 _LT_EOF
9194       fi
9195       ;;
9196
9197     amigaos*)
9198       case $host_cpu in
9199       powerpc)
9200             # see comment about AmigaOS4 .so support
9201             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202             archive_expsym_cmds=''
9203         ;;
9204       m68k)
9205             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)'
9206             hardcode_libdir_flag_spec='-L$libdir'
9207             hardcode_minus_L=yes
9208         ;;
9209       esac
9210       ;;
9211
9212     beos*)
9213       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9214         allow_undefined_flag=unsupported
9215         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9216         # support --undefined.  This deserves some investigation.  FIXME
9217         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218       else
9219         ld_shlibs=no
9220       fi
9221       ;;
9222
9223     cygwin* | mingw* | pw32* | cegcc*)
9224       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9225       # as there is no search path for DLLs.
9226       hardcode_libdir_flag_spec='-L$libdir'
9227       export_dynamic_flag_spec='${wl}--export-all-symbols'
9228       allow_undefined_flag=unsupported
9229       always_export_symbols=no
9230       enable_shared_with_static_runtimes=yes
9231       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'
9232       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9233
9234       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9235         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9236         # If the export-symbols file already is a .def file (1st line
9237         # is EXPORTS), use it as is; otherwise, prepend...
9238         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9239           cp $export_symbols $output_objdir/$soname.def;
9240         else
9241           echo EXPORTS > $output_objdir/$soname.def;
9242           cat $export_symbols >> $output_objdir/$soname.def;
9243         fi~
9244         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9245       else
9246         ld_shlibs=no
9247       fi
9248       ;;
9249
9250     haiku*)
9251       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252       link_all_deplibs=yes
9253       ;;
9254
9255     interix[3-9]*)
9256       hardcode_direct=no
9257       hardcode_shlibpath_var=no
9258       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9259       export_dynamic_flag_spec='${wl}-E'
9260       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9261       # Instead, shared libraries are loaded at an image base (0x10000000 by
9262       # default) and relocated if they conflict, which is a slow very memory
9263       # consuming and fragmenting process.  To avoid this, we pick a random,
9264       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9265       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9266       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9267       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'
9268       ;;
9269
9270     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9271       tmp_diet=no
9272       if test "$host_os" = linux-dietlibc; then
9273         case $cc_basename in
9274           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9275         esac
9276       fi
9277       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9278          && test "$tmp_diet" = no
9279       then
9280         tmp_addflag=' $pic_flag'
9281         tmp_sharedflag='-shared'
9282         case $cc_basename,$host_cpu in
9283         pgcc*)                          # Portland Group C compiler
9284           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'
9285           tmp_addflag=' $pic_flag'
9286           ;;
9287         pgf77* | pgf90* | pgf95* | pgfortran*)
9288                                         # Portland Group f77 and f90 compilers
9289           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'
9290           tmp_addflag=' $pic_flag -Mnomain' ;;
9291         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9292           tmp_addflag=' -i_dynamic' ;;
9293         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9294           tmp_addflag=' -i_dynamic -nofor_main' ;;
9295         ifc* | ifort*)                  # Intel Fortran compiler
9296           tmp_addflag=' -nofor_main' ;;
9297         lf95*)                          # Lahey Fortran 8.1
9298           whole_archive_flag_spec=
9299           tmp_sharedflag='--shared' ;;
9300         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9301           tmp_sharedflag='-qmkshrobj'
9302           tmp_addflag= ;;
9303         nvcc*)  # Cuda Compiler Driver 2.2
9304           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'
9305           compiler_needs_object=yes
9306           ;;
9307         esac
9308         case `$CC -V 2>&1 | sed 5q` in
9309         *Sun\ C*)                       # Sun C 5.9
9310           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'
9311           compiler_needs_object=yes
9312           tmp_sharedflag='-G' ;;
9313         *Sun\ F*)                       # Sun Fortran 8.3
9314           tmp_sharedflag='-G' ;;
9315         esac
9316         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317
9318         if test "x$supports_anon_versioning" = xyes; then
9319           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9320             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9321             echo "local: *; };" >> $output_objdir/$libname.ver~
9322             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9323         fi
9324
9325         case $cc_basename in
9326         xlf* | bgf* | bgxlf* | mpixlf*)
9327           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9328           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9329           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9330           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9331           if test "x$supports_anon_versioning" = xyes; then
9332             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9333               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334               echo "local: *; };" >> $output_objdir/$libname.ver~
9335               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9336           fi
9337           ;;
9338         esac
9339       else
9340         ld_shlibs=no
9341       fi
9342       ;;
9343
9344     netbsd* | netbsdelf*-gnu)
9345       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9346         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9347         wlarc=
9348       else
9349         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9351       fi
9352       ;;
9353
9354     solaris*)
9355       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9356         ld_shlibs=no
9357         cat <<_LT_EOF 1>&2
9358
9359 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9360 *** create shared libraries on Solaris systems.  Therefore, libtool
9361 *** is disabling shared libraries support.  We urge you to upgrade GNU
9362 *** binutils to release 2.9.1 or newer.  Another option is to modify
9363 *** your PATH or compiler configuration so that the native linker is
9364 *** used, and then restart.
9365
9366 _LT_EOF
9367       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9368         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9369         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9370       else
9371         ld_shlibs=no
9372       fi
9373       ;;
9374
9375     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9376       case `$LD -v 2>&1` in
9377         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9378         ld_shlibs=no
9379         cat <<_LT_EOF 1>&2
9380
9381 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9382 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9383 *** is disabling shared libraries support.  We urge you to upgrade GNU
9384 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9385 *** your PATH or compiler configuration so that the native linker is
9386 *** used, and then restart.
9387
9388 _LT_EOF
9389         ;;
9390         *)
9391           # For security reasons, it is highly recommended that you always
9392           # use absolute paths for naming shared libraries, and exclude the
9393           # DT_RUNPATH tag from executables and libraries.  But doing so
9394           # requires that you compile everything twice, which is a pain.
9395           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9396             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9397             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9399           else
9400             ld_shlibs=no
9401           fi
9402         ;;
9403       esac
9404       ;;
9405
9406     sunos4*)
9407       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9408       wlarc=
9409       hardcode_direct=yes
9410       hardcode_shlibpath_var=no
9411       ;;
9412
9413     *)
9414       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9415         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9417       else
9418         ld_shlibs=no
9419       fi
9420       ;;
9421     esac
9422
9423     if test "$ld_shlibs" = no; then
9424       runpath_var=
9425       hardcode_libdir_flag_spec=
9426       export_dynamic_flag_spec=
9427       whole_archive_flag_spec=
9428     fi
9429   else
9430     # PORTME fill in a description of your system's linker (not GNU ld)
9431     case $host_os in
9432     aix3*)
9433       allow_undefined_flag=unsupported
9434       always_export_symbols=yes
9435       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'
9436       # Note: this linker hardcodes the directories in LIBPATH if there
9437       # are no directories specified by -L.
9438       hardcode_minus_L=yes
9439       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9440         # Neither direct hardcoding nor static linking is supported with a
9441         # broken collect2.
9442         hardcode_direct=unsupported
9443       fi
9444       ;;
9445
9446     aix[4-9]*)
9447       if test "$host_cpu" = ia64; then
9448         # On IA64, the linker does run time linking by default, so we don't
9449         # have to do anything special.
9450         aix_use_runtimelinking=no
9451         exp_sym_flag='-Bexport'
9452         no_entry_flag=""
9453       else
9454         # If we're using GNU nm, then we don't want the "-C" option.
9455         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9456         # Also, AIX nm treats weak defined symbols like other global
9457         # defined symbols, whereas GNU nm marks them as "W".
9458         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9459           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'
9460         else
9461           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'
9462         fi
9463         aix_use_runtimelinking=no
9464
9465         # Test if we are trying to use run time linking or normal
9466         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9467         # need to do runtime linking.
9468         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9469           for ld_flag in $LDFLAGS; do
9470           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9471             aix_use_runtimelinking=yes
9472             break
9473           fi
9474           done
9475           ;;
9476         esac
9477
9478         exp_sym_flag='-bexport'
9479         no_entry_flag='-bnoentry'
9480       fi
9481
9482       # When large executables or shared objects are built, AIX ld can
9483       # have problems creating the table of contents.  If linking a library
9484       # or program results in "error TOC overflow" add -mminimal-toc to
9485       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9486       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9487
9488       archive_cmds=''
9489       hardcode_direct=yes
9490       hardcode_direct_absolute=yes
9491       hardcode_libdir_separator=':'
9492       link_all_deplibs=yes
9493       file_list_spec='${wl}-f,'
9494
9495       if test "$GCC" = yes; then
9496         case $host_os in aix4.[012]|aix4.[012].*)
9497         # We only want to do this on AIX 4.2 and lower, the check
9498         # below for broken collect2 doesn't work under 4.3+
9499           collect2name=`${CC} -print-prog-name=collect2`
9500           if test -f "$collect2name" &&
9501            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9502           then
9503           # We have reworked collect2
9504           :
9505           else
9506           # We have old collect2
9507           hardcode_direct=unsupported
9508           # It fails to find uninstalled libraries when the uninstalled
9509           # path is not listed in the libpath.  Setting hardcode_minus_L
9510           # to unsupported forces relinking
9511           hardcode_minus_L=yes
9512           hardcode_libdir_flag_spec='-L$libdir'
9513           hardcode_libdir_separator=
9514           fi
9515           ;;
9516         esac
9517         shared_flag='-shared'
9518         if test "$aix_use_runtimelinking" = yes; then
9519           shared_flag="$shared_flag "'${wl}-G'
9520         fi
9521         link_all_deplibs=no
9522       else
9523         # not using gcc
9524         if test "$host_cpu" = ia64; then
9525         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9526         # chokes on -Wl,-G. The following line is correct:
9527           shared_flag='-G'
9528         else
9529           if test "$aix_use_runtimelinking" = yes; then
9530             shared_flag='${wl}-G'
9531           else
9532             shared_flag='${wl}-bM:SRE'
9533           fi
9534         fi
9535       fi
9536
9537       export_dynamic_flag_spec='${wl}-bexpall'
9538       # It seems that -bexpall does not export symbols beginning with
9539       # underscore (_), so it is better to generate a list of symbols to export.
9540       always_export_symbols=yes
9541       if test "$aix_use_runtimelinking" = yes; then
9542         # Warning - without using the other runtime loading flags (-brtl),
9543         # -berok will link without error, but may produce a broken library.
9544         allow_undefined_flag='-berok'
9545         # Determine the default libpath from the value encoded in an
9546         # empty executable.
9547         if test "${lt_cv_aix_libpath+set}" = set; then
9548   aix_libpath=$lt_cv_aix_libpath
9549 else
9550   if ${lt_cv_aix_libpath_+:} false; then :
9551   $as_echo_n "(cached) " >&6
9552 else
9553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h.  */
9555
9556 int
9557 main ()
9558 {
9559
9560   ;
9561   return 0;
9562 }
9563 _ACEOF
9564 if ac_fn_c_try_link "$LINENO"; then :
9565
9566   lt_aix_libpath_sed='
9567       /Import File Strings/,/^$/ {
9568           /^0/ {
9569               s/^0  *\([^ ]*\) *$/\1/
9570               p
9571           }
9572       }'
9573   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9574   # Check for a 64-bit object if we didn't find anything.
9575   if test -z "$lt_cv_aix_libpath_"; then
9576     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9577   fi
9578 fi
9579 rm -f core conftest.err conftest.$ac_objext \
9580     conftest$ac_exeext conftest.$ac_ext
9581   if test -z "$lt_cv_aix_libpath_"; then
9582     lt_cv_aix_libpath_="/usr/lib:/lib"
9583   fi
9584
9585 fi
9586
9587   aix_libpath=$lt_cv_aix_libpath_
9588 fi
9589
9590         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9591         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"
9592       else
9593         if test "$host_cpu" = ia64; then
9594           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9595           allow_undefined_flag="-z nodefs"
9596           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"
9597         else
9598          # Determine the default libpath from the value encoded in an
9599          # empty executable.
9600          if test "${lt_cv_aix_libpath+set}" = set; then
9601   aix_libpath=$lt_cv_aix_libpath
9602 else
9603   if ${lt_cv_aix_libpath_+:} false; then :
9604   $as_echo_n "(cached) " >&6
9605 else
9606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h.  */
9608
9609 int
9610 main ()
9611 {
9612
9613   ;
9614   return 0;
9615 }
9616 _ACEOF
9617 if ac_fn_c_try_link "$LINENO"; then :
9618
9619   lt_aix_libpath_sed='
9620       /Import File Strings/,/^$/ {
9621           /^0/ {
9622               s/^0  *\([^ ]*\) *$/\1/
9623               p
9624           }
9625       }'
9626   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9627   # Check for a 64-bit object if we didn't find anything.
9628   if test -z "$lt_cv_aix_libpath_"; then
9629     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9630   fi
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext \
9633     conftest$ac_exeext conftest.$ac_ext
9634   if test -z "$lt_cv_aix_libpath_"; then
9635     lt_cv_aix_libpath_="/usr/lib:/lib"
9636   fi
9637
9638 fi
9639
9640   aix_libpath=$lt_cv_aix_libpath_
9641 fi
9642
9643          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9644           # Warning - without using the other run time loading flags,
9645           # -berok will link without error, but may produce a broken library.
9646           no_undefined_flag=' ${wl}-bernotok'
9647           allow_undefined_flag=' ${wl}-berok'
9648           if test "$with_gnu_ld" = yes; then
9649             # We only use this code for GNU lds that support --whole-archive.
9650             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9651           else
9652             # Exported symbols can be pulled into shared objects from archives
9653             whole_archive_flag_spec='$convenience'
9654           fi
9655           archive_cmds_need_lc=yes
9656           # This is similar to how AIX traditionally builds its shared libraries.
9657           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'
9658         fi
9659       fi
9660       ;;
9661
9662     amigaos*)
9663       case $host_cpu in
9664       powerpc)
9665             # see comment about AmigaOS4 .so support
9666             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9667             archive_expsym_cmds=''
9668         ;;
9669       m68k)
9670             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)'
9671             hardcode_libdir_flag_spec='-L$libdir'
9672             hardcode_minus_L=yes
9673         ;;
9674       esac
9675       ;;
9676
9677     bsdi[45]*)
9678       export_dynamic_flag_spec=-rdynamic
9679       ;;
9680
9681     cygwin* | mingw* | pw32* | cegcc*)
9682       # When not using gcc, we currently assume that we are using
9683       # Microsoft Visual C++.
9684       # hardcode_libdir_flag_spec is actually meaningless, as there is
9685       # no search path for DLLs.
9686       case $cc_basename in
9687       cl*)
9688         # Native MSVC
9689         hardcode_libdir_flag_spec=' '
9690         allow_undefined_flag=unsupported
9691         always_export_symbols=yes
9692         file_list_spec='@'
9693         # Tell ltmain to make .lib files, not .a files.
9694         libext=lib
9695         # Tell ltmain to make .dll files, not .so files.
9696         shrext_cmds=".dll"
9697         # FIXME: Setting linknames here is a bad hack.
9698         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9699         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9700             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9701           else
9702             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9703           fi~
9704           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9705           linknames='
9706         # The linker will not automatically build a static lib if we build a DLL.
9707         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9708         enable_shared_with_static_runtimes=yes
9709         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9710         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9711         # Don't use ranlib
9712         old_postinstall_cmds='chmod 644 $oldlib'
9713         postlink_cmds='lt_outputfile="@OUTPUT@"~
9714           lt_tool_outputfile="@TOOL_OUTPUT@"~
9715           case $lt_outputfile in
9716             *.exe|*.EXE) ;;
9717             *)
9718               lt_outputfile="$lt_outputfile.exe"
9719               lt_tool_outputfile="$lt_tool_outputfile.exe"
9720               ;;
9721           esac~
9722           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9723             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9724             $RM "$lt_outputfile.manifest";
9725           fi'
9726         ;;
9727       *)
9728         # Assume MSVC wrapper
9729         hardcode_libdir_flag_spec=' '
9730         allow_undefined_flag=unsupported
9731         # Tell ltmain to make .lib files, not .a files.
9732         libext=lib
9733         # Tell ltmain to make .dll files, not .so files.
9734         shrext_cmds=".dll"
9735         # FIXME: Setting linknames here is a bad hack.
9736         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9737         # The linker will automatically build a .lib file if we build a DLL.
9738         old_archive_from_new_cmds='true'
9739         # FIXME: Should let the user specify the lib program.
9740         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9741         enable_shared_with_static_runtimes=yes
9742         ;;
9743       esac
9744       ;;
9745
9746     darwin* | rhapsody*)
9747
9748
9749   archive_cmds_need_lc=no
9750   hardcode_direct=no
9751   hardcode_automatic=yes
9752   hardcode_shlibpath_var=unsupported
9753   if test "$lt_cv_ld_force_load" = "yes"; then
9754     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\"`'
9755
9756   else
9757     whole_archive_flag_spec=''
9758   fi
9759   link_all_deplibs=yes
9760   allow_undefined_flag="$_lt_dar_allow_undefined"
9761   case $cc_basename in
9762      ifort*) _lt_dar_can_shared=yes ;;
9763      *) _lt_dar_can_shared=$GCC ;;
9764   esac
9765   if test "$_lt_dar_can_shared" = "yes"; then
9766     output_verbose_link_cmd=func_echo_all
9767     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9768     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9769     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}"
9770     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}"
9771
9772   else
9773   ld_shlibs=no
9774   fi
9775
9776       ;;
9777
9778     dgux*)
9779       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9780       hardcode_libdir_flag_spec='-L$libdir'
9781       hardcode_shlibpath_var=no
9782       ;;
9783
9784     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9785     # support.  Future versions do this automatically, but an explicit c++rt0.o
9786     # does not break anything, and helps significantly (at the cost of a little
9787     # extra space).
9788     freebsd2.2*)
9789       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9790       hardcode_libdir_flag_spec='-R$libdir'
9791       hardcode_direct=yes
9792       hardcode_shlibpath_var=no
9793       ;;
9794
9795     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9796     freebsd2.*)
9797       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9798       hardcode_direct=yes
9799       hardcode_minus_L=yes
9800       hardcode_shlibpath_var=no
9801       ;;
9802
9803     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9804     freebsd* | dragonfly*)
9805       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9806       hardcode_libdir_flag_spec='-R$libdir'
9807       hardcode_direct=yes
9808       hardcode_shlibpath_var=no
9809       ;;
9810
9811     hpux9*)
9812       if test "$GCC" = yes; then
9813         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'
9814       else
9815         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'
9816       fi
9817       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9818       hardcode_libdir_separator=:
9819       hardcode_direct=yes
9820
9821       # hardcode_minus_L: Not really in the search PATH,
9822       # but as the default location of the library.
9823       hardcode_minus_L=yes
9824       export_dynamic_flag_spec='${wl}-E'
9825       ;;
9826
9827     hpux10*)
9828       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9829         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9830       else
9831         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9832       fi
9833       if test "$with_gnu_ld" = no; then
9834         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9835         hardcode_libdir_separator=:
9836         hardcode_direct=yes
9837         hardcode_direct_absolute=yes
9838         export_dynamic_flag_spec='${wl}-E'
9839         # hardcode_minus_L: Not really in the search PATH,
9840         # but as the default location of the library.
9841         hardcode_minus_L=yes
9842       fi
9843       ;;
9844
9845     hpux11*)
9846       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9847         case $host_cpu in
9848         hppa*64*)
9849           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9850           ;;
9851         ia64*)
9852           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9853           ;;
9854         *)
9855           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9856           ;;
9857         esac
9858       else
9859         case $host_cpu in
9860         hppa*64*)
9861           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9862           ;;
9863         ia64*)
9864           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9865           ;;
9866         *)
9867
9868           # Older versions of the 11.00 compiler do not understand -b yet
9869           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9870           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9871 $as_echo_n "checking if $CC understands -b... " >&6; }
9872 if ${lt_cv_prog_compiler__b+:} false; then :
9873   $as_echo_n "(cached) " >&6
9874 else
9875   lt_cv_prog_compiler__b=no
9876    save_LDFLAGS="$LDFLAGS"
9877    LDFLAGS="$LDFLAGS -b"
9878    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9879    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9880      # The linker can only warn and ignore the option if not recognized
9881      # So say no if there are warnings
9882      if test -s conftest.err; then
9883        # Append any errors to the config.log.
9884        cat conftest.err 1>&5
9885        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9886        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9887        if diff conftest.exp conftest.er2 >/dev/null; then
9888          lt_cv_prog_compiler__b=yes
9889        fi
9890      else
9891        lt_cv_prog_compiler__b=yes
9892      fi
9893    fi
9894    $RM -r conftest*
9895    LDFLAGS="$save_LDFLAGS"
9896
9897 fi
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9899 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9900
9901 if test x"$lt_cv_prog_compiler__b" = xyes; then
9902     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9903 else
9904     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9905 fi
9906
9907           ;;
9908         esac
9909       fi
9910       if test "$with_gnu_ld" = no; then
9911         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9912         hardcode_libdir_separator=:
9913
9914         case $host_cpu in
9915         hppa*64*|ia64*)
9916           hardcode_direct=no
9917           hardcode_shlibpath_var=no
9918           ;;
9919         *)
9920           hardcode_direct=yes
9921           hardcode_direct_absolute=yes
9922           export_dynamic_flag_spec='${wl}-E'
9923
9924           # hardcode_minus_L: Not really in the search PATH,
9925           # but as the default location of the library.
9926           hardcode_minus_L=yes
9927           ;;
9928         esac
9929       fi
9930       ;;
9931
9932     irix5* | irix6* | nonstopux*)
9933       if test "$GCC" = yes; then
9934         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'
9935         # Try to use the -exported_symbol ld option, if it does not
9936         # work, assume that -exports_file does not work either and
9937         # implicitly export all symbols.
9938         # This should be the same for all languages, so no per-tag cache variable.
9939         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9940 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9941 if ${lt_cv_irix_exported_symbol+:} false; then :
9942   $as_echo_n "(cached) " >&6
9943 else
9944   save_LDFLAGS="$LDFLAGS"
9945            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9946            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h.  */
9948 int foo (void) { return 0; }
9949 _ACEOF
9950 if ac_fn_c_try_link "$LINENO"; then :
9951   lt_cv_irix_exported_symbol=yes
9952 else
9953   lt_cv_irix_exported_symbol=no
9954 fi
9955 rm -f core conftest.err conftest.$ac_objext \
9956     conftest$ac_exeext conftest.$ac_ext
9957            LDFLAGS="$save_LDFLAGS"
9958 fi
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9960 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9961         if test "$lt_cv_irix_exported_symbol" = yes; then
9962           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'
9963         fi
9964       else
9965         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'
9966         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'
9967       fi
9968       archive_cmds_need_lc='no'
9969       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9970       hardcode_libdir_separator=:
9971       inherit_rpath=yes
9972       link_all_deplibs=yes
9973       ;;
9974
9975     netbsd* | netbsdelf*-gnu)
9976       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9977         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9978       else
9979         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9980       fi
9981       hardcode_libdir_flag_spec='-R$libdir'
9982       hardcode_direct=yes
9983       hardcode_shlibpath_var=no
9984       ;;
9985
9986     newsos6)
9987       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988       hardcode_direct=yes
9989       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9990       hardcode_libdir_separator=:
9991       hardcode_shlibpath_var=no
9992       ;;
9993
9994     *nto* | *qnx*)
9995       ;;
9996
9997     openbsd*)
9998       if test -f /usr/libexec/ld.so; then
9999         hardcode_direct=yes
10000         hardcode_shlibpath_var=no
10001         hardcode_direct_absolute=yes
10002         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10003           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10004           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10005           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10006           export_dynamic_flag_spec='${wl}-E'
10007         else
10008           case $host_os in
10009            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10010              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10011              hardcode_libdir_flag_spec='-R$libdir'
10012              ;;
10013            *)
10014              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10015              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10016              ;;
10017           esac
10018         fi
10019       else
10020         ld_shlibs=no
10021       fi
10022       ;;
10023
10024     os2*)
10025       hardcode_libdir_flag_spec='-L$libdir'
10026       hardcode_minus_L=yes
10027       allow_undefined_flag=unsupported
10028       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'
10029       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10030       ;;
10031
10032     osf3*)
10033       if test "$GCC" = yes; then
10034         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10035         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'
10036       else
10037         allow_undefined_flag=' -expect_unresolved \*'
10038         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'
10039       fi
10040       archive_cmds_need_lc='no'
10041       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10042       hardcode_libdir_separator=:
10043       ;;
10044
10045     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10046       if test "$GCC" = yes; then
10047         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10048         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'
10049         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10050       else
10051         allow_undefined_flag=' -expect_unresolved \*'
10052         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'
10053         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~
10054         $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'
10055
10056         # Both c and cxx compiler support -rpath directly
10057         hardcode_libdir_flag_spec='-rpath $libdir'
10058       fi
10059       archive_cmds_need_lc='no'
10060       hardcode_libdir_separator=:
10061       ;;
10062
10063     solaris*)
10064       no_undefined_flag=' -z defs'
10065       if test "$GCC" = yes; then
10066         wlarc='${wl}'
10067         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10068         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10069           $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'
10070       else
10071         case `$CC -V 2>&1` in
10072         *"Compilers 5.0"*)
10073           wlarc=''
10074           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10076           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10077           ;;
10078         *)
10079           wlarc='${wl}'
10080           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10081           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10082           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10083           ;;
10084         esac
10085       fi
10086       hardcode_libdir_flag_spec='-R$libdir'
10087       hardcode_shlibpath_var=no
10088       case $host_os in
10089       solaris2.[0-5] | solaris2.[0-5].*) ;;
10090       *)
10091         # The compiler driver will combine and reorder linker options,
10092         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10093         # but is careful enough not to reorder.
10094         # Supported since Solaris 2.6 (maybe 2.5.1?)
10095         if test "$GCC" = yes; then
10096           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10097         else
10098           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10099         fi
10100         ;;
10101       esac
10102       link_all_deplibs=yes
10103       ;;
10104
10105     sunos4*)
10106       if test "x$host_vendor" = xsequent; then
10107         # Use $CC to link under sequent, because it throws in some extra .o
10108         # files that make .init and .fini sections work.
10109         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10110       else
10111         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10112       fi
10113       hardcode_libdir_flag_spec='-L$libdir'
10114       hardcode_direct=yes
10115       hardcode_minus_L=yes
10116       hardcode_shlibpath_var=no
10117       ;;
10118
10119     sysv4)
10120       case $host_vendor in
10121         sni)
10122           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123           hardcode_direct=yes # is this really true???
10124         ;;
10125         siemens)
10126           ## LD is ld it makes a PLAMLIB
10127           ## CC just makes a GrossModule.
10128           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10129           reload_cmds='$CC -r -o $output$reload_objs'
10130           hardcode_direct=no
10131         ;;
10132         motorola)
10133           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10135         ;;
10136       esac
10137       runpath_var='LD_RUN_PATH'
10138       hardcode_shlibpath_var=no
10139       ;;
10140
10141     sysv4.3*)
10142       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10143       hardcode_shlibpath_var=no
10144       export_dynamic_flag_spec='-Bexport'
10145       ;;
10146
10147     sysv4*MP*)
10148       if test -d /usr/nec; then
10149         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150         hardcode_shlibpath_var=no
10151         runpath_var=LD_RUN_PATH
10152         hardcode_runpath_var=yes
10153         ld_shlibs=yes
10154       fi
10155       ;;
10156
10157     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10158       no_undefined_flag='${wl}-z,text'
10159       archive_cmds_need_lc=no
10160       hardcode_shlibpath_var=no
10161       runpath_var='LD_RUN_PATH'
10162
10163       if test "$GCC" = yes; then
10164         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10165         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10166       else
10167         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10168         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10169       fi
10170       ;;
10171
10172     sysv5* | sco3.2v5* | sco5v6*)
10173       # Note: We can NOT use -z defs as we might desire, because we do not
10174       # link with -lc, and that would cause any symbols used from libc to
10175       # always be unresolved, which means just about no library would
10176       # ever link correctly.  If we're not using GNU ld we use -z text
10177       # though, which does catch some bad symbols but isn't as heavy-handed
10178       # as -z defs.
10179       no_undefined_flag='${wl}-z,text'
10180       allow_undefined_flag='${wl}-z,nodefs'
10181       archive_cmds_need_lc=no
10182       hardcode_shlibpath_var=no
10183       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10184       hardcode_libdir_separator=':'
10185       link_all_deplibs=yes
10186       export_dynamic_flag_spec='${wl}-Bexport'
10187       runpath_var='LD_RUN_PATH'
10188
10189       if test "$GCC" = yes; then
10190         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10191         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192       else
10193         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195       fi
10196       ;;
10197
10198     uts4*)
10199       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200       hardcode_libdir_flag_spec='-L$libdir'
10201       hardcode_shlibpath_var=no
10202       ;;
10203
10204     *)
10205       ld_shlibs=no
10206       ;;
10207     esac
10208
10209     if test x$host_vendor = xsni; then
10210       case $host in
10211       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10212         export_dynamic_flag_spec='${wl}-Blargedynsym'
10213         ;;
10214       esac
10215     fi
10216   fi
10217
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10219 $as_echo "$ld_shlibs" >&6; }
10220 test "$ld_shlibs" = no && can_build_shared=no
10221
10222 with_gnu_ld=$with_gnu_ld
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238 #
10239 # Do we need to explicitly link libc?
10240 #
10241 case "x$archive_cmds_need_lc" in
10242 x|xyes)
10243   # Assume -lc should be added
10244   archive_cmds_need_lc=yes
10245
10246   if test "$enable_shared" = yes && test "$GCC" = yes; then
10247     case $archive_cmds in
10248     *'~'*)
10249       # FIXME: we may have to deal with multi-command sequences.
10250       ;;
10251     '$CC '*)
10252       # Test whether the compiler implicitly links with -lc since on some
10253       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10254       # to ld, don't add -lc before -lgcc.
10255       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10256 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10257 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10258   $as_echo_n "(cached) " >&6
10259 else
10260   $RM conftest*
10261         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10262
10263         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10264   (eval $ac_compile) 2>&5
10265   ac_status=$?
10266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10267   test $ac_status = 0; } 2>conftest.err; then
10268           soname=conftest
10269           lib=conftest
10270           libobjs=conftest.$ac_objext
10271           deplibs=
10272           wl=$lt_prog_compiler_wl
10273           pic_flag=$lt_prog_compiler_pic
10274           compiler_flags=-v
10275           linker_flags=-v
10276           verstring=
10277           output_objdir=.
10278           libname=conftest
10279           lt_save_allow_undefined_flag=$allow_undefined_flag
10280           allow_undefined_flag=
10281           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10282   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10283   ac_status=$?
10284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10285   test $ac_status = 0; }
10286           then
10287             lt_cv_archive_cmds_need_lc=no
10288           else
10289             lt_cv_archive_cmds_need_lc=yes
10290           fi
10291           allow_undefined_flag=$lt_save_allow_undefined_flag
10292         else
10293           cat conftest.err 1>&5
10294         fi
10295         $RM conftest*
10296
10297 fi
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10299 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10300       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10301       ;;
10302     esac
10303   fi
10304   ;;
10305 esac
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10459 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10460
10461 if test "$GCC" = yes; then
10462   case $host_os in
10463     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10464     *) lt_awk_arg="/^libraries:/" ;;
10465   esac
10466   case $host_os in
10467     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10468     *) lt_sed_strip_eq="s,=/,/,g" ;;
10469   esac
10470   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10471   case $lt_search_path_spec in
10472   *\;*)
10473     # if the path contains ";" then we assume it to be the separator
10474     # otherwise default to the standard path separator (i.e. ":") - it is
10475     # assumed that no part of a normal pathname contains ";" but that should
10476     # okay in the real world where ";" in dirpaths is itself problematic.
10477     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10478     ;;
10479   *)
10480     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10481     ;;
10482   esac
10483   # Ok, now we have the path, separated by spaces, we can step through it
10484   # and add multilib dir if necessary.
10485   lt_tmp_lt_search_path_spec=
10486   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10487   for lt_sys_path in $lt_search_path_spec; do
10488     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10489       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10490     else
10491       test -d "$lt_sys_path" && \
10492         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10493     fi
10494   done
10495   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10496 BEGIN {RS=" "; FS="/|\n";} {
10497   lt_foo="";
10498   lt_count=0;
10499   for (lt_i = NF; lt_i > 0; lt_i--) {
10500     if ($lt_i != "" && $lt_i != ".") {
10501       if ($lt_i == "..") {
10502         lt_count++;
10503       } else {
10504         if (lt_count == 0) {
10505           lt_foo="/" $lt_i lt_foo;
10506         } else {
10507           lt_count--;
10508         }
10509       }
10510     }
10511   }
10512   if (lt_foo != "") { lt_freq[lt_foo]++; }
10513   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10514 }'`
10515   # AWK program above erroneously prepends '/' to C:/dos/paths
10516   # for these hosts.
10517   case $host_os in
10518     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10519       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10520   esac
10521   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10522 else
10523   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10524 fi
10525 library_names_spec=
10526 libname_spec='lib$name'
10527 soname_spec=
10528 shrext_cmds=".so"
10529 postinstall_cmds=
10530 postuninstall_cmds=
10531 finish_cmds=
10532 finish_eval=
10533 shlibpath_var=
10534 shlibpath_overrides_runpath=unknown
10535 version_type=none
10536 dynamic_linker="$host_os ld.so"
10537 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10538 need_lib_prefix=unknown
10539 hardcode_into_libs=no
10540
10541 # when you set need_version to no, make sure it does not cause -set_version
10542 # flags to be left without arguments
10543 need_version=unknown
10544
10545 case $host_os in
10546 aix3*)
10547   version_type=linux # correct to gnu/linux during the next big refactor
10548   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10549   shlibpath_var=LIBPATH
10550
10551   # AIX 3 has no versioning support, so we append a major version to the name.
10552   soname_spec='${libname}${release}${shared_ext}$major'
10553   ;;
10554
10555 aix[4-9]*)
10556   version_type=linux # correct to gnu/linux during the next big refactor
10557   need_lib_prefix=no
10558   need_version=no
10559   hardcode_into_libs=yes
10560   if test "$host_cpu" = ia64; then
10561     # AIX 5 supports IA64
10562     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10563     shlibpath_var=LD_LIBRARY_PATH
10564   else
10565     # With GCC up to 2.95.x, collect2 would create an import file
10566     # for dependence libraries.  The import file would start with
10567     # the line `#! .'.  This would cause the generated library to
10568     # depend on `.', always an invalid library.  This was fixed in
10569     # development snapshots of GCC prior to 3.0.
10570     case $host_os in
10571       aix4 | aix4.[01] | aix4.[01].*)
10572       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10573            echo ' yes '
10574            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10575         :
10576       else
10577         can_build_shared=no
10578       fi
10579       ;;
10580     esac
10581     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10582     # soname into executable. Probably we can add versioning support to
10583     # collect2, so additional links can be useful in future.
10584     if test "$aix_use_runtimelinking" = yes; then
10585       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10586       # instead of lib<name>.a to let people know that these are not
10587       # typical AIX shared libraries.
10588       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589     else
10590       # We preserve .a as extension for shared libraries through AIX4.2
10591       # and later when we are not doing run time linking.
10592       library_names_spec='${libname}${release}.a $libname.a'
10593       soname_spec='${libname}${release}${shared_ext}$major'
10594     fi
10595     shlibpath_var=LIBPATH
10596   fi
10597   ;;
10598
10599 amigaos*)
10600   case $host_cpu in
10601   powerpc)
10602     # Since July 2007 AmigaOS4 officially supports .so libraries.
10603     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10604     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605     ;;
10606   m68k)
10607     library_names_spec='$libname.ixlibrary $libname.a'
10608     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10609     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'
10610     ;;
10611   esac
10612   ;;
10613
10614 beos*)
10615   library_names_spec='${libname}${shared_ext}'
10616   dynamic_linker="$host_os ld.so"
10617   shlibpath_var=LIBRARY_PATH
10618   ;;
10619
10620 bsdi[45]*)
10621   version_type=linux # correct to gnu/linux during the next big refactor
10622   need_version=no
10623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624   soname_spec='${libname}${release}${shared_ext}$major'
10625   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10626   shlibpath_var=LD_LIBRARY_PATH
10627   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10628   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10629   # the default ld.so.conf also contains /usr/contrib/lib and
10630   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10631   # libtool to hard-code these into programs
10632   ;;
10633
10634 cygwin* | mingw* | pw32* | cegcc*)
10635   version_type=windows
10636   shrext_cmds=".dll"
10637   need_version=no
10638   need_lib_prefix=no
10639
10640   case $GCC,$cc_basename in
10641   yes,*)
10642     # gcc
10643     library_names_spec='$libname.dll.a'
10644     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10645     postinstall_cmds='base_file=`basename \${file}`~
10646       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10647       dldir=$destdir/`dirname \$dlpath`~
10648       test -d \$dldir || mkdir -p \$dldir~
10649       $install_prog $dir/$dlname \$dldir/$dlname~
10650       chmod a+x \$dldir/$dlname~
10651       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10652         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10653       fi'
10654     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10655       dlpath=$dir/\$dldll~
10656        $RM \$dlpath'
10657     shlibpath_overrides_runpath=yes
10658
10659     case $host_os in
10660     cygwin*)
10661       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10662       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10663
10664       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10665       ;;
10666     mingw* | cegcc*)
10667       # MinGW DLLs use traditional 'lib' prefix
10668       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10669       ;;
10670     pw32*)
10671       # pw32 DLLs use 'pw' prefix rather than 'lib'
10672       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10673       ;;
10674     esac
10675     dynamic_linker='Win32 ld.exe'
10676     ;;
10677
10678   *,cl*)
10679     # Native MSVC
10680     libname_spec='$name'
10681     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10682     library_names_spec='${libname}.dll.lib'
10683
10684     case $build_os in
10685     mingw*)
10686       sys_lib_search_path_spec=
10687       lt_save_ifs=$IFS
10688       IFS=';'
10689       for lt_path in $LIB
10690       do
10691         IFS=$lt_save_ifs
10692         # Let DOS variable expansion print the short 8.3 style file name.
10693         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10694         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10695       done
10696       IFS=$lt_save_ifs
10697       # Convert to MSYS style.
10698       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10699       ;;
10700     cygwin*)
10701       # Convert to unix form, then to dos form, then back to unix form
10702       # but this time dos style (no spaces!) so that the unix form looks
10703       # like /cygdrive/c/PROGRA~1:/cygdr...
10704       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10705       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10706       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10707       ;;
10708     *)
10709       sys_lib_search_path_spec="$LIB"
10710       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10711         # It is most probably a Windows format PATH.
10712         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10713       else
10714         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10715       fi
10716       # FIXME: find the short name or the path components, as spaces are
10717       # common. (e.g. "Program Files" -> "PROGRA~1")
10718       ;;
10719     esac
10720
10721     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10722     postinstall_cmds='base_file=`basename \${file}`~
10723       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10724       dldir=$destdir/`dirname \$dlpath`~
10725       test -d \$dldir || mkdir -p \$dldir~
10726       $install_prog $dir/$dlname \$dldir/$dlname'
10727     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10728       dlpath=$dir/\$dldll~
10729        $RM \$dlpath'
10730     shlibpath_overrides_runpath=yes
10731     dynamic_linker='Win32 link.exe'
10732     ;;
10733
10734   *)
10735     # Assume MSVC wrapper
10736     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10737     dynamic_linker='Win32 ld.exe'
10738     ;;
10739   esac
10740   # FIXME: first we should search . and the directory the executable is in
10741   shlibpath_var=PATH
10742   ;;
10743
10744 darwin* | rhapsody*)
10745   dynamic_linker="$host_os dyld"
10746   version_type=darwin
10747   need_lib_prefix=no
10748   need_version=no
10749   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10750   soname_spec='${libname}${release}${major}$shared_ext'
10751   shlibpath_overrides_runpath=yes
10752   shlibpath_var=DYLD_LIBRARY_PATH
10753   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10754
10755   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10756   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10757   ;;
10758
10759 dgux*)
10760   version_type=linux # correct to gnu/linux during the next big refactor
10761   need_lib_prefix=no
10762   need_version=no
10763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10764   soname_spec='${libname}${release}${shared_ext}$major'
10765   shlibpath_var=LD_LIBRARY_PATH
10766   ;;
10767
10768 freebsd* | dragonfly*)
10769   # DragonFly does not have aout.  When/if they implement a new
10770   # versioning mechanism, adjust this.
10771   if test -x /usr/bin/objformat; then
10772     objformat=`/usr/bin/objformat`
10773   else
10774     case $host_os in
10775     freebsd[23].*) objformat=aout ;;
10776     *) objformat=elf ;;
10777     esac
10778   fi
10779   version_type=freebsd-$objformat
10780   case $version_type in
10781     freebsd-elf*)
10782       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10783       need_version=no
10784       need_lib_prefix=no
10785       ;;
10786     freebsd-*)
10787       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10788       need_version=yes
10789       ;;
10790   esac
10791   shlibpath_var=LD_LIBRARY_PATH
10792   case $host_os in
10793   freebsd2.*)
10794     shlibpath_overrides_runpath=yes
10795     ;;
10796   freebsd3.[01]* | freebsdelf3.[01]*)
10797     shlibpath_overrides_runpath=yes
10798     hardcode_into_libs=yes
10799     ;;
10800   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10801   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10802     shlibpath_overrides_runpath=no
10803     hardcode_into_libs=yes
10804     ;;
10805   *) # from 4.6 on, and DragonFly
10806     shlibpath_overrides_runpath=yes
10807     hardcode_into_libs=yes
10808     ;;
10809   esac
10810   ;;
10811
10812 haiku*)
10813   version_type=linux # correct to gnu/linux during the next big refactor
10814   need_lib_prefix=no
10815   need_version=no
10816   dynamic_linker="$host_os runtime_loader"
10817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10818   soname_spec='${libname}${release}${shared_ext}$major'
10819   shlibpath_var=LIBRARY_PATH
10820   shlibpath_overrides_runpath=yes
10821   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10822   hardcode_into_libs=yes
10823   ;;
10824
10825 hpux9* | hpux10* | hpux11*)
10826   # Give a soname corresponding to the major version so that dld.sl refuses to
10827   # link against other versions.
10828   version_type=sunos
10829   need_lib_prefix=no
10830   need_version=no
10831   case $host_cpu in
10832   ia64*)
10833     shrext_cmds='.so'
10834     hardcode_into_libs=yes
10835     dynamic_linker="$host_os dld.so"
10836     shlibpath_var=LD_LIBRARY_PATH
10837     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839     soname_spec='${libname}${release}${shared_ext}$major'
10840     if test "X$HPUX_IA64_MODE" = X32; then
10841       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10842     else
10843       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10844     fi
10845     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10846     ;;
10847   hppa*64*)
10848     shrext_cmds='.sl'
10849     hardcode_into_libs=yes
10850     dynamic_linker="$host_os dld.sl"
10851     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10852     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10853     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854     soname_spec='${libname}${release}${shared_ext}$major'
10855     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10856     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10857     ;;
10858   *)
10859     shrext_cmds='.sl'
10860     dynamic_linker="$host_os dld.sl"
10861     shlibpath_var=SHLIB_PATH
10862     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10863     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864     soname_spec='${libname}${release}${shared_ext}$major'
10865     ;;
10866   esac
10867   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10868   postinstall_cmds='chmod 555 $lib'
10869   # or fails outright, so override atomically:
10870   install_override_mode=555
10871   ;;
10872
10873 interix[3-9]*)
10874   version_type=linux # correct to gnu/linux during the next big refactor
10875   need_lib_prefix=no
10876   need_version=no
10877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10878   soname_spec='${libname}${release}${shared_ext}$major'
10879   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10880   shlibpath_var=LD_LIBRARY_PATH
10881   shlibpath_overrides_runpath=no
10882   hardcode_into_libs=yes
10883   ;;
10884
10885 irix5* | irix6* | nonstopux*)
10886   case $host_os in
10887     nonstopux*) version_type=nonstopux ;;
10888     *)
10889         if test "$lt_cv_prog_gnu_ld" = yes; then
10890                 version_type=linux # correct to gnu/linux during the next big refactor
10891         else
10892                 version_type=irix
10893         fi ;;
10894   esac
10895   need_lib_prefix=no
10896   need_version=no
10897   soname_spec='${libname}${release}${shared_ext}$major'
10898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10899   case $host_os in
10900   irix5* | nonstopux*)
10901     libsuff= shlibsuff=
10902     ;;
10903   *)
10904     case $LD in # libtool.m4 will add one of these switches to LD
10905     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10906       libsuff= shlibsuff= libmagic=32-bit;;
10907     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10908       libsuff=32 shlibsuff=N32 libmagic=N32;;
10909     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10910       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10911     *) libsuff= shlibsuff= libmagic=never-match;;
10912     esac
10913     ;;
10914   esac
10915   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10916   shlibpath_overrides_runpath=no
10917   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10918   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10919   hardcode_into_libs=yes
10920   ;;
10921
10922 # No shared lib support for Linux oldld, aout, or coff.
10923 linux*oldld* | linux*aout* | linux*coff*)
10924   dynamic_linker=no
10925   ;;
10926
10927 # This must be glibc/ELF.
10928 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10929   version_type=linux # correct to gnu/linux during the next big refactor
10930   need_lib_prefix=no
10931   need_version=no
10932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10933   soname_spec='${libname}${release}${shared_ext}$major'
10934   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10935   shlibpath_var=LD_LIBRARY_PATH
10936   shlibpath_overrides_runpath=no
10937
10938   # Some binutils ld are patched to set DT_RUNPATH
10939   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10940   $as_echo_n "(cached) " >&6
10941 else
10942   lt_cv_shlibpath_overrides_runpath=no
10943     save_LDFLAGS=$LDFLAGS
10944     save_libdir=$libdir
10945     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10946          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10947     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h.  */
10949
10950 int
10951 main ()
10952 {
10953
10954   ;
10955   return 0;
10956 }
10957 _ACEOF
10958 if ac_fn_c_try_link "$LINENO"; then :
10959   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10960   lt_cv_shlibpath_overrides_runpath=yes
10961 fi
10962 fi
10963 rm -f core conftest.err conftest.$ac_objext \
10964     conftest$ac_exeext conftest.$ac_ext
10965     LDFLAGS=$save_LDFLAGS
10966     libdir=$save_libdir
10967
10968 fi
10969
10970   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10971
10972   # This implies no fast_install, which is unacceptable.
10973   # Some rework will be needed to allow for fast_install
10974   # before this can be enabled.
10975   hardcode_into_libs=yes
10976
10977   # Append ld.so.conf contents to the search path
10978   if test -f /etc/ld.so.conf; then
10979     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' ' '`
10980     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10981   fi
10982
10983   # We used to test for /lib/ld.so.1 and disable shared libraries on
10984   # powerpc, because MkLinux only supported shared libraries with the
10985   # GNU dynamic linker.  Since this was broken with cross compilers,
10986   # most powerpc-linux boxes support dynamic linking these days and
10987   # people can always --disable-shared, the test was removed, and we
10988   # assume the GNU/Linux dynamic linker is in use.
10989   dynamic_linker='GNU/Linux ld.so'
10990   ;;
10991
10992 netbsdelf*-gnu)
10993   version_type=linux
10994   need_lib_prefix=no
10995   need_version=no
10996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10997   soname_spec='${libname}${release}${shared_ext}$major'
10998   shlibpath_var=LD_LIBRARY_PATH
10999   shlibpath_overrides_runpath=no
11000   hardcode_into_libs=yes
11001   dynamic_linker='NetBSD ld.elf_so'
11002   ;;
11003
11004 netbsd*)
11005   version_type=sunos
11006   need_lib_prefix=no
11007   need_version=no
11008   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11009     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11010     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11011     dynamic_linker='NetBSD (a.out) ld.so'
11012   else
11013     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11014     soname_spec='${libname}${release}${shared_ext}$major'
11015     dynamic_linker='NetBSD ld.elf_so'
11016   fi
11017   shlibpath_var=LD_LIBRARY_PATH
11018   shlibpath_overrides_runpath=yes
11019   hardcode_into_libs=yes
11020   ;;
11021
11022 newsos6)
11023   version_type=linux # correct to gnu/linux during the next big refactor
11024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025   shlibpath_var=LD_LIBRARY_PATH
11026   shlibpath_overrides_runpath=yes
11027   ;;
11028
11029 *nto* | *qnx*)
11030   version_type=qnx
11031   need_lib_prefix=no
11032   need_version=no
11033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034   soname_spec='${libname}${release}${shared_ext}$major'
11035   shlibpath_var=LD_LIBRARY_PATH
11036   shlibpath_overrides_runpath=no
11037   hardcode_into_libs=yes
11038   dynamic_linker='ldqnx.so'
11039   ;;
11040
11041 openbsd*)
11042   version_type=sunos
11043   sys_lib_dlsearch_path_spec="/usr/lib"
11044   need_lib_prefix=no
11045   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11046   case $host_os in
11047     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11048     *)                          need_version=no  ;;
11049   esac
11050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11051   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11052   shlibpath_var=LD_LIBRARY_PATH
11053   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11054     case $host_os in
11055       openbsd2.[89] | openbsd2.[89].*)
11056         shlibpath_overrides_runpath=no
11057         ;;
11058       *)
11059         shlibpath_overrides_runpath=yes
11060         ;;
11061       esac
11062   else
11063     shlibpath_overrides_runpath=yes
11064   fi
11065   ;;
11066
11067 os2*)
11068   libname_spec='$name'
11069   shrext_cmds=".dll"
11070   need_lib_prefix=no
11071   library_names_spec='$libname${shared_ext} $libname.a'
11072   dynamic_linker='OS/2 ld.exe'
11073   shlibpath_var=LIBPATH
11074   ;;
11075
11076 osf3* | osf4* | osf5*)
11077   version_type=osf
11078   need_lib_prefix=no
11079   need_version=no
11080   soname_spec='${libname}${release}${shared_ext}$major'
11081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082   shlibpath_var=LD_LIBRARY_PATH
11083   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11084   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11085   ;;
11086
11087 rdos*)
11088   dynamic_linker=no
11089   ;;
11090
11091 solaris*)
11092   version_type=linux # correct to gnu/linux during the next big refactor
11093   need_lib_prefix=no
11094   need_version=no
11095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096   soname_spec='${libname}${release}${shared_ext}$major'
11097   shlibpath_var=LD_LIBRARY_PATH
11098   shlibpath_overrides_runpath=yes
11099   hardcode_into_libs=yes
11100   # ldd complains unless libraries are executable
11101   postinstall_cmds='chmod +x $lib'
11102   ;;
11103
11104 sunos4*)
11105   version_type=sunos
11106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11107   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11108   shlibpath_var=LD_LIBRARY_PATH
11109   shlibpath_overrides_runpath=yes
11110   if test "$with_gnu_ld" = yes; then
11111     need_lib_prefix=no
11112   fi
11113   need_version=yes
11114   ;;
11115
11116 sysv4 | sysv4.3*)
11117   version_type=linux # correct to gnu/linux during the next big refactor
11118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119   soname_spec='${libname}${release}${shared_ext}$major'
11120   shlibpath_var=LD_LIBRARY_PATH
11121   case $host_vendor in
11122     sni)
11123       shlibpath_overrides_runpath=no
11124       need_lib_prefix=no
11125       runpath_var=LD_RUN_PATH
11126       ;;
11127     siemens)
11128       need_lib_prefix=no
11129       ;;
11130     motorola)
11131       need_lib_prefix=no
11132       need_version=no
11133       shlibpath_overrides_runpath=no
11134       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11135       ;;
11136   esac
11137   ;;
11138
11139 sysv4*MP*)
11140   if test -d /usr/nec ;then
11141     version_type=linux # correct to gnu/linux during the next big refactor
11142     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11143     soname_spec='$libname${shared_ext}.$major'
11144     shlibpath_var=LD_LIBRARY_PATH
11145   fi
11146   ;;
11147
11148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11149   version_type=freebsd-elf
11150   need_lib_prefix=no
11151   need_version=no
11152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11153   soname_spec='${libname}${release}${shared_ext}$major'
11154   shlibpath_var=LD_LIBRARY_PATH
11155   shlibpath_overrides_runpath=yes
11156   hardcode_into_libs=yes
11157   if test "$with_gnu_ld" = yes; then
11158     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11159   else
11160     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11161     case $host_os in
11162       sco3.2v5*)
11163         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11164         ;;
11165     esac
11166   fi
11167   sys_lib_dlsearch_path_spec='/usr/lib'
11168   ;;
11169
11170 tpf*)
11171   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11172   version_type=linux # correct to gnu/linux during the next big refactor
11173   need_lib_prefix=no
11174   need_version=no
11175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176   shlibpath_var=LD_LIBRARY_PATH
11177   shlibpath_overrides_runpath=no
11178   hardcode_into_libs=yes
11179   ;;
11180
11181 uts4*)
11182   version_type=linux # correct to gnu/linux during the next big refactor
11183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184   soname_spec='${libname}${release}${shared_ext}$major'
11185   shlibpath_var=LD_LIBRARY_PATH
11186   ;;
11187
11188 *)
11189   dynamic_linker=no
11190   ;;
11191 esac
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11193 $as_echo "$dynamic_linker" >&6; }
11194 test "$dynamic_linker" = no && can_build_shared=no
11195
11196 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11197 if test "$GCC" = yes; then
11198   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11199 fi
11200
11201 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11202   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11203 fi
11204 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11205   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11206 fi
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11300 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11301 hardcode_action=
11302 if test -n "$hardcode_libdir_flag_spec" ||
11303    test -n "$runpath_var" ||
11304    test "X$hardcode_automatic" = "Xyes" ; then
11305
11306   # We can hardcode non-existent directories.
11307   if test "$hardcode_direct" != no &&
11308      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11309      # have to relink, otherwise we might link with an installed library
11310      # when we should be linking with a yet-to-be-installed one
11311      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11312      test "$hardcode_minus_L" != no; then
11313     # Linking always hardcodes the temporary library directory.
11314     hardcode_action=relink
11315   else
11316     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11317     hardcode_action=immediate
11318   fi
11319 else
11320   # We cannot hardcode anything, or else we can only hardcode existing
11321   # directories.
11322   hardcode_action=unsupported
11323 fi
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11325 $as_echo "$hardcode_action" >&6; }
11326
11327 if test "$hardcode_action" = relink ||
11328    test "$inherit_rpath" = yes; then
11329   # Fast installation is not supported
11330   enable_fast_install=no
11331 elif test "$shlibpath_overrides_runpath" = yes ||
11332      test "$enable_shared" = no; then
11333   # Fast installation is not necessary
11334   enable_fast_install=needless
11335 fi
11336
11337
11338
11339
11340
11341
11342   if test "x$enable_dlopen" != xyes; then
11343   enable_dlopen=unknown
11344   enable_dlopen_self=unknown
11345   enable_dlopen_self_static=unknown
11346 else
11347   lt_cv_dlopen=no
11348   lt_cv_dlopen_libs=
11349
11350   case $host_os in
11351   beos*)
11352     lt_cv_dlopen="load_add_on"
11353     lt_cv_dlopen_libs=
11354     lt_cv_dlopen_self=yes
11355     ;;
11356
11357   mingw* | pw32* | cegcc*)
11358     lt_cv_dlopen="LoadLibrary"
11359     lt_cv_dlopen_libs=
11360     ;;
11361
11362   cygwin*)
11363     lt_cv_dlopen="dlopen"
11364     lt_cv_dlopen_libs=
11365     ;;
11366
11367   darwin*)
11368   # if libdl is installed we need to link against it
11369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11370 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11371 if ${ac_cv_lib_dl_dlopen+:} false; then :
11372   $as_echo_n "(cached) " >&6
11373 else
11374   ac_check_lib_save_LIBS=$LIBS
11375 LIBS="-ldl  $LIBS"
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h.  */
11378
11379 /* Override any GCC internal prototype to avoid an error.
11380    Use char because int might match the return type of a GCC
11381    builtin and then its argument prototype would still apply.  */
11382 #ifdef __cplusplus
11383 extern "C"
11384 #endif
11385 char dlopen ();
11386 int
11387 main ()
11388 {
11389 return dlopen ();
11390   ;
11391   return 0;
11392 }
11393 _ACEOF
11394 if ac_fn_c_try_link "$LINENO"; then :
11395   ac_cv_lib_dl_dlopen=yes
11396 else
11397   ac_cv_lib_dl_dlopen=no
11398 fi
11399 rm -f core conftest.err conftest.$ac_objext \
11400     conftest$ac_exeext conftest.$ac_ext
11401 LIBS=$ac_check_lib_save_LIBS
11402 fi
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11404 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11405 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11406   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11407 else
11408
11409     lt_cv_dlopen="dyld"
11410     lt_cv_dlopen_libs=
11411     lt_cv_dlopen_self=yes
11412
11413 fi
11414
11415     ;;
11416
11417   *)
11418     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11419 if test "x$ac_cv_func_shl_load" = xyes; then :
11420   lt_cv_dlopen="shl_load"
11421 else
11422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11423 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11424 if ${ac_cv_lib_dld_shl_load+:} false; then :
11425   $as_echo_n "(cached) " >&6
11426 else
11427   ac_check_lib_save_LIBS=$LIBS
11428 LIBS="-ldld  $LIBS"
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h.  */
11431
11432 /* Override any GCC internal prototype to avoid an error.
11433    Use char because int might match the return type of a GCC
11434    builtin and then its argument prototype would still apply.  */
11435 #ifdef __cplusplus
11436 extern "C"
11437 #endif
11438 char shl_load ();
11439 int
11440 main ()
11441 {
11442 return shl_load ();
11443   ;
11444   return 0;
11445 }
11446 _ACEOF
11447 if ac_fn_c_try_link "$LINENO"; then :
11448   ac_cv_lib_dld_shl_load=yes
11449 else
11450   ac_cv_lib_dld_shl_load=no
11451 fi
11452 rm -f core conftest.err conftest.$ac_objext \
11453     conftest$ac_exeext conftest.$ac_ext
11454 LIBS=$ac_check_lib_save_LIBS
11455 fi
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11457 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11458 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11459   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11460 else
11461   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11462 if test "x$ac_cv_func_dlopen" = xyes; then :
11463   lt_cv_dlopen="dlopen"
11464 else
11465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11466 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11467 if ${ac_cv_lib_dl_dlopen+:} false; then :
11468   $as_echo_n "(cached) " >&6
11469 else
11470   ac_check_lib_save_LIBS=$LIBS
11471 LIBS="-ldl  $LIBS"
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h.  */
11474
11475 /* Override any GCC internal prototype to avoid an error.
11476    Use char because int might match the return type of a GCC
11477    builtin and then its argument prototype would still apply.  */
11478 #ifdef __cplusplus
11479 extern "C"
11480 #endif
11481 char dlopen ();
11482 int
11483 main ()
11484 {
11485 return dlopen ();
11486   ;
11487   return 0;
11488 }
11489 _ACEOF
11490 if ac_fn_c_try_link "$LINENO"; then :
11491   ac_cv_lib_dl_dlopen=yes
11492 else
11493   ac_cv_lib_dl_dlopen=no
11494 fi
11495 rm -f core conftest.err conftest.$ac_objext \
11496     conftest$ac_exeext conftest.$ac_ext
11497 LIBS=$ac_check_lib_save_LIBS
11498 fi
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11500 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11501 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11502   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11503 else
11504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11505 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11506 if ${ac_cv_lib_svld_dlopen+:} false; then :
11507   $as_echo_n "(cached) " >&6
11508 else
11509   ac_check_lib_save_LIBS=$LIBS
11510 LIBS="-lsvld  $LIBS"
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h.  */
11513
11514 /* Override any GCC internal prototype to avoid an error.
11515    Use char because int might match the return type of a GCC
11516    builtin and then its argument prototype would still apply.  */
11517 #ifdef __cplusplus
11518 extern "C"
11519 #endif
11520 char dlopen ();
11521 int
11522 main ()
11523 {
11524 return dlopen ();
11525   ;
11526   return 0;
11527 }
11528 _ACEOF
11529 if ac_fn_c_try_link "$LINENO"; then :
11530   ac_cv_lib_svld_dlopen=yes
11531 else
11532   ac_cv_lib_svld_dlopen=no
11533 fi
11534 rm -f core conftest.err conftest.$ac_objext \
11535     conftest$ac_exeext conftest.$ac_ext
11536 LIBS=$ac_check_lib_save_LIBS
11537 fi
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11539 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11540 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11541   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11542 else
11543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11544 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11545 if ${ac_cv_lib_dld_dld_link+:} false; then :
11546   $as_echo_n "(cached) " >&6
11547 else
11548   ac_check_lib_save_LIBS=$LIBS
11549 LIBS="-ldld  $LIBS"
11550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551 /* end confdefs.h.  */
11552
11553 /* Override any GCC internal prototype to avoid an error.
11554    Use char because int might match the return type of a GCC
11555    builtin and then its argument prototype would still apply.  */
11556 #ifdef __cplusplus
11557 extern "C"
11558 #endif
11559 char dld_link ();
11560 int
11561 main ()
11562 {
11563 return dld_link ();
11564   ;
11565   return 0;
11566 }
11567 _ACEOF
11568 if ac_fn_c_try_link "$LINENO"; then :
11569   ac_cv_lib_dld_dld_link=yes
11570 else
11571   ac_cv_lib_dld_dld_link=no
11572 fi
11573 rm -f core conftest.err conftest.$ac_objext \
11574     conftest$ac_exeext conftest.$ac_ext
11575 LIBS=$ac_check_lib_save_LIBS
11576 fi
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11578 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11579 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11580   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11581 fi
11582
11583
11584 fi
11585
11586
11587 fi
11588
11589
11590 fi
11591
11592
11593 fi
11594
11595
11596 fi
11597
11598     ;;
11599   esac
11600
11601   if test "x$lt_cv_dlopen" != xno; then
11602     enable_dlopen=yes
11603   else
11604     enable_dlopen=no
11605   fi
11606
11607   case $lt_cv_dlopen in
11608   dlopen)
11609     save_CPPFLAGS="$CPPFLAGS"
11610     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11611
11612     save_LDFLAGS="$LDFLAGS"
11613     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11614
11615     save_LIBS="$LIBS"
11616     LIBS="$lt_cv_dlopen_libs $LIBS"
11617
11618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11619 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11620 if ${lt_cv_dlopen_self+:} false; then :
11621   $as_echo_n "(cached) " >&6
11622 else
11623           if test "$cross_compiling" = yes; then :
11624   lt_cv_dlopen_self=cross
11625 else
11626   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11627   lt_status=$lt_dlunknown
11628   cat > conftest.$ac_ext <<_LT_EOF
11629 #line $LINENO "configure"
11630 #include "confdefs.h"
11631
11632 #if HAVE_DLFCN_H
11633 #include <dlfcn.h>
11634 #endif
11635
11636 #include <stdio.h>
11637
11638 #ifdef RTLD_GLOBAL
11639 #  define LT_DLGLOBAL           RTLD_GLOBAL
11640 #else
11641 #  ifdef DL_GLOBAL
11642 #    define LT_DLGLOBAL         DL_GLOBAL
11643 #  else
11644 #    define LT_DLGLOBAL         0
11645 #  endif
11646 #endif
11647
11648 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11649    find out it does not work in some platform. */
11650 #ifndef LT_DLLAZY_OR_NOW
11651 #  ifdef RTLD_LAZY
11652 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11653 #  else
11654 #    ifdef DL_LAZY
11655 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11656 #    else
11657 #      ifdef RTLD_NOW
11658 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11659 #      else
11660 #        ifdef DL_NOW
11661 #          define LT_DLLAZY_OR_NOW      DL_NOW
11662 #        else
11663 #          define LT_DLLAZY_OR_NOW      0
11664 #        endif
11665 #      endif
11666 #    endif
11667 #  endif
11668 #endif
11669
11670 /* When -fvisbility=hidden is used, assume the code has been annotated
11671    correspondingly for the symbols needed.  */
11672 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11673 int fnord () __attribute__((visibility("default")));
11674 #endif
11675
11676 int fnord () { return 42; }
11677 int main ()
11678 {
11679   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11680   int status = $lt_dlunknown;
11681
11682   if (self)
11683     {
11684       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11685       else
11686         {
11687           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11688           else puts (dlerror ());
11689         }
11690       /* dlclose (self); */
11691     }
11692   else
11693     puts (dlerror ());
11694
11695   return status;
11696 }
11697 _LT_EOF
11698   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11699   (eval $ac_link) 2>&5
11700   ac_status=$?
11701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11702   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11703     (./conftest; exit; ) >&5 2>/dev/null
11704     lt_status=$?
11705     case x$lt_status in
11706       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11707       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11708       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11709     esac
11710   else :
11711     # compilation failed
11712     lt_cv_dlopen_self=no
11713   fi
11714 fi
11715 rm -fr conftest*
11716
11717
11718 fi
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11720 $as_echo "$lt_cv_dlopen_self" >&6; }
11721
11722     if test "x$lt_cv_dlopen_self" = xyes; then
11723       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11724       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11725 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11726 if ${lt_cv_dlopen_self_static+:} false; then :
11727   $as_echo_n "(cached) " >&6
11728 else
11729           if test "$cross_compiling" = yes; then :
11730   lt_cv_dlopen_self_static=cross
11731 else
11732   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11733   lt_status=$lt_dlunknown
11734   cat > conftest.$ac_ext <<_LT_EOF
11735 #line $LINENO "configure"
11736 #include "confdefs.h"
11737
11738 #if HAVE_DLFCN_H
11739 #include <dlfcn.h>
11740 #endif
11741
11742 #include <stdio.h>
11743
11744 #ifdef RTLD_GLOBAL
11745 #  define LT_DLGLOBAL           RTLD_GLOBAL
11746 #else
11747 #  ifdef DL_GLOBAL
11748 #    define LT_DLGLOBAL         DL_GLOBAL
11749 #  else
11750 #    define LT_DLGLOBAL         0
11751 #  endif
11752 #endif
11753
11754 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11755    find out it does not work in some platform. */
11756 #ifndef LT_DLLAZY_OR_NOW
11757 #  ifdef RTLD_LAZY
11758 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11759 #  else
11760 #    ifdef DL_LAZY
11761 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11762 #    else
11763 #      ifdef RTLD_NOW
11764 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11765 #      else
11766 #        ifdef DL_NOW
11767 #          define LT_DLLAZY_OR_NOW      DL_NOW
11768 #        else
11769 #          define LT_DLLAZY_OR_NOW      0
11770 #        endif
11771 #      endif
11772 #    endif
11773 #  endif
11774 #endif
11775
11776 /* When -fvisbility=hidden is used, assume the code has been annotated
11777    correspondingly for the symbols needed.  */
11778 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11779 int fnord () __attribute__((visibility("default")));
11780 #endif
11781
11782 int fnord () { return 42; }
11783 int main ()
11784 {
11785   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11786   int status = $lt_dlunknown;
11787
11788   if (self)
11789     {
11790       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11791       else
11792         {
11793           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11794           else puts (dlerror ());
11795         }
11796       /* dlclose (self); */
11797     }
11798   else
11799     puts (dlerror ());
11800
11801   return status;
11802 }
11803 _LT_EOF
11804   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11805   (eval $ac_link) 2>&5
11806   ac_status=$?
11807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11808   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11809     (./conftest; exit; ) >&5 2>/dev/null
11810     lt_status=$?
11811     case x$lt_status in
11812       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11813       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11814       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11815     esac
11816   else :
11817     # compilation failed
11818     lt_cv_dlopen_self_static=no
11819   fi
11820 fi
11821 rm -fr conftest*
11822
11823
11824 fi
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11826 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11827     fi
11828
11829     CPPFLAGS="$save_CPPFLAGS"
11830     LDFLAGS="$save_LDFLAGS"
11831     LIBS="$save_LIBS"
11832     ;;
11833   esac
11834
11835   case $lt_cv_dlopen_self in
11836   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11837   *) enable_dlopen_self=unknown ;;
11838   esac
11839
11840   case $lt_cv_dlopen_self_static in
11841   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11842   *) enable_dlopen_self_static=unknown ;;
11843   esac
11844 fi
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862 striplib=
11863 old_striplib=
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11865 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11866 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11867   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11868   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11870 $as_echo "yes" >&6; }
11871 else
11872 # FIXME - insert some real tests, host_os isn't really good enough
11873   case $host_os in
11874   darwin*)
11875     if test -n "$STRIP" ; then
11876       striplib="$STRIP -x"
11877       old_striplib="$STRIP -S"
11878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879 $as_echo "yes" >&6; }
11880     else
11881       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11883     fi
11884     ;;
11885   *)
11886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11888     ;;
11889   esac
11890 fi
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903   # Report which library types will actually be built
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11905 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11907 $as_echo "$can_build_shared" >&6; }
11908
11909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11910 $as_echo_n "checking whether to build shared libraries... " >&6; }
11911   test "$can_build_shared" = "no" && enable_shared=no
11912
11913   # On AIX, shared libraries and static libraries use the same namespace, and
11914   # are all built from PIC.
11915   case $host_os in
11916   aix3*)
11917     test "$enable_shared" = yes && enable_static=no
11918     if test -n "$RANLIB"; then
11919       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11920       postinstall_cmds='$RANLIB $lib'
11921     fi
11922     ;;
11923
11924   aix[4-9]*)
11925     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11926       test "$enable_shared" = yes && enable_static=no
11927     fi
11928     ;;
11929   esac
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11931 $as_echo "$enable_shared" >&6; }
11932
11933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11934 $as_echo_n "checking whether to build static libraries... " >&6; }
11935   # Make sure either enable_shared or enable_static is yes.
11936   test "$enable_shared" = yes || enable_static=yes
11937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11938 $as_echo "$enable_static" >&6; }
11939
11940
11941
11942
11943 fi
11944 ac_ext=c
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949
11950 CC="$lt_save_CC"
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966         ac_config_commands="$ac_config_commands libtool"
11967
11968
11969
11970
11971 # Only expand once:
11972
11973
11974
11975 ac_ext=cpp
11976 ac_cpp='$CXXCPP $CPPFLAGS'
11977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11980 if test -z "$CXX"; then
11981   if test -n "$CCC"; then
11982     CXX=$CCC
11983   else
11984     if test -n "$ac_tool_prefix"; then
11985   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11986   do
11987     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11990 $as_echo_n "checking for $ac_word... " >&6; }
11991 if ${ac_cv_prog_CXX+:} false; then :
11992   $as_echo_n "(cached) " >&6
11993 else
11994   if test -n "$CXX"; then
11995   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11996 else
11997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11998 for as_dir in $PATH
11999 do
12000   IFS=$as_save_IFS
12001   test -z "$as_dir" && as_dir=.
12002     for ac_exec_ext in '' $ac_executable_extensions; do
12003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12004     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12006     break 2
12007   fi
12008 done
12009   done
12010 IFS=$as_save_IFS
12011
12012 fi
12013 fi
12014 CXX=$ac_cv_prog_CXX
12015 if test -n "$CXX"; then
12016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12017 $as_echo "$CXX" >&6; }
12018 else
12019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12021 fi
12022
12023
12024     test -n "$CXX" && break
12025   done
12026 fi
12027 if test -z "$CXX"; then
12028   ac_ct_CXX=$CXX
12029   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12030 do
12031   # Extract the first word of "$ac_prog", so it can be a program name with args.
12032 set dummy $ac_prog; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12036   $as_echo_n "(cached) " >&6
12037 else
12038   if test -n "$ac_ct_CXX"; then
12039   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12040 else
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12043 do
12044   IFS=$as_save_IFS
12045   test -z "$as_dir" && as_dir=.
12046     for ac_exec_ext in '' $ac_executable_extensions; do
12047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12048     ac_cv_prog_ac_ct_CXX="$ac_prog"
12049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050     break 2
12051   fi
12052 done
12053   done
12054 IFS=$as_save_IFS
12055
12056 fi
12057 fi
12058 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12059 if test -n "$ac_ct_CXX"; then
12060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12061 $as_echo "$ac_ct_CXX" >&6; }
12062 else
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12065 fi
12066
12067
12068   test -n "$ac_ct_CXX" && break
12069 done
12070
12071   if test "x$ac_ct_CXX" = x; then
12072     CXX="g++"
12073   else
12074     case $cross_compiling:$ac_tool_warned in
12075 yes:)
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12078 ac_tool_warned=yes ;;
12079 esac
12080     CXX=$ac_ct_CXX
12081   fi
12082 fi
12083
12084   fi
12085 fi
12086 # Provide some information about the compiler.
12087 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12088 set X $ac_compile
12089 ac_compiler=$2
12090 for ac_option in --version -v -V -qversion; do
12091   { { ac_try="$ac_compiler $ac_option >&5"
12092 case "(($ac_try" in
12093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094   *) ac_try_echo=$ac_try;;
12095 esac
12096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12097 $as_echo "$ac_try_echo"; } >&5
12098   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12099   ac_status=$?
12100   if test -s conftest.err; then
12101     sed '10a\
12102 ... rest of stderr output deleted ...
12103          10q' conftest.err >conftest.er1
12104     cat conftest.er1 >&5
12105   fi
12106   rm -f conftest.er1 conftest.err
12107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12108   test $ac_status = 0; }
12109 done
12110
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12112 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12113 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12114   $as_echo_n "(cached) " >&6
12115 else
12116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117 /* end confdefs.h.  */
12118
12119 int
12120 main ()
12121 {
12122 #ifndef __GNUC__
12123        choke me
12124 #endif
12125
12126   ;
12127   return 0;
12128 }
12129 _ACEOF
12130 if ac_fn_cxx_try_compile "$LINENO"; then :
12131   ac_compiler_gnu=yes
12132 else
12133   ac_compiler_gnu=no
12134 fi
12135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12136 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12137
12138 fi
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12140 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12141 if test $ac_compiler_gnu = yes; then
12142   GXX=yes
12143 else
12144   GXX=
12145 fi
12146 ac_test_CXXFLAGS=${CXXFLAGS+set}
12147 ac_save_CXXFLAGS=$CXXFLAGS
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12149 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12150 if ${ac_cv_prog_cxx_g+:} false; then :
12151   $as_echo_n "(cached) " >&6
12152 else
12153   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12154    ac_cxx_werror_flag=yes
12155    ac_cv_prog_cxx_g=no
12156    CXXFLAGS="-g"
12157    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h.  */
12159
12160 int
12161 main ()
12162 {
12163
12164   ;
12165   return 0;
12166 }
12167 _ACEOF
12168 if ac_fn_cxx_try_compile "$LINENO"; then :
12169   ac_cv_prog_cxx_g=yes
12170 else
12171   CXXFLAGS=""
12172       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h.  */
12174
12175 int
12176 main ()
12177 {
12178
12179   ;
12180   return 0;
12181 }
12182 _ACEOF
12183 if ac_fn_cxx_try_compile "$LINENO"; then :
12184
12185 else
12186   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12187          CXXFLAGS="-g"
12188          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h.  */
12190
12191 int
12192 main ()
12193 {
12194
12195   ;
12196   return 0;
12197 }
12198 _ACEOF
12199 if ac_fn_cxx_try_compile "$LINENO"; then :
12200   ac_cv_prog_cxx_g=yes
12201 fi
12202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12203 fi
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 fi
12206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12208 fi
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12210 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12211 if test "$ac_test_CXXFLAGS" = set; then
12212   CXXFLAGS=$ac_save_CXXFLAGS
12213 elif test $ac_cv_prog_cxx_g = yes; then
12214   if test "$GXX" = yes; then
12215     CXXFLAGS="-g -O2"
12216   else
12217     CXXFLAGS="-g"
12218   fi
12219 else
12220   if test "$GXX" = yes; then
12221     CXXFLAGS="-O2"
12222   else
12223     CXXFLAGS=
12224   fi
12225 fi
12226 ac_ext=c
12227 ac_cpp='$CPP $CPPFLAGS'
12228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12231
12232 depcc="$CXX"  am_compiler_list=
12233
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12235 $as_echo_n "checking dependency style of $depcc... " >&6; }
12236 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12237   $as_echo_n "(cached) " >&6
12238 else
12239   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12240   # We make a subdir and do the tests there.  Otherwise we can end up
12241   # making bogus files that we don't know about and never remove.  For
12242   # instance it was reported that on HP-UX the gcc test will end up
12243   # making a dummy file named `D' -- because `-MD' means `put the output
12244   # in D'.
12245   rm -rf conftest.dir
12246   mkdir conftest.dir
12247   # Copy depcomp to subdir because otherwise we won't find it if we're
12248   # using a relative directory.
12249   cp "$am_depcomp" conftest.dir
12250   cd conftest.dir
12251   # We will build objects and dependencies in a subdirectory because
12252   # it helps to detect inapplicable dependency modes.  For instance
12253   # both Tru64's cc and ICC support -MD to output dependencies as a
12254   # side effect of compilation, but ICC will put the dependencies in
12255   # the current directory while Tru64 will put them in the object
12256   # directory.
12257   mkdir sub
12258
12259   am_cv_CXX_dependencies_compiler_type=none
12260   if test "$am_compiler_list" = ""; then
12261      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12262   fi
12263   am__universal=false
12264   case " $depcc " in #(
12265      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12266      esac
12267
12268   for depmode in $am_compiler_list; do
12269     # Setup a source with many dependencies, because some compilers
12270     # like to wrap large dependency lists on column 80 (with \), and
12271     # we should not choose a depcomp mode which is confused by this.
12272     #
12273     # We need to recreate these files for each test, as the compiler may
12274     # overwrite some of them when testing with obscure command lines.
12275     # This happens at least with the AIX C compiler.
12276     : > sub/conftest.c
12277     for i in 1 2 3 4 5 6; do
12278       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12279       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12280       # Solaris 8's {/usr,}/bin/sh.
12281       touch sub/conftst$i.h
12282     done
12283     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12284
12285     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12286     # mode.  It turns out that the SunPro C++ compiler does not properly
12287     # handle `-M -o', and we need to detect this.  Also, some Intel
12288     # versions had trouble with output in subdirs
12289     am__obj=sub/conftest.${OBJEXT-o}
12290     am__minus_obj="-o $am__obj"
12291     case $depmode in
12292     gcc)
12293       # This depmode causes a compiler race in universal mode.
12294       test "$am__universal" = false || continue
12295       ;;
12296     nosideeffect)
12297       # after this tag, mechanisms are not by side-effect, so they'll
12298       # only be used when explicitly requested
12299       if test "x$enable_dependency_tracking" = xyes; then
12300         continue
12301       else
12302         break
12303       fi
12304       ;;
12305     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12306       # This compiler won't grok `-c -o', but also, the minuso test has
12307       # not run yet.  These depmodes are late enough in the game, and
12308       # so weak that their functioning should not be impacted.
12309       am__obj=conftest.${OBJEXT-o}
12310       am__minus_obj=
12311       ;;
12312     none) break ;;
12313     esac
12314     if depmode=$depmode \
12315        source=sub/conftest.c object=$am__obj \
12316        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12317        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12318          >/dev/null 2>conftest.err &&
12319        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12320        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12321        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12322        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12323       # icc doesn't choke on unknown options, it will just issue warnings
12324       # or remarks (even with -Werror).  So we grep stderr for any message
12325       # that says an option was ignored or not supported.
12326       # When given -MP, icc 7.0 and 7.1 complain thusly:
12327       #   icc: Command line warning: ignoring option '-M'; no argument required
12328       # The diagnosis changed in icc 8.0:
12329       #   icc: Command line remark: option '-MP' not supported
12330       if (grep 'ignoring option' conftest.err ||
12331           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12332         am_cv_CXX_dependencies_compiler_type=$depmode
12333         break
12334       fi
12335     fi
12336   done
12337
12338   cd ..
12339   rm -rf conftest.dir
12340 else
12341   am_cv_CXX_dependencies_compiler_type=none
12342 fi
12343
12344 fi
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12346 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12347 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12348
12349  if
12350   test "x$enable_dependency_tracking" != xno \
12351   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12352   am__fastdepCXX_TRUE=
12353   am__fastdepCXX_FALSE='#'
12354 else
12355   am__fastdepCXX_TRUE='#'
12356   am__fastdepCXX_FALSE=
12357 fi
12358
12359
12360
12361
12362 func_stripname_cnf ()
12363 {
12364   case ${2} in
12365   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12366   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12367   esac
12368 } # func_stripname_cnf
12369
12370       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12371     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12372     (test "X$CXX" != "Xg++"))) ; then
12373   ac_ext=cpp
12374 ac_cpp='$CXXCPP $CPPFLAGS'
12375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12379 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12380 if test -z "$CXXCPP"; then
12381   if ${ac_cv_prog_CXXCPP+:} false; then :
12382   $as_echo_n "(cached) " >&6
12383 else
12384       # Double quotes because CXXCPP needs to be expanded
12385     for CXXCPP in "$CXX -E" "/lib/cpp"
12386     do
12387       ac_preproc_ok=false
12388 for ac_cxx_preproc_warn_flag in '' yes
12389 do
12390   # Use a header file that comes with gcc, so configuring glibc
12391   # with a fresh cross-compiler works.
12392   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12393   # <limits.h> exists even on freestanding compilers.
12394   # On the NeXT, cc -E runs the code through the compiler's parser,
12395   # not just through cpp. "Syntax error" is here to catch this case.
12396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h.  */
12398 #ifdef __STDC__
12399 # include <limits.h>
12400 #else
12401 # include <assert.h>
12402 #endif
12403                      Syntax error
12404 _ACEOF
12405 if ac_fn_cxx_try_cpp "$LINENO"; then :
12406
12407 else
12408   # Broken: fails on valid input.
12409 continue
12410 fi
12411 rm -f conftest.err conftest.i conftest.$ac_ext
12412
12413   # OK, works on sane cases.  Now check whether nonexistent headers
12414   # can be detected and how.
12415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h.  */
12417 #include <ac_nonexistent.h>
12418 _ACEOF
12419 if ac_fn_cxx_try_cpp "$LINENO"; then :
12420   # Broken: success on invalid input.
12421 continue
12422 else
12423   # Passes both tests.
12424 ac_preproc_ok=:
12425 break
12426 fi
12427 rm -f conftest.err conftest.i conftest.$ac_ext
12428
12429 done
12430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12431 rm -f conftest.i conftest.err conftest.$ac_ext
12432 if $ac_preproc_ok; then :
12433   break
12434 fi
12435
12436     done
12437     ac_cv_prog_CXXCPP=$CXXCPP
12438
12439 fi
12440   CXXCPP=$ac_cv_prog_CXXCPP
12441 else
12442   ac_cv_prog_CXXCPP=$CXXCPP
12443 fi
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12445 $as_echo "$CXXCPP" >&6; }
12446 ac_preproc_ok=false
12447 for ac_cxx_preproc_warn_flag in '' yes
12448 do
12449   # Use a header file that comes with gcc, so configuring glibc
12450   # with a fresh cross-compiler works.
12451   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12452   # <limits.h> exists even on freestanding compilers.
12453   # On the NeXT, cc -E runs the code through the compiler's parser,
12454   # not just through cpp. "Syntax error" is here to catch this case.
12455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h.  */
12457 #ifdef __STDC__
12458 # include <limits.h>
12459 #else
12460 # include <assert.h>
12461 #endif
12462                      Syntax error
12463 _ACEOF
12464 if ac_fn_cxx_try_cpp "$LINENO"; then :
12465
12466 else
12467   # Broken: fails on valid input.
12468 continue
12469 fi
12470 rm -f conftest.err conftest.i conftest.$ac_ext
12471
12472   # OK, works on sane cases.  Now check whether nonexistent headers
12473   # can be detected and how.
12474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h.  */
12476 #include <ac_nonexistent.h>
12477 _ACEOF
12478 if ac_fn_cxx_try_cpp "$LINENO"; then :
12479   # Broken: success on invalid input.
12480 continue
12481 else
12482   # Passes both tests.
12483 ac_preproc_ok=:
12484 break
12485 fi
12486 rm -f conftest.err conftest.i conftest.$ac_ext
12487
12488 done
12489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12490 rm -f conftest.i conftest.err conftest.$ac_ext
12491 if $ac_preproc_ok; then :
12492
12493 else
12494   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12496 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12497 See \`config.log' for more details" "$LINENO" 5; }
12498 fi
12499
12500 ac_ext=c
12501 ac_cpp='$CPP $CPPFLAGS'
12502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12505
12506 else
12507   _lt_caught_CXX_error=yes
12508 fi
12509
12510 ac_ext=cpp
12511 ac_cpp='$CXXCPP $CPPFLAGS'
12512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12515
12516 archive_cmds_need_lc_CXX=no
12517 allow_undefined_flag_CXX=
12518 always_export_symbols_CXX=no
12519 archive_expsym_cmds_CXX=
12520 compiler_needs_object_CXX=no
12521 export_dynamic_flag_spec_CXX=
12522 hardcode_direct_CXX=no
12523 hardcode_direct_absolute_CXX=no
12524 hardcode_libdir_flag_spec_CXX=
12525 hardcode_libdir_separator_CXX=
12526 hardcode_minus_L_CXX=no
12527 hardcode_shlibpath_var_CXX=unsupported
12528 hardcode_automatic_CXX=no
12529 inherit_rpath_CXX=no
12530 module_cmds_CXX=
12531 module_expsym_cmds_CXX=
12532 link_all_deplibs_CXX=unknown
12533 old_archive_cmds_CXX=$old_archive_cmds
12534 reload_flag_CXX=$reload_flag
12535 reload_cmds_CXX=$reload_cmds
12536 no_undefined_flag_CXX=
12537 whole_archive_flag_spec_CXX=
12538 enable_shared_with_static_runtimes_CXX=no
12539
12540 # Source file extension for C++ test sources.
12541 ac_ext=cpp
12542
12543 # Object file extension for compiled C++ test sources.
12544 objext=o
12545 objext_CXX=$objext
12546
12547 # No sense in running all these tests if we already determined that
12548 # the CXX compiler isn't working.  Some variables (like enable_shared)
12549 # are currently assumed to apply to all compilers on this platform,
12550 # and will be corrupted by setting them based on a non-working compiler.
12551 if test "$_lt_caught_CXX_error" != yes; then
12552   # Code to be used in simple compile tests
12553   lt_simple_compile_test_code="int some_variable = 0;"
12554
12555   # Code to be used in simple link tests
12556   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12557
12558   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12559
12560
12561
12562
12563
12564
12565 # If no C compiler was specified, use CC.
12566 LTCC=${LTCC-"$CC"}
12567
12568 # If no C compiler flags were specified, use CFLAGS.
12569 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12570
12571 # Allow CC to be a program name with arguments.
12572 compiler=$CC
12573
12574
12575   # save warnings/boilerplate of simple test code
12576   ac_outfile=conftest.$ac_objext
12577 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12578 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12579 _lt_compiler_boilerplate=`cat conftest.err`
12580 $RM conftest*
12581
12582   ac_outfile=conftest.$ac_objext
12583 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12584 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12585 _lt_linker_boilerplate=`cat conftest.err`
12586 $RM -r conftest*
12587
12588
12589   # Allow CC to be a program name with arguments.
12590   lt_save_CC=$CC
12591   lt_save_CFLAGS=$CFLAGS
12592   lt_save_LD=$LD
12593   lt_save_GCC=$GCC
12594   GCC=$GXX
12595   lt_save_with_gnu_ld=$with_gnu_ld
12596   lt_save_path_LD=$lt_cv_path_LD
12597   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12598     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12599   else
12600     $as_unset lt_cv_prog_gnu_ld
12601   fi
12602   if test -n "${lt_cv_path_LDCXX+set}"; then
12603     lt_cv_path_LD=$lt_cv_path_LDCXX
12604   else
12605     $as_unset lt_cv_path_LD
12606   fi
12607   test -z "${LDCXX+set}" || LD=$LDCXX
12608   CC=${CXX-"c++"}
12609   CFLAGS=$CXXFLAGS
12610   compiler=$CC
12611   compiler_CXX=$CC
12612   for cc_temp in $compiler""; do
12613   case $cc_temp in
12614     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12615     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12616     \-*) ;;
12617     *) break;;
12618   esac
12619 done
12620 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12621
12622
12623   if test -n "$compiler"; then
12624     # We don't want -fno-exception when compiling C++ code, so set the
12625     # no_builtin_flag separately
12626     if test "$GXX" = yes; then
12627       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12628     else
12629       lt_prog_compiler_no_builtin_flag_CXX=
12630     fi
12631
12632     if test "$GXX" = yes; then
12633       # Set up default GNU C++ configuration
12634
12635
12636
12637 # Check whether --with-gnu-ld was given.
12638 if test "${with_gnu_ld+set}" = set; then :
12639   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12640 else
12641   with_gnu_ld=no
12642 fi
12643
12644 ac_prog=ld
12645 if test "$GCC" = yes; then
12646   # Check if gcc -print-prog-name=ld gives a path.
12647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12648 $as_echo_n "checking for ld used by $CC... " >&6; }
12649   case $host in
12650   *-*-mingw*)
12651     # gcc leaves a trailing carriage return which upsets mingw
12652     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12653   *)
12654     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12655   esac
12656   case $ac_prog in
12657     # Accept absolute paths.
12658     [\\/]* | ?:[\\/]*)
12659       re_direlt='/[^/][^/]*/\.\./'
12660       # Canonicalize the pathname of ld
12661       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12662       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12663         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12664       done
12665       test -z "$LD" && LD="$ac_prog"
12666       ;;
12667   "")
12668     # If it fails, then pretend we aren't using GCC.
12669     ac_prog=ld
12670     ;;
12671   *)
12672     # If it is relative, then search for the first ld in PATH.
12673     with_gnu_ld=unknown
12674     ;;
12675   esac
12676 elif test "$with_gnu_ld" = yes; then
12677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12678 $as_echo_n "checking for GNU ld... " >&6; }
12679 else
12680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12681 $as_echo_n "checking for non-GNU ld... " >&6; }
12682 fi
12683 if ${lt_cv_path_LD+:} false; then :
12684   $as_echo_n "(cached) " >&6
12685 else
12686   if test -z "$LD"; then
12687   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12688   for ac_dir in $PATH; do
12689     IFS="$lt_save_ifs"
12690     test -z "$ac_dir" && ac_dir=.
12691     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12692       lt_cv_path_LD="$ac_dir/$ac_prog"
12693       # Check to see if the program is GNU ld.  I'd rather use --version,
12694       # but apparently some variants of GNU ld only accept -v.
12695       # Break only if it was the GNU/non-GNU ld that we prefer.
12696       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12697       *GNU* | *'with BFD'*)
12698         test "$with_gnu_ld" != no && break
12699         ;;
12700       *)
12701         test "$with_gnu_ld" != yes && break
12702         ;;
12703       esac
12704     fi
12705   done
12706   IFS="$lt_save_ifs"
12707 else
12708   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12709 fi
12710 fi
12711
12712 LD="$lt_cv_path_LD"
12713 if test -n "$LD"; then
12714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12715 $as_echo "$LD" >&6; }
12716 else
12717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12719 fi
12720 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12722 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12723 if ${lt_cv_prog_gnu_ld+:} false; then :
12724   $as_echo_n "(cached) " >&6
12725 else
12726   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12727 case `$LD -v 2>&1 </dev/null` in
12728 *GNU* | *'with BFD'*)
12729   lt_cv_prog_gnu_ld=yes
12730   ;;
12731 *)
12732   lt_cv_prog_gnu_ld=no
12733   ;;
12734 esac
12735 fi
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12737 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12738 with_gnu_ld=$lt_cv_prog_gnu_ld
12739
12740
12741
12742
12743
12744
12745
12746       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12747       # archiving commands below assume that GNU ld is being used.
12748       if test "$with_gnu_ld" = yes; then
12749         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12750         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'
12751
12752         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12753         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12754
12755         # If archive_cmds runs LD, not CC, wlarc should be empty
12756         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12757         #     investigate it a little bit more. (MM)
12758         wlarc='${wl}'
12759
12760         # ancient GNU ld didn't support --whole-archive et. al.
12761         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12762           $GREP 'no-whole-archive' > /dev/null; then
12763           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12764         else
12765           whole_archive_flag_spec_CXX=
12766         fi
12767       else
12768         with_gnu_ld=no
12769         wlarc=
12770
12771         # A generic and very simple default shared library creation
12772         # command for GNU C++ for the case where it uses the native
12773         # linker, instead of GNU ld.  If possible, this setting should
12774         # overridden to take advantage of the native linker features on
12775         # the platform it is being used on.
12776         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12777       fi
12778
12779       # Commands to make compiler produce verbose output that lists
12780       # what "hidden" libraries, object files and flags are used when
12781       # linking a shared library.
12782       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12783
12784     else
12785       GXX=no
12786       with_gnu_ld=no
12787       wlarc=
12788     fi
12789
12790     # PORTME: fill in a description of your system's C++ link characteristics
12791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12792 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12793     ld_shlibs_CXX=yes
12794     case $host_os in
12795       aix3*)
12796         # FIXME: insert proper C++ library support
12797         ld_shlibs_CXX=no
12798         ;;
12799       aix[4-9]*)
12800         if test "$host_cpu" = ia64; then
12801           # On IA64, the linker does run time linking by default, so we don't
12802           # have to do anything special.
12803           aix_use_runtimelinking=no
12804           exp_sym_flag='-Bexport'
12805           no_entry_flag=""
12806         else
12807           aix_use_runtimelinking=no
12808
12809           # Test if we are trying to use run time linking or normal
12810           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12811           # need to do runtime linking.
12812           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12813             for ld_flag in $LDFLAGS; do
12814               case $ld_flag in
12815               *-brtl*)
12816                 aix_use_runtimelinking=yes
12817                 break
12818                 ;;
12819               esac
12820             done
12821             ;;
12822           esac
12823
12824           exp_sym_flag='-bexport'
12825           no_entry_flag='-bnoentry'
12826         fi
12827
12828         # When large executables or shared objects are built, AIX ld can
12829         # have problems creating the table of contents.  If linking a library
12830         # or program results in "error TOC overflow" add -mminimal-toc to
12831         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12832         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12833
12834         archive_cmds_CXX=''
12835         hardcode_direct_CXX=yes
12836         hardcode_direct_absolute_CXX=yes
12837         hardcode_libdir_separator_CXX=':'
12838         link_all_deplibs_CXX=yes
12839         file_list_spec_CXX='${wl}-f,'
12840
12841         if test "$GXX" = yes; then
12842           case $host_os in aix4.[012]|aix4.[012].*)
12843           # We only want to do this on AIX 4.2 and lower, the check
12844           # below for broken collect2 doesn't work under 4.3+
12845           collect2name=`${CC} -print-prog-name=collect2`
12846           if test -f "$collect2name" &&
12847              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12848           then
12849             # We have reworked collect2
12850             :
12851           else
12852             # We have old collect2
12853             hardcode_direct_CXX=unsupported
12854             # It fails to find uninstalled libraries when the uninstalled
12855             # path is not listed in the libpath.  Setting hardcode_minus_L
12856             # to unsupported forces relinking
12857             hardcode_minus_L_CXX=yes
12858             hardcode_libdir_flag_spec_CXX='-L$libdir'
12859             hardcode_libdir_separator_CXX=
12860           fi
12861           esac
12862           shared_flag='-shared'
12863           if test "$aix_use_runtimelinking" = yes; then
12864             shared_flag="$shared_flag "'${wl}-G'
12865           fi
12866         else
12867           # not using gcc
12868           if test "$host_cpu" = ia64; then
12869           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12870           # chokes on -Wl,-G. The following line is correct:
12871           shared_flag='-G'
12872           else
12873             if test "$aix_use_runtimelinking" = yes; then
12874               shared_flag='${wl}-G'
12875             else
12876               shared_flag='${wl}-bM:SRE'
12877             fi
12878           fi
12879         fi
12880
12881         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12882         # It seems that -bexpall does not export symbols beginning with
12883         # underscore (_), so it is better to generate a list of symbols to
12884         # export.
12885         always_export_symbols_CXX=yes
12886         if test "$aix_use_runtimelinking" = yes; then
12887           # Warning - without using the other runtime loading flags (-brtl),
12888           # -berok will link without error, but may produce a broken library.
12889           allow_undefined_flag_CXX='-berok'
12890           # Determine the default libpath from the value encoded in an empty
12891           # executable.
12892           if test "${lt_cv_aix_libpath+set}" = set; then
12893   aix_libpath=$lt_cv_aix_libpath
12894 else
12895   if ${lt_cv_aix_libpath__CXX+:} false; then :
12896   $as_echo_n "(cached) " >&6
12897 else
12898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h.  */
12900
12901 int
12902 main ()
12903 {
12904
12905   ;
12906   return 0;
12907 }
12908 _ACEOF
12909 if ac_fn_cxx_try_link "$LINENO"; then :
12910
12911   lt_aix_libpath_sed='
12912       /Import File Strings/,/^$/ {
12913           /^0/ {
12914               s/^0  *\([^ ]*\) *$/\1/
12915               p
12916           }
12917       }'
12918   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12919   # Check for a 64-bit object if we didn't find anything.
12920   if test -z "$lt_cv_aix_libpath__CXX"; then
12921     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12922   fi
12923 fi
12924 rm -f core conftest.err conftest.$ac_objext \
12925     conftest$ac_exeext conftest.$ac_ext
12926   if test -z "$lt_cv_aix_libpath__CXX"; then
12927     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12928   fi
12929
12930 fi
12931
12932   aix_libpath=$lt_cv_aix_libpath__CXX
12933 fi
12934
12935           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12936
12937           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"
12938         else
12939           if test "$host_cpu" = ia64; then
12940             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12941             allow_undefined_flag_CXX="-z nodefs"
12942             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"
12943           else
12944             # Determine the default libpath from the value encoded in an
12945             # empty executable.
12946             if test "${lt_cv_aix_libpath+set}" = set; then
12947   aix_libpath=$lt_cv_aix_libpath
12948 else
12949   if ${lt_cv_aix_libpath__CXX+:} false; then :
12950   $as_echo_n "(cached) " >&6
12951 else
12952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h.  */
12954
12955 int
12956 main ()
12957 {
12958
12959   ;
12960   return 0;
12961 }
12962 _ACEOF
12963 if ac_fn_cxx_try_link "$LINENO"; then :
12964
12965   lt_aix_libpath_sed='
12966       /Import File Strings/,/^$/ {
12967           /^0/ {
12968               s/^0  *\([^ ]*\) *$/\1/
12969               p
12970           }
12971       }'
12972   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12973   # Check for a 64-bit object if we didn't find anything.
12974   if test -z "$lt_cv_aix_libpath__CXX"; then
12975     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12976   fi
12977 fi
12978 rm -f core conftest.err conftest.$ac_objext \
12979     conftest$ac_exeext conftest.$ac_ext
12980   if test -z "$lt_cv_aix_libpath__CXX"; then
12981     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12982   fi
12983
12984 fi
12985
12986   aix_libpath=$lt_cv_aix_libpath__CXX
12987 fi
12988
12989             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12990             # Warning - without using the other run time loading flags,
12991             # -berok will link without error, but may produce a broken library.
12992             no_undefined_flag_CXX=' ${wl}-bernotok'
12993             allow_undefined_flag_CXX=' ${wl}-berok'
12994             if test "$with_gnu_ld" = yes; then
12995               # We only use this code for GNU lds that support --whole-archive.
12996               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12997             else
12998               # Exported symbols can be pulled into shared objects from archives
12999               whole_archive_flag_spec_CXX='$convenience'
13000             fi
13001             archive_cmds_need_lc_CXX=yes
13002             # This is similar to how AIX traditionally builds its shared
13003             # libraries.
13004             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'
13005           fi
13006         fi
13007         ;;
13008
13009       beos*)
13010         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13011           allow_undefined_flag_CXX=unsupported
13012           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13013           # support --undefined.  This deserves some investigation.  FIXME
13014           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13015         else
13016           ld_shlibs_CXX=no
13017         fi
13018         ;;
13019
13020       chorus*)
13021         case $cc_basename in
13022           *)
13023           # FIXME: insert proper C++ library support
13024           ld_shlibs_CXX=no
13025           ;;
13026         esac
13027         ;;
13028
13029       cygwin* | mingw* | pw32* | cegcc*)
13030         case $GXX,$cc_basename in
13031         ,cl* | no,cl*)
13032           # Native MSVC
13033           # hardcode_libdir_flag_spec is actually meaningless, as there is
13034           # no search path for DLLs.
13035           hardcode_libdir_flag_spec_CXX=' '
13036           allow_undefined_flag_CXX=unsupported
13037           always_export_symbols_CXX=yes
13038           file_list_spec_CXX='@'
13039           # Tell ltmain to make .lib files, not .a files.
13040           libext=lib
13041           # Tell ltmain to make .dll files, not .so files.
13042           shrext_cmds=".dll"
13043           # FIXME: Setting linknames here is a bad hack.
13044           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13045           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13046               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13047             else
13048               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13049             fi~
13050             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13051             linknames='
13052           # The linker will not automatically build a static lib if we build a DLL.
13053           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13054           enable_shared_with_static_runtimes_CXX=yes
13055           # Don't use ranlib
13056           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13057           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13058             lt_tool_outputfile="@TOOL_OUTPUT@"~
13059             case $lt_outputfile in
13060               *.exe|*.EXE) ;;
13061               *)
13062                 lt_outputfile="$lt_outputfile.exe"
13063                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13064                 ;;
13065             esac~
13066             func_to_tool_file "$lt_outputfile"~
13067             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13068               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13069               $RM "$lt_outputfile.manifest";
13070             fi'
13071           ;;
13072         *)
13073           # g++
13074           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13075           # as there is no search path for DLLs.
13076           hardcode_libdir_flag_spec_CXX='-L$libdir'
13077           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13078           allow_undefined_flag_CXX=unsupported
13079           always_export_symbols_CXX=no
13080           enable_shared_with_static_runtimes_CXX=yes
13081
13082           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13083             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'
13084             # If the export-symbols file already is a .def file (1st line
13085             # is EXPORTS), use it as is; otherwise, prepend...
13086             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13087               cp $export_symbols $output_objdir/$soname.def;
13088             else
13089               echo EXPORTS > $output_objdir/$soname.def;
13090               cat $export_symbols >> $output_objdir/$soname.def;
13091             fi~
13092             $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'
13093           else
13094             ld_shlibs_CXX=no
13095           fi
13096           ;;
13097         esac
13098         ;;
13099       darwin* | rhapsody*)
13100
13101
13102   archive_cmds_need_lc_CXX=no
13103   hardcode_direct_CXX=no
13104   hardcode_automatic_CXX=yes
13105   hardcode_shlibpath_var_CXX=unsupported
13106   if test "$lt_cv_ld_force_load" = "yes"; then
13107     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\"`'
13108
13109   else
13110     whole_archive_flag_spec_CXX=''
13111   fi
13112   link_all_deplibs_CXX=yes
13113   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13114   case $cc_basename in
13115      ifort*) _lt_dar_can_shared=yes ;;
13116      *) _lt_dar_can_shared=$GCC ;;
13117   esac
13118   if test "$_lt_dar_can_shared" = "yes"; then
13119     output_verbose_link_cmd=func_echo_all
13120     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}"
13121     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13122     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}"
13123     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}"
13124        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13125       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}"
13126       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}"
13127     fi
13128
13129   else
13130   ld_shlibs_CXX=no
13131   fi
13132
13133         ;;
13134
13135       dgux*)
13136         case $cc_basename in
13137           ec++*)
13138             # FIXME: insert proper C++ library support
13139             ld_shlibs_CXX=no
13140             ;;
13141           ghcx*)
13142             # Green Hills C++ Compiler
13143             # FIXME: insert proper C++ library support
13144             ld_shlibs_CXX=no
13145             ;;
13146           *)
13147             # FIXME: insert proper C++ library support
13148             ld_shlibs_CXX=no
13149             ;;
13150         esac
13151         ;;
13152
13153       freebsd2.*)
13154         # C++ shared libraries reported to be fairly broken before
13155         # switch to ELF
13156         ld_shlibs_CXX=no
13157         ;;
13158
13159       freebsd-elf*)
13160         archive_cmds_need_lc_CXX=no
13161         ;;
13162
13163       freebsd* | dragonfly*)
13164         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13165         # conventions
13166         ld_shlibs_CXX=yes
13167         ;;
13168
13169       haiku*)
13170         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13171         link_all_deplibs_CXX=yes
13172         ;;
13173
13174       hpux9*)
13175         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13176         hardcode_libdir_separator_CXX=:
13177         export_dynamic_flag_spec_CXX='${wl}-E'
13178         hardcode_direct_CXX=yes
13179         hardcode_minus_L_CXX=yes # Not in the search PATH,
13180                                              # but as the default
13181                                              # location of the library.
13182
13183         case $cc_basename in
13184           CC*)
13185             # FIXME: insert proper C++ library support
13186             ld_shlibs_CXX=no
13187             ;;
13188           aCC*)
13189             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'
13190             # Commands to make compiler produce verbose output that lists
13191             # what "hidden" libraries, object files and flags are used when
13192             # linking a shared library.
13193             #
13194             # There doesn't appear to be a way to prevent this compiler from
13195             # explicitly linking system object files so we need to strip them
13196             # from the output so that they don't get included in the library
13197             # dependencies.
13198             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"'
13199             ;;
13200           *)
13201             if test "$GXX" = yes; then
13202               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'
13203             else
13204               # FIXME: insert proper C++ library support
13205               ld_shlibs_CXX=no
13206             fi
13207             ;;
13208         esac
13209         ;;
13210
13211       hpux10*|hpux11*)
13212         if test $with_gnu_ld = no; then
13213           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13214           hardcode_libdir_separator_CXX=:
13215
13216           case $host_cpu in
13217             hppa*64*|ia64*)
13218               ;;
13219             *)
13220               export_dynamic_flag_spec_CXX='${wl}-E'
13221               ;;
13222           esac
13223         fi
13224         case $host_cpu in
13225           hppa*64*|ia64*)
13226             hardcode_direct_CXX=no
13227             hardcode_shlibpath_var_CXX=no
13228             ;;
13229           *)
13230             hardcode_direct_CXX=yes
13231             hardcode_direct_absolute_CXX=yes
13232             hardcode_minus_L_CXX=yes # Not in the search PATH,
13233                                                  # but as the default
13234                                                  # location of the library.
13235             ;;
13236         esac
13237
13238         case $cc_basename in
13239           CC*)
13240             # FIXME: insert proper C++ library support
13241             ld_shlibs_CXX=no
13242             ;;
13243           aCC*)
13244             case $host_cpu in
13245               hppa*64*)
13246                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13247                 ;;
13248               ia64*)
13249                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13250                 ;;
13251               *)
13252                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13253                 ;;
13254             esac
13255             # Commands to make compiler produce verbose output that lists
13256             # what "hidden" libraries, object files and flags are used when
13257             # linking a shared library.
13258             #
13259             # There doesn't appear to be a way to prevent this compiler from
13260             # explicitly linking system object files so we need to strip them
13261             # from the output so that they don't get included in the library
13262             # dependencies.
13263             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"'
13264             ;;
13265           *)
13266             if test "$GXX" = yes; then
13267               if test $with_gnu_ld = no; then
13268                 case $host_cpu in
13269                   hppa*64*)
13270                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13271                     ;;
13272                   ia64*)
13273                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13274                     ;;
13275                   *)
13276                     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'
13277                     ;;
13278                 esac
13279               fi
13280             else
13281               # FIXME: insert proper C++ library support
13282               ld_shlibs_CXX=no
13283             fi
13284             ;;
13285         esac
13286         ;;
13287
13288       interix[3-9]*)
13289         hardcode_direct_CXX=no
13290         hardcode_shlibpath_var_CXX=no
13291         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13292         export_dynamic_flag_spec_CXX='${wl}-E'
13293         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13294         # Instead, shared libraries are loaded at an image base (0x10000000 by
13295         # default) and relocated if they conflict, which is a slow very memory
13296         # consuming and fragmenting process.  To avoid this, we pick a random,
13297         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13298         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13299         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'
13300         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'
13301         ;;
13302       irix5* | irix6*)
13303         case $cc_basename in
13304           CC*)
13305             # SGI C++
13306             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'
13307
13308             # Archives containing C++ object files must be created using
13309             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13310             # necessary to make sure instantiated templates are included
13311             # in the archive.
13312             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13313             ;;
13314           *)
13315             if test "$GXX" = yes; then
13316               if test "$with_gnu_ld" = no; then
13317                 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'
13318               else
13319                 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'
13320               fi
13321             fi
13322             link_all_deplibs_CXX=yes
13323             ;;
13324         esac
13325         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13326         hardcode_libdir_separator_CXX=:
13327         inherit_rpath_CXX=yes
13328         ;;
13329
13330       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13331         case $cc_basename in
13332           KCC*)
13333             # Kuck and Associates, Inc. (KAI) C++ Compiler
13334
13335             # KCC will only create a shared library if the output file
13336             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13337             # to its proper name (with version) after linking.
13338             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'
13339             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'
13340             # Commands to make compiler produce verbose output that lists
13341             # what "hidden" libraries, object files and flags are used when
13342             # linking a shared library.
13343             #
13344             # There doesn't appear to be a way to prevent this compiler from
13345             # explicitly linking system object files so we need to strip them
13346             # from the output so that they don't get included in the library
13347             # dependencies.
13348             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"'
13349
13350             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13351             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13352
13353             # Archives containing C++ object files must be created using
13354             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13355             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13356             ;;
13357           icpc* | ecpc* )
13358             # Intel C++
13359             with_gnu_ld=yes
13360             # version 8.0 and above of icpc choke on multiply defined symbols
13361             # if we add $predep_objects and $postdep_objects, however 7.1 and
13362             # earlier do not add the objects themselves.
13363             case `$CC -V 2>&1` in
13364               *"Version 7."*)
13365                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13366                 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'
13367                 ;;
13368               *)  # Version 8.0 or newer
13369                 tmp_idyn=
13370                 case $host_cpu in
13371                   ia64*) tmp_idyn=' -i_dynamic';;
13372                 esac
13373                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13374                 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'
13375                 ;;
13376             esac
13377             archive_cmds_need_lc_CXX=no
13378             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13379             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13380             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13381             ;;
13382           pgCC* | pgcpp*)
13383             # Portland Group C++ compiler
13384             case `$CC -V` in
13385             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13386               prelink_cmds_CXX='tpldir=Template.dir~
13387                 rm -rf $tpldir~
13388                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13389                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13390               old_archive_cmds_CXX='tpldir=Template.dir~
13391                 rm -rf $tpldir~
13392                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13393                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13394                 $RANLIB $oldlib'
13395               archive_cmds_CXX='tpldir=Template.dir~
13396                 rm -rf $tpldir~
13397                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13398                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13399               archive_expsym_cmds_CXX='tpldir=Template.dir~
13400                 rm -rf $tpldir~
13401                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13402                 $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'
13403               ;;
13404             *) # Version 6 and above use weak symbols
13405               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13406               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'
13407               ;;
13408             esac
13409
13410             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13411             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13412             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'
13413             ;;
13414           cxx*)
13415             # Compaq C++
13416             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13417             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'
13418
13419             runpath_var=LD_RUN_PATH
13420             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13421             hardcode_libdir_separator_CXX=:
13422
13423             # Commands to make compiler produce verbose output that lists
13424             # what "hidden" libraries, object files and flags are used when
13425             # linking a shared library.
13426             #
13427             # There doesn't appear to be a way to prevent this compiler from
13428             # explicitly linking system object files so we need to strip them
13429             # from the output so that they don't get included in the library
13430             # dependencies.
13431             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'
13432             ;;
13433           xl* | mpixl* | bgxl*)
13434             # IBM XL 8.0 on PPC, with GNU ld
13435             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13436             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13437             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13438             if test "x$supports_anon_versioning" = xyes; then
13439               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13440                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13441                 echo "local: *; };" >> $output_objdir/$libname.ver~
13442                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13443             fi
13444             ;;
13445           *)
13446             case `$CC -V 2>&1 | sed 5q` in
13447             *Sun\ C*)
13448               # Sun C++ 5.9
13449               no_undefined_flag_CXX=' -zdefs'
13450               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13451               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'
13452               hardcode_libdir_flag_spec_CXX='-R$libdir'
13453               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'
13454               compiler_needs_object_CXX=yes
13455
13456               # Not sure whether something based on
13457               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13458               # would be better.
13459               output_verbose_link_cmd='func_echo_all'
13460
13461               # Archives containing C++ object files must be created using
13462               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13463               # necessary to make sure instantiated templates are included
13464               # in the archive.
13465               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13466               ;;
13467             esac
13468             ;;
13469         esac
13470         ;;
13471
13472       lynxos*)
13473         # FIXME: insert proper C++ library support
13474         ld_shlibs_CXX=no
13475         ;;
13476
13477       m88k*)
13478         # FIXME: insert proper C++ library support
13479         ld_shlibs_CXX=no
13480         ;;
13481
13482       mvs*)
13483         case $cc_basename in
13484           cxx*)
13485             # FIXME: insert proper C++ library support
13486             ld_shlibs_CXX=no
13487             ;;
13488           *)
13489             # FIXME: insert proper C++ library support
13490             ld_shlibs_CXX=no
13491             ;;
13492         esac
13493         ;;
13494
13495       netbsd*)
13496         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13497           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13498           wlarc=
13499           hardcode_libdir_flag_spec_CXX='-R$libdir'
13500           hardcode_direct_CXX=yes
13501           hardcode_shlibpath_var_CXX=no
13502         fi
13503         # Workaround some broken pre-1.5 toolchains
13504         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13505         ;;
13506
13507       *nto* | *qnx*)
13508         ld_shlibs_CXX=yes
13509         ;;
13510
13511       openbsd2*)
13512         # C++ shared libraries are fairly broken
13513         ld_shlibs_CXX=no
13514         ;;
13515
13516       openbsd*)
13517         if test -f /usr/libexec/ld.so; then
13518           hardcode_direct_CXX=yes
13519           hardcode_shlibpath_var_CXX=no
13520           hardcode_direct_absolute_CXX=yes
13521           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13522           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13523           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13524             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13525             export_dynamic_flag_spec_CXX='${wl}-E'
13526             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13527           fi
13528           output_verbose_link_cmd=func_echo_all
13529         else
13530           ld_shlibs_CXX=no
13531         fi
13532         ;;
13533
13534       osf3* | osf4* | osf5*)
13535         case $cc_basename in
13536           KCC*)
13537             # Kuck and Associates, Inc. (KAI) C++ Compiler
13538
13539             # KCC will only create a shared library if the output file
13540             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13541             # to its proper name (with version) after linking.
13542             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'
13543
13544             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13545             hardcode_libdir_separator_CXX=:
13546
13547             # Archives containing C++ object files must be created using
13548             # the KAI C++ compiler.
13549             case $host in
13550               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13551               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13552             esac
13553             ;;
13554           RCC*)
13555             # Rational C++ 2.4.1
13556             # FIXME: insert proper C++ library support
13557             ld_shlibs_CXX=no
13558             ;;
13559           cxx*)
13560             case $host in
13561               osf3*)
13562                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13563                 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'
13564                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13565                 ;;
13566               *)
13567                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13568                 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'
13569                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13570                   echo "-hidden">> $lib.exp~
13571                   $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~
13572                   $RM $lib.exp'
13573                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13574                 ;;
13575             esac
13576
13577             hardcode_libdir_separator_CXX=:
13578
13579             # Commands to make compiler produce verbose output that lists
13580             # what "hidden" libraries, object files and flags are used when
13581             # linking a shared library.
13582             #
13583             # There doesn't appear to be a way to prevent this compiler from
13584             # explicitly linking system object files so we need to strip them
13585             # from the output so that they don't get included in the library
13586             # dependencies.
13587             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"'
13588             ;;
13589           *)
13590             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13591               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13592               case $host in
13593                 osf3*)
13594                   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'
13595                   ;;
13596                 *)
13597                   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'
13598                   ;;
13599               esac
13600
13601               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13602               hardcode_libdir_separator_CXX=:
13603
13604               # Commands to make compiler produce verbose output that lists
13605               # what "hidden" libraries, object files and flags are used when
13606               # linking a shared library.
13607               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13608
13609             else
13610               # FIXME: insert proper C++ library support
13611               ld_shlibs_CXX=no
13612             fi
13613             ;;
13614         esac
13615         ;;
13616
13617       psos*)
13618         # FIXME: insert proper C++ library support
13619         ld_shlibs_CXX=no
13620         ;;
13621
13622       sunos4*)
13623         case $cc_basename in
13624           CC*)
13625             # Sun C++ 4.x
13626             # FIXME: insert proper C++ library support
13627             ld_shlibs_CXX=no
13628             ;;
13629           lcc*)
13630             # Lucid
13631             # FIXME: insert proper C++ library support
13632             ld_shlibs_CXX=no
13633             ;;
13634           *)
13635             # FIXME: insert proper C++ library support
13636             ld_shlibs_CXX=no
13637             ;;
13638         esac
13639         ;;
13640
13641       solaris*)
13642         case $cc_basename in
13643           CC* | sunCC*)
13644             # Sun C++ 4.2, 5.x and Centerline C++
13645             archive_cmds_need_lc_CXX=yes
13646             no_undefined_flag_CXX=' -zdefs'
13647             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13648             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13649               $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'
13650
13651             hardcode_libdir_flag_spec_CXX='-R$libdir'
13652             hardcode_shlibpath_var_CXX=no
13653             case $host_os in
13654               solaris2.[0-5] | solaris2.[0-5].*) ;;
13655               *)
13656                 # The compiler driver will combine and reorder linker options,
13657                 # but understands `-z linker_flag'.
13658                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13659                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13660                 ;;
13661             esac
13662             link_all_deplibs_CXX=yes
13663
13664             output_verbose_link_cmd='func_echo_all'
13665
13666             # Archives containing C++ object files must be created using
13667             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13668             # necessary to make sure instantiated templates are included
13669             # in the archive.
13670             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13671             ;;
13672           gcx*)
13673             # Green Hills C++ Compiler
13674             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13675
13676             # The C++ compiler must be used to create the archive.
13677             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13678             ;;
13679           *)
13680             # GNU C++ compiler with Solaris linker
13681             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13682               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13683               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13684                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13685                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13686                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13687
13688                 # Commands to make compiler produce verbose output that lists
13689                 # what "hidden" libraries, object files and flags are used when
13690                 # linking a shared library.
13691                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13692               else
13693                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13694                 # platform.
13695                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13696                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13697                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13698
13699                 # Commands to make compiler produce verbose output that lists
13700                 # what "hidden" libraries, object files and flags are used when
13701                 # linking a shared library.
13702                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13703               fi
13704
13705               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13706               case $host_os in
13707                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13708                 *)
13709                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13710                   ;;
13711               esac
13712             fi
13713             ;;
13714         esac
13715         ;;
13716
13717     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13718       no_undefined_flag_CXX='${wl}-z,text'
13719       archive_cmds_need_lc_CXX=no
13720       hardcode_shlibpath_var_CXX=no
13721       runpath_var='LD_RUN_PATH'
13722
13723       case $cc_basename in
13724         CC*)
13725           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13726           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13727           ;;
13728         *)
13729           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13730           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13731           ;;
13732       esac
13733       ;;
13734
13735       sysv5* | sco3.2v5* | sco5v6*)
13736         # Note: We can NOT use -z defs as we might desire, because we do not
13737         # link with -lc, and that would cause any symbols used from libc to
13738         # always be unresolved, which means just about no library would
13739         # ever link correctly.  If we're not using GNU ld we use -z text
13740         # though, which does catch some bad symbols but isn't as heavy-handed
13741         # as -z defs.
13742         no_undefined_flag_CXX='${wl}-z,text'
13743         allow_undefined_flag_CXX='${wl}-z,nodefs'
13744         archive_cmds_need_lc_CXX=no
13745         hardcode_shlibpath_var_CXX=no
13746         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13747         hardcode_libdir_separator_CXX=':'
13748         link_all_deplibs_CXX=yes
13749         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13750         runpath_var='LD_RUN_PATH'
13751
13752         case $cc_basename in
13753           CC*)
13754             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13755             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13756             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13757               '"$old_archive_cmds_CXX"
13758             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13759               '"$reload_cmds_CXX"
13760             ;;
13761           *)
13762             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13763             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13764             ;;
13765         esac
13766       ;;
13767
13768       tandem*)
13769         case $cc_basename in
13770           NCC*)
13771             # NonStop-UX NCC 3.20
13772             # FIXME: insert proper C++ library support
13773             ld_shlibs_CXX=no
13774             ;;
13775           *)
13776             # FIXME: insert proper C++ library support
13777             ld_shlibs_CXX=no
13778             ;;
13779         esac
13780         ;;
13781
13782       vxworks*)
13783         # FIXME: insert proper C++ library support
13784         ld_shlibs_CXX=no
13785         ;;
13786
13787       *)
13788         # FIXME: insert proper C++ library support
13789         ld_shlibs_CXX=no
13790         ;;
13791     esac
13792
13793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13794 $as_echo "$ld_shlibs_CXX" >&6; }
13795     test "$ld_shlibs_CXX" = no && can_build_shared=no
13796
13797     GCC_CXX="$GXX"
13798     LD_CXX="$LD"
13799
13800     ## CAVEAT EMPTOR:
13801     ## There is no encapsulation within the following macros, do not change
13802     ## the running order or otherwise move them around unless you know exactly
13803     ## what you are doing...
13804     # Dependencies to place before and after the object being linked:
13805 predep_objects_CXX=
13806 postdep_objects_CXX=
13807 predeps_CXX=
13808 postdeps_CXX=
13809 compiler_lib_search_path_CXX=
13810
13811 cat > conftest.$ac_ext <<_LT_EOF
13812 class Foo
13813 {
13814 public:
13815   Foo (void) { a = 0; }
13816 private:
13817   int a;
13818 };
13819 _LT_EOF
13820
13821
13822 _lt_libdeps_save_CFLAGS=$CFLAGS
13823 case "$CC $CFLAGS " in #(
13824 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13825 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13826 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13827 esac
13828
13829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13830   (eval $ac_compile) 2>&5
13831   ac_status=$?
13832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13833   test $ac_status = 0; }; then
13834   # Parse the compiler output and extract the necessary
13835   # objects, libraries and library flags.
13836
13837   # Sentinel used to keep track of whether or not we are before
13838   # the conftest object file.
13839   pre_test_object_deps_done=no
13840
13841   for p in `eval "$output_verbose_link_cmd"`; do
13842     case ${prev}${p} in
13843
13844     -L* | -R* | -l*)
13845        # Some compilers place space between "-{L,R}" and the path.
13846        # Remove the space.
13847        if test $p = "-L" ||
13848           test $p = "-R"; then
13849          prev=$p
13850          continue
13851        fi
13852
13853        # Expand the sysroot to ease extracting the directories later.
13854        if test -z "$prev"; then
13855          case $p in
13856          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13857          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13858          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13859          esac
13860        fi
13861        case $p in
13862        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13863        esac
13864        if test "$pre_test_object_deps_done" = no; then
13865          case ${prev} in
13866          -L | -R)
13867            # Internal compiler library paths should come after those
13868            # provided the user.  The postdeps already come after the
13869            # user supplied libs so there is no need to process them.
13870            if test -z "$compiler_lib_search_path_CXX"; then
13871              compiler_lib_search_path_CXX="${prev}${p}"
13872            else
13873              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13874            fi
13875            ;;
13876          # The "-l" case would never come before the object being
13877          # linked, so don't bother handling this case.
13878          esac
13879        else
13880          if test -z "$postdeps_CXX"; then
13881            postdeps_CXX="${prev}${p}"
13882          else
13883            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13884          fi
13885        fi
13886        prev=
13887        ;;
13888
13889     *.lto.$objext) ;; # Ignore GCC LTO objects
13890     *.$objext)
13891        # This assumes that the test object file only shows up
13892        # once in the compiler output.
13893        if test "$p" = "conftest.$objext"; then
13894          pre_test_object_deps_done=yes
13895          continue
13896        fi
13897
13898        if test "$pre_test_object_deps_done" = no; then
13899          if test -z "$predep_objects_CXX"; then
13900            predep_objects_CXX="$p"
13901          else
13902            predep_objects_CXX="$predep_objects_CXX $p"
13903          fi
13904        else
13905          if test -z "$postdep_objects_CXX"; then
13906            postdep_objects_CXX="$p"
13907          else
13908            postdep_objects_CXX="$postdep_objects_CXX $p"
13909          fi
13910        fi
13911        ;;
13912
13913     *) ;; # Ignore the rest.
13914
13915     esac
13916   done
13917
13918   # Clean up.
13919   rm -f a.out a.exe
13920 else
13921   echo "libtool.m4: error: problem compiling CXX test program"
13922 fi
13923
13924 $RM -f confest.$objext
13925 CFLAGS=$_lt_libdeps_save_CFLAGS
13926
13927 # PORTME: override above test on systems where it is broken
13928 case $host_os in
13929 interix[3-9]*)
13930   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13931   # hack all around it, let's just trust "g++" to DTRT.
13932   predep_objects_CXX=
13933   postdep_objects_CXX=
13934   postdeps_CXX=
13935   ;;
13936
13937 linux*)
13938   case `$CC -V 2>&1 | sed 5q` in
13939   *Sun\ C*)
13940     # Sun C++ 5.9
13941
13942     # The more standards-conforming stlport4 library is
13943     # incompatible with the Cstd library. Avoid specifying
13944     # it if it's in CXXFLAGS. Ignore libCrun as
13945     # -library=stlport4 depends on it.
13946     case " $CXX $CXXFLAGS " in
13947     *" -library=stlport4 "*)
13948       solaris_use_stlport4=yes
13949       ;;
13950     esac
13951
13952     if test "$solaris_use_stlport4" != yes; then
13953       postdeps_CXX='-library=Cstd -library=Crun'
13954     fi
13955     ;;
13956   esac
13957   ;;
13958
13959 solaris*)
13960   case $cc_basename in
13961   CC* | sunCC*)
13962     # The more standards-conforming stlport4 library is
13963     # incompatible with the Cstd library. Avoid specifying
13964     # it if it's in CXXFLAGS. Ignore libCrun as
13965     # -library=stlport4 depends on it.
13966     case " $CXX $CXXFLAGS " in
13967     *" -library=stlport4 "*)
13968       solaris_use_stlport4=yes
13969       ;;
13970     esac
13971
13972     # Adding this requires a known-good setup of shared libraries for
13973     # Sun compiler versions before 5.6, else PIC objects from an old
13974     # archive will be linked into the output, leading to subtle bugs.
13975     if test "$solaris_use_stlport4" != yes; then
13976       postdeps_CXX='-library=Cstd -library=Crun'
13977     fi
13978     ;;
13979   esac
13980   ;;
13981 esac
13982
13983
13984 case " $postdeps_CXX " in
13985 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13986 esac
13987  compiler_lib_search_dirs_CXX=
13988 if test -n "${compiler_lib_search_path_CXX}"; then
13989  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13990 fi
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022     lt_prog_compiler_wl_CXX=
14023 lt_prog_compiler_pic_CXX=
14024 lt_prog_compiler_static_CXX=
14025
14026
14027   # C++ specific cases for pic, static, wl, etc.
14028   if test "$GXX" = yes; then
14029     lt_prog_compiler_wl_CXX='-Wl,'
14030     lt_prog_compiler_static_CXX='-static'
14031
14032     case $host_os in
14033     aix*)
14034       # All AIX code is PIC.
14035       if test "$host_cpu" = ia64; then
14036         # AIX 5 now supports IA64 processor
14037         lt_prog_compiler_static_CXX='-Bstatic'
14038       fi
14039       ;;
14040
14041     amigaos*)
14042       case $host_cpu in
14043       powerpc)
14044             # see comment about AmigaOS4 .so support
14045             lt_prog_compiler_pic_CXX='-fPIC'
14046         ;;
14047       m68k)
14048             # FIXME: we need at least 68020 code to build shared libraries, but
14049             # adding the `-m68020' flag to GCC prevents building anything better,
14050             # like `-m68040'.
14051             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14052         ;;
14053       esac
14054       ;;
14055
14056     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14057       # PIC is the default for these OSes.
14058       ;;
14059     mingw* | cygwin* | os2* | pw32* | cegcc*)
14060       # This hack is so that the source file can tell whether it is being
14061       # built for inclusion in a dll (and should export symbols for example).
14062       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14063       # (--disable-auto-import) libraries
14064       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14065       ;;
14066     darwin* | rhapsody*)
14067       # PIC is the default on this platform
14068       # Common symbols not allowed in MH_DYLIB files
14069       lt_prog_compiler_pic_CXX='-fno-common'
14070       ;;
14071     *djgpp*)
14072       # DJGPP does not support shared libraries at all
14073       lt_prog_compiler_pic_CXX=
14074       ;;
14075     haiku*)
14076       # PIC is the default for Haiku.
14077       # The "-static" flag exists, but is broken.
14078       lt_prog_compiler_static_CXX=
14079       ;;
14080     interix[3-9]*)
14081       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14082       # Instead, we relocate shared libraries at runtime.
14083       ;;
14084     sysv4*MP*)
14085       if test -d /usr/nec; then
14086         lt_prog_compiler_pic_CXX=-Kconform_pic
14087       fi
14088       ;;
14089     hpux*)
14090       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14091       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14092       # sets the default TLS model and affects inlining.
14093       case $host_cpu in
14094       hppa*64*)
14095         ;;
14096       *)
14097         lt_prog_compiler_pic_CXX='-fPIC'
14098         ;;
14099       esac
14100       ;;
14101     *qnx* | *nto*)
14102       # QNX uses GNU C++, but need to define -shared option too, otherwise
14103       # it will coredump.
14104       lt_prog_compiler_pic_CXX='-fPIC -shared'
14105       ;;
14106     *)
14107       lt_prog_compiler_pic_CXX='-fPIC'
14108       ;;
14109     esac
14110   else
14111     case $host_os in
14112       aix[4-9]*)
14113         # All AIX code is PIC.
14114         if test "$host_cpu" = ia64; then
14115           # AIX 5 now supports IA64 processor
14116           lt_prog_compiler_static_CXX='-Bstatic'
14117         else
14118           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14119         fi
14120         ;;
14121       chorus*)
14122         case $cc_basename in
14123         cxch68*)
14124           # Green Hills C++ Compiler
14125           # _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"
14126           ;;
14127         esac
14128         ;;
14129       mingw* | cygwin* | os2* | pw32* | cegcc*)
14130         # This hack is so that the source file can tell whether it is being
14131         # built for inclusion in a dll (and should export symbols for example).
14132         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14133         ;;
14134       dgux*)
14135         case $cc_basename in
14136           ec++*)
14137             lt_prog_compiler_pic_CXX='-KPIC'
14138             ;;
14139           ghcx*)
14140             # Green Hills C++ Compiler
14141             lt_prog_compiler_pic_CXX='-pic'
14142             ;;
14143           *)
14144             ;;
14145         esac
14146         ;;
14147       freebsd* | dragonfly*)
14148         # FreeBSD uses GNU C++
14149         ;;
14150       hpux9* | hpux10* | hpux11*)
14151         case $cc_basename in
14152           CC*)
14153             lt_prog_compiler_wl_CXX='-Wl,'
14154             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14155             if test "$host_cpu" != ia64; then
14156               lt_prog_compiler_pic_CXX='+Z'
14157             fi
14158             ;;
14159           aCC*)
14160             lt_prog_compiler_wl_CXX='-Wl,'
14161             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14162             case $host_cpu in
14163             hppa*64*|ia64*)
14164               # +Z the default
14165               ;;
14166             *)
14167               lt_prog_compiler_pic_CXX='+Z'
14168               ;;
14169             esac
14170             ;;
14171           *)
14172             ;;
14173         esac
14174         ;;
14175       interix*)
14176         # This is c89, which is MS Visual C++ (no shared libs)
14177         # Anyone wants to do a port?
14178         ;;
14179       irix5* | irix6* | nonstopux*)
14180         case $cc_basename in
14181           CC*)
14182             lt_prog_compiler_wl_CXX='-Wl,'
14183             lt_prog_compiler_static_CXX='-non_shared'
14184             # CC pic flag -KPIC is the default.
14185             ;;
14186           *)
14187             ;;
14188         esac
14189         ;;
14190       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14191         case $cc_basename in
14192           KCC*)
14193             # KAI C++ Compiler
14194             lt_prog_compiler_wl_CXX='--backend -Wl,'
14195             lt_prog_compiler_pic_CXX='-fPIC'
14196             ;;
14197           ecpc* )
14198             # old Intel C++ for x86_64 which still supported -KPIC.
14199             lt_prog_compiler_wl_CXX='-Wl,'
14200             lt_prog_compiler_pic_CXX='-KPIC'
14201             lt_prog_compiler_static_CXX='-static'
14202             ;;
14203           icpc* )
14204             # Intel C++, used to be incompatible with GCC.
14205             # ICC 10 doesn't accept -KPIC any more.
14206             lt_prog_compiler_wl_CXX='-Wl,'
14207             lt_prog_compiler_pic_CXX='-fPIC'
14208             lt_prog_compiler_static_CXX='-static'
14209             ;;
14210           pgCC* | pgcpp*)
14211             # Portland Group C++ compiler
14212             lt_prog_compiler_wl_CXX='-Wl,'
14213             lt_prog_compiler_pic_CXX='-fpic'
14214             lt_prog_compiler_static_CXX='-Bstatic'
14215             ;;
14216           cxx*)
14217             # Compaq C++
14218             # Make sure the PIC flag is empty.  It appears that all Alpha
14219             # Linux and Compaq Tru64 Unix objects are PIC.
14220             lt_prog_compiler_pic_CXX=
14221             lt_prog_compiler_static_CXX='-non_shared'
14222             ;;
14223           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14224             # IBM XL 8.0, 9.0 on PPC and BlueGene
14225             lt_prog_compiler_wl_CXX='-Wl,'
14226             lt_prog_compiler_pic_CXX='-qpic'
14227             lt_prog_compiler_static_CXX='-qstaticlink'
14228             ;;
14229           *)
14230             case `$CC -V 2>&1 | sed 5q` in
14231             *Sun\ C*)
14232               # Sun C++ 5.9
14233               lt_prog_compiler_pic_CXX='-KPIC'
14234               lt_prog_compiler_static_CXX='-Bstatic'
14235               lt_prog_compiler_wl_CXX='-Qoption ld '
14236               ;;
14237             esac
14238             ;;
14239         esac
14240         ;;
14241       lynxos*)
14242         ;;
14243       m88k*)
14244         ;;
14245       mvs*)
14246         case $cc_basename in
14247           cxx*)
14248             lt_prog_compiler_pic_CXX='-W c,exportall'
14249             ;;
14250           *)
14251             ;;
14252         esac
14253         ;;
14254       netbsd* | netbsdelf*-gnu)
14255         ;;
14256       *qnx* | *nto*)
14257         # QNX uses GNU C++, but need to define -shared option too, otherwise
14258         # it will coredump.
14259         lt_prog_compiler_pic_CXX='-fPIC -shared'
14260         ;;
14261       osf3* | osf4* | osf5*)
14262         case $cc_basename in
14263           KCC*)
14264             lt_prog_compiler_wl_CXX='--backend -Wl,'
14265             ;;
14266           RCC*)
14267             # Rational C++ 2.4.1
14268             lt_prog_compiler_pic_CXX='-pic'
14269             ;;
14270           cxx*)
14271             # Digital/Compaq C++
14272             lt_prog_compiler_wl_CXX='-Wl,'
14273             # Make sure the PIC flag is empty.  It appears that all Alpha
14274             # Linux and Compaq Tru64 Unix objects are PIC.
14275             lt_prog_compiler_pic_CXX=
14276             lt_prog_compiler_static_CXX='-non_shared'
14277             ;;
14278           *)
14279             ;;
14280         esac
14281         ;;
14282       psos*)
14283         ;;
14284       solaris*)
14285         case $cc_basename in
14286           CC* | sunCC*)
14287             # Sun C++ 4.2, 5.x and Centerline C++
14288             lt_prog_compiler_pic_CXX='-KPIC'
14289             lt_prog_compiler_static_CXX='-Bstatic'
14290             lt_prog_compiler_wl_CXX='-Qoption ld '
14291             ;;
14292           gcx*)
14293             # Green Hills C++ Compiler
14294             lt_prog_compiler_pic_CXX='-PIC'
14295             ;;
14296           *)
14297             ;;
14298         esac
14299         ;;
14300       sunos4*)
14301         case $cc_basename in
14302           CC*)
14303             # Sun C++ 4.x
14304             lt_prog_compiler_pic_CXX='-pic'
14305             lt_prog_compiler_static_CXX='-Bstatic'
14306             ;;
14307           lcc*)
14308             # Lucid
14309             lt_prog_compiler_pic_CXX='-pic'
14310             ;;
14311           *)
14312             ;;
14313         esac
14314         ;;
14315       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14316         case $cc_basename in
14317           CC*)
14318             lt_prog_compiler_wl_CXX='-Wl,'
14319             lt_prog_compiler_pic_CXX='-KPIC'
14320             lt_prog_compiler_static_CXX='-Bstatic'
14321             ;;
14322         esac
14323         ;;
14324       tandem*)
14325         case $cc_basename in
14326           NCC*)
14327             # NonStop-UX NCC 3.20
14328             lt_prog_compiler_pic_CXX='-KPIC'
14329             ;;
14330           *)
14331             ;;
14332         esac
14333         ;;
14334       vxworks*)
14335         ;;
14336       *)
14337         lt_prog_compiler_can_build_shared_CXX=no
14338         ;;
14339     esac
14340   fi
14341
14342 case $host_os in
14343   # For platforms which do not support PIC, -DPIC is meaningless:
14344   *djgpp*)
14345     lt_prog_compiler_pic_CXX=
14346     ;;
14347   *)
14348     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14349     ;;
14350 esac
14351
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14353 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14354 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14355   $as_echo_n "(cached) " >&6
14356 else
14357   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14358 fi
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14360 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14361 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14362
14363 #
14364 # Check to make sure the PIC flag actually works.
14365 #
14366 if test -n "$lt_prog_compiler_pic_CXX"; then
14367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14368 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14369 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14370   $as_echo_n "(cached) " >&6
14371 else
14372   lt_cv_prog_compiler_pic_works_CXX=no
14373    ac_outfile=conftest.$ac_objext
14374    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14375    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14376    # Insert the option either (1) after the last *FLAGS variable, or
14377    # (2) before a word containing "conftest.", or (3) at the end.
14378    # Note that $ac_compile itself does not contain backslashes and begins
14379    # with a dollar sign (not a hyphen), so the echo should work correctly.
14380    # The option is referenced via a variable to avoid confusing sed.
14381    lt_compile=`echo "$ac_compile" | $SED \
14382    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14383    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14384    -e 's:$: $lt_compiler_flag:'`
14385    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14386    (eval "$lt_compile" 2>conftest.err)
14387    ac_status=$?
14388    cat conftest.err >&5
14389    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390    if (exit $ac_status) && test -s "$ac_outfile"; then
14391      # The compiler can only warn and ignore the option if not recognized
14392      # So say no if there are warnings other than the usual output.
14393      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14394      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14395      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14396        lt_cv_prog_compiler_pic_works_CXX=yes
14397      fi
14398    fi
14399    $RM conftest*
14400
14401 fi
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14403 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14404
14405 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14406     case $lt_prog_compiler_pic_CXX in
14407      "" | " "*) ;;
14408      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14409      esac
14410 else
14411     lt_prog_compiler_pic_CXX=
14412      lt_prog_compiler_can_build_shared_CXX=no
14413 fi
14414
14415 fi
14416
14417
14418
14419
14420
14421 #
14422 # Check to make sure the static flag actually works.
14423 #
14424 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14426 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14427 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14428   $as_echo_n "(cached) " >&6
14429 else
14430   lt_cv_prog_compiler_static_works_CXX=no
14431    save_LDFLAGS="$LDFLAGS"
14432    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14433    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14434    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14435      # The linker can only warn and ignore the option if not recognized
14436      # So say no if there are warnings
14437      if test -s conftest.err; then
14438        # Append any errors to the config.log.
14439        cat conftest.err 1>&5
14440        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14441        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14442        if diff conftest.exp conftest.er2 >/dev/null; then
14443          lt_cv_prog_compiler_static_works_CXX=yes
14444        fi
14445      else
14446        lt_cv_prog_compiler_static_works_CXX=yes
14447      fi
14448    fi
14449    $RM -r conftest*
14450    LDFLAGS="$save_LDFLAGS"
14451
14452 fi
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14454 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14455
14456 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14457     :
14458 else
14459     lt_prog_compiler_static_CXX=
14460 fi
14461
14462
14463
14464
14465     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14467 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14468   $as_echo_n "(cached) " >&6
14469 else
14470   lt_cv_prog_compiler_c_o_CXX=no
14471    $RM -r conftest 2>/dev/null
14472    mkdir conftest
14473    cd conftest
14474    mkdir out
14475    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14476
14477    lt_compiler_flag="-o out/conftest2.$ac_objext"
14478    # Insert the option either (1) after the last *FLAGS variable, or
14479    # (2) before a word containing "conftest.", or (3) at the end.
14480    # Note that $ac_compile itself does not contain backslashes and begins
14481    # with a dollar sign (not a hyphen), so the echo should work correctly.
14482    lt_compile=`echo "$ac_compile" | $SED \
14483    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14484    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14485    -e 's:$: $lt_compiler_flag:'`
14486    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14487    (eval "$lt_compile" 2>out/conftest.err)
14488    ac_status=$?
14489    cat out/conftest.err >&5
14490    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14492    then
14493      # The compiler can only warn and ignore the option if not recognized
14494      # So say no if there are warnings
14495      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14496      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14497      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14498        lt_cv_prog_compiler_c_o_CXX=yes
14499      fi
14500    fi
14501    chmod u+w . 2>&5
14502    $RM conftest*
14503    # SGI C++ compiler will create directory out/ii_files/ for
14504    # template instantiation
14505    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14506    $RM out/* && rmdir out
14507    cd ..
14508    $RM -r conftest
14509    $RM conftest*
14510
14511 fi
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14513 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14514
14515
14516
14517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14518 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14519 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14520   $as_echo_n "(cached) " >&6
14521 else
14522   lt_cv_prog_compiler_c_o_CXX=no
14523    $RM -r conftest 2>/dev/null
14524    mkdir conftest
14525    cd conftest
14526    mkdir out
14527    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14528
14529    lt_compiler_flag="-o out/conftest2.$ac_objext"
14530    # Insert the option either (1) after the last *FLAGS variable, or
14531    # (2) before a word containing "conftest.", or (3) at the end.
14532    # Note that $ac_compile itself does not contain backslashes and begins
14533    # with a dollar sign (not a hyphen), so the echo should work correctly.
14534    lt_compile=`echo "$ac_compile" | $SED \
14535    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14536    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14537    -e 's:$: $lt_compiler_flag:'`
14538    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14539    (eval "$lt_compile" 2>out/conftest.err)
14540    ac_status=$?
14541    cat out/conftest.err >&5
14542    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14544    then
14545      # The compiler can only warn and ignore the option if not recognized
14546      # So say no if there are warnings
14547      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14548      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14549      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14550        lt_cv_prog_compiler_c_o_CXX=yes
14551      fi
14552    fi
14553    chmod u+w . 2>&5
14554    $RM conftest*
14555    # SGI C++ compiler will create directory out/ii_files/ for
14556    # template instantiation
14557    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14558    $RM out/* && rmdir out
14559    cd ..
14560    $RM -r conftest
14561    $RM conftest*
14562
14563 fi
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14565 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14566
14567
14568
14569
14570 hard_links="nottested"
14571 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14572   # do not overwrite the value of need_locks provided by the user
14573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14574 $as_echo_n "checking if we can lock with hard links... " >&6; }
14575   hard_links=yes
14576   $RM conftest*
14577   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14578   touch conftest.a
14579   ln conftest.a conftest.b 2>&5 || hard_links=no
14580   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14582 $as_echo "$hard_links" >&6; }
14583   if test "$hard_links" = no; then
14584     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14585 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14586     need_locks=warn
14587   fi
14588 else
14589   need_locks=no
14590 fi
14591
14592
14593
14594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14595 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14596
14597   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14598   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14599   case $host_os in
14600   aix[4-9]*)
14601     # If we're using GNU nm, then we don't want the "-C" option.
14602     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14603     # Also, AIX nm treats weak defined symbols like other global defined
14604     # symbols, whereas GNU nm marks them as "W".
14605     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14606       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'
14607     else
14608       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'
14609     fi
14610     ;;
14611   pw32*)
14612     export_symbols_cmds_CXX="$ltdll_cmds"
14613     ;;
14614   cygwin* | mingw* | cegcc*)
14615     case $cc_basename in
14616     cl*)
14617       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14618       ;;
14619     *)
14620       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'
14621       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14622       ;;
14623     esac
14624     ;;
14625   linux* | k*bsd*-gnu | gnu*)
14626     link_all_deplibs_CXX=no
14627     ;;
14628   *)
14629     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14630     ;;
14631   esac
14632
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14634 $as_echo "$ld_shlibs_CXX" >&6; }
14635 test "$ld_shlibs_CXX" = no && can_build_shared=no
14636
14637 with_gnu_ld_CXX=$with_gnu_ld
14638
14639
14640
14641
14642
14643
14644 #
14645 # Do we need to explicitly link libc?
14646 #
14647 case "x$archive_cmds_need_lc_CXX" in
14648 x|xyes)
14649   # Assume -lc should be added
14650   archive_cmds_need_lc_CXX=yes
14651
14652   if test "$enable_shared" = yes && test "$GCC" = yes; then
14653     case $archive_cmds_CXX in
14654     *'~'*)
14655       # FIXME: we may have to deal with multi-command sequences.
14656       ;;
14657     '$CC '*)
14658       # Test whether the compiler implicitly links with -lc since on some
14659       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14660       # to ld, don't add -lc before -lgcc.
14661       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14662 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14663 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14664   $as_echo_n "(cached) " >&6
14665 else
14666   $RM conftest*
14667         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14668
14669         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14670   (eval $ac_compile) 2>&5
14671   ac_status=$?
14672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14673   test $ac_status = 0; } 2>conftest.err; then
14674           soname=conftest
14675           lib=conftest
14676           libobjs=conftest.$ac_objext
14677           deplibs=
14678           wl=$lt_prog_compiler_wl_CXX
14679           pic_flag=$lt_prog_compiler_pic_CXX
14680           compiler_flags=-v
14681           linker_flags=-v
14682           verstring=
14683           output_objdir=.
14684           libname=conftest
14685           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14686           allow_undefined_flag_CXX=
14687           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14688   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14689   ac_status=$?
14690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14691   test $ac_status = 0; }
14692           then
14693             lt_cv_archive_cmds_need_lc_CXX=no
14694           else
14695             lt_cv_archive_cmds_need_lc_CXX=yes
14696           fi
14697           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14698         else
14699           cat conftest.err 1>&5
14700         fi
14701         $RM conftest*
14702
14703 fi
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14705 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14706       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14707       ;;
14708     esac
14709   fi
14710   ;;
14711 esac
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14775 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14776
14777 library_names_spec=
14778 libname_spec='lib$name'
14779 soname_spec=
14780 shrext_cmds=".so"
14781 postinstall_cmds=
14782 postuninstall_cmds=
14783 finish_cmds=
14784 finish_eval=
14785 shlibpath_var=
14786 shlibpath_overrides_runpath=unknown
14787 version_type=none
14788 dynamic_linker="$host_os ld.so"
14789 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14790 need_lib_prefix=unknown
14791 hardcode_into_libs=no
14792
14793 # when you set need_version to no, make sure it does not cause -set_version
14794 # flags to be left without arguments
14795 need_version=unknown
14796
14797 case $host_os in
14798 aix3*)
14799   version_type=linux # correct to gnu/linux during the next big refactor
14800   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14801   shlibpath_var=LIBPATH
14802
14803   # AIX 3 has no versioning support, so we append a major version to the name.
14804   soname_spec='${libname}${release}${shared_ext}$major'
14805   ;;
14806
14807 aix[4-9]*)
14808   version_type=linux # correct to gnu/linux during the next big refactor
14809   need_lib_prefix=no
14810   need_version=no
14811   hardcode_into_libs=yes
14812   if test "$host_cpu" = ia64; then
14813     # AIX 5 supports IA64
14814     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14815     shlibpath_var=LD_LIBRARY_PATH
14816   else
14817     # With GCC up to 2.95.x, collect2 would create an import file
14818     # for dependence libraries.  The import file would start with
14819     # the line `#! .'.  This would cause the generated library to
14820     # depend on `.', always an invalid library.  This was fixed in
14821     # development snapshots of GCC prior to 3.0.
14822     case $host_os in
14823       aix4 | aix4.[01] | aix4.[01].*)
14824       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14825            echo ' yes '
14826            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14827         :
14828       else
14829         can_build_shared=no
14830       fi
14831       ;;
14832     esac
14833     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14834     # soname into executable. Probably we can add versioning support to
14835     # collect2, so additional links can be useful in future.
14836     if test "$aix_use_runtimelinking" = yes; then
14837       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14838       # instead of lib<name>.a to let people know that these are not
14839       # typical AIX shared libraries.
14840       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14841     else
14842       # We preserve .a as extension for shared libraries through AIX4.2
14843       # and later when we are not doing run time linking.
14844       library_names_spec='${libname}${release}.a $libname.a'
14845       soname_spec='${libname}${release}${shared_ext}$major'
14846     fi
14847     shlibpath_var=LIBPATH
14848   fi
14849   ;;
14850
14851 amigaos*)
14852   case $host_cpu in
14853   powerpc)
14854     # Since July 2007 AmigaOS4 officially supports .so libraries.
14855     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14856     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857     ;;
14858   m68k)
14859     library_names_spec='$libname.ixlibrary $libname.a'
14860     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14861     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'
14862     ;;
14863   esac
14864   ;;
14865
14866 beos*)
14867   library_names_spec='${libname}${shared_ext}'
14868   dynamic_linker="$host_os ld.so"
14869   shlibpath_var=LIBRARY_PATH
14870   ;;
14871
14872 bsdi[45]*)
14873   version_type=linux # correct to gnu/linux during the next big refactor
14874   need_version=no
14875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876   soname_spec='${libname}${release}${shared_ext}$major'
14877   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14878   shlibpath_var=LD_LIBRARY_PATH
14879   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14880   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14881   # the default ld.so.conf also contains /usr/contrib/lib and
14882   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14883   # libtool to hard-code these into programs
14884   ;;
14885
14886 cygwin* | mingw* | pw32* | cegcc*)
14887   version_type=windows
14888   shrext_cmds=".dll"
14889   need_version=no
14890   need_lib_prefix=no
14891
14892   case $GCC,$cc_basename in
14893   yes,*)
14894     # gcc
14895     library_names_spec='$libname.dll.a'
14896     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14897     postinstall_cmds='base_file=`basename \${file}`~
14898       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14899       dldir=$destdir/`dirname \$dlpath`~
14900       test -d \$dldir || mkdir -p \$dldir~
14901       $install_prog $dir/$dlname \$dldir/$dlname~
14902       chmod a+x \$dldir/$dlname~
14903       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14904         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14905       fi'
14906     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14907       dlpath=$dir/\$dldll~
14908        $RM \$dlpath'
14909     shlibpath_overrides_runpath=yes
14910
14911     case $host_os in
14912     cygwin*)
14913       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14914       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14915
14916       ;;
14917     mingw* | cegcc*)
14918       # MinGW DLLs use traditional 'lib' prefix
14919       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14920       ;;
14921     pw32*)
14922       # pw32 DLLs use 'pw' prefix rather than 'lib'
14923       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14924       ;;
14925     esac
14926     dynamic_linker='Win32 ld.exe'
14927     ;;
14928
14929   *,cl*)
14930     # Native MSVC
14931     libname_spec='$name'
14932     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14933     library_names_spec='${libname}.dll.lib'
14934
14935     case $build_os in
14936     mingw*)
14937       sys_lib_search_path_spec=
14938       lt_save_ifs=$IFS
14939       IFS=';'
14940       for lt_path in $LIB
14941       do
14942         IFS=$lt_save_ifs
14943         # Let DOS variable expansion print the short 8.3 style file name.
14944         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14945         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14946       done
14947       IFS=$lt_save_ifs
14948       # Convert to MSYS style.
14949       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14950       ;;
14951     cygwin*)
14952       # Convert to unix form, then to dos form, then back to unix form
14953       # but this time dos style (no spaces!) so that the unix form looks
14954       # like /cygdrive/c/PROGRA~1:/cygdr...
14955       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14956       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14957       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14958       ;;
14959     *)
14960       sys_lib_search_path_spec="$LIB"
14961       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14962         # It is most probably a Windows format PATH.
14963         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14964       else
14965         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14966       fi
14967       # FIXME: find the short name or the path components, as spaces are
14968       # common. (e.g. "Program Files" -> "PROGRA~1")
14969       ;;
14970     esac
14971
14972     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14973     postinstall_cmds='base_file=`basename \${file}`~
14974       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14975       dldir=$destdir/`dirname \$dlpath`~
14976       test -d \$dldir || mkdir -p \$dldir~
14977       $install_prog $dir/$dlname \$dldir/$dlname'
14978     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14979       dlpath=$dir/\$dldll~
14980        $RM \$dlpath'
14981     shlibpath_overrides_runpath=yes
14982     dynamic_linker='Win32 link.exe'
14983     ;;
14984
14985   *)
14986     # Assume MSVC wrapper
14987     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14988     dynamic_linker='Win32 ld.exe'
14989     ;;
14990   esac
14991   # FIXME: first we should search . and the directory the executable is in
14992   shlibpath_var=PATH
14993   ;;
14994
14995 darwin* | rhapsody*)
14996   dynamic_linker="$host_os dyld"
14997   version_type=darwin
14998   need_lib_prefix=no
14999   need_version=no
15000   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15001   soname_spec='${libname}${release}${major}$shared_ext'
15002   shlibpath_overrides_runpath=yes
15003   shlibpath_var=DYLD_LIBRARY_PATH
15004   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15005
15006   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15007   ;;
15008
15009 dgux*)
15010   version_type=linux # correct to gnu/linux during the next big refactor
15011   need_lib_prefix=no
15012   need_version=no
15013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15014   soname_spec='${libname}${release}${shared_ext}$major'
15015   shlibpath_var=LD_LIBRARY_PATH
15016   ;;
15017
15018 freebsd* | dragonfly*)
15019   # DragonFly does not have aout.  When/if they implement a new
15020   # versioning mechanism, adjust this.
15021   if test -x /usr/bin/objformat; then
15022     objformat=`/usr/bin/objformat`
15023   else
15024     case $host_os in
15025     freebsd[23].*) objformat=aout ;;
15026     *) objformat=elf ;;
15027     esac
15028   fi
15029   version_type=freebsd-$objformat
15030   case $version_type in
15031     freebsd-elf*)
15032       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15033       need_version=no
15034       need_lib_prefix=no
15035       ;;
15036     freebsd-*)
15037       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15038       need_version=yes
15039       ;;
15040   esac
15041   shlibpath_var=LD_LIBRARY_PATH
15042   case $host_os in
15043   freebsd2.*)
15044     shlibpath_overrides_runpath=yes
15045     ;;
15046   freebsd3.[01]* | freebsdelf3.[01]*)
15047     shlibpath_overrides_runpath=yes
15048     hardcode_into_libs=yes
15049     ;;
15050   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15051   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15052     shlibpath_overrides_runpath=no
15053     hardcode_into_libs=yes
15054     ;;
15055   *) # from 4.6 on, and DragonFly
15056     shlibpath_overrides_runpath=yes
15057     hardcode_into_libs=yes
15058     ;;
15059   esac
15060   ;;
15061
15062 haiku*)
15063   version_type=linux # correct to gnu/linux during the next big refactor
15064   need_lib_prefix=no
15065   need_version=no
15066   dynamic_linker="$host_os runtime_loader"
15067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15068   soname_spec='${libname}${release}${shared_ext}$major'
15069   shlibpath_var=LIBRARY_PATH
15070   shlibpath_overrides_runpath=yes
15071   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15072   hardcode_into_libs=yes
15073   ;;
15074
15075 hpux9* | hpux10* | hpux11*)
15076   # Give a soname corresponding to the major version so that dld.sl refuses to
15077   # link against other versions.
15078   version_type=sunos
15079   need_lib_prefix=no
15080   need_version=no
15081   case $host_cpu in
15082   ia64*)
15083     shrext_cmds='.so'
15084     hardcode_into_libs=yes
15085     dynamic_linker="$host_os dld.so"
15086     shlibpath_var=LD_LIBRARY_PATH
15087     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15089     soname_spec='${libname}${release}${shared_ext}$major'
15090     if test "X$HPUX_IA64_MODE" = X32; then
15091       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15092     else
15093       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15094     fi
15095     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15096     ;;
15097   hppa*64*)
15098     shrext_cmds='.sl'
15099     hardcode_into_libs=yes
15100     dynamic_linker="$host_os dld.sl"
15101     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15102     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15104     soname_spec='${libname}${release}${shared_ext}$major'
15105     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15106     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15107     ;;
15108   *)
15109     shrext_cmds='.sl'
15110     dynamic_linker="$host_os dld.sl"
15111     shlibpath_var=SHLIB_PATH
15112     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15113     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15114     soname_spec='${libname}${release}${shared_ext}$major'
15115     ;;
15116   esac
15117   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15118   postinstall_cmds='chmod 555 $lib'
15119   # or fails outright, so override atomically:
15120   install_override_mode=555
15121   ;;
15122
15123 interix[3-9]*)
15124   version_type=linux # correct to gnu/linux during the next big refactor
15125   need_lib_prefix=no
15126   need_version=no
15127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15128   soname_spec='${libname}${release}${shared_ext}$major'
15129   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15130   shlibpath_var=LD_LIBRARY_PATH
15131   shlibpath_overrides_runpath=no
15132   hardcode_into_libs=yes
15133   ;;
15134
15135 irix5* | irix6* | nonstopux*)
15136   case $host_os in
15137     nonstopux*) version_type=nonstopux ;;
15138     *)
15139         if test "$lt_cv_prog_gnu_ld" = yes; then
15140                 version_type=linux # correct to gnu/linux during the next big refactor
15141         else
15142                 version_type=irix
15143         fi ;;
15144   esac
15145   need_lib_prefix=no
15146   need_version=no
15147   soname_spec='${libname}${release}${shared_ext}$major'
15148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15149   case $host_os in
15150   irix5* | nonstopux*)
15151     libsuff= shlibsuff=
15152     ;;
15153   *)
15154     case $LD in # libtool.m4 will add one of these switches to LD
15155     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15156       libsuff= shlibsuff= libmagic=32-bit;;
15157     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15158       libsuff=32 shlibsuff=N32 libmagic=N32;;
15159     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15160       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15161     *) libsuff= shlibsuff= libmagic=never-match;;
15162     esac
15163     ;;
15164   esac
15165   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15166   shlibpath_overrides_runpath=no
15167   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15168   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15169   hardcode_into_libs=yes
15170   ;;
15171
15172 # No shared lib support for Linux oldld, aout, or coff.
15173 linux*oldld* | linux*aout* | linux*coff*)
15174   dynamic_linker=no
15175   ;;
15176
15177 # This must be glibc/ELF.
15178 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15179   version_type=linux # correct to gnu/linux during the next big refactor
15180   need_lib_prefix=no
15181   need_version=no
15182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15183   soname_spec='${libname}${release}${shared_ext}$major'
15184   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15185   shlibpath_var=LD_LIBRARY_PATH
15186   shlibpath_overrides_runpath=no
15187
15188   # Some binutils ld are patched to set DT_RUNPATH
15189   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15190   $as_echo_n "(cached) " >&6
15191 else
15192   lt_cv_shlibpath_overrides_runpath=no
15193     save_LDFLAGS=$LDFLAGS
15194     save_libdir=$libdir
15195     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15196          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15197     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15198 /* end confdefs.h.  */
15199
15200 int
15201 main ()
15202 {
15203
15204   ;
15205   return 0;
15206 }
15207 _ACEOF
15208 if ac_fn_cxx_try_link "$LINENO"; then :
15209   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15210   lt_cv_shlibpath_overrides_runpath=yes
15211 fi
15212 fi
15213 rm -f core conftest.err conftest.$ac_objext \
15214     conftest$ac_exeext conftest.$ac_ext
15215     LDFLAGS=$save_LDFLAGS
15216     libdir=$save_libdir
15217
15218 fi
15219
15220   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15221
15222   # This implies no fast_install, which is unacceptable.
15223   # Some rework will be needed to allow for fast_install
15224   # before this can be enabled.
15225   hardcode_into_libs=yes
15226
15227   # Append ld.so.conf contents to the search path
15228   if test -f /etc/ld.so.conf; then
15229     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' ' '`
15230     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15231   fi
15232
15233   # We used to test for /lib/ld.so.1 and disable shared libraries on
15234   # powerpc, because MkLinux only supported shared libraries with the
15235   # GNU dynamic linker.  Since this was broken with cross compilers,
15236   # most powerpc-linux boxes support dynamic linking these days and
15237   # people can always --disable-shared, the test was removed, and we
15238   # assume the GNU/Linux dynamic linker is in use.
15239   dynamic_linker='GNU/Linux ld.so'
15240   ;;
15241
15242 netbsdelf*-gnu)
15243   version_type=linux
15244   need_lib_prefix=no
15245   need_version=no
15246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15247   soname_spec='${libname}${release}${shared_ext}$major'
15248   shlibpath_var=LD_LIBRARY_PATH
15249   shlibpath_overrides_runpath=no
15250   hardcode_into_libs=yes
15251   dynamic_linker='NetBSD ld.elf_so'
15252   ;;
15253
15254 netbsd*)
15255   version_type=sunos
15256   need_lib_prefix=no
15257   need_version=no
15258   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15260     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15261     dynamic_linker='NetBSD (a.out) ld.so'
15262   else
15263     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15264     soname_spec='${libname}${release}${shared_ext}$major'
15265     dynamic_linker='NetBSD ld.elf_so'
15266   fi
15267   shlibpath_var=LD_LIBRARY_PATH
15268   shlibpath_overrides_runpath=yes
15269   hardcode_into_libs=yes
15270   ;;
15271
15272 newsos6)
15273   version_type=linux # correct to gnu/linux during the next big refactor
15274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15275   shlibpath_var=LD_LIBRARY_PATH
15276   shlibpath_overrides_runpath=yes
15277   ;;
15278
15279 *nto* | *qnx*)
15280   version_type=qnx
15281   need_lib_prefix=no
15282   need_version=no
15283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284   soname_spec='${libname}${release}${shared_ext}$major'
15285   shlibpath_var=LD_LIBRARY_PATH
15286   shlibpath_overrides_runpath=no
15287   hardcode_into_libs=yes
15288   dynamic_linker='ldqnx.so'
15289   ;;
15290
15291 openbsd*)
15292   version_type=sunos
15293   sys_lib_dlsearch_path_spec="/usr/lib"
15294   need_lib_prefix=no
15295   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15296   case $host_os in
15297     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15298     *)                          need_version=no  ;;
15299   esac
15300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15301   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15302   shlibpath_var=LD_LIBRARY_PATH
15303   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15304     case $host_os in
15305       openbsd2.[89] | openbsd2.[89].*)
15306         shlibpath_overrides_runpath=no
15307         ;;
15308       *)
15309         shlibpath_overrides_runpath=yes
15310         ;;
15311       esac
15312   else
15313     shlibpath_overrides_runpath=yes
15314   fi
15315   ;;
15316
15317 os2*)
15318   libname_spec='$name'
15319   shrext_cmds=".dll"
15320   need_lib_prefix=no
15321   library_names_spec='$libname${shared_ext} $libname.a'
15322   dynamic_linker='OS/2 ld.exe'
15323   shlibpath_var=LIBPATH
15324   ;;
15325
15326 osf3* | osf4* | osf5*)
15327   version_type=osf
15328   need_lib_prefix=no
15329   need_version=no
15330   soname_spec='${libname}${release}${shared_ext}$major'
15331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15332   shlibpath_var=LD_LIBRARY_PATH
15333   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15334   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15335   ;;
15336
15337 rdos*)
15338   dynamic_linker=no
15339   ;;
15340
15341 solaris*)
15342   version_type=linux # correct to gnu/linux during the next big refactor
15343   need_lib_prefix=no
15344   need_version=no
15345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15346   soname_spec='${libname}${release}${shared_ext}$major'
15347   shlibpath_var=LD_LIBRARY_PATH
15348   shlibpath_overrides_runpath=yes
15349   hardcode_into_libs=yes
15350   # ldd complains unless libraries are executable
15351   postinstall_cmds='chmod +x $lib'
15352   ;;
15353
15354 sunos4*)
15355   version_type=sunos
15356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15357   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15358   shlibpath_var=LD_LIBRARY_PATH
15359   shlibpath_overrides_runpath=yes
15360   if test "$with_gnu_ld" = yes; then
15361     need_lib_prefix=no
15362   fi
15363   need_version=yes
15364   ;;
15365
15366 sysv4 | sysv4.3*)
15367   version_type=linux # correct to gnu/linux during the next big refactor
15368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15369   soname_spec='${libname}${release}${shared_ext}$major'
15370   shlibpath_var=LD_LIBRARY_PATH
15371   case $host_vendor in
15372     sni)
15373       shlibpath_overrides_runpath=no
15374       need_lib_prefix=no
15375       runpath_var=LD_RUN_PATH
15376       ;;
15377     siemens)
15378       need_lib_prefix=no
15379       ;;
15380     motorola)
15381       need_lib_prefix=no
15382       need_version=no
15383       shlibpath_overrides_runpath=no
15384       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15385       ;;
15386   esac
15387   ;;
15388
15389 sysv4*MP*)
15390   if test -d /usr/nec ;then
15391     version_type=linux # correct to gnu/linux during the next big refactor
15392     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15393     soname_spec='$libname${shared_ext}.$major'
15394     shlibpath_var=LD_LIBRARY_PATH
15395   fi
15396   ;;
15397
15398 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15399   version_type=freebsd-elf
15400   need_lib_prefix=no
15401   need_version=no
15402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15403   soname_spec='${libname}${release}${shared_ext}$major'
15404   shlibpath_var=LD_LIBRARY_PATH
15405   shlibpath_overrides_runpath=yes
15406   hardcode_into_libs=yes
15407   if test "$with_gnu_ld" = yes; then
15408     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15409   else
15410     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15411     case $host_os in
15412       sco3.2v5*)
15413         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15414         ;;
15415     esac
15416   fi
15417   sys_lib_dlsearch_path_spec='/usr/lib'
15418   ;;
15419
15420 tpf*)
15421   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15422   version_type=linux # correct to gnu/linux during the next big refactor
15423   need_lib_prefix=no
15424   need_version=no
15425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426   shlibpath_var=LD_LIBRARY_PATH
15427   shlibpath_overrides_runpath=no
15428   hardcode_into_libs=yes
15429   ;;
15430
15431 uts4*)
15432   version_type=linux # correct to gnu/linux during the next big refactor
15433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434   soname_spec='${libname}${release}${shared_ext}$major'
15435   shlibpath_var=LD_LIBRARY_PATH
15436   ;;
15437
15438 *)
15439   dynamic_linker=no
15440   ;;
15441 esac
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15443 $as_echo "$dynamic_linker" >&6; }
15444 test "$dynamic_linker" = no && can_build_shared=no
15445
15446 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15447 if test "$GCC" = yes; then
15448   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15449 fi
15450
15451 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15452   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15453 fi
15454 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15455   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15456 fi
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15496 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15497 hardcode_action_CXX=
15498 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15499    test -n "$runpath_var_CXX" ||
15500    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15501
15502   # We can hardcode non-existent directories.
15503   if test "$hardcode_direct_CXX" != no &&
15504      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15505      # have to relink, otherwise we might link with an installed library
15506      # when we should be linking with a yet-to-be-installed one
15507      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15508      test "$hardcode_minus_L_CXX" != no; then
15509     # Linking always hardcodes the temporary library directory.
15510     hardcode_action_CXX=relink
15511   else
15512     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15513     hardcode_action_CXX=immediate
15514   fi
15515 else
15516   # We cannot hardcode anything, or else we can only hardcode existing
15517   # directories.
15518   hardcode_action_CXX=unsupported
15519 fi
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15521 $as_echo "$hardcode_action_CXX" >&6; }
15522
15523 if test "$hardcode_action_CXX" = relink ||
15524    test "$inherit_rpath_CXX" = yes; then
15525   # Fast installation is not supported
15526   enable_fast_install=no
15527 elif test "$shlibpath_overrides_runpath" = yes ||
15528      test "$enable_shared" = no; then
15529   # Fast installation is not necessary
15530   enable_fast_install=needless
15531 fi
15532
15533
15534
15535
15536
15537
15538
15539   fi # test -n "$compiler"
15540
15541   CC=$lt_save_CC
15542   CFLAGS=$lt_save_CFLAGS
15543   LDCXX=$LD
15544   LD=$lt_save_LD
15545   GCC=$lt_save_GCC
15546   with_gnu_ld=$lt_save_with_gnu_ld
15547   lt_cv_path_LDCXX=$lt_cv_path_LD
15548   lt_cv_path_LD=$lt_save_path_LD
15549   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15550   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15551 fi # test "$_lt_caught_CXX_error" != yes
15552
15553 ac_ext=c
15554 ac_cpp='$CPP $CPPFLAGS'
15555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15558
15559
15560 ac_config_headers="$ac_config_headers config.h"
15561
15562 for ac_header in stdarg.h stdio.h stdint.h sys/param.h
15563 do :
15564   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15565 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15567   cat >>confdefs.h <<_ACEOF
15568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15569 _ACEOF
15570
15571 fi
15572
15573 done
15574
15575 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
15576 if test "x$ac_cv_func_vasprintf" = xyes; then :
15577   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
15578
15579 else
15580   case " $LIBOBJS " in
15581   *" vasprintf.$ac_objext "* ) ;;
15582   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
15583  ;;
15584 esac
15585
15586 fi
15587
15588
15589
15590
15591 reauth=no
15592 # Check whether --enable-reauth was given.
15593 if test "${enable_reauth+set}" = set; then :
15594   enableval=$enable_reauth;  if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
15595       reauth=$enableval
15596     else
15597       echo "--enable-reauth argument must be yes or no"
15598       exit -1
15599     fi
15600
15601 fi
15602
15603
15604 if test "x$reauth" = "xyes" ; then
15605   echo "Fast reauthentication protocol enabled"
15606   TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
15607 fi
15608  if test "x$reauth" != "xno"; then
15609   GSSEAP_ENABLE_REAUTH_TRUE=
15610   GSSEAP_ENABLE_REAUTH_FALSE='#'
15611 else
15612   GSSEAP_ENABLE_REAUTH_TRUE='#'
15613   GSSEAP_ENABLE_REAUTH_FALSE=
15614 fi
15615
15616
15617 acceptor=yes
15618 # Check whether --enable-acceptor was given.
15619 if test "${enable_acceptor+set}" = set; then :
15620   enableval=$enable_acceptor;  if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
15621       acceptor=$enableval
15622     else
15623       echo "--enable-acceptor argument must be yes or no"
15624       exit -1
15625     fi
15626
15627 fi
15628
15629
15630 if test "x$acceptor" = "xyes" ; then
15631   echo "acceptor enabled"
15632   TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_ACCEPTOR"
15633 fi
15634  if test "x$acceptor" != "xno"; then
15635   GSSEAP_ENABLE_ACCEPTOR_TRUE=
15636   GSSEAP_ENABLE_ACCEPTOR_FALSE='#'
15637 else
15638   GSSEAP_ENABLE_ACCEPTOR_TRUE='#'
15639   GSSEAP_ENABLE_ACCEPTOR_FALSE=
15640 fi
15641
15642
15643
15644
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows" >&5
15646 $as_echo_n "checking for windows... " >&6; }
15647 target_windows="no"
15648 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
15649 if test "x$ac_cv_header_windows_h" = xyes; then :
15650   target_windows="yes"
15651 else
15652   target_windows="no"
15653 fi
15654
15655
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_windows" >&5
15657 $as_echo "$target_windows" >&6; }
15658  if test "x$target_windows" = "xyes"; then
15659   TARGET_WINDOWS_TRUE=
15660   TARGET_WINDOWS_FALSE='#'
15661 else
15662   TARGET_WINDOWS_TRUE='#'
15663   TARGET_WINDOWS_FALSE=
15664 fi
15665
15666
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS-API and Kerberos implementation" >&5
15668 $as_echo_n "checking for GSS-API and Kerberos implementation... " >&6; }
15669 KRB5_DIR=
15670 found_krb5="no"
15671
15672 # Check whether --with-krb5 was given.
15673 if test "${with_krb5+set}" = set; then :
15674   withval=$with_krb5; check_krb5_dir="$withval"
15675 else
15676   check_krb5_dir=
15677 fi
15678
15679 for dir in $check_krb5_dir $prefix /usr/local /usr ; do
15680    krb5dir="$dir"
15681    if test -x "$dir/bin/krb5-config"; then
15682      found_krb5="yes";
15683      if test "x$target_windows" = "xyes"; then
15684         KRB5_CFLAGS=-I"$check_krb5_dir/include";
15685         KRB5_LDFLAGS="-L$check_krb5_dir/lib/";
15686         KRB5_LIBS="-lkrb5_32 -lgssapi32";
15687         COMPILE_ET="$check_krb5_dir/bin/compile_et";
15688         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15689 $as_echo "yes" >&6; }
15690      else
15691         KRB5_CFLAGS=`$dir/bin/krb5-config gssapi --cflags`;
15692         KRB5_LDFLAGS="-L$dir/lib";
15693         KRB5_LIBS=`$dir/bin/krb5-config gssapi --libs`
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15695 $as_echo "yes" >&6; }
15696         # Extract the first word of "compile_et", so it can be a program name with args.
15697 set dummy compile_et; ac_word=$2
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15699 $as_echo_n "checking for $ac_word... " >&6; }
15700 if ${ac_cv_path_COMPILE_ET+:} false; then :
15701   $as_echo_n "(cached) " >&6
15702 else
15703   case $COMPILE_ET in
15704   [\\/]* | ?:[\\/]*)
15705   ac_cv_path_COMPILE_ET="$COMPILE_ET" # Let the user override the test with a path.
15706   ;;
15707   *)
15708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15709 for as_dir in $dir/bin$PATH_SEPARATOr
15710 do
15711   IFS=$as_save_IFS
15712   test -z "$as_dir" && as_dir=.
15713     for ac_exec_ext in '' $ac_executable_extensions; do
15714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15715     ac_cv_path_COMPILE_ET="$as_dir/$ac_word$ac_exec_ext"
15716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15717     break 2
15718   fi
15719 done
15720   done
15721 IFS=$as_save_IFS
15722
15723   test -z "$ac_cv_path_COMPILE_ET" && ac_cv_path_COMPILE_ET="compile_et"
15724   ;;
15725 esac
15726 fi
15727 COMPILE_ET=$ac_cv_path_COMPILE_ET
15728 if test -n "$COMPILE_ET"; then
15729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
15730 $as_echo "$COMPILE_ET" >&6; }
15731 else
15732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15733 $as_echo "no" >&6; }
15734 fi
15735
15736
15737      fi
15738      break;
15739    fi
15740 done
15741 if test x_$found_krb5 != x_yes; then
15742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_krb5" >&5
15743 $as_echo "$found_krb5" >&6; }
15744    as_fn_error $? "
15745 ----------------------------------------------------------------------
15746   Cannot find GSS-API/Kerberos libraries.
15747
15748   Please install MIT or Heimdal or specify installation directory with
15749   --with-krb5=(dir).
15750 ----------------------------------------------------------------------
15751 " "$LINENO" 5
15752 else
15753         printf "Kerberos found in $krb5dir\n";
15754
15755
15756
15757
15758         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5" >&5
15759 $as_echo_n "checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5... " >&6; }
15760 if ${ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT+:} false; then :
15761   $as_echo_n "(cached) " >&6
15762 else
15763   ac_check_lib_save_LIBS=$LIBS
15764 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h.  */
15767
15768 /* Override any GCC internal prototype to avoid an error.
15769    Use char because int might match the return type of a GCC
15770    builtin and then its argument prototype would still apply.  */
15771 #ifdef __cplusplus
15772 extern "C"
15773 #endif
15774 char GSS_C_NT_COMPOSITE_EXPORT ();
15775 int
15776 main ()
15777 {
15778 return GSS_C_NT_COMPOSITE_EXPORT ();
15779   ;
15780   return 0;
15781 }
15782 _ACEOF
15783 if ac_fn_c_try_link "$LINENO"; then :
15784   ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=yes
15785 else
15786   ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=no
15787 fi
15788 rm -f core conftest.err conftest.$ac_objext \
15789     conftest$ac_exeext conftest.$ac_ext
15790 LIBS=$ac_check_lib_save_LIBS
15791 fi
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&5
15793 $as_echo "$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&6; }
15794 if test "x$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" = xyes; then :
15795
15796 cat >>confdefs.h <<_ACEOF
15797 #define HAVE_GSS_C_NT_COMPOSITE_EXPORT 1
15798 _ACEOF
15799
15800 fi
15801
15802         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_inquire_attrs_for_mech in -lkrb5" >&5
15803 $as_echo_n "checking for gss_inquire_attrs_for_mech in -lkrb5... " >&6; }
15804 if ${ac_cv_lib_krb5_gss_inquire_attrs_for_mech+:} false; then :
15805   $as_echo_n "(cached) " >&6
15806 else
15807   ac_check_lib_save_LIBS=$LIBS
15808 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15810 /* end confdefs.h.  */
15811
15812 /* Override any GCC internal prototype to avoid an error.
15813    Use char because int might match the return type of a GCC
15814    builtin and then its argument prototype would still apply.  */
15815 #ifdef __cplusplus
15816 extern "C"
15817 #endif
15818 char gss_inquire_attrs_for_mech ();
15819 int
15820 main ()
15821 {
15822 return gss_inquire_attrs_for_mech ();
15823   ;
15824   return 0;
15825 }
15826 _ACEOF
15827 if ac_fn_c_try_link "$LINENO"; then :
15828   ac_cv_lib_krb5_gss_inquire_attrs_for_mech=yes
15829 else
15830   ac_cv_lib_krb5_gss_inquire_attrs_for_mech=no
15831 fi
15832 rm -f core conftest.err conftest.$ac_objext \
15833     conftest$ac_exeext conftest.$ac_ext
15834 LIBS=$ac_check_lib_save_LIBS
15835 fi
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&5
15837 $as_echo "$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&6; }
15838 if test "x$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" = xyes; then :
15839
15840 cat >>confdefs.h <<_ACEOF
15841 #define HAVE_GSS_INQUIRE_ATTRS_FOR_MECH 1
15842 _ACEOF
15843
15844 fi
15845
15846         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_import_cred in -lkrb5" >&5
15847 $as_echo_n "checking for gss_krb5_import_cred in -lkrb5... " >&6; }
15848 if ${ac_cv_lib_krb5_gss_krb5_import_cred+:} false; then :
15849   $as_echo_n "(cached) " >&6
15850 else
15851   ac_check_lib_save_LIBS=$LIBS
15852 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h.  */
15855
15856 /* Override any GCC internal prototype to avoid an error.
15857    Use char because int might match the return type of a GCC
15858    builtin and then its argument prototype would still apply.  */
15859 #ifdef __cplusplus
15860 extern "C"
15861 #endif
15862 char gss_krb5_import_cred ();
15863 int
15864 main ()
15865 {
15866 return gss_krb5_import_cred ();
15867   ;
15868   return 0;
15869 }
15870 _ACEOF
15871 if ac_fn_c_try_link "$LINENO"; then :
15872   ac_cv_lib_krb5_gss_krb5_import_cred=yes
15873 else
15874   ac_cv_lib_krb5_gss_krb5_import_cred=no
15875 fi
15876 rm -f core conftest.err conftest.$ac_objext \
15877     conftest$ac_exeext conftest.$ac_ext
15878 LIBS=$ac_check_lib_save_LIBS
15879 fi
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_krb5_import_cred" >&5
15881 $as_echo "$ac_cv_lib_krb5_gss_krb5_import_cred" >&6; }
15882 if test "x$ac_cv_lib_krb5_gss_krb5_import_cred" = xyes; then :
15883
15884 cat >>confdefs.h <<_ACEOF
15885 #define HAVE_GSS_KRB5_IMPORT_CRED 1
15886 _ACEOF
15887
15888 fi
15889
15890         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heimdal_version in -lkrb5" >&5
15891 $as_echo_n "checking for heimdal_version in -lkrb5... " >&6; }
15892 if ${ac_cv_lib_krb5_heimdal_version+:} false; then :
15893   $as_echo_n "(cached) " >&6
15894 else
15895   ac_check_lib_save_LIBS=$LIBS
15896 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h.  */
15899
15900 /* Override any GCC internal prototype to avoid an error.
15901    Use char because int might match the return type of a GCC
15902    builtin and then its argument prototype would still apply.  */
15903 #ifdef __cplusplus
15904 extern "C"
15905 #endif
15906 char heimdal_version ();
15907 int
15908 main ()
15909 {
15910 return heimdal_version ();
15911   ;
15912   return 0;
15913 }
15914 _ACEOF
15915 if ac_fn_c_try_link "$LINENO"; then :
15916   ac_cv_lib_krb5_heimdal_version=yes
15917 else
15918   ac_cv_lib_krb5_heimdal_version=no
15919 fi
15920 rm -f core conftest.err conftest.$ac_objext \
15921     conftest$ac_exeext conftest.$ac_ext
15922 LIBS=$ac_check_lib_save_LIBS
15923 fi
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_heimdal_version" >&5
15925 $as_echo "$ac_cv_lib_krb5_heimdal_version" >&6; }
15926 if test "x$ac_cv_lib_krb5_heimdal_version" = xyes; then :
15927
15928 cat >>confdefs.h <<_ACEOF
15929 #define HAVE_HEIMDAL_VERSION 1
15930 _ACEOF
15931 , heimdal=yes
15932 else
15933   heimdal=no
15934 fi
15935
15936          if test "x$heimdal" != "xno"; then
15937   HEIMDAL_TRUE=
15938   HEIMDAL_FALSE='#'
15939 else
15940   HEIMDAL_TRUE='#'
15941   HEIMDAL_FALSE=
15942 fi
15943
15944 fi
15945
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSAML implementation" >&5
15947 $as_echo_n "checking for OpenSAML implementation... " >&6; }
15948 OPENSAML_DIR=
15949 found_opensaml="no"
15950
15951 # Check whether --with-opensaml was given.
15952 if test "${with_opensaml+set}" = set; then :
15953   withval=$with_opensaml; check_opensaml_dir="$withval"
15954 else
15955   check_opensaml_dir=
15956 fi
15957
15958 if test x_$check_opensaml_dir != x_no; then
15959 for dir in $check_opensaml_dir $prefix /usr /usr/local ; do
15960    opensamldir="$dir"
15961    if test -f "$dir/include/saml/Assertion.h"; then
15962      found_opensaml="yes";
15963      OPENSAML_DIR="${opensamldir}"
15964      OPENSAML_CXXFLAGS="-I$opensamldir/include";
15965      break;
15966    fi
15967 done
15968 fi
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_opensaml" >&5
15970 $as_echo "$found_opensaml" >&6; }
15971 if test x_$check_opensaml_dir != x_no; then
15972 if test x_$found_opensaml != x_yes; then
15973    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15974 ----------------------------------------------------------------------
15975   Cannot find OpenSAML libraries, building without OpenSAML support.
15976
15977   Please install OpenSAML or specify installation directory with
15978   --with-opensaml=(dir).
15979 ----------------------------------------------------------------------
15980 " >&5
15981 $as_echo "$as_me: WARNING:
15982 ----------------------------------------------------------------------
15983   Cannot find OpenSAML libraries, building without OpenSAML support.
15984
15985   Please install OpenSAML or specify installation directory with
15986   --with-opensaml=(dir).
15987 ----------------------------------------------------------------------
15988 " >&2;}
15989 else
15990         printf "OpenSAML found in $opensamldir\n";
15991         OPENSAML_LIBS="-lsaml -lxml-security-c -lxmltooling -lxerces-c";
15992         OPENSAML_LDFLAGS="-L$opensamldir/lib";
15993
15994
15995
15996
15997 cat >>confdefs.h <<_ACEOF
15998 #define HAVE_OPENSAML 1
15999 _ACEOF
16000
16001 fi
16002 fi
16003
16004  if test "x_$check_opensaml_dir" != "x_no"; then
16005   OPENSAML_TRUE=
16006   OPENSAML_FALSE='#'
16007 else
16008   OPENSAML_TRUE='#'
16009   OPENSAML_FALSE=
16010 fi
16011
16012
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth resolver implementation" >&5
16014 $as_echo_n "checking for Shibboleth resolver implementation... " >&6; }
16015 SHIBRESOLVER_DIR=
16016 found_shibresolver="no"
16017
16018 # Check whether --with-shibresolver was given.
16019 if test "${with_shibresolver+set}" = set; then :
16020   withval=$with_shibresolver; check_shibresolver_dir="$withval"
16021 else
16022   check_shibresolver_dir=
16023 fi
16024
16025 if test x_$check_shibresolver_dir != x_no; then
16026 for dir in $check_shibresolver_dir $prefix /usr /usr/local ; do
16027    shibresolverdir="$dir"
16028    if test -f "$dir/include/shibresolver/resolver.h"; then
16029      found_shibresolver="yes";
16030      SHIBRESOLVER_DIR="${shibresolverdir}"
16031      SHIBRESOLVER_CXXFLAGS="-I$shibresolverdir/include";
16032      break;
16033    fi
16034 done
16035 fi
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibresolver" >&5
16037 $as_echo "$found_shibresolver" >&6; }
16038 if test x_$check_shibresolver_dir != x_no; then
16039 if test x_$found_shibresolver != x_yes; then
16040    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16041 ----------------------------------------------------------------------
16042   Cannot find Shibboleth resolver libraries, building without
16043   Shibboleth support.
16044
16045   Please install Shibboleth or specify installation directory with
16046   --with-shibresolver=(dir).
16047 ----------------------------------------------------------------------
16048 " >&5
16049 $as_echo "$as_me: WARNING:
16050 ----------------------------------------------------------------------
16051   Cannot find Shibboleth resolver libraries, building without
16052   Shibboleth support.
16053
16054   Please install Shibboleth or specify installation directory with
16055   --with-shibresolver=(dir).
16056 ----------------------------------------------------------------------
16057 " >&2;}
16058 else
16059         printf "Shibboleth resolver found in $shibresolverdir\n";
16060         SHIBRESOLVER_LIBS="-lshibresolver";
16061         SHIBRESOLVER_LDFLAGS="-L$shibresolverdir/lib";
16062
16063
16064
16065
16066 cat >>confdefs.h <<_ACEOF
16067 #define HAVE_SHIBRESOLVER 1
16068 _ACEOF
16069
16070 fi
16071 fi
16072
16073  if test "x_$check_shibresolver_dir" != "x_no"; then
16074   SHIBRESOLVER_TRUE=
16075   SHIBRESOLVER_FALSE='#'
16076 else
16077   SHIBRESOLVER_TRUE='#'
16078   SHIBRESOLVER_FALSE=
16079 fi
16080
16081 if test x_$found_shibresolver = x_yes; then
16082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth implementation" >&5
16083 $as_echo_n "checking for Shibboleth implementation... " >&6; }
16084 SHIBSP_DIR=
16085 found_shibsp="no"
16086
16087 # Check whether --with-shibsp was given.
16088 if test "${with_shibsp+set}" = set; then :
16089   withval=$with_shibsp; check_shibsp_dir="$withval"
16090 else
16091   check_shibsp_dir=
16092 fi
16093
16094 for dir in $check_shibsp_dir $prefix /usr /usr/local ; do
16095    shibspdir="$dir"
16096    if test -f "$dir/include/shibsp/SPConfig.h"; then
16097      found_shibsp="yes";
16098      SHIBSP_DIR="${shibspdir}"
16099      SHIBSP_CXXFLAGS="-I$shibspdir/include";
16100      break;
16101    fi
16102 done
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibsp" >&5
16104 $as_echo "$found_shibsp" >&6; }
16105 if test x_$found_shibsp != x_yes; then
16106    as_fn_error $? "
16107 ----------------------------------------------------------------------
16108   Cannot find Shibboleth libraries.
16109
16110   Please install Shibboleth or specify installation directory with
16111   --with-shibsp=(dir).
16112 ----------------------------------------------------------------------
16113 " "$LINENO" 5
16114 else
16115         printf "Shibboleth found in $shibspdir\n";
16116         SHIBSP_LIBS="-lshibsp -lsaml -lxml-security-c -lxmltooling -lxerces-c";
16117         SHIBSP_LDFLAGS="-L$shibspdir/lib";
16118
16119
16120
16121
16122 cat >>confdefs.h <<_ACEOF
16123 #define HAVE_SHIBSP 1
16124 _ACEOF
16125
16126 fi
16127
16128 fi
16129
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
16131 $as_echo_n "checking for OpenSSL... " >&6; }
16132 OPENSSL_DIR=
16133 found_openssl="no"
16134
16135 # Check whether --with-openssl was given.
16136 if test "${with_openssl+set}" = set; then :
16137   withval=$with_openssl; check_openssl_dir="$withval"
16138 else
16139   check_openssl_dir=
16140 fi
16141
16142 for dir in $check_openssl_dir $prefix /usr /usr/local ; do
16143    openssldir="$dir"
16144    if test -f "$dir/include/openssl/opensslv.h"; then
16145      found_openssl="yes";
16146      OPENSSL_DIR="${openssldir}"
16147      OPENSSL_CFLAGS="-I$openssldir/include";
16148      break;
16149    fi
16150 done
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_openssl" >&5
16152 $as_echo "$found_openssl" >&6; }
16153 if test x_$found_openssl != x_yes; then
16154    as_fn_error $? "
16155 ----------------------------------------------------------------------
16156   Cannot find OpenSSL libraries.
16157
16158   Please install libssl or specify installation directory with
16159   --with-openssl=(dir).
16160 ----------------------------------------------------------------------
16161 " "$LINENO" 5
16162 else
16163         printf "OpenSSL found in $openssldir\n";
16164         OPENSSL_LIBS="-lssl -lcrypto";
16165         OPENSSL_LDFLAGS="-L$openssldir/lib";
16166
16167
16168
16169 fi
16170
16171
16172 if test "x$acceptor" = "xyes" ; then
16173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for radsec" >&5
16174 $as_echo_n "checking for radsec... " >&6; }
16175 RADSEC_DIR=
16176 found_radsec="no"
16177
16178 # Check whether --with-radsec was given.
16179 if test "${with_radsec+set}" = set; then :
16180   withval=$with_radsec; check_radsec_dir="$withval"
16181 else
16182   check_radsec_dir=
16183 fi
16184
16185 for dir in $check_radsec_dir $prefix /usr /usr/local ; do
16186    radsecdir="$dir"
16187    if test -f "$dir/include/radsec/radsec.h"; then
16188      found_radsec="yes";
16189      RADSEC_DIR="${radsecdir}"
16190      RADSEC_CFLAGS="-I$radsecdir/include";
16191      break;
16192    fi
16193 done
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_radsec" >&5
16195 $as_echo "$found_radsec" >&6; }
16196 if test x_$found_radsec != x_yes; then
16197    as_fn_error $? "
16198 ----------------------------------------------------------------------
16199   Cannot find radsec libraries.
16200
16201   Please install libradsec or specify installation directory with
16202   --with-radsec=(dir).
16203 ----------------------------------------------------------------------
16204 " "$LINENO" 5
16205 else
16206         printf "radsec found in $radsecdir\n";
16207         RADSEC_LIBS="-lradsec";
16208         RADSEC_LDFLAGS="-L$radsecdir/lib";
16209
16210
16211
16212 fi
16213
16214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
16215 $as_echo_n "checking for jansson... " >&6; }
16216 JANSSON_DIR=
16217 found_jansson="no"
16218
16219 # Check whether --with-jansson was given.
16220 if test "${with_jansson+set}" = set; then :
16221   withval=$with_jansson; check_jansson_dir="$withval"
16222 else
16223   check_jansson_dir=
16224 fi
16225
16226 for dir in $check_jansson_dir $prefix /usr /usr/local ; do
16227    janssondir="$dir"
16228    if test -f "$dir/include/jansson.h"; then
16229      found_jansson="yes";
16230      JANSSON_DIR="${janssondir}"
16231      JANSSON_CFLAGS="-I$janssondir/include";
16232      break;
16233    fi
16234 done
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_jansson" >&5
16236 $as_echo "$found_jansson" >&6; }
16237 if test x_$found_jansson != x_yes; then
16238    as_fn_error $? "
16239 ----------------------------------------------------------------------
16240   Cannot find jansson libraries.
16241
16242   Please install libjansson or specify installation directory with
16243   --with-jansson=(dir).
16244 ----------------------------------------------------------------------
16245 " "$LINENO" 5
16246 else
16247         printf "jansson found in $janssondir\n";
16248         JANSSON_LIBS="-ljansson";
16249         JANSSON_LDFLAGS="-L$janssondir/lib";
16250
16251
16252
16253 fi
16254
16255 fi
16256
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Moonshot identity selector implementation" >&5
16258 $as_echo_n "checking for Moonshot identity selector implementation... " >&6; }
16259 LIBMOONSHOT_DIR=
16260 LIBMOONSHOT_CFLAGS=
16261 LIBMOONSHOT_LDFLAGS=
16262 LIBMOONSHOT_LIBS=
16263 found_libmoonshot="no"
16264
16265 # Check whether --with-libmoonshot was given.
16266 if test "${with_libmoonshot+set}" = set; then :
16267   withval=$with_libmoonshot; check_libmoonshot_dir="$withval"
16268 else
16269   check_libmoonshot_dir=
16270 fi
16271
16272 for dir in $check_libmoonshot_dir $prefix /usr /usr/local ; do
16273    libmoonshotdir="$dir"
16274    if test -f "$dir/include/libmoonshot.h"; then
16275      found_libmoonshot="yes";
16276      LIBMOONSHOT_DIR="${libmoonshotdir}"
16277      LIBMOONSHOT_CFLAGS="-I$libmoonshotdir/include";
16278      break;
16279    fi
16280 done
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_libmoonshot" >&5
16282 $as_echo "$found_libmoonshot" >&6; }
16283 if test x_$found_libmoonshot = x_yes; then
16284     printf "libmoonshot found in $libmoonshotdir\n";
16285     LIBMOONSHOT_LIBS="-lmoonshot";
16286     LIBMOONSHOT_LDFLAGS="-L$libmoonshot/lib";
16287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot_get_identity in -lmoonshot" >&5
16288 $as_echo_n "checking for moonshot_get_identity in -lmoonshot... " >&6; }
16289 if ${ac_cv_lib_moonshot_moonshot_get_identity+:} false; then :
16290   $as_echo_n "(cached) " >&6
16291 else
16292   ac_check_lib_save_LIBS=$LIBS
16293 LIBS="-lmoonshot "$LIBMOONSHOT_LIBS" $LIBS"
16294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16295 /* end confdefs.h.  */
16296
16297 /* Override any GCC internal prototype to avoid an error.
16298    Use char because int might match the return type of a GCC
16299    builtin and then its argument prototype would still apply.  */
16300 #ifdef __cplusplus
16301 extern "C"
16302 #endif
16303 char moonshot_get_identity ();
16304 int
16305 main ()
16306 {
16307 return moonshot_get_identity ();
16308   ;
16309   return 0;
16310 }
16311 _ACEOF
16312 if ac_fn_c_try_link "$LINENO"; then :
16313   ac_cv_lib_moonshot_moonshot_get_identity=yes
16314 else
16315   ac_cv_lib_moonshot_moonshot_get_identity=no
16316 fi
16317 rm -f core conftest.err conftest.$ac_objext \
16318     conftest$ac_exeext conftest.$ac_ext
16319 LIBS=$ac_check_lib_save_LIBS
16320 fi
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_moonshot_moonshot_get_identity" >&5
16322 $as_echo "$ac_cv_lib_moonshot_moonshot_get_identity" >&6; }
16323 if test "x$ac_cv_lib_moonshot_moonshot_get_identity" = xyes; then :
16324
16325 cat >>confdefs.h <<_ACEOF
16326 #define HAVE_MOONSHOT_GET_IDENTITY 1
16327 _ACEOF
16328
16329 fi
16330
16331 fi
16332
16333
16334
16335      if test "x$found_libmoonshot" != "xno"; then
16336   LIBMOONSHOT_TRUE=
16337   LIBMOONSHOT_FALSE='#'
16338 else
16339   LIBMOONSHOT_TRUE='#'
16340   LIBMOONSHOT_FALSE=
16341 fi
16342
16343
16344 ac_config_files="$ac_config_files Makefile libeap/Makefile mech_eap/Makefile mech_eap.spec"
16345
16346 cat >confcache <<\_ACEOF
16347 # This file is a shell script that caches the results of configure
16348 # tests run on this system so they can be shared between configure
16349 # scripts and configure runs, see configure's option --config-cache.
16350 # It is not useful on other systems.  If it contains results you don't
16351 # want to keep, you may remove or edit it.
16352 #
16353 # config.status only pays attention to the cache file if you give it
16354 # the --recheck option to rerun configure.
16355 #
16356 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16357 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16358 # following values.
16359
16360 _ACEOF
16361
16362 # The following way of writing the cache mishandles newlines in values,
16363 # but we know of no workaround that is simple, portable, and efficient.
16364 # So, we kill variables containing newlines.
16365 # Ultrix sh set writes to stderr and can't be redirected directly,
16366 # and sets the high bit in the cache file unless we assign to the vars.
16367 (
16368   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16369     eval ac_val=\$$ac_var
16370     case $ac_val in #(
16371     *${as_nl}*)
16372       case $ac_var in #(
16373       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16374 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16375       esac
16376       case $ac_var in #(
16377       _ | IFS | as_nl) ;; #(
16378       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16379       *) { eval $ac_var=; unset $ac_var;} ;;
16380       esac ;;
16381     esac
16382   done
16383
16384   (set) 2>&1 |
16385     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16386     *${as_nl}ac_space=\ *)
16387       # `set' does not quote correctly, so add quotes: double-quote
16388       # substitution turns \\\\ into \\, and sed turns \\ into \.
16389       sed -n \
16390         "s/'/'\\\\''/g;
16391           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16392       ;; #(
16393     *)
16394       # `set' quotes correctly as required by POSIX, so do not add quotes.
16395       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16396       ;;
16397     esac |
16398     sort
16399 ) |
16400   sed '
16401      /^ac_cv_env_/b end
16402      t clear
16403      :clear
16404      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16405      t end
16406      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16407      :end' >>confcache
16408 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16409   if test -w "$cache_file"; then
16410     if test "x$cache_file" != "x/dev/null"; then
16411       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16412 $as_echo "$as_me: updating cache $cache_file" >&6;}
16413       if test ! -f "$cache_file" || test -h "$cache_file"; then
16414         cat confcache >"$cache_file"
16415       else
16416         case $cache_file in #(
16417         */* | ?:*)
16418           mv -f confcache "$cache_file"$$ &&
16419           mv -f "$cache_file"$$ "$cache_file" ;; #(
16420         *)
16421           mv -f confcache "$cache_file" ;;
16422         esac
16423       fi
16424     fi
16425   else
16426     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16427 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16428   fi
16429 fi
16430 rm -f confcache
16431
16432 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16433 # Let make expand exec_prefix.
16434 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16435
16436 DEFS=-DHAVE_CONFIG_H
16437
16438 ac_libobjs=
16439 ac_ltlibobjs=
16440 U=
16441 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16442   # 1. Remove the extension, and $U if already installed.
16443   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16444   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16445   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16446   #    will be set to the directory where LIBOBJS objects are built.
16447   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16448   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16449 done
16450 LIBOBJS=$ac_libobjs
16451
16452 LTLIBOBJS=$ac_ltlibobjs
16453
16454
16455 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16456   as_fn_error $? "conditional \"AMDEP\" was never defined.
16457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16458 fi
16459 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16460   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16462 fi
16463  if test -n "$EXEEXT"; then
16464   am__EXEEXT_TRUE=
16465   am__EXEEXT_FALSE='#'
16466 else
16467   am__EXEEXT_TRUE='#'
16468   am__EXEEXT_FALSE=
16469 fi
16470
16471 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16472   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16474 fi
16475 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16476   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16478 fi
16479 if test -z "${GSSEAP_ENABLE_REAUTH_TRUE}" && test -z "${GSSEAP_ENABLE_REAUTH_FALSE}"; then
16480   as_fn_error $? "conditional \"GSSEAP_ENABLE_REAUTH\" was never defined.
16481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16482 fi
16483 if test -z "${GSSEAP_ENABLE_ACCEPTOR_TRUE}" && test -z "${GSSEAP_ENABLE_ACCEPTOR_FALSE}"; then
16484   as_fn_error $? "conditional \"GSSEAP_ENABLE_ACCEPTOR\" was never defined.
16485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16486 fi
16487 if test -z "${TARGET_WINDOWS_TRUE}" && test -z "${TARGET_WINDOWS_FALSE}"; then
16488   as_fn_error $? "conditional \"TARGET_WINDOWS\" was never defined.
16489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16490 fi
16491 if test -z "${HEIMDAL_TRUE}" && test -z "${HEIMDAL_FALSE}"; then
16492   as_fn_error $? "conditional \"HEIMDAL\" was never defined.
16493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16494 fi
16495 if test -z "${OPENSAML_TRUE}" && test -z "${OPENSAML_FALSE}"; then
16496   as_fn_error $? "conditional \"OPENSAML\" was never defined.
16497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16498 fi
16499 if test -z "${SHIBRESOLVER_TRUE}" && test -z "${SHIBRESOLVER_FALSE}"; then
16500   as_fn_error $? "conditional \"SHIBRESOLVER\" was never defined.
16501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16502 fi
16503 if test -z "${LIBMOONSHOT_TRUE}" && test -z "${LIBMOONSHOT_FALSE}"; then
16504   as_fn_error $? "conditional \"LIBMOONSHOT\" was never defined.
16505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16506 fi
16507
16508 : "${CONFIG_STATUS=./config.status}"
16509 ac_write_fail=0
16510 ac_clean_files_save=$ac_clean_files
16511 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16513 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16514 as_write_fail=0
16515 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16516 #! $SHELL
16517 # Generated by $as_me.
16518 # Run this file to recreate the current configuration.
16519 # Compiler output produced by configure, useful for debugging
16520 # configure, is in config.log if it exists.
16521
16522 debug=false
16523 ac_cs_recheck=false
16524 ac_cs_silent=false
16525
16526 SHELL=\${CONFIG_SHELL-$SHELL}
16527 export SHELL
16528 _ASEOF
16529 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16530 ## -------------------- ##
16531 ## M4sh Initialization. ##
16532 ## -------------------- ##
16533
16534 # Be more Bourne compatible
16535 DUALCASE=1; export DUALCASE # for MKS sh
16536 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16537   emulate sh
16538   NULLCMD=:
16539   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16540   # is contrary to our usage.  Disable this feature.
16541   alias -g '${1+"$@"}'='"$@"'
16542   setopt NO_GLOB_SUBST
16543 else
16544   case `(set -o) 2>/dev/null` in #(
16545   *posix*) :
16546     set -o posix ;; #(
16547   *) :
16548      ;;
16549 esac
16550 fi
16551
16552
16553 as_nl='
16554 '
16555 export as_nl
16556 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16557 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16558 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16559 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16560 # Prefer a ksh shell builtin over an external printf program on Solaris,
16561 # but without wasting forks for bash or zsh.
16562 if test -z "$BASH_VERSION$ZSH_VERSION" \
16563     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16564   as_echo='print -r --'
16565   as_echo_n='print -rn --'
16566 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16567   as_echo='printf %s\n'
16568   as_echo_n='printf %s'
16569 else
16570   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16571     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16572     as_echo_n='/usr/ucb/echo -n'
16573   else
16574     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16575     as_echo_n_body='eval
16576       arg=$1;
16577       case $arg in #(
16578       *"$as_nl"*)
16579         expr "X$arg" : "X\\(.*\\)$as_nl";
16580         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16581       esac;
16582       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16583     '
16584     export as_echo_n_body
16585     as_echo_n='sh -c $as_echo_n_body as_echo'
16586   fi
16587   export as_echo_body
16588   as_echo='sh -c $as_echo_body as_echo'
16589 fi
16590
16591 # The user is always right.
16592 if test "${PATH_SEPARATOR+set}" != set; then
16593   PATH_SEPARATOR=:
16594   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16595     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16596       PATH_SEPARATOR=';'
16597   }
16598 fi
16599
16600
16601 # IFS
16602 # We need space, tab and new line, in precisely that order.  Quoting is
16603 # there to prevent editors from complaining about space-tab.
16604 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16605 # splitting by setting IFS to empty value.)
16606 IFS=" ""        $as_nl"
16607
16608 # Find who we are.  Look in the path if we contain no directory separator.
16609 as_myself=
16610 case $0 in #((
16611   *[\\/]* ) as_myself=$0 ;;
16612   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16613 for as_dir in $PATH
16614 do
16615   IFS=$as_save_IFS
16616   test -z "$as_dir" && as_dir=.
16617     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16618   done
16619 IFS=$as_save_IFS
16620
16621      ;;
16622 esac
16623 # We did not find ourselves, most probably we were run as `sh COMMAND'
16624 # in which case we are not to be found in the path.
16625 if test "x$as_myself" = x; then
16626   as_myself=$0
16627 fi
16628 if test ! -f "$as_myself"; then
16629   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16630   exit 1
16631 fi
16632
16633 # Unset variables that we do not need and which cause bugs (e.g. in
16634 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16635 # suppresses any "Segmentation fault" message there.  '((' could
16636 # trigger a bug in pdksh 5.2.14.
16637 for as_var in BASH_ENV ENV MAIL MAILPATH
16638 do eval test x\${$as_var+set} = xset \
16639   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16640 done
16641 PS1='$ '
16642 PS2='> '
16643 PS4='+ '
16644
16645 # NLS nuisances.
16646 LC_ALL=C
16647 export LC_ALL
16648 LANGUAGE=C
16649 export LANGUAGE
16650
16651 # CDPATH.
16652 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16653
16654
16655 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16656 # ----------------------------------------
16657 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16658 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16659 # script with STATUS, using 1 if that was 0.
16660 as_fn_error ()
16661 {
16662   as_status=$1; test $as_status -eq 0 && as_status=1
16663   if test "$4"; then
16664     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16665     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16666   fi
16667   $as_echo "$as_me: error: $2" >&2
16668   as_fn_exit $as_status
16669 } # as_fn_error
16670
16671
16672 # as_fn_set_status STATUS
16673 # -----------------------
16674 # Set $? to STATUS, without forking.
16675 as_fn_set_status ()
16676 {
16677   return $1
16678 } # as_fn_set_status
16679
16680 # as_fn_exit STATUS
16681 # -----------------
16682 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16683 as_fn_exit ()
16684 {
16685   set +e
16686   as_fn_set_status $1
16687   exit $1
16688 } # as_fn_exit
16689
16690 # as_fn_unset VAR
16691 # ---------------
16692 # Portably unset VAR.
16693 as_fn_unset ()
16694 {
16695   { eval $1=; unset $1;}
16696 }
16697 as_unset=as_fn_unset
16698 # as_fn_append VAR VALUE
16699 # ----------------------
16700 # Append the text in VALUE to the end of the definition contained in VAR. Take
16701 # advantage of any shell optimizations that allow amortized linear growth over
16702 # repeated appends, instead of the typical quadratic growth present in naive
16703 # implementations.
16704 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16705   eval 'as_fn_append ()
16706   {
16707     eval $1+=\$2
16708   }'
16709 else
16710   as_fn_append ()
16711   {
16712     eval $1=\$$1\$2
16713   }
16714 fi # as_fn_append
16715
16716 # as_fn_arith ARG...
16717 # ------------------
16718 # Perform arithmetic evaluation on the ARGs, and store the result in the
16719 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16720 # must be portable across $(()) and expr.
16721 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16722   eval 'as_fn_arith ()
16723   {
16724     as_val=$(( $* ))
16725   }'
16726 else
16727   as_fn_arith ()
16728   {
16729     as_val=`expr "$@" || test $? -eq 1`
16730   }
16731 fi # as_fn_arith
16732
16733
16734 if expr a : '\(a\)' >/dev/null 2>&1 &&
16735    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16736   as_expr=expr
16737 else
16738   as_expr=false
16739 fi
16740
16741 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16742   as_basename=basename
16743 else
16744   as_basename=false
16745 fi
16746
16747 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16748   as_dirname=dirname
16749 else
16750   as_dirname=false
16751 fi
16752
16753 as_me=`$as_basename -- "$0" ||
16754 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16755          X"$0" : 'X\(//\)$' \| \
16756          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16757 $as_echo X/"$0" |
16758     sed '/^.*\/\([^/][^/]*\)\/*$/{
16759             s//\1/
16760             q
16761           }
16762           /^X\/\(\/\/\)$/{
16763             s//\1/
16764             q
16765           }
16766           /^X\/\(\/\).*/{
16767             s//\1/
16768             q
16769           }
16770           s/.*/./; q'`
16771
16772 # Avoid depending upon Character Ranges.
16773 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16774 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16775 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16776 as_cr_digits='0123456789'
16777 as_cr_alnum=$as_cr_Letters$as_cr_digits
16778
16779 ECHO_C= ECHO_N= ECHO_T=
16780 case `echo -n x` in #(((((
16781 -n*)
16782   case `echo 'xy\c'` in
16783   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16784   xy)  ECHO_C='\c';;
16785   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16786        ECHO_T=' ';;
16787   esac;;
16788 *)
16789   ECHO_N='-n';;
16790 esac
16791
16792 rm -f conf$$ conf$$.exe conf$$.file
16793 if test -d conf$$.dir; then
16794   rm -f conf$$.dir/conf$$.file
16795 else
16796   rm -f conf$$.dir
16797   mkdir conf$$.dir 2>/dev/null
16798 fi
16799 if (echo >conf$$.file) 2>/dev/null; then
16800   if ln -s conf$$.file conf$$ 2>/dev/null; then
16801     as_ln_s='ln -s'
16802     # ... but there are two gotchas:
16803     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16804     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16805     # In both cases, we have to default to `cp -pR'.
16806     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16807       as_ln_s='cp -pR'
16808   elif ln conf$$.file conf$$ 2>/dev/null; then
16809     as_ln_s=ln
16810   else
16811     as_ln_s='cp -pR'
16812   fi
16813 else
16814   as_ln_s='cp -pR'
16815 fi
16816 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16817 rmdir conf$$.dir 2>/dev/null
16818
16819
16820 # as_fn_mkdir_p
16821 # -------------
16822 # Create "$as_dir" as a directory, including parents if necessary.
16823 as_fn_mkdir_p ()
16824 {
16825
16826   case $as_dir in #(
16827   -*) as_dir=./$as_dir;;
16828   esac
16829   test -d "$as_dir" || eval $as_mkdir_p || {
16830     as_dirs=
16831     while :; do
16832       case $as_dir in #(
16833       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16834       *) as_qdir=$as_dir;;
16835       esac
16836       as_dirs="'$as_qdir' $as_dirs"
16837       as_dir=`$as_dirname -- "$as_dir" ||
16838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16839          X"$as_dir" : 'X\(//\)[^/]' \| \
16840          X"$as_dir" : 'X\(//\)$' \| \
16841          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16842 $as_echo X"$as_dir" |
16843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16844             s//\1/
16845             q
16846           }
16847           /^X\(\/\/\)[^/].*/{
16848             s//\1/
16849             q
16850           }
16851           /^X\(\/\/\)$/{
16852             s//\1/
16853             q
16854           }
16855           /^X\(\/\).*/{
16856             s//\1/
16857             q
16858           }
16859           s/.*/./; q'`
16860       test -d "$as_dir" && break
16861     done
16862     test -z "$as_dirs" || eval "mkdir $as_dirs"
16863   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16864
16865
16866 } # as_fn_mkdir_p
16867 if mkdir -p . 2>/dev/null; then
16868   as_mkdir_p='mkdir -p "$as_dir"'
16869 else
16870   test -d ./-p && rmdir ./-p
16871   as_mkdir_p=false
16872 fi
16873
16874
16875 # as_fn_executable_p FILE
16876 # -----------------------
16877 # Test if FILE is an executable regular file.
16878 as_fn_executable_p ()
16879 {
16880   test -f "$1" && test -x "$1"
16881 } # as_fn_executable_p
16882 as_test_x='test -x'
16883 as_executable_p=as_fn_executable_p
16884
16885 # Sed expression to map a string onto a valid CPP name.
16886 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16887
16888 # Sed expression to map a string onto a valid variable name.
16889 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16890
16891
16892 exec 6>&1
16893 ## ----------------------------------- ##
16894 ## Main body of $CONFIG_STATUS script. ##
16895 ## ----------------------------------- ##
16896 _ASEOF
16897 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16898
16899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16900 # Save the log message, to keep $0 and so on meaningful, and to
16901 # report actual input values of CONFIG_FILES etc. instead of their
16902 # values after options handling.
16903 ac_log="
16904 This file was extended by mech_eap $as_me 0.9, which was
16905 generated by GNU Autoconf 2.69.  Invocation command line was
16906
16907   CONFIG_FILES    = $CONFIG_FILES
16908   CONFIG_HEADERS  = $CONFIG_HEADERS
16909   CONFIG_LINKS    = $CONFIG_LINKS
16910   CONFIG_COMMANDS = $CONFIG_COMMANDS
16911   $ $0 $@
16912
16913 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16914 "
16915
16916 _ACEOF
16917
16918 case $ac_config_files in *"
16919 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16920 esac
16921
16922 case $ac_config_headers in *"
16923 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16924 esac
16925
16926
16927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16928 # Files that config.status was made for.
16929 config_files="$ac_config_files"
16930 config_headers="$ac_config_headers"
16931 config_commands="$ac_config_commands"
16932
16933 _ACEOF
16934
16935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16936 ac_cs_usage="\
16937 \`$as_me' instantiates files and other configuration actions
16938 from templates according to the current configuration.  Unless the files
16939 and actions are specified as TAGs, all are instantiated by default.
16940
16941 Usage: $0 [OPTION]... [TAG]...
16942
16943   -h, --help       print this help, then exit
16944   -V, --version    print version number and configuration settings, then exit
16945       --config     print configuration, then exit
16946   -q, --quiet, --silent
16947                    do not print progress messages
16948   -d, --debug      don't remove temporary files
16949       --recheck    update $as_me by reconfiguring in the same conditions
16950       --file=FILE[:TEMPLATE]
16951                    instantiate the configuration file FILE
16952       --header=FILE[:TEMPLATE]
16953                    instantiate the configuration header FILE
16954
16955 Configuration files:
16956 $config_files
16957
16958 Configuration headers:
16959 $config_headers
16960
16961 Configuration commands:
16962 $config_commands
16963
16964 Report bugs to <bugs@project-moonshot.org>."
16965
16966 _ACEOF
16967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16968 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16969 ac_cs_version="\\
16970 mech_eap config.status 0.9
16971 configured by $0, generated by GNU Autoconf 2.69,
16972   with options \\"\$ac_cs_config\\"
16973
16974 Copyright (C) 2012 Free Software Foundation, Inc.
16975 This config.status script is free software; the Free Software Foundation
16976 gives unlimited permission to copy, distribute and modify it."
16977
16978 ac_pwd='$ac_pwd'
16979 srcdir='$srcdir'
16980 INSTALL='$INSTALL'
16981 MKDIR_P='$MKDIR_P'
16982 AWK='$AWK'
16983 test -n "\$AWK" || AWK=awk
16984 _ACEOF
16985
16986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16987 # The default lists apply if the user does not specify any file.
16988 ac_need_defaults=:
16989 while test $# != 0
16990 do
16991   case $1 in
16992   --*=?*)
16993     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16994     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16995     ac_shift=:
16996     ;;
16997   --*=)
16998     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16999     ac_optarg=
17000     ac_shift=:
17001     ;;
17002   *)
17003     ac_option=$1
17004     ac_optarg=$2
17005     ac_shift=shift
17006     ;;
17007   esac
17008
17009   case $ac_option in
17010   # Handling of the options.
17011   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17012     ac_cs_recheck=: ;;
17013   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17014     $as_echo "$ac_cs_version"; exit ;;
17015   --config | --confi | --conf | --con | --co | --c )
17016     $as_echo "$ac_cs_config"; exit ;;
17017   --debug | --debu | --deb | --de | --d | -d )
17018     debug=: ;;
17019   --file | --fil | --fi | --f )
17020     $ac_shift
17021     case $ac_optarg in
17022     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17023     '') as_fn_error $? "missing file argument" ;;
17024     esac
17025     as_fn_append CONFIG_FILES " '$ac_optarg'"
17026     ac_need_defaults=false;;
17027   --header | --heade | --head | --hea )
17028     $ac_shift
17029     case $ac_optarg in
17030     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17031     esac
17032     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17033     ac_need_defaults=false;;
17034   --he | --h)
17035     # Conflict between --help and --header
17036     as_fn_error $? "ambiguous option: \`$1'
17037 Try \`$0 --help' for more information.";;
17038   --help | --hel | -h )
17039     $as_echo "$ac_cs_usage"; exit ;;
17040   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17041   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17042     ac_cs_silent=: ;;
17043
17044   # This is an error.
17045   -*) as_fn_error $? "unrecognized option: \`$1'
17046 Try \`$0 --help' for more information." ;;
17047
17048   *) as_fn_append ac_config_targets " $1"
17049      ac_need_defaults=false ;;
17050
17051   esac
17052   shift
17053 done
17054
17055 ac_configure_extra_args=
17056
17057 if $ac_cs_silent; then
17058   exec 6>/dev/null
17059   ac_configure_extra_args="$ac_configure_extra_args --silent"
17060 fi
17061
17062 _ACEOF
17063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17064 if \$ac_cs_recheck; then
17065   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17066   shift
17067   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17068   CONFIG_SHELL='$SHELL'
17069   export CONFIG_SHELL
17070   exec "\$@"
17071 fi
17072
17073 _ACEOF
17074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17075 exec 5>>config.log
17076 {
17077   echo
17078   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17079 ## Running $as_me. ##
17080 _ASBOX
17081   $as_echo "$ac_log"
17082 } >&5
17083
17084 _ACEOF
17085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17086 #
17087 # INIT-COMMANDS
17088 #
17089 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17090
17091
17092 # The HP-UX ksh and POSIX shell print the target directory to stdout
17093 # if CDPATH is set.
17094 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17095
17096 sed_quote_subst='$sed_quote_subst'
17097 double_quote_subst='$double_quote_subst'
17098 delay_variable_subst='$delay_variable_subst'
17099 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17100 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17101 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17102 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17103 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17104 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17105 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17106 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17107 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17108 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17109 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17110 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17111 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17112 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17113 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17114 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17115 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17116 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17117 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17118 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17119 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17120 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17121 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17122 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17123 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17124 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17125 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17126 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17127 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17128 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17129 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17130 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17131 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17132 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17133 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17134 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17135 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17136 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17137 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17138 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17139 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17140 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17141 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17142 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17143 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17144 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17145 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17146 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17147 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17148 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17149 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17150 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17151 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17152 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17153 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17154 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17155 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17156 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"`'
17157 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17158 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17159 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17160 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17161 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17162 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17163 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17164 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17165 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17166 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17167 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17168 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17169 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17170 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17171 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17172 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17173 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17174 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17175 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17176 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17177 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17178 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17179 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17180 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17181 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17182 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17183 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17184 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17185 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17186 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17187 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17188 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17189 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17190 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17191 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17192 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17193 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17194 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17195 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17196 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17197 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17198 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17199 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17200 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17201 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17202 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17203 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17204 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17205 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17206 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17207 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17208 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17209 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17210 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17211 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17212 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17213 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17214 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17215 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17216 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17217 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17218 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17219 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17220 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17221 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17222 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17223 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17224 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17225 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17226 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17227 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17228 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17229 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17230 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17231 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17232 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17233 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17234 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17235 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17236 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17237 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17238 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17239 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17240 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17241 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17242 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17243 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17244 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17245 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17246 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17247 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17248 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17249 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17250 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17251 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17252 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17253 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17254 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17255 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17256 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17257 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17258 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17259 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17260 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17261 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17262 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17263 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17264 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17265 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17266 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17267 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17268 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17269 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17270 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17271 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17272 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17273 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17274 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17275 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17276 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17277 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17278 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17279 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17280 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17281 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17282 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17283 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17284
17285 LTCC='$LTCC'
17286 LTCFLAGS='$LTCFLAGS'
17287 compiler='$compiler_DEFAULT'
17288
17289 # A function that is used when there is no print builtin or printf.
17290 func_fallback_echo ()
17291 {
17292   eval 'cat <<_LTECHO_EOF
17293 \$1
17294 _LTECHO_EOF'
17295 }
17296
17297 # Quote evaled strings.
17298 for var in AS \
17299 DLLTOOL \
17300 OBJDUMP \
17301 SHELL \
17302 ECHO \
17303 PATH_SEPARATOR \
17304 SED \
17305 GREP \
17306 EGREP \
17307 FGREP \
17308 LD \
17309 NM \
17310 LN_S \
17311 lt_SP2NL \
17312 lt_NL2SP \
17313 reload_flag \
17314 deplibs_check_method \
17315 file_magic_cmd \
17316 file_magic_glob \
17317 want_nocaseglob \
17318 sharedlib_from_linklib_cmd \
17319 AR \
17320 AR_FLAGS \
17321 archiver_list_spec \
17322 STRIP \
17323 RANLIB \
17324 CC \
17325 CFLAGS \
17326 compiler \
17327 lt_cv_sys_global_symbol_pipe \
17328 lt_cv_sys_global_symbol_to_cdecl \
17329 lt_cv_sys_global_symbol_to_c_name_address \
17330 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17331 nm_file_list_spec \
17332 lt_prog_compiler_no_builtin_flag \
17333 lt_prog_compiler_pic \
17334 lt_prog_compiler_wl \
17335 lt_prog_compiler_static \
17336 lt_cv_prog_compiler_c_o \
17337 need_locks \
17338 MANIFEST_TOOL \
17339 DSYMUTIL \
17340 NMEDIT \
17341 LIPO \
17342 OTOOL \
17343 OTOOL64 \
17344 shrext_cmds \
17345 export_dynamic_flag_spec \
17346 whole_archive_flag_spec \
17347 compiler_needs_object \
17348 with_gnu_ld \
17349 allow_undefined_flag \
17350 no_undefined_flag \
17351 hardcode_libdir_flag_spec \
17352 hardcode_libdir_separator \
17353 exclude_expsyms \
17354 include_expsyms \
17355 file_list_spec \
17356 variables_saved_for_relink \
17357 libname_spec \
17358 library_names_spec \
17359 soname_spec \
17360 install_override_mode \
17361 finish_eval \
17362 old_striplib \
17363 striplib \
17364 compiler_lib_search_dirs \
17365 predep_objects \
17366 postdep_objects \
17367 predeps \
17368 postdeps \
17369 compiler_lib_search_path \
17370 LD_CXX \
17371 reload_flag_CXX \
17372 compiler_CXX \
17373 lt_prog_compiler_no_builtin_flag_CXX \
17374 lt_prog_compiler_pic_CXX \
17375 lt_prog_compiler_wl_CXX \
17376 lt_prog_compiler_static_CXX \
17377 lt_cv_prog_compiler_c_o_CXX \
17378 export_dynamic_flag_spec_CXX \
17379 whole_archive_flag_spec_CXX \
17380 compiler_needs_object_CXX \
17381 with_gnu_ld_CXX \
17382 allow_undefined_flag_CXX \
17383 no_undefined_flag_CXX \
17384 hardcode_libdir_flag_spec_CXX \
17385 hardcode_libdir_separator_CXX \
17386 exclude_expsyms_CXX \
17387 include_expsyms_CXX \
17388 file_list_spec_CXX \
17389 compiler_lib_search_dirs_CXX \
17390 predep_objects_CXX \
17391 postdep_objects_CXX \
17392 predeps_CXX \
17393 postdeps_CXX \
17394 compiler_lib_search_path_CXX; do
17395     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17396     *[\\\\\\\`\\"\\\$]*)
17397       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17398       ;;
17399     *)
17400       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17401       ;;
17402     esac
17403 done
17404
17405 # Double-quote double-evaled strings.
17406 for var in reload_cmds \
17407 old_postinstall_cmds \
17408 old_postuninstall_cmds \
17409 old_archive_cmds \
17410 extract_expsyms_cmds \
17411 old_archive_from_new_cmds \
17412 old_archive_from_expsyms_cmds \
17413 archive_cmds \
17414 archive_expsym_cmds \
17415 module_cmds \
17416 module_expsym_cmds \
17417 export_symbols_cmds \
17418 prelink_cmds \
17419 postlink_cmds \
17420 postinstall_cmds \
17421 postuninstall_cmds \
17422 finish_cmds \
17423 sys_lib_search_path_spec \
17424 sys_lib_dlsearch_path_spec \
17425 reload_cmds_CXX \
17426 old_archive_cmds_CXX \
17427 old_archive_from_new_cmds_CXX \
17428 old_archive_from_expsyms_cmds_CXX \
17429 archive_cmds_CXX \
17430 archive_expsym_cmds_CXX \
17431 module_cmds_CXX \
17432 module_expsym_cmds_CXX \
17433 export_symbols_cmds_CXX \
17434 prelink_cmds_CXX \
17435 postlink_cmds_CXX; do
17436     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17437     *[\\\\\\\`\\"\\\$]*)
17438       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17439       ;;
17440     *)
17441       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17442       ;;
17443     esac
17444 done
17445
17446 ac_aux_dir='$ac_aux_dir'
17447 xsi_shell='$xsi_shell'
17448 lt_shell_append='$lt_shell_append'
17449
17450 # See if we are running on zsh, and set the options which allow our
17451 # commands through without removal of \ escapes INIT.
17452 if test -n "\${ZSH_VERSION+set}" ; then
17453    setopt NO_GLOB_SUBST
17454 fi
17455
17456
17457     PACKAGE='$PACKAGE'
17458     VERSION='$VERSION'
17459     TIMESTAMP='$TIMESTAMP'
17460     RM='$RM'
17461     ofile='$ofile'
17462
17463
17464
17465
17466
17467
17468 _ACEOF
17469
17470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17471
17472 # Handling of arguments.
17473 for ac_config_target in $ac_config_targets
17474 do
17475   case $ac_config_target in
17476     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17477     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17478     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17479     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17480     "libeap/Makefile") CONFIG_FILES="$CONFIG_FILES libeap/Makefile" ;;
17481     "mech_eap/Makefile") CONFIG_FILES="$CONFIG_FILES mech_eap/Makefile" ;;
17482     "mech_eap.spec") CONFIG_FILES="$CONFIG_FILES mech_eap.spec" ;;
17483
17484   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17485   esac
17486 done
17487
17488
17489 # If the user did not use the arguments to specify the items to instantiate,
17490 # then the envvar interface is used.  Set only those that are not.
17491 # We use the long form for the default assignment because of an extremely
17492 # bizarre bug on SunOS 4.1.3.
17493 if $ac_need_defaults; then
17494   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17495   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17496   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17497 fi
17498
17499 # Have a temporary directory for convenience.  Make it in the build tree
17500 # simply because there is no reason against having it here, and in addition,
17501 # creating and moving files from /tmp can sometimes cause problems.
17502 # Hook for its removal unless debugging.
17503 # Note that there is a small window in which the directory will not be cleaned:
17504 # after its creation but before its name has been assigned to `$tmp'.
17505 $debug ||
17506 {
17507   tmp= ac_tmp=
17508   trap 'exit_status=$?
17509   : "${ac_tmp:=$tmp}"
17510   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17511 ' 0
17512   trap 'as_fn_exit 1' 1 2 13 15
17513 }
17514 # Create a (secure) tmp directory for tmp files.
17515
17516 {
17517   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17518   test -d "$tmp"
17519 }  ||
17520 {
17521   tmp=./conf$$-$RANDOM
17522   (umask 077 && mkdir "$tmp")
17523 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17524 ac_tmp=$tmp
17525
17526 # Set up the scripts for CONFIG_FILES section.
17527 # No need to generate them if there are no CONFIG_FILES.
17528 # This happens for instance with `./config.status config.h'.
17529 if test -n "$CONFIG_FILES"; then
17530
17531
17532 ac_cr=`echo X | tr X '\015'`
17533 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17534 # But we know of no other shell where ac_cr would be empty at this
17535 # point, so we can use a bashism as a fallback.
17536 if test "x$ac_cr" = x; then
17537   eval ac_cr=\$\'\\r\'
17538 fi
17539 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17540 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17541   ac_cs_awk_cr='\\r'
17542 else
17543   ac_cs_awk_cr=$ac_cr
17544 fi
17545
17546 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17547 _ACEOF
17548
17549
17550 {
17551   echo "cat >conf$$subs.awk <<_ACEOF" &&
17552   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17553   echo "_ACEOF"
17554 } >conf$$subs.sh ||
17555   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17556 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17557 ac_delim='%!_!# '
17558 for ac_last_try in false false false false false :; do
17559   . ./conf$$subs.sh ||
17560     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17561
17562   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17563   if test $ac_delim_n = $ac_delim_num; then
17564     break
17565   elif $ac_last_try; then
17566     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17567   else
17568     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17569   fi
17570 done
17571 rm -f conf$$subs.sh
17572
17573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17574 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17575 _ACEOF
17576 sed -n '
17577 h
17578 s/^/S["/; s/!.*/"]=/
17579 p
17580 g
17581 s/^[^!]*!//
17582 :repl
17583 t repl
17584 s/'"$ac_delim"'$//
17585 t delim
17586 :nl
17587 h
17588 s/\(.\{148\}\)..*/\1/
17589 t more1
17590 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17591 p
17592 n
17593 b repl
17594 :more1
17595 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17596 p
17597 g
17598 s/.\{148\}//
17599 t nl
17600 :delim
17601 h
17602 s/\(.\{148\}\)..*/\1/
17603 t more2
17604 s/["\\]/\\&/g; s/^/"/; s/$/"/
17605 p
17606 b
17607 :more2
17608 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17609 p
17610 g
17611 s/.\{148\}//
17612 t delim
17613 ' <conf$$subs.awk | sed '
17614 /^[^""]/{
17615   N
17616   s/\n//
17617 }
17618 ' >>$CONFIG_STATUS || ac_write_fail=1
17619 rm -f conf$$subs.awk
17620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17621 _ACAWK
17622 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17623   for (key in S) S_is_set[key] = 1
17624   FS = "\a"
17625
17626 }
17627 {
17628   line = $ 0
17629   nfields = split(line, field, "@")
17630   substed = 0
17631   len = length(field[1])
17632   for (i = 2; i < nfields; i++) {
17633     key = field[i]
17634     keylen = length(key)
17635     if (S_is_set[key]) {
17636       value = S[key]
17637       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17638       len += length(value) + length(field[++i])
17639       substed = 1
17640     } else
17641       len += 1 + keylen
17642   }
17643
17644   print line
17645 }
17646
17647 _ACAWK
17648 _ACEOF
17649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17650 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17651   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17652 else
17653   cat
17654 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17655   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17656 _ACEOF
17657
17658 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17659 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17660 # trailing colons and then remove the whole line if VPATH becomes empty
17661 # (actually we leave an empty line to preserve line numbers).
17662 if test "x$srcdir" = x.; then
17663   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17664 h
17665 s///
17666 s/^/:/
17667 s/[      ]*$/:/
17668 s/:\$(srcdir):/:/g
17669 s/:\${srcdir}:/:/g
17670 s/:@srcdir@:/:/g
17671 s/^:*//
17672 s/:*$//
17673 x
17674 s/\(=[   ]*\).*/\1/
17675 G
17676 s/\n//
17677 s/^[^=]*=[       ]*$//
17678 }'
17679 fi
17680
17681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17682 fi # test -n "$CONFIG_FILES"
17683
17684 # Set up the scripts for CONFIG_HEADERS section.
17685 # No need to generate them if there are no CONFIG_HEADERS.
17686 # This happens for instance with `./config.status Makefile'.
17687 if test -n "$CONFIG_HEADERS"; then
17688 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17689 BEGIN {
17690 _ACEOF
17691
17692 # Transform confdefs.h into an awk script `defines.awk', embedded as
17693 # here-document in config.status, that substitutes the proper values into
17694 # config.h.in to produce config.h.
17695
17696 # Create a delimiter string that does not exist in confdefs.h, to ease
17697 # handling of long lines.
17698 ac_delim='%!_!# '
17699 for ac_last_try in false false :; do
17700   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17701   if test -z "$ac_tt"; then
17702     break
17703   elif $ac_last_try; then
17704     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17705   else
17706     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17707   fi
17708 done
17709
17710 # For the awk script, D is an array of macro values keyed by name,
17711 # likewise P contains macro parameters if any.  Preserve backslash
17712 # newline sequences.
17713
17714 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17715 sed -n '
17716 s/.\{148\}/&'"$ac_delim"'/g
17717 t rset
17718 :rset
17719 s/^[     ]*#[    ]*define[       ][      ]*/ /
17720 t def
17721 d
17722 :def
17723 s/\\$//
17724 t bsnl
17725 s/["\\]/\\&/g
17726 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17727 D["\1"]=" \3"/p
17728 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17729 d
17730 :bsnl
17731 s/["\\]/\\&/g
17732 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17733 D["\1"]=" \3\\\\\\n"\\/p
17734 t cont
17735 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17736 t cont
17737 d
17738 :cont
17739 n
17740 s/.\{148\}/&'"$ac_delim"'/g
17741 t clear
17742 :clear
17743 s/\\$//
17744 t bsnlc
17745 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17746 d
17747 :bsnlc
17748 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17749 b cont
17750 ' <confdefs.h | sed '
17751 s/'"$ac_delim"'/"\\\
17752 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17753
17754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17755   for (key in D) D_is_set[key] = 1
17756   FS = "\a"
17757 }
17758 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17759   line = \$ 0
17760   split(line, arg, " ")
17761   if (arg[1] == "#") {
17762     defundef = arg[2]
17763     mac1 = arg[3]
17764   } else {
17765     defundef = substr(arg[1], 2)
17766     mac1 = arg[2]
17767   }
17768   split(mac1, mac2, "(") #)
17769   macro = mac2[1]
17770   prefix = substr(line, 1, index(line, defundef) - 1)
17771   if (D_is_set[macro]) {
17772     # Preserve the white space surrounding the "#".
17773     print prefix "define", macro P[macro] D[macro]
17774     next
17775   } else {
17776     # Replace #undef with comments.  This is necessary, for example,
17777     # in the case of _POSIX_SOURCE, which is predefined and required
17778     # on some systems where configure will not decide to define it.
17779     if (defundef == "undef") {
17780       print "/*", prefix defundef, macro, "*/"
17781       next
17782     }
17783   }
17784 }
17785 { print }
17786 _ACAWK
17787 _ACEOF
17788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17789   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17790 fi # test -n "$CONFIG_HEADERS"
17791
17792
17793 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17794 shift
17795 for ac_tag
17796 do
17797   case $ac_tag in
17798   :[FHLC]) ac_mode=$ac_tag; continue;;
17799   esac
17800   case $ac_mode$ac_tag in
17801   :[FHL]*:*);;
17802   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17803   :[FH]-) ac_tag=-:-;;
17804   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17805   esac
17806   ac_save_IFS=$IFS
17807   IFS=:
17808   set x $ac_tag
17809   IFS=$ac_save_IFS
17810   shift
17811   ac_file=$1
17812   shift
17813
17814   case $ac_mode in
17815   :L) ac_source=$1;;
17816   :[FH])
17817     ac_file_inputs=
17818     for ac_f
17819     do
17820       case $ac_f in
17821       -) ac_f="$ac_tmp/stdin";;
17822       *) # Look for the file first in the build tree, then in the source tree
17823          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17824          # because $ac_f cannot contain `:'.
17825          test -f "$ac_f" ||
17826            case $ac_f in
17827            [\\/$]*) false;;
17828            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17829            esac ||
17830            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17831       esac
17832       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17833       as_fn_append ac_file_inputs " '$ac_f'"
17834     done
17835
17836     # Let's still pretend it is `configure' which instantiates (i.e., don't
17837     # use $as_me), people would be surprised to read:
17838     #    /* config.h.  Generated by config.status.  */
17839     configure_input='Generated from '`
17840           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17841         `' by configure.'
17842     if test x"$ac_file" != x-; then
17843       configure_input="$ac_file.  $configure_input"
17844       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17845 $as_echo "$as_me: creating $ac_file" >&6;}
17846     fi
17847     # Neutralize special characters interpreted by sed in replacement strings.
17848     case $configure_input in #(
17849     *\&* | *\|* | *\\* )
17850        ac_sed_conf_input=`$as_echo "$configure_input" |
17851        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17852     *) ac_sed_conf_input=$configure_input;;
17853     esac
17854
17855     case $ac_tag in
17856     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17857       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17858     esac
17859     ;;
17860   esac
17861
17862   ac_dir=`$as_dirname -- "$ac_file" ||
17863 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17864          X"$ac_file" : 'X\(//\)[^/]' \| \
17865          X"$ac_file" : 'X\(//\)$' \| \
17866          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17867 $as_echo X"$ac_file" |
17868     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17869             s//\1/
17870             q
17871           }
17872           /^X\(\/\/\)[^/].*/{
17873             s//\1/
17874             q
17875           }
17876           /^X\(\/\/\)$/{
17877             s//\1/
17878             q
17879           }
17880           /^X\(\/\).*/{
17881             s//\1/
17882             q
17883           }
17884           s/.*/./; q'`
17885   as_dir="$ac_dir"; as_fn_mkdir_p
17886   ac_builddir=.
17887
17888 case "$ac_dir" in
17889 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17890 *)
17891   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17892   # A ".." for each directory in $ac_dir_suffix.
17893   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17894   case $ac_top_builddir_sub in
17895   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17896   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17897   esac ;;
17898 esac
17899 ac_abs_top_builddir=$ac_pwd
17900 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17901 # for backward compatibility:
17902 ac_top_builddir=$ac_top_build_prefix
17903
17904 case $srcdir in
17905   .)  # We are building in place.
17906     ac_srcdir=.
17907     ac_top_srcdir=$ac_top_builddir_sub
17908     ac_abs_top_srcdir=$ac_pwd ;;
17909   [\\/]* | ?:[\\/]* )  # Absolute name.
17910     ac_srcdir=$srcdir$ac_dir_suffix;
17911     ac_top_srcdir=$srcdir
17912     ac_abs_top_srcdir=$srcdir ;;
17913   *) # Relative name.
17914     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17915     ac_top_srcdir=$ac_top_build_prefix$srcdir
17916     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17917 esac
17918 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17919
17920
17921   case $ac_mode in
17922   :F)
17923   #
17924   # CONFIG_FILE
17925   #
17926
17927   case $INSTALL in
17928   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17929   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17930   esac
17931   ac_MKDIR_P=$MKDIR_P
17932   case $MKDIR_P in
17933   [\\/$]* | ?:[\\/]* ) ;;
17934   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17935   esac
17936 _ACEOF
17937
17938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17939 # If the template does not know about datarootdir, expand it.
17940 # FIXME: This hack should be removed a few years after 2.60.
17941 ac_datarootdir_hack=; ac_datarootdir_seen=
17942 ac_sed_dataroot='
17943 /datarootdir/ {
17944   p
17945   q
17946 }
17947 /@datadir@/p
17948 /@docdir@/p
17949 /@infodir@/p
17950 /@localedir@/p
17951 /@mandir@/p'
17952 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17953 *datarootdir*) ac_datarootdir_seen=yes;;
17954 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17955   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17956 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17957 _ACEOF
17958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17959   ac_datarootdir_hack='
17960   s&@datadir@&$datadir&g
17961   s&@docdir@&$docdir&g
17962   s&@infodir@&$infodir&g
17963   s&@localedir@&$localedir&g
17964   s&@mandir@&$mandir&g
17965   s&\\\${datarootdir}&$datarootdir&g' ;;
17966 esac
17967 _ACEOF
17968
17969 # Neutralize VPATH when `$srcdir' = `.'.
17970 # Shell code in configure.ac might set extrasub.
17971 # FIXME: do we really want to maintain this feature?
17972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17973 ac_sed_extra="$ac_vpsub
17974 $extrasub
17975 _ACEOF
17976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17977 :t
17978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17979 s|@configure_input@|$ac_sed_conf_input|;t t
17980 s&@top_builddir@&$ac_top_builddir_sub&;t t
17981 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17982 s&@srcdir@&$ac_srcdir&;t t
17983 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17984 s&@top_srcdir@&$ac_top_srcdir&;t t
17985 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17986 s&@builddir@&$ac_builddir&;t t
17987 s&@abs_builddir@&$ac_abs_builddir&;t t
17988 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17989 s&@INSTALL@&$ac_INSTALL&;t t
17990 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17991 $ac_datarootdir_hack
17992 "
17993 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17994   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17995
17996 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17997   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17998   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17999       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18000   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18001 which seems to be undefined.  Please make sure it is defined" >&5
18002 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18003 which seems to be undefined.  Please make sure it is defined" >&2;}
18004
18005   rm -f "$ac_tmp/stdin"
18006   case $ac_file in
18007   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18008   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18009   esac \
18010   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18011  ;;
18012   :H)
18013   #
18014   # CONFIG_HEADER
18015   #
18016   if test x"$ac_file" != x-; then
18017     {
18018       $as_echo "/* $configure_input  */" \
18019       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18020     } >"$ac_tmp/config.h" \
18021       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18022     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18023       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18024 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18025     else
18026       rm -f "$ac_file"
18027       mv "$ac_tmp/config.h" "$ac_file" \
18028         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18029     fi
18030   else
18031     $as_echo "/* $configure_input  */" \
18032       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18033       || as_fn_error $? "could not create -" "$LINENO" 5
18034   fi
18035 # Compute "$ac_file"'s index in $config_headers.
18036 _am_arg="$ac_file"
18037 _am_stamp_count=1
18038 for _am_header in $config_headers :; do
18039   case $_am_header in
18040     $_am_arg | $_am_arg:* )
18041       break ;;
18042     * )
18043       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18044   esac
18045 done
18046 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18047 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18048          X"$_am_arg" : 'X\(//\)[^/]' \| \
18049          X"$_am_arg" : 'X\(//\)$' \| \
18050          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18051 $as_echo X"$_am_arg" |
18052     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18053             s//\1/
18054             q
18055           }
18056           /^X\(\/\/\)[^/].*/{
18057             s//\1/
18058             q
18059           }
18060           /^X\(\/\/\)$/{
18061             s//\1/
18062             q
18063           }
18064           /^X\(\/\).*/{
18065             s//\1/
18066             q
18067           }
18068           s/.*/./; q'`/stamp-h$_am_stamp_count
18069  ;;
18070
18071   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18072 $as_echo "$as_me: executing $ac_file commands" >&6;}
18073  ;;
18074   esac
18075
18076
18077   case $ac_file$ac_mode in
18078     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18079   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18080   # are listed without --file.  Let's play safe and only enable the eval
18081   # if we detect the quoting.
18082   case $CONFIG_FILES in
18083   *\'*) eval set x "$CONFIG_FILES" ;;
18084   *)   set x $CONFIG_FILES ;;
18085   esac
18086   shift
18087   for mf
18088   do
18089     # Strip MF so we end up with the name of the file.
18090     mf=`echo "$mf" | sed -e 's/:.*$//'`
18091     # Check whether this is an Automake generated Makefile or not.
18092     # We used to match only the files named `Makefile.in', but
18093     # some people rename them; so instead we look at the file content.
18094     # Grep'ing the first line is not enough: some people post-process
18095     # each Makefile.in and add a new line on top of each file to say so.
18096     # Grep'ing the whole file is not good either: AIX grep has a line
18097     # limit of 2048, but all sed's we know have understand at least 4000.
18098     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18099       dirpart=`$as_dirname -- "$mf" ||
18100 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18101          X"$mf" : 'X\(//\)[^/]' \| \
18102          X"$mf" : 'X\(//\)$' \| \
18103          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18104 $as_echo X"$mf" |
18105     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18106             s//\1/
18107             q
18108           }
18109           /^X\(\/\/\)[^/].*/{
18110             s//\1/
18111             q
18112           }
18113           /^X\(\/\/\)$/{
18114             s//\1/
18115             q
18116           }
18117           /^X\(\/\).*/{
18118             s//\1/
18119             q
18120           }
18121           s/.*/./; q'`
18122     else
18123       continue
18124     fi
18125     # Extract the definition of DEPDIR, am__include, and am__quote
18126     # from the Makefile without running `make'.
18127     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18128     test -z "$DEPDIR" && continue
18129     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18130     test -z "am__include" && continue
18131     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18132     # When using ansi2knr, U may be empty or an underscore; expand it
18133     U=`sed -n 's/^U = //p' < "$mf"`
18134     # Find all dependency output files, they are included files with
18135     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18136     # simplest approach to changing $(DEPDIR) to its actual value in the
18137     # expansion.
18138     for file in `sed -n "
18139       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18140          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18141       # Make sure the directory exists.
18142       test -f "$dirpart/$file" && continue
18143       fdir=`$as_dirname -- "$file" ||
18144 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18145          X"$file" : 'X\(//\)[^/]' \| \
18146          X"$file" : 'X\(//\)$' \| \
18147          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18148 $as_echo X"$file" |
18149     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18150             s//\1/
18151             q
18152           }
18153           /^X\(\/\/\)[^/].*/{
18154             s//\1/
18155             q
18156           }
18157           /^X\(\/\/\)$/{
18158             s//\1/
18159             q
18160           }
18161           /^X\(\/\).*/{
18162             s//\1/
18163             q
18164           }
18165           s/.*/./; q'`
18166       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18167       # echo "creating $dirpart/$file"
18168       echo '# dummy' > "$dirpart/$file"
18169     done
18170   done
18171 }
18172  ;;
18173     "libtool":C)
18174
18175     # See if we are running on zsh, and set the options which allow our
18176     # commands through without removal of \ escapes.
18177     if test -n "${ZSH_VERSION+set}" ; then
18178       setopt NO_GLOB_SUBST
18179     fi
18180
18181     cfgfile="${ofile}T"
18182     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18183     $RM "$cfgfile"
18184
18185     cat <<_LT_EOF >> "$cfgfile"
18186 #! $SHELL
18187
18188 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18189 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18190 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18191 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18192 #
18193 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18194 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18195 #                 Foundation, Inc.
18196 #   Written by Gordon Matzigkeit, 1996
18197 #
18198 #   This file is part of GNU Libtool.
18199 #
18200 # GNU Libtool is free software; you can redistribute it and/or
18201 # modify it under the terms of the GNU General Public License as
18202 # published by the Free Software Foundation; either version 2 of
18203 # the License, or (at your option) any later version.
18204 #
18205 # As a special exception to the GNU General Public License,
18206 # if you distribute this file as part of a program or library that
18207 # is built using GNU Libtool, you may include this file under the
18208 # same distribution terms that you use for the rest of that program.
18209 #
18210 # GNU Libtool is distributed in the hope that it will be useful,
18211 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18212 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18213 # GNU General Public License for more details.
18214 #
18215 # You should have received a copy of the GNU General Public License
18216 # along with GNU Libtool; see the file COPYING.  If not, a copy
18217 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18218 # obtained by writing to the Free Software Foundation, Inc.,
18219 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18220
18221
18222 # The names of the tagged configurations supported by this script.
18223 available_tags="CXX "
18224
18225 # ### BEGIN LIBTOOL CONFIG
18226
18227 # Which release of libtool.m4 was used?
18228 macro_version=$macro_version
18229 macro_revision=$macro_revision
18230
18231 # Whether or not to build static libraries.
18232 build_old_libs=$enable_static
18233
18234 # Assembler program.
18235 AS=$lt_AS
18236
18237 # DLL creation program.
18238 DLLTOOL=$lt_DLLTOOL
18239
18240 # Object dumper program.
18241 OBJDUMP=$lt_OBJDUMP
18242
18243 # Whether or not to build shared libraries.
18244 build_libtool_libs=$enable_shared
18245
18246 # What type of objects to build.
18247 pic_mode=$pic_mode
18248
18249 # Whether or not to optimize for fast installation.
18250 fast_install=$enable_fast_install
18251
18252 # Shell to use when invoking shell scripts.
18253 SHELL=$lt_SHELL
18254
18255 # An echo program that protects backslashes.
18256 ECHO=$lt_ECHO
18257
18258 # The PATH separator for the build system.
18259 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18260
18261 # The host system.
18262 host_alias=$host_alias
18263 host=$host
18264 host_os=$host_os
18265
18266 # The build system.
18267 build_alias=$build_alias
18268 build=$build
18269 build_os=$build_os
18270
18271 # A sed program that does not truncate output.
18272 SED=$lt_SED
18273
18274 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18275 Xsed="\$SED -e 1s/^X//"
18276
18277 # A grep program that handles long lines.
18278 GREP=$lt_GREP
18279
18280 # An ERE matcher.
18281 EGREP=$lt_EGREP
18282
18283 # A literal string matcher.
18284 FGREP=$lt_FGREP
18285
18286 # A BSD- or MS-compatible name lister.
18287 NM=$lt_NM
18288
18289 # Whether we need soft or hard links.
18290 LN_S=$lt_LN_S
18291
18292 # What is the maximum length of a command?
18293 max_cmd_len=$max_cmd_len
18294
18295 # Object file suffix (normally "o").
18296 objext=$ac_objext
18297
18298 # Executable file suffix (normally "").
18299 exeext=$exeext
18300
18301 # whether the shell understands "unset".
18302 lt_unset=$lt_unset
18303
18304 # turn spaces into newlines.
18305 SP2NL=$lt_lt_SP2NL
18306
18307 # turn newlines into spaces.
18308 NL2SP=$lt_lt_NL2SP
18309
18310 # convert \$build file names to \$host format.
18311 to_host_file_cmd=$lt_cv_to_host_file_cmd
18312
18313 # convert \$build files to toolchain format.
18314 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18315
18316 # Method to check whether dependent libraries are shared objects.
18317 deplibs_check_method=$lt_deplibs_check_method
18318
18319 # Command to use when deplibs_check_method = "file_magic".
18320 file_magic_cmd=$lt_file_magic_cmd
18321
18322 # How to find potential files when deplibs_check_method = "file_magic".
18323 file_magic_glob=$lt_file_magic_glob
18324
18325 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18326 want_nocaseglob=$lt_want_nocaseglob
18327
18328 # Command to associate shared and link libraries.
18329 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18330
18331 # The archiver.
18332 AR=$lt_AR
18333
18334 # Flags to create an archive.
18335 AR_FLAGS=$lt_AR_FLAGS
18336
18337 # How to feed a file listing to the archiver.
18338 archiver_list_spec=$lt_archiver_list_spec
18339
18340 # A symbol stripping program.
18341 STRIP=$lt_STRIP
18342
18343 # Commands used to install an old-style archive.
18344 RANLIB=$lt_RANLIB
18345 old_postinstall_cmds=$lt_old_postinstall_cmds
18346 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18347
18348 # Whether to use a lock for old archive extraction.
18349 lock_old_archive_extraction=$lock_old_archive_extraction
18350
18351 # A C compiler.
18352 LTCC=$lt_CC
18353
18354 # LTCC compiler flags.
18355 LTCFLAGS=$lt_CFLAGS
18356
18357 # Take the output of nm and produce a listing of raw symbols and C names.
18358 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18359
18360 # Transform the output of nm in a proper C declaration.
18361 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18362
18363 # Transform the output of nm in a C name address pair.
18364 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18365
18366 # Transform the output of nm in a C name address pair when lib prefix is needed.
18367 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18368
18369 # Specify filename containing input files for \$NM.
18370 nm_file_list_spec=$lt_nm_file_list_spec
18371
18372 # The root where to search for dependent libraries,and in which our libraries should be installed.
18373 lt_sysroot=$lt_sysroot
18374
18375 # The name of the directory that contains temporary libtool files.
18376 objdir=$objdir
18377
18378 # Used to examine libraries when file_magic_cmd begins with "file".
18379 MAGIC_CMD=$MAGIC_CMD
18380
18381 # Must we lock files when doing compilation?
18382 need_locks=$lt_need_locks
18383
18384 # Manifest tool.
18385 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18386
18387 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18388 DSYMUTIL=$lt_DSYMUTIL
18389
18390 # Tool to change global to local symbols on Mac OS X.
18391 NMEDIT=$lt_NMEDIT
18392
18393 # Tool to manipulate fat objects and archives on Mac OS X.
18394 LIPO=$lt_LIPO
18395
18396 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18397 OTOOL=$lt_OTOOL
18398
18399 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18400 OTOOL64=$lt_OTOOL64
18401
18402 # Old archive suffix (normally "a").
18403 libext=$libext
18404
18405 # Shared library suffix (normally ".so").
18406 shrext_cmds=$lt_shrext_cmds
18407
18408 # The commands to extract the exported symbol list from a shared archive.
18409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18410
18411 # Variables whose values should be saved in libtool wrapper scripts and
18412 # restored at link time.
18413 variables_saved_for_relink=$lt_variables_saved_for_relink
18414
18415 # Do we need the "lib" prefix for modules?
18416 need_lib_prefix=$need_lib_prefix
18417
18418 # Do we need a version for libraries?
18419 need_version=$need_version
18420
18421 # Library versioning type.
18422 version_type=$version_type
18423
18424 # Shared library runtime path variable.
18425 runpath_var=$runpath_var
18426
18427 # Shared library path variable.
18428 shlibpath_var=$shlibpath_var
18429
18430 # Is shlibpath searched before the hard-coded library search path?
18431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18432
18433 # Format of library name prefix.
18434 libname_spec=$lt_libname_spec
18435
18436 # List of archive names.  First name is the real one, the rest are links.
18437 # The last name is the one that the linker finds with -lNAME
18438 library_names_spec=$lt_library_names_spec
18439
18440 # The coded name of the library, if different from the real name.
18441 soname_spec=$lt_soname_spec
18442
18443 # Permission mode override for installation of shared libraries.
18444 install_override_mode=$lt_install_override_mode
18445
18446 # Command to use after installation of a shared archive.
18447 postinstall_cmds=$lt_postinstall_cmds
18448
18449 # Command to use after uninstallation of a shared archive.
18450 postuninstall_cmds=$lt_postuninstall_cmds
18451
18452 # Commands used to finish a libtool library installation in a directory.
18453 finish_cmds=$lt_finish_cmds
18454
18455 # As "finish_cmds", except a single script fragment to be evaled but
18456 # not shown.
18457 finish_eval=$lt_finish_eval
18458
18459 # Whether we should hardcode library paths into libraries.
18460 hardcode_into_libs=$hardcode_into_libs
18461
18462 # Compile-time system search path for libraries.
18463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18464
18465 # Run-time system search path for libraries.
18466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18467
18468 # Whether dlopen is supported.
18469 dlopen_support=$enable_dlopen
18470
18471 # Whether dlopen of programs is supported.
18472 dlopen_self=$enable_dlopen_self
18473
18474 # Whether dlopen of statically linked programs is supported.
18475 dlopen_self_static=$enable_dlopen_self_static
18476
18477 # Commands to strip libraries.
18478 old_striplib=$lt_old_striplib
18479 striplib=$lt_striplib
18480
18481
18482 # The linker used to build libraries.
18483 LD=$lt_LD
18484
18485 # How to create reloadable object files.
18486 reload_flag=$lt_reload_flag
18487 reload_cmds=$lt_reload_cmds
18488
18489 # Commands used to build an old-style archive.
18490 old_archive_cmds=$lt_old_archive_cmds
18491
18492 # A language specific compiler.
18493 CC=$lt_compiler
18494
18495 # Is the compiler the GNU compiler?
18496 with_gcc=$GCC
18497
18498 # Compiler flag to turn off builtin functions.
18499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18500
18501 # Additional compiler flags for building library objects.
18502 pic_flag=$lt_lt_prog_compiler_pic
18503
18504 # How to pass a linker flag through the compiler.
18505 wl=$lt_lt_prog_compiler_wl
18506
18507 # Compiler flag to prevent dynamic linking.
18508 link_static_flag=$lt_lt_prog_compiler_static
18509
18510 # Does compiler simultaneously support -c and -o options?
18511 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18512
18513 # Whether or not to add -lc for building shared libraries.
18514 build_libtool_need_lc=$archive_cmds_need_lc
18515
18516 # Whether or not to disallow shared libs when runtime libs are static.
18517 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18518
18519 # Compiler flag to allow reflexive dlopens.
18520 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18521
18522 # Compiler flag to generate shared objects directly from archives.
18523 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18524
18525 # Whether the compiler copes with passing no objects directly.
18526 compiler_needs_object=$lt_compiler_needs_object
18527
18528 # Create an old-style archive from a shared archive.
18529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18530
18531 # Create a temporary old-style archive to link instead of a shared archive.
18532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18533
18534 # Commands used to build a shared archive.
18535 archive_cmds=$lt_archive_cmds
18536 archive_expsym_cmds=$lt_archive_expsym_cmds
18537
18538 # Commands used to build a loadable module if different from building
18539 # a shared archive.
18540 module_cmds=$lt_module_cmds
18541 module_expsym_cmds=$lt_module_expsym_cmds
18542
18543 # Whether we are building with GNU ld or not.
18544 with_gnu_ld=$lt_with_gnu_ld
18545
18546 # Flag that allows shared libraries with undefined symbols to be built.
18547 allow_undefined_flag=$lt_allow_undefined_flag
18548
18549 # Flag that enforces no undefined symbols.
18550 no_undefined_flag=$lt_no_undefined_flag
18551
18552 # Flag to hardcode \$libdir into a binary during linking.
18553 # This must work even if \$libdir does not exist
18554 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18555
18556 # Whether we need a single "-rpath" flag with a separated argument.
18557 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18558
18559 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18560 # DIR into the resulting binary.
18561 hardcode_direct=$hardcode_direct
18562
18563 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18564 # DIR into the resulting binary and the resulting library dependency is
18565 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18566 # library is relocated.
18567 hardcode_direct_absolute=$hardcode_direct_absolute
18568
18569 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18570 # into the resulting binary.
18571 hardcode_minus_L=$hardcode_minus_L
18572
18573 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18574 # into the resulting binary.
18575 hardcode_shlibpath_var=$hardcode_shlibpath_var
18576
18577 # Set to "yes" if building a shared library automatically hardcodes DIR
18578 # into the library and all subsequent libraries and executables linked
18579 # against it.
18580 hardcode_automatic=$hardcode_automatic
18581
18582 # Set to yes if linker adds runtime paths of dependent libraries
18583 # to runtime path list.
18584 inherit_rpath=$inherit_rpath
18585
18586 # Whether libtool must link a program against all its dependency libraries.
18587 link_all_deplibs=$link_all_deplibs
18588
18589 # Set to "yes" if exported symbols are required.
18590 always_export_symbols=$always_export_symbols
18591
18592 # The commands to list exported symbols.
18593 export_symbols_cmds=$lt_export_symbols_cmds
18594
18595 # Symbols that should not be listed in the preloaded symbols.
18596 exclude_expsyms=$lt_exclude_expsyms
18597
18598 # Symbols that must always be exported.
18599 include_expsyms=$lt_include_expsyms
18600
18601 # Commands necessary for linking programs (against libraries) with templates.
18602 prelink_cmds=$lt_prelink_cmds
18603
18604 # Commands necessary for finishing linking programs.
18605 postlink_cmds=$lt_postlink_cmds
18606
18607 # Specify filename containing input files.
18608 file_list_spec=$lt_file_list_spec
18609
18610 # How to hardcode a shared library path into an executable.
18611 hardcode_action=$hardcode_action
18612
18613 # The directories searched by this compiler when creating a shared library.
18614 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18615
18616 # Dependencies to place before and after the objects being linked to
18617 # create a shared library.
18618 predep_objects=$lt_predep_objects
18619 postdep_objects=$lt_postdep_objects
18620 predeps=$lt_predeps
18621 postdeps=$lt_postdeps
18622
18623 # The library search path used internally by the compiler when linking
18624 # a shared library.
18625 compiler_lib_search_path=$lt_compiler_lib_search_path
18626
18627 # ### END LIBTOOL CONFIG
18628
18629 _LT_EOF
18630
18631   case $host_os in
18632   aix3*)
18633     cat <<\_LT_EOF >> "$cfgfile"
18634 # AIX sometimes has problems with the GCC collect2 program.  For some
18635 # reason, if we set the COLLECT_NAMES environment variable, the problems
18636 # vanish in a puff of smoke.
18637 if test "X${COLLECT_NAMES+set}" != Xset; then
18638   COLLECT_NAMES=
18639   export COLLECT_NAMES
18640 fi
18641 _LT_EOF
18642     ;;
18643   esac
18644
18645
18646 ltmain="$ac_aux_dir/ltmain.sh"
18647
18648
18649   # We use sed instead of cat because bash on DJGPP gets confused if
18650   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18651   # text mode, it properly converts lines to CR/LF.  This bash problem
18652   # is reportedly fixed, but why not run on old versions too?
18653   sed '$q' "$ltmain" >> "$cfgfile" \
18654      || (rm -f "$cfgfile"; exit 1)
18655
18656   if test x"$xsi_shell" = xyes; then
18657   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18658 func_dirname ()\
18659 {\
18660 \    case ${1} in\
18661 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18662 \      *  ) func_dirname_result="${3}" ;;\
18663 \    esac\
18664 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18665   && mv -f "$cfgfile.tmp" "$cfgfile" \
18666     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18667 test 0 -eq $? || _lt_function_replace_fail=:
18668
18669
18670   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18671 func_basename ()\
18672 {\
18673 \    func_basename_result="${1##*/}"\
18674 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18675   && mv -f "$cfgfile.tmp" "$cfgfile" \
18676     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18677 test 0 -eq $? || _lt_function_replace_fail=:
18678
18679
18680   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18681 func_dirname_and_basename ()\
18682 {\
18683 \    case ${1} in\
18684 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18685 \      *  ) func_dirname_result="${3}" ;;\
18686 \    esac\
18687 \    func_basename_result="${1##*/}"\
18688 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18689   && mv -f "$cfgfile.tmp" "$cfgfile" \
18690     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18691 test 0 -eq $? || _lt_function_replace_fail=:
18692
18693
18694   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18695 func_stripname ()\
18696 {\
18697 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18698 \    # positional parameters, so assign one to ordinary parameter first.\
18699 \    func_stripname_result=${3}\
18700 \    func_stripname_result=${func_stripname_result#"${1}"}\
18701 \    func_stripname_result=${func_stripname_result%"${2}"}\
18702 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18703   && mv -f "$cfgfile.tmp" "$cfgfile" \
18704     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18705 test 0 -eq $? || _lt_function_replace_fail=:
18706
18707
18708   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18709 func_split_long_opt ()\
18710 {\
18711 \    func_split_long_opt_name=${1%%=*}\
18712 \    func_split_long_opt_arg=${1#*=}\
18713 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18714   && mv -f "$cfgfile.tmp" "$cfgfile" \
18715     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18716 test 0 -eq $? || _lt_function_replace_fail=:
18717
18718
18719   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18720 func_split_short_opt ()\
18721 {\
18722 \    func_split_short_opt_arg=${1#??}\
18723 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18724 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18725   && mv -f "$cfgfile.tmp" "$cfgfile" \
18726     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18727 test 0 -eq $? || _lt_function_replace_fail=:
18728
18729
18730   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18731 func_lo2o ()\
18732 {\
18733 \    case ${1} in\
18734 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18735 \      *)    func_lo2o_result=${1} ;;\
18736 \    esac\
18737 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18738   && mv -f "$cfgfile.tmp" "$cfgfile" \
18739     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18740 test 0 -eq $? || _lt_function_replace_fail=:
18741
18742
18743   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18744 func_xform ()\
18745 {\
18746     func_xform_result=${1%.*}.lo\
18747 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18748   && mv -f "$cfgfile.tmp" "$cfgfile" \
18749     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18750 test 0 -eq $? || _lt_function_replace_fail=:
18751
18752
18753   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18754 func_arith ()\
18755 {\
18756     func_arith_result=$(( $* ))\
18757 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18758   && mv -f "$cfgfile.tmp" "$cfgfile" \
18759     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18760 test 0 -eq $? || _lt_function_replace_fail=:
18761
18762
18763   sed -e '/^func_len ()$/,/^} # func_len /c\
18764 func_len ()\
18765 {\
18766     func_len_result=${#1}\
18767 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18768   && mv -f "$cfgfile.tmp" "$cfgfile" \
18769     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18770 test 0 -eq $? || _lt_function_replace_fail=:
18771
18772 fi
18773
18774 if test x"$lt_shell_append" = xyes; then
18775   sed -e '/^func_append ()$/,/^} # func_append /c\
18776 func_append ()\
18777 {\
18778     eval "${1}+=\\${2}"\
18779 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18780   && mv -f "$cfgfile.tmp" "$cfgfile" \
18781     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18782 test 0 -eq $? || _lt_function_replace_fail=:
18783
18784
18785   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18786 func_append_quoted ()\
18787 {\
18788 \    func_quote_for_eval "${2}"\
18789 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18790 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18791   && mv -f "$cfgfile.tmp" "$cfgfile" \
18792     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18793 test 0 -eq $? || _lt_function_replace_fail=:
18794
18795
18796   # Save a `func_append' function call where possible by direct use of '+='
18797   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18798     && mv -f "$cfgfile.tmp" "$cfgfile" \
18799       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18800   test 0 -eq $? || _lt_function_replace_fail=:
18801 else
18802   # Save a `func_append' function call even when '+=' is not available
18803   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18804     && mv -f "$cfgfile.tmp" "$cfgfile" \
18805       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18806   test 0 -eq $? || _lt_function_replace_fail=:
18807 fi
18808
18809 if test x"$_lt_function_replace_fail" = x":"; then
18810   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18811 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18812 fi
18813
18814
18815    mv -f "$cfgfile" "$ofile" ||
18816     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18817   chmod +x "$ofile"
18818
18819
18820     cat <<_LT_EOF >> "$ofile"
18821
18822 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18823
18824 # The linker used to build libraries.
18825 LD=$lt_LD_CXX
18826
18827 # How to create reloadable object files.
18828 reload_flag=$lt_reload_flag_CXX
18829 reload_cmds=$lt_reload_cmds_CXX
18830
18831 # Commands used to build an old-style archive.
18832 old_archive_cmds=$lt_old_archive_cmds_CXX
18833
18834 # A language specific compiler.
18835 CC=$lt_compiler_CXX
18836
18837 # Is the compiler the GNU compiler?
18838 with_gcc=$GCC_CXX
18839
18840 # Compiler flag to turn off builtin functions.
18841 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18842
18843 # Additional compiler flags for building library objects.
18844 pic_flag=$lt_lt_prog_compiler_pic_CXX
18845
18846 # How to pass a linker flag through the compiler.
18847 wl=$lt_lt_prog_compiler_wl_CXX
18848
18849 # Compiler flag to prevent dynamic linking.
18850 link_static_flag=$lt_lt_prog_compiler_static_CXX
18851
18852 # Does compiler simultaneously support -c and -o options?
18853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18854
18855 # Whether or not to add -lc for building shared libraries.
18856 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18857
18858 # Whether or not to disallow shared libs when runtime libs are static.
18859 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18860
18861 # Compiler flag to allow reflexive dlopens.
18862 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18863
18864 # Compiler flag to generate shared objects directly from archives.
18865 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18866
18867 # Whether the compiler copes with passing no objects directly.
18868 compiler_needs_object=$lt_compiler_needs_object_CXX
18869
18870 # Create an old-style archive from a shared archive.
18871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18872
18873 # Create a temporary old-style archive to link instead of a shared archive.
18874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18875
18876 # Commands used to build a shared archive.
18877 archive_cmds=$lt_archive_cmds_CXX
18878 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18879
18880 # Commands used to build a loadable module if different from building
18881 # a shared archive.
18882 module_cmds=$lt_module_cmds_CXX
18883 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18884
18885 # Whether we are building with GNU ld or not.
18886 with_gnu_ld=$lt_with_gnu_ld_CXX
18887
18888 # Flag that allows shared libraries with undefined symbols to be built.
18889 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18890
18891 # Flag that enforces no undefined symbols.
18892 no_undefined_flag=$lt_no_undefined_flag_CXX
18893
18894 # Flag to hardcode \$libdir into a binary during linking.
18895 # This must work even if \$libdir does not exist
18896 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18897
18898 # Whether we need a single "-rpath" flag with a separated argument.
18899 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18900
18901 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18902 # DIR into the resulting binary.
18903 hardcode_direct=$hardcode_direct_CXX
18904
18905 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18906 # DIR into the resulting binary and the resulting library dependency is
18907 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18908 # library is relocated.
18909 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18910
18911 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18912 # into the resulting binary.
18913 hardcode_minus_L=$hardcode_minus_L_CXX
18914
18915 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18916 # into the resulting binary.
18917 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18918
18919 # Set to "yes" if building a shared library automatically hardcodes DIR
18920 # into the library and all subsequent libraries and executables linked
18921 # against it.
18922 hardcode_automatic=$hardcode_automatic_CXX
18923
18924 # Set to yes if linker adds runtime paths of dependent libraries
18925 # to runtime path list.
18926 inherit_rpath=$inherit_rpath_CXX
18927
18928 # Whether libtool must link a program against all its dependency libraries.
18929 link_all_deplibs=$link_all_deplibs_CXX
18930
18931 # Set to "yes" if exported symbols are required.
18932 always_export_symbols=$always_export_symbols_CXX
18933
18934 # The commands to list exported symbols.
18935 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18936
18937 # Symbols that should not be listed in the preloaded symbols.
18938 exclude_expsyms=$lt_exclude_expsyms_CXX
18939
18940 # Symbols that must always be exported.
18941 include_expsyms=$lt_include_expsyms_CXX
18942
18943 # Commands necessary for linking programs (against libraries) with templates.
18944 prelink_cmds=$lt_prelink_cmds_CXX
18945
18946 # Commands necessary for finishing linking programs.
18947 postlink_cmds=$lt_postlink_cmds_CXX
18948
18949 # Specify filename containing input files.
18950 file_list_spec=$lt_file_list_spec_CXX
18951
18952 # How to hardcode a shared library path into an executable.
18953 hardcode_action=$hardcode_action_CXX
18954
18955 # The directories searched by this compiler when creating a shared library.
18956 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18957
18958 # Dependencies to place before and after the objects being linked to
18959 # create a shared library.
18960 predep_objects=$lt_predep_objects_CXX
18961 postdep_objects=$lt_postdep_objects_CXX
18962 predeps=$lt_predeps_CXX
18963 postdeps=$lt_postdeps_CXX
18964
18965 # The library search path used internally by the compiler when linking
18966 # a shared library.
18967 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18968
18969 # ### END LIBTOOL TAG CONFIG: CXX
18970 _LT_EOF
18971
18972  ;;
18973
18974   esac
18975 done # for ac_tag
18976
18977
18978 as_fn_exit 0
18979 _ACEOF
18980 ac_clean_files=$ac_clean_files_save
18981
18982 test $ac_write_fail = 0 ||
18983   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18984
18985
18986 # configure is writing to config.log, and then calls config.status.
18987 # config.status does its own redirection, appending to config.log.
18988 # Unfortunately, on DOS this fails, as config.log is still kept open
18989 # by configure, so config.status won't be able to write to it; its
18990 # output is simply discarded.  So we exec the FD to /dev/null,
18991 # effectively closing config.log, so it can be properly (re)opened and
18992 # appended to by config.status.  When coming back to configure, we
18993 # need to make the FD available again.
18994 if test "$no_create" != yes; then
18995   ac_cs_success=:
18996   ac_config_status_args=
18997   test "$silent" = yes &&
18998     ac_config_status_args="$ac_config_status_args --quiet"
18999   exec 5>/dev/null
19000   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19001   exec 5>>config.log
19002   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19003   # would make configure fail if this is the last instruction.
19004   $ac_cs_success || as_fn_exit 1
19005 fi
19006 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19007   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19008 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19009 fi
19010