handle new masking order and fixups
[profile/ivi/libwebsockets.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libwebsockets 0.3.
4 #
5 # Report bugs to <andy@warmcat.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and andy@warmcat.com
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
253 $0: have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libwebsockets'
572 PACKAGE_TARNAME='libwebsockets'
573 PACKAGE_VERSION='0.3'
574 PACKAGE_STRING='libwebsockets 0.3'
575 PACKAGE_BUGREPORT='andy@warmcat.com'
576 PACKAGE_URL=''
577
578 ac_unique_file="test-server/test-server.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 NOPING_FALSE
620 NOPING_TRUE
621 clientcertdir
622 LIBCRYPTO_FALSE
623 LIBCRYPTO_TRUE
624 CPP
625 OTOOL64
626 OTOOL
627 LIPO
628 NMEDIT
629 DSYMUTIL
630 MANIFEST_TOOL
631 RANLIB
632 ac_ct_AR
633 AR
634 DLLTOOL
635 OBJDUMP
636 LN_S
637 NM
638 ac_ct_DUMPBIN
639 DUMPBIN
640 LD
641 FGREP
642 EGREP
643 GREP
644 SED
645 am__fastdepCC_FALSE
646 am__fastdepCC_TRUE
647 CCDEPMODE
648 AMDEPBACKSLASH
649 AMDEP_FALSE
650 AMDEP_TRUE
651 am__quote
652 am__include
653 DEPDIR
654 OBJEXT
655 EXEEXT
656 ac_ct_CC
657 CPPFLAGS
658 LDFLAGS
659 CFLAGS
660 CC
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 LIBTOOL
670 am__untar
671 am__tar
672 AMTAR
673 am__leading_dot
674 SET_MAKE
675 AWK
676 mkdir_p
677 MKDIR_P
678 INSTALL_STRIP_PROGRAM
679 STRIP
680 install_sh
681 MAKEINFO
682 AUTOHEADER
683 AUTOMAKE
684 AUTOCONF
685 ACLOCAL
686 VERSION
687 PACKAGE
688 CYGPATH_W
689 am__isrc
690 INSTALL_DATA
691 INSTALL_SCRIPT
692 INSTALL_PROGRAM
693 target_alias
694 host_alias
695 build_alias
696 LIBS
697 ECHO_T
698 ECHO_N
699 ECHO_C
700 DEFS
701 mandir
702 localedir
703 libdir
704 psdir
705 pdfdir
706 dvidir
707 htmldir
708 infodir
709 docdir
710 oldincludedir
711 includedir
712 localstatedir
713 sharedstatedir
714 sysconfdir
715 datadir
716 datarootdir
717 libexecdir
718 sbindir
719 bindir
720 program_transform_name
721 prefix
722 exec_prefix
723 PACKAGE_URL
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files=''
732 ac_user_opts='
733 enable_option_checking
734 enable_shared
735 enable_static
736 with_pic
737 enable_fast_install
738 enable_dependency_tracking
739 with_gnu_ld
740 with_sysroot
741 enable_libtool_lock
742 enable_openssl
743 enable_nofork
744 enable_libcrypto
745 with_client_cert_dir
746 enable_noping
747 '
748       ac_precious_vars='build_alias
749 host_alias
750 target_alias
751 CC
752 CFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
756 CPP
757 CPPFLAGS
758 CC
759 LDFLAGS
760 LIBS
761 CPPFLAGS'
762
763
764 # Initialize some variables set by options.
765 ac_init_help=
766 ac_init_version=false
767 ac_unrecognized_opts=
768 ac_unrecognized_sep=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
771 cache_file=/dev/null
772 exec_prefix=NONE
773 no_create=
774 no_recursion=
775 prefix=NONE
776 program_prefix=NONE
777 program_suffix=NONE
778 program_transform_name=s,x,x,
779 silent=
780 site=
781 srcdir=
782 verbose=
783 x_includes=NONE
784 x_libraries=NONE
785
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir='${exec_prefix}/bin'
793 sbindir='${exec_prefix}/sbin'
794 libexecdir='${exec_prefix}/libexec'
795 datarootdir='${prefix}/share'
796 datadir='${datarootdir}'
797 sysconfdir='${prefix}/etc'
798 sharedstatedir='${prefix}/com'
799 localstatedir='${prefix}/var'
800 includedir='${prefix}/include'
801 oldincludedir='/usr/include'
802 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803 infodir='${datarootdir}/info'
804 htmldir='${docdir}'
805 dvidir='${docdir}'
806 pdfdir='${docdir}'
807 psdir='${docdir}'
808 libdir='${exec_prefix}/lib'
809 localedir='${datarootdir}/locale'
810 mandir='${datarootdir}/man'
811
812 ac_prev=
813 ac_dashdash=
814 for ac_option
815 do
816   # If the previous option needs an argument, assign it.
817   if test -n "$ac_prev"; then
818     eval $ac_prev=\$ac_option
819     ac_prev=
820     continue
821   fi
822
823   case $ac_option in
824   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825   *=)   ac_optarg= ;;
826   *)    ac_optarg=yes ;;
827   esac
828
829   # Accept the important Cygnus configure options, so we can diagnose typos.
830
831   case $ac_dashdash$ac_option in
832   --)
833     ac_dashdash=yes ;;
834
835   -bindir | --bindir | --bindi | --bind | --bin | --bi)
836     ac_prev=bindir ;;
837   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838     bindir=$ac_optarg ;;
839
840   -build | --build | --buil | --bui | --bu)
841     ac_prev=build_alias ;;
842   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843     build_alias=$ac_optarg ;;
844
845   -cache-file | --cache-file | --cache-fil | --cache-fi \
846   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847     ac_prev=cache_file ;;
848   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850     cache_file=$ac_optarg ;;
851
852   --config-cache | -C)
853     cache_file=config.cache ;;
854
855   -datadir | --datadir | --datadi | --datad)
856     ac_prev=datadir ;;
857   -datadir=* | --datadir=* | --datadi=* | --datad=*)
858     datadir=$ac_optarg ;;
859
860   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861   | --dataroo | --dataro | --datar)
862     ac_prev=datarootdir ;;
863   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865     datarootdir=$ac_optarg ;;
866
867   -disable-* | --disable-*)
868     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869     # Reject names that are not valid shell variable names.
870     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871       as_fn_error $? "invalid feature name: $ac_useropt"
872     ac_useropt_orig=$ac_useropt
873     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874     case $ac_user_opts in
875       *"
876 "enable_$ac_useropt"
877 "*) ;;
878       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879          ac_unrecognized_sep=', ';;
880     esac
881     eval enable_$ac_useropt=no ;;
882
883   -docdir | --docdir | --docdi | --doc | --do)
884     ac_prev=docdir ;;
885   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886     docdir=$ac_optarg ;;
887
888   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889     ac_prev=dvidir ;;
890   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891     dvidir=$ac_optarg ;;
892
893   -enable-* | --enable-*)
894     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895     # Reject names that are not valid shell variable names.
896     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897       as_fn_error $? "invalid feature name: $ac_useropt"
898     ac_useropt_orig=$ac_useropt
899     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900     case $ac_user_opts in
901       *"
902 "enable_$ac_useropt"
903 "*) ;;
904       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905          ac_unrecognized_sep=', ';;
906     esac
907     eval enable_$ac_useropt=\$ac_optarg ;;
908
909   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911   | --exec | --exe | --ex)
912     ac_prev=exec_prefix ;;
913   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915   | --exec=* | --exe=* | --ex=*)
916     exec_prefix=$ac_optarg ;;
917
918   -gas | --gas | --ga | --g)
919     # Obsolete; use --with-gas.
920     with_gas=yes ;;
921
922   -help | --help | --hel | --he | -h)
923     ac_init_help=long ;;
924   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925     ac_init_help=recursive ;;
926   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927     ac_init_help=short ;;
928
929   -host | --host | --hos | --ho)
930     ac_prev=host_alias ;;
931   -host=* | --host=* | --hos=* | --ho=*)
932     host_alias=$ac_optarg ;;
933
934   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935     ac_prev=htmldir ;;
936   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937   | --ht=*)
938     htmldir=$ac_optarg ;;
939
940   -includedir | --includedir | --includedi | --included | --include \
941   | --includ | --inclu | --incl | --inc)
942     ac_prev=includedir ;;
943   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944   | --includ=* | --inclu=* | --incl=* | --inc=*)
945     includedir=$ac_optarg ;;
946
947   -infodir | --infodir | --infodi | --infod | --info | --inf)
948     ac_prev=infodir ;;
949   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950     infodir=$ac_optarg ;;
951
952   -libdir | --libdir | --libdi | --libd)
953     ac_prev=libdir ;;
954   -libdir=* | --libdir=* | --libdi=* | --libd=*)
955     libdir=$ac_optarg ;;
956
957   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958   | --libexe | --libex | --libe)
959     ac_prev=libexecdir ;;
960   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961   | --libexe=* | --libex=* | --libe=*)
962     libexecdir=$ac_optarg ;;
963
964   -localedir | --localedir | --localedi | --localed | --locale)
965     ac_prev=localedir ;;
966   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967     localedir=$ac_optarg ;;
968
969   -localstatedir | --localstatedir | --localstatedi | --localstated \
970   | --localstate | --localstat | --localsta | --localst | --locals)
971     ac_prev=localstatedir ;;
972   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974     localstatedir=$ac_optarg ;;
975
976   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977     ac_prev=mandir ;;
978   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979     mandir=$ac_optarg ;;
980
981   -nfp | --nfp | --nf)
982     # Obsolete; use --without-fp.
983     with_fp=no ;;
984
985   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986   | --no-cr | --no-c | -n)
987     no_create=yes ;;
988
989   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991     no_recursion=yes ;;
992
993   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995   | --oldin | --oldi | --old | --ol | --o)
996     ac_prev=oldincludedir ;;
997   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000     oldincludedir=$ac_optarg ;;
1001
1002   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003     ac_prev=prefix ;;
1004   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005     prefix=$ac_optarg ;;
1006
1007   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008   | --program-pre | --program-pr | --program-p)
1009     ac_prev=program_prefix ;;
1010   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012     program_prefix=$ac_optarg ;;
1013
1014   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015   | --program-suf | --program-su | --program-s)
1016     ac_prev=program_suffix ;;
1017   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019     program_suffix=$ac_optarg ;;
1020
1021   -program-transform-name | --program-transform-name \
1022   | --program-transform-nam | --program-transform-na \
1023   | --program-transform-n | --program-transform- \
1024   | --program-transform | --program-transfor \
1025   | --program-transfo | --program-transf \
1026   | --program-trans | --program-tran \
1027   | --progr-tra | --program-tr | --program-t)
1028     ac_prev=program_transform_name ;;
1029   -program-transform-name=* | --program-transform-name=* \
1030   | --program-transform-nam=* | --program-transform-na=* \
1031   | --program-transform-n=* | --program-transform-=* \
1032   | --program-transform=* | --program-transfor=* \
1033   | --program-transfo=* | --program-transf=* \
1034   | --program-trans=* | --program-tran=* \
1035   | --progr-tra=* | --program-tr=* | --program-t=*)
1036     program_transform_name=$ac_optarg ;;
1037
1038   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039     ac_prev=pdfdir ;;
1040   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041     pdfdir=$ac_optarg ;;
1042
1043   -psdir | --psdir | --psdi | --psd | --ps)
1044     ac_prev=psdir ;;
1045   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046     psdir=$ac_optarg ;;
1047
1048   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049   | -silent | --silent | --silen | --sile | --sil)
1050     silent=yes ;;
1051
1052   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053     ac_prev=sbindir ;;
1054   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055   | --sbi=* | --sb=*)
1056     sbindir=$ac_optarg ;;
1057
1058   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060   | --sharedst | --shareds | --shared | --share | --shar \
1061   | --sha | --sh)
1062     ac_prev=sharedstatedir ;;
1063   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066   | --sha=* | --sh=*)
1067     sharedstatedir=$ac_optarg ;;
1068
1069   -site | --site | --sit)
1070     ac_prev=site ;;
1071   -site=* | --site=* | --sit=*)
1072     site=$ac_optarg ;;
1073
1074   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075     ac_prev=srcdir ;;
1076   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077     srcdir=$ac_optarg ;;
1078
1079   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080   | --syscon | --sysco | --sysc | --sys | --sy)
1081     ac_prev=sysconfdir ;;
1082   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084     sysconfdir=$ac_optarg ;;
1085
1086   -target | --target | --targe | --targ | --tar | --ta | --t)
1087     ac_prev=target_alias ;;
1088   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089     target_alias=$ac_optarg ;;
1090
1091   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092     verbose=yes ;;
1093
1094   -version | --version | --versio | --versi | --vers | -V)
1095     ac_init_version=: ;;
1096
1097   -with-* | --with-*)
1098     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099     # Reject names that are not valid shell variable names.
1100     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101       as_fn_error $? "invalid package name: $ac_useropt"
1102     ac_useropt_orig=$ac_useropt
1103     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104     case $ac_user_opts in
1105       *"
1106 "with_$ac_useropt"
1107 "*) ;;
1108       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109          ac_unrecognized_sep=', ';;
1110     esac
1111     eval with_$ac_useropt=\$ac_optarg ;;
1112
1113   -without-* | --without-*)
1114     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115     # Reject names that are not valid shell variable names.
1116     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117       as_fn_error $? "invalid package name: $ac_useropt"
1118     ac_useropt_orig=$ac_useropt
1119     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120     case $ac_user_opts in
1121       *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125          ac_unrecognized_sep=', ';;
1126     esac
1127     eval with_$ac_useropt=no ;;
1128
1129   --x)
1130     # Obsolete; use --with-x.
1131     with_x=yes ;;
1132
1133   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134   | --x-incl | --x-inc | --x-in | --x-i)
1135     ac_prev=x_includes ;;
1136   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138     x_includes=$ac_optarg ;;
1139
1140   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142     ac_prev=x_libraries ;;
1143   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145     x_libraries=$ac_optarg ;;
1146
1147   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1148 Try \`$0 --help' for more information"
1149     ;;
1150
1151   *=*)
1152     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153     # Reject names that are not valid shell variable names.
1154     case $ac_envvar in #(
1155       '' | [0-9]* | *[!_$as_cr_alnum]* )
1156       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1157     esac
1158     eval $ac_envvar=\$ac_optarg
1159     export $ac_envvar ;;
1160
1161   *)
1162     # FIXME: should be removed in autoconf 3.0.
1163     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1167     ;;
1168
1169   esac
1170 done
1171
1172 if test -n "$ac_prev"; then
1173   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174   as_fn_error $? "missing argument to $ac_option"
1175 fi
1176
1177 if test -n "$ac_unrecognized_opts"; then
1178   case $enable_option_checking in
1179     no) ;;
1180     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1181     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182   esac
1183 fi
1184
1185 # Check all directory arguments for consistency.
1186 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187                 datadir sysconfdir sharedstatedir localstatedir includedir \
1188                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189                 libdir localedir mandir
1190 do
1191   eval ac_val=\$$ac_var
1192   # Remove trailing slashes.
1193   case $ac_val in
1194     */ )
1195       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196       eval $ac_var=\$ac_val;;
1197   esac
1198   # Be sure to have absolute directory names.
1199   case $ac_val in
1200     [\\/$]* | ?:[\\/]* )  continue;;
1201     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202   esac
1203   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1204 done
1205
1206 # There might be people who depend on the old broken behavior: `$host'
1207 # used to hold the argument of --host etc.
1208 # FIXME: To remove some day.
1209 build=$build_alias
1210 host=$host_alias
1211 target=$target_alias
1212
1213 # FIXME: To remove some day.
1214 if test "x$host_alias" != x; then
1215   if test "x$build_alias" = x; then
1216     cross_compiling=maybe
1217     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1218     If a cross compiler is detected then cross compile mode will be used" >&2
1219   elif test "x$build_alias" != "x$host_alias"; then
1220     cross_compiling=yes
1221   fi
1222 fi
1223
1224 ac_tool_prefix=
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
1227 test "$silent" = yes && exec 6>/dev/null
1228
1229
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233   as_fn_error $? "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235   as_fn_error $? "pwd does not report name of working directory"
1236
1237
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240   ac_srcdir_defaulted=yes
1241   # Try the directory containing this script, then the parent directory.
1242   ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244          X"$as_myself" : 'X\(//\)[^/]' \| \
1245          X"$as_myself" : 'X\(//\)$' \| \
1246          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249             s//\1/
1250             q
1251           }
1252           /^X\(\/\/\)[^/].*/{
1253             s//\1/
1254             q
1255           }
1256           /^X\(\/\/\)$/{
1257             s//\1/
1258             q
1259           }
1260           /^X\(\/\).*/{
1261             s//\1/
1262             q
1263           }
1264           s/.*/./; q'`
1265   srcdir=$ac_confdir
1266   if test ! -r "$srcdir/$ac_unique_file"; then
1267     srcdir=..
1268   fi
1269 else
1270   ac_srcdir_defaulted=no
1271 fi
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1275 fi
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1279         pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282   srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292   eval ac_env_${ac_var}_value=\$${ac_var}
1293   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301   # Omit some internal or obsolete options to make the list less imposing.
1302   # This message is too long to be a string in the A/UX 3.1 sh.
1303   cat <<_ACEOF
1304 \`configure' configures libwebsockets 0.3 to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE.  See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314   -h, --help              display this help and exit
1315       --help=short        display options specific to this package
1316       --help=recursive    display the short help of all the included packages
1317   -V, --version           display version information and exit
1318   -q, --quiet, --silent   do not print \`checking ...' messages
1319       --cache-file=FILE   cache test results in FILE [disabled]
1320   -C, --config-cache      alias for \`--cache-file=config.cache'
1321   -n, --no-create         do not create output files
1322       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325   --prefix=PREFIX         install architecture-independent files in PREFIX
1326                           [$ac_default_prefix]
1327   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1328                           [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338   --bindir=DIR            user executables [EPREFIX/bin]
1339   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1340   --libexecdir=DIR        program executables [EPREFIX/libexec]
1341   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1342   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1343   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1344   --libdir=DIR            object code libraries [EPREFIX/lib]
1345   --includedir=DIR        C header files [PREFIX/include]
1346   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1347   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1348   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1349   --infodir=DIR           info documentation [DATAROOTDIR/info]
1350   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1351   --mandir=DIR            man documentation [DATAROOTDIR/man]
1352   --docdir=DIR            documentation root [DATAROOTDIR/doc/libwebsockets]
1353   --htmldir=DIR           html documentation [DOCDIR]
1354   --dvidir=DIR            dvi documentation [DOCDIR]
1355   --pdfdir=DIR            pdf documentation [DOCDIR]
1356   --psdir=DIR             ps documentation [DOCDIR]
1357 _ACEOF
1358
1359   cat <<\_ACEOF
1360
1361 Program names:
1362   --program-prefix=PREFIX            prepend PREFIX to installed program names
1363   --program-suffix=SUFFIX            append SUFFIX to installed program names
1364   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1365
1366 System types:
1367   --build=BUILD     configure for building on BUILD [guessed]
1368   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1369 _ACEOF
1370 fi
1371
1372 if test -n "$ac_init_help"; then
1373   case $ac_init_help in
1374      short | recursive ) echo "Configuration of libwebsockets 0.3:";;
1375    esac
1376   cat <<\_ACEOF
1377
1378 Optional Features:
1379   --disable-option-checking  ignore unrecognized --enable/--with options
1380   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1381   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1382   --enable-shared[=PKGS]  build shared libraries [default=yes]
1383   --enable-static[=PKGS]  build static libraries [default=yes]
1384   --enable-fast-install[=PKGS]
1385                           optimize for fast installation [default=yes]
1386   --disable-dependency-tracking  speeds up one-time build
1387   --enable-dependency-tracking   do not reject slow dependency extractors
1388   --disable-libtool-lock  avoid locking (might break parallel builds)
1389   --enable-openssl  Enables https support and needs openssl libs
1390   --enable-nofork  Disables fork-related options
1391   --enable-libcrypto  Use libcrypto MD5 and SHA1 implementations
1392   --enable-noping  Do not build ping test app, which has some unixy stuff in sources
1393
1394 Optional Packages:
1395   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1396   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1397   --with-pic              try to use only PIC/non-PIC objects [default=use
1398                           both]
1399   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1400   --with-sysroot=DIR Search for dependent libraries within DIR
1401                         (or the compiler's sysroot if not specified).
1402   --with-client-cert-dir  directory containing client certs, defaults to
1403                           /etc/pki/tls/certs/
1404
1405 Some influential environment variables:
1406   CC          C compiler command
1407   CFLAGS      C compiler flags
1408   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1409               nonstandard directory <lib dir>
1410   LIBS        libraries to pass to the linker, e.g. -l<library>
1411   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1412               you have headers in a nonstandard directory <include dir>
1413   CPP         C preprocessor
1414
1415 Use these variables to override the choices made by `configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1417
1418 Report bugs to <andy@warmcat.com>.
1419 _ACEOF
1420 ac_status=$?
1421 fi
1422
1423 if test "$ac_init_help" = "recursive"; then
1424   # If there are subdirs, report their specific --help.
1425   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1426     test -d "$ac_dir" ||
1427       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1428       continue
1429     ac_builddir=.
1430
1431 case "$ac_dir" in
1432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *)
1434   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1435   # A ".." for each directory in $ac_dir_suffix.
1436   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1437   case $ac_top_builddir_sub in
1438   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440   esac ;;
1441 esac
1442 ac_abs_top_builddir=$ac_pwd
1443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444 # for backward compatibility:
1445 ac_top_builddir=$ac_top_build_prefix
1446
1447 case $srcdir in
1448   .)  # We are building in place.
1449     ac_srcdir=.
1450     ac_top_srcdir=$ac_top_builddir_sub
1451     ac_abs_top_srcdir=$ac_pwd ;;
1452   [\\/]* | ?:[\\/]* )  # Absolute name.
1453     ac_srcdir=$srcdir$ac_dir_suffix;
1454     ac_top_srcdir=$srcdir
1455     ac_abs_top_srcdir=$srcdir ;;
1456   *) # Relative name.
1457     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458     ac_top_srcdir=$ac_top_build_prefix$srcdir
1459     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460 esac
1461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462
1463     cd "$ac_dir" || { ac_status=$?; continue; }
1464     # Check for guested configure.
1465     if test -f "$ac_srcdir/configure.gnu"; then
1466       echo &&
1467       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468     elif test -f "$ac_srcdir/configure"; then
1469       echo &&
1470       $SHELL "$ac_srcdir/configure" --help=recursive
1471     else
1472       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473     fi || ac_status=$?
1474     cd "$ac_pwd" || { ac_status=$?; break; }
1475   done
1476 fi
1477
1478 test -n "$ac_init_help" && exit $ac_status
1479 if $ac_init_version; then
1480   cat <<\_ACEOF
1481 libwebsockets configure 0.3
1482 generated by GNU Autoconf 2.68
1483
1484 Copyright (C) 2010 Free Software Foundation, Inc.
1485 This configure script is free software; the Free Software Foundation
1486 gives unlimited permission to copy, distribute and modify it.
1487 _ACEOF
1488   exit
1489 fi
1490
1491 ## ------------------------ ##
1492 ## Autoconf initialization. ##
1493 ## ------------------------ ##
1494
1495 # ac_fn_c_try_compile LINENO
1496 # --------------------------
1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1498 ac_fn_c_try_compile ()
1499 {
1500   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501   rm -f conftest.$ac_objext
1502   if { { ac_try="$ac_compile"
1503 case "(($ac_try" in
1504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505   *) ac_try_echo=$ac_try;;
1506 esac
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509   (eval "$ac_compile") 2>conftest.err
1510   ac_status=$?
1511   if test -s conftest.err; then
1512     grep -v '^ *+' conftest.err >conftest.er1
1513     cat conftest.er1 >&5
1514     mv -f conftest.er1 conftest.err
1515   fi
1516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517   test $ac_status = 0; } && {
1518          test -z "$ac_c_werror_flag" ||
1519          test ! -s conftest.err
1520        } && test -s conftest.$ac_objext; then :
1521   ac_retval=0
1522 else
1523   $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1525
1526         ac_retval=1
1527 fi
1528   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529   as_fn_set_status $ac_retval
1530
1531 } # ac_fn_c_try_compile
1532
1533 # ac_fn_c_try_link LINENO
1534 # -----------------------
1535 # Try to link conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_link ()
1537 {
1538   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539   rm -f conftest.$ac_objext conftest$ac_exeext
1540   if { { ac_try="$ac_link"
1541 case "(($ac_try" in
1542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543   *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547   (eval "$ac_link") 2>conftest.err
1548   ac_status=$?
1549   if test -s conftest.err; then
1550     grep -v '^ *+' conftest.err >conftest.er1
1551     cat conftest.er1 >&5
1552     mv -f conftest.er1 conftest.err
1553   fi
1554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555   test $ac_status = 0; } && {
1556          test -z "$ac_c_werror_flag" ||
1557          test ! -s conftest.err
1558        } && test -s conftest$ac_exeext && {
1559          test "$cross_compiling" = yes ||
1560          $as_test_x conftest$ac_exeext
1561        }; then :
1562   ac_retval=0
1563 else
1564   $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567         ac_retval=1
1568 fi
1569   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1570   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1571   # interfere with the next link command; also delete a directory that is
1572   # left behind by Apple's compiler.  We do this before executing the actions.
1573   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1574   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575   as_fn_set_status $ac_retval
1576
1577 } # ac_fn_c_try_link
1578
1579 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1580 # -------------------------------------------------------
1581 # Tests whether HEADER exists and can be compiled using the include files in
1582 # INCLUDES, setting the cache variable VAR accordingly.
1583 ac_fn_c_check_header_compile ()
1584 {
1585   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 $as_echo_n "checking for $2... " >&6; }
1588 if eval \${$3+:} false; then :
1589   $as_echo_n "(cached) " >&6
1590 else
1591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592 /* end confdefs.h.  */
1593 $4
1594 #include <$2>
1595 _ACEOF
1596 if ac_fn_c_try_compile "$LINENO"; then :
1597   eval "$3=yes"
1598 else
1599   eval "$3=no"
1600 fi
1601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1602 fi
1603 eval ac_res=\$$3
1604                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605 $as_echo "$ac_res" >&6; }
1606   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607
1608 } # ac_fn_c_check_header_compile
1609
1610 # ac_fn_c_try_cpp LINENO
1611 # ----------------------
1612 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_cpp ()
1614 {
1615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616   if { { ac_try="$ac_cpp conftest.$ac_ext"
1617 case "(($ac_try" in
1618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619   *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624   ac_status=$?
1625   if test -s conftest.err; then
1626     grep -v '^ *+' conftest.err >conftest.er1
1627     cat conftest.er1 >&5
1628     mv -f conftest.er1 conftest.err
1629   fi
1630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631   test $ac_status = 0; } > conftest.i && {
1632          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633          test ! -s conftest.err
1634        }; then :
1635   ac_retval=0
1636 else
1637   $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640     ac_retval=1
1641 fi
1642   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643   as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_cpp
1646
1647 # ac_fn_c_try_run LINENO
1648 # ----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1650 # that executables *can* be run.
1651 ac_fn_c_try_run ()
1652 {
1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654   if { { ac_try="$ac_link"
1655 case "(($ac_try" in
1656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657   *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661   (eval "$ac_link") 2>&5
1662   ac_status=$?
1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1665   { { case "(($ac_try" in
1666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667   *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671   (eval "$ac_try") 2>&5
1672   ac_status=$?
1673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674   test $ac_status = 0; }; }; then :
1675   ac_retval=0
1676 else
1677   $as_echo "$as_me: program exited with status $ac_status" >&5
1678        $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681        ac_retval=$ac_status
1682 fi
1683   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1684   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685   as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_run
1688
1689 # ac_fn_c_check_func LINENO FUNC VAR
1690 # ----------------------------------
1691 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1692 ac_fn_c_check_func ()
1693 {
1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698   $as_echo_n "(cached) " >&6
1699 else
1700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h.  */
1702 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1704 #define $2 innocuous_$2
1705
1706 /* System header to define __stub macros and hopefully few prototypes,
1707     which can conflict with char $2 (); below.
1708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1709     <limits.h> exists even on freestanding compilers.  */
1710
1711 #ifdef __STDC__
1712 # include <limits.h>
1713 #else
1714 # include <assert.h>
1715 #endif
1716
1717 #undef $2
1718
1719 /* Override any GCC internal prototype to avoid an error.
1720    Use char because int might match the return type of a GCC
1721    builtin and then its argument prototype would still apply.  */
1722 #ifdef __cplusplus
1723 extern "C"
1724 #endif
1725 char $2 ();
1726 /* The GNU C library defines this for functions which it implements
1727     to always fail with ENOSYS.  Some functions are actually named
1728     something starting with __ and the normal name is an alias.  */
1729 #if defined __stub_$2 || defined __stub___$2
1730 choke me
1731 #endif
1732
1733 int
1734 main ()
1735 {
1736 return $2 ();
1737   ;
1738   return 0;
1739 }
1740 _ACEOF
1741 if ac_fn_c_try_link "$LINENO"; then :
1742   eval "$3=yes"
1743 else
1744   eval "$3=no"
1745 fi
1746 rm -f core conftest.err conftest.$ac_objext \
1747     conftest$ac_exeext conftest.$ac_ext
1748 fi
1749 eval ac_res=\$$3
1750                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_func
1755
1756 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1757 # -------------------------------------------
1758 # Tests whether TYPE exists after having included INCLUDES, setting cache
1759 # variable VAR accordingly.
1760 ac_fn_c_check_type ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766   $as_echo_n "(cached) " >&6
1767 else
1768   eval "$3=no"
1769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h.  */
1771 $4
1772 int
1773 main ()
1774 {
1775 if (sizeof ($2))
1776          return 0;
1777   ;
1778   return 0;
1779 }
1780 _ACEOF
1781 if ac_fn_c_try_compile "$LINENO"; then :
1782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h.  */
1784 $4
1785 int
1786 main ()
1787 {
1788 if (sizeof (($2)))
1789             return 0;
1790   ;
1791   return 0;
1792 }
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795
1796 else
1797   eval "$3=yes"
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 fi
1803 eval ac_res=\$$3
1804                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807
1808 } # ac_fn_c_check_type
1809
1810 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813 # the include files in INCLUDES and setting the cache variable VAR
1814 # accordingly.
1815 ac_fn_c_check_header_mongrel ()
1816 {
1817   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818   if eval \${$3+:} false; then :
1819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822   $as_echo_n "(cached) " >&6
1823 fi
1824 eval ac_res=\$$3
1825                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 else
1828   # Is the header compilable?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830 $as_echo_n "checking $2 usability... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h.  */
1833 $4
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837   ac_header_compiler=yes
1838 else
1839   ac_header_compiler=no
1840 fi
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843 $as_echo "$ac_header_compiler" >&6; }
1844
1845 # Is the header present?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847 $as_echo_n "checking $2 presence... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h.  */
1850 #include <$2>
1851 _ACEOF
1852 if ac_fn_c_try_cpp "$LINENO"; then :
1853   ac_header_preproc=yes
1854 else
1855   ac_header_preproc=no
1856 fi
1857 rm -f conftest.err conftest.i conftest.$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859 $as_echo "$ac_header_preproc" >&6; }
1860
1861 # So?  What about this header?
1862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1863   yes:no: )
1864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1868     ;;
1869   no:yes:* )
1870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1873 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1874     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1877 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1878     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 ( $as_echo "## ------------------------------- ##
1881 ## Report this to andy@warmcat.com ##
1882 ## ------------------------------- ##"
1883      ) | sed "s/^/$as_me: WARNING:     /" >&2
1884     ;;
1885 esac
1886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889   $as_echo_n "(cached) " >&6
1890 else
1891   eval "$3=\$ac_header_compiler"
1892 fi
1893 eval ac_res=\$$3
1894                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 fi
1897   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899 } # ac_fn_c_check_header_mongrel
1900 cat >config.log <<_ACEOF
1901 This file contains any messages produced by compilers while
1902 running configure, to aid debugging if configure makes a mistake.
1903
1904 It was created by libwebsockets $as_me 0.3, which was
1905 generated by GNU Autoconf 2.68.  Invocation command line was
1906
1907   $ $0 $@
1908
1909 _ACEOF
1910 exec 5>>config.log
1911 {
1912 cat <<_ASUNAME
1913 ## --------- ##
1914 ## Platform. ##
1915 ## --------- ##
1916
1917 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1918 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1919 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1920 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1921 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1922
1923 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1924 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1925
1926 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1927 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1928 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1929 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1930 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1931 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1932 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1933
1934 _ASUNAME
1935
1936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 for as_dir in $PATH
1938 do
1939   IFS=$as_save_IFS
1940   test -z "$as_dir" && as_dir=.
1941     $as_echo "PATH: $as_dir"
1942   done
1943 IFS=$as_save_IFS
1944
1945 } >&5
1946
1947 cat >&5 <<_ACEOF
1948
1949
1950 ## ----------- ##
1951 ## Core tests. ##
1952 ## ----------- ##
1953
1954 _ACEOF
1955
1956
1957 # Keep a trace of the command line.
1958 # Strip out --no-create and --no-recursion so they do not pile up.
1959 # Strip out --silent because we don't want to record it for future runs.
1960 # Also quote any args containing shell meta-characters.
1961 # Make two passes to allow for proper duplicate-argument suppression.
1962 ac_configure_args=
1963 ac_configure_args0=
1964 ac_configure_args1=
1965 ac_must_keep_next=false
1966 for ac_pass in 1 2
1967 do
1968   for ac_arg
1969   do
1970     case $ac_arg in
1971     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1972     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1973     | -silent | --silent | --silen | --sile | --sil)
1974       continue ;;
1975     *\'*)
1976       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1977     esac
1978     case $ac_pass in
1979     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1980     2)
1981       as_fn_append ac_configure_args1 " '$ac_arg'"
1982       if test $ac_must_keep_next = true; then
1983         ac_must_keep_next=false # Got value, back to normal.
1984       else
1985         case $ac_arg in
1986           *=* | --config-cache | -C | -disable-* | --disable-* \
1987           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1988           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1989           | -with-* | --with-* | -without-* | --without-* | --x)
1990             case "$ac_configure_args0 " in
1991               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1992             esac
1993             ;;
1994           -* ) ac_must_keep_next=true ;;
1995         esac
1996       fi
1997       as_fn_append ac_configure_args " '$ac_arg'"
1998       ;;
1999     esac
2000   done
2001 done
2002 { ac_configure_args0=; unset ac_configure_args0;}
2003 { ac_configure_args1=; unset ac_configure_args1;}
2004
2005 # When interrupted or exit'd, cleanup temporary files, and complete
2006 # config.log.  We remove comments because anyway the quotes in there
2007 # would cause problems or look ugly.
2008 # WARNING: Use '\'' to represent an apostrophe within the trap.
2009 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2010 trap 'exit_status=$?
2011   # Save into config.log some information that might help in debugging.
2012   {
2013     echo
2014
2015     $as_echo "## ---------------- ##
2016 ## Cache variables. ##
2017 ## ---------------- ##"
2018     echo
2019     # The following way of writing the cache mishandles newlines in values,
2020 (
2021   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2022     eval ac_val=\$$ac_var
2023     case $ac_val in #(
2024     *${as_nl}*)
2025       case $ac_var in #(
2026       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2028       esac
2029       case $ac_var in #(
2030       _ | IFS | as_nl) ;; #(
2031       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2032       *) { eval $ac_var=; unset $ac_var;} ;;
2033       esac ;;
2034     esac
2035   done
2036   (set) 2>&1 |
2037     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2038     *${as_nl}ac_space=\ *)
2039       sed -n \
2040         "s/'\''/'\''\\\\'\'''\''/g;
2041           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2042       ;; #(
2043     *)
2044       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2045       ;;
2046     esac |
2047     sort
2048 )
2049     echo
2050
2051     $as_echo "## ----------------- ##
2052 ## Output variables. ##
2053 ## ----------------- ##"
2054     echo
2055     for ac_var in $ac_subst_vars
2056     do
2057       eval ac_val=\$$ac_var
2058       case $ac_val in
2059       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2060       esac
2061       $as_echo "$ac_var='\''$ac_val'\''"
2062     done | sort
2063     echo
2064
2065     if test -n "$ac_subst_files"; then
2066       $as_echo "## ------------------- ##
2067 ## File substitutions. ##
2068 ## ------------------- ##"
2069       echo
2070       for ac_var in $ac_subst_files
2071       do
2072         eval ac_val=\$$ac_var
2073         case $ac_val in
2074         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2075         esac
2076         $as_echo "$ac_var='\''$ac_val'\''"
2077       done | sort
2078       echo
2079     fi
2080
2081     if test -s confdefs.h; then
2082       $as_echo "## ----------- ##
2083 ## confdefs.h. ##
2084 ## ----------- ##"
2085       echo
2086       cat confdefs.h
2087       echo
2088     fi
2089     test "$ac_signal" != 0 &&
2090       $as_echo "$as_me: caught signal $ac_signal"
2091     $as_echo "$as_me: exit $exit_status"
2092   } >&5
2093   rm -f core *.core core.conftest.* &&
2094     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2095     exit $exit_status
2096 ' 0
2097 for ac_signal in 1 2 13 15; do
2098   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2099 done
2100 ac_signal=0
2101
2102 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2103 rm -f -r conftest* confdefs.h
2104
2105 $as_echo "/* confdefs.h */" > confdefs.h
2106
2107 # Predefined preprocessor variables.
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_NAME "$PACKAGE_NAME"
2111 _ACEOF
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2115 _ACEOF
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2119 _ACEOF
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_STRING "$PACKAGE_STRING"
2123 _ACEOF
2124
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2127 _ACEOF
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_URL "$PACKAGE_URL"
2131 _ACEOF
2132
2133
2134 # Let the site file select an alternate cache file if it wants to.
2135 # Prefer an explicitly selected file to automatically selected ones.
2136 ac_site_file1=NONE
2137 ac_site_file2=NONE
2138 if test -n "$CONFIG_SITE"; then
2139   # We do not want a PATH search for config.site.
2140   case $CONFIG_SITE in #((
2141     -*)  ac_site_file1=./$CONFIG_SITE;;
2142     */*) ac_site_file1=$CONFIG_SITE;;
2143     *)   ac_site_file1=./$CONFIG_SITE;;
2144   esac
2145 elif test "x$prefix" != xNONE; then
2146   ac_site_file1=$prefix/share/config.site
2147   ac_site_file2=$prefix/etc/config.site
2148 else
2149   ac_site_file1=$ac_default_prefix/share/config.site
2150   ac_site_file2=$ac_default_prefix/etc/config.site
2151 fi
2152 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2153 do
2154   test "x$ac_site_file" = xNONE && continue
2155   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2156     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2157 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2158     sed 's/^/| /' "$ac_site_file" >&5
2159     . "$ac_site_file" \
2160       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2162 as_fn_error $? "failed to load site script $ac_site_file
2163 See \`config.log' for more details" "$LINENO" 5; }
2164   fi
2165 done
2166
2167 if test -r "$cache_file"; then
2168   # Some versions of bash will fail to source /dev/null (special files
2169   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2170   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2171     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2172 $as_echo "$as_me: loading cache $cache_file" >&6;}
2173     case $cache_file in
2174       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2175       *)                      . "./$cache_file";;
2176     esac
2177   fi
2178 else
2179   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2180 $as_echo "$as_me: creating cache $cache_file" >&6;}
2181   >$cache_file
2182 fi
2183
2184 # Check that the precious variables saved in the cache have kept the same
2185 # value.
2186 ac_cache_corrupted=false
2187 for ac_var in $ac_precious_vars; do
2188   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2189   eval ac_new_set=\$ac_env_${ac_var}_set
2190   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2191   eval ac_new_val=\$ac_env_${ac_var}_value
2192   case $ac_old_set,$ac_new_set in
2193     set,)
2194       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2195 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2196       ac_cache_corrupted=: ;;
2197     ,set)
2198       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2199 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2200       ac_cache_corrupted=: ;;
2201     ,);;
2202     *)
2203       if test "x$ac_old_val" != "x$ac_new_val"; then
2204         # differences in whitespace do not lead to failure.
2205         ac_old_val_w=`echo x $ac_old_val`
2206         ac_new_val_w=`echo x $ac_new_val`
2207         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2208           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2209 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2210           ac_cache_corrupted=:
2211         else
2212           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2213 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2214           eval $ac_var=\$ac_old_val
2215         fi
2216         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2217 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2218         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2219 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2220       fi;;
2221   esac
2222   # Pass precious variables to config.status.
2223   if test "$ac_new_set" = set; then
2224     case $ac_new_val in
2225     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2226     *) ac_arg=$ac_var=$ac_new_val ;;
2227     esac
2228     case " $ac_configure_args " in
2229       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2230       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2231     esac
2232   fi
2233 done
2234 if $ac_cache_corrupted; then
2235   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2238 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2239   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2240 fi
2241 ## -------------------- ##
2242 ## Main body of script. ##
2243 ## -------------------- ##
2244
2245 ac_ext=c
2246 ac_cpp='$CPP $CPPFLAGS'
2247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2250
2251
2252
2253 ac_config_headers="$ac_config_headers config.h"
2254
2255
2256 am__api_version='1.11'
2257
2258 ac_aux_dir=
2259 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2260   if test -f "$ac_dir/install-sh"; then
2261     ac_aux_dir=$ac_dir
2262     ac_install_sh="$ac_aux_dir/install-sh -c"
2263     break
2264   elif test -f "$ac_dir/install.sh"; then
2265     ac_aux_dir=$ac_dir
2266     ac_install_sh="$ac_aux_dir/install.sh -c"
2267     break
2268   elif test -f "$ac_dir/shtool"; then
2269     ac_aux_dir=$ac_dir
2270     ac_install_sh="$ac_aux_dir/shtool install -c"
2271     break
2272   fi
2273 done
2274 if test -z "$ac_aux_dir"; then
2275   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2276 fi
2277
2278 # These three variables are undocumented and unsupported,
2279 # and are intended to be withdrawn in a future Autoconf release.
2280 # They can cause serious problems if a builder's source tree is in a directory
2281 # whose full name contains unusual characters.
2282 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2283 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2284 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2285
2286
2287 # Find a good install program.  We prefer a C program (faster),
2288 # so one script is as good as another.  But avoid the broken or
2289 # incompatible versions:
2290 # SysV /etc/install, /usr/sbin/install
2291 # SunOS /usr/etc/install
2292 # IRIX /sbin/install
2293 # AIX /bin/install
2294 # AmigaOS /C/install, which installs bootblocks on floppy discs
2295 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2296 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2297 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2298 # OS/2's system install, which has a completely different semantic
2299 # ./install, which can be erroneously created by make from ./install.sh.
2300 # Reject install programs that cannot install multiple files.
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2302 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2303 if test -z "$INSTALL"; then
2304 if ${ac_cv_path_install+:} false; then :
2305   $as_echo_n "(cached) " >&6
2306 else
2307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2309 do
2310   IFS=$as_save_IFS
2311   test -z "$as_dir" && as_dir=.
2312     # Account for people who put trailing slashes in PATH elements.
2313 case $as_dir/ in #((
2314   ./ | .// | /[cC]/* | \
2315   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2316   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2317   /usr/ucb/* ) ;;
2318   *)
2319     # OSF1 and SCO ODT 3.0 have their own names for install.
2320     # Don't use installbsd from OSF since it installs stuff as root
2321     # by default.
2322     for ac_prog in ginstall scoinst install; do
2323       for ac_exec_ext in '' $ac_executable_extensions; do
2324         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2325           if test $ac_prog = install &&
2326             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2327             # AIX install.  It has an incompatible calling convention.
2328             :
2329           elif test $ac_prog = install &&
2330             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2331             # program-specific install script used by HP pwplus--don't use.
2332             :
2333           else
2334             rm -rf conftest.one conftest.two conftest.dir
2335             echo one > conftest.one
2336             echo two > conftest.two
2337             mkdir conftest.dir
2338             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2339               test -s conftest.one && test -s conftest.two &&
2340               test -s conftest.dir/conftest.one &&
2341               test -s conftest.dir/conftest.two
2342             then
2343               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2344               break 3
2345             fi
2346           fi
2347         fi
2348       done
2349     done
2350     ;;
2351 esac
2352
2353   done
2354 IFS=$as_save_IFS
2355
2356 rm -rf conftest.one conftest.two conftest.dir
2357
2358 fi
2359   if test "${ac_cv_path_install+set}" = set; then
2360     INSTALL=$ac_cv_path_install
2361   else
2362     # As a last resort, use the slow shell script.  Don't cache a
2363     # value for INSTALL within a source directory, because that will
2364     # break other packages using the cache if that directory is
2365     # removed, or if the value is a relative name.
2366     INSTALL=$ac_install_sh
2367   fi
2368 fi
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2370 $as_echo "$INSTALL" >&6; }
2371
2372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2373 # It thinks the first close brace ends the variable substitution.
2374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2375
2376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2377
2378 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2379
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2381 $as_echo_n "checking whether build environment is sane... " >&6; }
2382 # Just in case
2383 sleep 1
2384 echo timestamp > conftest.file
2385 # Reject unsafe characters in $srcdir or the absolute working directory
2386 # name.  Accept space and tab only in the latter.
2387 am_lf='
2388 '
2389 case `pwd` in
2390   *[\\\"\#\$\&\'\`$am_lf]*)
2391     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2392 esac
2393 case $srcdir in
2394   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2395     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2396 esac
2397
2398 # Do `set' in a subshell so we don't clobber the current shell's
2399 # arguments.  Must try -L first in case configure is actually a
2400 # symlink; some systems play weird games with the mod time of symlinks
2401 # (eg FreeBSD returns the mod time of the symlink's containing
2402 # directory).
2403 if (
2404    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2405    if test "$*" = "X"; then
2406       # -L didn't work.
2407       set X `ls -t "$srcdir/configure" conftest.file`
2408    fi
2409    rm -f conftest.file
2410    if test "$*" != "X $srcdir/configure conftest.file" \
2411       && test "$*" != "X conftest.file $srcdir/configure"; then
2412
2413       # If neither matched, then we have a broken ls.  This can happen
2414       # if, for instance, CONFIG_SHELL is bash and it inherits a
2415       # broken ls alias from the environment.  This has actually
2416       # happened.  Such a system could not be considered "sane".
2417       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2418 alias in your environment" "$LINENO" 5
2419    fi
2420
2421    test "$2" = conftest.file
2422    )
2423 then
2424    # Ok.
2425    :
2426 else
2427    as_fn_error $? "newly created file is older than distributed files!
2428 Check your system clock" "$LINENO" 5
2429 fi
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2431 $as_echo "yes" >&6; }
2432 test "$program_prefix" != NONE &&
2433   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2434 # Use a double $ so make ignores it.
2435 test "$program_suffix" != NONE &&
2436   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2437 # Double any \ or $.
2438 # By default was `s,x,x', remove it if useless.
2439 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2440 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2441
2442 # expand $ac_aux_dir to an absolute path
2443 am_aux_dir=`cd $ac_aux_dir && pwd`
2444
2445 if test x"${MISSING+set}" != xset; then
2446   case $am_aux_dir in
2447   *\ * | *\     *)
2448     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2449   *)
2450     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2451   esac
2452 fi
2453 # Use eval to expand $SHELL
2454 if eval "$MISSING --run true"; then
2455   am_missing_run="$MISSING --run "
2456 else
2457   am_missing_run=
2458   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2459 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2460 fi
2461
2462 if test x"${install_sh}" != xset; then
2463   case $am_aux_dir in
2464   *\ * | *\     *)
2465     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2466   *)
2467     install_sh="\${SHELL} $am_aux_dir/install-sh"
2468   esac
2469 fi
2470
2471 # Installed binaries are usually stripped using `strip' when the user
2472 # run `make install-strip'.  However `strip' might not be the right
2473 # tool to use in cross-compilation environments, therefore Automake
2474 # will honor the `STRIP' environment variable to overrule this program.
2475 if test "$cross_compiling" != no; then
2476   if test -n "$ac_tool_prefix"; then
2477   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}strip; ac_word=$2
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480 $as_echo_n "checking for $ac_word... " >&6; }
2481 if ${ac_cv_prog_STRIP+:} false; then :
2482   $as_echo_n "(cached) " >&6
2483 else
2484   if test -n "$STRIP"; then
2485   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490   IFS=$as_save_IFS
2491   test -z "$as_dir" && as_dir=.
2492     for ac_exec_ext in '' $ac_executable_extensions; do
2493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2496     break 2
2497   fi
2498 done
2499   done
2500 IFS=$as_save_IFS
2501
2502 fi
2503 fi
2504 STRIP=$ac_cv_prog_STRIP
2505 if test -n "$STRIP"; then
2506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2507 $as_echo "$STRIP" >&6; }
2508 else
2509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2510 $as_echo "no" >&6; }
2511 fi
2512
2513
2514 fi
2515 if test -z "$ac_cv_prog_STRIP"; then
2516   ac_ct_STRIP=$STRIP
2517   # Extract the first word of "strip", so it can be a program name with args.
2518 set dummy strip; ac_word=$2
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520 $as_echo_n "checking for $ac_word... " >&6; }
2521 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2522   $as_echo_n "(cached) " >&6
2523 else
2524   if test -n "$ac_ct_STRIP"; then
2525   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530   IFS=$as_save_IFS
2531   test -z "$as_dir" && as_dir=.
2532     for ac_exec_ext in '' $ac_executable_extensions; do
2533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534     ac_cv_prog_ac_ct_STRIP="strip"
2535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2536     break 2
2537   fi
2538 done
2539   done
2540 IFS=$as_save_IFS
2541
2542 fi
2543 fi
2544 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2545 if test -n "$ac_ct_STRIP"; then
2546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2547 $as_echo "$ac_ct_STRIP" >&6; }
2548 else
2549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2550 $as_echo "no" >&6; }
2551 fi
2552
2553   if test "x$ac_ct_STRIP" = x; then
2554     STRIP=":"
2555   else
2556     case $cross_compiling:$ac_tool_warned in
2557 yes:)
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2560 ac_tool_warned=yes ;;
2561 esac
2562     STRIP=$ac_ct_STRIP
2563   fi
2564 else
2565   STRIP="$ac_cv_prog_STRIP"
2566 fi
2567
2568 fi
2569 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2570
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2572 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2573 if test -z "$MKDIR_P"; then
2574   if ${ac_cv_path_mkdir+:} false; then :
2575   $as_echo_n "(cached) " >&6
2576 else
2577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2579 do
2580   IFS=$as_save_IFS
2581   test -z "$as_dir" && as_dir=.
2582     for ac_prog in mkdir gmkdir; do
2583          for ac_exec_ext in '' $ac_executable_extensions; do
2584            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2585            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2586              'mkdir (GNU coreutils) '* | \
2587              'mkdir (coreutils) '* | \
2588              'mkdir (fileutils) '4.1*)
2589                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2590                break 3;;
2591            esac
2592          done
2593        done
2594   done
2595 IFS=$as_save_IFS
2596
2597 fi
2598
2599   test -d ./--version && rmdir ./--version
2600   if test "${ac_cv_path_mkdir+set}" = set; then
2601     MKDIR_P="$ac_cv_path_mkdir -p"
2602   else
2603     # As a last resort, use the slow shell script.  Don't cache a
2604     # value for MKDIR_P within a source directory, because that will
2605     # break other packages using the cache if that directory is
2606     # removed, or if the value is a relative name.
2607     MKDIR_P="$ac_install_sh -d"
2608   fi
2609 fi
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2611 $as_echo "$MKDIR_P" >&6; }
2612
2613 mkdir_p="$MKDIR_P"
2614 case $mkdir_p in
2615   [\\/$]* | ?:[\\/]*) ;;
2616   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2617 esac
2618
2619 for ac_prog in gawk mawk nawk awk
2620 do
2621   # Extract the first word of "$ac_prog", so it can be a program name with args.
2622 set dummy $ac_prog; ac_word=$2
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if ${ac_cv_prog_AWK+:} false; then :
2626   $as_echo_n "(cached) " >&6
2627 else
2628   if test -n "$AWK"; then
2629   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634   IFS=$as_save_IFS
2635   test -z "$as_dir" && as_dir=.
2636     for ac_exec_ext in '' $ac_executable_extensions; do
2637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638     ac_cv_prog_AWK="$ac_prog"
2639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640     break 2
2641   fi
2642 done
2643   done
2644 IFS=$as_save_IFS
2645
2646 fi
2647 fi
2648 AWK=$ac_cv_prog_AWK
2649 if test -n "$AWK"; then
2650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2651 $as_echo "$AWK" >&6; }
2652 else
2653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2655 fi
2656
2657
2658   test -n "$AWK" && break
2659 done
2660
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2662 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2663 set x ${MAKE-make}
2664 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2665 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2666   $as_echo_n "(cached) " >&6
2667 else
2668   cat >conftest.make <<\_ACEOF
2669 SHELL = /bin/sh
2670 all:
2671         @echo '@@@%%%=$(MAKE)=@@@%%%'
2672 _ACEOF
2673 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2674 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2675   *@@@%%%=?*=@@@%%%*)
2676     eval ac_cv_prog_make_${ac_make}_set=yes;;
2677   *)
2678     eval ac_cv_prog_make_${ac_make}_set=no;;
2679 esac
2680 rm -f conftest.make
2681 fi
2682 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2684 $as_echo "yes" >&6; }
2685   SET_MAKE=
2686 else
2687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2689   SET_MAKE="MAKE=${MAKE-make}"
2690 fi
2691
2692 rm -rf .tst 2>/dev/null
2693 mkdir .tst 2>/dev/null
2694 if test -d .tst; then
2695   am__leading_dot=.
2696 else
2697   am__leading_dot=_
2698 fi
2699 rmdir .tst 2>/dev/null
2700
2701 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2702   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2703   # is not polluted with repeated "-I."
2704   am__isrc=' -I$(srcdir)'
2705   # test to see if srcdir already configured
2706   if test -f $srcdir/config.status; then
2707     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2708   fi
2709 fi
2710
2711 # test whether we have cygpath
2712 if test -z "$CYGPATH_W"; then
2713   if (cygpath --version) >/dev/null 2>/dev/null; then
2714     CYGPATH_W='cygpath -w'
2715   else
2716     CYGPATH_W=echo
2717   fi
2718 fi
2719
2720
2721 # Define the identity of the package.
2722  PACKAGE='libwebsockets'
2723  VERSION='0.3'
2724
2725
2726 cat >>confdefs.h <<_ACEOF
2727 #define PACKAGE "$PACKAGE"
2728 _ACEOF
2729
2730
2731 cat >>confdefs.h <<_ACEOF
2732 #define VERSION "$VERSION"
2733 _ACEOF
2734
2735 # Some tools Automake needs.
2736
2737 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2738
2739
2740 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2741
2742
2743 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2744
2745
2746 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2747
2748
2749 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2750
2751 # We need awk for the "check" target.  The system "awk" is bad on
2752 # some platforms.
2753 # Always define AMTAR for backward compatibility.
2754
2755 AMTAR=${AMTAR-"${am_missing_run}tar"}
2756
2757 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2758
2759
2760
2761
2762
2763 case `pwd` in
2764   *\ * | *\     *)
2765     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2766 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2767 esac
2768
2769
2770
2771 macro_version='2.4'
2772 macro_revision='1.3293'
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786 ltmain="$ac_aux_dir/ltmain.sh"
2787
2788 # Make sure we can run config.sub.
2789 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2790   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2791
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2793 $as_echo_n "checking build system type... " >&6; }
2794 if ${ac_cv_build+:} false; then :
2795   $as_echo_n "(cached) " >&6
2796 else
2797   ac_build_alias=$build_alias
2798 test "x$ac_build_alias" = x &&
2799   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2800 test "x$ac_build_alias" = x &&
2801   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2802 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2803   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2804
2805 fi
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2807 $as_echo "$ac_cv_build" >&6; }
2808 case $ac_cv_build in
2809 *-*-*) ;;
2810 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2811 esac
2812 build=$ac_cv_build
2813 ac_save_IFS=$IFS; IFS='-'
2814 set x $ac_cv_build
2815 shift
2816 build_cpu=$1
2817 build_vendor=$2
2818 shift; shift
2819 # Remember, the first character of IFS is used to create $*,
2820 # except with old shells:
2821 build_os=$*
2822 IFS=$ac_save_IFS
2823 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2824
2825
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2827 $as_echo_n "checking host system type... " >&6; }
2828 if ${ac_cv_host+:} false; then :
2829   $as_echo_n "(cached) " >&6
2830 else
2831   if test "x$host_alias" = x; then
2832   ac_cv_host=$ac_cv_build
2833 else
2834   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2835     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2836 fi
2837
2838 fi
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2840 $as_echo "$ac_cv_host" >&6; }
2841 case $ac_cv_host in
2842 *-*-*) ;;
2843 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2844 esac
2845 host=$ac_cv_host
2846 ac_save_IFS=$IFS; IFS='-'
2847 set x $ac_cv_host
2848 shift
2849 host_cpu=$1
2850 host_vendor=$2
2851 shift; shift
2852 # Remember, the first character of IFS is used to create $*,
2853 # except with old shells:
2854 host_os=$*
2855 IFS=$ac_save_IFS
2856 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2857
2858
2859 # Backslashify metacharacters that are still active within
2860 # double-quoted strings.
2861 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2862
2863 # Same as above, but do not quote variable references.
2864 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2865
2866 # Sed substitution to delay expansion of an escaped shell variable in a
2867 # double_quote_subst'ed string.
2868 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2869
2870 # Sed substitution to delay expansion of an escaped single quote.
2871 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2872
2873 # Sed substitution to avoid accidental globbing in evaled expressions
2874 no_glob_subst='s/\*/\\\*/g'
2875
2876 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2877 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2878 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2879
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2881 $as_echo_n "checking how to print strings... " >&6; }
2882 # Test print first, because it will be a builtin if present.
2883 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2884    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2885   ECHO='print -r --'
2886 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2887   ECHO='printf %s\n'
2888 else
2889   # Use this function as a fallback that always works.
2890   func_fallback_echo ()
2891   {
2892     eval 'cat <<_LTECHO_EOF
2893 $1
2894 _LTECHO_EOF'
2895   }
2896   ECHO='func_fallback_echo'
2897 fi
2898
2899 # func_echo_all arg...
2900 # Invoke $ECHO with all args, space-separated.
2901 func_echo_all ()
2902 {
2903     $ECHO ""
2904 }
2905
2906 case "$ECHO" in
2907   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2908 $as_echo "printf" >&6; } ;;
2909   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2910 $as_echo "print -r" >&6; } ;;
2911   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2912 $as_echo "cat" >&6; } ;;
2913 esac
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928 DEPDIR="${am__leading_dot}deps"
2929
2930 ac_config_commands="$ac_config_commands depfiles"
2931
2932
2933 am_make=${MAKE-make}
2934 cat > confinc << 'END'
2935 am__doit:
2936         @echo this is the am__doit target
2937 .PHONY: am__doit
2938 END
2939 # If we don't find an include directive, just comment out the code.
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2941 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2942 am__include="#"
2943 am__quote=
2944 _am_result=none
2945 # First try GNU make style include.
2946 echo "include confinc" > confmf
2947 # Ignore all kinds of additional output from `make'.
2948 case `$am_make -s -f confmf 2> /dev/null` in #(
2949 *the\ am__doit\ target*)
2950   am__include=include
2951   am__quote=
2952   _am_result=GNU
2953   ;;
2954 esac
2955 # Now try BSD make style include.
2956 if test "$am__include" = "#"; then
2957    echo '.include "confinc"' > confmf
2958    case `$am_make -s -f confmf 2> /dev/null` in #(
2959    *the\ am__doit\ target*)
2960      am__include=.include
2961      am__quote="\""
2962      _am_result=BSD
2963      ;;
2964    esac
2965 fi
2966
2967
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2969 $as_echo "$_am_result" >&6; }
2970 rm -f confinc confmf
2971
2972 # Check whether --enable-dependency-tracking was given.
2973 if test "${enable_dependency_tracking+set}" = set; then :
2974   enableval=$enable_dependency_tracking;
2975 fi
2976
2977 if test "x$enable_dependency_tracking" != xno; then
2978   am_depcomp="$ac_aux_dir/depcomp"
2979   AMDEPBACKSLASH='\'
2980 fi
2981  if test "x$enable_dependency_tracking" != xno; then
2982   AMDEP_TRUE=
2983   AMDEP_FALSE='#'
2984 else
2985   AMDEP_TRUE='#'
2986   AMDEP_FALSE=
2987 fi
2988
2989
2990 ac_ext=c
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 if test -n "$ac_tool_prefix"; then
2996   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_CC+:} false; then :
3001   $as_echo_n "(cached) " >&6
3002 else
3003   if test -n "$CC"; then
3004   ac_cv_prog_CC="$CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009   IFS=$as_save_IFS
3010   test -z "$as_dir" && as_dir=.
3011     for ac_exec_ext in '' $ac_executable_extensions; do
3012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015     break 2
3016   fi
3017 done
3018   done
3019 IFS=$as_save_IFS
3020
3021 fi
3022 fi
3023 CC=$ac_cv_prog_CC
3024 if test -n "$CC"; then
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3027 else
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3030 fi
3031
3032
3033 fi
3034 if test -z "$ac_cv_prog_CC"; then
3035   ac_ct_CC=$CC
3036   # Extract the first word of "gcc", so it can be a program name with args.
3037 set dummy gcc; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3041   $as_echo_n "(cached) " >&6
3042 else
3043   if test -n "$ac_ct_CC"; then
3044   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049   IFS=$as_save_IFS
3050   test -z "$as_dir" && as_dir=.
3051     for ac_exec_ext in '' $ac_executable_extensions; do
3052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053     ac_cv_prog_ac_ct_CC="gcc"
3054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055     break 2
3056   fi
3057 done
3058   done
3059 IFS=$as_save_IFS
3060
3061 fi
3062 fi
3063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3064 if test -n "$ac_ct_CC"; then
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3066 $as_echo "$ac_ct_CC" >&6; }
3067 else
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 fi
3071
3072   if test "x$ac_ct_CC" = x; then
3073     CC=""
3074   else
3075     case $cross_compiling:$ac_tool_warned in
3076 yes:)
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3079 ac_tool_warned=yes ;;
3080 esac
3081     CC=$ac_ct_CC
3082   fi
3083 else
3084   CC="$ac_cv_prog_CC"
3085 fi
3086
3087 if test -z "$CC"; then
3088           if test -n "$ac_tool_prefix"; then
3089     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3090 set dummy ${ac_tool_prefix}cc; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_CC+:} false; then :
3094   $as_echo_n "(cached) " >&6
3095 else
3096   if test -n "$CC"; then
3097   ac_cv_prog_CC="$CC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102   IFS=$as_save_IFS
3103   test -z "$as_dir" && as_dir=.
3104     for ac_exec_ext in '' $ac_executable_extensions; do
3105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106     ac_cv_prog_CC="${ac_tool_prefix}cc"
3107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108     break 2
3109   fi
3110 done
3111   done
3112 IFS=$as_save_IFS
3113
3114 fi
3115 fi
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3120 else
3121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125
3126   fi
3127 fi
3128 if test -z "$CC"; then
3129   # Extract the first word of "cc", so it can be a program name with args.
3130 set dummy cc; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_CC+:} false; then :
3134   $as_echo_n "(cached) " >&6
3135 else
3136   if test -n "$CC"; then
3137   ac_cv_prog_CC="$CC" # Let the user override the test.
3138 else
3139   ac_prog_rejected=no
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143   IFS=$as_save_IFS
3144   test -z "$as_dir" && as_dir=.
3145     for ac_exec_ext in '' $ac_executable_extensions; do
3146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3148        ac_prog_rejected=yes
3149        continue
3150      fi
3151     ac_cv_prog_CC="cc"
3152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153     break 2
3154   fi
3155 done
3156   done
3157 IFS=$as_save_IFS
3158
3159 if test $ac_prog_rejected = yes; then
3160   # We found a bogon in the path, so make sure we never use it.
3161   set dummy $ac_cv_prog_CC
3162   shift
3163   if test $# != 0; then
3164     # We chose a different compiler from the bogus one.
3165     # However, it has the same basename, so the bogon will be chosen
3166     # first if we set CC to just the basename; use the full file name.
3167     shift
3168     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3169   fi
3170 fi
3171 fi
3172 fi
3173 CC=$ac_cv_prog_CC
3174 if test -n "$CC"; then
3175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176 $as_echo "$CC" >&6; }
3177 else
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 fi
3181
3182
3183 fi
3184 if test -z "$CC"; then
3185   if test -n "$ac_tool_prefix"; then
3186   for ac_prog in cl.exe
3187   do
3188     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if ${ac_cv_prog_CC+:} false; then :
3193   $as_echo_n "(cached) " >&6
3194 else
3195   if test -n "$CC"; then
3196   ac_cv_prog_CC="$CC" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201   IFS=$as_save_IFS
3202   test -z "$as_dir" && as_dir=.
3203     for ac_exec_ext in '' $ac_executable_extensions; do
3204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207     break 2
3208   fi
3209 done
3210   done
3211 IFS=$as_save_IFS
3212
3213 fi
3214 fi
3215 CC=$ac_cv_prog_CC
3216 if test -n "$CC"; then
3217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3218 $as_echo "$CC" >&6; }
3219 else
3220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3222 fi
3223
3224
3225     test -n "$CC" && break
3226   done
3227 fi
3228 if test -z "$CC"; then
3229   ac_ct_CC=$CC
3230   for ac_prog in cl.exe
3231 do
3232   # Extract the first word of "$ac_prog", so it can be a program name with args.
3233 set dummy $ac_prog; ac_word=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3237   $as_echo_n "(cached) " >&6
3238 else
3239   if test -n "$ac_ct_CC"; then
3240   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3241 else
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH
3244 do
3245   IFS=$as_save_IFS
3246   test -z "$as_dir" && as_dir=.
3247     for ac_exec_ext in '' $ac_executable_extensions; do
3248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3249     ac_cv_prog_ac_ct_CC="$ac_prog"
3250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251     break 2
3252   fi
3253 done
3254   done
3255 IFS=$as_save_IFS
3256
3257 fi
3258 fi
3259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3260 if test -n "$ac_ct_CC"; then
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3262 $as_echo "$ac_ct_CC" >&6; }
3263 else
3264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 fi
3267
3268
3269   test -n "$ac_ct_CC" && break
3270 done
3271
3272   if test "x$ac_ct_CC" = x; then
3273     CC=""
3274   else
3275     case $cross_compiling:$ac_tool_warned in
3276 yes:)
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3279 ac_tool_warned=yes ;;
3280 esac
3281     CC=$ac_ct_CC
3282   fi
3283 fi
3284
3285 fi
3286
3287
3288 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error $? "no acceptable C compiler found in \$PATH
3291 See \`config.log' for more details" "$LINENO" 5; }
3292
3293 # Provide some information about the compiler.
3294 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3295 set X $ac_compile
3296 ac_compiler=$2
3297 for ac_option in --version -v -V -qversion; do
3298   { { ac_try="$ac_compiler $ac_option >&5"
3299 case "(($ac_try" in
3300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301   *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304 $as_echo "$ac_try_echo"; } >&5
3305   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3306   ac_status=$?
3307   if test -s conftest.err; then
3308     sed '10a\
3309 ... rest of stderr output deleted ...
3310          10q' conftest.err >conftest.er1
3311     cat conftest.er1 >&5
3312   fi
3313   rm -f conftest.er1 conftest.err
3314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315   test $ac_status = 0; }
3316 done
3317
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h.  */
3320
3321 int
3322 main ()
3323 {
3324
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 ac_clean_files_save=$ac_clean_files
3330 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3331 # Try to create an executable without -o first, disregard a.out.
3332 # It will help us diagnose broken compilers, and finding out an intuition
3333 # of exeext.
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3335 $as_echo_n "checking whether the C compiler works... " >&6; }
3336 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3337
3338 # The possible output files:
3339 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3340
3341 ac_rmfiles=
3342 for ac_file in $ac_files
3343 do
3344   case $ac_file in
3345     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3346     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3347   esac
3348 done
3349 rm -f $ac_rmfiles
3350
3351 if { { ac_try="$ac_link_default"
3352 case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358   (eval "$ac_link_default") 2>&5
3359   ac_status=$?
3360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361   test $ac_status = 0; }; then :
3362   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3363 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3364 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3365 # so that the user can short-circuit this test for compilers unknown to
3366 # Autoconf.
3367 for ac_file in $ac_files ''
3368 do
3369   test -f "$ac_file" || continue
3370   case $ac_file in
3371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3372         ;;
3373     [ab].out )
3374         # We found the default executable, but exeext='' is most
3375         # certainly right.
3376         break;;
3377     *.* )
3378         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3379         then :; else
3380            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3381         fi
3382         # We set ac_cv_exeext here because the later test for it is not
3383         # safe: cross compilers may not add the suffix if given an `-o'
3384         # argument, so we may need to know it at that point already.
3385         # Even if this section looks crufty: it has the advantage of
3386         # actually working.
3387         break;;
3388     * )
3389         break;;
3390   esac
3391 done
3392 test "$ac_cv_exeext" = no && ac_cv_exeext=
3393
3394 else
3395   ac_file=''
3396 fi
3397 if test -z "$ac_file"; then :
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 $as_echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 as_fn_error 77 "C compiler cannot create executables
3406 See \`config.log' for more details" "$LINENO" 5; }
3407 else
3408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3409 $as_echo "yes" >&6; }
3410 fi
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3412 $as_echo_n "checking for C compiler default output file name... " >&6; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3414 $as_echo "$ac_file" >&6; }
3415 ac_exeext=$ac_cv_exeext
3416
3417 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3418 ac_clean_files=$ac_clean_files_save
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3420 $as_echo_n "checking for suffix of executables... " >&6; }
3421 if { { ac_try="$ac_link"
3422 case "(($ac_try" in
3423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424   *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428   (eval "$ac_link") 2>&5
3429   ac_status=$?
3430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431   test $ac_status = 0; }; then :
3432   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3433 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3434 # work properly (i.e., refer to `conftest.exe'), while it won't with
3435 # `rm'.
3436 for ac_file in conftest.exe conftest conftest.*; do
3437   test -f "$ac_file" || continue
3438   case $ac_file in
3439     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3440     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3441           break;;
3442     * ) break;;
3443   esac
3444 done
3445 else
3446   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3449 See \`config.log' for more details" "$LINENO" 5; }
3450 fi
3451 rm -f conftest conftest$ac_cv_exeext
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3453 $as_echo "$ac_cv_exeext" >&6; }
3454
3455 rm -f conftest.$ac_ext
3456 EXEEXT=$ac_cv_exeext
3457 ac_exeext=$EXEEXT
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h.  */
3460 #include <stdio.h>
3461 int
3462 main ()
3463 {
3464 FILE *f = fopen ("conftest.out", "w");
3465  return ferror (f) || fclose (f) != 0;
3466
3467   ;
3468   return 0;
3469 }
3470 _ACEOF
3471 ac_clean_files="$ac_clean_files conftest.out"
3472 # Check that the compiler produces executables we can run.  If not, either
3473 # the compiler is broken, or we cross compile.
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3475 $as_echo_n "checking whether we are cross compiling... " >&6; }
3476 if test "$cross_compiling" != yes; then
3477   { { ac_try="$ac_link"
3478 case "(($ac_try" in
3479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480   *) ac_try_echo=$ac_try;;
3481 esac
3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483 $as_echo "$ac_try_echo"; } >&5
3484   (eval "$ac_link") 2>&5
3485   ac_status=$?
3486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487   test $ac_status = 0; }
3488   if { ac_try='./conftest$ac_cv_exeext'
3489   { { case "(($ac_try" in
3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491   *) ac_try_echo=$ac_try;;
3492 esac
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495   (eval "$ac_try") 2>&5
3496   ac_status=$?
3497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498   test $ac_status = 0; }; }; then
3499     cross_compiling=no
3500   else
3501     if test "$cross_compiling" = maybe; then
3502         cross_compiling=yes
3503     else
3504         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506 as_fn_error $? "cannot run C compiled programs.
3507 If you meant to cross compile, use \`--host'.
3508 See \`config.log' for more details" "$LINENO" 5; }
3509     fi
3510   fi
3511 fi
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3513 $as_echo "$cross_compiling" >&6; }
3514
3515 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3516 ac_clean_files=$ac_clean_files_save
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3518 $as_echo_n "checking for suffix of object files... " >&6; }
3519 if ${ac_cv_objext+:} false; then :
3520   $as_echo_n "(cached) " >&6
3521 else
3522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h.  */
3524
3525 int
3526 main ()
3527 {
3528
3529   ;
3530   return 0;
3531 }
3532 _ACEOF
3533 rm -f conftest.o conftest.obj
3534 if { { ac_try="$ac_compile"
3535 case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540 $as_echo "$ac_try_echo"; } >&5
3541   (eval "$ac_compile") 2>&5
3542   ac_status=$?
3543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544   test $ac_status = 0; }; then :
3545   for ac_file in conftest.o conftest.obj conftest.*; do
3546   test -f "$ac_file" || continue;
3547   case $ac_file in
3548     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3549     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3550        break;;
3551   esac
3552 done
3553 else
3554   $as_echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 as_fn_error $? "cannot compute suffix of object files: cannot compile
3560 See \`config.log' for more details" "$LINENO" 5; }
3561 fi
3562 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3565 $as_echo "$ac_cv_objext" >&6; }
3566 OBJEXT=$ac_cv_objext
3567 ac_objext=$OBJEXT
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3569 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3570 if ${ac_cv_c_compiler_gnu+:} false; then :
3571   $as_echo_n "(cached) " >&6
3572 else
3573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h.  */
3575
3576 int
3577 main ()
3578 {
3579 #ifndef __GNUC__
3580        choke me
3581 #endif
3582
3583   ;
3584   return 0;
3585 }
3586 _ACEOF
3587 if ac_fn_c_try_compile "$LINENO"; then :
3588   ac_compiler_gnu=yes
3589 else
3590   ac_compiler_gnu=no
3591 fi
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3594
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3597 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3598 if test $ac_compiler_gnu = yes; then
3599   GCC=yes
3600 else
3601   GCC=
3602 fi
3603 ac_test_CFLAGS=${CFLAGS+set}
3604 ac_save_CFLAGS=$CFLAGS
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3606 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3607 if ${ac_cv_prog_cc_g+:} false; then :
3608   $as_echo_n "(cached) " >&6
3609 else
3610   ac_save_c_werror_flag=$ac_c_werror_flag
3611    ac_c_werror_flag=yes
3612    ac_cv_prog_cc_g=no
3613    CFLAGS="-g"
3614    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h.  */
3616
3617 int
3618 main ()
3619 {
3620
3621   ;
3622   return 0;
3623 }
3624 _ACEOF
3625 if ac_fn_c_try_compile "$LINENO"; then :
3626   ac_cv_prog_cc_g=yes
3627 else
3628   CFLAGS=""
3629       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h.  */
3631
3632 int
3633 main ()
3634 {
3635
3636   ;
3637   return 0;
3638 }
3639 _ACEOF
3640 if ac_fn_c_try_compile "$LINENO"; then :
3641
3642 else
3643   ac_c_werror_flag=$ac_save_c_werror_flag
3644          CFLAGS="-g"
3645          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h.  */
3647
3648 int
3649 main ()
3650 {
3651
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 if ac_fn_c_try_compile "$LINENO"; then :
3657   ac_cv_prog_cc_g=yes
3658 fi
3659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660 fi
3661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662 fi
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664    ac_c_werror_flag=$ac_save_c_werror_flag
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3667 $as_echo "$ac_cv_prog_cc_g" >&6; }
3668 if test "$ac_test_CFLAGS" = set; then
3669   CFLAGS=$ac_save_CFLAGS
3670 elif test $ac_cv_prog_cc_g = yes; then
3671   if test "$GCC" = yes; then
3672     CFLAGS="-g -O2"
3673   else
3674     CFLAGS="-g"
3675   fi
3676 else
3677   if test "$GCC" = yes; then
3678     CFLAGS="-O2"
3679   else
3680     CFLAGS=
3681   fi
3682 fi
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3684 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3685 if ${ac_cv_prog_cc_c89+:} false; then :
3686   $as_echo_n "(cached) " >&6
3687 else
3688   ac_cv_prog_cc_c89=no
3689 ac_save_CC=$CC
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h.  */
3692 #include <stdarg.h>
3693 #include <stdio.h>
3694 #include <sys/types.h>
3695 #include <sys/stat.h>
3696 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3697 struct buf { int x; };
3698 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3699 static char *e (p, i)
3700      char **p;
3701      int i;
3702 {
3703   return p[i];
3704 }
3705 static char *f (char * (*g) (char **, int), char **p, ...)
3706 {
3707   char *s;
3708   va_list v;
3709   va_start (v,p);
3710   s = g (p, va_arg (v,int));
3711   va_end (v);
3712   return s;
3713 }
3714
3715 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3716    function prototypes and stuff, but not '\xHH' hex character constants.
3717    These don't provoke an error unfortunately, instead are silently treated
3718    as 'x'.  The following induces an error, until -std is added to get
3719    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3720    array size at least.  It's necessary to write '\x00'==0 to get something
3721    that's true only with -std.  */
3722 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3723
3724 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3725    inside strings and character constants.  */
3726 #define FOO(x) 'x'
3727 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3728
3729 int test (int i, double x);
3730 struct s1 {int (*f) (int a);};
3731 struct s2 {int (*f) (double a);};
3732 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3733 int argc;
3734 char **argv;
3735 int
3736 main ()
3737 {
3738 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3739   ;
3740   return 0;
3741 }
3742 _ACEOF
3743 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3744         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3745 do
3746   CC="$ac_save_CC $ac_arg"
3747   if ac_fn_c_try_compile "$LINENO"; then :
3748   ac_cv_prog_cc_c89=$ac_arg
3749 fi
3750 rm -f core conftest.err conftest.$ac_objext
3751   test "x$ac_cv_prog_cc_c89" != "xno" && break
3752 done
3753 rm -f conftest.$ac_ext
3754 CC=$ac_save_CC
3755
3756 fi
3757 # AC_CACHE_VAL
3758 case "x$ac_cv_prog_cc_c89" in
3759   x)
3760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3761 $as_echo "none needed" >&6; } ;;
3762   xno)
3763     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3764 $as_echo "unsupported" >&6; } ;;
3765   *)
3766     CC="$CC $ac_cv_prog_cc_c89"
3767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3768 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3769 esac
3770 if test "x$ac_cv_prog_cc_c89" != xno; then :
3771
3772 fi
3773
3774 ac_ext=c
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779
3780 depcc="$CC"   am_compiler_list=
3781
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3783 $as_echo_n "checking dependency style of $depcc... " >&6; }
3784 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3785   $as_echo_n "(cached) " >&6
3786 else
3787   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3788   # We make a subdir and do the tests there.  Otherwise we can end up
3789   # making bogus files that we don't know about and never remove.  For
3790   # instance it was reported that on HP-UX the gcc test will end up
3791   # making a dummy file named `D' -- because `-MD' means `put the output
3792   # in D'.
3793   mkdir conftest.dir
3794   # Copy depcomp to subdir because otherwise we won't find it if we're
3795   # using a relative directory.
3796   cp "$am_depcomp" conftest.dir
3797   cd conftest.dir
3798   # We will build objects and dependencies in a subdirectory because
3799   # it helps to detect inapplicable dependency modes.  For instance
3800   # both Tru64's cc and ICC support -MD to output dependencies as a
3801   # side effect of compilation, but ICC will put the dependencies in
3802   # the current directory while Tru64 will put them in the object
3803   # directory.
3804   mkdir sub
3805
3806   am_cv_CC_dependencies_compiler_type=none
3807   if test "$am_compiler_list" = ""; then
3808      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3809   fi
3810   am__universal=false
3811   case " $depcc " in #(
3812      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3813      esac
3814
3815   for depmode in $am_compiler_list; do
3816     # Setup a source with many dependencies, because some compilers
3817     # like to wrap large dependency lists on column 80 (with \), and
3818     # we should not choose a depcomp mode which is confused by this.
3819     #
3820     # We need to recreate these files for each test, as the compiler may
3821     # overwrite some of them when testing with obscure command lines.
3822     # This happens at least with the AIX C compiler.
3823     : > sub/conftest.c
3824     for i in 1 2 3 4 5 6; do
3825       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3826       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3827       # Solaris 8's {/usr,}/bin/sh.
3828       touch sub/conftst$i.h
3829     done
3830     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3831
3832     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3833     # mode.  It turns out that the SunPro C++ compiler does not properly
3834     # handle `-M -o', and we need to detect this.  Also, some Intel
3835     # versions had trouble with output in subdirs
3836     am__obj=sub/conftest.${OBJEXT-o}
3837     am__minus_obj="-o $am__obj"
3838     case $depmode in
3839     gcc)
3840       # This depmode causes a compiler race in universal mode.
3841       test "$am__universal" = false || continue
3842       ;;
3843     nosideeffect)
3844       # after this tag, mechanisms are not by side-effect, so they'll
3845       # only be used when explicitly requested
3846       if test "x$enable_dependency_tracking" = xyes; then
3847         continue
3848       else
3849         break
3850       fi
3851       ;;
3852     msvisualcpp | msvcmsys)
3853       # This compiler won't grok `-c -o', but also, the minuso test has
3854       # not run yet.  These depmodes are late enough in the game, and
3855       # so weak that their functioning should not be impacted.
3856       am__obj=conftest.${OBJEXT-o}
3857       am__minus_obj=
3858       ;;
3859     none) break ;;
3860     esac
3861     if depmode=$depmode \
3862        source=sub/conftest.c object=$am__obj \
3863        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3864        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3865          >/dev/null 2>conftest.err &&
3866        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3867        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3868        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3869        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3870       # icc doesn't choke on unknown options, it will just issue warnings
3871       # or remarks (even with -Werror).  So we grep stderr for any message
3872       # that says an option was ignored or not supported.
3873       # When given -MP, icc 7.0 and 7.1 complain thusly:
3874       #   icc: Command line warning: ignoring option '-M'; no argument required
3875       # The diagnosis changed in icc 8.0:
3876       #   icc: Command line remark: option '-MP' not supported
3877       if (grep 'ignoring option' conftest.err ||
3878           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3879         am_cv_CC_dependencies_compiler_type=$depmode
3880         break
3881       fi
3882     fi
3883   done
3884
3885   cd ..
3886   rm -rf conftest.dir
3887 else
3888   am_cv_CC_dependencies_compiler_type=none
3889 fi
3890
3891 fi
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3893 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3894 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3895
3896  if
3897   test "x$enable_dependency_tracking" != xno \
3898   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3899   am__fastdepCC_TRUE=
3900   am__fastdepCC_FALSE='#'
3901 else
3902   am__fastdepCC_TRUE='#'
3903   am__fastdepCC_FALSE=
3904 fi
3905
3906
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3908 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3909 if ${ac_cv_path_SED+:} false; then :
3910   $as_echo_n "(cached) " >&6
3911 else
3912             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3913      for ac_i in 1 2 3 4 5 6 7; do
3914        ac_script="$ac_script$as_nl$ac_script"
3915      done
3916      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3917      { ac_script=; unset ac_script;}
3918      if test -z "$SED"; then
3919   ac_path_SED_found=false
3920   # Loop through the user's path and test for each of PROGNAME-LIST
3921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926     for ac_prog in sed gsed; do
3927     for ac_exec_ext in '' $ac_executable_extensions; do
3928       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3929       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3930 # Check for GNU ac_path_SED and select it if it is found.
3931   # Check for GNU $ac_path_SED
3932 case `"$ac_path_SED" --version 2>&1` in
3933 *GNU*)
3934   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3935 *)
3936   ac_count=0
3937   $as_echo_n 0123456789 >"conftest.in"
3938   while :
3939   do
3940     cat "conftest.in" "conftest.in" >"conftest.tmp"
3941     mv "conftest.tmp" "conftest.in"
3942     cp "conftest.in" "conftest.nl"
3943     $as_echo '' >> "conftest.nl"
3944     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3946     as_fn_arith $ac_count + 1 && ac_count=$as_val
3947     if test $ac_count -gt ${ac_path_SED_max-0}; then
3948       # Best one so far, save it but keep looking for a better one
3949       ac_cv_path_SED="$ac_path_SED"
3950       ac_path_SED_max=$ac_count
3951     fi
3952     # 10*(2^10) chars as input seems more than enough
3953     test $ac_count -gt 10 && break
3954   done
3955   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3956 esac
3957
3958       $ac_path_SED_found && break 3
3959     done
3960   done
3961   done
3962 IFS=$as_save_IFS
3963   if test -z "$ac_cv_path_SED"; then
3964     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3965   fi
3966 else
3967   ac_cv_path_SED=$SED
3968 fi
3969
3970 fi
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3972 $as_echo "$ac_cv_path_SED" >&6; }
3973  SED="$ac_cv_path_SED"
3974   rm -f conftest.sed
3975
3976 test -z "$SED" && SED=sed
3977 Xsed="$SED -e 1s/^X//"
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3990 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3991 if ${ac_cv_path_GREP+:} false; then :
3992   $as_echo_n "(cached) " >&6
3993 else
3994   if test -z "$GREP"; then
3995   ac_path_GREP_found=false
3996   # Loop through the user's path and test for each of PROGNAME-LIST
3997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3999 do
4000   IFS=$as_save_IFS
4001   test -z "$as_dir" && as_dir=.
4002     for ac_prog in grep ggrep; do
4003     for ac_exec_ext in '' $ac_executable_extensions; do
4004       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4005       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4006 # Check for GNU ac_path_GREP and select it if it is found.
4007   # Check for GNU $ac_path_GREP
4008 case `"$ac_path_GREP" --version 2>&1` in
4009 *GNU*)
4010   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4011 *)
4012   ac_count=0
4013   $as_echo_n 0123456789 >"conftest.in"
4014   while :
4015   do
4016     cat "conftest.in" "conftest.in" >"conftest.tmp"
4017     mv "conftest.tmp" "conftest.in"
4018     cp "conftest.in" "conftest.nl"
4019     $as_echo 'GREP' >> "conftest.nl"
4020     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4021     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4022     as_fn_arith $ac_count + 1 && ac_count=$as_val
4023     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4024       # Best one so far, save it but keep looking for a better one
4025       ac_cv_path_GREP="$ac_path_GREP"
4026       ac_path_GREP_max=$ac_count
4027     fi
4028     # 10*(2^10) chars as input seems more than enough
4029     test $ac_count -gt 10 && break
4030   done
4031   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4032 esac
4033
4034       $ac_path_GREP_found && break 3
4035     done
4036   done
4037   done
4038 IFS=$as_save_IFS
4039   if test -z "$ac_cv_path_GREP"; then
4040     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4041   fi
4042 else
4043   ac_cv_path_GREP=$GREP
4044 fi
4045
4046 fi
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4048 $as_echo "$ac_cv_path_GREP" >&6; }
4049  GREP="$ac_cv_path_GREP"
4050
4051
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4053 $as_echo_n "checking for egrep... " >&6; }
4054 if ${ac_cv_path_EGREP+:} false; then :
4055   $as_echo_n "(cached) " >&6
4056 else
4057   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4058    then ac_cv_path_EGREP="$GREP -E"
4059    else
4060      if test -z "$EGREP"; then
4061   ac_path_EGREP_found=false
4062   # Loop through the user's path and test for each of PROGNAME-LIST
4063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4065 do
4066   IFS=$as_save_IFS
4067   test -z "$as_dir" && as_dir=.
4068     for ac_prog in egrep; do
4069     for ac_exec_ext in '' $ac_executable_extensions; do
4070       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4071       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4072 # Check for GNU ac_path_EGREP and select it if it is found.
4073   # Check for GNU $ac_path_EGREP
4074 case `"$ac_path_EGREP" --version 2>&1` in
4075 *GNU*)
4076   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4077 *)
4078   ac_count=0
4079   $as_echo_n 0123456789 >"conftest.in"
4080   while :
4081   do
4082     cat "conftest.in" "conftest.in" >"conftest.tmp"
4083     mv "conftest.tmp" "conftest.in"
4084     cp "conftest.in" "conftest.nl"
4085     $as_echo 'EGREP' >> "conftest.nl"
4086     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4087     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4088     as_fn_arith $ac_count + 1 && ac_count=$as_val
4089     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4090       # Best one so far, save it but keep looking for a better one
4091       ac_cv_path_EGREP="$ac_path_EGREP"
4092       ac_path_EGREP_max=$ac_count
4093     fi
4094     # 10*(2^10) chars as input seems more than enough
4095     test $ac_count -gt 10 && break
4096   done
4097   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4098 esac
4099
4100       $ac_path_EGREP_found && break 3
4101     done
4102   done
4103   done
4104 IFS=$as_save_IFS
4105   if test -z "$ac_cv_path_EGREP"; then
4106     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4107   fi
4108 else
4109   ac_cv_path_EGREP=$EGREP
4110 fi
4111
4112    fi
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4115 $as_echo "$ac_cv_path_EGREP" >&6; }
4116  EGREP="$ac_cv_path_EGREP"
4117
4118
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4120 $as_echo_n "checking for fgrep... " >&6; }
4121 if ${ac_cv_path_FGREP+:} false; then :
4122   $as_echo_n "(cached) " >&6
4123 else
4124   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4125    then ac_cv_path_FGREP="$GREP -F"
4126    else
4127      if test -z "$FGREP"; then
4128   ac_path_FGREP_found=false
4129   # Loop through the user's path and test for each of PROGNAME-LIST
4130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4132 do
4133   IFS=$as_save_IFS
4134   test -z "$as_dir" && as_dir=.
4135     for ac_prog in fgrep; do
4136     for ac_exec_ext in '' $ac_executable_extensions; do
4137       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4138       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4139 # Check for GNU ac_path_FGREP and select it if it is found.
4140   # Check for GNU $ac_path_FGREP
4141 case `"$ac_path_FGREP" --version 2>&1` in
4142 *GNU*)
4143   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4144 *)
4145   ac_count=0
4146   $as_echo_n 0123456789 >"conftest.in"
4147   while :
4148   do
4149     cat "conftest.in" "conftest.in" >"conftest.tmp"
4150     mv "conftest.tmp" "conftest.in"
4151     cp "conftest.in" "conftest.nl"
4152     $as_echo 'FGREP' >> "conftest.nl"
4153     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155     as_fn_arith $ac_count + 1 && ac_count=$as_val
4156     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4157       # Best one so far, save it but keep looking for a better one
4158       ac_cv_path_FGREP="$ac_path_FGREP"
4159       ac_path_FGREP_max=$ac_count
4160     fi
4161     # 10*(2^10) chars as input seems more than enough
4162     test $ac_count -gt 10 && break
4163   done
4164   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4165 esac
4166
4167       $ac_path_FGREP_found && break 3
4168     done
4169   done
4170   done
4171 IFS=$as_save_IFS
4172   if test -z "$ac_cv_path_FGREP"; then
4173     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4174   fi
4175 else
4176   ac_cv_path_FGREP=$FGREP
4177 fi
4178
4179    fi
4180 fi
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4182 $as_echo "$ac_cv_path_FGREP" >&6; }
4183  FGREP="$ac_cv_path_FGREP"
4184
4185
4186 test -z "$GREP" && GREP=grep
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206 # Check whether --with-gnu-ld was given.
4207 if test "${with_gnu_ld+set}" = set; then :
4208   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4209 else
4210   with_gnu_ld=no
4211 fi
4212
4213 ac_prog=ld
4214 if test "$GCC" = yes; then
4215   # Check if gcc -print-prog-name=ld gives a path.
4216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4217 $as_echo_n "checking for ld used by $CC... " >&6; }
4218   case $host in
4219   *-*-mingw*)
4220     # gcc leaves a trailing carriage return which upsets mingw
4221     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4222   *)
4223     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4224   esac
4225   case $ac_prog in
4226     # Accept absolute paths.
4227     [\\/]* | ?:[\\/]*)
4228       re_direlt='/[^/][^/]*/\.\./'
4229       # Canonicalize the pathname of ld
4230       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4231       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4232         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4233       done
4234       test -z "$LD" && LD="$ac_prog"
4235       ;;
4236   "")
4237     # If it fails, then pretend we aren't using GCC.
4238     ac_prog=ld
4239     ;;
4240   *)
4241     # If it is relative, then search for the first ld in PATH.
4242     with_gnu_ld=unknown
4243     ;;
4244   esac
4245 elif test "$with_gnu_ld" = yes; then
4246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4247 $as_echo_n "checking for GNU ld... " >&6; }
4248 else
4249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4250 $as_echo_n "checking for non-GNU ld... " >&6; }
4251 fi
4252 if ${lt_cv_path_LD+:} false; then :
4253   $as_echo_n "(cached) " >&6
4254 else
4255   if test -z "$LD"; then
4256   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4257   for ac_dir in $PATH; do
4258     IFS="$lt_save_ifs"
4259     test -z "$ac_dir" && ac_dir=.
4260     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4261       lt_cv_path_LD="$ac_dir/$ac_prog"
4262       # Check to see if the program is GNU ld.  I'd rather use --version,
4263       # but apparently some variants of GNU ld only accept -v.
4264       # Break only if it was the GNU/non-GNU ld that we prefer.
4265       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4266       *GNU* | *'with BFD'*)
4267         test "$with_gnu_ld" != no && break
4268         ;;
4269       *)
4270         test "$with_gnu_ld" != yes && break
4271         ;;
4272       esac
4273     fi
4274   done
4275   IFS="$lt_save_ifs"
4276 else
4277   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4278 fi
4279 fi
4280
4281 LD="$lt_cv_path_LD"
4282 if test -n "$LD"; then
4283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4284 $as_echo "$LD" >&6; }
4285 else
4286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287 $as_echo "no" >&6; }
4288 fi
4289 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4291 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4292 if ${lt_cv_prog_gnu_ld+:} false; then :
4293   $as_echo_n "(cached) " >&6
4294 else
4295   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4296 case `$LD -v 2>&1 </dev/null` in
4297 *GNU* | *'with BFD'*)
4298   lt_cv_prog_gnu_ld=yes
4299   ;;
4300 *)
4301   lt_cv_prog_gnu_ld=no
4302   ;;
4303 esac
4304 fi
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4306 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4307 with_gnu_ld=$lt_cv_prog_gnu_ld
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4318 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4319 if ${lt_cv_path_NM+:} false; then :
4320   $as_echo_n "(cached) " >&6
4321 else
4322   if test -n "$NM"; then
4323   # Let the user override the test.
4324   lt_cv_path_NM="$NM"
4325 else
4326   lt_nm_to_check="${ac_tool_prefix}nm"
4327   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4328     lt_nm_to_check="$lt_nm_to_check nm"
4329   fi
4330   for lt_tmp_nm in $lt_nm_to_check; do
4331     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4332     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4333       IFS="$lt_save_ifs"
4334       test -z "$ac_dir" && ac_dir=.
4335       tmp_nm="$ac_dir/$lt_tmp_nm"
4336       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4337         # Check to see if the nm accepts a BSD-compat flag.
4338         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4339         #   nm: unknown option "B" ignored
4340         # Tru64's nm complains that /dev/null is an invalid object file
4341         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4342         */dev/null* | *'Invalid file or object type'*)
4343           lt_cv_path_NM="$tmp_nm -B"
4344           break
4345           ;;
4346         *)
4347           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4348           */dev/null*)
4349             lt_cv_path_NM="$tmp_nm -p"
4350             break
4351             ;;
4352           *)
4353             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4354             continue # so that we can try to find one that supports BSD flags
4355             ;;
4356           esac
4357           ;;
4358         esac
4359       fi
4360     done
4361     IFS="$lt_save_ifs"
4362   done
4363   : ${lt_cv_path_NM=no}
4364 fi
4365 fi
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4367 $as_echo "$lt_cv_path_NM" >&6; }
4368 if test "$lt_cv_path_NM" != "no"; then
4369   NM="$lt_cv_path_NM"
4370 else
4371   # Didn't find any BSD compatible name lister, look for dumpbin.
4372   if test -n "$DUMPBIN"; then :
4373     # Let the user override the test.
4374   else
4375     if test -n "$ac_tool_prefix"; then
4376   for ac_prog in dumpbin "link -dump"
4377   do
4378     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4381 $as_echo_n "checking for $ac_word... " >&6; }
4382 if ${ac_cv_prog_DUMPBIN+:} false; then :
4383   $as_echo_n "(cached) " >&6
4384 else
4385   if test -n "$DUMPBIN"; then
4386   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4387 else
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4390 do
4391   IFS=$as_save_IFS
4392   test -z "$as_dir" && as_dir=.
4393     for ac_exec_ext in '' $ac_executable_extensions; do
4394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397     break 2
4398   fi
4399 done
4400   done
4401 IFS=$as_save_IFS
4402
4403 fi
4404 fi
4405 DUMPBIN=$ac_cv_prog_DUMPBIN
4406 if test -n "$DUMPBIN"; then
4407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4408 $as_echo "$DUMPBIN" >&6; }
4409 else
4410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411 $as_echo "no" >&6; }
4412 fi
4413
4414
4415     test -n "$DUMPBIN" && break
4416   done
4417 fi
4418 if test -z "$DUMPBIN"; then
4419   ac_ct_DUMPBIN=$DUMPBIN
4420   for ac_prog in dumpbin "link -dump"
4421 do
4422   # Extract the first word of "$ac_prog", so it can be a program name with args.
4423 set dummy $ac_prog; ac_word=$2
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4427   $as_echo_n "(cached) " >&6
4428 else
4429   if test -n "$ac_ct_DUMPBIN"; then
4430   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437     for ac_exec_ext in '' $ac_executable_extensions; do
4438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441     break 2
4442   fi
4443 done
4444   done
4445 IFS=$as_save_IFS
4446
4447 fi
4448 fi
4449 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4450 if test -n "$ac_ct_DUMPBIN"; then
4451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4452 $as_echo "$ac_ct_DUMPBIN" >&6; }
4453 else
4454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4456 fi
4457
4458
4459   test -n "$ac_ct_DUMPBIN" && break
4460 done
4461
4462   if test "x$ac_ct_DUMPBIN" = x; then
4463     DUMPBIN=":"
4464   else
4465     case $cross_compiling:$ac_tool_warned in
4466 yes:)
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4469 ac_tool_warned=yes ;;
4470 esac
4471     DUMPBIN=$ac_ct_DUMPBIN
4472   fi
4473 fi
4474
4475     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4476     *COFF*)
4477       DUMPBIN="$DUMPBIN -symbols"
4478       ;;
4479     *)
4480       DUMPBIN=:
4481       ;;
4482     esac
4483   fi
4484
4485   if test "$DUMPBIN" != ":"; then
4486     NM="$DUMPBIN"
4487   fi
4488 fi
4489 test -z "$NM" && NM=nm
4490
4491
4492
4493
4494
4495
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4497 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4498 if ${lt_cv_nm_interface+:} false; then :
4499   $as_echo_n "(cached) " >&6
4500 else
4501   lt_cv_nm_interface="BSD nm"
4502   echo "int some_variable = 0;" > conftest.$ac_ext
4503   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4504   (eval "$ac_compile" 2>conftest.err)
4505   cat conftest.err >&5
4506   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4507   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4508   cat conftest.err >&5
4509   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4510   cat conftest.out >&5
4511   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4512     lt_cv_nm_interface="MS dumpbin"
4513   fi
4514   rm -f conftest*
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4517 $as_echo "$lt_cv_nm_interface" >&6; }
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4520 $as_echo_n "checking whether ln -s works... " >&6; }
4521 LN_S=$as_ln_s
4522 if test "$LN_S" = "ln -s"; then
4523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4524 $as_echo "yes" >&6; }
4525 else
4526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4527 $as_echo "no, using $LN_S" >&6; }
4528 fi
4529
4530 # find the maximum length of command line arguments
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4532 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4533 if ${lt_cv_sys_max_cmd_len+:} false; then :
4534   $as_echo_n "(cached) " >&6
4535 else
4536     i=0
4537   teststring="ABCD"
4538
4539   case $build_os in
4540   msdosdjgpp*)
4541     # On DJGPP, this test can blow up pretty badly due to problems in libc
4542     # (any single argument exceeding 2000 bytes causes a buffer overrun
4543     # during glob expansion).  Even if it were fixed, the result of this
4544     # check would be larger than it should be.
4545     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4546     ;;
4547
4548   gnu*)
4549     # Under GNU Hurd, this test is not required because there is
4550     # no limit to the length of command line arguments.
4551     # Libtool will interpret -1 as no limit whatsoever
4552     lt_cv_sys_max_cmd_len=-1;
4553     ;;
4554
4555   cygwin* | mingw* | cegcc*)
4556     # On Win9x/ME, this test blows up -- it succeeds, but takes
4557     # about 5 minutes as the teststring grows exponentially.
4558     # Worse, since 9x/ME are not pre-emptively multitasking,
4559     # you end up with a "frozen" computer, even though with patience
4560     # the test eventually succeeds (with a max line length of 256k).
4561     # Instead, let's just punt: use the minimum linelength reported by
4562     # all of the supported platforms: 8192 (on NT/2K/XP).
4563     lt_cv_sys_max_cmd_len=8192;
4564     ;;
4565
4566   mint*)
4567     # On MiNT this can take a long time and run out of memory.
4568     lt_cv_sys_max_cmd_len=8192;
4569     ;;
4570
4571   amigaos*)
4572     # On AmigaOS with pdksh, this test takes hours, literally.
4573     # So we just punt and use a minimum line length of 8192.
4574     lt_cv_sys_max_cmd_len=8192;
4575     ;;
4576
4577   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4578     # This has been around since 386BSD, at least.  Likely further.
4579     if test -x /sbin/sysctl; then
4580       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4581     elif test -x /usr/sbin/sysctl; then
4582       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4583     else
4584       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4585     fi
4586     # And add a safety zone
4587     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4588     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4589     ;;
4590
4591   interix*)
4592     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4593     lt_cv_sys_max_cmd_len=196608
4594     ;;
4595
4596   osf*)
4597     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4598     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4599     # nice to cause kernel panics so lets avoid the loop below.
4600     # First set a reasonable default.
4601     lt_cv_sys_max_cmd_len=16384
4602     #
4603     if test -x /sbin/sysconfig; then
4604       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4605         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4606       esac
4607     fi
4608     ;;
4609   sco3.2v5*)
4610     lt_cv_sys_max_cmd_len=102400
4611     ;;
4612   sysv5* | sco5v6* | sysv4.2uw2*)
4613     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4614     if test -n "$kargmax"; then
4615       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4616     else
4617       lt_cv_sys_max_cmd_len=32768
4618     fi
4619     ;;
4620   *)
4621     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4622     if test -n "$lt_cv_sys_max_cmd_len"; then
4623       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4624       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4625     else
4626       # Make teststring a little bigger before we do anything with it.
4627       # a 1K string should be a reasonable start.
4628       for i in 1 2 3 4 5 6 7 8 ; do
4629         teststring=$teststring$teststring
4630       done
4631       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4632       # If test is not a shell built-in, we'll probably end up computing a
4633       # maximum length that is only half of the actual maximum length, but
4634       # we can't tell.
4635       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4636                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4637               test $i != 17 # 1/2 MB should be enough
4638       do
4639         i=`expr $i + 1`
4640         teststring=$teststring$teststring
4641       done
4642       # Only check the string length outside the loop.
4643       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4644       teststring=
4645       # Add a significant safety factor because C++ compilers can tack on
4646       # massive amounts of additional arguments before passing them to the
4647       # linker.  It appears as though 1/2 is a usable value.
4648       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4649     fi
4650     ;;
4651   esac
4652
4653 fi
4654
4655 if test -n $lt_cv_sys_max_cmd_len ; then
4656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4657 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4658 else
4659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4660 $as_echo "none" >&6; }
4661 fi
4662 max_cmd_len=$lt_cv_sys_max_cmd_len
4663
4664
4665
4666
4667
4668
4669 : ${CP="cp -f"}
4670 : ${MV="mv -f"}
4671 : ${RM="rm -f"}
4672
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4674 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4675 # Try some XSI features
4676 xsi_shell=no
4677 ( _lt_dummy="a/b/c"
4678   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4679       = c,a/b,b/c, \
4680     && eval 'test $(( 1 + 1 )) -eq 2 \
4681     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4682   && xsi_shell=yes
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4684 $as_echo "$xsi_shell" >&6; }
4685
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4688 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4689 lt_shell_append=no
4690 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4691     >/dev/null 2>&1 \
4692   && lt_shell_append=yes
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4694 $as_echo "$lt_shell_append" >&6; }
4695
4696
4697 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4698   lt_unset=unset
4699 else
4700   lt_unset=false
4701 fi
4702
4703
4704
4705
4706
4707 # test EBCDIC or ASCII
4708 case `echo X|tr X '\101'` in
4709  A) # ASCII based system
4710     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4711   lt_SP2NL='tr \040 \012'
4712   lt_NL2SP='tr \015\012 \040\040'
4713   ;;
4714  *) # EBCDIC based system
4715   lt_SP2NL='tr \100 \n'
4716   lt_NL2SP='tr \r\n \100\100'
4717   ;;
4718 esac
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4729 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4730 if ${lt_cv_to_host_file_cmd+:} false; then :
4731   $as_echo_n "(cached) " >&6
4732 else
4733   case $host in
4734   *-*-mingw* )
4735     case $build in
4736       *-*-mingw* ) # actually msys
4737         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4738         ;;
4739       *-*-cygwin* )
4740         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4741         ;;
4742       * ) # otherwise, assume *nix
4743         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4744         ;;
4745     esac
4746     ;;
4747   *-*-cygwin* )
4748     case $build in
4749       *-*-mingw* ) # actually msys
4750         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4751         ;;
4752       *-*-cygwin* )
4753         lt_cv_to_host_file_cmd=func_convert_file_noop
4754         ;;
4755       * ) # otherwise, assume *nix
4756         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4757         ;;
4758     esac
4759     ;;
4760   * ) # unhandled hosts (and "normal" native builds)
4761     lt_cv_to_host_file_cmd=func_convert_file_noop
4762     ;;
4763 esac
4764
4765 fi
4766
4767 to_host_file_cmd=$lt_cv_to_host_file_cmd
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4769 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4770
4771
4772
4773
4774
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4776 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4777 if ${lt_cv_to_tool_file_cmd+:} false; then :
4778   $as_echo_n "(cached) " >&6
4779 else
4780   #assume ordinary cross tools, or native build.
4781 lt_cv_to_tool_file_cmd=func_convert_file_noop
4782 case $host in
4783   *-*-mingw* )
4784     case $build in
4785       *-*-mingw* ) # actually msys
4786         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4787         ;;
4788     esac
4789     ;;
4790 esac
4791
4792 fi
4793
4794 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4796 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4797
4798
4799
4800
4801
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4803 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4804 if ${lt_cv_ld_reload_flag+:} false; then :
4805   $as_echo_n "(cached) " >&6
4806 else
4807   lt_cv_ld_reload_flag='-r'
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4810 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4811 reload_flag=$lt_cv_ld_reload_flag
4812 case $reload_flag in
4813 "" | " "*) ;;
4814 *) reload_flag=" $reload_flag" ;;
4815 esac
4816 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4817 case $host_os in
4818   cygwin* | mingw* | pw32* | cegcc*)
4819     if test "$GCC" != yes; then
4820       reload_cmds=false
4821     fi
4822     ;;
4823   darwin*)
4824     if test "$GCC" = yes; then
4825       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4826     else
4827       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4828     fi
4829     ;;
4830 esac
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840 if test -n "$ac_tool_prefix"; then
4841   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4842 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_OBJDUMP+:} false; then :
4846   $as_echo_n "(cached) " >&6
4847 else
4848   if test -n "$OBJDUMP"; then
4849   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4853 do
4854   IFS=$as_save_IFS
4855   test -z "$as_dir" && as_dir=.
4856     for ac_exec_ext in '' $ac_executable_extensions; do
4857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860     break 2
4861   fi
4862 done
4863   done
4864 IFS=$as_save_IFS
4865
4866 fi
4867 fi
4868 OBJDUMP=$ac_cv_prog_OBJDUMP
4869 if test -n "$OBJDUMP"; then
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4871 $as_echo "$OBJDUMP" >&6; }
4872 else
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4875 fi
4876
4877
4878 fi
4879 if test -z "$ac_cv_prog_OBJDUMP"; then
4880   ac_ct_OBJDUMP=$OBJDUMP
4881   # Extract the first word of "objdump", so it can be a program name with args.
4882 set dummy objdump; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4886   $as_echo_n "(cached) " >&6
4887 else
4888   if test -n "$ac_ct_OBJDUMP"; then
4889   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4890 else
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894   IFS=$as_save_IFS
4895   test -z "$as_dir" && as_dir=.
4896     for ac_exec_ext in '' $ac_executable_extensions; do
4897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900     break 2
4901   fi
4902 done
4903   done
4904 IFS=$as_save_IFS
4905
4906 fi
4907 fi
4908 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4909 if test -n "$ac_ct_OBJDUMP"; then
4910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4911 $as_echo "$ac_ct_OBJDUMP" >&6; }
4912 else
4913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4915 fi
4916
4917   if test "x$ac_ct_OBJDUMP" = x; then
4918     OBJDUMP="false"
4919   else
4920     case $cross_compiling:$ac_tool_warned in
4921 yes:)
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4924 ac_tool_warned=yes ;;
4925 esac
4926     OBJDUMP=$ac_ct_OBJDUMP
4927   fi
4928 else
4929   OBJDUMP="$ac_cv_prog_OBJDUMP"
4930 fi
4931
4932 test -z "$OBJDUMP" && OBJDUMP=objdump
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4943 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4944 if ${lt_cv_deplibs_check_method+:} false; then :
4945   $as_echo_n "(cached) " >&6
4946 else
4947   lt_cv_file_magic_cmd='$MAGIC_CMD'
4948 lt_cv_file_magic_test_file=
4949 lt_cv_deplibs_check_method='unknown'
4950 # Need to set the preceding variable on all platforms that support
4951 # interlibrary dependencies.
4952 # 'none' -- dependencies not supported.
4953 # `unknown' -- same as none, but documents that we really don't know.
4954 # 'pass_all' -- all dependencies passed with no checks.
4955 # 'test_compile' -- check by making test program.
4956 # 'file_magic [[regex]]' -- check by looking for files in library path
4957 # which responds to the $file_magic_cmd with a given extended regex.
4958 # If you have `file' or equivalent on your system and you're not sure
4959 # whether `pass_all' will *always* work, you probably want this one.
4960
4961 case $host_os in
4962 aix[4-9]*)
4963   lt_cv_deplibs_check_method=pass_all
4964   ;;
4965
4966 beos*)
4967   lt_cv_deplibs_check_method=pass_all
4968   ;;
4969
4970 bsdi[45]*)
4971   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4972   lt_cv_file_magic_cmd='/usr/bin/file -L'
4973   lt_cv_file_magic_test_file=/shlib/libc.so
4974   ;;
4975
4976 cygwin*)
4977   # func_win32_libid is a shell function defined in ltmain.sh
4978   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4979   lt_cv_file_magic_cmd='func_win32_libid'
4980   ;;
4981
4982 mingw* | pw32*)
4983   # Base MSYS/MinGW do not provide the 'file' command needed by
4984   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4985   # unless we find 'file', for example because we are cross-compiling.
4986   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4987   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4988     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4989     lt_cv_file_magic_cmd='func_win32_libid'
4990   else
4991     # Keep this pattern in sync with the one in func_win32_libid.
4992     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4993     lt_cv_file_magic_cmd='$OBJDUMP -f'
4994   fi
4995   ;;
4996
4997 cegcc*)
4998   # use the weaker test based on 'objdump'. See mingw*.
4999   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5000   lt_cv_file_magic_cmd='$OBJDUMP -f'
5001   ;;
5002
5003 darwin* | rhapsody*)
5004   lt_cv_deplibs_check_method=pass_all
5005   ;;
5006
5007 freebsd* | dragonfly*)
5008   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5009     case $host_cpu in
5010     i*86 )
5011       # Not sure whether the presence of OpenBSD here was a mistake.
5012       # Let's accept both of them until this is cleared up.
5013       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5014       lt_cv_file_magic_cmd=/usr/bin/file
5015       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5016       ;;
5017     esac
5018   else
5019     lt_cv_deplibs_check_method=pass_all
5020   fi
5021   ;;
5022
5023 gnu*)
5024   lt_cv_deplibs_check_method=pass_all
5025   ;;
5026
5027 haiku*)
5028   lt_cv_deplibs_check_method=pass_all
5029   ;;
5030
5031 hpux10.20* | hpux11*)
5032   lt_cv_file_magic_cmd=/usr/bin/file
5033   case $host_cpu in
5034   ia64*)
5035     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5036     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5037     ;;
5038   hppa*64*)
5039     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]'
5040     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5041     ;;
5042   *)
5043     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5044     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5045     ;;
5046   esac
5047   ;;
5048
5049 interix[3-9]*)
5050   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5051   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5052   ;;
5053
5054 irix5* | irix6* | nonstopux*)
5055   case $LD in
5056   *-32|*"-32 ") libmagic=32-bit;;
5057   *-n32|*"-n32 ") libmagic=N32;;
5058   *-64|*"-64 ") libmagic=64-bit;;
5059   *) libmagic=never-match;;
5060   esac
5061   lt_cv_deplibs_check_method=pass_all
5062   ;;
5063
5064 # This must be Linux ELF.
5065 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5066   lt_cv_deplibs_check_method=pass_all
5067   ;;
5068
5069 netbsd*)
5070   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5071     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5072   else
5073     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5074   fi
5075   ;;
5076
5077 newos6*)
5078   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5079   lt_cv_file_magic_cmd=/usr/bin/file
5080   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5081   ;;
5082
5083 *nto* | *qnx*)
5084   lt_cv_deplibs_check_method=pass_all
5085   ;;
5086
5087 openbsd*)
5088   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5089     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5090   else
5091     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5092   fi
5093   ;;
5094
5095 osf3* | osf4* | osf5*)
5096   lt_cv_deplibs_check_method=pass_all
5097   ;;
5098
5099 rdos*)
5100   lt_cv_deplibs_check_method=pass_all
5101   ;;
5102
5103 solaris*)
5104   lt_cv_deplibs_check_method=pass_all
5105   ;;
5106
5107 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5108   lt_cv_deplibs_check_method=pass_all
5109   ;;
5110
5111 sysv4 | sysv4.3*)
5112   case $host_vendor in
5113   motorola)
5114     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]'
5115     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5116     ;;
5117   ncr)
5118     lt_cv_deplibs_check_method=pass_all
5119     ;;
5120   sequent)
5121     lt_cv_file_magic_cmd='/bin/file'
5122     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5123     ;;
5124   sni)
5125     lt_cv_file_magic_cmd='/bin/file'
5126     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5127     lt_cv_file_magic_test_file=/lib/libc.so
5128     ;;
5129   siemens)
5130     lt_cv_deplibs_check_method=pass_all
5131     ;;
5132   pc)
5133     lt_cv_deplibs_check_method=pass_all
5134     ;;
5135   esac
5136   ;;
5137
5138 tpf*)
5139   lt_cv_deplibs_check_method=pass_all
5140   ;;
5141 esac
5142
5143 fi
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5145 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5146
5147 file_magic_glob=
5148 want_nocaseglob=no
5149 if test "$build" = "$host"; then
5150   case $host_os in
5151   mingw* | pw32*)
5152     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5153       want_nocaseglob=yes
5154     else
5155       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5156     fi
5157     ;;
5158   esac
5159 fi
5160
5161 file_magic_cmd=$lt_cv_file_magic_cmd
5162 deplibs_check_method=$lt_cv_deplibs_check_method
5163 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186 if test -n "$ac_tool_prefix"; then
5187   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5188 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if ${ac_cv_prog_DLLTOOL+:} false; then :
5192   $as_echo_n "(cached) " >&6
5193 else
5194   if test -n "$DLLTOOL"; then
5195   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200   IFS=$as_save_IFS
5201   test -z "$as_dir" && as_dir=.
5202     for ac_exec_ext in '' $ac_executable_extensions; do
5203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206     break 2
5207   fi
5208 done
5209   done
5210 IFS=$as_save_IFS
5211
5212 fi
5213 fi
5214 DLLTOOL=$ac_cv_prog_DLLTOOL
5215 if test -n "$DLLTOOL"; then
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5217 $as_echo "$DLLTOOL" >&6; }
5218 else
5219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5221 fi
5222
5223
5224 fi
5225 if test -z "$ac_cv_prog_DLLTOOL"; then
5226   ac_ct_DLLTOOL=$DLLTOOL
5227   # Extract the first word of "dlltool", so it can be a program name with args.
5228 set dummy dlltool; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234   if test -n "$ac_ct_DLLTOOL"; then
5235   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5239 do
5240   IFS=$as_save_IFS
5241   test -z "$as_dir" && as_dir=.
5242     for ac_exec_ext in '' $ac_executable_extensions; do
5243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246     break 2
5247   fi
5248 done
5249   done
5250 IFS=$as_save_IFS
5251
5252 fi
5253 fi
5254 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5255 if test -n "$ac_ct_DLLTOOL"; then
5256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5257 $as_echo "$ac_ct_DLLTOOL" >&6; }
5258 else
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5261 fi
5262
5263   if test "x$ac_ct_DLLTOOL" = x; then
5264     DLLTOOL="false"
5265   else
5266     case $cross_compiling:$ac_tool_warned in
5267 yes:)
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5270 ac_tool_warned=yes ;;
5271 esac
5272     DLLTOOL=$ac_ct_DLLTOOL
5273   fi
5274 else
5275   DLLTOOL="$ac_cv_prog_DLLTOOL"
5276 fi
5277
5278 test -z "$DLLTOOL" && DLLTOOL=dlltool
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5290 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5291 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5292   $as_echo_n "(cached) " >&6
5293 else
5294   lt_cv_sharedlib_from_linklib_cmd='unknown'
5295
5296 case $host_os in
5297 cygwin* | mingw* | pw32* | cegcc*)
5298   # two different shell functions defined in ltmain.sh
5299   # decide which to use based on capabilities of $DLLTOOL
5300   case `$DLLTOOL --help 2>&1` in
5301   *--identify-strict*)
5302     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5303     ;;
5304   *)
5305     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5306     ;;
5307   esac
5308   ;;
5309 *)
5310   # fallback: assume linklib IS sharedlib
5311   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5312   ;;
5313 esac
5314
5315 fi
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5317 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5318 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5319 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5320
5321
5322
5323
5324
5325
5326
5327
5328 if test -n "$ac_tool_prefix"; then
5329   for ac_prog in ar
5330   do
5331     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if ${ac_cv_prog_AR+:} false; then :
5336   $as_echo_n "(cached) " >&6
5337 else
5338   if test -n "$AR"; then
5339   ac_cv_prog_AR="$AR" # Let the user override the test.
5340 else
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5343 do
5344   IFS=$as_save_IFS
5345   test -z "$as_dir" && as_dir=.
5346     for ac_exec_ext in '' $ac_executable_extensions; do
5347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350     break 2
5351   fi
5352 done
5353   done
5354 IFS=$as_save_IFS
5355
5356 fi
5357 fi
5358 AR=$ac_cv_prog_AR
5359 if test -n "$AR"; then
5360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5361 $as_echo "$AR" >&6; }
5362 else
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5365 fi
5366
5367
5368     test -n "$AR" && break
5369   done
5370 fi
5371 if test -z "$AR"; then
5372   ac_ct_AR=$AR
5373   for ac_prog in ar
5374 do
5375   # Extract the first word of "$ac_prog", so it can be a program name with args.
5376 set dummy $ac_prog; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5380   $as_echo_n "(cached) " >&6
5381 else
5382   if test -n "$ac_ct_AR"; then
5383   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5387 do
5388   IFS=$as_save_IFS
5389   test -z "$as_dir" && as_dir=.
5390     for ac_exec_ext in '' $ac_executable_extensions; do
5391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392     ac_cv_prog_ac_ct_AR="$ac_prog"
5393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394     break 2
5395   fi
5396 done
5397   done
5398 IFS=$as_save_IFS
5399
5400 fi
5401 fi
5402 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5403 if test -n "$ac_ct_AR"; then
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5405 $as_echo "$ac_ct_AR" >&6; }
5406 else
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409 fi
5410
5411
5412   test -n "$ac_ct_AR" && break
5413 done
5414
5415   if test "x$ac_ct_AR" = x; then
5416     AR="false"
5417   else
5418     case $cross_compiling:$ac_tool_warned in
5419 yes:)
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5422 ac_tool_warned=yes ;;
5423 esac
5424     AR=$ac_ct_AR
5425   fi
5426 fi
5427
5428 : ${AR=ar}
5429 : ${AR_FLAGS=cru}
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5442 $as_echo_n "checking for archiver @FILE support... " >&6; }
5443 if ${lt_cv_ar_at_file+:} false; then :
5444   $as_echo_n "(cached) " >&6
5445 else
5446   lt_cv_ar_at_file=no
5447    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h.  */
5449
5450 int
5451 main ()
5452 {
5453
5454   ;
5455   return 0;
5456 }
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"; then :
5459   echo conftest.$ac_objext > conftest.lst
5460       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5461       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5462   (eval $lt_ar_try) 2>&5
5463   ac_status=$?
5464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5465   test $ac_status = 0; }
5466       if test "$ac_status" -eq 0; then
5467         # Ensure the archiver fails upon bogus file names.
5468         rm -f conftest.$ac_objext libconftest.a
5469         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5470   (eval $lt_ar_try) 2>&5
5471   ac_status=$?
5472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473   test $ac_status = 0; }
5474         if test "$ac_status" -ne 0; then
5475           lt_cv_ar_at_file=@
5476         fi
5477       fi
5478       rm -f conftest.* libconftest.a
5479
5480 fi
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5485 $as_echo "$lt_cv_ar_at_file" >&6; }
5486
5487 if test "x$lt_cv_ar_at_file" = xno; then
5488   archiver_list_spec=
5489 else
5490   archiver_list_spec=$lt_cv_ar_at_file
5491 fi
5492
5493
5494
5495
5496
5497
5498
5499 if test -n "$ac_tool_prefix"; then
5500   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5501 set dummy ${ac_tool_prefix}strip; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_STRIP+:} false; then :
5505   $as_echo_n "(cached) " >&6
5506 else
5507   if test -n "$STRIP"; then
5508   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513   IFS=$as_save_IFS
5514   test -z "$as_dir" && as_dir=.
5515     for ac_exec_ext in '' $ac_executable_extensions; do
5516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519     break 2
5520   fi
5521 done
5522   done
5523 IFS=$as_save_IFS
5524
5525 fi
5526 fi
5527 STRIP=$ac_cv_prog_STRIP
5528 if test -n "$STRIP"; then
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5530 $as_echo "$STRIP" >&6; }
5531 else
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5534 fi
5535
5536
5537 fi
5538 if test -z "$ac_cv_prog_STRIP"; then
5539   ac_ct_STRIP=$STRIP
5540   # Extract the first word of "strip", so it can be a program name with args.
5541 set dummy strip; ac_word=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543 $as_echo_n "checking for $ac_word... " >&6; }
5544 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5545   $as_echo_n "(cached) " >&6
5546 else
5547   if test -n "$ac_ct_STRIP"; then
5548   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5552 do
5553   IFS=$as_save_IFS
5554   test -z "$as_dir" && as_dir=.
5555     for ac_exec_ext in '' $ac_executable_extensions; do
5556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5557     ac_cv_prog_ac_ct_STRIP="strip"
5558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559     break 2
5560   fi
5561 done
5562   done
5563 IFS=$as_save_IFS
5564
5565 fi
5566 fi
5567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5568 if test -n "$ac_ct_STRIP"; then
5569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5570 $as_echo "$ac_ct_STRIP" >&6; }
5571 else
5572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5574 fi
5575
5576   if test "x$ac_ct_STRIP" = x; then
5577     STRIP=":"
5578   else
5579     case $cross_compiling:$ac_tool_warned in
5580 yes:)
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5583 ac_tool_warned=yes ;;
5584 esac
5585     STRIP=$ac_ct_STRIP
5586   fi
5587 else
5588   STRIP="$ac_cv_prog_STRIP"
5589 fi
5590
5591 test -z "$STRIP" && STRIP=:
5592
5593
5594
5595
5596
5597
5598 if test -n "$ac_tool_prefix"; then
5599   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5600 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_RANLIB+:} false; then :
5604   $as_echo_n "(cached) " >&6
5605 else
5606   if test -n "$RANLIB"; then
5607   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612   IFS=$as_save_IFS
5613   test -z "$as_dir" && as_dir=.
5614     for ac_exec_ext in '' $ac_executable_extensions; do
5615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618     break 2
5619   fi
5620 done
5621   done
5622 IFS=$as_save_IFS
5623
5624 fi
5625 fi
5626 RANLIB=$ac_cv_prog_RANLIB
5627 if test -n "$RANLIB"; then
5628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5629 $as_echo "$RANLIB" >&6; }
5630 else
5631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5633 fi
5634
5635
5636 fi
5637 if test -z "$ac_cv_prog_RANLIB"; then
5638   ac_ct_RANLIB=$RANLIB
5639   # Extract the first word of "ranlib", so it can be a program name with args.
5640 set dummy ranlib; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5644   $as_echo_n "(cached) " >&6
5645 else
5646   if test -n "$ac_ct_RANLIB"; then
5647   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5648 else
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5651 do
5652   IFS=$as_save_IFS
5653   test -z "$as_dir" && as_dir=.
5654     for ac_exec_ext in '' $ac_executable_extensions; do
5655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5656     ac_cv_prog_ac_ct_RANLIB="ranlib"
5657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658     break 2
5659   fi
5660 done
5661   done
5662 IFS=$as_save_IFS
5663
5664 fi
5665 fi
5666 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5667 if test -n "$ac_ct_RANLIB"; then
5668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5669 $as_echo "$ac_ct_RANLIB" >&6; }
5670 else
5671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5673 fi
5674
5675   if test "x$ac_ct_RANLIB" = x; then
5676     RANLIB=":"
5677   else
5678     case $cross_compiling:$ac_tool_warned in
5679 yes:)
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682 ac_tool_warned=yes ;;
5683 esac
5684     RANLIB=$ac_ct_RANLIB
5685   fi
5686 else
5687   RANLIB="$ac_cv_prog_RANLIB"
5688 fi
5689
5690 test -z "$RANLIB" && RANLIB=:
5691
5692
5693
5694
5695
5696
5697 # Determine commands to create old-style static archives.
5698 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5699 old_postinstall_cmds='chmod 644 $oldlib'
5700 old_postuninstall_cmds=
5701
5702 if test -n "$RANLIB"; then
5703   case $host_os in
5704   openbsd*)
5705     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5706     ;;
5707   *)
5708     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5709     ;;
5710   esac
5711   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5712 fi
5713
5714 case $host_os in
5715   darwin*)
5716     lock_old_archive_extraction=yes ;;
5717   *)
5718     lock_old_archive_extraction=no ;;
5719 esac
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759 # If no C compiler was specified, use CC.
5760 LTCC=${LTCC-"$CC"}
5761
5762 # If no C compiler flags were specified, use CFLAGS.
5763 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5764
5765 # Allow CC to be a program name with arguments.
5766 compiler=$CC
5767
5768
5769 # Check for command to grab the raw symbol name followed by C symbol from nm.
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5771 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5772 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5773   $as_echo_n "(cached) " >&6
5774 else
5775
5776 # These are sane defaults that work on at least a few old systems.
5777 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5778
5779 # Character class describing NM global symbol codes.
5780 symcode='[BCDEGRST]'
5781
5782 # Regexp to match symbols that can be accessed directly from C.
5783 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5784
5785 # Define system-specific variables.
5786 case $host_os in
5787 aix*)
5788   symcode='[BCDT]'
5789   ;;
5790 cygwin* | mingw* | pw32* | cegcc*)
5791   symcode='[ABCDGISTW]'
5792   ;;
5793 hpux*)
5794   if test "$host_cpu" = ia64; then
5795     symcode='[ABCDEGRST]'
5796   fi
5797   ;;
5798 irix* | nonstopux*)
5799   symcode='[BCDEGRST]'
5800   ;;
5801 osf*)
5802   symcode='[BCDEGQRST]'
5803   ;;
5804 solaris*)
5805   symcode='[BDRT]'
5806   ;;
5807 sco3.2v5*)
5808   symcode='[DT]'
5809   ;;
5810 sysv4.2uw2*)
5811   symcode='[DT]'
5812   ;;
5813 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5814   symcode='[ABDT]'
5815   ;;
5816 sysv4)
5817   symcode='[DFNSTU]'
5818   ;;
5819 esac
5820
5821 # If we're using GNU nm, then use its standard symbol codes.
5822 case `$NM -V 2>&1` in
5823 *GNU* | *'with BFD'*)
5824   symcode='[ABCDGIRSTW]' ;;
5825 esac
5826
5827 # Transform an extracted symbol line into a proper C declaration.
5828 # Some systems (esp. on ia64) link data and code symbols differently,
5829 # so use this general approach.
5830 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5831
5832 # Transform an extracted symbol line into symbol name and symbol address
5833 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5834 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'"
5835
5836 # Handle CRLF in mingw tool chain
5837 opt_cr=
5838 case $build_os in
5839 mingw*)
5840   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5841   ;;
5842 esac
5843
5844 # Try without a prefix underscore, then with it.
5845 for ac_symprfx in "" "_"; do
5846
5847   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5848   symxfrm="\\1 $ac_symprfx\\2 \\2"
5849
5850   # Write the raw and C identifiers.
5851   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5852     # Fake it for dumpbin and say T for any non-static function
5853     # and D for any global variable.
5854     # Also find C++ and __fastcall symbols from MSVC++,
5855     # which start with @ or ?.
5856     lt_cv_sys_global_symbol_pipe="$AWK '"\
5857 "     {last_section=section; section=\$ 3};"\
5858 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5859 "     \$ 0!~/External *\|/{next};"\
5860 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5861 "     {if(hide[section]) next};"\
5862 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5863 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5864 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5865 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5866 "     ' prfx=^$ac_symprfx"
5867   else
5868     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5869   fi
5870   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5871
5872   # Check to see that the pipe works correctly.
5873   pipe_works=no
5874
5875   rm -f conftest*
5876   cat > conftest.$ac_ext <<_LT_EOF
5877 #ifdef __cplusplus
5878 extern "C" {
5879 #endif
5880 char nm_test_var;
5881 void nm_test_func(void);
5882 void nm_test_func(void){}
5883 #ifdef __cplusplus
5884 }
5885 #endif
5886 int main(){nm_test_var='a';nm_test_func();return(0);}
5887 _LT_EOF
5888
5889   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5890   (eval $ac_compile) 2>&5
5891   ac_status=$?
5892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5893   test $ac_status = 0; }; then
5894     # Now try to grab the symbols.
5895     nlist=conftest.nm
5896     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5897   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5898   ac_status=$?
5899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5900   test $ac_status = 0; } && test -s "$nlist"; then
5901       # Try sorting and uniquifying the output.
5902       if sort "$nlist" | uniq > "$nlist"T; then
5903         mv -f "$nlist"T "$nlist"
5904       else
5905         rm -f "$nlist"T
5906       fi
5907
5908       # Make sure that we snagged all the symbols we need.
5909       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5910         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5911           cat <<_LT_EOF > conftest.$ac_ext
5912 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5913 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5914 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5915    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5916 # define LT_DLSYM_CONST
5917 #elif defined(__osf__)
5918 /* This system does not cope well with relocations in const data.  */
5919 # define LT_DLSYM_CONST
5920 #else
5921 # define LT_DLSYM_CONST const
5922 #endif
5923
5924 #ifdef __cplusplus
5925 extern "C" {
5926 #endif
5927
5928 _LT_EOF
5929           # Now generate the symbol file.
5930           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5931
5932           cat <<_LT_EOF >> conftest.$ac_ext
5933
5934 /* The mapping between symbol names and symbols.  */
5935 LT_DLSYM_CONST struct {
5936   const char *name;
5937   void       *address;
5938 }
5939 lt__PROGRAM__LTX_preloaded_symbols[] =
5940 {
5941   { "@PROGRAM@", (void *) 0 },
5942 _LT_EOF
5943           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5944           cat <<\_LT_EOF >> conftest.$ac_ext
5945   {0, (void *) 0}
5946 };
5947
5948 /* This works around a problem in FreeBSD linker */
5949 #ifdef FREEBSD_WORKAROUND
5950 static const void *lt_preloaded_setup() {
5951   return lt__PROGRAM__LTX_preloaded_symbols;
5952 }
5953 #endif
5954
5955 #ifdef __cplusplus
5956 }
5957 #endif
5958 _LT_EOF
5959           # Now try linking the two files.
5960           mv conftest.$ac_objext conftstm.$ac_objext
5961           lt_globsym_save_LIBS=$LIBS
5962           lt_globsym_save_CFLAGS=$CFLAGS
5963           LIBS="conftstm.$ac_objext"
5964           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5965           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5966   (eval $ac_link) 2>&5
5967   ac_status=$?
5968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5969   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5970             pipe_works=yes
5971           fi
5972           LIBS=$lt_globsym_save_LIBS
5973           CFLAGS=$lt_globsym_save_CFLAGS
5974         else
5975           echo "cannot find nm_test_func in $nlist" >&5
5976         fi
5977       else
5978         echo "cannot find nm_test_var in $nlist" >&5
5979       fi
5980     else
5981       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5982     fi
5983   else
5984     echo "$progname: failed program was:" >&5
5985     cat conftest.$ac_ext >&5
5986   fi
5987   rm -rf conftest* conftst*
5988
5989   # Do not use the global_symbol_pipe unless it works.
5990   if test "$pipe_works" = yes; then
5991     break
5992   else
5993     lt_cv_sys_global_symbol_pipe=
5994   fi
5995 done
5996
5997 fi
5998
5999 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6000   lt_cv_sys_global_symbol_to_cdecl=
6001 fi
6002 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6004 $as_echo "failed" >&6; }
6005 else
6006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6007 $as_echo "ok" >&6; }
6008 fi
6009
6010 # Response file support.
6011 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6012   nm_file_list_spec='@'
6013 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6014   nm_file_list_spec='@'
6015 fi
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6044 $as_echo_n "checking for sysroot... " >&6; }
6045
6046 # Check whether --with-sysroot was given.
6047 if test "${with_sysroot+set}" = set; then :
6048   withval=$with_sysroot;
6049 else
6050   with_sysroot=no
6051 fi
6052
6053
6054 lt_sysroot=
6055 case ${with_sysroot} in #(
6056  yes)
6057    if test "$GCC" = yes; then
6058      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6059    fi
6060    ;; #(
6061  /*)
6062    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6063    ;; #(
6064  no|'')
6065    ;; #(
6066  *)
6067    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6068 $as_echo "${with_sysroot}" >&6; }
6069    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6070    ;;
6071 esac
6072
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6074 $as_echo "${lt_sysroot:-no}" >&6; }
6075
6076
6077
6078
6079
6080 # Check whether --enable-libtool-lock was given.
6081 if test "${enable_libtool_lock+set}" = set; then :
6082   enableval=$enable_libtool_lock;
6083 fi
6084
6085 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6086
6087 # Some flags need to be propagated to the compiler or linker for good
6088 # libtool support.
6089 case $host in
6090 ia64-*-hpux*)
6091   # Find out which ABI we are using.
6092   echo 'int i;' > conftest.$ac_ext
6093   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6094   (eval $ac_compile) 2>&5
6095   ac_status=$?
6096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6097   test $ac_status = 0; }; then
6098     case `/usr/bin/file conftest.$ac_objext` in
6099       *ELF-32*)
6100         HPUX_IA64_MODE="32"
6101         ;;
6102       *ELF-64*)
6103         HPUX_IA64_MODE="64"
6104         ;;
6105     esac
6106   fi
6107   rm -rf conftest*
6108   ;;
6109 *-*-irix6*)
6110   # Find out which ABI we are using.
6111   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6112   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6113   (eval $ac_compile) 2>&5
6114   ac_status=$?
6115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116   test $ac_status = 0; }; then
6117     if test "$lt_cv_prog_gnu_ld" = yes; then
6118       case `/usr/bin/file conftest.$ac_objext` in
6119         *32-bit*)
6120           LD="${LD-ld} -melf32bsmip"
6121           ;;
6122         *N32*)
6123           LD="${LD-ld} -melf32bmipn32"
6124           ;;
6125         *64-bit*)
6126           LD="${LD-ld} -melf64bmip"
6127         ;;
6128       esac
6129     else
6130       case `/usr/bin/file conftest.$ac_objext` in
6131         *32-bit*)
6132           LD="${LD-ld} -32"
6133           ;;
6134         *N32*)
6135           LD="${LD-ld} -n32"
6136           ;;
6137         *64-bit*)
6138           LD="${LD-ld} -64"
6139           ;;
6140       esac
6141     fi
6142   fi
6143   rm -rf conftest*
6144   ;;
6145
6146 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6147 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6148   # Find out which ABI we are using.
6149   echo 'int i;' > conftest.$ac_ext
6150   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6151   (eval $ac_compile) 2>&5
6152   ac_status=$?
6153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154   test $ac_status = 0; }; then
6155     case `/usr/bin/file conftest.o` in
6156       *32-bit*)
6157         case $host in
6158           x86_64-*kfreebsd*-gnu)
6159             LD="${LD-ld} -m elf_i386_fbsd"
6160             ;;
6161           x86_64-*linux*)
6162             LD="${LD-ld} -m elf_i386"
6163             ;;
6164           ppc64-*linux*|powerpc64-*linux*)
6165             LD="${LD-ld} -m elf32ppclinux"
6166             ;;
6167           s390x-*linux*)
6168             LD="${LD-ld} -m elf_s390"
6169             ;;
6170           sparc64-*linux*)
6171             LD="${LD-ld} -m elf32_sparc"
6172             ;;
6173         esac
6174         ;;
6175       *64-bit*)
6176         case $host in
6177           x86_64-*kfreebsd*-gnu)
6178             LD="${LD-ld} -m elf_x86_64_fbsd"
6179             ;;
6180           x86_64-*linux*)
6181             LD="${LD-ld} -m elf_x86_64"
6182             ;;
6183           ppc*-*linux*|powerpc*-*linux*)
6184             LD="${LD-ld} -m elf64ppc"
6185             ;;
6186           s390*-*linux*|s390*-*tpf*)
6187             LD="${LD-ld} -m elf64_s390"
6188             ;;
6189           sparc*-*linux*)
6190             LD="${LD-ld} -m elf64_sparc"
6191             ;;
6192         esac
6193         ;;
6194     esac
6195   fi
6196   rm -rf conftest*
6197   ;;
6198
6199 *-*-sco3.2v5*)
6200   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6201   SAVE_CFLAGS="$CFLAGS"
6202   CFLAGS="$CFLAGS -belf"
6203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6204 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6205 if ${lt_cv_cc_needs_belf+:} false; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208   ac_ext=c
6209 ac_cpp='$CPP $CPPFLAGS'
6210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6213
6214      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h.  */
6216
6217 int
6218 main ()
6219 {
6220
6221   ;
6222   return 0;
6223 }
6224 _ACEOF
6225 if ac_fn_c_try_link "$LINENO"; then :
6226   lt_cv_cc_needs_belf=yes
6227 else
6228   lt_cv_cc_needs_belf=no
6229 fi
6230 rm -f core conftest.err conftest.$ac_objext \
6231     conftest$ac_exeext conftest.$ac_ext
6232      ac_ext=c
6233 ac_cpp='$CPP $CPPFLAGS'
6234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6237
6238 fi
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6240 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6241   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6242     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6243     CFLAGS="$SAVE_CFLAGS"
6244   fi
6245   ;;
6246 sparc*-*solaris*)
6247   # Find out which ABI we are using.
6248   echo 'int i;' > conftest.$ac_ext
6249   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6250   (eval $ac_compile) 2>&5
6251   ac_status=$?
6252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253   test $ac_status = 0; }; then
6254     case `/usr/bin/file conftest.o` in
6255     *64-bit*)
6256       case $lt_cv_prog_gnu_ld in
6257       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6258       *)
6259         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6260           LD="${LD-ld} -64"
6261         fi
6262         ;;
6263       esac
6264       ;;
6265     esac
6266   fi
6267   rm -rf conftest*
6268   ;;
6269 esac
6270
6271 need_locks="$enable_libtool_lock"
6272
6273 if test -n "$ac_tool_prefix"; then
6274   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6275 set dummy ${ac_tool_prefix}mt; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6279   $as_echo_n "(cached) " >&6
6280 else
6281   if test -n "$MANIFEST_TOOL"; then
6282   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287   IFS=$as_save_IFS
6288   test -z "$as_dir" && as_dir=.
6289     for ac_exec_ext in '' $ac_executable_extensions; do
6290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293     break 2
6294   fi
6295 done
6296   done
6297 IFS=$as_save_IFS
6298
6299 fi
6300 fi
6301 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6302 if test -n "$MANIFEST_TOOL"; then
6303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6304 $as_echo "$MANIFEST_TOOL" >&6; }
6305 else
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6308 fi
6309
6310
6311 fi
6312 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6313   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6314   # Extract the first word of "mt", so it can be a program name with args.
6315 set dummy mt; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6319   $as_echo_n "(cached) " >&6
6320 else
6321   if test -n "$ac_ct_MANIFEST_TOOL"; then
6322   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327   IFS=$as_save_IFS
6328   test -z "$as_dir" && as_dir=.
6329     for ac_exec_ext in '' $ac_executable_extensions; do
6330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333     break 2
6334   fi
6335 done
6336   done
6337 IFS=$as_save_IFS
6338
6339 fi
6340 fi
6341 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6342 if test -n "$ac_ct_MANIFEST_TOOL"; then
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6344 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6345 else
6346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349
6350   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6351     MANIFEST_TOOL=":"
6352   else
6353     case $cross_compiling:$ac_tool_warned in
6354 yes:)
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357 ac_tool_warned=yes ;;
6358 esac
6359     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6360   fi
6361 else
6362   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6363 fi
6364
6365 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6367 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6368 if ${lt_cv_path_mainfest_tool+:} false; then :
6369   $as_echo_n "(cached) " >&6
6370 else
6371   lt_cv_path_mainfest_tool=no
6372   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6373   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6374   cat conftest.err >&5
6375   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6376     lt_cv_path_mainfest_tool=yes
6377   fi
6378   rm -f conftest*
6379 fi
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6381 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6382 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6383   MANIFEST_TOOL=:
6384 fi
6385
6386
6387
6388
6389
6390
6391   case $host_os in
6392     rhapsody* | darwin*)
6393     if test -n "$ac_tool_prefix"; then
6394   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6395 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6399   $as_echo_n "(cached) " >&6
6400 else
6401   if test -n "$DSYMUTIL"; then
6402   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6403 else
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6406 do
6407   IFS=$as_save_IFS
6408   test -z "$as_dir" && as_dir=.
6409     for ac_exec_ext in '' $ac_executable_extensions; do
6410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6413     break 2
6414   fi
6415 done
6416   done
6417 IFS=$as_save_IFS
6418
6419 fi
6420 fi
6421 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6422 if test -n "$DSYMUTIL"; then
6423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6424 $as_echo "$DSYMUTIL" >&6; }
6425 else
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6428 fi
6429
6430
6431 fi
6432 if test -z "$ac_cv_prog_DSYMUTIL"; then
6433   ac_ct_DSYMUTIL=$DSYMUTIL
6434   # Extract the first word of "dsymutil", so it can be a program name with args.
6435 set dummy dsymutil; ac_word=$2
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6439   $as_echo_n "(cached) " >&6
6440 else
6441   if test -n "$ac_ct_DSYMUTIL"; then
6442   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6446 do
6447   IFS=$as_save_IFS
6448   test -z "$as_dir" && as_dir=.
6449     for ac_exec_ext in '' $ac_executable_extensions; do
6450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453     break 2
6454   fi
6455 done
6456   done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6462 if test -n "$ac_ct_DSYMUTIL"; then
6463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6464 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6465 else
6466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6468 fi
6469
6470   if test "x$ac_ct_DSYMUTIL" = x; then
6471     DSYMUTIL=":"
6472   else
6473     case $cross_compiling:$ac_tool_warned in
6474 yes:)
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6478 esac
6479     DSYMUTIL=$ac_ct_DSYMUTIL
6480   fi
6481 else
6482   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6483 fi
6484
6485     if test -n "$ac_tool_prefix"; then
6486   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6487 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_prog_NMEDIT+:} false; then :
6491   $as_echo_n "(cached) " >&6
6492 else
6493   if test -n "$NMEDIT"; then
6494   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499   IFS=$as_save_IFS
6500   test -z "$as_dir" && as_dir=.
6501     for ac_exec_ext in '' $ac_executable_extensions; do
6502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505     break 2
6506   fi
6507 done
6508   done
6509 IFS=$as_save_IFS
6510
6511 fi
6512 fi
6513 NMEDIT=$ac_cv_prog_NMEDIT
6514 if test -n "$NMEDIT"; then
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6516 $as_echo "$NMEDIT" >&6; }
6517 else
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6520 fi
6521
6522
6523 fi
6524 if test -z "$ac_cv_prog_NMEDIT"; then
6525   ac_ct_NMEDIT=$NMEDIT
6526   # Extract the first word of "nmedit", so it can be a program name with args.
6527 set dummy nmedit; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6531   $as_echo_n "(cached) " >&6
6532 else
6533   if test -n "$ac_ct_NMEDIT"; then
6534   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539   IFS=$as_save_IFS
6540   test -z "$as_dir" && as_dir=.
6541     for ac_exec_ext in '' $ac_executable_extensions; do
6542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545     break 2
6546   fi
6547 done
6548   done
6549 IFS=$as_save_IFS
6550
6551 fi
6552 fi
6553 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6554 if test -n "$ac_ct_NMEDIT"; then
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6556 $as_echo "$ac_ct_NMEDIT" >&6; }
6557 else
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6560 fi
6561
6562   if test "x$ac_ct_NMEDIT" = x; then
6563     NMEDIT=":"
6564   else
6565     case $cross_compiling:$ac_tool_warned in
6566 yes:)
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6569 ac_tool_warned=yes ;;
6570 esac
6571     NMEDIT=$ac_ct_NMEDIT
6572   fi
6573 else
6574   NMEDIT="$ac_cv_prog_NMEDIT"
6575 fi
6576
6577     if test -n "$ac_tool_prefix"; then
6578   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6579 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_prog_LIPO+:} false; then :
6583   $as_echo_n "(cached) " >&6
6584 else
6585   if test -n "$LIPO"; then
6586   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6587 else
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6590 do
6591   IFS=$as_save_IFS
6592   test -z "$as_dir" && as_dir=.
6593     for ac_exec_ext in '' $ac_executable_extensions; do
6594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597     break 2
6598   fi
6599 done
6600   done
6601 IFS=$as_save_IFS
6602
6603 fi
6604 fi
6605 LIPO=$ac_cv_prog_LIPO
6606 if test -n "$LIPO"; then
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6608 $as_echo "$LIPO" >&6; }
6609 else
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6612 fi
6613
6614
6615 fi
6616 if test -z "$ac_cv_prog_LIPO"; then
6617   ac_ct_LIPO=$LIPO
6618   # Extract the first word of "lipo", so it can be a program name with args.
6619 set dummy lipo; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6623   $as_echo_n "(cached) " >&6
6624 else
6625   if test -n "$ac_ct_LIPO"; then
6626   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6627 else
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6630 do
6631   IFS=$as_save_IFS
6632   test -z "$as_dir" && as_dir=.
6633     for ac_exec_ext in '' $ac_executable_extensions; do
6634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6635     ac_cv_prog_ac_ct_LIPO="lipo"
6636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637     break 2
6638   fi
6639 done
6640   done
6641 IFS=$as_save_IFS
6642
6643 fi
6644 fi
6645 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6646 if test -n "$ac_ct_LIPO"; then
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6648 $as_echo "$ac_ct_LIPO" >&6; }
6649 else
6650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6652 fi
6653
6654   if test "x$ac_ct_LIPO" = x; then
6655     LIPO=":"
6656   else
6657     case $cross_compiling:$ac_tool_warned in
6658 yes:)
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6661 ac_tool_warned=yes ;;
6662 esac
6663     LIPO=$ac_ct_LIPO
6664   fi
6665 else
6666   LIPO="$ac_cv_prog_LIPO"
6667 fi
6668
6669     if test -n "$ac_tool_prefix"; then
6670   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6671 set dummy ${ac_tool_prefix}otool; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_OTOOL+:} false; then :
6675   $as_echo_n "(cached) " >&6
6676 else
6677   if test -n "$OTOOL"; then
6678   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683   IFS=$as_save_IFS
6684   test -z "$as_dir" && as_dir=.
6685     for ac_exec_ext in '' $ac_executable_extensions; do
6686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689     break 2
6690   fi
6691 done
6692   done
6693 IFS=$as_save_IFS
6694
6695 fi
6696 fi
6697 OTOOL=$ac_cv_prog_OTOOL
6698 if test -n "$OTOOL"; then
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6700 $as_echo "$OTOOL" >&6; }
6701 else
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704 fi
6705
6706
6707 fi
6708 if test -z "$ac_cv_prog_OTOOL"; then
6709   ac_ct_OTOOL=$OTOOL
6710   # Extract the first word of "otool", so it can be a program name with args.
6711 set dummy otool; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6715   $as_echo_n "(cached) " >&6
6716 else
6717   if test -n "$ac_ct_OTOOL"; then
6718   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723   IFS=$as_save_IFS
6724   test -z "$as_dir" && as_dir=.
6725     for ac_exec_ext in '' $ac_executable_extensions; do
6726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6727     ac_cv_prog_ac_ct_OTOOL="otool"
6728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729     break 2
6730   fi
6731 done
6732   done
6733 IFS=$as_save_IFS
6734
6735 fi
6736 fi
6737 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6738 if test -n "$ac_ct_OTOOL"; then
6739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6740 $as_echo "$ac_ct_OTOOL" >&6; }
6741 else
6742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6744 fi
6745
6746   if test "x$ac_ct_OTOOL" = x; then
6747     OTOOL=":"
6748   else
6749     case $cross_compiling:$ac_tool_warned in
6750 yes:)
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753 ac_tool_warned=yes ;;
6754 esac
6755     OTOOL=$ac_ct_OTOOL
6756   fi
6757 else
6758   OTOOL="$ac_cv_prog_OTOOL"
6759 fi
6760
6761     if test -n "$ac_tool_prefix"; then
6762   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6763 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_OTOOL64+:} false; then :
6767   $as_echo_n "(cached) " >&6
6768 else
6769   if test -n "$OTOOL64"; then
6770   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775   IFS=$as_save_IFS
6776   test -z "$as_dir" && as_dir=.
6777     for ac_exec_ext in '' $ac_executable_extensions; do
6778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781     break 2
6782   fi
6783 done
6784   done
6785 IFS=$as_save_IFS
6786
6787 fi
6788 fi
6789 OTOOL64=$ac_cv_prog_OTOOL64
6790 if test -n "$OTOOL64"; then
6791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6792 $as_echo "$OTOOL64" >&6; }
6793 else
6794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6796 fi
6797
6798
6799 fi
6800 if test -z "$ac_cv_prog_OTOOL64"; then
6801   ac_ct_OTOOL64=$OTOOL64
6802   # Extract the first word of "otool64", so it can be a program name with args.
6803 set dummy otool64; ac_word=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6807   $as_echo_n "(cached) " >&6
6808 else
6809   if test -n "$ac_ct_OTOOL64"; then
6810   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
6815   IFS=$as_save_IFS
6816   test -z "$as_dir" && as_dir=.
6817     for ac_exec_ext in '' $ac_executable_extensions; do
6818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6819     ac_cv_prog_ac_ct_OTOOL64="otool64"
6820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821     break 2
6822   fi
6823 done
6824   done
6825 IFS=$as_save_IFS
6826
6827 fi
6828 fi
6829 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6830 if test -n "$ac_ct_OTOOL64"; then
6831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6832 $as_echo "$ac_ct_OTOOL64" >&6; }
6833 else
6834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 $as_echo "no" >&6; }
6836 fi
6837
6838   if test "x$ac_ct_OTOOL64" = x; then
6839     OTOOL64=":"
6840   else
6841     case $cross_compiling:$ac_tool_warned in
6842 yes:)
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6846 esac
6847     OTOOL64=$ac_ct_OTOOL64
6848   fi
6849 else
6850   OTOOL64="$ac_cv_prog_OTOOL64"
6851 fi
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6880 $as_echo_n "checking for -single_module linker flag... " >&6; }
6881 if ${lt_cv_apple_cc_single_mod+:} false; then :
6882   $as_echo_n "(cached) " >&6
6883 else
6884   lt_cv_apple_cc_single_mod=no
6885       if test -z "${LT_MULTI_MODULE}"; then
6886         # By default we will add the -single_module flag. You can override
6887         # by either setting the environment variable LT_MULTI_MODULE
6888         # non-empty at configure time, or by adding -multi_module to the
6889         # link flags.
6890         rm -rf libconftest.dylib*
6891         echo "int foo(void){return 1;}" > conftest.c
6892         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6893 -dynamiclib -Wl,-single_module conftest.c" >&5
6894         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6895           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6896         _lt_result=$?
6897         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6898           lt_cv_apple_cc_single_mod=yes
6899         else
6900           cat conftest.err >&5
6901         fi
6902         rm -rf libconftest.dylib*
6903         rm -f conftest.*
6904       fi
6905 fi
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6907 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6909 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6910 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6911   $as_echo_n "(cached) " >&6
6912 else
6913   lt_cv_ld_exported_symbols_list=no
6914       save_LDFLAGS=$LDFLAGS
6915       echo "_main" > conftest.sym
6916       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6917       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h.  */
6919
6920 int
6921 main ()
6922 {
6923
6924   ;
6925   return 0;
6926 }
6927 _ACEOF
6928 if ac_fn_c_try_link "$LINENO"; then :
6929   lt_cv_ld_exported_symbols_list=yes
6930 else
6931   lt_cv_ld_exported_symbols_list=no
6932 fi
6933 rm -f core conftest.err conftest.$ac_objext \
6934     conftest$ac_exeext conftest.$ac_ext
6935         LDFLAGS="$save_LDFLAGS"
6936
6937 fi
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6939 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6941 $as_echo_n "checking for -force_load linker flag... " >&6; }
6942 if ${lt_cv_ld_force_load+:} false; then :
6943   $as_echo_n "(cached) " >&6
6944 else
6945   lt_cv_ld_force_load=no
6946       cat > conftest.c << _LT_EOF
6947 int forced_loaded() { return 2;}
6948 _LT_EOF
6949       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6950       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6951       echo "$AR cru libconftest.a conftest.o" >&5
6952       $AR cru libconftest.a conftest.o 2>&5
6953       echo "$RANLIB libconftest.a" >&5
6954       $RANLIB libconftest.a 2>&5
6955       cat > conftest.c << _LT_EOF
6956 int main() { return 0;}
6957 _LT_EOF
6958       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6959       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6960       _lt_result=$?
6961       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6962         lt_cv_ld_force_load=yes
6963       else
6964         cat conftest.err >&5
6965       fi
6966         rm -f conftest.err libconftest.a conftest conftest.c
6967         rm -rf conftest.dSYM
6968
6969 fi
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6971 $as_echo "$lt_cv_ld_force_load" >&6; }
6972     case $host_os in
6973     rhapsody* | darwin1.[012])
6974       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6975     darwin1.*)
6976       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6977     darwin*) # darwin 5.x on
6978       # if running on 10.5 or later, the deployment target defaults
6979       # to the OS version, if on x86, and 10.4, the deployment
6980       # target defaults to 10.4. Don't you love it?
6981       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6982         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6983           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6984         10.[012]*)
6985           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6986         10.*)
6987           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6988       esac
6989     ;;
6990   esac
6991     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6992       _lt_dar_single_mod='$single_module'
6993     fi
6994     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6995       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6996     else
6997       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6998     fi
6999     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7000       _lt_dsymutil='~$DSYMUTIL $lib || :'
7001     else
7002       _lt_dsymutil=
7003     fi
7004     ;;
7005   esac
7006
7007 ac_ext=c
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7013 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7014 # On Suns, sometimes $CPP names a directory.
7015 if test -n "$CPP" && test -d "$CPP"; then
7016   CPP=
7017 fi
7018 if test -z "$CPP"; then
7019   if ${ac_cv_prog_CPP+:} false; then :
7020   $as_echo_n "(cached) " >&6
7021 else
7022       # Double quotes because CPP needs to be expanded
7023     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7024     do
7025       ac_preproc_ok=false
7026 for ac_c_preproc_warn_flag in '' yes
7027 do
7028   # Use a header file that comes with gcc, so configuring glibc
7029   # with a fresh cross-compiler works.
7030   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7031   # <limits.h> exists even on freestanding compilers.
7032   # On the NeXT, cc -E runs the code through the compiler's parser,
7033   # not just through cpp. "Syntax error" is here to catch this case.
7034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h.  */
7036 #ifdef __STDC__
7037 # include <limits.h>
7038 #else
7039 # include <assert.h>
7040 #endif
7041                      Syntax error
7042 _ACEOF
7043 if ac_fn_c_try_cpp "$LINENO"; then :
7044
7045 else
7046   # Broken: fails on valid input.
7047 continue
7048 fi
7049 rm -f conftest.err conftest.i conftest.$ac_ext
7050
7051   # OK, works on sane cases.  Now check whether nonexistent headers
7052   # can be detected and how.
7053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h.  */
7055 #include <ac_nonexistent.h>
7056 _ACEOF
7057 if ac_fn_c_try_cpp "$LINENO"; then :
7058   # Broken: success on invalid input.
7059 continue
7060 else
7061   # Passes both tests.
7062 ac_preproc_ok=:
7063 break
7064 fi
7065 rm -f conftest.err conftest.i conftest.$ac_ext
7066
7067 done
7068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7069 rm -f conftest.i conftest.err conftest.$ac_ext
7070 if $ac_preproc_ok; then :
7071   break
7072 fi
7073
7074     done
7075     ac_cv_prog_CPP=$CPP
7076
7077 fi
7078   CPP=$ac_cv_prog_CPP
7079 else
7080   ac_cv_prog_CPP=$CPP
7081 fi
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7083 $as_echo "$CPP" >&6; }
7084 ac_preproc_ok=false
7085 for ac_c_preproc_warn_flag in '' yes
7086 do
7087   # Use a header file that comes with gcc, so configuring glibc
7088   # with a fresh cross-compiler works.
7089   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7090   # <limits.h> exists even on freestanding compilers.
7091   # On the NeXT, cc -E runs the code through the compiler's parser,
7092   # not just through cpp. "Syntax error" is here to catch this case.
7093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h.  */
7095 #ifdef __STDC__
7096 # include <limits.h>
7097 #else
7098 # include <assert.h>
7099 #endif
7100                      Syntax error
7101 _ACEOF
7102 if ac_fn_c_try_cpp "$LINENO"; then :
7103
7104 else
7105   # Broken: fails on valid input.
7106 continue
7107 fi
7108 rm -f conftest.err conftest.i conftest.$ac_ext
7109
7110   # OK, works on sane cases.  Now check whether nonexistent headers
7111   # can be detected and how.
7112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h.  */
7114 #include <ac_nonexistent.h>
7115 _ACEOF
7116 if ac_fn_c_try_cpp "$LINENO"; then :
7117   # Broken: success on invalid input.
7118 continue
7119 else
7120   # Passes both tests.
7121 ac_preproc_ok=:
7122 break
7123 fi
7124 rm -f conftest.err conftest.i conftest.$ac_ext
7125
7126 done
7127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7128 rm -f conftest.i conftest.err conftest.$ac_ext
7129 if $ac_preproc_ok; then :
7130
7131 else
7132   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7134 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7135 See \`config.log' for more details" "$LINENO" 5; }
7136 fi
7137
7138 ac_ext=c
7139 ac_cpp='$CPP $CPPFLAGS'
7140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7143
7144
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7146 $as_echo_n "checking for ANSI C header files... " >&6; }
7147 if ${ac_cv_header_stdc+:} false; then :
7148   $as_echo_n "(cached) " >&6
7149 else
7150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h.  */
7152 #include <stdlib.h>
7153 #include <stdarg.h>
7154 #include <string.h>
7155 #include <float.h>
7156
7157 int
7158 main ()
7159 {
7160
7161   ;
7162   return 0;
7163 }
7164 _ACEOF
7165 if ac_fn_c_try_compile "$LINENO"; then :
7166   ac_cv_header_stdc=yes
7167 else
7168   ac_cv_header_stdc=no
7169 fi
7170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171
7172 if test $ac_cv_header_stdc = yes; then
7173   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h.  */
7176 #include <string.h>
7177
7178 _ACEOF
7179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180   $EGREP "memchr" >/dev/null 2>&1; then :
7181
7182 else
7183   ac_cv_header_stdc=no
7184 fi
7185 rm -f conftest*
7186
7187 fi
7188
7189 if test $ac_cv_header_stdc = yes; then
7190   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h.  */
7193 #include <stdlib.h>
7194
7195 _ACEOF
7196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197   $EGREP "free" >/dev/null 2>&1; then :
7198
7199 else
7200   ac_cv_header_stdc=no
7201 fi
7202 rm -f conftest*
7203
7204 fi
7205
7206 if test $ac_cv_header_stdc = yes; then
7207   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7208   if test "$cross_compiling" = yes; then :
7209   :
7210 else
7211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h.  */
7213 #include <ctype.h>
7214 #include <stdlib.h>
7215 #if ((' ' & 0x0FF) == 0x020)
7216 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7217 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7218 #else
7219 # define ISLOWER(c) \
7220                    (('a' <= (c) && (c) <= 'i') \
7221                      || ('j' <= (c) && (c) <= 'r') \
7222                      || ('s' <= (c) && (c) <= 'z'))
7223 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7224 #endif
7225
7226 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7227 int
7228 main ()
7229 {
7230   int i;
7231   for (i = 0; i < 256; i++)
7232     if (XOR (islower (i), ISLOWER (i))
7233         || toupper (i) != TOUPPER (i))
7234       return 2;
7235   return 0;
7236 }
7237 _ACEOF
7238 if ac_fn_c_try_run "$LINENO"; then :
7239
7240 else
7241   ac_cv_header_stdc=no
7242 fi
7243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7244   conftest.$ac_objext conftest.beam conftest.$ac_ext
7245 fi
7246
7247 fi
7248 fi
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7250 $as_echo "$ac_cv_header_stdc" >&6; }
7251 if test $ac_cv_header_stdc = yes; then
7252
7253 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7254
7255 fi
7256
7257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7258 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7259                   inttypes.h stdint.h unistd.h
7260 do :
7261   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7262 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7263 "
7264 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7265   cat >>confdefs.h <<_ACEOF
7266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7267 _ACEOF
7268
7269 fi
7270
7271 done
7272
7273
7274 for ac_header in dlfcn.h
7275 do :
7276   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7277 "
7278 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7279   cat >>confdefs.h <<_ACEOF
7280 #define HAVE_DLFCN_H 1
7281 _ACEOF
7282
7283 fi
7284
7285 done
7286
7287
7288
7289
7290
7291 # Set options
7292 # Check whether --enable-shared was given.
7293 if test "${enable_shared+set}" = set; then :
7294   enableval=$enable_shared; p=${PACKAGE-default}
7295     case $enableval in
7296     yes) enable_shared=yes ;;
7297     no) enable_shared=no ;;
7298     *)
7299       enable_shared=no
7300       # Look at the argument we got.  We use all the common list separators.
7301       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7302       for pkg in $enableval; do
7303         IFS="$lt_save_ifs"
7304         if test "X$pkg" = "X$p"; then
7305           enable_shared=yes
7306         fi
7307       done
7308       IFS="$lt_save_ifs"
7309       ;;
7310     esac
7311 else
7312   enable_shared=yes
7313 fi
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324         enable_dlopen=no
7325
7326
7327   enable_win32_dll=no
7328
7329
7330
7331   # Check whether --enable-static was given.
7332 if test "${enable_static+set}" = set; then :
7333   enableval=$enable_static; p=${PACKAGE-default}
7334     case $enableval in
7335     yes) enable_static=yes ;;
7336     no) enable_static=no ;;
7337     *)
7338      enable_static=no
7339       # Look at the argument we got.  We use all the common list separators.
7340       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7341       for pkg in $enableval; do
7342         IFS="$lt_save_ifs"
7343         if test "X$pkg" = "X$p"; then
7344           enable_static=yes
7345         fi
7346       done
7347       IFS="$lt_save_ifs"
7348       ;;
7349     esac
7350 else
7351   enable_static=yes
7352 fi
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363 # Check whether --with-pic was given.
7364 if test "${with_pic+set}" = set; then :
7365   withval=$with_pic; pic_mode="$withval"
7366 else
7367   pic_mode=default
7368 fi
7369
7370
7371 test -z "$pic_mode" && pic_mode=default
7372
7373
7374
7375
7376
7377
7378
7379   # Check whether --enable-fast-install was given.
7380 if test "${enable_fast_install+set}" = set; then :
7381   enableval=$enable_fast_install; p=${PACKAGE-default}
7382     case $enableval in
7383     yes) enable_fast_install=yes ;;
7384     no) enable_fast_install=no ;;
7385     *)
7386       enable_fast_install=no
7387       # Look at the argument we got.  We use all the common list separators.
7388       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7389       for pkg in $enableval; do
7390         IFS="$lt_save_ifs"
7391         if test "X$pkg" = "X$p"; then
7392           enable_fast_install=yes
7393         fi
7394       done
7395       IFS="$lt_save_ifs"
7396       ;;
7397     esac
7398 else
7399   enable_fast_install=yes
7400 fi
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412 # This can be used to rebuild libtool when needed
7413 LIBTOOL_DEPS="$ltmain"
7414
7415 # Always use our own libtool.
7416 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443 test -z "$LN_S" && LN_S="ln -s"
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458 if test -n "${ZSH_VERSION+set}" ; then
7459    setopt NO_GLOB_SUBST
7460 fi
7461
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7463 $as_echo_n "checking for objdir... " >&6; }
7464 if ${lt_cv_objdir+:} false; then :
7465   $as_echo_n "(cached) " >&6
7466 else
7467   rm -f .libs 2>/dev/null
7468 mkdir .libs 2>/dev/null
7469 if test -d .libs; then
7470   lt_cv_objdir=.libs
7471 else
7472   # MS-DOS does not allow filenames that begin with a dot.
7473   lt_cv_objdir=_libs
7474 fi
7475 rmdir .libs 2>/dev/null
7476 fi
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7478 $as_echo "$lt_cv_objdir" >&6; }
7479 objdir=$lt_cv_objdir
7480
7481
7482
7483
7484
7485 cat >>confdefs.h <<_ACEOF
7486 #define LT_OBJDIR "$lt_cv_objdir/"
7487 _ACEOF
7488
7489
7490
7491
7492 case $host_os in
7493 aix3*)
7494   # AIX sometimes has problems with the GCC collect2 program.  For some
7495   # reason, if we set the COLLECT_NAMES environment variable, the problems
7496   # vanish in a puff of smoke.
7497   if test "X${COLLECT_NAMES+set}" != Xset; then
7498     COLLECT_NAMES=
7499     export COLLECT_NAMES
7500   fi
7501   ;;
7502 esac
7503
7504 # Global variables:
7505 ofile=libtool
7506 can_build_shared=yes
7507
7508 # All known linkers require a `.a' archive for static linking (except MSVC,
7509 # which needs '.lib').
7510 libext=a
7511
7512 with_gnu_ld="$lt_cv_prog_gnu_ld"
7513
7514 old_CC="$CC"
7515 old_CFLAGS="$CFLAGS"
7516
7517 # Set sane defaults for various variables
7518 test -z "$CC" && CC=cc
7519 test -z "$LTCC" && LTCC=$CC
7520 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7521 test -z "$LD" && LD=ld
7522 test -z "$ac_objext" && ac_objext=o
7523
7524 for cc_temp in $compiler""; do
7525   case $cc_temp in
7526     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7527     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7528     \-*) ;;
7529     *) break;;
7530   esac
7531 done
7532 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7533
7534
7535 # Only perform the check for file, if the check method requires it
7536 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7537 case $deplibs_check_method in
7538 file_magic*)
7539   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7541 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7542 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7543   $as_echo_n "(cached) " >&6
7544 else
7545   case $MAGIC_CMD in
7546 [\\/*] |  ?:[\\/]*)
7547   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7548   ;;
7549 *)
7550   lt_save_MAGIC_CMD="$MAGIC_CMD"
7551   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7552   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7553   for ac_dir in $ac_dummy; do
7554     IFS="$lt_save_ifs"
7555     test -z "$ac_dir" && ac_dir=.
7556     if test -f $ac_dir/${ac_tool_prefix}file; then
7557       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7558       if test -n "$file_magic_test_file"; then
7559         case $deplibs_check_method in
7560         "file_magic "*)
7561           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7562           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7563           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7564             $EGREP "$file_magic_regex" > /dev/null; then
7565             :
7566           else
7567             cat <<_LT_EOF 1>&2
7568
7569 *** Warning: the command libtool uses to detect shared libraries,
7570 *** $file_magic_cmd, produces output that libtool cannot recognize.
7571 *** The result is that libtool may fail to recognize shared libraries
7572 *** as such.  This will affect the creation of libtool libraries that
7573 *** depend on shared libraries, but programs linked with such libtool
7574 *** libraries will work regardless of this problem.  Nevertheless, you
7575 *** may want to report the problem to your system manager and/or to
7576 *** bug-libtool@gnu.org
7577
7578 _LT_EOF
7579           fi ;;
7580         esac
7581       fi
7582       break
7583     fi
7584   done
7585   IFS="$lt_save_ifs"
7586   MAGIC_CMD="$lt_save_MAGIC_CMD"
7587   ;;
7588 esac
7589 fi
7590
7591 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7592 if test -n "$MAGIC_CMD"; then
7593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7594 $as_echo "$MAGIC_CMD" >&6; }
7595 else
7596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7598 fi
7599
7600
7601
7602
7603
7604 if test -z "$lt_cv_path_MAGIC_CMD"; then
7605   if test -n "$ac_tool_prefix"; then
7606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7607 $as_echo_n "checking for file... " >&6; }
7608 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7609   $as_echo_n "(cached) " >&6
7610 else
7611   case $MAGIC_CMD in
7612 [\\/*] |  ?:[\\/]*)
7613   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7614   ;;
7615 *)
7616   lt_save_MAGIC_CMD="$MAGIC_CMD"
7617   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7618   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7619   for ac_dir in $ac_dummy; do
7620     IFS="$lt_save_ifs"
7621     test -z "$ac_dir" && ac_dir=.
7622     if test -f $ac_dir/file; then
7623       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7624       if test -n "$file_magic_test_file"; then
7625         case $deplibs_check_method in
7626         "file_magic "*)
7627           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7628           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7629           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7630             $EGREP "$file_magic_regex" > /dev/null; then
7631             :
7632           else
7633             cat <<_LT_EOF 1>&2
7634
7635 *** Warning: the command libtool uses to detect shared libraries,
7636 *** $file_magic_cmd, produces output that libtool cannot recognize.
7637 *** The result is that libtool may fail to recognize shared libraries
7638 *** as such.  This will affect the creation of libtool libraries that
7639 *** depend on shared libraries, but programs linked with such libtool
7640 *** libraries will work regardless of this problem.  Nevertheless, you
7641 *** may want to report the problem to your system manager and/or to
7642 *** bug-libtool@gnu.org
7643
7644 _LT_EOF
7645           fi ;;
7646         esac
7647       fi
7648       break
7649     fi
7650   done
7651   IFS="$lt_save_ifs"
7652   MAGIC_CMD="$lt_save_MAGIC_CMD"
7653   ;;
7654 esac
7655 fi
7656
7657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7658 if test -n "$MAGIC_CMD"; then
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7660 $as_echo "$MAGIC_CMD" >&6; }
7661 else
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7664 fi
7665
7666
7667   else
7668     MAGIC_CMD=:
7669   fi
7670 fi
7671
7672   fi
7673   ;;
7674 esac
7675
7676 # Use C for the default configuration in the libtool script
7677
7678 lt_save_CC="$CC"
7679 ac_ext=c
7680 ac_cpp='$CPP $CPPFLAGS'
7681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7684
7685
7686 # Source file extension for C test sources.
7687 ac_ext=c
7688
7689 # Object file extension for compiled C test sources.
7690 objext=o
7691 objext=$objext
7692
7693 # Code to be used in simple compile tests
7694 lt_simple_compile_test_code="int some_variable = 0;"
7695
7696 # Code to be used in simple link tests
7697 lt_simple_link_test_code='int main(){return(0);}'
7698
7699
7700
7701
7702
7703
7704
7705 # If no C compiler was specified, use CC.
7706 LTCC=${LTCC-"$CC"}
7707
7708 # If no C compiler flags were specified, use CFLAGS.
7709 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7710
7711 # Allow CC to be a program name with arguments.
7712 compiler=$CC
7713
7714 # Save the default compiler, since it gets overwritten when the other
7715 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7716 compiler_DEFAULT=$CC
7717
7718 # save warnings/boilerplate of simple test code
7719 ac_outfile=conftest.$ac_objext
7720 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7721 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7722 _lt_compiler_boilerplate=`cat conftest.err`
7723 $RM conftest*
7724
7725 ac_outfile=conftest.$ac_objext
7726 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7727 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7728 _lt_linker_boilerplate=`cat conftest.err`
7729 $RM -r conftest*
7730
7731
7732 if test -n "$compiler"; then
7733
7734 lt_prog_compiler_no_builtin_flag=
7735
7736 if test "$GCC" = yes; then
7737   case $cc_basename in
7738   nvcc*)
7739     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7740   *)
7741     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7742   esac
7743
7744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7745 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7746 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7747   $as_echo_n "(cached) " >&6
7748 else
7749   lt_cv_prog_compiler_rtti_exceptions=no
7750    ac_outfile=conftest.$ac_objext
7751    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7752    lt_compiler_flag="-fno-rtti -fno-exceptions"
7753    # Insert the option either (1) after the last *FLAGS variable, or
7754    # (2) before a word containing "conftest.", or (3) at the end.
7755    # Note that $ac_compile itself does not contain backslashes and begins
7756    # with a dollar sign (not a hyphen), so the echo should work correctly.
7757    # The option is referenced via a variable to avoid confusing sed.
7758    lt_compile=`echo "$ac_compile" | $SED \
7759    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7760    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7761    -e 's:$: $lt_compiler_flag:'`
7762    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7763    (eval "$lt_compile" 2>conftest.err)
7764    ac_status=$?
7765    cat conftest.err >&5
7766    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767    if (exit $ac_status) && test -s "$ac_outfile"; then
7768      # The compiler can only warn and ignore the option if not recognized
7769      # So say no if there are warnings other than the usual output.
7770      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7771      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7772      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7773        lt_cv_prog_compiler_rtti_exceptions=yes
7774      fi
7775    fi
7776    $RM conftest*
7777
7778 fi
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7780 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7781
7782 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7783     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7784 else
7785     :
7786 fi
7787
7788 fi
7789
7790
7791
7792
7793
7794
7795   lt_prog_compiler_wl=
7796 lt_prog_compiler_pic=
7797 lt_prog_compiler_static=
7798
7799
7800   if test "$GCC" = yes; then
7801     lt_prog_compiler_wl='-Wl,'
7802     lt_prog_compiler_static='-static'
7803
7804     case $host_os in
7805       aix*)
7806       # All AIX code is PIC.
7807       if test "$host_cpu" = ia64; then
7808         # AIX 5 now supports IA64 processor
7809         lt_prog_compiler_static='-Bstatic'
7810       fi
7811       ;;
7812
7813     amigaos*)
7814       case $host_cpu in
7815       powerpc)
7816             # see comment about AmigaOS4 .so support
7817             lt_prog_compiler_pic='-fPIC'
7818         ;;
7819       m68k)
7820             # FIXME: we need at least 68020 code to build shared libraries, but
7821             # adding the `-m68020' flag to GCC prevents building anything better,
7822             # like `-m68040'.
7823             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7824         ;;
7825       esac
7826       ;;
7827
7828     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7829       # PIC is the default for these OSes.
7830       ;;
7831
7832     mingw* | cygwin* | pw32* | os2* | cegcc*)
7833       # This hack is so that the source file can tell whether it is being
7834       # built for inclusion in a dll (and should export symbols for example).
7835       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7836       # (--disable-auto-import) libraries
7837       lt_prog_compiler_pic='-DDLL_EXPORT'
7838       ;;
7839
7840     darwin* | rhapsody*)
7841       # PIC is the default on this platform
7842       # Common symbols not allowed in MH_DYLIB files
7843       lt_prog_compiler_pic='-fno-common'
7844       ;;
7845
7846     haiku*)
7847       # PIC is the default for Haiku.
7848       # The "-static" flag exists, but is broken.
7849       lt_prog_compiler_static=
7850       ;;
7851
7852     hpux*)
7853       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7854       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7855       # sets the default TLS model and affects inlining.
7856       case $host_cpu in
7857       hppa*64*)
7858         # +Z the default
7859         ;;
7860       *)
7861         lt_prog_compiler_pic='-fPIC'
7862         ;;
7863       esac
7864       ;;
7865
7866     interix[3-9]*)
7867       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7868       # Instead, we relocate shared libraries at runtime.
7869       ;;
7870
7871     msdosdjgpp*)
7872       # Just because we use GCC doesn't mean we suddenly get shared libraries
7873       # on systems that don't support them.
7874       lt_prog_compiler_can_build_shared=no
7875       enable_shared=no
7876       ;;
7877
7878     *nto* | *qnx*)
7879       # QNX uses GNU C++, but need to define -shared option too, otherwise
7880       # it will coredump.
7881       lt_prog_compiler_pic='-fPIC -shared'
7882       ;;
7883
7884     sysv4*MP*)
7885       if test -d /usr/nec; then
7886         lt_prog_compiler_pic=-Kconform_pic
7887       fi
7888       ;;
7889
7890     *)
7891       lt_prog_compiler_pic='-fPIC'
7892       ;;
7893     esac
7894
7895     case $cc_basename in
7896     nvcc*) # Cuda Compiler Driver 2.2
7897       lt_prog_compiler_wl='-Xlinker '
7898       lt_prog_compiler_pic='-Xcompiler -fPIC'
7899       ;;
7900     esac
7901   else
7902     # PORTME Check for flag to pass linker flags through the system compiler.
7903     case $host_os in
7904     aix*)
7905       lt_prog_compiler_wl='-Wl,'
7906       if test "$host_cpu" = ia64; then
7907         # AIX 5 now supports IA64 processor
7908         lt_prog_compiler_static='-Bstatic'
7909       else
7910         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7911       fi
7912       ;;
7913
7914     mingw* | cygwin* | pw32* | os2* | cegcc*)
7915       # This hack is so that the source file can tell whether it is being
7916       # built for inclusion in a dll (and should export symbols for example).
7917       lt_prog_compiler_pic='-DDLL_EXPORT'
7918       ;;
7919
7920     hpux9* | hpux10* | hpux11*)
7921       lt_prog_compiler_wl='-Wl,'
7922       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7923       # not for PA HP-UX.
7924       case $host_cpu in
7925       hppa*64*|ia64*)
7926         # +Z the default
7927         ;;
7928       *)
7929         lt_prog_compiler_pic='+Z'
7930         ;;
7931       esac
7932       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7933       lt_prog_compiler_static='${wl}-a ${wl}archive'
7934       ;;
7935
7936     irix5* | irix6* | nonstopux*)
7937       lt_prog_compiler_wl='-Wl,'
7938       # PIC (with -KPIC) is the default.
7939       lt_prog_compiler_static='-non_shared'
7940       ;;
7941
7942     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7943       case $cc_basename in
7944       # old Intel for x86_64 which still supported -KPIC.
7945       ecc*)
7946         lt_prog_compiler_wl='-Wl,'
7947         lt_prog_compiler_pic='-KPIC'
7948         lt_prog_compiler_static='-static'
7949         ;;
7950       # icc used to be incompatible with GCC.
7951       # ICC 10 doesn't accept -KPIC any more.
7952       icc* | ifort*)
7953         lt_prog_compiler_wl='-Wl,'
7954         lt_prog_compiler_pic='-fPIC'
7955         lt_prog_compiler_static='-static'
7956         ;;
7957       # Lahey Fortran 8.1.
7958       lf95*)
7959         lt_prog_compiler_wl='-Wl,'
7960         lt_prog_compiler_pic='--shared'
7961         lt_prog_compiler_static='--static'
7962         ;;
7963       nagfor*)
7964         # NAG Fortran compiler
7965         lt_prog_compiler_wl='-Wl,-Wl,,'
7966         lt_prog_compiler_pic='-PIC'
7967         lt_prog_compiler_static='-Bstatic'
7968         ;;
7969       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7970         # Portland Group compilers (*not* the Pentium gcc compiler,
7971         # which looks to be a dead project)
7972         lt_prog_compiler_wl='-Wl,'
7973         lt_prog_compiler_pic='-fpic'
7974         lt_prog_compiler_static='-Bstatic'
7975         ;;
7976       ccc*)
7977         lt_prog_compiler_wl='-Wl,'
7978         # All Alpha code is PIC.
7979         lt_prog_compiler_static='-non_shared'
7980         ;;
7981       xl* | bgxl* | bgf* | mpixl*)
7982         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7983         lt_prog_compiler_wl='-Wl,'
7984         lt_prog_compiler_pic='-qpic'
7985         lt_prog_compiler_static='-qstaticlink'
7986         ;;
7987       *)
7988         case `$CC -V 2>&1 | sed 5q` in
7989         *Sun\ F* | *Sun*Fortran*)
7990           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7991           lt_prog_compiler_pic='-KPIC'
7992           lt_prog_compiler_static='-Bstatic'
7993           lt_prog_compiler_wl=''
7994           ;;
7995         *Sun\ C*)
7996           # Sun C 5.9
7997           lt_prog_compiler_pic='-KPIC'
7998           lt_prog_compiler_static='-Bstatic'
7999           lt_prog_compiler_wl='-Wl,'
8000           ;;
8001         esac
8002         ;;
8003       esac
8004       ;;
8005
8006     newsos6)
8007       lt_prog_compiler_pic='-KPIC'
8008       lt_prog_compiler_static='-Bstatic'
8009       ;;
8010
8011     *nto* | *qnx*)
8012       # QNX uses GNU C++, but need to define -shared option too, otherwise
8013       # it will coredump.
8014       lt_prog_compiler_pic='-fPIC -shared'
8015       ;;
8016
8017     osf3* | osf4* | osf5*)
8018       lt_prog_compiler_wl='-Wl,'
8019       # All OSF/1 code is PIC.
8020       lt_prog_compiler_static='-non_shared'
8021       ;;
8022
8023     rdos*)
8024       lt_prog_compiler_static='-non_shared'
8025       ;;
8026
8027     solaris*)
8028       lt_prog_compiler_pic='-KPIC'
8029       lt_prog_compiler_static='-Bstatic'
8030       case $cc_basename in
8031       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8032         lt_prog_compiler_wl='-Qoption ld ';;
8033       *)
8034         lt_prog_compiler_wl='-Wl,';;
8035       esac
8036       ;;
8037
8038     sunos4*)
8039       lt_prog_compiler_wl='-Qoption ld '
8040       lt_prog_compiler_pic='-PIC'
8041       lt_prog_compiler_static='-Bstatic'
8042       ;;
8043
8044     sysv4 | sysv4.2uw2* | sysv4.3*)
8045       lt_prog_compiler_wl='-Wl,'
8046       lt_prog_compiler_pic='-KPIC'
8047       lt_prog_compiler_static='-Bstatic'
8048       ;;
8049
8050     sysv4*MP*)
8051       if test -d /usr/nec ;then
8052         lt_prog_compiler_pic='-Kconform_pic'
8053         lt_prog_compiler_static='-Bstatic'
8054       fi
8055       ;;
8056
8057     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8058       lt_prog_compiler_wl='-Wl,'
8059       lt_prog_compiler_pic='-KPIC'
8060       lt_prog_compiler_static='-Bstatic'
8061       ;;
8062
8063     unicos*)
8064       lt_prog_compiler_wl='-Wl,'
8065       lt_prog_compiler_can_build_shared=no
8066       ;;
8067
8068     uts4*)
8069       lt_prog_compiler_pic='-pic'
8070       lt_prog_compiler_static='-Bstatic'
8071       ;;
8072
8073     *)
8074       lt_prog_compiler_can_build_shared=no
8075       ;;
8076     esac
8077   fi
8078
8079 case $host_os in
8080   # For platforms which do not support PIC, -DPIC is meaningless:
8081   *djgpp*)
8082     lt_prog_compiler_pic=
8083     ;;
8084   *)
8085     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8086     ;;
8087 esac
8088
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8090 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8091 if ${lt_cv_prog_compiler_pic+:} false; then :
8092   $as_echo_n "(cached) " >&6
8093 else
8094   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8095 fi
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8097 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8098 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8099
8100 #
8101 # Check to make sure the PIC flag actually works.
8102 #
8103 if test -n "$lt_prog_compiler_pic"; then
8104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8105 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8106 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8107   $as_echo_n "(cached) " >&6
8108 else
8109   lt_cv_prog_compiler_pic_works=no
8110    ac_outfile=conftest.$ac_objext
8111    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8112    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8113    # Insert the option either (1) after the last *FLAGS variable, or
8114    # (2) before a word containing "conftest.", or (3) at the end.
8115    # Note that $ac_compile itself does not contain backslashes and begins
8116    # with a dollar sign (not a hyphen), so the echo should work correctly.
8117    # The option is referenced via a variable to avoid confusing sed.
8118    lt_compile=`echo "$ac_compile" | $SED \
8119    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8120    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8121    -e 's:$: $lt_compiler_flag:'`
8122    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8123    (eval "$lt_compile" 2>conftest.err)
8124    ac_status=$?
8125    cat conftest.err >&5
8126    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127    if (exit $ac_status) && test -s "$ac_outfile"; then
8128      # The compiler can only warn and ignore the option if not recognized
8129      # So say no if there are warnings other than the usual output.
8130      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8131      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8132      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8133        lt_cv_prog_compiler_pic_works=yes
8134      fi
8135    fi
8136    $RM conftest*
8137
8138 fi
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8140 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8141
8142 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8143     case $lt_prog_compiler_pic in
8144      "" | " "*) ;;
8145      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8146      esac
8147 else
8148     lt_prog_compiler_pic=
8149      lt_prog_compiler_can_build_shared=no
8150 fi
8151
8152 fi
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164 #
8165 # Check to make sure the static flag actually works.
8166 #
8167 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8169 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8170 if ${lt_cv_prog_compiler_static_works+:} false; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173   lt_cv_prog_compiler_static_works=no
8174    save_LDFLAGS="$LDFLAGS"
8175    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8176    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8177    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8178      # The linker can only warn and ignore the option if not recognized
8179      # So say no if there are warnings
8180      if test -s conftest.err; then
8181        # Append any errors to the config.log.
8182        cat conftest.err 1>&5
8183        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8184        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8185        if diff conftest.exp conftest.er2 >/dev/null; then
8186          lt_cv_prog_compiler_static_works=yes
8187        fi
8188      else
8189        lt_cv_prog_compiler_static_works=yes
8190      fi
8191    fi
8192    $RM -r conftest*
8193    LDFLAGS="$save_LDFLAGS"
8194
8195 fi
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8197 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8198
8199 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8200     :
8201 else
8202     lt_prog_compiler_static=
8203 fi
8204
8205
8206
8207
8208
8209
8210
8211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8212 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8213 if ${lt_cv_prog_compiler_c_o+:} false; then :
8214   $as_echo_n "(cached) " >&6
8215 else
8216   lt_cv_prog_compiler_c_o=no
8217    $RM -r conftest 2>/dev/null
8218    mkdir conftest
8219    cd conftest
8220    mkdir out
8221    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8222
8223    lt_compiler_flag="-o out/conftest2.$ac_objext"
8224    # Insert the option either (1) after the last *FLAGS variable, or
8225    # (2) before a word containing "conftest.", or (3) at the end.
8226    # Note that $ac_compile itself does not contain backslashes and begins
8227    # with a dollar sign (not a hyphen), so the echo should work correctly.
8228    lt_compile=`echo "$ac_compile" | $SED \
8229    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8230    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8231    -e 's:$: $lt_compiler_flag:'`
8232    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8233    (eval "$lt_compile" 2>out/conftest.err)
8234    ac_status=$?
8235    cat out/conftest.err >&5
8236    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8238    then
8239      # The compiler can only warn and ignore the option if not recognized
8240      # So say no if there are warnings
8241      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8242      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8243      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8244        lt_cv_prog_compiler_c_o=yes
8245      fi
8246    fi
8247    chmod u+w . 2>&5
8248    $RM conftest*
8249    # SGI C++ compiler will create directory out/ii_files/ for
8250    # template instantiation
8251    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8252    $RM out/* && rmdir out
8253    cd ..
8254    $RM -r conftest
8255    $RM conftest*
8256
8257 fi
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8259 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8260
8261
8262
8263
8264
8265
8266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8267 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8268 if ${lt_cv_prog_compiler_c_o+:} false; then :
8269   $as_echo_n "(cached) " >&6
8270 else
8271   lt_cv_prog_compiler_c_o=no
8272    $RM -r conftest 2>/dev/null
8273    mkdir conftest
8274    cd conftest
8275    mkdir out
8276    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8277
8278    lt_compiler_flag="-o out/conftest2.$ac_objext"
8279    # Insert the option either (1) after the last *FLAGS variable, or
8280    # (2) before a word containing "conftest.", or (3) at the end.
8281    # Note that $ac_compile itself does not contain backslashes and begins
8282    # with a dollar sign (not a hyphen), so the echo should work correctly.
8283    lt_compile=`echo "$ac_compile" | $SED \
8284    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8285    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8286    -e 's:$: $lt_compiler_flag:'`
8287    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8288    (eval "$lt_compile" 2>out/conftest.err)
8289    ac_status=$?
8290    cat out/conftest.err >&5
8291    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8293    then
8294      # The compiler can only warn and ignore the option if not recognized
8295      # So say no if there are warnings
8296      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8297      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8298      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8299        lt_cv_prog_compiler_c_o=yes
8300      fi
8301    fi
8302    chmod u+w . 2>&5
8303    $RM conftest*
8304    # SGI C++ compiler will create directory out/ii_files/ for
8305    # template instantiation
8306    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8307    $RM out/* && rmdir out
8308    cd ..
8309    $RM -r conftest
8310    $RM conftest*
8311
8312 fi
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8314 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8315
8316
8317
8318
8319 hard_links="nottested"
8320 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8321   # do not overwrite the value of need_locks provided by the user
8322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8323 $as_echo_n "checking if we can lock with hard links... " >&6; }
8324   hard_links=yes
8325   $RM conftest*
8326   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8327   touch conftest.a
8328   ln conftest.a conftest.b 2>&5 || hard_links=no
8329   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8331 $as_echo "$hard_links" >&6; }
8332   if test "$hard_links" = no; then
8333     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8334 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8335     need_locks=warn
8336   fi
8337 else
8338   need_locks=no
8339 fi
8340
8341
8342
8343
8344
8345
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8347 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8348
8349   runpath_var=
8350   allow_undefined_flag=
8351   always_export_symbols=no
8352   archive_cmds=
8353   archive_expsym_cmds=
8354   compiler_needs_object=no
8355   enable_shared_with_static_runtimes=no
8356   export_dynamic_flag_spec=
8357   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8358   hardcode_automatic=no
8359   hardcode_direct=no
8360   hardcode_direct_absolute=no
8361   hardcode_libdir_flag_spec=
8362   hardcode_libdir_flag_spec_ld=
8363   hardcode_libdir_separator=
8364   hardcode_minus_L=no
8365   hardcode_shlibpath_var=unsupported
8366   inherit_rpath=no
8367   link_all_deplibs=unknown
8368   module_cmds=
8369   module_expsym_cmds=
8370   old_archive_from_new_cmds=
8371   old_archive_from_expsyms_cmds=
8372   thread_safe_flag_spec=
8373   whole_archive_flag_spec=
8374   # include_expsyms should be a list of space-separated symbols to be *always*
8375   # included in the symbol list
8376   include_expsyms=
8377   # exclude_expsyms can be an extended regexp of symbols to exclude
8378   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8379   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8380   # as well as any symbol that contains `d'.
8381   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8382   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8383   # platforms (ab)use it in PIC code, but their linkers get confused if
8384   # the symbol is explicitly referenced.  Since portable code cannot
8385   # rely on this symbol name, it's probably fine to never include it in
8386   # preloaded symbol tables.
8387   # Exclude shared library initialization/finalization symbols.
8388   extract_expsyms_cmds=
8389
8390   case $host_os in
8391   cygwin* | mingw* | pw32* | cegcc*)
8392     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8393     # When not using gcc, we currently assume that we are using
8394     # Microsoft Visual C++.
8395     if test "$GCC" != yes; then
8396       with_gnu_ld=no
8397     fi
8398     ;;
8399   interix*)
8400     # we just hope/assume this is gcc and not c89 (= MSVC++)
8401     with_gnu_ld=yes
8402     ;;
8403   openbsd*)
8404     with_gnu_ld=no
8405     ;;
8406   esac
8407
8408   ld_shlibs=yes
8409
8410   # On some targets, GNU ld is compatible enough with the native linker
8411   # that we're better off using the native interface for both.
8412   lt_use_gnu_ld_interface=no
8413   if test "$with_gnu_ld" = yes; then
8414     case $host_os in
8415       aix*)
8416         # The AIX port of GNU ld has always aspired to compatibility
8417         # with the native linker.  However, as the warning in the GNU ld
8418         # block says, versions before 2.19.5* couldn't really create working
8419         # shared libraries, regardless of the interface used.
8420         case `$LD -v 2>&1` in
8421           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8422           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8423           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8424           *)
8425             lt_use_gnu_ld_interface=yes
8426             ;;
8427         esac
8428         ;;
8429       *)
8430         lt_use_gnu_ld_interface=yes
8431         ;;
8432     esac
8433   fi
8434
8435   if test "$lt_use_gnu_ld_interface" = yes; then
8436     # If archive_cmds runs LD, not CC, wlarc should be empty
8437     wlarc='${wl}'
8438
8439     # Set some defaults for GNU ld with shared library support. These
8440     # are reset later if shared libraries are not supported. Putting them
8441     # here allows them to be overridden if necessary.
8442     runpath_var=LD_RUN_PATH
8443     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8444     export_dynamic_flag_spec='${wl}--export-dynamic'
8445     # ancient GNU ld didn't support --whole-archive et. al.
8446     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8447       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8448     else
8449       whole_archive_flag_spec=
8450     fi
8451     supports_anon_versioning=no
8452     case `$LD -v 2>&1` in
8453       *GNU\ gold*) supports_anon_versioning=yes ;;
8454       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8455       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8456       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8457       *\ 2.11.*) ;; # other 2.11 versions
8458       *) supports_anon_versioning=yes ;;
8459     esac
8460
8461     # See if GNU ld supports shared libraries.
8462     case $host_os in
8463     aix[3-9]*)
8464       # On AIX/PPC, the GNU linker is very broken
8465       if test "$host_cpu" != ia64; then
8466         ld_shlibs=no
8467         cat <<_LT_EOF 1>&2
8468
8469 *** Warning: the GNU linker, at least up to release 2.19, is reported
8470 *** to be unable to reliably create shared libraries on AIX.
8471 *** Therefore, libtool is disabling shared libraries support.  If you
8472 *** really care for shared libraries, you may want to install binutils
8473 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8474 *** You will then need to restart the configuration process.
8475
8476 _LT_EOF
8477       fi
8478       ;;
8479
8480     amigaos*)
8481       case $host_cpu in
8482       powerpc)
8483             # see comment about AmigaOS4 .so support
8484             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8485             archive_expsym_cmds=''
8486         ;;
8487       m68k)
8488             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)'
8489             hardcode_libdir_flag_spec='-L$libdir'
8490             hardcode_minus_L=yes
8491         ;;
8492       esac
8493       ;;
8494
8495     beos*)
8496       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8497         allow_undefined_flag=unsupported
8498         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8499         # support --undefined.  This deserves some investigation.  FIXME
8500         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8501       else
8502         ld_shlibs=no
8503       fi
8504       ;;
8505
8506     cygwin* | mingw* | pw32* | cegcc*)
8507       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8508       # as there is no search path for DLLs.
8509       hardcode_libdir_flag_spec='-L$libdir'
8510       export_dynamic_flag_spec='${wl}--export-all-symbols'
8511       allow_undefined_flag=unsupported
8512       always_export_symbols=no
8513       enable_shared_with_static_runtimes=yes
8514       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'
8515       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8516
8517       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8518         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8519         # If the export-symbols file already is a .def file (1st line
8520         # is EXPORTS), use it as is; otherwise, prepend...
8521         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8522           cp $export_symbols $output_objdir/$soname.def;
8523         else
8524           echo EXPORTS > $output_objdir/$soname.def;
8525           cat $export_symbols >> $output_objdir/$soname.def;
8526         fi~
8527         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8528       else
8529         ld_shlibs=no
8530       fi
8531       ;;
8532
8533     haiku*)
8534       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8535       link_all_deplibs=yes
8536       ;;
8537
8538     interix[3-9]*)
8539       hardcode_direct=no
8540       hardcode_shlibpath_var=no
8541       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8542       export_dynamic_flag_spec='${wl}-E'
8543       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8544       # Instead, shared libraries are loaded at an image base (0x10000000 by
8545       # default) and relocated if they conflict, which is a slow very memory
8546       # consuming and fragmenting process.  To avoid this, we pick a random,
8547       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8548       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8549       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8550       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'
8551       ;;
8552
8553     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8554       tmp_diet=no
8555       if test "$host_os" = linux-dietlibc; then
8556         case $cc_basename in
8557           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8558         esac
8559       fi
8560       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8561          && test "$tmp_diet" = no
8562       then
8563         tmp_addflag=' $pic_flag'
8564         tmp_sharedflag='-shared'
8565         case $cc_basename,$host_cpu in
8566         pgcc*)                          # Portland Group C compiler
8567           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'
8568           tmp_addflag=' $pic_flag'
8569           ;;
8570         pgf77* | pgf90* | pgf95* | pgfortran*)
8571                                         # Portland Group f77 and f90 compilers
8572           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'
8573           tmp_addflag=' $pic_flag -Mnomain' ;;
8574         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8575           tmp_addflag=' -i_dynamic' ;;
8576         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8577           tmp_addflag=' -i_dynamic -nofor_main' ;;
8578         ifc* | ifort*)                  # Intel Fortran compiler
8579           tmp_addflag=' -nofor_main' ;;
8580         lf95*)                          # Lahey Fortran 8.1
8581           whole_archive_flag_spec=
8582           tmp_sharedflag='--shared' ;;
8583         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8584           tmp_sharedflag='-qmkshrobj'
8585           tmp_addflag= ;;
8586         nvcc*)  # Cuda Compiler Driver 2.2
8587           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'
8588           compiler_needs_object=yes
8589           ;;
8590         esac
8591         case `$CC -V 2>&1 | sed 5q` in
8592         *Sun\ C*)                       # Sun C 5.9
8593           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'
8594           compiler_needs_object=yes
8595           tmp_sharedflag='-G' ;;
8596         *Sun\ F*)                       # Sun Fortran 8.3
8597           tmp_sharedflag='-G' ;;
8598         esac
8599         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8600
8601         if test "x$supports_anon_versioning" = xyes; then
8602           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8603             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8604             echo "local: *; };" >> $output_objdir/$libname.ver~
8605             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8606         fi
8607
8608         case $cc_basename in
8609         xlf* | bgf* | bgxlf* | mpixlf*)
8610           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8611           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8612           hardcode_libdir_flag_spec=
8613           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8614           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8615           if test "x$supports_anon_versioning" = xyes; then
8616             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8617               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8618               echo "local: *; };" >> $output_objdir/$libname.ver~
8619               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8620           fi
8621           ;;
8622         esac
8623       else
8624         ld_shlibs=no
8625       fi
8626       ;;
8627
8628     netbsd*)
8629       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8630         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8631         wlarc=
8632       else
8633         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8634         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8635       fi
8636       ;;
8637
8638     solaris*)
8639       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8640         ld_shlibs=no
8641         cat <<_LT_EOF 1>&2
8642
8643 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8644 *** create shared libraries on Solaris systems.  Therefore, libtool
8645 *** is disabling shared libraries support.  We urge you to upgrade GNU
8646 *** binutils to release 2.9.1 or newer.  Another option is to modify
8647 *** your PATH or compiler configuration so that the native linker is
8648 *** used, and then restart.
8649
8650 _LT_EOF
8651       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8652         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8653         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8654       else
8655         ld_shlibs=no
8656       fi
8657       ;;
8658
8659     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8660       case `$LD -v 2>&1` in
8661         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8662         ld_shlibs=no
8663         cat <<_LT_EOF 1>&2
8664
8665 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8666 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8667 *** is disabling shared libraries support.  We urge you to upgrade GNU
8668 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8669 *** your PATH or compiler configuration so that the native linker is
8670 *** used, and then restart.
8671
8672 _LT_EOF
8673         ;;
8674         *)
8675           # For security reasons, it is highly recommended that you always
8676           # use absolute paths for naming shared libraries, and exclude the
8677           # DT_RUNPATH tag from executables and libraries.  But doing so
8678           # requires that you compile everything twice, which is a pain.
8679           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8680             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8681             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8682             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8683           else
8684             ld_shlibs=no
8685           fi
8686         ;;
8687       esac
8688       ;;
8689
8690     sunos4*)
8691       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8692       wlarc=
8693       hardcode_direct=yes
8694       hardcode_shlibpath_var=no
8695       ;;
8696
8697     *)
8698       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8699         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8700         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8701       else
8702         ld_shlibs=no
8703       fi
8704       ;;
8705     esac
8706
8707     if test "$ld_shlibs" = no; then
8708       runpath_var=
8709       hardcode_libdir_flag_spec=
8710       export_dynamic_flag_spec=
8711       whole_archive_flag_spec=
8712     fi
8713   else
8714     # PORTME fill in a description of your system's linker (not GNU ld)
8715     case $host_os in
8716     aix3*)
8717       allow_undefined_flag=unsupported
8718       always_export_symbols=yes
8719       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'
8720       # Note: this linker hardcodes the directories in LIBPATH if there
8721       # are no directories specified by -L.
8722       hardcode_minus_L=yes
8723       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8724         # Neither direct hardcoding nor static linking is supported with a
8725         # broken collect2.
8726         hardcode_direct=unsupported
8727       fi
8728       ;;
8729
8730     aix[4-9]*)
8731       if test "$host_cpu" = ia64; then
8732         # On IA64, the linker does run time linking by default, so we don't
8733         # have to do anything special.
8734         aix_use_runtimelinking=no
8735         exp_sym_flag='-Bexport'
8736         no_entry_flag=""
8737       else
8738         # If we're using GNU nm, then we don't want the "-C" option.
8739         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8740         # Also, AIX nm treats weak defined symbols like other global
8741         # defined symbols, whereas GNU nm marks them as "W".
8742         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8743           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'
8744         else
8745           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'
8746         fi
8747         aix_use_runtimelinking=no
8748
8749         # Test if we are trying to use run time linking or normal
8750         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8751         # need to do runtime linking.
8752         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8753           for ld_flag in $LDFLAGS; do
8754           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8755             aix_use_runtimelinking=yes
8756             break
8757           fi
8758           done
8759           ;;
8760         esac
8761
8762         exp_sym_flag='-bexport'
8763         no_entry_flag='-bnoentry'
8764       fi
8765
8766       # When large executables or shared objects are built, AIX ld can
8767       # have problems creating the table of contents.  If linking a library
8768       # or program results in "error TOC overflow" add -mminimal-toc to
8769       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8770       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8771
8772       archive_cmds=''
8773       hardcode_direct=yes
8774       hardcode_direct_absolute=yes
8775       hardcode_libdir_separator=':'
8776       link_all_deplibs=yes
8777       file_list_spec='${wl}-f,'
8778
8779       if test "$GCC" = yes; then
8780         case $host_os in aix4.[012]|aix4.[012].*)
8781         # We only want to do this on AIX 4.2 and lower, the check
8782         # below for broken collect2 doesn't work under 4.3+
8783           collect2name=`${CC} -print-prog-name=collect2`
8784           if test -f "$collect2name" &&
8785            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8786           then
8787           # We have reworked collect2
8788           :
8789           else
8790           # We have old collect2
8791           hardcode_direct=unsupported
8792           # It fails to find uninstalled libraries when the uninstalled
8793           # path is not listed in the libpath.  Setting hardcode_minus_L
8794           # to unsupported forces relinking
8795           hardcode_minus_L=yes
8796           hardcode_libdir_flag_spec='-L$libdir'
8797           hardcode_libdir_separator=
8798           fi
8799           ;;
8800         esac
8801         shared_flag='-shared'
8802         if test "$aix_use_runtimelinking" = yes; then
8803           shared_flag="$shared_flag "'${wl}-G'
8804         fi
8805       else
8806         # not using gcc
8807         if test "$host_cpu" = ia64; then
8808         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8809         # chokes on -Wl,-G. The following line is correct:
8810           shared_flag='-G'
8811         else
8812           if test "$aix_use_runtimelinking" = yes; then
8813             shared_flag='${wl}-G'
8814           else
8815             shared_flag='${wl}-bM:SRE'
8816           fi
8817         fi
8818       fi
8819
8820       export_dynamic_flag_spec='${wl}-bexpall'
8821       # It seems that -bexpall does not export symbols beginning with
8822       # underscore (_), so it is better to generate a list of symbols to export.
8823       always_export_symbols=yes
8824       if test "$aix_use_runtimelinking" = yes; then
8825         # Warning - without using the other runtime loading flags (-brtl),
8826         # -berok will link without error, but may produce a broken library.
8827         allow_undefined_flag='-berok'
8828         # Determine the default libpath from the value encoded in an
8829         # empty executable.
8830         if test "${lt_cv_aix_libpath+set}" = set; then
8831   aix_libpath=$lt_cv_aix_libpath
8832 else
8833   if ${lt_cv_aix_libpath_+:} false; then :
8834   $as_echo_n "(cached) " >&6
8835 else
8836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h.  */
8838
8839 int
8840 main ()
8841 {
8842
8843   ;
8844   return 0;
8845 }
8846 _ACEOF
8847 if ac_fn_c_try_link "$LINENO"; then :
8848
8849   lt_aix_libpath_sed='
8850       /Import File Strings/,/^$/ {
8851           /^0/ {
8852               s/^0  *\([^ ]*\) *$/\1/
8853               p
8854           }
8855       }'
8856   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8857   # Check for a 64-bit object if we didn't find anything.
8858   if test -z "$lt_cv_aix_libpath_"; then
8859     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8860   fi
8861 fi
8862 rm -f core conftest.err conftest.$ac_objext \
8863     conftest$ac_exeext conftest.$ac_ext
8864   if test -z "$lt_cv_aix_libpath_"; then
8865     lt_cv_aix_libpath_="/usr/lib:/lib"
8866   fi
8867
8868 fi
8869
8870   aix_libpath=$lt_cv_aix_libpath_
8871 fi
8872
8873         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8874         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"
8875       else
8876         if test "$host_cpu" = ia64; then
8877           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8878           allow_undefined_flag="-z nodefs"
8879           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"
8880         else
8881          # Determine the default libpath from the value encoded in an
8882          # empty executable.
8883          if test "${lt_cv_aix_libpath+set}" = set; then
8884   aix_libpath=$lt_cv_aix_libpath
8885 else
8886   if ${lt_cv_aix_libpath_+:} false; then :
8887   $as_echo_n "(cached) " >&6
8888 else
8889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h.  */
8891
8892 int
8893 main ()
8894 {
8895
8896   ;
8897   return 0;
8898 }
8899 _ACEOF
8900 if ac_fn_c_try_link "$LINENO"; then :
8901
8902   lt_aix_libpath_sed='
8903       /Import File Strings/,/^$/ {
8904           /^0/ {
8905               s/^0  *\([^ ]*\) *$/\1/
8906               p
8907           }
8908       }'
8909   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8910   # Check for a 64-bit object if we didn't find anything.
8911   if test -z "$lt_cv_aix_libpath_"; then
8912     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8913   fi
8914 fi
8915 rm -f core conftest.err conftest.$ac_objext \
8916     conftest$ac_exeext conftest.$ac_ext
8917   if test -z "$lt_cv_aix_libpath_"; then
8918     lt_cv_aix_libpath_="/usr/lib:/lib"
8919   fi
8920
8921 fi
8922
8923   aix_libpath=$lt_cv_aix_libpath_
8924 fi
8925
8926          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8927           # Warning - without using the other run time loading flags,
8928           # -berok will link without error, but may produce a broken library.
8929           no_undefined_flag=' ${wl}-bernotok'
8930           allow_undefined_flag=' ${wl}-berok'
8931           if test "$with_gnu_ld" = yes; then
8932             # We only use this code for GNU lds that support --whole-archive.
8933             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8934           else
8935             # Exported symbols can be pulled into shared objects from archives
8936             whole_archive_flag_spec='$convenience'
8937           fi
8938           archive_cmds_need_lc=yes
8939           # This is similar to how AIX traditionally builds its shared libraries.
8940           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'
8941         fi
8942       fi
8943       ;;
8944
8945     amigaos*)
8946       case $host_cpu in
8947       powerpc)
8948             # see comment about AmigaOS4 .so support
8949             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950             archive_expsym_cmds=''
8951         ;;
8952       m68k)
8953             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)'
8954             hardcode_libdir_flag_spec='-L$libdir'
8955             hardcode_minus_L=yes
8956         ;;
8957       esac
8958       ;;
8959
8960     bsdi[45]*)
8961       export_dynamic_flag_spec=-rdynamic
8962       ;;
8963
8964     cygwin* | mingw* | pw32* | cegcc*)
8965       # When not using gcc, we currently assume that we are using
8966       # Microsoft Visual C++.
8967       # hardcode_libdir_flag_spec is actually meaningless, as there is
8968       # no search path for DLLs.
8969       case $cc_basename in
8970       cl*)
8971         # Native MSVC
8972         hardcode_libdir_flag_spec=' '
8973         allow_undefined_flag=unsupported
8974         always_export_symbols=yes
8975         file_list_spec='@'
8976         # Tell ltmain to make .lib files, not .a files.
8977         libext=lib
8978         # Tell ltmain to make .dll files, not .so files.
8979         shrext_cmds=".dll"
8980         # FIXME: Setting linknames here is a bad hack.
8981         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8982         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8983             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8984           else
8985             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8986           fi~
8987           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8988           linknames='
8989         # The linker will not automatically build a static lib if we build a DLL.
8990         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8991         enable_shared_with_static_runtimes=yes
8992         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8993         # Don't use ranlib
8994         old_postinstall_cmds='chmod 644 $oldlib'
8995         postlink_cmds='lt_outputfile="@OUTPUT@"~
8996           lt_tool_outputfile="@TOOL_OUTPUT@"~
8997           case $lt_outputfile in
8998             *.exe|*.EXE) ;;
8999             *)
9000               lt_outputfile="$lt_outputfile.exe"
9001               lt_tool_outputfile="$lt_tool_outputfile.exe"
9002               ;;
9003           esac~
9004           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9005             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9006             $RM "$lt_outputfile.manifest";
9007           fi'
9008         ;;
9009       *)
9010         # Assume MSVC wrapper
9011         hardcode_libdir_flag_spec=' '
9012         allow_undefined_flag=unsupported
9013         # Tell ltmain to make .lib files, not .a files.
9014         libext=lib
9015         # Tell ltmain to make .dll files, not .so files.
9016         shrext_cmds=".dll"
9017         # FIXME: Setting linknames here is a bad hack.
9018         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9019         # The linker will automatically build a .lib file if we build a DLL.
9020         old_archive_from_new_cmds='true'
9021         # FIXME: Should let the user specify the lib program.
9022         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9023         enable_shared_with_static_runtimes=yes
9024         ;;
9025       esac
9026       ;;
9027
9028     darwin* | rhapsody*)
9029
9030
9031   archive_cmds_need_lc=no
9032   hardcode_direct=no
9033   hardcode_automatic=yes
9034   hardcode_shlibpath_var=unsupported
9035   if test "$lt_cv_ld_force_load" = "yes"; then
9036     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\"`'
9037   else
9038     whole_archive_flag_spec=''
9039   fi
9040   link_all_deplibs=yes
9041   allow_undefined_flag="$_lt_dar_allow_undefined"
9042   case $cc_basename in
9043      ifort*) _lt_dar_can_shared=yes ;;
9044      *) _lt_dar_can_shared=$GCC ;;
9045   esac
9046   if test "$_lt_dar_can_shared" = "yes"; then
9047     output_verbose_link_cmd=func_echo_all
9048     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9049     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9050     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}"
9051     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}"
9052
9053   else
9054   ld_shlibs=no
9055   fi
9056
9057       ;;
9058
9059     dgux*)
9060       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061       hardcode_libdir_flag_spec='-L$libdir'
9062       hardcode_shlibpath_var=no
9063       ;;
9064
9065     freebsd1*)
9066       ld_shlibs=no
9067       ;;
9068
9069     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9070     # support.  Future versions do this automatically, but an explicit c++rt0.o
9071     # does not break anything, and helps significantly (at the cost of a little
9072     # extra space).
9073     freebsd2.2*)
9074       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9075       hardcode_libdir_flag_spec='-R$libdir'
9076       hardcode_direct=yes
9077       hardcode_shlibpath_var=no
9078       ;;
9079
9080     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9081     freebsd2*)
9082       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9083       hardcode_direct=yes
9084       hardcode_minus_L=yes
9085       hardcode_shlibpath_var=no
9086       ;;
9087
9088     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9089     freebsd* | dragonfly*)
9090       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9091       hardcode_libdir_flag_spec='-R$libdir'
9092       hardcode_direct=yes
9093       hardcode_shlibpath_var=no
9094       ;;
9095
9096     hpux9*)
9097       if test "$GCC" = yes; then
9098         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'
9099       else
9100         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'
9101       fi
9102       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9103       hardcode_libdir_separator=:
9104       hardcode_direct=yes
9105
9106       # hardcode_minus_L: Not really in the search PATH,
9107       # but as the default location of the library.
9108       hardcode_minus_L=yes
9109       export_dynamic_flag_spec='${wl}-E'
9110       ;;
9111
9112     hpux10*)
9113       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9114         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9115       else
9116         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9117       fi
9118       if test "$with_gnu_ld" = no; then
9119         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9120         hardcode_libdir_flag_spec_ld='+b $libdir'
9121         hardcode_libdir_separator=:
9122         hardcode_direct=yes
9123         hardcode_direct_absolute=yes
9124         export_dynamic_flag_spec='${wl}-E'
9125         # hardcode_minus_L: Not really in the search PATH,
9126         # but as the default location of the library.
9127         hardcode_minus_L=yes
9128       fi
9129       ;;
9130
9131     hpux11*)
9132       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9133         case $host_cpu in
9134         hppa*64*)
9135           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9136           ;;
9137         ia64*)
9138           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9139           ;;
9140         *)
9141           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9142           ;;
9143         esac
9144       else
9145         case $host_cpu in
9146         hppa*64*)
9147           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9148           ;;
9149         ia64*)
9150           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9151           ;;
9152         *)
9153
9154           # Older versions of the 11.00 compiler do not understand -b yet
9155           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9156           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9157 $as_echo_n "checking if $CC understands -b... " >&6; }
9158 if ${lt_cv_prog_compiler__b+:} false; then :
9159   $as_echo_n "(cached) " >&6
9160 else
9161   lt_cv_prog_compiler__b=no
9162    save_LDFLAGS="$LDFLAGS"
9163    LDFLAGS="$LDFLAGS -b"
9164    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9165    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9166      # The linker can only warn and ignore the option if not recognized
9167      # So say no if there are warnings
9168      if test -s conftest.err; then
9169        # Append any errors to the config.log.
9170        cat conftest.err 1>&5
9171        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9172        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9173        if diff conftest.exp conftest.er2 >/dev/null; then
9174          lt_cv_prog_compiler__b=yes
9175        fi
9176      else
9177        lt_cv_prog_compiler__b=yes
9178      fi
9179    fi
9180    $RM -r conftest*
9181    LDFLAGS="$save_LDFLAGS"
9182
9183 fi
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9185 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9186
9187 if test x"$lt_cv_prog_compiler__b" = xyes; then
9188     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9189 else
9190     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9191 fi
9192
9193           ;;
9194         esac
9195       fi
9196       if test "$with_gnu_ld" = no; then
9197         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9198         hardcode_libdir_separator=:
9199
9200         case $host_cpu in
9201         hppa*64*|ia64*)
9202           hardcode_direct=no
9203           hardcode_shlibpath_var=no
9204           ;;
9205         *)
9206           hardcode_direct=yes
9207           hardcode_direct_absolute=yes
9208           export_dynamic_flag_spec='${wl}-E'
9209
9210           # hardcode_minus_L: Not really in the search PATH,
9211           # but as the default location of the library.
9212           hardcode_minus_L=yes
9213           ;;
9214         esac
9215       fi
9216       ;;
9217
9218     irix5* | irix6* | nonstopux*)
9219       if test "$GCC" = yes; then
9220         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'
9221         # Try to use the -exported_symbol ld option, if it does not
9222         # work, assume that -exports_file does not work either and
9223         # implicitly export all symbols.
9224         # This should be the same for all languages, so no per-tag cache variable.
9225         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9226 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9227 if ${lt_cv_irix_exported_symbol+:} false; then :
9228   $as_echo_n "(cached) " >&6
9229 else
9230   save_LDFLAGS="$LDFLAGS"
9231            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9232            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h.  */
9234 int foo (void) { return 0; }
9235 _ACEOF
9236 if ac_fn_c_try_link "$LINENO"; then :
9237   lt_cv_irix_exported_symbol=yes
9238 else
9239   lt_cv_irix_exported_symbol=no
9240 fi
9241 rm -f core conftest.err conftest.$ac_objext \
9242     conftest$ac_exeext conftest.$ac_ext
9243            LDFLAGS="$save_LDFLAGS"
9244 fi
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9246 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9247         if test "$lt_cv_irix_exported_symbol" = yes; then
9248           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'
9249         fi
9250       else
9251         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'
9252         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'
9253       fi
9254       archive_cmds_need_lc='no'
9255       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9256       hardcode_libdir_separator=:
9257       inherit_rpath=yes
9258       link_all_deplibs=yes
9259       ;;
9260
9261     netbsd*)
9262       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9263         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9264       else
9265         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9266       fi
9267       hardcode_libdir_flag_spec='-R$libdir'
9268       hardcode_direct=yes
9269       hardcode_shlibpath_var=no
9270       ;;
9271
9272     newsos6)
9273       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9274       hardcode_direct=yes
9275       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9276       hardcode_libdir_separator=:
9277       hardcode_shlibpath_var=no
9278       ;;
9279
9280     *nto* | *qnx*)
9281       ;;
9282
9283     openbsd*)
9284       if test -f /usr/libexec/ld.so; then
9285         hardcode_direct=yes
9286         hardcode_shlibpath_var=no
9287         hardcode_direct_absolute=yes
9288         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9289           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9290           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9291           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9292           export_dynamic_flag_spec='${wl}-E'
9293         else
9294           case $host_os in
9295            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9296              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9297              hardcode_libdir_flag_spec='-R$libdir'
9298              ;;
9299            *)
9300              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9301              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9302              ;;
9303           esac
9304         fi
9305       else
9306         ld_shlibs=no
9307       fi
9308       ;;
9309
9310     os2*)
9311       hardcode_libdir_flag_spec='-L$libdir'
9312       hardcode_minus_L=yes
9313       allow_undefined_flag=unsupported
9314       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'
9315       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9316       ;;
9317
9318     osf3*)
9319       if test "$GCC" = yes; then
9320         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9321         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'
9322       else
9323         allow_undefined_flag=' -expect_unresolved \*'
9324         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'
9325       fi
9326       archive_cmds_need_lc='no'
9327       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9328       hardcode_libdir_separator=:
9329       ;;
9330
9331     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9332       if test "$GCC" = yes; then
9333         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9334         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'
9335         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9336       else
9337         allow_undefined_flag=' -expect_unresolved \*'
9338         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'
9339         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~
9340         $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'
9341
9342         # Both c and cxx compiler support -rpath directly
9343         hardcode_libdir_flag_spec='-rpath $libdir'
9344       fi
9345       archive_cmds_need_lc='no'
9346       hardcode_libdir_separator=:
9347       ;;
9348
9349     solaris*)
9350       no_undefined_flag=' -z defs'
9351       if test "$GCC" = yes; then
9352         wlarc='${wl}'
9353         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9354         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9355           $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'
9356       else
9357         case `$CC -V 2>&1` in
9358         *"Compilers 5.0"*)
9359           wlarc=''
9360           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9361           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9362           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9363           ;;
9364         *)
9365           wlarc='${wl}'
9366           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9367           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9368           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9369           ;;
9370         esac
9371       fi
9372       hardcode_libdir_flag_spec='-R$libdir'
9373       hardcode_shlibpath_var=no
9374       case $host_os in
9375       solaris2.[0-5] | solaris2.[0-5].*) ;;
9376       *)
9377         # The compiler driver will combine and reorder linker options,
9378         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9379         # but is careful enough not to reorder.
9380         # Supported since Solaris 2.6 (maybe 2.5.1?)
9381         if test "$GCC" = yes; then
9382           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9383         else
9384           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9385         fi
9386         ;;
9387       esac
9388       link_all_deplibs=yes
9389       ;;
9390
9391     sunos4*)
9392       if test "x$host_vendor" = xsequent; then
9393         # Use $CC to link under sequent, because it throws in some extra .o
9394         # files that make .init and .fini sections work.
9395         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9396       else
9397         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9398       fi
9399       hardcode_libdir_flag_spec='-L$libdir'
9400       hardcode_direct=yes
9401       hardcode_minus_L=yes
9402       hardcode_shlibpath_var=no
9403       ;;
9404
9405     sysv4)
9406       case $host_vendor in
9407         sni)
9408           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9409           hardcode_direct=yes # is this really true???
9410         ;;
9411         siemens)
9412           ## LD is ld it makes a PLAMLIB
9413           ## CC just makes a GrossModule.
9414           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9415           reload_cmds='$CC -r -o $output$reload_objs'
9416           hardcode_direct=no
9417         ;;
9418         motorola)
9419           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9420           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9421         ;;
9422       esac
9423       runpath_var='LD_RUN_PATH'
9424       hardcode_shlibpath_var=no
9425       ;;
9426
9427     sysv4.3*)
9428       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9429       hardcode_shlibpath_var=no
9430       export_dynamic_flag_spec='-Bexport'
9431       ;;
9432
9433     sysv4*MP*)
9434       if test -d /usr/nec; then
9435         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436         hardcode_shlibpath_var=no
9437         runpath_var=LD_RUN_PATH
9438         hardcode_runpath_var=yes
9439         ld_shlibs=yes
9440       fi
9441       ;;
9442
9443     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9444       no_undefined_flag='${wl}-z,text'
9445       archive_cmds_need_lc=no
9446       hardcode_shlibpath_var=no
9447       runpath_var='LD_RUN_PATH'
9448
9449       if test "$GCC" = yes; then
9450         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9452       else
9453         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9454         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9455       fi
9456       ;;
9457
9458     sysv5* | sco3.2v5* | sco5v6*)
9459       # Note: We can NOT use -z defs as we might desire, because we do not
9460       # link with -lc, and that would cause any symbols used from libc to
9461       # always be unresolved, which means just about no library would
9462       # ever link correctly.  If we're not using GNU ld we use -z text
9463       # though, which does catch some bad symbols but isn't as heavy-handed
9464       # as -z defs.
9465       no_undefined_flag='${wl}-z,text'
9466       allow_undefined_flag='${wl}-z,nodefs'
9467       archive_cmds_need_lc=no
9468       hardcode_shlibpath_var=no
9469       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9470       hardcode_libdir_separator=':'
9471       link_all_deplibs=yes
9472       export_dynamic_flag_spec='${wl}-Bexport'
9473       runpath_var='LD_RUN_PATH'
9474
9475       if test "$GCC" = yes; then
9476         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9477         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9478       else
9479         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9480         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9481       fi
9482       ;;
9483
9484     uts4*)
9485       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9486       hardcode_libdir_flag_spec='-L$libdir'
9487       hardcode_shlibpath_var=no
9488       ;;
9489
9490     *)
9491       ld_shlibs=no
9492       ;;
9493     esac
9494
9495     if test x$host_vendor = xsni; then
9496       case $host in
9497       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9498         export_dynamic_flag_spec='${wl}-Blargedynsym'
9499         ;;
9500       esac
9501     fi
9502   fi
9503
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9505 $as_echo "$ld_shlibs" >&6; }
9506 test "$ld_shlibs" = no && can_build_shared=no
9507
9508 with_gnu_ld=$with_gnu_ld
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524 #
9525 # Do we need to explicitly link libc?
9526 #
9527 case "x$archive_cmds_need_lc" in
9528 x|xyes)
9529   # Assume -lc should be added
9530   archive_cmds_need_lc=yes
9531
9532   if test "$enable_shared" = yes && test "$GCC" = yes; then
9533     case $archive_cmds in
9534     *'~'*)
9535       # FIXME: we may have to deal with multi-command sequences.
9536       ;;
9537     '$CC '*)
9538       # Test whether the compiler implicitly links with -lc since on some
9539       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9540       # to ld, don't add -lc before -lgcc.
9541       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9542 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9543 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9544   $as_echo_n "(cached) " >&6
9545 else
9546   $RM conftest*
9547         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9548
9549         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9550   (eval $ac_compile) 2>&5
9551   ac_status=$?
9552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9553   test $ac_status = 0; } 2>conftest.err; then
9554           soname=conftest
9555           lib=conftest
9556           libobjs=conftest.$ac_objext
9557           deplibs=
9558           wl=$lt_prog_compiler_wl
9559           pic_flag=$lt_prog_compiler_pic
9560           compiler_flags=-v
9561           linker_flags=-v
9562           verstring=
9563           output_objdir=.
9564           libname=conftest
9565           lt_save_allow_undefined_flag=$allow_undefined_flag
9566           allow_undefined_flag=
9567           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9568   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9569   ac_status=$?
9570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9571   test $ac_status = 0; }
9572           then
9573             lt_cv_archive_cmds_need_lc=no
9574           else
9575             lt_cv_archive_cmds_need_lc=yes
9576           fi
9577           allow_undefined_flag=$lt_save_allow_undefined_flag
9578         else
9579           cat conftest.err 1>&5
9580         fi
9581         $RM conftest*
9582
9583 fi
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9585 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9586       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9587       ;;
9588     esac
9589   fi
9590   ;;
9591 esac
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9750 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9751
9752 if test "$GCC" = yes; then
9753   case $host_os in
9754     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9755     *) lt_awk_arg="/^libraries:/" ;;
9756   esac
9757   case $host_os in
9758     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9759     *) lt_sed_strip_eq="s,=/,/,g" ;;
9760   esac
9761   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9762   case $lt_search_path_spec in
9763   *\;*)
9764     # if the path contains ";" then we assume it to be the separator
9765     # otherwise default to the standard path separator (i.e. ":") - it is
9766     # assumed that no part of a normal pathname contains ";" but that should
9767     # okay in the real world where ";" in dirpaths is itself problematic.
9768     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9769     ;;
9770   *)
9771     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9772     ;;
9773   esac
9774   # Ok, now we have the path, separated by spaces, we can step through it
9775   # and add multilib dir if necessary.
9776   lt_tmp_lt_search_path_spec=
9777   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9778   for lt_sys_path in $lt_search_path_spec; do
9779     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9780       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9781     else
9782       test -d "$lt_sys_path" && \
9783         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9784     fi
9785   done
9786   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9787 BEGIN {RS=" "; FS="/|\n";} {
9788   lt_foo="";
9789   lt_count=0;
9790   for (lt_i = NF; lt_i > 0; lt_i--) {
9791     if ($lt_i != "" && $lt_i != ".") {
9792       if ($lt_i == "..") {
9793         lt_count++;
9794       } else {
9795         if (lt_count == 0) {
9796           lt_foo="/" $lt_i lt_foo;
9797         } else {
9798           lt_count--;
9799         }
9800       }
9801     }
9802   }
9803   if (lt_foo != "") { lt_freq[lt_foo]++; }
9804   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9805 }'`
9806   # AWK program above erroneously prepends '/' to C:/dos/paths
9807   # for these hosts.
9808   case $host_os in
9809     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9810       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9811   esac
9812   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9813 else
9814   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9815 fi
9816 library_names_spec=
9817 libname_spec='lib$name'
9818 soname_spec=
9819 shrext_cmds=".so"
9820 postinstall_cmds=
9821 postuninstall_cmds=
9822 finish_cmds=
9823 finish_eval=
9824 shlibpath_var=
9825 shlibpath_overrides_runpath=unknown
9826 version_type=none
9827 dynamic_linker="$host_os ld.so"
9828 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9829 need_lib_prefix=unknown
9830 hardcode_into_libs=no
9831
9832 # when you set need_version to no, make sure it does not cause -set_version
9833 # flags to be left without arguments
9834 need_version=unknown
9835
9836 case $host_os in
9837 aix3*)
9838   version_type=linux
9839   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9840   shlibpath_var=LIBPATH
9841
9842   # AIX 3 has no versioning support, so we append a major version to the name.
9843   soname_spec='${libname}${release}${shared_ext}$major'
9844   ;;
9845
9846 aix[4-9]*)
9847   version_type=linux
9848   need_lib_prefix=no
9849   need_version=no
9850   hardcode_into_libs=yes
9851   if test "$host_cpu" = ia64; then
9852     # AIX 5 supports IA64
9853     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9854     shlibpath_var=LD_LIBRARY_PATH
9855   else
9856     # With GCC up to 2.95.x, collect2 would create an import file
9857     # for dependence libraries.  The import file would start with
9858     # the line `#! .'.  This would cause the generated library to
9859     # depend on `.', always an invalid library.  This was fixed in
9860     # development snapshots of GCC prior to 3.0.
9861     case $host_os in
9862       aix4 | aix4.[01] | aix4.[01].*)
9863       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9864            echo ' yes '
9865            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9866         :
9867       else
9868         can_build_shared=no
9869       fi
9870       ;;
9871     esac
9872     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9873     # soname into executable. Probably we can add versioning support to
9874     # collect2, so additional links can be useful in future.
9875     if test "$aix_use_runtimelinking" = yes; then
9876       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9877       # instead of lib<name>.a to let people know that these are not
9878       # typical AIX shared libraries.
9879       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880     else
9881       # We preserve .a as extension for shared libraries through AIX4.2
9882       # and later when we are not doing run time linking.
9883       library_names_spec='${libname}${release}.a $libname.a'
9884       soname_spec='${libname}${release}${shared_ext}$major'
9885     fi
9886     shlibpath_var=LIBPATH
9887   fi
9888   ;;
9889
9890 amigaos*)
9891   case $host_cpu in
9892   powerpc)
9893     # Since July 2007 AmigaOS4 officially supports .so libraries.
9894     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896     ;;
9897   m68k)
9898     library_names_spec='$libname.ixlibrary $libname.a'
9899     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9900     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'
9901     ;;
9902   esac
9903   ;;
9904
9905 beos*)
9906   library_names_spec='${libname}${shared_ext}'
9907   dynamic_linker="$host_os ld.so"
9908   shlibpath_var=LIBRARY_PATH
9909   ;;
9910
9911 bsdi[45]*)
9912   version_type=linux
9913   need_version=no
9914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915   soname_spec='${libname}${release}${shared_ext}$major'
9916   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9917   shlibpath_var=LD_LIBRARY_PATH
9918   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9919   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9920   # the default ld.so.conf also contains /usr/contrib/lib and
9921   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9922   # libtool to hard-code these into programs
9923   ;;
9924
9925 cygwin* | mingw* | pw32* | cegcc*)
9926   version_type=windows
9927   shrext_cmds=".dll"
9928   need_version=no
9929   need_lib_prefix=no
9930
9931   case $GCC,$cc_basename in
9932   yes,*)
9933     # gcc
9934     library_names_spec='$libname.dll.a'
9935     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9936     postinstall_cmds='base_file=`basename \${file}`~
9937       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9938       dldir=$destdir/`dirname \$dlpath`~
9939       test -d \$dldir || mkdir -p \$dldir~
9940       $install_prog $dir/$dlname \$dldir/$dlname~
9941       chmod a+x \$dldir/$dlname~
9942       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9943         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9944       fi'
9945     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9946       dlpath=$dir/\$dldll~
9947        $RM \$dlpath'
9948     shlibpath_overrides_runpath=yes
9949
9950     case $host_os in
9951     cygwin*)
9952       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9953       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9954
9955       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9956       ;;
9957     mingw* | cegcc*)
9958       # MinGW DLLs use traditional 'lib' prefix
9959       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9960       ;;
9961     pw32*)
9962       # pw32 DLLs use 'pw' prefix rather than 'lib'
9963       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9964       ;;
9965     esac
9966     dynamic_linker='Win32 ld.exe'
9967     ;;
9968
9969   *,cl*)
9970     # Native MSVC
9971     libname_spec='$name'
9972     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9973     library_names_spec='${libname}.dll.lib'
9974
9975     case $build_os in
9976     mingw*)
9977       sys_lib_search_path_spec=
9978       lt_save_ifs=$IFS
9979       IFS=';'
9980       for lt_path in $LIB
9981       do
9982         IFS=$lt_save_ifs
9983         # Let DOS variable expansion print the short 8.3 style file name.
9984         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9985         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9986       done
9987       IFS=$lt_save_ifs
9988       # Convert to MSYS style.
9989       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9990       ;;
9991     cygwin*)
9992       # Convert to unix form, then to dos form, then back to unix form
9993       # but this time dos style (no spaces!) so that the unix form looks
9994       # like /cygdrive/c/PROGRA~1:/cygdr...
9995       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9996       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9997       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9998       ;;
9999     *)
10000       sys_lib_search_path_spec="$LIB"
10001       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10002         # It is most probably a Windows format PATH.
10003         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10004       else
10005         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10006       fi
10007       # FIXME: find the short name or the path components, as spaces are
10008       # common. (e.g. "Program Files" -> "PROGRA~1")
10009       ;;
10010     esac
10011
10012     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10013     postinstall_cmds='base_file=`basename \${file}`~
10014       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10015       dldir=$destdir/`dirname \$dlpath`~
10016       test -d \$dldir || mkdir -p \$dldir~
10017       $install_prog $dir/$dlname \$dldir/$dlname'
10018     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10019       dlpath=$dir/\$dldll~
10020        $RM \$dlpath'
10021     shlibpath_overrides_runpath=yes
10022     dynamic_linker='Win32 link.exe'
10023     ;;
10024
10025   *)
10026     # Assume MSVC wrapper
10027     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10028     dynamic_linker='Win32 ld.exe'
10029     ;;
10030   esac
10031   # FIXME: first we should search . and the directory the executable is in
10032   shlibpath_var=PATH
10033   ;;
10034
10035 darwin* | rhapsody*)
10036   dynamic_linker="$host_os dyld"
10037   version_type=darwin
10038   need_lib_prefix=no
10039   need_version=no
10040   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10041   soname_spec='${libname}${release}${major}$shared_ext'
10042   shlibpath_overrides_runpath=yes
10043   shlibpath_var=DYLD_LIBRARY_PATH
10044   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10045
10046   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10047   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10048   ;;
10049
10050 dgux*)
10051   version_type=linux
10052   need_lib_prefix=no
10053   need_version=no
10054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10055   soname_spec='${libname}${release}${shared_ext}$major'
10056   shlibpath_var=LD_LIBRARY_PATH
10057   ;;
10058
10059 freebsd1*)
10060   dynamic_linker=no
10061   ;;
10062
10063 freebsd* | dragonfly*)
10064   # DragonFly does not have aout.  When/if they implement a new
10065   # versioning mechanism, adjust this.
10066   if test -x /usr/bin/objformat; then
10067     objformat=`/usr/bin/objformat`
10068   else
10069     case $host_os in
10070     freebsd[123]*) objformat=aout ;;
10071     *) objformat=elf ;;
10072     esac
10073   fi
10074   version_type=freebsd-$objformat
10075   case $version_type in
10076     freebsd-elf*)
10077       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10078       need_version=no
10079       need_lib_prefix=no
10080       ;;
10081     freebsd-*)
10082       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10083       need_version=yes
10084       ;;
10085   esac
10086   shlibpath_var=LD_LIBRARY_PATH
10087   case $host_os in
10088   freebsd2*)
10089     shlibpath_overrides_runpath=yes
10090     ;;
10091   freebsd3.[01]* | freebsdelf3.[01]*)
10092     shlibpath_overrides_runpath=yes
10093     hardcode_into_libs=yes
10094     ;;
10095   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10096   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10097     shlibpath_overrides_runpath=no
10098     hardcode_into_libs=yes
10099     ;;
10100   *) # from 4.6 on, and DragonFly
10101     shlibpath_overrides_runpath=yes
10102     hardcode_into_libs=yes
10103     ;;
10104   esac
10105   ;;
10106
10107 gnu*)
10108   version_type=linux
10109   need_lib_prefix=no
10110   need_version=no
10111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10112   soname_spec='${libname}${release}${shared_ext}$major'
10113   shlibpath_var=LD_LIBRARY_PATH
10114   hardcode_into_libs=yes
10115   ;;
10116
10117 haiku*)
10118   version_type=linux
10119   need_lib_prefix=no
10120   need_version=no
10121   dynamic_linker="$host_os runtime_loader"
10122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10123   soname_spec='${libname}${release}${shared_ext}$major'
10124   shlibpath_var=LIBRARY_PATH
10125   shlibpath_overrides_runpath=yes
10126   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10127   hardcode_into_libs=yes
10128   ;;
10129
10130 hpux9* | hpux10* | hpux11*)
10131   # Give a soname corresponding to the major version so that dld.sl refuses to
10132   # link against other versions.
10133   version_type=sunos
10134   need_lib_prefix=no
10135   need_version=no
10136   case $host_cpu in
10137   ia64*)
10138     shrext_cmds='.so'
10139     hardcode_into_libs=yes
10140     dynamic_linker="$host_os dld.so"
10141     shlibpath_var=LD_LIBRARY_PATH
10142     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10143     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144     soname_spec='${libname}${release}${shared_ext}$major'
10145     if test "X$HPUX_IA64_MODE" = X32; then
10146       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10147     else
10148       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10149     fi
10150     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10151     ;;
10152   hppa*64*)
10153     shrext_cmds='.sl'
10154     hardcode_into_libs=yes
10155     dynamic_linker="$host_os dld.sl"
10156     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10157     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159     soname_spec='${libname}${release}${shared_ext}$major'
10160     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10161     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10162     ;;
10163   *)
10164     shrext_cmds='.sl'
10165     dynamic_linker="$host_os dld.sl"
10166     shlibpath_var=SHLIB_PATH
10167     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169     soname_spec='${libname}${release}${shared_ext}$major'
10170     ;;
10171   esac
10172   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10173   postinstall_cmds='chmod 555 $lib'
10174   # or fails outright, so override atomically:
10175   install_override_mode=555
10176   ;;
10177
10178 interix[3-9]*)
10179   version_type=linux
10180   need_lib_prefix=no
10181   need_version=no
10182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10183   soname_spec='${libname}${release}${shared_ext}$major'
10184   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10185   shlibpath_var=LD_LIBRARY_PATH
10186   shlibpath_overrides_runpath=no
10187   hardcode_into_libs=yes
10188   ;;
10189
10190 irix5* | irix6* | nonstopux*)
10191   case $host_os in
10192     nonstopux*) version_type=nonstopux ;;
10193     *)
10194         if test "$lt_cv_prog_gnu_ld" = yes; then
10195                 version_type=linux
10196         else
10197                 version_type=irix
10198         fi ;;
10199   esac
10200   need_lib_prefix=no
10201   need_version=no
10202   soname_spec='${libname}${release}${shared_ext}$major'
10203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10204   case $host_os in
10205   irix5* | nonstopux*)
10206     libsuff= shlibsuff=
10207     ;;
10208   *)
10209     case $LD in # libtool.m4 will add one of these switches to LD
10210     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10211       libsuff= shlibsuff= libmagic=32-bit;;
10212     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10213       libsuff=32 shlibsuff=N32 libmagic=N32;;
10214     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10215       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10216     *) libsuff= shlibsuff= libmagic=never-match;;
10217     esac
10218     ;;
10219   esac
10220   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10221   shlibpath_overrides_runpath=no
10222   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10223   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10224   hardcode_into_libs=yes
10225   ;;
10226
10227 # No shared lib support for Linux oldld, aout, or coff.
10228 linux*oldld* | linux*aout* | linux*coff*)
10229   dynamic_linker=no
10230   ;;
10231
10232 # This must be Linux ELF.
10233 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10234   version_type=linux
10235   need_lib_prefix=no
10236   need_version=no
10237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238   soname_spec='${libname}${release}${shared_ext}$major'
10239   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10240   shlibpath_var=LD_LIBRARY_PATH
10241   shlibpath_overrides_runpath=no
10242
10243   # Some binutils ld are patched to set DT_RUNPATH
10244   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10245   $as_echo_n "(cached) " >&6
10246 else
10247   lt_cv_shlibpath_overrides_runpath=no
10248     save_LDFLAGS=$LDFLAGS
10249     save_libdir=$libdir
10250     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10251          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10252     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h.  */
10254
10255 int
10256 main ()
10257 {
10258
10259   ;
10260   return 0;
10261 }
10262 _ACEOF
10263 if ac_fn_c_try_link "$LINENO"; then :
10264   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10265   lt_cv_shlibpath_overrides_runpath=yes
10266 fi
10267 fi
10268 rm -f core conftest.err conftest.$ac_objext \
10269     conftest$ac_exeext conftest.$ac_ext
10270     LDFLAGS=$save_LDFLAGS
10271     libdir=$save_libdir
10272
10273 fi
10274
10275   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10276
10277   # This implies no fast_install, which is unacceptable.
10278   # Some rework will be needed to allow for fast_install
10279   # before this can be enabled.
10280   hardcode_into_libs=yes
10281
10282   # Add ABI-specific directories to the system library path.
10283   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10284
10285   # Append ld.so.conf contents to the search path
10286   if test -f /etc/ld.so.conf; then
10287     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' ' '`
10288     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10289
10290   fi
10291
10292   # We used to test for /lib/ld.so.1 and disable shared libraries on
10293   # powerpc, because MkLinux only supported shared libraries with the
10294   # GNU dynamic linker.  Since this was broken with cross compilers,
10295   # most powerpc-linux boxes support dynamic linking these days and
10296   # people can always --disable-shared, the test was removed, and we
10297   # assume the GNU/Linux dynamic linker is in use.
10298   dynamic_linker='GNU/Linux ld.so'
10299   ;;
10300
10301 netbsd*)
10302   version_type=sunos
10303   need_lib_prefix=no
10304   need_version=no
10305   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10306     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10307     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10308     dynamic_linker='NetBSD (a.out) ld.so'
10309   else
10310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10311     soname_spec='${libname}${release}${shared_ext}$major'
10312     dynamic_linker='NetBSD ld.elf_so'
10313   fi
10314   shlibpath_var=LD_LIBRARY_PATH
10315   shlibpath_overrides_runpath=yes
10316   hardcode_into_libs=yes
10317   ;;
10318
10319 newsos6)
10320   version_type=linux
10321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322   shlibpath_var=LD_LIBRARY_PATH
10323   shlibpath_overrides_runpath=yes
10324   ;;
10325
10326 *nto* | *qnx*)
10327   version_type=qnx
10328   need_lib_prefix=no
10329   need_version=no
10330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331   soname_spec='${libname}${release}${shared_ext}$major'
10332   shlibpath_var=LD_LIBRARY_PATH
10333   shlibpath_overrides_runpath=no
10334   hardcode_into_libs=yes
10335   dynamic_linker='ldqnx.so'
10336   ;;
10337
10338 openbsd*)
10339   version_type=sunos
10340   sys_lib_dlsearch_path_spec="/usr/lib"
10341   need_lib_prefix=no
10342   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10343   case $host_os in
10344     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10345     *)                          need_version=no  ;;
10346   esac
10347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10348   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10349   shlibpath_var=LD_LIBRARY_PATH
10350   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10351     case $host_os in
10352       openbsd2.[89] | openbsd2.[89].*)
10353         shlibpath_overrides_runpath=no
10354         ;;
10355       *)
10356         shlibpath_overrides_runpath=yes
10357         ;;
10358       esac
10359   else
10360     shlibpath_overrides_runpath=yes
10361   fi
10362   ;;
10363
10364 os2*)
10365   libname_spec='$name'
10366   shrext_cmds=".dll"
10367   need_lib_prefix=no
10368   library_names_spec='$libname${shared_ext} $libname.a'
10369   dynamic_linker='OS/2 ld.exe'
10370   shlibpath_var=LIBPATH
10371   ;;
10372
10373 osf3* | osf4* | osf5*)
10374   version_type=osf
10375   need_lib_prefix=no
10376   need_version=no
10377   soname_spec='${libname}${release}${shared_ext}$major'
10378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379   shlibpath_var=LD_LIBRARY_PATH
10380   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10381   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10382   ;;
10383
10384 rdos*)
10385   dynamic_linker=no
10386   ;;
10387
10388 solaris*)
10389   version_type=linux
10390   need_lib_prefix=no
10391   need_version=no
10392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393   soname_spec='${libname}${release}${shared_ext}$major'
10394   shlibpath_var=LD_LIBRARY_PATH
10395   shlibpath_overrides_runpath=yes
10396   hardcode_into_libs=yes
10397   # ldd complains unless libraries are executable
10398   postinstall_cmds='chmod +x $lib'
10399   ;;
10400
10401 sunos4*)
10402   version_type=sunos
10403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10404   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10405   shlibpath_var=LD_LIBRARY_PATH
10406   shlibpath_overrides_runpath=yes
10407   if test "$with_gnu_ld" = yes; then
10408     need_lib_prefix=no
10409   fi
10410   need_version=yes
10411   ;;
10412
10413 sysv4 | sysv4.3*)
10414   version_type=linux
10415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416   soname_spec='${libname}${release}${shared_ext}$major'
10417   shlibpath_var=LD_LIBRARY_PATH
10418   case $host_vendor in
10419     sni)
10420       shlibpath_overrides_runpath=no
10421       need_lib_prefix=no
10422       runpath_var=LD_RUN_PATH
10423       ;;
10424     siemens)
10425       need_lib_prefix=no
10426       ;;
10427     motorola)
10428       need_lib_prefix=no
10429       need_version=no
10430       shlibpath_overrides_runpath=no
10431       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10432       ;;
10433   esac
10434   ;;
10435
10436 sysv4*MP*)
10437   if test -d /usr/nec ;then
10438     version_type=linux
10439     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10440     soname_spec='$libname${shared_ext}.$major'
10441     shlibpath_var=LD_LIBRARY_PATH
10442   fi
10443   ;;
10444
10445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10446   version_type=freebsd-elf
10447   need_lib_prefix=no
10448   need_version=no
10449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10450   soname_spec='${libname}${release}${shared_ext}$major'
10451   shlibpath_var=LD_LIBRARY_PATH
10452   shlibpath_overrides_runpath=yes
10453   hardcode_into_libs=yes
10454   if test "$with_gnu_ld" = yes; then
10455     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10456   else
10457     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10458     case $host_os in
10459       sco3.2v5*)
10460         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10461         ;;
10462     esac
10463   fi
10464   sys_lib_dlsearch_path_spec='/usr/lib'
10465   ;;
10466
10467 tpf*)
10468   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10469   version_type=linux
10470   need_lib_prefix=no
10471   need_version=no
10472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10473   shlibpath_var=LD_LIBRARY_PATH
10474   shlibpath_overrides_runpath=no
10475   hardcode_into_libs=yes
10476   ;;
10477
10478 uts4*)
10479   version_type=linux
10480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481   soname_spec='${libname}${release}${shared_ext}$major'
10482   shlibpath_var=LD_LIBRARY_PATH
10483   ;;
10484
10485 *)
10486   dynamic_linker=no
10487   ;;
10488 esac
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10490 $as_echo "$dynamic_linker" >&6; }
10491 test "$dynamic_linker" = no && can_build_shared=no
10492
10493 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10494 if test "$GCC" = yes; then
10495   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10496 fi
10497
10498 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10499   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10500 fi
10501 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10502   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10503 fi
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10597 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10598 hardcode_action=
10599 if test -n "$hardcode_libdir_flag_spec" ||
10600    test -n "$runpath_var" ||
10601    test "X$hardcode_automatic" = "Xyes" ; then
10602
10603   # We can hardcode non-existent directories.
10604   if test "$hardcode_direct" != no &&
10605      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10606      # have to relink, otherwise we might link with an installed library
10607      # when we should be linking with a yet-to-be-installed one
10608      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10609      test "$hardcode_minus_L" != no; then
10610     # Linking always hardcodes the temporary library directory.
10611     hardcode_action=relink
10612   else
10613     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10614     hardcode_action=immediate
10615   fi
10616 else
10617   # We cannot hardcode anything, or else we can only hardcode existing
10618   # directories.
10619   hardcode_action=unsupported
10620 fi
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10622 $as_echo "$hardcode_action" >&6; }
10623
10624 if test "$hardcode_action" = relink ||
10625    test "$inherit_rpath" = yes; then
10626   # Fast installation is not supported
10627   enable_fast_install=no
10628 elif test "$shlibpath_overrides_runpath" = yes ||
10629      test "$enable_shared" = no; then
10630   # Fast installation is not necessary
10631   enable_fast_install=needless
10632 fi
10633
10634
10635
10636
10637
10638
10639   if test "x$enable_dlopen" != xyes; then
10640   enable_dlopen=unknown
10641   enable_dlopen_self=unknown
10642   enable_dlopen_self_static=unknown
10643 else
10644   lt_cv_dlopen=no
10645   lt_cv_dlopen_libs=
10646
10647   case $host_os in
10648   beos*)
10649     lt_cv_dlopen="load_add_on"
10650     lt_cv_dlopen_libs=
10651     lt_cv_dlopen_self=yes
10652     ;;
10653
10654   mingw* | pw32* | cegcc*)
10655     lt_cv_dlopen="LoadLibrary"
10656     lt_cv_dlopen_libs=
10657     ;;
10658
10659   cygwin*)
10660     lt_cv_dlopen="dlopen"
10661     lt_cv_dlopen_libs=
10662     ;;
10663
10664   darwin*)
10665   # if libdl is installed we need to link against it
10666     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10667 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10668 if ${ac_cv_lib_dl_dlopen+:} false; then :
10669   $as_echo_n "(cached) " >&6
10670 else
10671   ac_check_lib_save_LIBS=$LIBS
10672 LIBS="-ldl  $LIBS"
10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h.  */
10675
10676 /* Override any GCC internal prototype to avoid an error.
10677    Use char because int might match the return type of a GCC
10678    builtin and then its argument prototype would still apply.  */
10679 #ifdef __cplusplus
10680 extern "C"
10681 #endif
10682 char dlopen ();
10683 int
10684 main ()
10685 {
10686 return dlopen ();
10687   ;
10688   return 0;
10689 }
10690 _ACEOF
10691 if ac_fn_c_try_link "$LINENO"; then :
10692   ac_cv_lib_dl_dlopen=yes
10693 else
10694   ac_cv_lib_dl_dlopen=no
10695 fi
10696 rm -f core conftest.err conftest.$ac_objext \
10697     conftest$ac_exeext conftest.$ac_ext
10698 LIBS=$ac_check_lib_save_LIBS
10699 fi
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10701 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10702 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10703   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10704 else
10705
10706     lt_cv_dlopen="dyld"
10707     lt_cv_dlopen_libs=
10708     lt_cv_dlopen_self=yes
10709
10710 fi
10711
10712     ;;
10713
10714   *)
10715     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10716 if test "x$ac_cv_func_shl_load" = xyes; then :
10717   lt_cv_dlopen="shl_load"
10718 else
10719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10720 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10721 if ${ac_cv_lib_dld_shl_load+:} false; then :
10722   $as_echo_n "(cached) " >&6
10723 else
10724   ac_check_lib_save_LIBS=$LIBS
10725 LIBS="-ldld  $LIBS"
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h.  */
10728
10729 /* Override any GCC internal prototype to avoid an error.
10730    Use char because int might match the return type of a GCC
10731    builtin and then its argument prototype would still apply.  */
10732 #ifdef __cplusplus
10733 extern "C"
10734 #endif
10735 char shl_load ();
10736 int
10737 main ()
10738 {
10739 return shl_load ();
10740   ;
10741   return 0;
10742 }
10743 _ACEOF
10744 if ac_fn_c_try_link "$LINENO"; then :
10745   ac_cv_lib_dld_shl_load=yes
10746 else
10747   ac_cv_lib_dld_shl_load=no
10748 fi
10749 rm -f core conftest.err conftest.$ac_objext \
10750     conftest$ac_exeext conftest.$ac_ext
10751 LIBS=$ac_check_lib_save_LIBS
10752 fi
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10754 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10755 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10756   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10757 else
10758   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10759 if test "x$ac_cv_func_dlopen" = xyes; then :
10760   lt_cv_dlopen="dlopen"
10761 else
10762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10763 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10764 if ${ac_cv_lib_dl_dlopen+:} false; then :
10765   $as_echo_n "(cached) " >&6
10766 else
10767   ac_check_lib_save_LIBS=$LIBS
10768 LIBS="-ldl  $LIBS"
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h.  */
10771
10772 /* Override any GCC internal prototype to avoid an error.
10773    Use char because int might match the return type of a GCC
10774    builtin and then its argument prototype would still apply.  */
10775 #ifdef __cplusplus
10776 extern "C"
10777 #endif
10778 char dlopen ();
10779 int
10780 main ()
10781 {
10782 return dlopen ();
10783   ;
10784   return 0;
10785 }
10786 _ACEOF
10787 if ac_fn_c_try_link "$LINENO"; then :
10788   ac_cv_lib_dl_dlopen=yes
10789 else
10790   ac_cv_lib_dl_dlopen=no
10791 fi
10792 rm -f core conftest.err conftest.$ac_objext \
10793     conftest$ac_exeext conftest.$ac_ext
10794 LIBS=$ac_check_lib_save_LIBS
10795 fi
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10797 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10798 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10799   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10800 else
10801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10802 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10803 if ${ac_cv_lib_svld_dlopen+:} false; then :
10804   $as_echo_n "(cached) " >&6
10805 else
10806   ac_check_lib_save_LIBS=$LIBS
10807 LIBS="-lsvld  $LIBS"
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h.  */
10810
10811 /* Override any GCC internal prototype to avoid an error.
10812    Use char because int might match the return type of a GCC
10813    builtin and then its argument prototype would still apply.  */
10814 #ifdef __cplusplus
10815 extern "C"
10816 #endif
10817 char dlopen ();
10818 int
10819 main ()
10820 {
10821 return dlopen ();
10822   ;
10823   return 0;
10824 }
10825 _ACEOF
10826 if ac_fn_c_try_link "$LINENO"; then :
10827   ac_cv_lib_svld_dlopen=yes
10828 else
10829   ac_cv_lib_svld_dlopen=no
10830 fi
10831 rm -f core conftest.err conftest.$ac_objext \
10832     conftest$ac_exeext conftest.$ac_ext
10833 LIBS=$ac_check_lib_save_LIBS
10834 fi
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10836 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10837 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10838   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10839 else
10840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10841 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10842 if ${ac_cv_lib_dld_dld_link+:} false; then :
10843   $as_echo_n "(cached) " >&6
10844 else
10845   ac_check_lib_save_LIBS=$LIBS
10846 LIBS="-ldld  $LIBS"
10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h.  */
10849
10850 /* Override any GCC internal prototype to avoid an error.
10851    Use char because int might match the return type of a GCC
10852    builtin and then its argument prototype would still apply.  */
10853 #ifdef __cplusplus
10854 extern "C"
10855 #endif
10856 char dld_link ();
10857 int
10858 main ()
10859 {
10860 return dld_link ();
10861   ;
10862   return 0;
10863 }
10864 _ACEOF
10865 if ac_fn_c_try_link "$LINENO"; then :
10866   ac_cv_lib_dld_dld_link=yes
10867 else
10868   ac_cv_lib_dld_dld_link=no
10869 fi
10870 rm -f core conftest.err conftest.$ac_objext \
10871     conftest$ac_exeext conftest.$ac_ext
10872 LIBS=$ac_check_lib_save_LIBS
10873 fi
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10875 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10876 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10877   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10878 fi
10879
10880
10881 fi
10882
10883
10884 fi
10885
10886
10887 fi
10888
10889
10890 fi
10891
10892
10893 fi
10894
10895     ;;
10896   esac
10897
10898   if test "x$lt_cv_dlopen" != xno; then
10899     enable_dlopen=yes
10900   else
10901     enable_dlopen=no
10902   fi
10903
10904   case $lt_cv_dlopen in
10905   dlopen)
10906     save_CPPFLAGS="$CPPFLAGS"
10907     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10908
10909     save_LDFLAGS="$LDFLAGS"
10910     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10911
10912     save_LIBS="$LIBS"
10913     LIBS="$lt_cv_dlopen_libs $LIBS"
10914
10915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10916 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10917 if ${lt_cv_dlopen_self+:} false; then :
10918   $as_echo_n "(cached) " >&6
10919 else
10920           if test "$cross_compiling" = yes; then :
10921   lt_cv_dlopen_self=cross
10922 else
10923   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10924   lt_status=$lt_dlunknown
10925   cat > conftest.$ac_ext <<_LT_EOF
10926 #line $LINENO "configure"
10927 #include "confdefs.h"
10928
10929 #if HAVE_DLFCN_H
10930 #include <dlfcn.h>
10931 #endif
10932
10933 #include <stdio.h>
10934
10935 #ifdef RTLD_GLOBAL
10936 #  define LT_DLGLOBAL           RTLD_GLOBAL
10937 #else
10938 #  ifdef DL_GLOBAL
10939 #    define LT_DLGLOBAL         DL_GLOBAL
10940 #  else
10941 #    define LT_DLGLOBAL         0
10942 #  endif
10943 #endif
10944
10945 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10946    find out it does not work in some platform. */
10947 #ifndef LT_DLLAZY_OR_NOW
10948 #  ifdef RTLD_LAZY
10949 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10950 #  else
10951 #    ifdef DL_LAZY
10952 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10953 #    else
10954 #      ifdef RTLD_NOW
10955 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10956 #      else
10957 #        ifdef DL_NOW
10958 #          define LT_DLLAZY_OR_NOW      DL_NOW
10959 #        else
10960 #          define LT_DLLAZY_OR_NOW      0
10961 #        endif
10962 #      endif
10963 #    endif
10964 #  endif
10965 #endif
10966
10967 /* When -fvisbility=hidden is used, assume the code has been annotated
10968    correspondingly for the symbols needed.  */
10969 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10970 int fnord () __attribute__((visibility("default")));
10971 #endif
10972
10973 int fnord () { return 42; }
10974 int main ()
10975 {
10976   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10977   int status = $lt_dlunknown;
10978
10979   if (self)
10980     {
10981       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10982       else
10983         {
10984           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10985           else puts (dlerror ());
10986         }
10987       /* dlclose (self); */
10988     }
10989   else
10990     puts (dlerror ());
10991
10992   return status;
10993 }
10994 _LT_EOF
10995   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10996   (eval $ac_link) 2>&5
10997   ac_status=$?
10998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10999   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11000     (./conftest; exit; ) >&5 2>/dev/null
11001     lt_status=$?
11002     case x$lt_status in
11003       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11004       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11005       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11006     esac
11007   else :
11008     # compilation failed
11009     lt_cv_dlopen_self=no
11010   fi
11011 fi
11012 rm -fr conftest*
11013
11014
11015 fi
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11017 $as_echo "$lt_cv_dlopen_self" >&6; }
11018
11019     if test "x$lt_cv_dlopen_self" = xyes; then
11020       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11021       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11022 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11023 if ${lt_cv_dlopen_self_static+:} false; then :
11024   $as_echo_n "(cached) " >&6
11025 else
11026           if test "$cross_compiling" = yes; then :
11027   lt_cv_dlopen_self_static=cross
11028 else
11029   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11030   lt_status=$lt_dlunknown
11031   cat > conftest.$ac_ext <<_LT_EOF
11032 #line $LINENO "configure"
11033 #include "confdefs.h"
11034
11035 #if HAVE_DLFCN_H
11036 #include <dlfcn.h>
11037 #endif
11038
11039 #include <stdio.h>
11040
11041 #ifdef RTLD_GLOBAL
11042 #  define LT_DLGLOBAL           RTLD_GLOBAL
11043 #else
11044 #  ifdef DL_GLOBAL
11045 #    define LT_DLGLOBAL         DL_GLOBAL
11046 #  else
11047 #    define LT_DLGLOBAL         0
11048 #  endif
11049 #endif
11050
11051 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11052    find out it does not work in some platform. */
11053 #ifndef LT_DLLAZY_OR_NOW
11054 #  ifdef RTLD_LAZY
11055 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11056 #  else
11057 #    ifdef DL_LAZY
11058 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11059 #    else
11060 #      ifdef RTLD_NOW
11061 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11062 #      else
11063 #        ifdef DL_NOW
11064 #          define LT_DLLAZY_OR_NOW      DL_NOW
11065 #        else
11066 #          define LT_DLLAZY_OR_NOW      0
11067 #        endif
11068 #      endif
11069 #    endif
11070 #  endif
11071 #endif
11072
11073 /* When -fvisbility=hidden is used, assume the code has been annotated
11074    correspondingly for the symbols needed.  */
11075 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11076 int fnord () __attribute__((visibility("default")));
11077 #endif
11078
11079 int fnord () { return 42; }
11080 int main ()
11081 {
11082   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11083   int status = $lt_dlunknown;
11084
11085   if (self)
11086     {
11087       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11088       else
11089         {
11090           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11091           else puts (dlerror ());
11092         }
11093       /* dlclose (self); */
11094     }
11095   else
11096     puts (dlerror ());
11097
11098   return status;
11099 }
11100 _LT_EOF
11101   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11102   (eval $ac_link) 2>&5
11103   ac_status=$?
11104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11105   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11106     (./conftest; exit; ) >&5 2>/dev/null
11107     lt_status=$?
11108     case x$lt_status in
11109       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11110       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11111       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11112     esac
11113   else :
11114     # compilation failed
11115     lt_cv_dlopen_self_static=no
11116   fi
11117 fi
11118 rm -fr conftest*
11119
11120
11121 fi
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11123 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11124     fi
11125
11126     CPPFLAGS="$save_CPPFLAGS"
11127     LDFLAGS="$save_LDFLAGS"
11128     LIBS="$save_LIBS"
11129     ;;
11130   esac
11131
11132   case $lt_cv_dlopen_self in
11133   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11134   *) enable_dlopen_self=unknown ;;
11135   esac
11136
11137   case $lt_cv_dlopen_self_static in
11138   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11139   *) enable_dlopen_self_static=unknown ;;
11140   esac
11141 fi
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159 striplib=
11160 old_striplib=
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11162 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11163 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11164   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11165   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11167 $as_echo "yes" >&6; }
11168 else
11169 # FIXME - insert some real tests, host_os isn't really good enough
11170   case $host_os in
11171   darwin*)
11172     if test -n "$STRIP" ; then
11173       striplib="$STRIP -x"
11174       old_striplib="$STRIP -S"
11175       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11176 $as_echo "yes" >&6; }
11177     else
11178       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11180     fi
11181     ;;
11182   *)
11183     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11185     ;;
11186   esac
11187 fi
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200   # Report which library types will actually be built
11201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11202 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11204 $as_echo "$can_build_shared" >&6; }
11205
11206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11207 $as_echo_n "checking whether to build shared libraries... " >&6; }
11208   test "$can_build_shared" = "no" && enable_shared=no
11209
11210   # On AIX, shared libraries and static libraries use the same namespace, and
11211   # are all built from PIC.
11212   case $host_os in
11213   aix3*)
11214     test "$enable_shared" = yes && enable_static=no
11215     if test -n "$RANLIB"; then
11216       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11217       postinstall_cmds='$RANLIB $lib'
11218     fi
11219     ;;
11220
11221   aix[4-9]*)
11222     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11223       test "$enable_shared" = yes && enable_static=no
11224     fi
11225     ;;
11226   esac
11227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11228 $as_echo "$enable_shared" >&6; }
11229
11230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11231 $as_echo_n "checking whether to build static libraries... " >&6; }
11232   # Make sure either enable_shared or enable_static is yes.
11233   test "$enable_shared" = yes || enable_static=yes
11234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11235 $as_echo "$enable_static" >&6; }
11236
11237
11238
11239
11240 fi
11241 ac_ext=c
11242 ac_cpp='$CPP $CPPFLAGS'
11243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11246
11247 CC="$lt_save_CC"
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261         ac_config_commands="$ac_config_commands libtool"
11262
11263
11264
11265
11266 # Only expand once:
11267
11268
11269
11270 #AX_PTHREAD
11271
11272 # Checks for programs.
11273 ac_ext=c
11274 ac_cpp='$CPP $CPPFLAGS'
11275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11278 if test -n "$ac_tool_prefix"; then
11279   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11280 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11282 $as_echo_n "checking for $ac_word... " >&6; }
11283 if ${ac_cv_prog_CC+:} false; then :
11284   $as_echo_n "(cached) " >&6
11285 else
11286   if test -n "$CC"; then
11287   ac_cv_prog_CC="$CC" # Let the user override the test.
11288 else
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11291 do
11292   IFS=$as_save_IFS
11293   test -z "$as_dir" && as_dir=.
11294     for ac_exec_ext in '' $ac_executable_extensions; do
11295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11298     break 2
11299   fi
11300 done
11301   done
11302 IFS=$as_save_IFS
11303
11304 fi
11305 fi
11306 CC=$ac_cv_prog_CC
11307 if test -n "$CC"; then
11308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11309 $as_echo "$CC" >&6; }
11310 else
11311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 $as_echo "no" >&6; }
11313 fi
11314
11315
11316 fi
11317 if test -z "$ac_cv_prog_CC"; then
11318   ac_ct_CC=$CC
11319   # Extract the first word of "gcc", so it can be a program name with args.
11320 set dummy gcc; ac_word=$2
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11322 $as_echo_n "checking for $ac_word... " >&6; }
11323 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11324   $as_echo_n "(cached) " >&6
11325 else
11326   if test -n "$ac_ct_CC"; then
11327   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11328 else
11329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330 for as_dir in $PATH
11331 do
11332   IFS=$as_save_IFS
11333   test -z "$as_dir" && as_dir=.
11334     for ac_exec_ext in '' $ac_executable_extensions; do
11335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11336     ac_cv_prog_ac_ct_CC="gcc"
11337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11338     break 2
11339   fi
11340 done
11341   done
11342 IFS=$as_save_IFS
11343
11344 fi
11345 fi
11346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11347 if test -n "$ac_ct_CC"; then
11348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11349 $as_echo "$ac_ct_CC" >&6; }
11350 else
11351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352 $as_echo "no" >&6; }
11353 fi
11354
11355   if test "x$ac_ct_CC" = x; then
11356     CC=""
11357   else
11358     case $cross_compiling:$ac_tool_warned in
11359 yes:)
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11362 ac_tool_warned=yes ;;
11363 esac
11364     CC=$ac_ct_CC
11365   fi
11366 else
11367   CC="$ac_cv_prog_CC"
11368 fi
11369
11370 if test -z "$CC"; then
11371           if test -n "$ac_tool_prefix"; then
11372     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11373 set dummy ${ac_tool_prefix}cc; ac_word=$2
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375 $as_echo_n "checking for $ac_word... " >&6; }
11376 if ${ac_cv_prog_CC+:} false; then :
11377   $as_echo_n "(cached) " >&6
11378 else
11379   if test -n "$CC"; then
11380   ac_cv_prog_CC="$CC" # Let the user override the test.
11381 else
11382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383 for as_dir in $PATH
11384 do
11385   IFS=$as_save_IFS
11386   test -z "$as_dir" && as_dir=.
11387     for ac_exec_ext in '' $ac_executable_extensions; do
11388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11389     ac_cv_prog_CC="${ac_tool_prefix}cc"
11390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11391     break 2
11392   fi
11393 done
11394   done
11395 IFS=$as_save_IFS
11396
11397 fi
11398 fi
11399 CC=$ac_cv_prog_CC
11400 if test -n "$CC"; then
11401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11402 $as_echo "$CC" >&6; }
11403 else
11404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11406 fi
11407
11408
11409   fi
11410 fi
11411 if test -z "$CC"; then
11412   # Extract the first word of "cc", so it can be a program name with args.
11413 set dummy cc; ac_word=$2
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11415 $as_echo_n "checking for $ac_word... " >&6; }
11416 if ${ac_cv_prog_CC+:} false; then :
11417   $as_echo_n "(cached) " >&6
11418 else
11419   if test -n "$CC"; then
11420   ac_cv_prog_CC="$CC" # Let the user override the test.
11421 else
11422   ac_prog_rejected=no
11423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424 for as_dir in $PATH
11425 do
11426   IFS=$as_save_IFS
11427   test -z "$as_dir" && as_dir=.
11428     for ac_exec_ext in '' $ac_executable_extensions; do
11429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11430     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11431        ac_prog_rejected=yes
11432        continue
11433      fi
11434     ac_cv_prog_CC="cc"
11435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11436     break 2
11437   fi
11438 done
11439   done
11440 IFS=$as_save_IFS
11441
11442 if test $ac_prog_rejected = yes; then
11443   # We found a bogon in the path, so make sure we never use it.
11444   set dummy $ac_cv_prog_CC
11445   shift
11446   if test $# != 0; then
11447     # We chose a different compiler from the bogus one.
11448     # However, it has the same basename, so the bogon will be chosen
11449     # first if we set CC to just the basename; use the full file name.
11450     shift
11451     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11452   fi
11453 fi
11454 fi
11455 fi
11456 CC=$ac_cv_prog_CC
11457 if test -n "$CC"; then
11458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11459 $as_echo "$CC" >&6; }
11460 else
11461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462 $as_echo "no" >&6; }
11463 fi
11464
11465
11466 fi
11467 if test -z "$CC"; then
11468   if test -n "$ac_tool_prefix"; then
11469   for ac_prog in cl.exe
11470   do
11471     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11474 $as_echo_n "checking for $ac_word... " >&6; }
11475 if ${ac_cv_prog_CC+:} false; then :
11476   $as_echo_n "(cached) " >&6
11477 else
11478   if test -n "$CC"; then
11479   ac_cv_prog_CC="$CC" # Let the user override the test.
11480 else
11481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482 for as_dir in $PATH
11483 do
11484   IFS=$as_save_IFS
11485   test -z "$as_dir" && as_dir=.
11486     for ac_exec_ext in '' $ac_executable_extensions; do
11487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11488     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11490     break 2
11491   fi
11492 done
11493   done
11494 IFS=$as_save_IFS
11495
11496 fi
11497 fi
11498 CC=$ac_cv_prog_CC
11499 if test -n "$CC"; then
11500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11501 $as_echo "$CC" >&6; }
11502 else
11503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11505 fi
11506
11507
11508     test -n "$CC" && break
11509   done
11510 fi
11511 if test -z "$CC"; then
11512   ac_ct_CC=$CC
11513   for ac_prog in cl.exe
11514 do
11515   # Extract the first word of "$ac_prog", so it can be a program name with args.
11516 set dummy $ac_prog; ac_word=$2
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11518 $as_echo_n "checking for $ac_word... " >&6; }
11519 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11520   $as_echo_n "(cached) " >&6
11521 else
11522   if test -n "$ac_ct_CC"; then
11523   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11524 else
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in $PATH
11527 do
11528   IFS=$as_save_IFS
11529   test -z "$as_dir" && as_dir=.
11530     for ac_exec_ext in '' $ac_executable_extensions; do
11531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11532     ac_cv_prog_ac_ct_CC="$ac_prog"
11533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11534     break 2
11535   fi
11536 done
11537   done
11538 IFS=$as_save_IFS
11539
11540 fi
11541 fi
11542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11543 if test -n "$ac_ct_CC"; then
11544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11545 $as_echo "$ac_ct_CC" >&6; }
11546 else
11547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; }
11549 fi
11550
11551
11552   test -n "$ac_ct_CC" && break
11553 done
11554
11555   if test "x$ac_ct_CC" = x; then
11556     CC=""
11557   else
11558     case $cross_compiling:$ac_tool_warned in
11559 yes:)
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11562 ac_tool_warned=yes ;;
11563 esac
11564     CC=$ac_ct_CC
11565   fi
11566 fi
11567
11568 fi
11569
11570
11571 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11573 as_fn_error $? "no acceptable C compiler found in \$PATH
11574 See \`config.log' for more details" "$LINENO" 5; }
11575
11576 # Provide some information about the compiler.
11577 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11578 set X $ac_compile
11579 ac_compiler=$2
11580 for ac_option in --version -v -V -qversion; do
11581   { { ac_try="$ac_compiler $ac_option >&5"
11582 case "(($ac_try" in
11583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584   *) ac_try_echo=$ac_try;;
11585 esac
11586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11587 $as_echo "$ac_try_echo"; } >&5
11588   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11589   ac_status=$?
11590   if test -s conftest.err; then
11591     sed '10a\
11592 ... rest of stderr output deleted ...
11593          10q' conftest.err >conftest.er1
11594     cat conftest.er1 >&5
11595   fi
11596   rm -f conftest.er1 conftest.err
11597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11598   test $ac_status = 0; }
11599 done
11600
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11602 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11603 if ${ac_cv_c_compiler_gnu+:} false; then :
11604   $as_echo_n "(cached) " >&6
11605 else
11606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h.  */
11608
11609 int
11610 main ()
11611 {
11612 #ifndef __GNUC__
11613        choke me
11614 #endif
11615
11616   ;
11617   return 0;
11618 }
11619 _ACEOF
11620 if ac_fn_c_try_compile "$LINENO"; then :
11621   ac_compiler_gnu=yes
11622 else
11623   ac_compiler_gnu=no
11624 fi
11625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11627
11628 fi
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11630 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11631 if test $ac_compiler_gnu = yes; then
11632   GCC=yes
11633 else
11634   GCC=
11635 fi
11636 ac_test_CFLAGS=${CFLAGS+set}
11637 ac_save_CFLAGS=$CFLAGS
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11639 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11640 if ${ac_cv_prog_cc_g+:} false; then :
11641   $as_echo_n "(cached) " >&6
11642 else
11643   ac_save_c_werror_flag=$ac_c_werror_flag
11644    ac_c_werror_flag=yes
11645    ac_cv_prog_cc_g=no
11646    CFLAGS="-g"
11647    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h.  */
11649
11650 int
11651 main ()
11652 {
11653
11654   ;
11655   return 0;
11656 }
11657 _ACEOF
11658 if ac_fn_c_try_compile "$LINENO"; then :
11659   ac_cv_prog_cc_g=yes
11660 else
11661   CFLAGS=""
11662       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h.  */
11664
11665 int
11666 main ()
11667 {
11668
11669   ;
11670   return 0;
11671 }
11672 _ACEOF
11673 if ac_fn_c_try_compile "$LINENO"; then :
11674
11675 else
11676   ac_c_werror_flag=$ac_save_c_werror_flag
11677          CFLAGS="-g"
11678          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11679 /* end confdefs.h.  */
11680
11681 int
11682 main ()
11683 {
11684
11685   ;
11686   return 0;
11687 }
11688 _ACEOF
11689 if ac_fn_c_try_compile "$LINENO"; then :
11690   ac_cv_prog_cc_g=yes
11691 fi
11692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11693 fi
11694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695 fi
11696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11697    ac_c_werror_flag=$ac_save_c_werror_flag
11698 fi
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11700 $as_echo "$ac_cv_prog_cc_g" >&6; }
11701 if test "$ac_test_CFLAGS" = set; then
11702   CFLAGS=$ac_save_CFLAGS
11703 elif test $ac_cv_prog_cc_g = yes; then
11704   if test "$GCC" = yes; then
11705     CFLAGS="-g -O2"
11706   else
11707     CFLAGS="-g"
11708   fi
11709 else
11710   if test "$GCC" = yes; then
11711     CFLAGS="-O2"
11712   else
11713     CFLAGS=
11714   fi
11715 fi
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11717 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11718 if ${ac_cv_prog_cc_c89+:} false; then :
11719   $as_echo_n "(cached) " >&6
11720 else
11721   ac_cv_prog_cc_c89=no
11722 ac_save_CC=$CC
11723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724 /* end confdefs.h.  */
11725 #include <stdarg.h>
11726 #include <stdio.h>
11727 #include <sys/types.h>
11728 #include <sys/stat.h>
11729 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11730 struct buf { int x; };
11731 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11732 static char *e (p, i)
11733      char **p;
11734      int i;
11735 {
11736   return p[i];
11737 }
11738 static char *f (char * (*g) (char **, int), char **p, ...)
11739 {
11740   char *s;
11741   va_list v;
11742   va_start (v,p);
11743   s = g (p, va_arg (v,int));
11744   va_end (v);
11745   return s;
11746 }
11747
11748 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11749    function prototypes and stuff, but not '\xHH' hex character constants.
11750    These don't provoke an error unfortunately, instead are silently treated
11751    as 'x'.  The following induces an error, until -std is added to get
11752    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11753    array size at least.  It's necessary to write '\x00'==0 to get something
11754    that's true only with -std.  */
11755 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11756
11757 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11758    inside strings and character constants.  */
11759 #define FOO(x) 'x'
11760 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11761
11762 int test (int i, double x);
11763 struct s1 {int (*f) (int a);};
11764 struct s2 {int (*f) (double a);};
11765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11766 int argc;
11767 char **argv;
11768 int
11769 main ()
11770 {
11771 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11772   ;
11773   return 0;
11774 }
11775 _ACEOF
11776 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11777         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11778 do
11779   CC="$ac_save_CC $ac_arg"
11780   if ac_fn_c_try_compile "$LINENO"; then :
11781   ac_cv_prog_cc_c89=$ac_arg
11782 fi
11783 rm -f core conftest.err conftest.$ac_objext
11784   test "x$ac_cv_prog_cc_c89" != "xno" && break
11785 done
11786 rm -f conftest.$ac_ext
11787 CC=$ac_save_CC
11788
11789 fi
11790 # AC_CACHE_VAL
11791 case "x$ac_cv_prog_cc_c89" in
11792   x)
11793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11794 $as_echo "none needed" >&6; } ;;
11795   xno)
11796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11797 $as_echo "unsupported" >&6; } ;;
11798   *)
11799     CC="$CC $ac_cv_prog_cc_c89"
11800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11801 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11802 esac
11803 if test "x$ac_cv_prog_cc_c89" != xno; then :
11804
11805 fi
11806
11807 ac_ext=c
11808 ac_cpp='$CPP $CPPFLAGS'
11809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11812
11813 depcc="$CC"   am_compiler_list=
11814
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11816 $as_echo_n "checking dependency style of $depcc... " >&6; }
11817 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11818   $as_echo_n "(cached) " >&6
11819 else
11820   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11821   # We make a subdir and do the tests there.  Otherwise we can end up
11822   # making bogus files that we don't know about and never remove.  For
11823   # instance it was reported that on HP-UX the gcc test will end up
11824   # making a dummy file named `D' -- because `-MD' means `put the output
11825   # in D'.
11826   mkdir conftest.dir
11827   # Copy depcomp to subdir because otherwise we won't find it if we're
11828   # using a relative directory.
11829   cp "$am_depcomp" conftest.dir
11830   cd conftest.dir
11831   # We will build objects and dependencies in a subdirectory because
11832   # it helps to detect inapplicable dependency modes.  For instance
11833   # both Tru64's cc and ICC support -MD to output dependencies as a
11834   # side effect of compilation, but ICC will put the dependencies in
11835   # the current directory while Tru64 will put them in the object
11836   # directory.
11837   mkdir sub
11838
11839   am_cv_CC_dependencies_compiler_type=none
11840   if test "$am_compiler_list" = ""; then
11841      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11842   fi
11843   am__universal=false
11844   case " $depcc " in #(
11845      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11846      esac
11847
11848   for depmode in $am_compiler_list; do
11849     # Setup a source with many dependencies, because some compilers
11850     # like to wrap large dependency lists on column 80 (with \), and
11851     # we should not choose a depcomp mode which is confused by this.
11852     #
11853     # We need to recreate these files for each test, as the compiler may
11854     # overwrite some of them when testing with obscure command lines.
11855     # This happens at least with the AIX C compiler.
11856     : > sub/conftest.c
11857     for i in 1 2 3 4 5 6; do
11858       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11859       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11860       # Solaris 8's {/usr,}/bin/sh.
11861       touch sub/conftst$i.h
11862     done
11863     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11864
11865     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11866     # mode.  It turns out that the SunPro C++ compiler does not properly
11867     # handle `-M -o', and we need to detect this.  Also, some Intel
11868     # versions had trouble with output in subdirs
11869     am__obj=sub/conftest.${OBJEXT-o}
11870     am__minus_obj="-o $am__obj"
11871     case $depmode in
11872     gcc)
11873       # This depmode causes a compiler race in universal mode.
11874       test "$am__universal" = false || continue
11875       ;;
11876     nosideeffect)
11877       # after this tag, mechanisms are not by side-effect, so they'll
11878       # only be used when explicitly requested
11879       if test "x$enable_dependency_tracking" = xyes; then
11880         continue
11881       else
11882         break
11883       fi
11884       ;;
11885     msvisualcpp | msvcmsys)
11886       # This compiler won't grok `-c -o', but also, the minuso test has
11887       # not run yet.  These depmodes are late enough in the game, and
11888       # so weak that their functioning should not be impacted.
11889       am__obj=conftest.${OBJEXT-o}
11890       am__minus_obj=
11891       ;;
11892     none) break ;;
11893     esac
11894     if depmode=$depmode \
11895        source=sub/conftest.c object=$am__obj \
11896        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11897        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11898          >/dev/null 2>conftest.err &&
11899        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11900        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11901        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11902        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11903       # icc doesn't choke on unknown options, it will just issue warnings
11904       # or remarks (even with -Werror).  So we grep stderr for any message
11905       # that says an option was ignored or not supported.
11906       # When given -MP, icc 7.0 and 7.1 complain thusly:
11907       #   icc: Command line warning: ignoring option '-M'; no argument required
11908       # The diagnosis changed in icc 8.0:
11909       #   icc: Command line remark: option '-MP' not supported
11910       if (grep 'ignoring option' conftest.err ||
11911           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11912         am_cv_CC_dependencies_compiler_type=$depmode
11913         break
11914       fi
11915     fi
11916   done
11917
11918   cd ..
11919   rm -rf conftest.dir
11920 else
11921   am_cv_CC_dependencies_compiler_type=none
11922 fi
11923
11924 fi
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11926 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11927 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11928
11929  if
11930   test "x$enable_dependency_tracking" != xno \
11931   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11932   am__fastdepCC_TRUE=
11933   am__fastdepCC_FALSE='#'
11934 else
11935   am__fastdepCC_TRUE='#'
11936   am__fastdepCC_FALSE=
11937 fi
11938
11939
11940
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11942 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11943 set x ${MAKE-make}
11944 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11945 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11946   $as_echo_n "(cached) " >&6
11947 else
11948   cat >conftest.make <<\_ACEOF
11949 SHELL = /bin/sh
11950 all:
11951         @echo '@@@%%%=$(MAKE)=@@@%%%'
11952 _ACEOF
11953 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11954 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11955   *@@@%%%=?*=@@@%%%*)
11956     eval ac_cv_prog_make_${ac_make}_set=yes;;
11957   *)
11958     eval ac_cv_prog_make_${ac_make}_set=no;;
11959 esac
11960 rm -f conftest.make
11961 fi
11962 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11964 $as_echo "yes" >&6; }
11965   SET_MAKE=
11966 else
11967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11969   SET_MAKE="MAKE=${MAKE-make}"
11970 fi
11971
11972
11973
11974
11975 #
11976 #
11977 #
11978 # Check whether --enable-openssl was given.
11979 if test "${enable_openssl+set}" = set; then :
11980   enableval=$enable_openssl;  openssl=yes
11981
11982 fi
11983
11984
11985 if test "x$openssl" = "xyes" ; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
11987 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
11988 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
11989   $as_echo_n "(cached) " >&6
11990 else
11991   ac_check_lib_save_LIBS=$LIBS
11992 LIBS="-lssl  $LIBS"
11993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h.  */
11995
11996 /* Override any GCC internal prototype to avoid an error.
11997    Use char because int might match the return type of a GCC
11998    builtin and then its argument prototype would still apply.  */
11999 #ifdef __cplusplus
12000 extern "C"
12001 #endif
12002 char SSL_library_init ();
12003 int
12004 main ()
12005 {
12006 return SSL_library_init ();
12007   ;
12008   return 0;
12009 }
12010 _ACEOF
12011 if ac_fn_c_try_link "$LINENO"; then :
12012   ac_cv_lib_ssl_SSL_library_init=yes
12013 else
12014   ac_cv_lib_ssl_SSL_library_init=no
12015 fi
12016 rm -f core conftest.err conftest.$ac_objext \
12017     conftest$ac_exeext conftest.$ac_ext
12018 LIBS=$ac_check_lib_save_LIBS
12019 fi
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
12021 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
12022 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
12023   cat >>confdefs.h <<_ACEOF
12024 #define HAVE_LIBSSL 1
12025 _ACEOF
12026
12027   LIBS="-lssl $LIBS"
12028
12029 fi
12030
12031 CFLAGS="$CFLAGS -DLWS_OPENSSL_SUPPORT"
12032 fi
12033
12034 #
12035 #
12036 #
12037 # Check whether --enable-nofork was given.
12038 if test "${enable_nofork+set}" = set; then :
12039   enableval=$enable_nofork;  nofork=yes
12040
12041 fi
12042
12043
12044 if test "x$nofork" = "xyes" ; then
12045 CFLAGS="$CFLAGS -DLWS_NO_FORK"
12046 else
12047 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12048 if test "x$ac_cv_type_pid_t" = xyes; then :
12049
12050 else
12051
12052 cat >>confdefs.h <<_ACEOF
12053 #define pid_t int
12054 _ACEOF
12055
12056 fi
12057
12058 for ac_header in vfork.h
12059 do :
12060   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12061 if test "x$ac_cv_header_vfork_h" = xyes; then :
12062   cat >>confdefs.h <<_ACEOF
12063 #define HAVE_VFORK_H 1
12064 _ACEOF
12065
12066 fi
12067
12068 done
12069
12070 for ac_func in fork vfork
12071 do :
12072   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12073 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12074 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12075   cat >>confdefs.h <<_ACEOF
12076 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12077 _ACEOF
12078
12079 fi
12080 done
12081
12082 if test "x$ac_cv_func_fork" = xyes; then
12083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12084 $as_echo_n "checking for working fork... " >&6; }
12085 if ${ac_cv_func_fork_works+:} false; then :
12086   $as_echo_n "(cached) " >&6
12087 else
12088   if test "$cross_compiling" = yes; then :
12089   ac_cv_func_fork_works=cross
12090 else
12091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h.  */
12093 $ac_includes_default
12094 int
12095 main ()
12096 {
12097
12098           /* By Ruediger Kuhlmann. */
12099           return fork () < 0;
12100
12101   ;
12102   return 0;
12103 }
12104 _ACEOF
12105 if ac_fn_c_try_run "$LINENO"; then :
12106   ac_cv_func_fork_works=yes
12107 else
12108   ac_cv_func_fork_works=no
12109 fi
12110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12111   conftest.$ac_objext conftest.beam conftest.$ac_ext
12112 fi
12113
12114 fi
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12116 $as_echo "$ac_cv_func_fork_works" >&6; }
12117
12118 else
12119   ac_cv_func_fork_works=$ac_cv_func_fork
12120 fi
12121 if test "x$ac_cv_func_fork_works" = xcross; then
12122   case $host in
12123     *-*-amigaos* | *-*-msdosdjgpp*)
12124       # Override, as these systems have only a dummy fork() stub
12125       ac_cv_func_fork_works=no
12126       ;;
12127     *)
12128       ac_cv_func_fork_works=yes
12129       ;;
12130   esac
12131   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12132 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12133 fi
12134 ac_cv_func_vfork_works=$ac_cv_func_vfork
12135 if test "x$ac_cv_func_vfork" = xyes; then
12136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12137 $as_echo_n "checking for working vfork... " >&6; }
12138 if ${ac_cv_func_vfork_works+:} false; then :
12139   $as_echo_n "(cached) " >&6
12140 else
12141   if test "$cross_compiling" = yes; then :
12142   ac_cv_func_vfork_works=cross
12143 else
12144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h.  */
12146 /* Thanks to Paul Eggert for this test.  */
12147 $ac_includes_default
12148 #include <sys/wait.h>
12149 #ifdef HAVE_VFORK_H
12150 # include <vfork.h>
12151 #endif
12152 /* On some sparc systems, changes by the child to local and incoming
12153    argument registers are propagated back to the parent.  The compiler
12154    is told about this with #include <vfork.h>, but some compilers
12155    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12156    static variable whose address is put into a register that is
12157    clobbered by the vfork.  */
12158 static void
12159 #ifdef __cplusplus
12160 sparc_address_test (int arg)
12161 # else
12162 sparc_address_test (arg) int arg;
12163 #endif
12164 {
12165   static pid_t child;
12166   if (!child) {
12167     child = vfork ();
12168     if (child < 0) {
12169       perror ("vfork");
12170       _exit(2);
12171     }
12172     if (!child) {
12173       arg = getpid();
12174       write(-1, "", 0);
12175       _exit (arg);
12176     }
12177   }
12178 }
12179
12180 int
12181 main ()
12182 {
12183   pid_t parent = getpid ();
12184   pid_t child;
12185
12186   sparc_address_test (0);
12187
12188   child = vfork ();
12189
12190   if (child == 0) {
12191     /* Here is another test for sparc vfork register problems.  This
12192        test uses lots of local variables, at least as many local
12193        variables as main has allocated so far including compiler
12194        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
12195        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
12196        reuse the register of parent for one of the local variables,
12197        since it will think that parent can't possibly be used any more
12198        in this routine.  Assigning to the local variable will thus
12199        munge parent in the parent process.  */
12200     pid_t
12201       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12202       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12203     /* Convince the compiler that p..p7 are live; otherwise, it might
12204        use the same hardware register for all 8 local variables.  */
12205     if (p != p1 || p != p2 || p != p3 || p != p4
12206         || p != p5 || p != p6 || p != p7)
12207       _exit(1);
12208
12209     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12210        from child file descriptors.  If the child closes a descriptor
12211        before it execs or exits, this munges the parent's descriptor
12212        as well.  Test for this by closing stdout in the child.  */
12213     _exit(close(fileno(stdout)) != 0);
12214   } else {
12215     int status;
12216     struct stat st;
12217
12218     while (wait(&status) != child)
12219       ;
12220     return (
12221          /* Was there some problem with vforking?  */
12222          child < 0
12223
12224          /* Did the child fail?  (This shouldn't happen.)  */
12225          || status
12226
12227          /* Did the vfork/compiler bug occur?  */
12228          || parent != getpid()
12229
12230          /* Did the file descriptor bug occur?  */
12231          || fstat(fileno(stdout), &st) != 0
12232          );
12233   }
12234 }
12235 _ACEOF
12236 if ac_fn_c_try_run "$LINENO"; then :
12237   ac_cv_func_vfork_works=yes
12238 else
12239   ac_cv_func_vfork_works=no
12240 fi
12241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12242   conftest.$ac_objext conftest.beam conftest.$ac_ext
12243 fi
12244
12245 fi
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12247 $as_echo "$ac_cv_func_vfork_works" >&6; }
12248
12249 fi;
12250 if test "x$ac_cv_func_fork_works" = xcross; then
12251   ac_cv_func_vfork_works=$ac_cv_func_vfork
12252   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12253 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12254 fi
12255
12256 if test "x$ac_cv_func_vfork_works" = xyes; then
12257
12258 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12259
12260 else
12261
12262 $as_echo "#define vfork fork" >>confdefs.h
12263
12264 fi
12265 if test "x$ac_cv_func_fork_works" = xyes; then
12266
12267 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12268
12269 fi
12270
12271 fi
12272
12273 #
12274 #
12275 #
12276 # Check whether --enable-libcrypto was given.
12277 if test "${enable_libcrypto+set}" = set; then :
12278   enableval=$enable_libcrypto;  libcrypto=yes
12279
12280 fi
12281
12282
12283 if test "x$libcrypto" = "xyes" ; then
12284 CFLAGS="$CFLAGS -DLWS_LIBCRYPTO"
12285 LDFLAGS="$LDFLAGS -lcrypto"
12286 fi
12287  if test x$libcrypto = xyes; then
12288   LIBCRYPTO_TRUE=
12289   LIBCRYPTO_FALSE='#'
12290 else
12291   LIBCRYPTO_TRUE='#'
12292   LIBCRYPTO_FALSE=
12293 fi
12294
12295
12296
12297 #
12298 #
12299 #
12300
12301 # Check whether --with-client-cert-dir was given.
12302 if test "${with_client_cert_dir+set}" = set; then :
12303   withval=$with_client_cert_dir; clientcertdir=$withval
12304 else
12305   clientcertdir=/etc/pki/tls/certs/
12306
12307 fi
12308
12309
12310
12311
12312
12313
12314 #
12315 #
12316 #
12317 # Check whether --enable-noping was given.
12318 if test "${enable_noping+set}" = set; then :
12319   enableval=$enable_noping;  noping=yes
12320
12321 fi
12322
12323
12324  if test x$noping = xyes; then
12325   NOPING_TRUE=
12326   NOPING_FALSE='#'
12327 else
12328   NOPING_TRUE='#'
12329   NOPING_FALSE=
12330 fi
12331
12332
12333
12334
12335 # Checks for header files.
12336 for ac_header in zlib.h fcntl.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h
12337 do :
12338   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12339 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12340 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12341   cat >>confdefs.h <<_ACEOF
12342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12343 _ACEOF
12344
12345 fi
12346
12347 done
12348
12349
12350 # Checks for typedefs, structures, and compiler characteristics.
12351 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12352 if test "x$ac_cv_type_size_t" = xyes; then :
12353
12354 else
12355
12356 cat >>confdefs.h <<_ACEOF
12357 #define size_t unsigned int
12358 _ACEOF
12359
12360 fi
12361
12362
12363 # Checks for library functions.
12364
12365 for ac_header in stdlib.h
12366 do :
12367   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12368 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12369   cat >>confdefs.h <<_ACEOF
12370 #define HAVE_STDLIB_H 1
12371 _ACEOF
12372
12373 fi
12374
12375 done
12376
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12378 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12379 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12380   $as_echo_n "(cached) " >&6
12381 else
12382   if test "$cross_compiling" = yes; then :
12383   ac_cv_func_malloc_0_nonnull=no
12384 else
12385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h.  */
12387 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12388 # include <stdlib.h>
12389 #else
12390 char *malloc ();
12391 #endif
12392
12393 int
12394 main ()
12395 {
12396 return ! malloc (0);
12397   ;
12398   return 0;
12399 }
12400 _ACEOF
12401 if ac_fn_c_try_run "$LINENO"; then :
12402   ac_cv_func_malloc_0_nonnull=yes
12403 else
12404   ac_cv_func_malloc_0_nonnull=no
12405 fi
12406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12407   conftest.$ac_objext conftest.beam conftest.$ac_ext
12408 fi
12409
12410 fi
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12412 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12413 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12414
12415 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12416
12417 else
12418   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12419
12420    case " $LIBOBJS " in
12421   *" malloc.$ac_objext "* ) ;;
12422   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12423  ;;
12424 esac
12425
12426
12427 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12428
12429 fi
12430
12431
12432 for ac_header in stdlib.h
12433 do :
12434   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12435 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12436   cat >>confdefs.h <<_ACEOF
12437 #define HAVE_STDLIB_H 1
12438 _ACEOF
12439
12440 fi
12441
12442 done
12443
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12445 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12446 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
12447   $as_echo_n "(cached) " >&6
12448 else
12449   if test "$cross_compiling" = yes; then :
12450   ac_cv_func_realloc_0_nonnull=no
12451 else
12452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h.  */
12454 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12455 # include <stdlib.h>
12456 #else
12457 char *realloc ();
12458 #endif
12459
12460 int
12461 main ()
12462 {
12463 return ! realloc (0, 0);
12464   ;
12465   return 0;
12466 }
12467 _ACEOF
12468 if ac_fn_c_try_run "$LINENO"; then :
12469   ac_cv_func_realloc_0_nonnull=yes
12470 else
12471   ac_cv_func_realloc_0_nonnull=no
12472 fi
12473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12474   conftest.$ac_objext conftest.beam conftest.$ac_ext
12475 fi
12476
12477 fi
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12479 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12480 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12481
12482 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12483
12484 else
12485   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12486
12487    case " $LIBOBJS " in
12488   *" realloc.$ac_objext "* ) ;;
12489   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12490  ;;
12491 esac
12492
12493
12494 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12495
12496 fi
12497
12498
12499 for ac_func in bzero memset socket strerror
12500 do :
12501   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12502 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12503 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12504   cat >>confdefs.h <<_ACEOF
12505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12506 _ACEOF
12507
12508 fi
12509 done
12510
12511
12512 ac_config_files="$ac_config_files Makefile lib/Makefile test-server/Makefile"
12513
12514
12515 cat >confcache <<\_ACEOF
12516 # This file is a shell script that caches the results of configure
12517 # tests run on this system so they can be shared between configure
12518 # scripts and configure runs, see configure's option --config-cache.
12519 # It is not useful on other systems.  If it contains results you don't
12520 # want to keep, you may remove or edit it.
12521 #
12522 # config.status only pays attention to the cache file if you give it
12523 # the --recheck option to rerun configure.
12524 #
12525 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12526 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12527 # following values.
12528
12529 _ACEOF
12530
12531 # The following way of writing the cache mishandles newlines in values,
12532 # but we know of no workaround that is simple, portable, and efficient.
12533 # So, we kill variables containing newlines.
12534 # Ultrix sh set writes to stderr and can't be redirected directly,
12535 # and sets the high bit in the cache file unless we assign to the vars.
12536 (
12537   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12538     eval ac_val=\$$ac_var
12539     case $ac_val in #(
12540     *${as_nl}*)
12541       case $ac_var in #(
12542       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12543 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12544       esac
12545       case $ac_var in #(
12546       _ | IFS | as_nl) ;; #(
12547       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12548       *) { eval $ac_var=; unset $ac_var;} ;;
12549       esac ;;
12550     esac
12551   done
12552
12553   (set) 2>&1 |
12554     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12555     *${as_nl}ac_space=\ *)
12556       # `set' does not quote correctly, so add quotes: double-quote
12557       # substitution turns \\\\ into \\, and sed turns \\ into \.
12558       sed -n \
12559         "s/'/'\\\\''/g;
12560           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12561       ;; #(
12562     *)
12563       # `set' quotes correctly as required by POSIX, so do not add quotes.
12564       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12565       ;;
12566     esac |
12567     sort
12568 ) |
12569   sed '
12570      /^ac_cv_env_/b end
12571      t clear
12572      :clear
12573      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12574      t end
12575      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12576      :end' >>confcache
12577 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12578   if test -w "$cache_file"; then
12579     if test "x$cache_file" != "x/dev/null"; then
12580       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12581 $as_echo "$as_me: updating cache $cache_file" >&6;}
12582       if test ! -f "$cache_file" || test -h "$cache_file"; then
12583         cat confcache >"$cache_file"
12584       else
12585         case $cache_file in #(
12586         */* | ?:*)
12587           mv -f confcache "$cache_file"$$ &&
12588           mv -f "$cache_file"$$ "$cache_file" ;; #(
12589         *)
12590           mv -f confcache "$cache_file" ;;
12591         esac
12592       fi
12593     fi
12594   else
12595     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12596 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12597   fi
12598 fi
12599 rm -f confcache
12600
12601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12602 # Let make expand exec_prefix.
12603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12604
12605 DEFS=-DHAVE_CONFIG_H
12606
12607 ac_libobjs=
12608 ac_ltlibobjs=
12609 U=
12610 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12611   # 1. Remove the extension, and $U if already installed.
12612   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12613   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12614   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12615   #    will be set to the directory where LIBOBJS objects are built.
12616   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12617   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12618 done
12619 LIBOBJS=$ac_libobjs
12620
12621 LTLIBOBJS=$ac_ltlibobjs
12622
12623
12624  if test -n "$EXEEXT"; then
12625   am__EXEEXT_TRUE=
12626   am__EXEEXT_FALSE='#'
12627 else
12628   am__EXEEXT_TRUE='#'
12629   am__EXEEXT_FALSE=
12630 fi
12631
12632 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12633   as_fn_error $? "conditional \"AMDEP\" was never defined.
12634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12635 fi
12636 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12637   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12639 fi
12640 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12641   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12643 fi
12644 if test -z "${LIBCRYPTO_TRUE}" && test -z "${LIBCRYPTO_FALSE}"; then
12645   as_fn_error $? "conditional \"LIBCRYPTO\" was never defined.
12646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12647 fi
12648 if test -z "${NOPING_TRUE}" && test -z "${NOPING_FALSE}"; then
12649   as_fn_error $? "conditional \"NOPING\" was never defined.
12650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12651 fi
12652
12653 : "${CONFIG_STATUS=./config.status}"
12654 ac_write_fail=0
12655 ac_clean_files_save=$ac_clean_files
12656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12658 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12659 as_write_fail=0
12660 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12661 #! $SHELL
12662 # Generated by $as_me.
12663 # Run this file to recreate the current configuration.
12664 # Compiler output produced by configure, useful for debugging
12665 # configure, is in config.log if it exists.
12666
12667 debug=false
12668 ac_cs_recheck=false
12669 ac_cs_silent=false
12670
12671 SHELL=\${CONFIG_SHELL-$SHELL}
12672 export SHELL
12673 _ASEOF
12674 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12675 ## -------------------- ##
12676 ## M4sh Initialization. ##
12677 ## -------------------- ##
12678
12679 # Be more Bourne compatible
12680 DUALCASE=1; export DUALCASE # for MKS sh
12681 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12682   emulate sh
12683   NULLCMD=:
12684   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12685   # is contrary to our usage.  Disable this feature.
12686   alias -g '${1+"$@"}'='"$@"'
12687   setopt NO_GLOB_SUBST
12688 else
12689   case `(set -o) 2>/dev/null` in #(
12690   *posix*) :
12691     set -o posix ;; #(
12692   *) :
12693      ;;
12694 esac
12695 fi
12696
12697
12698 as_nl='
12699 '
12700 export as_nl
12701 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12702 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12703 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12705 # Prefer a ksh shell builtin over an external printf program on Solaris,
12706 # but without wasting forks for bash or zsh.
12707 if test -z "$BASH_VERSION$ZSH_VERSION" \
12708     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12709   as_echo='print -r --'
12710   as_echo_n='print -rn --'
12711 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12712   as_echo='printf %s\n'
12713   as_echo_n='printf %s'
12714 else
12715   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12716     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12717     as_echo_n='/usr/ucb/echo -n'
12718   else
12719     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12720     as_echo_n_body='eval
12721       arg=$1;
12722       case $arg in #(
12723       *"$as_nl"*)
12724         expr "X$arg" : "X\\(.*\\)$as_nl";
12725         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12726       esac;
12727       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12728     '
12729     export as_echo_n_body
12730     as_echo_n='sh -c $as_echo_n_body as_echo'
12731   fi
12732   export as_echo_body
12733   as_echo='sh -c $as_echo_body as_echo'
12734 fi
12735
12736 # The user is always right.
12737 if test "${PATH_SEPARATOR+set}" != set; then
12738   PATH_SEPARATOR=:
12739   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12740     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12741       PATH_SEPARATOR=';'
12742   }
12743 fi
12744
12745
12746 # IFS
12747 # We need space, tab and new line, in precisely that order.  Quoting is
12748 # there to prevent editors from complaining about space-tab.
12749 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12750 # splitting by setting IFS to empty value.)
12751 IFS=" ""        $as_nl"
12752
12753 # Find who we are.  Look in the path if we contain no directory separator.
12754 as_myself=
12755 case $0 in #((
12756   *[\\/]* ) as_myself=$0 ;;
12757   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758 for as_dir in $PATH
12759 do
12760   IFS=$as_save_IFS
12761   test -z "$as_dir" && as_dir=.
12762     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12763   done
12764 IFS=$as_save_IFS
12765
12766      ;;
12767 esac
12768 # We did not find ourselves, most probably we were run as `sh COMMAND'
12769 # in which case we are not to be found in the path.
12770 if test "x$as_myself" = x; then
12771   as_myself=$0
12772 fi
12773 if test ! -f "$as_myself"; then
12774   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12775   exit 1
12776 fi
12777
12778 # Unset variables that we do not need and which cause bugs (e.g. in
12779 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12780 # suppresses any "Segmentation fault" message there.  '((' could
12781 # trigger a bug in pdksh 5.2.14.
12782 for as_var in BASH_ENV ENV MAIL MAILPATH
12783 do eval test x\${$as_var+set} = xset \
12784   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12785 done
12786 PS1='$ '
12787 PS2='> '
12788 PS4='+ '
12789
12790 # NLS nuisances.
12791 LC_ALL=C
12792 export LC_ALL
12793 LANGUAGE=C
12794 export LANGUAGE
12795
12796 # CDPATH.
12797 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12798
12799
12800 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12801 # ----------------------------------------
12802 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12803 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12804 # script with STATUS, using 1 if that was 0.
12805 as_fn_error ()
12806 {
12807   as_status=$1; test $as_status -eq 0 && as_status=1
12808   if test "$4"; then
12809     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12810     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12811   fi
12812   $as_echo "$as_me: error: $2" >&2
12813   as_fn_exit $as_status
12814 } # as_fn_error
12815
12816
12817 # as_fn_set_status STATUS
12818 # -----------------------
12819 # Set $? to STATUS, without forking.
12820 as_fn_set_status ()
12821 {
12822   return $1
12823 } # as_fn_set_status
12824
12825 # as_fn_exit STATUS
12826 # -----------------
12827 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12828 as_fn_exit ()
12829 {
12830   set +e
12831   as_fn_set_status $1
12832   exit $1
12833 } # as_fn_exit
12834
12835 # as_fn_unset VAR
12836 # ---------------
12837 # Portably unset VAR.
12838 as_fn_unset ()
12839 {
12840   { eval $1=; unset $1;}
12841 }
12842 as_unset=as_fn_unset
12843 # as_fn_append VAR VALUE
12844 # ----------------------
12845 # Append the text in VALUE to the end of the definition contained in VAR. Take
12846 # advantage of any shell optimizations that allow amortized linear growth over
12847 # repeated appends, instead of the typical quadratic growth present in naive
12848 # implementations.
12849 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12850   eval 'as_fn_append ()
12851   {
12852     eval $1+=\$2
12853   }'
12854 else
12855   as_fn_append ()
12856   {
12857     eval $1=\$$1\$2
12858   }
12859 fi # as_fn_append
12860
12861 # as_fn_arith ARG...
12862 # ------------------
12863 # Perform arithmetic evaluation on the ARGs, and store the result in the
12864 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12865 # must be portable across $(()) and expr.
12866 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12867   eval 'as_fn_arith ()
12868   {
12869     as_val=$(( $* ))
12870   }'
12871 else
12872   as_fn_arith ()
12873   {
12874     as_val=`expr "$@" || test $? -eq 1`
12875   }
12876 fi # as_fn_arith
12877
12878
12879 if expr a : '\(a\)' >/dev/null 2>&1 &&
12880    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12881   as_expr=expr
12882 else
12883   as_expr=false
12884 fi
12885
12886 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12887   as_basename=basename
12888 else
12889   as_basename=false
12890 fi
12891
12892 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12893   as_dirname=dirname
12894 else
12895   as_dirname=false
12896 fi
12897
12898 as_me=`$as_basename -- "$0" ||
12899 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12900          X"$0" : 'X\(//\)$' \| \
12901          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12902 $as_echo X/"$0" |
12903     sed '/^.*\/\([^/][^/]*\)\/*$/{
12904             s//\1/
12905             q
12906           }
12907           /^X\/\(\/\/\)$/{
12908             s//\1/
12909             q
12910           }
12911           /^X\/\(\/\).*/{
12912             s//\1/
12913             q
12914           }
12915           s/.*/./; q'`
12916
12917 # Avoid depending upon Character Ranges.
12918 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12919 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12920 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12921 as_cr_digits='0123456789'
12922 as_cr_alnum=$as_cr_Letters$as_cr_digits
12923
12924 ECHO_C= ECHO_N= ECHO_T=
12925 case `echo -n x` in #(((((
12926 -n*)
12927   case `echo 'xy\c'` in
12928   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12929   xy)  ECHO_C='\c';;
12930   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12931        ECHO_T=' ';;
12932   esac;;
12933 *)
12934   ECHO_N='-n';;
12935 esac
12936
12937 rm -f conf$$ conf$$.exe conf$$.file
12938 if test -d conf$$.dir; then
12939   rm -f conf$$.dir/conf$$.file
12940 else
12941   rm -f conf$$.dir
12942   mkdir conf$$.dir 2>/dev/null
12943 fi
12944 if (echo >conf$$.file) 2>/dev/null; then
12945   if ln -s conf$$.file conf$$ 2>/dev/null; then
12946     as_ln_s='ln -s'
12947     # ... but there are two gotchas:
12948     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12949     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12950     # In both cases, we have to default to `cp -p'.
12951     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12952       as_ln_s='cp -p'
12953   elif ln conf$$.file conf$$ 2>/dev/null; then
12954     as_ln_s=ln
12955   else
12956     as_ln_s='cp -p'
12957   fi
12958 else
12959   as_ln_s='cp -p'
12960 fi
12961 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12962 rmdir conf$$.dir 2>/dev/null
12963
12964
12965 # as_fn_mkdir_p
12966 # -------------
12967 # Create "$as_dir" as a directory, including parents if necessary.
12968 as_fn_mkdir_p ()
12969 {
12970
12971   case $as_dir in #(
12972   -*) as_dir=./$as_dir;;
12973   esac
12974   test -d "$as_dir" || eval $as_mkdir_p || {
12975     as_dirs=
12976     while :; do
12977       case $as_dir in #(
12978       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12979       *) as_qdir=$as_dir;;
12980       esac
12981       as_dirs="'$as_qdir' $as_dirs"
12982       as_dir=`$as_dirname -- "$as_dir" ||
12983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12984          X"$as_dir" : 'X\(//\)[^/]' \| \
12985          X"$as_dir" : 'X\(//\)$' \| \
12986          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12987 $as_echo X"$as_dir" |
12988     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12989             s//\1/
12990             q
12991           }
12992           /^X\(\/\/\)[^/].*/{
12993             s//\1/
12994             q
12995           }
12996           /^X\(\/\/\)$/{
12997             s//\1/
12998             q
12999           }
13000           /^X\(\/\).*/{
13001             s//\1/
13002             q
13003           }
13004           s/.*/./; q'`
13005       test -d "$as_dir" && break
13006     done
13007     test -z "$as_dirs" || eval "mkdir $as_dirs"
13008   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13009
13010
13011 } # as_fn_mkdir_p
13012 if mkdir -p . 2>/dev/null; then
13013   as_mkdir_p='mkdir -p "$as_dir"'
13014 else
13015   test -d ./-p && rmdir ./-p
13016   as_mkdir_p=false
13017 fi
13018
13019 if test -x / >/dev/null 2>&1; then
13020   as_test_x='test -x'
13021 else
13022   if ls -dL / >/dev/null 2>&1; then
13023     as_ls_L_option=L
13024   else
13025     as_ls_L_option=
13026   fi
13027   as_test_x='
13028     eval sh -c '\''
13029       if test -d "$1"; then
13030         test -d "$1/.";
13031       else
13032         case $1 in #(
13033         -*)set "./$1";;
13034         esac;
13035         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13036         ???[sx]*):;;*)false;;esac;fi
13037     '\'' sh
13038   '
13039 fi
13040 as_executable_p=$as_test_x
13041
13042 # Sed expression to map a string onto a valid CPP name.
13043 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13044
13045 # Sed expression to map a string onto a valid variable name.
13046 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13047
13048
13049 exec 6>&1
13050 ## ----------------------------------- ##
13051 ## Main body of $CONFIG_STATUS script. ##
13052 ## ----------------------------------- ##
13053 _ASEOF
13054 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13055
13056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13057 # Save the log message, to keep $0 and so on meaningful, and to
13058 # report actual input values of CONFIG_FILES etc. instead of their
13059 # values after options handling.
13060 ac_log="
13061 This file was extended by libwebsockets $as_me 0.3, which was
13062 generated by GNU Autoconf 2.68.  Invocation command line was
13063
13064   CONFIG_FILES    = $CONFIG_FILES
13065   CONFIG_HEADERS  = $CONFIG_HEADERS
13066   CONFIG_LINKS    = $CONFIG_LINKS
13067   CONFIG_COMMANDS = $CONFIG_COMMANDS
13068   $ $0 $@
13069
13070 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13071 "
13072
13073 _ACEOF
13074
13075 case $ac_config_files in *"
13076 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13077 esac
13078
13079 case $ac_config_headers in *"
13080 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13081 esac
13082
13083
13084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13085 # Files that config.status was made for.
13086 config_files="$ac_config_files"
13087 config_headers="$ac_config_headers"
13088 config_commands="$ac_config_commands"
13089
13090 _ACEOF
13091
13092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13093 ac_cs_usage="\
13094 \`$as_me' instantiates files and other configuration actions
13095 from templates according to the current configuration.  Unless the files
13096 and actions are specified as TAGs, all are instantiated by default.
13097
13098 Usage: $0 [OPTION]... [TAG]...
13099
13100   -h, --help       print this help, then exit
13101   -V, --version    print version number and configuration settings, then exit
13102       --config     print configuration, then exit
13103   -q, --quiet, --silent
13104                    do not print progress messages
13105   -d, --debug      don't remove temporary files
13106       --recheck    update $as_me by reconfiguring in the same conditions
13107       --file=FILE[:TEMPLATE]
13108                    instantiate the configuration file FILE
13109       --header=FILE[:TEMPLATE]
13110                    instantiate the configuration header FILE
13111
13112 Configuration files:
13113 $config_files
13114
13115 Configuration headers:
13116 $config_headers
13117
13118 Configuration commands:
13119 $config_commands
13120
13121 Report bugs to <andy@warmcat.com>."
13122
13123 _ACEOF
13124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13125 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13126 ac_cs_version="\\
13127 libwebsockets config.status 0.3
13128 configured by $0, generated by GNU Autoconf 2.68,
13129   with options \\"\$ac_cs_config\\"
13130
13131 Copyright (C) 2010 Free Software Foundation, Inc.
13132 This config.status script is free software; the Free Software Foundation
13133 gives unlimited permission to copy, distribute and modify it."
13134
13135 ac_pwd='$ac_pwd'
13136 srcdir='$srcdir'
13137 INSTALL='$INSTALL'
13138 MKDIR_P='$MKDIR_P'
13139 AWK='$AWK'
13140 test -n "\$AWK" || AWK=awk
13141 _ACEOF
13142
13143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13144 # The default lists apply if the user does not specify any file.
13145 ac_need_defaults=:
13146 while test $# != 0
13147 do
13148   case $1 in
13149   --*=?*)
13150     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13151     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13152     ac_shift=:
13153     ;;
13154   --*=)
13155     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13156     ac_optarg=
13157     ac_shift=:
13158     ;;
13159   *)
13160     ac_option=$1
13161     ac_optarg=$2
13162     ac_shift=shift
13163     ;;
13164   esac
13165
13166   case $ac_option in
13167   # Handling of the options.
13168   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13169     ac_cs_recheck=: ;;
13170   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13171     $as_echo "$ac_cs_version"; exit ;;
13172   --config | --confi | --conf | --con | --co | --c )
13173     $as_echo "$ac_cs_config"; exit ;;
13174   --debug | --debu | --deb | --de | --d | -d )
13175     debug=: ;;
13176   --file | --fil | --fi | --f )
13177     $ac_shift
13178     case $ac_optarg in
13179     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13180     '') as_fn_error $? "missing file argument" ;;
13181     esac
13182     as_fn_append CONFIG_FILES " '$ac_optarg'"
13183     ac_need_defaults=false;;
13184   --header | --heade | --head | --hea )
13185     $ac_shift
13186     case $ac_optarg in
13187     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13188     esac
13189     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13190     ac_need_defaults=false;;
13191   --he | --h)
13192     # Conflict between --help and --header
13193     as_fn_error $? "ambiguous option: \`$1'
13194 Try \`$0 --help' for more information.";;
13195   --help | --hel | -h )
13196     $as_echo "$ac_cs_usage"; exit ;;
13197   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13198   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13199     ac_cs_silent=: ;;
13200
13201   # This is an error.
13202   -*) as_fn_error $? "unrecognized option: \`$1'
13203 Try \`$0 --help' for more information." ;;
13204
13205   *) as_fn_append ac_config_targets " $1"
13206      ac_need_defaults=false ;;
13207
13208   esac
13209   shift
13210 done
13211
13212 ac_configure_extra_args=
13213
13214 if $ac_cs_silent; then
13215   exec 6>/dev/null
13216   ac_configure_extra_args="$ac_configure_extra_args --silent"
13217 fi
13218
13219 _ACEOF
13220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13221 if \$ac_cs_recheck; then
13222   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13223   shift
13224   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13225   CONFIG_SHELL='$SHELL'
13226   export CONFIG_SHELL
13227   exec "\$@"
13228 fi
13229
13230 _ACEOF
13231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13232 exec 5>>config.log
13233 {
13234   echo
13235   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13236 ## Running $as_me. ##
13237 _ASBOX
13238   $as_echo "$ac_log"
13239 } >&5
13240
13241 _ACEOF
13242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13243 #
13244 # INIT-COMMANDS
13245 #
13246 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13247
13248
13249 # The HP-UX ksh and POSIX shell print the target directory to stdout
13250 # if CDPATH is set.
13251 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13252
13253 sed_quote_subst='$sed_quote_subst'
13254 double_quote_subst='$double_quote_subst'
13255 delay_variable_subst='$delay_variable_subst'
13256 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13257 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13258 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13259 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13260 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13261 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13262 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13263 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13264 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13265 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13266 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13267 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13268 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13269 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13270 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13271 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13272 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13273 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13274 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13275 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13276 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13277 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13278 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13279 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13280 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13281 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13282 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13283 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13284 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13285 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13286 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13287 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13288 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13289 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13290 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13291 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13292 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13293 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13294 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13295 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13296 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13297 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13298 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13299 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13300 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13301 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13302 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13303 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13304 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13305 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13306 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13307 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13308 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13309 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13310 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13311 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"`'
13312 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13313 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13314 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13315 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13316 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13317 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13318 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13319 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13320 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13321 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13322 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13323 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13324 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13325 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13326 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13327 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13328 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13329 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13330 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13331 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13332 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13333 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13334 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13335 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13336 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13337 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13338 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13339 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13340 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13341 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13342 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13343 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13344 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13345 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13346 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13347 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13348 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13349 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13350 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13351 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13352 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13353 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13354 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13355 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13356 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13357 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13358 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13359 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13360 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13361 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13362 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13363 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13364 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13365 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13366 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13367 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13368 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13369 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13370 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13371 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13372 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13373 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13374 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13375 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13376 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13377 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13378 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13379 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13380 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13381 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13382 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13383 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13384 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13385 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13386
13387 LTCC='$LTCC'
13388 LTCFLAGS='$LTCFLAGS'
13389 compiler='$compiler_DEFAULT'
13390
13391 # A function that is used when there is no print builtin or printf.
13392 func_fallback_echo ()
13393 {
13394   eval 'cat <<_LTECHO_EOF
13395 \$1
13396 _LTECHO_EOF'
13397 }
13398
13399 # Quote evaled strings.
13400 for var in SHELL \
13401 ECHO \
13402 SED \
13403 GREP \
13404 EGREP \
13405 FGREP \
13406 LD \
13407 NM \
13408 LN_S \
13409 lt_SP2NL \
13410 lt_NL2SP \
13411 reload_flag \
13412 OBJDUMP \
13413 deplibs_check_method \
13414 file_magic_cmd \
13415 file_magic_glob \
13416 want_nocaseglob \
13417 DLLTOOL \
13418 sharedlib_from_linklib_cmd \
13419 AR \
13420 AR_FLAGS \
13421 archiver_list_spec \
13422 STRIP \
13423 RANLIB \
13424 CC \
13425 CFLAGS \
13426 compiler \
13427 lt_cv_sys_global_symbol_pipe \
13428 lt_cv_sys_global_symbol_to_cdecl \
13429 lt_cv_sys_global_symbol_to_c_name_address \
13430 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13431 nm_file_list_spec \
13432 lt_prog_compiler_no_builtin_flag \
13433 lt_prog_compiler_pic \
13434 lt_prog_compiler_wl \
13435 lt_prog_compiler_static \
13436 lt_cv_prog_compiler_c_o \
13437 need_locks \
13438 MANIFEST_TOOL \
13439 DSYMUTIL \
13440 NMEDIT \
13441 LIPO \
13442 OTOOL \
13443 OTOOL64 \
13444 shrext_cmds \
13445 export_dynamic_flag_spec \
13446 whole_archive_flag_spec \
13447 compiler_needs_object \
13448 with_gnu_ld \
13449 allow_undefined_flag \
13450 no_undefined_flag \
13451 hardcode_libdir_flag_spec \
13452 hardcode_libdir_flag_spec_ld \
13453 hardcode_libdir_separator \
13454 exclude_expsyms \
13455 include_expsyms \
13456 file_list_spec \
13457 variables_saved_for_relink \
13458 libname_spec \
13459 library_names_spec \
13460 soname_spec \
13461 install_override_mode \
13462 finish_eval \
13463 old_striplib \
13464 striplib; do
13465     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13466     *[\\\\\\\`\\"\\\$]*)
13467       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13468       ;;
13469     *)
13470       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13471       ;;
13472     esac
13473 done
13474
13475 # Double-quote double-evaled strings.
13476 for var in reload_cmds \
13477 old_postinstall_cmds \
13478 old_postuninstall_cmds \
13479 old_archive_cmds \
13480 extract_expsyms_cmds \
13481 old_archive_from_new_cmds \
13482 old_archive_from_expsyms_cmds \
13483 archive_cmds \
13484 archive_expsym_cmds \
13485 module_cmds \
13486 module_expsym_cmds \
13487 export_symbols_cmds \
13488 prelink_cmds \
13489 postlink_cmds \
13490 postinstall_cmds \
13491 postuninstall_cmds \
13492 finish_cmds \
13493 sys_lib_search_path_spec \
13494 sys_lib_dlsearch_path_spec; do
13495     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13496     *[\\\\\\\`\\"\\\$]*)
13497       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13498       ;;
13499     *)
13500       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13501       ;;
13502     esac
13503 done
13504
13505 ac_aux_dir='$ac_aux_dir'
13506 xsi_shell='$xsi_shell'
13507 lt_shell_append='$lt_shell_append'
13508
13509 # See if we are running on zsh, and set the options which allow our
13510 # commands through without removal of \ escapes INIT.
13511 if test -n "\${ZSH_VERSION+set}" ; then
13512    setopt NO_GLOB_SUBST
13513 fi
13514
13515
13516     PACKAGE='$PACKAGE'
13517     VERSION='$VERSION'
13518     TIMESTAMP='$TIMESTAMP'
13519     RM='$RM'
13520     ofile='$ofile'
13521
13522
13523
13524
13525 _ACEOF
13526
13527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13528
13529 # Handling of arguments.
13530 for ac_config_target in $ac_config_targets
13531 do
13532   case $ac_config_target in
13533     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13534     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13535     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13536     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13537     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13538     "test-server/Makefile") CONFIG_FILES="$CONFIG_FILES test-server/Makefile" ;;
13539
13540   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13541   esac
13542 done
13543
13544
13545 # If the user did not use the arguments to specify the items to instantiate,
13546 # then the envvar interface is used.  Set only those that are not.
13547 # We use the long form for the default assignment because of an extremely
13548 # bizarre bug on SunOS 4.1.3.
13549 if $ac_need_defaults; then
13550   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13551   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13552   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13553 fi
13554
13555 # Have a temporary directory for convenience.  Make it in the build tree
13556 # simply because there is no reason against having it here, and in addition,
13557 # creating and moving files from /tmp can sometimes cause problems.
13558 # Hook for its removal unless debugging.
13559 # Note that there is a small window in which the directory will not be cleaned:
13560 # after its creation but before its name has been assigned to `$tmp'.
13561 $debug ||
13562 {
13563   tmp= ac_tmp=
13564   trap 'exit_status=$?
13565   : "${ac_tmp:=$tmp}"
13566   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13567 ' 0
13568   trap 'as_fn_exit 1' 1 2 13 15
13569 }
13570 # Create a (secure) tmp directory for tmp files.
13571
13572 {
13573   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13574   test -d "$tmp"
13575 }  ||
13576 {
13577   tmp=./conf$$-$RANDOM
13578   (umask 077 && mkdir "$tmp")
13579 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13580 ac_tmp=$tmp
13581
13582 # Set up the scripts for CONFIG_FILES section.
13583 # No need to generate them if there are no CONFIG_FILES.
13584 # This happens for instance with `./config.status config.h'.
13585 if test -n "$CONFIG_FILES"; then
13586
13587
13588 ac_cr=`echo X | tr X '\015'`
13589 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13590 # But we know of no other shell where ac_cr would be empty at this
13591 # point, so we can use a bashism as a fallback.
13592 if test "x$ac_cr" = x; then
13593   eval ac_cr=\$\'\\r\'
13594 fi
13595 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13596 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13597   ac_cs_awk_cr='\\r'
13598 else
13599   ac_cs_awk_cr=$ac_cr
13600 fi
13601
13602 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13603 _ACEOF
13604
13605
13606 {
13607   echo "cat >conf$$subs.awk <<_ACEOF" &&
13608   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13609   echo "_ACEOF"
13610 } >conf$$subs.sh ||
13611   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13612 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13613 ac_delim='%!_!# '
13614 for ac_last_try in false false false false false :; do
13615   . ./conf$$subs.sh ||
13616     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13617
13618   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13619   if test $ac_delim_n = $ac_delim_num; then
13620     break
13621   elif $ac_last_try; then
13622     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13623   else
13624     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13625   fi
13626 done
13627 rm -f conf$$subs.sh
13628
13629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13630 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13631 _ACEOF
13632 sed -n '
13633 h
13634 s/^/S["/; s/!.*/"]=/
13635 p
13636 g
13637 s/^[^!]*!//
13638 :repl
13639 t repl
13640 s/'"$ac_delim"'$//
13641 t delim
13642 :nl
13643 h
13644 s/\(.\{148\}\)..*/\1/
13645 t more1
13646 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13647 p
13648 n
13649 b repl
13650 :more1
13651 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13652 p
13653 g
13654 s/.\{148\}//
13655 t nl
13656 :delim
13657 h
13658 s/\(.\{148\}\)..*/\1/
13659 t more2
13660 s/["\\]/\\&/g; s/^/"/; s/$/"/
13661 p
13662 b
13663 :more2
13664 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13665 p
13666 g
13667 s/.\{148\}//
13668 t delim
13669 ' <conf$$subs.awk | sed '
13670 /^[^""]/{
13671   N
13672   s/\n//
13673 }
13674 ' >>$CONFIG_STATUS || ac_write_fail=1
13675 rm -f conf$$subs.awk
13676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13677 _ACAWK
13678 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13679   for (key in S) S_is_set[key] = 1
13680   FS = "\a"
13681
13682 }
13683 {
13684   line = $ 0
13685   nfields = split(line, field, "@")
13686   substed = 0
13687   len = length(field[1])
13688   for (i = 2; i < nfields; i++) {
13689     key = field[i]
13690     keylen = length(key)
13691     if (S_is_set[key]) {
13692       value = S[key]
13693       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13694       len += length(value) + length(field[++i])
13695       substed = 1
13696     } else
13697       len += 1 + keylen
13698   }
13699
13700   print line
13701 }
13702
13703 _ACAWK
13704 _ACEOF
13705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13706 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13707   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13708 else
13709   cat
13710 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13711   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13712 _ACEOF
13713
13714 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13715 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13716 # trailing colons and then remove the whole line if VPATH becomes empty
13717 # (actually we leave an empty line to preserve line numbers).
13718 if test "x$srcdir" = x.; then
13719   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13720 h
13721 s///
13722 s/^/:/
13723 s/[      ]*$/:/
13724 s/:\$(srcdir):/:/g
13725 s/:\${srcdir}:/:/g
13726 s/:@srcdir@:/:/g
13727 s/^:*//
13728 s/:*$//
13729 x
13730 s/\(=[   ]*\).*/\1/
13731 G
13732 s/\n//
13733 s/^[^=]*=[       ]*$//
13734 }'
13735 fi
13736
13737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13738 fi # test -n "$CONFIG_FILES"
13739
13740 # Set up the scripts for CONFIG_HEADERS section.
13741 # No need to generate them if there are no CONFIG_HEADERS.
13742 # This happens for instance with `./config.status Makefile'.
13743 if test -n "$CONFIG_HEADERS"; then
13744 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13745 BEGIN {
13746 _ACEOF
13747
13748 # Transform confdefs.h into an awk script `defines.awk', embedded as
13749 # here-document in config.status, that substitutes the proper values into
13750 # config.h.in to produce config.h.
13751
13752 # Create a delimiter string that does not exist in confdefs.h, to ease
13753 # handling of long lines.
13754 ac_delim='%!_!# '
13755 for ac_last_try in false false :; do
13756   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13757   if test -z "$ac_tt"; then
13758     break
13759   elif $ac_last_try; then
13760     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13761   else
13762     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13763   fi
13764 done
13765
13766 # For the awk script, D is an array of macro values keyed by name,
13767 # likewise P contains macro parameters if any.  Preserve backslash
13768 # newline sequences.
13769
13770 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13771 sed -n '
13772 s/.\{148\}/&'"$ac_delim"'/g
13773 t rset
13774 :rset
13775 s/^[     ]*#[    ]*define[       ][      ]*/ /
13776 t def
13777 d
13778 :def
13779 s/\\$//
13780 t bsnl
13781 s/["\\]/\\&/g
13782 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13783 D["\1"]=" \3"/p
13784 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13785 d
13786 :bsnl
13787 s/["\\]/\\&/g
13788 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13789 D["\1"]=" \3\\\\\\n"\\/p
13790 t cont
13791 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13792 t cont
13793 d
13794 :cont
13795 n
13796 s/.\{148\}/&'"$ac_delim"'/g
13797 t clear
13798 :clear
13799 s/\\$//
13800 t bsnlc
13801 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13802 d
13803 :bsnlc
13804 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13805 b cont
13806 ' <confdefs.h | sed '
13807 s/'"$ac_delim"'/"\\\
13808 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13809
13810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13811   for (key in D) D_is_set[key] = 1
13812   FS = "\a"
13813 }
13814 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13815   line = \$ 0
13816   split(line, arg, " ")
13817   if (arg[1] == "#") {
13818     defundef = arg[2]
13819     mac1 = arg[3]
13820   } else {
13821     defundef = substr(arg[1], 2)
13822     mac1 = arg[2]
13823   }
13824   split(mac1, mac2, "(") #)
13825   macro = mac2[1]
13826   prefix = substr(line, 1, index(line, defundef) - 1)
13827   if (D_is_set[macro]) {
13828     # Preserve the white space surrounding the "#".
13829     print prefix "define", macro P[macro] D[macro]
13830     next
13831   } else {
13832     # Replace #undef with comments.  This is necessary, for example,
13833     # in the case of _POSIX_SOURCE, which is predefined and required
13834     # on some systems where configure will not decide to define it.
13835     if (defundef == "undef") {
13836       print "/*", prefix defundef, macro, "*/"
13837       next
13838     }
13839   }
13840 }
13841 { print }
13842 _ACAWK
13843 _ACEOF
13844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13845   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13846 fi # test -n "$CONFIG_HEADERS"
13847
13848
13849 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13850 shift
13851 for ac_tag
13852 do
13853   case $ac_tag in
13854   :[FHLC]) ac_mode=$ac_tag; continue;;
13855   esac
13856   case $ac_mode$ac_tag in
13857   :[FHL]*:*);;
13858   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13859   :[FH]-) ac_tag=-:-;;
13860   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13861   esac
13862   ac_save_IFS=$IFS
13863   IFS=:
13864   set x $ac_tag
13865   IFS=$ac_save_IFS
13866   shift
13867   ac_file=$1
13868   shift
13869
13870   case $ac_mode in
13871   :L) ac_source=$1;;
13872   :[FH])
13873     ac_file_inputs=
13874     for ac_f
13875     do
13876       case $ac_f in
13877       -) ac_f="$ac_tmp/stdin";;
13878       *) # Look for the file first in the build tree, then in the source tree
13879          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13880          # because $ac_f cannot contain `:'.
13881          test -f "$ac_f" ||
13882            case $ac_f in
13883            [\\/$]*) false;;
13884            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13885            esac ||
13886            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13887       esac
13888       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13889       as_fn_append ac_file_inputs " '$ac_f'"
13890     done
13891
13892     # Let's still pretend it is `configure' which instantiates (i.e., don't
13893     # use $as_me), people would be surprised to read:
13894     #    /* config.h.  Generated by config.status.  */
13895     configure_input='Generated from '`
13896           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13897         `' by configure.'
13898     if test x"$ac_file" != x-; then
13899       configure_input="$ac_file.  $configure_input"
13900       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13901 $as_echo "$as_me: creating $ac_file" >&6;}
13902     fi
13903     # Neutralize special characters interpreted by sed in replacement strings.
13904     case $configure_input in #(
13905     *\&* | *\|* | *\\* )
13906        ac_sed_conf_input=`$as_echo "$configure_input" |
13907        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13908     *) ac_sed_conf_input=$configure_input;;
13909     esac
13910
13911     case $ac_tag in
13912     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13913       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13914     esac
13915     ;;
13916   esac
13917
13918   ac_dir=`$as_dirname -- "$ac_file" ||
13919 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13920          X"$ac_file" : 'X\(//\)[^/]' \| \
13921          X"$ac_file" : 'X\(//\)$' \| \
13922          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13923 $as_echo X"$ac_file" |
13924     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13925             s//\1/
13926             q
13927           }
13928           /^X\(\/\/\)[^/].*/{
13929             s//\1/
13930             q
13931           }
13932           /^X\(\/\/\)$/{
13933             s//\1/
13934             q
13935           }
13936           /^X\(\/\).*/{
13937             s//\1/
13938             q
13939           }
13940           s/.*/./; q'`
13941   as_dir="$ac_dir"; as_fn_mkdir_p
13942   ac_builddir=.
13943
13944 case "$ac_dir" in
13945 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13946 *)
13947   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13948   # A ".." for each directory in $ac_dir_suffix.
13949   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13950   case $ac_top_builddir_sub in
13951   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13952   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13953   esac ;;
13954 esac
13955 ac_abs_top_builddir=$ac_pwd
13956 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13957 # for backward compatibility:
13958 ac_top_builddir=$ac_top_build_prefix
13959
13960 case $srcdir in
13961   .)  # We are building in place.
13962     ac_srcdir=.
13963     ac_top_srcdir=$ac_top_builddir_sub
13964     ac_abs_top_srcdir=$ac_pwd ;;
13965   [\\/]* | ?:[\\/]* )  # Absolute name.
13966     ac_srcdir=$srcdir$ac_dir_suffix;
13967     ac_top_srcdir=$srcdir
13968     ac_abs_top_srcdir=$srcdir ;;
13969   *) # Relative name.
13970     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13971     ac_top_srcdir=$ac_top_build_prefix$srcdir
13972     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13973 esac
13974 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13975
13976
13977   case $ac_mode in
13978   :F)
13979   #
13980   # CONFIG_FILE
13981   #
13982
13983   case $INSTALL in
13984   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13985   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13986   esac
13987   ac_MKDIR_P=$MKDIR_P
13988   case $MKDIR_P in
13989   [\\/$]* | ?:[\\/]* ) ;;
13990   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13991   esac
13992 _ACEOF
13993
13994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13995 # If the template does not know about datarootdir, expand it.
13996 # FIXME: This hack should be removed a few years after 2.60.
13997 ac_datarootdir_hack=; ac_datarootdir_seen=
13998 ac_sed_dataroot='
13999 /datarootdir/ {
14000   p
14001   q
14002 }
14003 /@datadir@/p
14004 /@docdir@/p
14005 /@infodir@/p
14006 /@localedir@/p
14007 /@mandir@/p'
14008 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14009 *datarootdir*) ac_datarootdir_seen=yes;;
14010 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14011   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14012 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14013 _ACEOF
14014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14015   ac_datarootdir_hack='
14016   s&@datadir@&$datadir&g
14017   s&@docdir@&$docdir&g
14018   s&@infodir@&$infodir&g
14019   s&@localedir@&$localedir&g
14020   s&@mandir@&$mandir&g
14021   s&\\\${datarootdir}&$datarootdir&g' ;;
14022 esac
14023 _ACEOF
14024
14025 # Neutralize VPATH when `$srcdir' = `.'.
14026 # Shell code in configure.ac might set extrasub.
14027 # FIXME: do we really want to maintain this feature?
14028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14029 ac_sed_extra="$ac_vpsub
14030 $extrasub
14031 _ACEOF
14032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14033 :t
14034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14035 s|@configure_input@|$ac_sed_conf_input|;t t
14036 s&@top_builddir@&$ac_top_builddir_sub&;t t
14037 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14038 s&@srcdir@&$ac_srcdir&;t t
14039 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14040 s&@top_srcdir@&$ac_top_srcdir&;t t
14041 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14042 s&@builddir@&$ac_builddir&;t t
14043 s&@abs_builddir@&$ac_abs_builddir&;t t
14044 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14045 s&@INSTALL@&$ac_INSTALL&;t t
14046 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14047 $ac_datarootdir_hack
14048 "
14049 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14050   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14051
14052 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14053   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14054   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14055       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14056   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14057 which seems to be undefined.  Please make sure it is defined" >&5
14058 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14059 which seems to be undefined.  Please make sure it is defined" >&2;}
14060
14061   rm -f "$ac_tmp/stdin"
14062   case $ac_file in
14063   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14064   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14065   esac \
14066   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14067  ;;
14068   :H)
14069   #
14070   # CONFIG_HEADER
14071   #
14072   if test x"$ac_file" != x-; then
14073     {
14074       $as_echo "/* $configure_input  */" \
14075       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14076     } >"$ac_tmp/config.h" \
14077       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14078     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14079       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14080 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14081     else
14082       rm -f "$ac_file"
14083       mv "$ac_tmp/config.h" "$ac_file" \
14084         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14085     fi
14086   else
14087     $as_echo "/* $configure_input  */" \
14088       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14089       || as_fn_error $? "could not create -" "$LINENO" 5
14090   fi
14091 # Compute "$ac_file"'s index in $config_headers.
14092 _am_arg="$ac_file"
14093 _am_stamp_count=1
14094 for _am_header in $config_headers :; do
14095   case $_am_header in
14096     $_am_arg | $_am_arg:* )
14097       break ;;
14098     * )
14099       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14100   esac
14101 done
14102 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14103 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14104          X"$_am_arg" : 'X\(//\)[^/]' \| \
14105          X"$_am_arg" : 'X\(//\)$' \| \
14106          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14107 $as_echo X"$_am_arg" |
14108     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14109             s//\1/
14110             q
14111           }
14112           /^X\(\/\/\)[^/].*/{
14113             s//\1/
14114             q
14115           }
14116           /^X\(\/\/\)$/{
14117             s//\1/
14118             q
14119           }
14120           /^X\(\/\).*/{
14121             s//\1/
14122             q
14123           }
14124           s/.*/./; q'`/stamp-h$_am_stamp_count
14125  ;;
14126
14127   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14128 $as_echo "$as_me: executing $ac_file commands" >&6;}
14129  ;;
14130   esac
14131
14132
14133   case $ac_file$ac_mode in
14134     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14135   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14136   # are listed without --file.  Let's play safe and only enable the eval
14137   # if we detect the quoting.
14138   case $CONFIG_FILES in
14139   *\'*) eval set x "$CONFIG_FILES" ;;
14140   *)   set x $CONFIG_FILES ;;
14141   esac
14142   shift
14143   for mf
14144   do
14145     # Strip MF so we end up with the name of the file.
14146     mf=`echo "$mf" | sed -e 's/:.*$//'`
14147     # Check whether this is an Automake generated Makefile or not.
14148     # We used to match only the files named `Makefile.in', but
14149     # some people rename them; so instead we look at the file content.
14150     # Grep'ing the first line is not enough: some people post-process
14151     # each Makefile.in and add a new line on top of each file to say so.
14152     # Grep'ing the whole file is not good either: AIX grep has a line
14153     # limit of 2048, but all sed's we know have understand at least 4000.
14154     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14155       dirpart=`$as_dirname -- "$mf" ||
14156 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14157          X"$mf" : 'X\(//\)[^/]' \| \
14158          X"$mf" : 'X\(//\)$' \| \
14159          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14160 $as_echo X"$mf" |
14161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14162             s//\1/
14163             q
14164           }
14165           /^X\(\/\/\)[^/].*/{
14166             s//\1/
14167             q
14168           }
14169           /^X\(\/\/\)$/{
14170             s//\1/
14171             q
14172           }
14173           /^X\(\/\).*/{
14174             s//\1/
14175             q
14176           }
14177           s/.*/./; q'`
14178     else
14179       continue
14180     fi
14181     # Extract the definition of DEPDIR, am__include, and am__quote
14182     # from the Makefile without running `make'.
14183     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14184     test -z "$DEPDIR" && continue
14185     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14186     test -z "am__include" && continue
14187     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14188     # When using ansi2knr, U may be empty or an underscore; expand it
14189     U=`sed -n 's/^U = //p' < "$mf"`
14190     # Find all dependency output files, they are included files with
14191     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14192     # simplest approach to changing $(DEPDIR) to its actual value in the
14193     # expansion.
14194     for file in `sed -n "
14195       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14196          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14197       # Make sure the directory exists.
14198       test -f "$dirpart/$file" && continue
14199       fdir=`$as_dirname -- "$file" ||
14200 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14201          X"$file" : 'X\(//\)[^/]' \| \
14202          X"$file" : 'X\(//\)$' \| \
14203          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14204 $as_echo X"$file" |
14205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14206             s//\1/
14207             q
14208           }
14209           /^X\(\/\/\)[^/].*/{
14210             s//\1/
14211             q
14212           }
14213           /^X\(\/\/\)$/{
14214             s//\1/
14215             q
14216           }
14217           /^X\(\/\).*/{
14218             s//\1/
14219             q
14220           }
14221           s/.*/./; q'`
14222       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14223       # echo "creating $dirpart/$file"
14224       echo '# dummy' > "$dirpart/$file"
14225     done
14226   done
14227 }
14228  ;;
14229     "libtool":C)
14230
14231     # See if we are running on zsh, and set the options which allow our
14232     # commands through without removal of \ escapes.
14233     if test -n "${ZSH_VERSION+set}" ; then
14234       setopt NO_GLOB_SUBST
14235     fi
14236
14237     cfgfile="${ofile}T"
14238     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14239     $RM "$cfgfile"
14240
14241     cat <<_LT_EOF >> "$cfgfile"
14242 #! $SHELL
14243
14244 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14245 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14247 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14248 #
14249 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14250 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14251 #                 Inc.
14252 #   Written by Gordon Matzigkeit, 1996
14253 #
14254 #   This file is part of GNU Libtool.
14255 #
14256 # GNU Libtool is free software; you can redistribute it and/or
14257 # modify it under the terms of the GNU General Public License as
14258 # published by the Free Software Foundation; either version 2 of
14259 # the License, or (at your option) any later version.
14260 #
14261 # As a special exception to the GNU General Public License,
14262 # if you distribute this file as part of a program or library that
14263 # is built using GNU Libtool, you may include this file under the
14264 # same distribution terms that you use for the rest of that program.
14265 #
14266 # GNU Libtool is distributed in the hope that it will be useful,
14267 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14268 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14269 # GNU General Public License for more details.
14270 #
14271 # You should have received a copy of the GNU General Public License
14272 # along with GNU Libtool; see the file COPYING.  If not, a copy
14273 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14274 # obtained by writing to the Free Software Foundation, Inc.,
14275 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14276
14277
14278 # The names of the tagged configurations supported by this script.
14279 available_tags=""
14280
14281 # ### BEGIN LIBTOOL CONFIG
14282
14283 # Which release of libtool.m4 was used?
14284 macro_version=$macro_version
14285 macro_revision=$macro_revision
14286
14287 # Whether or not to build shared libraries.
14288 build_libtool_libs=$enable_shared
14289
14290 # Whether or not to build static libraries.
14291 build_old_libs=$enable_static
14292
14293 # What type of objects to build.
14294 pic_mode=$pic_mode
14295
14296 # Whether or not to optimize for fast installation.
14297 fast_install=$enable_fast_install
14298
14299 # Shell to use when invoking shell scripts.
14300 SHELL=$lt_SHELL
14301
14302 # An echo program that protects backslashes.
14303 ECHO=$lt_ECHO
14304
14305 # The host system.
14306 host_alias=$host_alias
14307 host=$host
14308 host_os=$host_os
14309
14310 # The build system.
14311 build_alias=$build_alias
14312 build=$build
14313 build_os=$build_os
14314
14315 # A sed program that does not truncate output.
14316 SED=$lt_SED
14317
14318 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14319 Xsed="\$SED -e 1s/^X//"
14320
14321 # A grep program that handles long lines.
14322 GREP=$lt_GREP
14323
14324 # An ERE matcher.
14325 EGREP=$lt_EGREP
14326
14327 # A literal string matcher.
14328 FGREP=$lt_FGREP
14329
14330 # A BSD- or MS-compatible name lister.
14331 NM=$lt_NM
14332
14333 # Whether we need soft or hard links.
14334 LN_S=$lt_LN_S
14335
14336 # What is the maximum length of a command?
14337 max_cmd_len=$max_cmd_len
14338
14339 # Object file suffix (normally "o").
14340 objext=$ac_objext
14341
14342 # Executable file suffix (normally "").
14343 exeext=$exeext
14344
14345 # whether the shell understands "unset".
14346 lt_unset=$lt_unset
14347
14348 # turn spaces into newlines.
14349 SP2NL=$lt_lt_SP2NL
14350
14351 # turn newlines into spaces.
14352 NL2SP=$lt_lt_NL2SP
14353
14354 # convert \$build file names to \$host format.
14355 to_host_file_cmd=$lt_cv_to_host_file_cmd
14356
14357 # convert \$build files to toolchain format.
14358 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14359
14360 # An object symbol dumper.
14361 OBJDUMP=$lt_OBJDUMP
14362
14363 # Method to check whether dependent libraries are shared objects.
14364 deplibs_check_method=$lt_deplibs_check_method
14365
14366 # Command to use when deplibs_check_method = "file_magic".
14367 file_magic_cmd=$lt_file_magic_cmd
14368
14369 # How to find potential files when deplibs_check_method = "file_magic".
14370 file_magic_glob=$lt_file_magic_glob
14371
14372 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14373 want_nocaseglob=$lt_want_nocaseglob
14374
14375 # DLL creation program.
14376 DLLTOOL=$lt_DLLTOOL
14377
14378 # Command to associate shared and link libraries.
14379 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14380
14381 # The archiver.
14382 AR=$lt_AR
14383
14384 # Flags to create an archive.
14385 AR_FLAGS=$lt_AR_FLAGS
14386
14387 # How to feed a file listing to the archiver.
14388 archiver_list_spec=$lt_archiver_list_spec
14389
14390 # A symbol stripping program.
14391 STRIP=$lt_STRIP
14392
14393 # Commands used to install an old-style archive.
14394 RANLIB=$lt_RANLIB
14395 old_postinstall_cmds=$lt_old_postinstall_cmds
14396 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14397
14398 # Whether to use a lock for old archive extraction.
14399 lock_old_archive_extraction=$lock_old_archive_extraction
14400
14401 # A C compiler.
14402 LTCC=$lt_CC
14403
14404 # LTCC compiler flags.
14405 LTCFLAGS=$lt_CFLAGS
14406
14407 # Take the output of nm and produce a listing of raw symbols and C names.
14408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14409
14410 # Transform the output of nm in a proper C declaration.
14411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14412
14413 # Transform the output of nm in a C name address pair.
14414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14415
14416 # Transform the output of nm in a C name address pair when lib prefix is needed.
14417 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14418
14419 # Specify filename containing input files for \$NM.
14420 nm_file_list_spec=$lt_nm_file_list_spec
14421
14422 # The root where to search for dependent libraries,and in which our libraries should be installed.
14423 lt_sysroot=$lt_sysroot
14424
14425 # The name of the directory that contains temporary libtool files.
14426 objdir=$objdir
14427
14428 # Used to examine libraries when file_magic_cmd begins with "file".
14429 MAGIC_CMD=$MAGIC_CMD
14430
14431 # Must we lock files when doing compilation?
14432 need_locks=$lt_need_locks
14433
14434 # Manifest tool.
14435 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14436
14437 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14438 DSYMUTIL=$lt_DSYMUTIL
14439
14440 # Tool to change global to local symbols on Mac OS X.
14441 NMEDIT=$lt_NMEDIT
14442
14443 # Tool to manipulate fat objects and archives on Mac OS X.
14444 LIPO=$lt_LIPO
14445
14446 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14447 OTOOL=$lt_OTOOL
14448
14449 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14450 OTOOL64=$lt_OTOOL64
14451
14452 # Old archive suffix (normally "a").
14453 libext=$libext
14454
14455 # Shared library suffix (normally ".so").
14456 shrext_cmds=$lt_shrext_cmds
14457
14458 # The commands to extract the exported symbol list from a shared archive.
14459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14460
14461 # Variables whose values should be saved in libtool wrapper scripts and
14462 # restored at link time.
14463 variables_saved_for_relink=$lt_variables_saved_for_relink
14464
14465 # Do we need the "lib" prefix for modules?
14466 need_lib_prefix=$need_lib_prefix
14467
14468 # Do we need a version for libraries?
14469 need_version=$need_version
14470
14471 # Library versioning type.
14472 version_type=$version_type
14473
14474 # Shared library runtime path variable.
14475 runpath_var=$runpath_var
14476
14477 # Shared library path variable.
14478 shlibpath_var=$shlibpath_var
14479
14480 # Is shlibpath searched before the hard-coded library search path?
14481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14482
14483 # Format of library name prefix.
14484 libname_spec=$lt_libname_spec
14485
14486 # List of archive names.  First name is the real one, the rest are links.
14487 # The last name is the one that the linker finds with -lNAME
14488 library_names_spec=$lt_library_names_spec
14489
14490 # The coded name of the library, if different from the real name.
14491 soname_spec=$lt_soname_spec
14492
14493 # Permission mode override for installation of shared libraries.
14494 install_override_mode=$lt_install_override_mode
14495
14496 # Command to use after installation of a shared archive.
14497 postinstall_cmds=$lt_postinstall_cmds
14498
14499 # Command to use after uninstallation of a shared archive.
14500 postuninstall_cmds=$lt_postuninstall_cmds
14501
14502 # Commands used to finish a libtool library installation in a directory.
14503 finish_cmds=$lt_finish_cmds
14504
14505 # As "finish_cmds", except a single script fragment to be evaled but
14506 # not shown.
14507 finish_eval=$lt_finish_eval
14508
14509 # Whether we should hardcode library paths into libraries.
14510 hardcode_into_libs=$hardcode_into_libs
14511
14512 # Compile-time system search path for libraries.
14513 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14514
14515 # Run-time system search path for libraries.
14516 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14517
14518 # Whether dlopen is supported.
14519 dlopen_support=$enable_dlopen
14520
14521 # Whether dlopen of programs is supported.
14522 dlopen_self=$enable_dlopen_self
14523
14524 # Whether dlopen of statically linked programs is supported.
14525 dlopen_self_static=$enable_dlopen_self_static
14526
14527 # Commands to strip libraries.
14528 old_striplib=$lt_old_striplib
14529 striplib=$lt_striplib
14530
14531
14532 # The linker used to build libraries.
14533 LD=$lt_LD
14534
14535 # How to create reloadable object files.
14536 reload_flag=$lt_reload_flag
14537 reload_cmds=$lt_reload_cmds
14538
14539 # Commands used to build an old-style archive.
14540 old_archive_cmds=$lt_old_archive_cmds
14541
14542 # A language specific compiler.
14543 CC=$lt_compiler
14544
14545 # Is the compiler the GNU compiler?
14546 with_gcc=$GCC
14547
14548 # Compiler flag to turn off builtin functions.
14549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14550
14551 # Additional compiler flags for building library objects.
14552 pic_flag=$lt_lt_prog_compiler_pic
14553
14554 # How to pass a linker flag through the compiler.
14555 wl=$lt_lt_prog_compiler_wl
14556
14557 # Compiler flag to prevent dynamic linking.
14558 link_static_flag=$lt_lt_prog_compiler_static
14559
14560 # Does compiler simultaneously support -c and -o options?
14561 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14562
14563 # Whether or not to add -lc for building shared libraries.
14564 build_libtool_need_lc=$archive_cmds_need_lc
14565
14566 # Whether or not to disallow shared libs when runtime libs are static.
14567 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14568
14569 # Compiler flag to allow reflexive dlopens.
14570 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14571
14572 # Compiler flag to generate shared objects directly from archives.
14573 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14574
14575 # Whether the compiler copes with passing no objects directly.
14576 compiler_needs_object=$lt_compiler_needs_object
14577
14578 # Create an old-style archive from a shared archive.
14579 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14580
14581 # Create a temporary old-style archive to link instead of a shared archive.
14582 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14583
14584 # Commands used to build a shared archive.
14585 archive_cmds=$lt_archive_cmds
14586 archive_expsym_cmds=$lt_archive_expsym_cmds
14587
14588 # Commands used to build a loadable module if different from building
14589 # a shared archive.
14590 module_cmds=$lt_module_cmds
14591 module_expsym_cmds=$lt_module_expsym_cmds
14592
14593 # Whether we are building with GNU ld or not.
14594 with_gnu_ld=$lt_with_gnu_ld
14595
14596 # Flag that allows shared libraries with undefined symbols to be built.
14597 allow_undefined_flag=$lt_allow_undefined_flag
14598
14599 # Flag that enforces no undefined symbols.
14600 no_undefined_flag=$lt_no_undefined_flag
14601
14602 # Flag to hardcode \$libdir into a binary during linking.
14603 # This must work even if \$libdir does not exist
14604 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14605
14606 # If ld is used when linking, flag to hardcode \$libdir into a binary
14607 # during linking.  This must work even if \$libdir does not exist.
14608 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14609
14610 # Whether we need a single "-rpath" flag with a separated argument.
14611 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14612
14613 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14614 # DIR into the resulting binary.
14615 hardcode_direct=$hardcode_direct
14616
14617 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14618 # DIR into the resulting binary and the resulting library dependency is
14619 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14620 # library is relocated.
14621 hardcode_direct_absolute=$hardcode_direct_absolute
14622
14623 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14624 # into the resulting binary.
14625 hardcode_minus_L=$hardcode_minus_L
14626
14627 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14628 # into the resulting binary.
14629 hardcode_shlibpath_var=$hardcode_shlibpath_var
14630
14631 # Set to "yes" if building a shared library automatically hardcodes DIR
14632 # into the library and all subsequent libraries and executables linked
14633 # against it.
14634 hardcode_automatic=$hardcode_automatic
14635
14636 # Set to yes if linker adds runtime paths of dependent libraries
14637 # to runtime path list.
14638 inherit_rpath=$inherit_rpath
14639
14640 # Whether libtool must link a program against all its dependency libraries.
14641 link_all_deplibs=$link_all_deplibs
14642
14643 # Set to "yes" if exported symbols are required.
14644 always_export_symbols=$always_export_symbols
14645
14646 # The commands to list exported symbols.
14647 export_symbols_cmds=$lt_export_symbols_cmds
14648
14649 # Symbols that should not be listed in the preloaded symbols.
14650 exclude_expsyms=$lt_exclude_expsyms
14651
14652 # Symbols that must always be exported.
14653 include_expsyms=$lt_include_expsyms
14654
14655 # Commands necessary for linking programs (against libraries) with templates.
14656 prelink_cmds=$lt_prelink_cmds
14657
14658 # Commands necessary for finishing linking programs.
14659 postlink_cmds=$lt_postlink_cmds
14660
14661 # Specify filename containing input files.
14662 file_list_spec=$lt_file_list_spec
14663
14664 # How to hardcode a shared library path into an executable.
14665 hardcode_action=$hardcode_action
14666
14667 # ### END LIBTOOL CONFIG
14668
14669 _LT_EOF
14670
14671   case $host_os in
14672   aix3*)
14673     cat <<\_LT_EOF >> "$cfgfile"
14674 # AIX sometimes has problems with the GCC collect2 program.  For some
14675 # reason, if we set the COLLECT_NAMES environment variable, the problems
14676 # vanish in a puff of smoke.
14677 if test "X${COLLECT_NAMES+set}" != Xset; then
14678   COLLECT_NAMES=
14679   export COLLECT_NAMES
14680 fi
14681 _LT_EOF
14682     ;;
14683   esac
14684
14685
14686 ltmain="$ac_aux_dir/ltmain.sh"
14687
14688
14689   # We use sed instead of cat because bash on DJGPP gets confused if
14690   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14691   # text mode, it properly converts lines to CR/LF.  This bash problem
14692   # is reportedly fixed, but why not run on old versions too?
14693   sed '$q' "$ltmain" >> "$cfgfile" \
14694      || (rm -f "$cfgfile"; exit 1)
14695
14696   if test x"$xsi_shell" = xyes; then
14697   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14698 func_dirname ()\
14699 {\
14700 \    case ${1} in\
14701 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14702 \      *  ) func_dirname_result="${3}" ;;\
14703 \    esac\
14704 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14705   && mv -f "$cfgfile.tmp" "$cfgfile" \
14706     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14707 test 0 -eq $? || _lt_function_replace_fail=:
14708
14709
14710   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14711 func_basename ()\
14712 {\
14713 \    func_basename_result="${1##*/}"\
14714 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14715   && mv -f "$cfgfile.tmp" "$cfgfile" \
14716     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14717 test 0 -eq $? || _lt_function_replace_fail=:
14718
14719
14720   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14721 func_dirname_and_basename ()\
14722 {\
14723 \    case ${1} in\
14724 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14725 \      *  ) func_dirname_result="${3}" ;;\
14726 \    esac\
14727 \    func_basename_result="${1##*/}"\
14728 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14729   && mv -f "$cfgfile.tmp" "$cfgfile" \
14730     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14731 test 0 -eq $? || _lt_function_replace_fail=:
14732
14733
14734   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14735 func_stripname ()\
14736 {\
14737 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14738 \    # positional parameters, so assign one to ordinary parameter first.\
14739 \    func_stripname_result=${3}\
14740 \    func_stripname_result=${func_stripname_result#"${1}"}\
14741 \    func_stripname_result=${func_stripname_result%"${2}"}\
14742 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14743   && mv -f "$cfgfile.tmp" "$cfgfile" \
14744     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14745 test 0 -eq $? || _lt_function_replace_fail=:
14746
14747
14748   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14749 func_split_long_opt ()\
14750 {\
14751 \    func_split_long_opt_name=${1%%=*}\
14752 \    func_split_long_opt_arg=${1#*=}\
14753 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14754   && mv -f "$cfgfile.tmp" "$cfgfile" \
14755     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14756 test 0 -eq $? || _lt_function_replace_fail=:
14757
14758
14759   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14760 func_split_short_opt ()\
14761 {\
14762 \    func_split_short_opt_arg=${1#??}\
14763 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14764 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14765   && mv -f "$cfgfile.tmp" "$cfgfile" \
14766     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14767 test 0 -eq $? || _lt_function_replace_fail=:
14768
14769
14770   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14771 func_lo2o ()\
14772 {\
14773 \    case ${1} in\
14774 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14775 \      *)    func_lo2o_result=${1} ;;\
14776 \    esac\
14777 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14778   && mv -f "$cfgfile.tmp" "$cfgfile" \
14779     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14780 test 0 -eq $? || _lt_function_replace_fail=:
14781
14782
14783   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14784 func_xform ()\
14785 {\
14786     func_xform_result=${1%.*}.lo\
14787 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14788   && mv -f "$cfgfile.tmp" "$cfgfile" \
14789     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14790 test 0 -eq $? || _lt_function_replace_fail=:
14791
14792
14793   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14794 func_arith ()\
14795 {\
14796     func_arith_result=$(( $* ))\
14797 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14798   && mv -f "$cfgfile.tmp" "$cfgfile" \
14799     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14800 test 0 -eq $? || _lt_function_replace_fail=:
14801
14802
14803   sed -e '/^func_len ()$/,/^} # func_len /c\
14804 func_len ()\
14805 {\
14806     func_len_result=${#1}\
14807 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14808   && mv -f "$cfgfile.tmp" "$cfgfile" \
14809     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14810 test 0 -eq $? || _lt_function_replace_fail=:
14811
14812 fi
14813
14814 if test x"$lt_shell_append" = xyes; then
14815   sed -e '/^func_append ()$/,/^} # func_append /c\
14816 func_append ()\
14817 {\
14818     eval "${1}+=\\${2}"\
14819 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14820   && mv -f "$cfgfile.tmp" "$cfgfile" \
14821     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14822 test 0 -eq $? || _lt_function_replace_fail=:
14823
14824
14825   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14826 func_append_quoted ()\
14827 {\
14828 \    func_quote_for_eval "${2}"\
14829 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14830 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14831   && mv -f "$cfgfile.tmp" "$cfgfile" \
14832     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14833 test 0 -eq $? || _lt_function_replace_fail=:
14834
14835
14836   # Save a `func_append' function call where possible by direct use of '+='
14837   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14838     && mv -f "$cfgfile.tmp" "$cfgfile" \
14839       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14840   test 0 -eq $? || _lt_function_replace_fail=:
14841 else
14842   # Save a `func_append' function call even when '+=' is not available
14843   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14844     && mv -f "$cfgfile.tmp" "$cfgfile" \
14845       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14846   test 0 -eq $? || _lt_function_replace_fail=:
14847 fi
14848
14849 if test x"$_lt_function_replace_fail" = x":"; then
14850   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14851 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14852 fi
14853
14854
14855    mv -f "$cfgfile" "$ofile" ||
14856     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14857   chmod +x "$ofile"
14858
14859  ;;
14860
14861   esac
14862 done # for ac_tag
14863
14864
14865 as_fn_exit 0
14866 _ACEOF
14867 ac_clean_files=$ac_clean_files_save
14868
14869 test $ac_write_fail = 0 ||
14870   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14871
14872
14873 # configure is writing to config.log, and then calls config.status.
14874 # config.status does its own redirection, appending to config.log.
14875 # Unfortunately, on DOS this fails, as config.log is still kept open
14876 # by configure, so config.status won't be able to write to it; its
14877 # output is simply discarded.  So we exec the FD to /dev/null,
14878 # effectively closing config.log, so it can be properly (re)opened and
14879 # appended to by config.status.  When coming back to configure, we
14880 # need to make the FD available again.
14881 if test "$no_create" != yes; then
14882   ac_cs_success=:
14883   ac_config_status_args=
14884   test "$silent" = yes &&
14885     ac_config_status_args="$ac_config_status_args --quiet"
14886   exec 5>/dev/null
14887   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14888   exec 5>>config.log
14889   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14890   # would make configure fail if this is the last instruction.
14891   $ac_cs_success || as_fn_exit 1
14892 fi
14893 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14894   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14895 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14896 fi
14897