mingw gettimeofday avoid missing include
[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 MINGW_FALSE
623 MINGW_TRUE
624 EXT_GOOGLE_MUX_FALSE
625 EXT_GOOGLE_MUX_TRUE
626 LIBCRYPTO_FALSE
627 LIBCRYPTO_TRUE
628 CPP
629 OTOOL64
630 OTOOL
631 LIPO
632 NMEDIT
633 DSYMUTIL
634 MANIFEST_TOOL
635 RANLIB
636 ac_ct_AR
637 AR
638 DLLTOOL
639 OBJDUMP
640 LN_S
641 NM
642 ac_ct_DUMPBIN
643 DUMPBIN
644 LD
645 FGREP
646 EGREP
647 GREP
648 SED
649 am__fastdepCC_FALSE
650 am__fastdepCC_TRUE
651 CCDEPMODE
652 am__nodep
653 AMDEPBACKSLASH
654 AMDEP_FALSE
655 AMDEP_TRUE
656 am__quote
657 am__include
658 DEPDIR
659 OBJEXT
660 EXEEXT
661 ac_ct_CC
662 CPPFLAGS
663 LDFLAGS
664 CFLAGS
665 CC
666 host_os
667 host_vendor
668 host_cpu
669 host
670 build_os
671 build_vendor
672 build_cpu
673 build
674 LIBTOOL
675 am__untar
676 am__tar
677 AMTAR
678 am__leading_dot
679 SET_MAKE
680 AWK
681 mkdir_p
682 MKDIR_P
683 INSTALL_STRIP_PROGRAM
684 STRIP
685 install_sh
686 MAKEINFO
687 AUTOHEADER
688 AUTOMAKE
689 AUTOCONF
690 ACLOCAL
691 VERSION
692 PACKAGE
693 CYGPATH_W
694 am__isrc
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 target_alias
699 host_alias
700 build_alias
701 LIBS
702 ECHO_T
703 ECHO_N
704 ECHO_C
705 DEFS
706 mandir
707 localedir
708 libdir
709 psdir
710 pdfdir
711 dvidir
712 htmldir
713 infodir
714 docdir
715 oldincludedir
716 includedir
717 localstatedir
718 sharedstatedir
719 sysconfdir
720 datadir
721 datarootdir
722 libexecdir
723 sbindir
724 bindir
725 program_transform_name
726 prefix
727 exec_prefix
728 PACKAGE_URL
729 PACKAGE_BUGREPORT
730 PACKAGE_STRING
731 PACKAGE_VERSION
732 PACKAGE_TARNAME
733 PACKAGE_NAME
734 PATH_SEPARATOR
735 SHELL'
736 ac_subst_files=''
737 ac_user_opts='
738 enable_option_checking
739 enable_shared
740 enable_static
741 with_pic
742 enable_fast_install
743 enable_dependency_tracking
744 with_gnu_ld
745 with_sysroot
746 enable_libtool_lock
747 enable_openssl
748 enable_nofork
749 enable_libcrypto
750 enable_x_google_mux
751 enable_mingw
752 with_client_cert_dir
753 enable_noping
754 '
755       ac_precious_vars='build_alias
756 host_alias
757 target_alias
758 CC
759 CFLAGS
760 LDFLAGS
761 LIBS
762 CPPFLAGS
763 CPP'
764
765
766 # Initialize some variables set by options.
767 ac_init_help=
768 ac_init_version=false
769 ac_unrecognized_opts=
770 ac_unrecognized_sep=
771 # The variables have the same names as the options, with
772 # dashes changed to underlines.
773 cache_file=/dev/null
774 exec_prefix=NONE
775 no_create=
776 no_recursion=
777 prefix=NONE
778 program_prefix=NONE
779 program_suffix=NONE
780 program_transform_name=s,x,x,
781 silent=
782 site=
783 srcdir=
784 verbose=
785 x_includes=NONE
786 x_libraries=NONE
787
788 # Installation directory options.
789 # These are left unexpanded so users can "make install exec_prefix=/foo"
790 # and all the variables that are supposed to be based on exec_prefix
791 # by default will actually change.
792 # Use braces instead of parens because sh, perl, etc. also accept them.
793 # (The list follows the same order as the GNU Coding Standards.)
794 bindir='${exec_prefix}/bin'
795 sbindir='${exec_prefix}/sbin'
796 libexecdir='${exec_prefix}/libexec'
797 datarootdir='${prefix}/share'
798 datadir='${datarootdir}'
799 sysconfdir='${prefix}/etc'
800 sharedstatedir='${prefix}/com'
801 localstatedir='${prefix}/var'
802 includedir='${prefix}/include'
803 oldincludedir='/usr/include'
804 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
805 infodir='${datarootdir}/info'
806 htmldir='${docdir}'
807 dvidir='${docdir}'
808 pdfdir='${docdir}'
809 psdir='${docdir}'
810 libdir='${exec_prefix}/lib'
811 localedir='${datarootdir}/locale'
812 mandir='${datarootdir}/man'
813
814 ac_prev=
815 ac_dashdash=
816 for ac_option
817 do
818   # If the previous option needs an argument, assign it.
819   if test -n "$ac_prev"; then
820     eval $ac_prev=\$ac_option
821     ac_prev=
822     continue
823   fi
824
825   case $ac_option in
826   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827   *=)   ac_optarg= ;;
828   *)    ac_optarg=yes ;;
829   esac
830
831   # Accept the important Cygnus configure options, so we can diagnose typos.
832
833   case $ac_dashdash$ac_option in
834   --)
835     ac_dashdash=yes ;;
836
837   -bindir | --bindir | --bindi | --bind | --bin | --bi)
838     ac_prev=bindir ;;
839   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840     bindir=$ac_optarg ;;
841
842   -build | --build | --buil | --bui | --bu)
843     ac_prev=build_alias ;;
844   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845     build_alias=$ac_optarg ;;
846
847   -cache-file | --cache-file | --cache-fil | --cache-fi \
848   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849     ac_prev=cache_file ;;
850   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852     cache_file=$ac_optarg ;;
853
854   --config-cache | -C)
855     cache_file=config.cache ;;
856
857   -datadir | --datadir | --datadi | --datad)
858     ac_prev=datadir ;;
859   -datadir=* | --datadir=* | --datadi=* | --datad=*)
860     datadir=$ac_optarg ;;
861
862   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863   | --dataroo | --dataro | --datar)
864     ac_prev=datarootdir ;;
865   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867     datarootdir=$ac_optarg ;;
868
869   -disable-* | --disable-*)
870     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871     # Reject names that are not valid shell variable names.
872     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873       as_fn_error $? "invalid feature name: $ac_useropt"
874     ac_useropt_orig=$ac_useropt
875     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876     case $ac_user_opts in
877       *"
878 "enable_$ac_useropt"
879 "*) ;;
880       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881          ac_unrecognized_sep=', ';;
882     esac
883     eval enable_$ac_useropt=no ;;
884
885   -docdir | --docdir | --docdi | --doc | --do)
886     ac_prev=docdir ;;
887   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888     docdir=$ac_optarg ;;
889
890   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891     ac_prev=dvidir ;;
892   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893     dvidir=$ac_optarg ;;
894
895   -enable-* | --enable-*)
896     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897     # Reject names that are not valid shell variable names.
898     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899       as_fn_error $? "invalid feature name: $ac_useropt"
900     ac_useropt_orig=$ac_useropt
901     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902     case $ac_user_opts in
903       *"
904 "enable_$ac_useropt"
905 "*) ;;
906       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907          ac_unrecognized_sep=', ';;
908     esac
909     eval enable_$ac_useropt=\$ac_optarg ;;
910
911   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913   | --exec | --exe | --ex)
914     ac_prev=exec_prefix ;;
915   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917   | --exec=* | --exe=* | --ex=*)
918     exec_prefix=$ac_optarg ;;
919
920   -gas | --gas | --ga | --g)
921     # Obsolete; use --with-gas.
922     with_gas=yes ;;
923
924   -help | --help | --hel | --he | -h)
925     ac_init_help=long ;;
926   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927     ac_init_help=recursive ;;
928   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929     ac_init_help=short ;;
930
931   -host | --host | --hos | --ho)
932     ac_prev=host_alias ;;
933   -host=* | --host=* | --hos=* | --ho=*)
934     host_alias=$ac_optarg ;;
935
936   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937     ac_prev=htmldir ;;
938   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939   | --ht=*)
940     htmldir=$ac_optarg ;;
941
942   -includedir | --includedir | --includedi | --included | --include \
943   | --includ | --inclu | --incl | --inc)
944     ac_prev=includedir ;;
945   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946   | --includ=* | --inclu=* | --incl=* | --inc=*)
947     includedir=$ac_optarg ;;
948
949   -infodir | --infodir | --infodi | --infod | --info | --inf)
950     ac_prev=infodir ;;
951   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952     infodir=$ac_optarg ;;
953
954   -libdir | --libdir | --libdi | --libd)
955     ac_prev=libdir ;;
956   -libdir=* | --libdir=* | --libdi=* | --libd=*)
957     libdir=$ac_optarg ;;
958
959   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960   | --libexe | --libex | --libe)
961     ac_prev=libexecdir ;;
962   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963   | --libexe=* | --libex=* | --libe=*)
964     libexecdir=$ac_optarg ;;
965
966   -localedir | --localedir | --localedi | --localed | --locale)
967     ac_prev=localedir ;;
968   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969     localedir=$ac_optarg ;;
970
971   -localstatedir | --localstatedir | --localstatedi | --localstated \
972   | --localstate | --localstat | --localsta | --localst | --locals)
973     ac_prev=localstatedir ;;
974   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976     localstatedir=$ac_optarg ;;
977
978   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979     ac_prev=mandir ;;
980   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981     mandir=$ac_optarg ;;
982
983   -nfp | --nfp | --nf)
984     # Obsolete; use --without-fp.
985     with_fp=no ;;
986
987   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988   | --no-cr | --no-c | -n)
989     no_create=yes ;;
990
991   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993     no_recursion=yes ;;
994
995   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997   | --oldin | --oldi | --old | --ol | --o)
998     ac_prev=oldincludedir ;;
999   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002     oldincludedir=$ac_optarg ;;
1003
1004   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005     ac_prev=prefix ;;
1006   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007     prefix=$ac_optarg ;;
1008
1009   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010   | --program-pre | --program-pr | --program-p)
1011     ac_prev=program_prefix ;;
1012   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014     program_prefix=$ac_optarg ;;
1015
1016   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017   | --program-suf | --program-su | --program-s)
1018     ac_prev=program_suffix ;;
1019   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021     program_suffix=$ac_optarg ;;
1022
1023   -program-transform-name | --program-transform-name \
1024   | --program-transform-nam | --program-transform-na \
1025   | --program-transform-n | --program-transform- \
1026   | --program-transform | --program-transfor \
1027   | --program-transfo | --program-transf \
1028   | --program-trans | --program-tran \
1029   | --progr-tra | --program-tr | --program-t)
1030     ac_prev=program_transform_name ;;
1031   -program-transform-name=* | --program-transform-name=* \
1032   | --program-transform-nam=* | --program-transform-na=* \
1033   | --program-transform-n=* | --program-transform-=* \
1034   | --program-transform=* | --program-transfor=* \
1035   | --program-transfo=* | --program-transf=* \
1036   | --program-trans=* | --program-tran=* \
1037   | --progr-tra=* | --program-tr=* | --program-t=*)
1038     program_transform_name=$ac_optarg ;;
1039
1040   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041     ac_prev=pdfdir ;;
1042   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043     pdfdir=$ac_optarg ;;
1044
1045   -psdir | --psdir | --psdi | --psd | --ps)
1046     ac_prev=psdir ;;
1047   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048     psdir=$ac_optarg ;;
1049
1050   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051   | -silent | --silent | --silen | --sile | --sil)
1052     silent=yes ;;
1053
1054   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055     ac_prev=sbindir ;;
1056   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057   | --sbi=* | --sb=*)
1058     sbindir=$ac_optarg ;;
1059
1060   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062   | --sharedst | --shareds | --shared | --share | --shar \
1063   | --sha | --sh)
1064     ac_prev=sharedstatedir ;;
1065   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068   | --sha=* | --sh=*)
1069     sharedstatedir=$ac_optarg ;;
1070
1071   -site | --site | --sit)
1072     ac_prev=site ;;
1073   -site=* | --site=* | --sit=*)
1074     site=$ac_optarg ;;
1075
1076   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077     ac_prev=srcdir ;;
1078   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079     srcdir=$ac_optarg ;;
1080
1081   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082   | --syscon | --sysco | --sysc | --sys | --sy)
1083     ac_prev=sysconfdir ;;
1084   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086     sysconfdir=$ac_optarg ;;
1087
1088   -target | --target | --targe | --targ | --tar | --ta | --t)
1089     ac_prev=target_alias ;;
1090   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091     target_alias=$ac_optarg ;;
1092
1093   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094     verbose=yes ;;
1095
1096   -version | --version | --versio | --versi | --vers | -V)
1097     ac_init_version=: ;;
1098
1099   -with-* | --with-*)
1100     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101     # Reject names that are not valid shell variable names.
1102     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103       as_fn_error $? "invalid package name: $ac_useropt"
1104     ac_useropt_orig=$ac_useropt
1105     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106     case $ac_user_opts in
1107       *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111          ac_unrecognized_sep=', ';;
1112     esac
1113     eval with_$ac_useropt=\$ac_optarg ;;
1114
1115   -without-* | --without-*)
1116     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117     # Reject names that are not valid shell variable names.
1118     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119       as_fn_error $? "invalid package name: $ac_useropt"
1120     ac_useropt_orig=$ac_useropt
1121     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122     case $ac_user_opts in
1123       *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127          ac_unrecognized_sep=', ';;
1128     esac
1129     eval with_$ac_useropt=no ;;
1130
1131   --x)
1132     # Obsolete; use --with-x.
1133     with_x=yes ;;
1134
1135   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136   | --x-incl | --x-inc | --x-in | --x-i)
1137     ac_prev=x_includes ;;
1138   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140     x_includes=$ac_optarg ;;
1141
1142   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144     ac_prev=x_libraries ;;
1145   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147     x_libraries=$ac_optarg ;;
1148
1149   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1150 Try \`$0 --help' for more information"
1151     ;;
1152
1153   *=*)
1154     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155     # Reject names that are not valid shell variable names.
1156     case $ac_envvar in #(
1157       '' | [0-9]* | *[!_$as_cr_alnum]* )
1158       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1159     esac
1160     eval $ac_envvar=\$ac_optarg
1161     export $ac_envvar ;;
1162
1163   *)
1164     # FIXME: should be removed in autoconf 3.0.
1165     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1169     ;;
1170
1171   esac
1172 done
1173
1174 if test -n "$ac_prev"; then
1175   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176   as_fn_error $? "missing argument to $ac_option"
1177 fi
1178
1179 if test -n "$ac_unrecognized_opts"; then
1180   case $enable_option_checking in
1181     no) ;;
1182     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1183     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184   esac
1185 fi
1186
1187 # Check all directory arguments for consistency.
1188 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189                 datadir sysconfdir sharedstatedir localstatedir includedir \
1190                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191                 libdir localedir mandir
1192 do
1193   eval ac_val=\$$ac_var
1194   # Remove trailing slashes.
1195   case $ac_val in
1196     */ )
1197       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198       eval $ac_var=\$ac_val;;
1199   esac
1200   # Be sure to have absolute directory names.
1201   case $ac_val in
1202     [\\/$]* | ?:[\\/]* )  continue;;
1203     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204   esac
1205   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1206 done
1207
1208 # There might be people who depend on the old broken behavior: `$host'
1209 # used to hold the argument of --host etc.
1210 # FIXME: To remove some day.
1211 build=$build_alias
1212 host=$host_alias
1213 target=$target_alias
1214
1215 # FIXME: To remove some day.
1216 if test "x$host_alias" != x; then
1217   if test "x$build_alias" = x; then
1218     cross_compiling=maybe
1219     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1220     If a cross compiler is detected then cross compile mode will be used" >&2
1221   elif test "x$build_alias" != "x$host_alias"; then
1222     cross_compiling=yes
1223   fi
1224 fi
1225
1226 ac_tool_prefix=
1227 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228
1229 test "$silent" = yes && exec 6>/dev/null
1230
1231
1232 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233 ac_ls_di=`ls -di .` &&
1234 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235   as_fn_error $? "working directory cannot be determined"
1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237   as_fn_error $? "pwd does not report name of working directory"
1238
1239
1240 # Find the source files, if location was not specified.
1241 if test -z "$srcdir"; then
1242   ac_srcdir_defaulted=yes
1243   # Try the directory containing this script, then the parent directory.
1244   ac_confdir=`$as_dirname -- "$as_myself" ||
1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246          X"$as_myself" : 'X\(//\)[^/]' \| \
1247          X"$as_myself" : 'X\(//\)$' \| \
1248          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249 $as_echo X"$as_myself" |
1250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\/\)[^/].*/{
1255             s//\1/
1256             q
1257           }
1258           /^X\(\/\/\)$/{
1259             s//\1/
1260             q
1261           }
1262           /^X\(\/\).*/{
1263             s//\1/
1264             q
1265           }
1266           s/.*/./; q'`
1267   srcdir=$ac_confdir
1268   if test ! -r "$srcdir/$ac_unique_file"; then
1269     srcdir=..
1270   fi
1271 else
1272   ac_srcdir_defaulted=no
1273 fi
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1277 fi
1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 ac_abs_confdir=`(
1280         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1281         pwd)`
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284   srcdir=.
1285 fi
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1289 case $srcdir in
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 esac
1292 for ac_var in $ac_precious_vars; do
1293   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294   eval ac_env_${ac_var}_value=\$${ac_var}
1295   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 done
1298
1299 #
1300 # Report the --help message.
1301 #
1302 if test "$ac_init_help" = "long"; then
1303   # Omit some internal or obsolete options to make the list less imposing.
1304   # This message is too long to be a string in the A/UX 3.1 sh.
1305   cat <<_ACEOF
1306 \`configure' configures libwebsockets 0.3 to adapt to many kinds of systems.
1307
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE.  See below for descriptions of some of the useful variables.
1312
1313 Defaults for the options are specified in brackets.
1314
1315 Configuration:
1316   -h, --help              display this help and exit
1317       --help=short        display options specific to this package
1318       --help=recursive    display the short help of all the included packages
1319   -V, --version           display version information and exit
1320   -q, --quiet, --silent   do not print \`checking ...' messages
1321       --cache-file=FILE   cache test results in FILE [disabled]
1322   -C, --config-cache      alias for \`--cache-file=config.cache'
1323   -n, --no-create         do not create output files
1324       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1325
1326 Installation directories:
1327   --prefix=PREFIX         install architecture-independent files in PREFIX
1328                           [$ac_default_prefix]
1329   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1330                           [PREFIX]
1331
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1336
1337 For better control, use the options below.
1338
1339 Fine tuning of the installation directories:
1340   --bindir=DIR            user executables [EPREFIX/bin]
1341   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1342   --libexecdir=DIR        program executables [EPREFIX/libexec]
1343   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1344   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1345   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1346   --libdir=DIR            object code libraries [EPREFIX/lib]
1347   --includedir=DIR        C header files [PREFIX/include]
1348   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1349   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1350   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1351   --infodir=DIR           info documentation [DATAROOTDIR/info]
1352   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1353   --mandir=DIR            man documentation [DATAROOTDIR/man]
1354   --docdir=DIR            documentation root [DATAROOTDIR/doc/libwebsockets]
1355   --htmldir=DIR           html documentation [DOCDIR]
1356   --dvidir=DIR            dvi documentation [DOCDIR]
1357   --pdfdir=DIR            pdf documentation [DOCDIR]
1358   --psdir=DIR             ps documentation [DOCDIR]
1359 _ACEOF
1360
1361   cat <<\_ACEOF
1362
1363 Program names:
1364   --program-prefix=PREFIX            prepend PREFIX to installed program names
1365   --program-suffix=SUFFIX            append SUFFIX to installed program names
1366   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1367
1368 System types:
1369   --build=BUILD     configure for building on BUILD [guessed]
1370   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1371 _ACEOF
1372 fi
1373
1374 if test -n "$ac_init_help"; then
1375   case $ac_init_help in
1376      short | recursive ) echo "Configuration of libwebsockets 0.3:";;
1377    esac
1378   cat <<\_ACEOF
1379
1380 Optional Features:
1381   --disable-option-checking  ignore unrecognized --enable/--with options
1382   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1383   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1384   --enable-shared[=PKGS]  build shared libraries [default=yes]
1385   --enable-static[=PKGS]  build static libraries [default=yes]
1386   --enable-fast-install[=PKGS]
1387                           optimize for fast installation [default=yes]
1388   --disable-dependency-tracking  speeds up one-time build
1389   --enable-dependency-tracking   do not reject slow dependency extractors
1390   --disable-libtool-lock  avoid locking (might break parallel builds)
1391   --enable-openssl  Enables https support and needs openssl libs
1392   --enable-nofork  Disables fork-related options
1393   --enable-libcrypto  Use libcrypto MD5 and SHA1 implementations
1394   --enable-x-google-mux  Build experimental x-google-mux
1395   --enable-mingw  Using mingw compilers, disables ping test build
1396   --enable-noping  Do not build ping test app, which has some unixy stuff in sources
1397
1398 Optional Packages:
1399   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1400   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1401   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1402                           both]
1403   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1404   --with-sysroot=DIR Search for dependent libraries within DIR
1405                         (or the compiler's sysroot if not specified).
1406   --with-client-cert-dir  directory containing client certs, defaults to
1407                           /etc/pki/tls/certs/
1408
1409 Some influential environment variables:
1410   CC          C compiler command
1411   CFLAGS      C compiler flags
1412   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1413               nonstandard directory <lib dir>
1414   LIBS        libraries to pass to the linker, e.g. -l<library>
1415   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1416               you have headers in a nonstandard directory <include dir>
1417   CPP         C preprocessor
1418
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1421
1422 Report bugs to <andy@warmcat.com>.
1423 _ACEOF
1424 ac_status=$?
1425 fi
1426
1427 if test "$ac_init_help" = "recursive"; then
1428   # If there are subdirs, report their specific --help.
1429   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430     test -d "$ac_dir" ||
1431       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432       continue
1433     ac_builddir=.
1434
1435 case "$ac_dir" in
1436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *)
1438   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439   # A ".." for each directory in $ac_dir_suffix.
1440   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441   case $ac_top_builddir_sub in
1442   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444   esac ;;
1445 esac
1446 ac_abs_top_builddir=$ac_pwd
1447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 # for backward compatibility:
1449 ac_top_builddir=$ac_top_build_prefix
1450
1451 case $srcdir in
1452   .)  # We are building in place.
1453     ac_srcdir=.
1454     ac_top_srcdir=$ac_top_builddir_sub
1455     ac_abs_top_srcdir=$ac_pwd ;;
1456   [\\/]* | ?:[\\/]* )  # Absolute name.
1457     ac_srcdir=$srcdir$ac_dir_suffix;
1458     ac_top_srcdir=$srcdir
1459     ac_abs_top_srcdir=$srcdir ;;
1460   *) # Relative name.
1461     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462     ac_top_srcdir=$ac_top_build_prefix$srcdir
1463     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 esac
1465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466
1467     cd "$ac_dir" || { ac_status=$?; continue; }
1468     # Check for guested configure.
1469     if test -f "$ac_srcdir/configure.gnu"; then
1470       echo &&
1471       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472     elif test -f "$ac_srcdir/configure"; then
1473       echo &&
1474       $SHELL "$ac_srcdir/configure" --help=recursive
1475     else
1476       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477     fi || ac_status=$?
1478     cd "$ac_pwd" || { ac_status=$?; break; }
1479   done
1480 fi
1481
1482 test -n "$ac_init_help" && exit $ac_status
1483 if $ac_init_version; then
1484   cat <<\_ACEOF
1485 libwebsockets configure 0.3
1486 generated by GNU Autoconf 2.68
1487
1488 Copyright (C) 2010 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492   exit
1493 fi
1494
1495 ## ------------------------ ##
1496 ## Autoconf initialization. ##
1497 ## ------------------------ ##
1498
1499 # ac_fn_c_try_compile LINENO
1500 # --------------------------
1501 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_compile ()
1503 {
1504   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505   rm -f conftest.$ac_objext
1506   if { { ac_try="$ac_compile"
1507 case "(($ac_try" in
1508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509   *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513   (eval "$ac_compile") 2>conftest.err
1514   ac_status=$?
1515   if test -s conftest.err; then
1516     grep -v '^ *+' conftest.err >conftest.er1
1517     cat conftest.er1 >&5
1518     mv -f conftest.er1 conftest.err
1519   fi
1520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521   test $ac_status = 0; } && {
1522          test -z "$ac_c_werror_flag" ||
1523          test ! -s conftest.err
1524        } && test -s conftest.$ac_objext; then :
1525   ac_retval=0
1526 else
1527   $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1529
1530         ac_retval=1
1531 fi
1532   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533   as_fn_set_status $ac_retval
1534
1535 } # ac_fn_c_try_compile
1536
1537 # ac_fn_c_try_link LINENO
1538 # -----------------------
1539 # Try to link conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_link ()
1541 {
1542   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543   rm -f conftest.$ac_objext conftest$ac_exeext
1544   if { { ac_try="$ac_link"
1545 case "(($ac_try" in
1546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547   *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551   (eval "$ac_link") 2>conftest.err
1552   ac_status=$?
1553   if test -s conftest.err; then
1554     grep -v '^ *+' conftest.err >conftest.er1
1555     cat conftest.er1 >&5
1556     mv -f conftest.er1 conftest.err
1557   fi
1558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559   test $ac_status = 0; } && {
1560          test -z "$ac_c_werror_flag" ||
1561          test ! -s conftest.err
1562        } && test -s conftest$ac_exeext && {
1563          test "$cross_compiling" = yes ||
1564          $as_test_x conftest$ac_exeext
1565        }; then :
1566   ac_retval=0
1567 else
1568   $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1570
1571         ac_retval=1
1572 fi
1573   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1574   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1575   # interfere with the next link command; also delete a directory that is
1576   # left behind by Apple's compiler.  We do this before executing the actions.
1577   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1578   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579   as_fn_set_status $ac_retval
1580
1581 } # ac_fn_c_try_link
1582
1583 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1584 # -------------------------------------------------------
1585 # Tests whether HEADER exists and can be compiled using the include files in
1586 # INCLUDES, setting the cache variable VAR accordingly.
1587 ac_fn_c_check_header_compile ()
1588 {
1589   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1591 $as_echo_n "checking for $2... " >&6; }
1592 if eval \${$3+:} false; then :
1593   $as_echo_n "(cached) " >&6
1594 else
1595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596 /* end confdefs.h.  */
1597 $4
1598 #include <$2>
1599 _ACEOF
1600 if ac_fn_c_try_compile "$LINENO"; then :
1601   eval "$3=yes"
1602 else
1603   eval "$3=no"
1604 fi
1605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1606 fi
1607 eval ac_res=\$$3
1608                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1609 $as_echo "$ac_res" >&6; }
1610   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611
1612 } # ac_fn_c_check_header_compile
1613
1614 # ac_fn_c_try_cpp LINENO
1615 # ----------------------
1616 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_cpp ()
1618 {
1619   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620   if { { ac_try="$ac_cpp conftest.$ac_ext"
1621 case "(($ac_try" in
1622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623   *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1628   ac_status=$?
1629   if test -s conftest.err; then
1630     grep -v '^ *+' conftest.err >conftest.er1
1631     cat conftest.er1 >&5
1632     mv -f conftest.er1 conftest.err
1633   fi
1634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635   test $ac_status = 0; } > conftest.i && {
1636          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637          test ! -s conftest.err
1638        }; then :
1639   ac_retval=0
1640 else
1641   $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644     ac_retval=1
1645 fi
1646   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647   as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_cpp
1650
1651 # ac_fn_c_try_run LINENO
1652 # ----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1654 # that executables *can* be run.
1655 ac_fn_c_try_run ()
1656 {
1657   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658   if { { ac_try="$ac_link"
1659 case "(($ac_try" in
1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661   *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665   (eval "$ac_link") 2>&5
1666   ac_status=$?
1667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669   { { case "(($ac_try" in
1670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671   *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675   (eval "$ac_try") 2>&5
1676   ac_status=$?
1677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678   test $ac_status = 0; }; }; then :
1679   ac_retval=0
1680 else
1681   $as_echo "$as_me: program exited with status $ac_status" >&5
1682        $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685        ac_retval=$ac_status
1686 fi
1687   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689   as_fn_set_status $ac_retval
1690
1691 } # ac_fn_c_try_run
1692
1693 # ac_fn_c_check_func LINENO FUNC VAR
1694 # ----------------------------------
1695 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1696 ac_fn_c_check_func ()
1697 {
1698   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if eval \${$3+:} false; then :
1702   $as_echo_n "(cached) " >&6
1703 else
1704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h.  */
1706 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1708 #define $2 innocuous_$2
1709
1710 /* System header to define __stub macros and hopefully few prototypes,
1711     which can conflict with char $2 (); below.
1712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1713     <limits.h> exists even on freestanding compilers.  */
1714
1715 #ifdef __STDC__
1716 # include <limits.h>
1717 #else
1718 # include <assert.h>
1719 #endif
1720
1721 #undef $2
1722
1723 /* Override any GCC internal prototype to avoid an error.
1724    Use char because int might match the return type of a GCC
1725    builtin and then its argument prototype would still apply.  */
1726 #ifdef __cplusplus
1727 extern "C"
1728 #endif
1729 char $2 ();
1730 /* The GNU C library defines this for functions which it implements
1731     to always fail with ENOSYS.  Some functions are actually named
1732     something starting with __ and the normal name is an alias.  */
1733 #if defined __stub_$2 || defined __stub___$2
1734 choke me
1735 #endif
1736
1737 int
1738 main ()
1739 {
1740 return $2 ();
1741   ;
1742   return 0;
1743 }
1744 _ACEOF
1745 if ac_fn_c_try_link "$LINENO"; then :
1746   eval "$3=yes"
1747 else
1748   eval "$3=no"
1749 fi
1750 rm -f core conftest.err conftest.$ac_objext \
1751     conftest$ac_exeext conftest.$ac_ext
1752 fi
1753 eval ac_res=\$$3
1754                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1756   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757
1758 } # ac_fn_c_check_func
1759
1760 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1761 # -------------------------------------------
1762 # Tests whether TYPE exists after having included INCLUDES, setting cache
1763 # variable VAR accordingly.
1764 ac_fn_c_check_type ()
1765 {
1766   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if eval \${$3+:} false; then :
1770   $as_echo_n "(cached) " >&6
1771 else
1772   eval "$3=no"
1773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h.  */
1775 $4
1776 int
1777 main ()
1778 {
1779 if (sizeof ($2))
1780          return 0;
1781   ;
1782   return 0;
1783 }
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h.  */
1788 $4
1789 int
1790 main ()
1791 {
1792 if (sizeof (($2)))
1793             return 0;
1794   ;
1795   return 0;
1796 }
1797 _ACEOF
1798 if ac_fn_c_try_compile "$LINENO"; then :
1799
1800 else
1801   eval "$3=yes"
1802 fi
1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 fi
1807 eval ac_res=\$$3
1808                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811
1812 } # ac_fn_c_check_type
1813
1814 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1817 # the include files in INCLUDES and setting the cache variable VAR
1818 # accordingly.
1819 ac_fn_c_check_header_mongrel ()
1820 {
1821   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822   if eval \${$3+:} false; then :
1823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826   $as_echo_n "(cached) " >&6
1827 fi
1828 eval ac_res=\$$3
1829                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 else
1832   # Is the header compilable?
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1834 $as_echo_n "checking $2 usability... " >&6; }
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h.  */
1837 $4
1838 #include <$2>
1839 _ACEOF
1840 if ac_fn_c_try_compile "$LINENO"; then :
1841   ac_header_compiler=yes
1842 else
1843   ac_header_compiler=no
1844 fi
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1847 $as_echo "$ac_header_compiler" >&6; }
1848
1849 # Is the header present?
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1851 $as_echo_n "checking $2 presence... " >&6; }
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h.  */
1854 #include <$2>
1855 _ACEOF
1856 if ac_fn_c_try_cpp "$LINENO"; then :
1857   ac_header_preproc=yes
1858 else
1859   ac_header_preproc=no
1860 fi
1861 rm -f conftest.err conftest.i conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1863 $as_echo "$ac_header_preproc" >&6; }
1864
1865 # So?  What about this header?
1866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1867   yes:no: )
1868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1869 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872     ;;
1873   no:yes:* )
1874     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1875 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1876     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1877 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1878     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1879 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1880     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1881 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1882     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1883 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1884 ( $as_echo "## ------------------------------- ##
1885 ## Report this to andy@warmcat.com ##
1886 ## ------------------------------- ##"
1887      ) | sed "s/^/$as_me: WARNING:     /" >&2
1888     ;;
1889 esac
1890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893   $as_echo_n "(cached) " >&6
1894 else
1895   eval "$3=\$ac_header_compiler"
1896 fi
1897 eval ac_res=\$$3
1898                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900 fi
1901   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903 } # ac_fn_c_check_header_mongrel
1904 cat >config.log <<_ACEOF
1905 This file contains any messages produced by compilers while
1906 running configure, to aid debugging if configure makes a mistake.
1907
1908 It was created by libwebsockets $as_me 0.3, which was
1909 generated by GNU Autoconf 2.68.  Invocation command line was
1910
1911   $ $0 $@
1912
1913 _ACEOF
1914 exec 5>>config.log
1915 {
1916 cat <<_ASUNAME
1917 ## --------- ##
1918 ## Platform. ##
1919 ## --------- ##
1920
1921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1926
1927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1928 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1929
1930 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1931 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1933 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1934 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1935 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1936 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1937
1938 _ASUNAME
1939
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1942 do
1943   IFS=$as_save_IFS
1944   test -z "$as_dir" && as_dir=.
1945     $as_echo "PATH: $as_dir"
1946   done
1947 IFS=$as_save_IFS
1948
1949 } >&5
1950
1951 cat >&5 <<_ACEOF
1952
1953
1954 ## ----------- ##
1955 ## Core tests. ##
1956 ## ----------- ##
1957
1958 _ACEOF
1959
1960
1961 # Keep a trace of the command line.
1962 # Strip out --no-create and --no-recursion so they do not pile up.
1963 # Strip out --silent because we don't want to record it for future runs.
1964 # Also quote any args containing shell meta-characters.
1965 # Make two passes to allow for proper duplicate-argument suppression.
1966 ac_configure_args=
1967 ac_configure_args0=
1968 ac_configure_args1=
1969 ac_must_keep_next=false
1970 for ac_pass in 1 2
1971 do
1972   for ac_arg
1973   do
1974     case $ac_arg in
1975     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1976     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1977     | -silent | --silent | --silen | --sile | --sil)
1978       continue ;;
1979     *\'*)
1980       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1981     esac
1982     case $ac_pass in
1983     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1984     2)
1985       as_fn_append ac_configure_args1 " '$ac_arg'"
1986       if test $ac_must_keep_next = true; then
1987         ac_must_keep_next=false # Got value, back to normal.
1988       else
1989         case $ac_arg in
1990           *=* | --config-cache | -C | -disable-* | --disable-* \
1991           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1992           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1993           | -with-* | --with-* | -without-* | --without-* | --x)
1994             case "$ac_configure_args0 " in
1995               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1996             esac
1997             ;;
1998           -* ) ac_must_keep_next=true ;;
1999         esac
2000       fi
2001       as_fn_append ac_configure_args " '$ac_arg'"
2002       ;;
2003     esac
2004   done
2005 done
2006 { ac_configure_args0=; unset ac_configure_args0;}
2007 { ac_configure_args1=; unset ac_configure_args1;}
2008
2009 # When interrupted or exit'd, cleanup temporary files, and complete
2010 # config.log.  We remove comments because anyway the quotes in there
2011 # would cause problems or look ugly.
2012 # WARNING: Use '\'' to represent an apostrophe within the trap.
2013 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2014 trap 'exit_status=$?
2015   # Save into config.log some information that might help in debugging.
2016   {
2017     echo
2018
2019     $as_echo "## ---------------- ##
2020 ## Cache variables. ##
2021 ## ---------------- ##"
2022     echo
2023     # The following way of writing the cache mishandles newlines in values,
2024 (
2025   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2026     eval ac_val=\$$ac_var
2027     case $ac_val in #(
2028     *${as_nl}*)
2029       case $ac_var in #(
2030       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2031 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2032       esac
2033       case $ac_var in #(
2034       _ | IFS | as_nl) ;; #(
2035       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2036       *) { eval $ac_var=; unset $ac_var;} ;;
2037       esac ;;
2038     esac
2039   done
2040   (set) 2>&1 |
2041     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2042     *${as_nl}ac_space=\ *)
2043       sed -n \
2044         "s/'\''/'\''\\\\'\'''\''/g;
2045           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2046       ;; #(
2047     *)
2048       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2049       ;;
2050     esac |
2051     sort
2052 )
2053     echo
2054
2055     $as_echo "## ----------------- ##
2056 ## Output variables. ##
2057 ## ----------------- ##"
2058     echo
2059     for ac_var in $ac_subst_vars
2060     do
2061       eval ac_val=\$$ac_var
2062       case $ac_val in
2063       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064       esac
2065       $as_echo "$ac_var='\''$ac_val'\''"
2066     done | sort
2067     echo
2068
2069     if test -n "$ac_subst_files"; then
2070       $as_echo "## ------------------- ##
2071 ## File substitutions. ##
2072 ## ------------------- ##"
2073       echo
2074       for ac_var in $ac_subst_files
2075       do
2076         eval ac_val=\$$ac_var
2077         case $ac_val in
2078         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079         esac
2080         $as_echo "$ac_var='\''$ac_val'\''"
2081       done | sort
2082       echo
2083     fi
2084
2085     if test -s confdefs.h; then
2086       $as_echo "## ----------- ##
2087 ## confdefs.h. ##
2088 ## ----------- ##"
2089       echo
2090       cat confdefs.h
2091       echo
2092     fi
2093     test "$ac_signal" != 0 &&
2094       $as_echo "$as_me: caught signal $ac_signal"
2095     $as_echo "$as_me: exit $exit_status"
2096   } >&5
2097   rm -f core *.core core.conftest.* &&
2098     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2099     exit $exit_status
2100 ' 0
2101 for ac_signal in 1 2 13 15; do
2102   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2103 done
2104 ac_signal=0
2105
2106 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2107 rm -f -r conftest* confdefs.h
2108
2109 $as_echo "/* confdefs.h */" > confdefs.h
2110
2111 # Predefined preprocessor variables.
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_NAME "$PACKAGE_NAME"
2115 _ACEOF
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2119 _ACEOF
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2123 _ACEOF
2124
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_STRING "$PACKAGE_STRING"
2127 _ACEOF
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2131 _ACEOF
2132
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_URL "$PACKAGE_URL"
2135 _ACEOF
2136
2137
2138 # Let the site file select an alternate cache file if it wants to.
2139 # Prefer an explicitly selected file to automatically selected ones.
2140 ac_site_file1=NONE
2141 ac_site_file2=NONE
2142 if test -n "$CONFIG_SITE"; then
2143   # We do not want a PATH search for config.site.
2144   case $CONFIG_SITE in #((
2145     -*)  ac_site_file1=./$CONFIG_SITE;;
2146     */*) ac_site_file1=$CONFIG_SITE;;
2147     *)   ac_site_file1=./$CONFIG_SITE;;
2148   esac
2149 elif test "x$prefix" != xNONE; then
2150   ac_site_file1=$prefix/share/config.site
2151   ac_site_file2=$prefix/etc/config.site
2152 else
2153   ac_site_file1=$ac_default_prefix/share/config.site
2154   ac_site_file2=$ac_default_prefix/etc/config.site
2155 fi
2156 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2157 do
2158   test "x$ac_site_file" = xNONE && continue
2159   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2160     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2161 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2162     sed 's/^/| /' "$ac_site_file" >&5
2163     . "$ac_site_file" \
2164       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2166 as_fn_error $? "failed to load site script $ac_site_file
2167 See \`config.log' for more details" "$LINENO" 5; }
2168   fi
2169 done
2170
2171 if test -r "$cache_file"; then
2172   # Some versions of bash will fail to source /dev/null (special files
2173   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2174   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2175     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2176 $as_echo "$as_me: loading cache $cache_file" >&6;}
2177     case $cache_file in
2178       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2179       *)                      . "./$cache_file";;
2180     esac
2181   fi
2182 else
2183   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2184 $as_echo "$as_me: creating cache $cache_file" >&6;}
2185   >$cache_file
2186 fi
2187
2188 # Check that the precious variables saved in the cache have kept the same
2189 # value.
2190 ac_cache_corrupted=false
2191 for ac_var in $ac_precious_vars; do
2192   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2193   eval ac_new_set=\$ac_env_${ac_var}_set
2194   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2195   eval ac_new_val=\$ac_env_${ac_var}_value
2196   case $ac_old_set,$ac_new_set in
2197     set,)
2198       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2199 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2200       ac_cache_corrupted=: ;;
2201     ,set)
2202       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2203 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2204       ac_cache_corrupted=: ;;
2205     ,);;
2206     *)
2207       if test "x$ac_old_val" != "x$ac_new_val"; then
2208         # differences in whitespace do not lead to failure.
2209         ac_old_val_w=`echo x $ac_old_val`
2210         ac_new_val_w=`echo x $ac_new_val`
2211         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2212           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2213 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2214           ac_cache_corrupted=:
2215         else
2216           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2217 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2218           eval $ac_var=\$ac_old_val
2219         fi
2220         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2221 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2222         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2223 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2224       fi;;
2225   esac
2226   # Pass precious variables to config.status.
2227   if test "$ac_new_set" = set; then
2228     case $ac_new_val in
2229     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2230     *) ac_arg=$ac_var=$ac_new_val ;;
2231     esac
2232     case " $ac_configure_args " in
2233       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2234       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2235     esac
2236   fi
2237 done
2238 if $ac_cache_corrupted; then
2239   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2241   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2242 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2243   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2244 fi
2245 ## -------------------- ##
2246 ## Main body of script. ##
2247 ## -------------------- ##
2248
2249 ac_ext=c
2250 ac_cpp='$CPP $CPPFLAGS'
2251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2254
2255
2256
2257 ac_config_headers="$ac_config_headers config.h"
2258
2259
2260 am__api_version='1.11'
2261
2262 ac_aux_dir=
2263 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2264   if 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/install.sh"; then
2269     ac_aux_dir=$ac_dir
2270     ac_install_sh="$ac_aux_dir/install.sh -c"
2271     break
2272   elif test -f "$ac_dir/shtool"; then
2273     ac_aux_dir=$ac_dir
2274     ac_install_sh="$ac_aux_dir/shtool install -c"
2275     break
2276   fi
2277 done
2278 if test -z "$ac_aux_dir"; then
2279   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2280 fi
2281
2282 # These three variables are undocumented and unsupported,
2283 # and are intended to be withdrawn in a future Autoconf release.
2284 # They can cause serious problems if a builder's source tree is in a directory
2285 # whose full name contains unusual characters.
2286 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2287 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2288 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2289
2290
2291 # Find a good install program.  We prefer a C program (faster),
2292 # so one script is as good as another.  But avoid the broken or
2293 # incompatible versions:
2294 # SysV /etc/install, /usr/sbin/install
2295 # SunOS /usr/etc/install
2296 # IRIX /sbin/install
2297 # AIX /bin/install
2298 # AmigaOS /C/install, which installs bootblocks on floppy discs
2299 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2300 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2301 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2302 # OS/2's system install, which has a completely different semantic
2303 # ./install, which can be erroneously created by make from ./install.sh.
2304 # Reject install programs that cannot install multiple files.
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2306 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2307 if test -z "$INSTALL"; then
2308 if ${ac_cv_path_install+:} false; then :
2309   $as_echo_n "(cached) " >&6
2310 else
2311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 for as_dir in $PATH
2313 do
2314   IFS=$as_save_IFS
2315   test -z "$as_dir" && as_dir=.
2316     # Account for people who put trailing slashes in PATH elements.
2317 case $as_dir/ in #((
2318   ./ | .// | /[cC]/* | \
2319   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2320   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2321   /usr/ucb/* ) ;;
2322   *)
2323     # OSF1 and SCO ODT 3.0 have their own names for install.
2324     # Don't use installbsd from OSF since it installs stuff as root
2325     # by default.
2326     for ac_prog in ginstall scoinst install; do
2327       for ac_exec_ext in '' $ac_executable_extensions; do
2328         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2329           if test $ac_prog = install &&
2330             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2331             # AIX install.  It has an incompatible calling convention.
2332             :
2333           elif test $ac_prog = install &&
2334             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2335             # program-specific install script used by HP pwplus--don't use.
2336             :
2337           else
2338             rm -rf conftest.one conftest.two conftest.dir
2339             echo one > conftest.one
2340             echo two > conftest.two
2341             mkdir conftest.dir
2342             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2343               test -s conftest.one && test -s conftest.two &&
2344               test -s conftest.dir/conftest.one &&
2345               test -s conftest.dir/conftest.two
2346             then
2347               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2348               break 3
2349             fi
2350           fi
2351         fi
2352       done
2353     done
2354     ;;
2355 esac
2356
2357   done
2358 IFS=$as_save_IFS
2359
2360 rm -rf conftest.one conftest.two conftest.dir
2361
2362 fi
2363   if test "${ac_cv_path_install+set}" = set; then
2364     INSTALL=$ac_cv_path_install
2365   else
2366     # As a last resort, use the slow shell script.  Don't cache a
2367     # value for INSTALL within a source directory, because that will
2368     # break other packages using the cache if that directory is
2369     # removed, or if the value is a relative name.
2370     INSTALL=$ac_install_sh
2371   fi
2372 fi
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2374 $as_echo "$INSTALL" >&6; }
2375
2376 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2377 # It thinks the first close brace ends the variable substitution.
2378 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2379
2380 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2381
2382 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2383
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2385 $as_echo_n "checking whether build environment is sane... " >&6; }
2386 # Just in case
2387 sleep 1
2388 echo timestamp > conftest.file
2389 # Reject unsafe characters in $srcdir or the absolute working directory
2390 # name.  Accept space and tab only in the latter.
2391 am_lf='
2392 '
2393 case `pwd` in
2394   *[\\\"\#\$\&\'\`$am_lf]*)
2395     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2396 esac
2397 case $srcdir in
2398   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2399     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2400 esac
2401
2402 # Do `set' in a subshell so we don't clobber the current shell's
2403 # arguments.  Must try -L first in case configure is actually a
2404 # symlink; some systems play weird games with the mod time of symlinks
2405 # (eg FreeBSD returns the mod time of the symlink's containing
2406 # directory).
2407 if (
2408    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2409    if test "$*" = "X"; then
2410       # -L didn't work.
2411       set X `ls -t "$srcdir/configure" conftest.file`
2412    fi
2413    rm -f conftest.file
2414    if test "$*" != "X $srcdir/configure conftest.file" \
2415       && test "$*" != "X conftest.file $srcdir/configure"; then
2416
2417       # If neither matched, then we have a broken ls.  This can happen
2418       # if, for instance, CONFIG_SHELL is bash and it inherits a
2419       # broken ls alias from the environment.  This has actually
2420       # happened.  Such a system could not be considered "sane".
2421       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2422 alias in your environment" "$LINENO" 5
2423    fi
2424
2425    test "$2" = conftest.file
2426    )
2427 then
2428    # Ok.
2429    :
2430 else
2431    as_fn_error $? "newly created file is older than distributed files!
2432 Check your system clock" "$LINENO" 5
2433 fi
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2435 $as_echo "yes" >&6; }
2436 test "$program_prefix" != NONE &&
2437   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2438 # Use a double $ so make ignores it.
2439 test "$program_suffix" != NONE &&
2440   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2441 # Double any \ or $.
2442 # By default was `s,x,x', remove it if useless.
2443 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2444 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2445
2446 # expand $ac_aux_dir to an absolute path
2447 am_aux_dir=`cd $ac_aux_dir && pwd`
2448
2449 if test x"${MISSING+set}" != xset; then
2450   case $am_aux_dir in
2451   *\ * | *\     *)
2452     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2453   *)
2454     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2455   esac
2456 fi
2457 # Use eval to expand $SHELL
2458 if eval "$MISSING --run true"; then
2459   am_missing_run="$MISSING --run "
2460 else
2461   am_missing_run=
2462   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2463 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2464 fi
2465
2466 if test x"${install_sh}" != xset; then
2467   case $am_aux_dir in
2468   *\ * | *\     *)
2469     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2470   *)
2471     install_sh="\${SHELL} $am_aux_dir/install-sh"
2472   esac
2473 fi
2474
2475 # Installed binaries are usually stripped using `strip' when the user
2476 # run `make install-strip'.  However `strip' might not be the right
2477 # tool to use in cross-compilation environments, therefore Automake
2478 # will honor the `STRIP' environment variable to overrule this program.
2479 if test "$cross_compiling" != no; then
2480   if test -n "$ac_tool_prefix"; then
2481   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2482 set dummy ${ac_tool_prefix}strip; ac_word=$2
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2484 $as_echo_n "checking for $ac_word... " >&6; }
2485 if ${ac_cv_prog_STRIP+:} false; then :
2486   $as_echo_n "(cached) " >&6
2487 else
2488   if test -n "$STRIP"; then
2489   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2490 else
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2493 do
2494   IFS=$as_save_IFS
2495   test -z "$as_dir" && as_dir=.
2496     for ac_exec_ext in '' $ac_executable_extensions; do
2497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2498     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2500     break 2
2501   fi
2502 done
2503   done
2504 IFS=$as_save_IFS
2505
2506 fi
2507 fi
2508 STRIP=$ac_cv_prog_STRIP
2509 if test -n "$STRIP"; then
2510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2511 $as_echo "$STRIP" >&6; }
2512 else
2513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2514 $as_echo "no" >&6; }
2515 fi
2516
2517
2518 fi
2519 if test -z "$ac_cv_prog_STRIP"; then
2520   ac_ct_STRIP=$STRIP
2521   # Extract the first word of "strip", so it can be a program name with args.
2522 set dummy strip; ac_word=$2
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524 $as_echo_n "checking for $ac_word... " >&6; }
2525 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2526   $as_echo_n "(cached) " >&6
2527 else
2528   if test -n "$ac_ct_STRIP"; then
2529   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2530 else
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534   IFS=$as_save_IFS
2535   test -z "$as_dir" && as_dir=.
2536     for ac_exec_ext in '' $ac_executable_extensions; do
2537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2538     ac_cv_prog_ac_ct_STRIP="strip"
2539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540     break 2
2541   fi
2542 done
2543   done
2544 IFS=$as_save_IFS
2545
2546 fi
2547 fi
2548 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2549 if test -n "$ac_ct_STRIP"; then
2550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2551 $as_echo "$ac_ct_STRIP" >&6; }
2552 else
2553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554 $as_echo "no" >&6; }
2555 fi
2556
2557   if test "x$ac_ct_STRIP" = x; then
2558     STRIP=":"
2559   else
2560     case $cross_compiling:$ac_tool_warned in
2561 yes:)
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2564 ac_tool_warned=yes ;;
2565 esac
2566     STRIP=$ac_ct_STRIP
2567   fi
2568 else
2569   STRIP="$ac_cv_prog_STRIP"
2570 fi
2571
2572 fi
2573 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2574
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2576 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2577 if test -z "$MKDIR_P"; then
2578   if ${ac_cv_path_mkdir+:} false; then :
2579   $as_echo_n "(cached) " >&6
2580 else
2581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2583 do
2584   IFS=$as_save_IFS
2585   test -z "$as_dir" && as_dir=.
2586     for ac_prog in mkdir gmkdir; do
2587          for ac_exec_ext in '' $ac_executable_extensions; do
2588            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2589            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2590              'mkdir (GNU coreutils) '* | \
2591              'mkdir (coreutils) '* | \
2592              'mkdir (fileutils) '4.1*)
2593                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2594                break 3;;
2595            esac
2596          done
2597        done
2598   done
2599 IFS=$as_save_IFS
2600
2601 fi
2602
2603   test -d ./--version && rmdir ./--version
2604   if test "${ac_cv_path_mkdir+set}" = set; then
2605     MKDIR_P="$ac_cv_path_mkdir -p"
2606   else
2607     # As a last resort, use the slow shell script.  Don't cache a
2608     # value for MKDIR_P within a source directory, because that will
2609     # break other packages using the cache if that directory is
2610     # removed, or if the value is a relative name.
2611     MKDIR_P="$ac_install_sh -d"
2612   fi
2613 fi
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2615 $as_echo "$MKDIR_P" >&6; }
2616
2617 mkdir_p="$MKDIR_P"
2618 case $mkdir_p in
2619   [\\/$]* | ?:[\\/]*) ;;
2620   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2621 esac
2622
2623 for ac_prog in gawk mawk nawk awk
2624 do
2625   # Extract the first word of "$ac_prog", so it can be a program name with args.
2626 set dummy $ac_prog; ac_word=$2
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if ${ac_cv_prog_AWK+:} false; then :
2630   $as_echo_n "(cached) " >&6
2631 else
2632   if test -n "$AWK"; then
2633   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638   IFS=$as_save_IFS
2639   test -z "$as_dir" && as_dir=.
2640     for ac_exec_ext in '' $ac_executable_extensions; do
2641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642     ac_cv_prog_AWK="$ac_prog"
2643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644     break 2
2645   fi
2646 done
2647   done
2648 IFS=$as_save_IFS
2649
2650 fi
2651 fi
2652 AWK=$ac_cv_prog_AWK
2653 if test -n "$AWK"; then
2654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2655 $as_echo "$AWK" >&6; }
2656 else
2657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2659 fi
2660
2661
2662   test -n "$AWK" && break
2663 done
2664
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2666 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2667 set x ${MAKE-make}
2668 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2669 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2670   $as_echo_n "(cached) " >&6
2671 else
2672   cat >conftest.make <<\_ACEOF
2673 SHELL = /bin/sh
2674 all:
2675         @echo '@@@%%%=$(MAKE)=@@@%%%'
2676 _ACEOF
2677 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2678 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2679   *@@@%%%=?*=@@@%%%*)
2680     eval ac_cv_prog_make_${ac_make}_set=yes;;
2681   *)
2682     eval ac_cv_prog_make_${ac_make}_set=no;;
2683 esac
2684 rm -f conftest.make
2685 fi
2686 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2688 $as_echo "yes" >&6; }
2689   SET_MAKE=
2690 else
2691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2693   SET_MAKE="MAKE=${MAKE-make}"
2694 fi
2695
2696 rm -rf .tst 2>/dev/null
2697 mkdir .tst 2>/dev/null
2698 if test -d .tst; then
2699   am__leading_dot=.
2700 else
2701   am__leading_dot=_
2702 fi
2703 rmdir .tst 2>/dev/null
2704
2705 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2706   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2707   # is not polluted with repeated "-I."
2708   am__isrc=' -I$(srcdir)'
2709   # test to see if srcdir already configured
2710   if test -f $srcdir/config.status; then
2711     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2712   fi
2713 fi
2714
2715 # test whether we have cygpath
2716 if test -z "$CYGPATH_W"; then
2717   if (cygpath --version) >/dev/null 2>/dev/null; then
2718     CYGPATH_W='cygpath -w'
2719   else
2720     CYGPATH_W=echo
2721   fi
2722 fi
2723
2724
2725 # Define the identity of the package.
2726  PACKAGE='libwebsockets'
2727  VERSION='0.3'
2728
2729
2730 cat >>confdefs.h <<_ACEOF
2731 #define PACKAGE "$PACKAGE"
2732 _ACEOF
2733
2734
2735 cat >>confdefs.h <<_ACEOF
2736 #define VERSION "$VERSION"
2737 _ACEOF
2738
2739 # Some tools Automake needs.
2740
2741 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2742
2743
2744 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2745
2746
2747 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2748
2749
2750 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2751
2752
2753 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2754
2755 # We need awk for the "check" target.  The system "awk" is bad on
2756 # some platforms.
2757 # Always define AMTAR for backward compatibility.
2758
2759 AMTAR=${AMTAR-"${am_missing_run}tar"}
2760
2761 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2762
2763
2764
2765
2766
2767 case `pwd` in
2768   *\ * | *\     *)
2769     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2770 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2771 esac
2772
2773
2774
2775 macro_version='2.4.2'
2776 macro_revision='1.3337'
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790 ltmain="$ac_aux_dir/ltmain.sh"
2791
2792 # Make sure we can run config.sub.
2793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2794   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2795
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2797 $as_echo_n "checking build system type... " >&6; }
2798 if ${ac_cv_build+:} false; then :
2799   $as_echo_n "(cached) " >&6
2800 else
2801   ac_build_alias=$build_alias
2802 test "x$ac_build_alias" = x &&
2803   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2804 test "x$ac_build_alias" = x &&
2805   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2807   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2808
2809 fi
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2811 $as_echo "$ac_cv_build" >&6; }
2812 case $ac_cv_build in
2813 *-*-*) ;;
2814 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2815 esac
2816 build=$ac_cv_build
2817 ac_save_IFS=$IFS; IFS='-'
2818 set x $ac_cv_build
2819 shift
2820 build_cpu=$1
2821 build_vendor=$2
2822 shift; shift
2823 # Remember, the first character of IFS is used to create $*,
2824 # except with old shells:
2825 build_os=$*
2826 IFS=$ac_save_IFS
2827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2828
2829
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2831 $as_echo_n "checking host system type... " >&6; }
2832 if ${ac_cv_host+:} false; then :
2833   $as_echo_n "(cached) " >&6
2834 else
2835   if test "x$host_alias" = x; then
2836   ac_cv_host=$ac_cv_build
2837 else
2838   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2839     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2840 fi
2841
2842 fi
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2844 $as_echo "$ac_cv_host" >&6; }
2845 case $ac_cv_host in
2846 *-*-*) ;;
2847 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2848 esac
2849 host=$ac_cv_host
2850 ac_save_IFS=$IFS; IFS='-'
2851 set x $ac_cv_host
2852 shift
2853 host_cpu=$1
2854 host_vendor=$2
2855 shift; shift
2856 # Remember, the first character of IFS is used to create $*,
2857 # except with old shells:
2858 host_os=$*
2859 IFS=$ac_save_IFS
2860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2861
2862
2863 # Backslashify metacharacters that are still active within
2864 # double-quoted strings.
2865 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2866
2867 # Same as above, but do not quote variable references.
2868 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2869
2870 # Sed substitution to delay expansion of an escaped shell variable in a
2871 # double_quote_subst'ed string.
2872 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2873
2874 # Sed substitution to delay expansion of an escaped single quote.
2875 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2876
2877 # Sed substitution to avoid accidental globbing in evaled expressions
2878 no_glob_subst='s/\*/\\\*/g'
2879
2880 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2881 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2882 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2883
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2885 $as_echo_n "checking how to print strings... " >&6; }
2886 # Test print first, because it will be a builtin if present.
2887 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2888    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2889   ECHO='print -r --'
2890 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2891   ECHO='printf %s\n'
2892 else
2893   # Use this function as a fallback that always works.
2894   func_fallback_echo ()
2895   {
2896     eval 'cat <<_LTECHO_EOF
2897 $1
2898 _LTECHO_EOF'
2899   }
2900   ECHO='func_fallback_echo'
2901 fi
2902
2903 # func_echo_all arg...
2904 # Invoke $ECHO with all args, space-separated.
2905 func_echo_all ()
2906 {
2907     $ECHO ""
2908 }
2909
2910 case "$ECHO" in
2911   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2912 $as_echo "printf" >&6; } ;;
2913   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2914 $as_echo "print -r" >&6; } ;;
2915   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2916 $as_echo "cat" >&6; } ;;
2917 esac
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932 DEPDIR="${am__leading_dot}deps"
2933
2934 ac_config_commands="$ac_config_commands depfiles"
2935
2936
2937 am_make=${MAKE-make}
2938 cat > confinc << 'END'
2939 am__doit:
2940         @echo this is the am__doit target
2941 .PHONY: am__doit
2942 END
2943 # If we don't find an include directive, just comment out the code.
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2945 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2946 am__include="#"
2947 am__quote=
2948 _am_result=none
2949 # First try GNU make style include.
2950 echo "include confinc" > confmf
2951 # Ignore all kinds of additional output from `make'.
2952 case `$am_make -s -f confmf 2> /dev/null` in #(
2953 *the\ am__doit\ target*)
2954   am__include=include
2955   am__quote=
2956   _am_result=GNU
2957   ;;
2958 esac
2959 # Now try BSD make style include.
2960 if test "$am__include" = "#"; then
2961    echo '.include "confinc"' > confmf
2962    case `$am_make -s -f confmf 2> /dev/null` in #(
2963    *the\ am__doit\ target*)
2964      am__include=.include
2965      am__quote="\""
2966      _am_result=BSD
2967      ;;
2968    esac
2969 fi
2970
2971
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2973 $as_echo "$_am_result" >&6; }
2974 rm -f confinc confmf
2975
2976 # Check whether --enable-dependency-tracking was given.
2977 if test "${enable_dependency_tracking+set}" = set; then :
2978   enableval=$enable_dependency_tracking;
2979 fi
2980
2981 if test "x$enable_dependency_tracking" != xno; then
2982   am_depcomp="$ac_aux_dir/depcomp"
2983   AMDEPBACKSLASH='\'
2984   am__nodep='_no'
2985 fi
2986  if test "x$enable_dependency_tracking" != xno; then
2987   AMDEP_TRUE=
2988   AMDEP_FALSE='#'
2989 else
2990   AMDEP_TRUE='#'
2991   AMDEP_FALSE=
2992 fi
2993
2994
2995 ac_ext=c
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 if test -n "$ac_tool_prefix"; then
3001   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3002 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_CC+:} false; then :
3006   $as_echo_n "(cached) " >&6
3007 else
3008   if test -n "$CC"; then
3009   ac_cv_prog_CC="$CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014   IFS=$as_save_IFS
3015   test -z "$as_dir" && as_dir=.
3016     for ac_exec_ext in '' $ac_executable_extensions; do
3017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020     break 2
3021   fi
3022 done
3023   done
3024 IFS=$as_save_IFS
3025
3026 fi
3027 fi
3028 CC=$ac_cv_prog_CC
3029 if test -n "$CC"; then
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3032 else
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 fi
3036
3037
3038 fi
3039 if test -z "$ac_cv_prog_CC"; then
3040   ac_ct_CC=$CC
3041   # Extract the first word of "gcc", so it can be a program name with args.
3042 set dummy gcc; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3046   $as_echo_n "(cached) " >&6
3047 else
3048   if test -n "$ac_ct_CC"; then
3049   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054   IFS=$as_save_IFS
3055   test -z "$as_dir" && as_dir=.
3056     for ac_exec_ext in '' $ac_executable_extensions; do
3057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058     ac_cv_prog_ac_ct_CC="gcc"
3059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060     break 2
3061   fi
3062 done
3063   done
3064 IFS=$as_save_IFS
3065
3066 fi
3067 fi
3068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069 if test -n "$ac_ct_CC"; then
3070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3071 $as_echo "$ac_ct_CC" >&6; }
3072 else
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077   if test "x$ac_ct_CC" = x; then
3078     CC=""
3079   else
3080     case $cross_compiling:$ac_tool_warned in
3081 yes:)
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3085 esac
3086     CC=$ac_ct_CC
3087   fi
3088 else
3089   CC="$ac_cv_prog_CC"
3090 fi
3091
3092 if test -z "$CC"; then
3093           if test -n "$ac_tool_prefix"; then
3094     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3095 set dummy ${ac_tool_prefix}cc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_CC+:} false; then :
3099   $as_echo_n "(cached) " >&6
3100 else
3101   if test -n "$CC"; then
3102   ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107   IFS=$as_save_IFS
3108   test -z "$as_dir" && as_dir=.
3109     for ac_exec_ext in '' $ac_executable_extensions; do
3110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111     ac_cv_prog_CC="${ac_tool_prefix}cc"
3112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113     break 2
3114   fi
3115 done
3116   done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 CC=$ac_cv_prog_CC
3122 if test -n "$CC"; then
3123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 $as_echo "$CC" >&6; }
3125 else
3126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 fi
3129
3130
3131   fi
3132 fi
3133 if test -z "$CC"; then
3134   # Extract the first word of "cc", so it can be a program name with args.
3135 set dummy cc; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_prog_CC+:} false; then :
3139   $as_echo_n "(cached) " >&6
3140 else
3141   if test -n "$CC"; then
3142   ac_cv_prog_CC="$CC" # Let the user override the test.
3143 else
3144   ac_prog_rejected=no
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150     for ac_exec_ext in '' $ac_executable_extensions; do
3151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3153        ac_prog_rejected=yes
3154        continue
3155      fi
3156     ac_cv_prog_CC="cc"
3157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158     break 2
3159   fi
3160 done
3161   done
3162 IFS=$as_save_IFS
3163
3164 if test $ac_prog_rejected = yes; then
3165   # We found a bogon in the path, so make sure we never use it.
3166   set dummy $ac_cv_prog_CC
3167   shift
3168   if test $# != 0; then
3169     # We chose a different compiler from the bogus one.
3170     # However, it has the same basename, so the bogon will be chosen
3171     # first if we set CC to just the basename; use the full file name.
3172     shift
3173     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3174   fi
3175 fi
3176 fi
3177 fi
3178 CC=$ac_cv_prog_CC
3179 if test -n "$CC"; then
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3182 else
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 fi
3186
3187
3188 fi
3189 if test -z "$CC"; then
3190   if test -n "$ac_tool_prefix"; then
3191   for ac_prog in cl.exe
3192   do
3193     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_prog_CC+:} false; then :
3198   $as_echo_n "(cached) " >&6
3199 else
3200   if test -n "$CC"; then
3201   ac_cv_prog_CC="$CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206   IFS=$as_save_IFS
3207   test -z "$as_dir" && as_dir=.
3208     for ac_exec_ext in '' $ac_executable_extensions; do
3209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212     break 2
3213   fi
3214 done
3215   done
3216 IFS=$as_save_IFS
3217
3218 fi
3219 fi
3220 CC=$ac_cv_prog_CC
3221 if test -n "$CC"; then
3222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3224 else
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3227 fi
3228
3229
3230     test -n "$CC" && break
3231   done
3232 fi
3233 if test -z "$CC"; then
3234   ac_ct_CC=$CC
3235   for ac_prog in cl.exe
3236 do
3237   # Extract the first word of "$ac_prog", so it can be a program name with args.
3238 set dummy $ac_prog; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3242   $as_echo_n "(cached) " >&6
3243 else
3244   if test -n "$ac_ct_CC"; then
3245   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250   IFS=$as_save_IFS
3251   test -z "$as_dir" && as_dir=.
3252     for ac_exec_ext in '' $ac_executable_extensions; do
3253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254     ac_cv_prog_ac_ct_CC="$ac_prog"
3255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256     break 2
3257   fi
3258 done
3259   done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3267 $as_echo "$ac_ct_CC" >&6; }
3268 else
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274   test -n "$ac_ct_CC" && break
3275 done
3276
3277   if test "x$ac_ct_CC" = x; then
3278     CC=""
3279   else
3280     case $cross_compiling:$ac_tool_warned in
3281 yes:)
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3284 ac_tool_warned=yes ;;
3285 esac
3286     CC=$ac_ct_CC
3287   fi
3288 fi
3289
3290 fi
3291
3292
3293 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $? "no acceptable C compiler found in \$PATH
3296 See \`config.log' for more details" "$LINENO" 5; }
3297
3298 # Provide some information about the compiler.
3299 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3300 set X $ac_compile
3301 ac_compiler=$2
3302 for ac_option in --version -v -V -qversion; do
3303   { { ac_try="$ac_compiler $ac_option >&5"
3304 case "(($ac_try" in
3305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306   *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3311   ac_status=$?
3312   if test -s conftest.err; then
3313     sed '10a\
3314 ... rest of stderr output deleted ...
3315          10q' conftest.err >conftest.er1
3316     cat conftest.er1 >&5
3317   fi
3318   rm -f conftest.er1 conftest.err
3319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320   test $ac_status = 0; }
3321 done
3322
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h.  */
3325
3326 int
3327 main ()
3328 {
3329
3330   ;
3331   return 0;
3332 }
3333 _ACEOF
3334 ac_clean_files_save=$ac_clean_files
3335 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3336 # Try to create an executable without -o first, disregard a.out.
3337 # It will help us diagnose broken compilers, and finding out an intuition
3338 # of exeext.
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3340 $as_echo_n "checking whether the C compiler works... " >&6; }
3341 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3342
3343 # The possible output files:
3344 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3345
3346 ac_rmfiles=
3347 for ac_file in $ac_files
3348 do
3349   case $ac_file in
3350     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3351     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3352   esac
3353 done
3354 rm -f $ac_rmfiles
3355
3356 if { { ac_try="$ac_link_default"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363   (eval "$ac_link_default") 2>&5
3364   ac_status=$?
3365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366   test $ac_status = 0; }; then :
3367   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3368 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3369 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3370 # so that the user can short-circuit this test for compilers unknown to
3371 # Autoconf.
3372 for ac_file in $ac_files ''
3373 do
3374   test -f "$ac_file" || continue
3375   case $ac_file in
3376     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3377         ;;
3378     [ab].out )
3379         # We found the default executable, but exeext='' is most
3380         # certainly right.
3381         break;;
3382     *.* )
3383         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3384         then :; else
3385            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3386         fi
3387         # We set ac_cv_exeext here because the later test for it is not
3388         # safe: cross compilers may not add the suffix if given an `-o'
3389         # argument, so we may need to know it at that point already.
3390         # Even if this section looks crufty: it has the advantage of
3391         # actually working.
3392         break;;
3393     * )
3394         break;;
3395   esac
3396 done
3397 test "$ac_cv_exeext" = no && ac_cv_exeext=
3398
3399 else
3400   ac_file=''
3401 fi
3402 if test -z "$ac_file"; then :
3403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3405 $as_echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error 77 "C compiler cannot create executables
3411 See \`config.log' for more details" "$LINENO" 5; }
3412 else
3413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3414 $as_echo "yes" >&6; }
3415 fi
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3417 $as_echo_n "checking for C compiler default output file name... " >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3419 $as_echo "$ac_file" >&6; }
3420 ac_exeext=$ac_cv_exeext
3421
3422 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3423 ac_clean_files=$ac_clean_files_save
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3425 $as_echo_n "checking for suffix of executables... " >&6; }
3426 if { { ac_try="$ac_link"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433   (eval "$ac_link") 2>&5
3434   ac_status=$?
3435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436   test $ac_status = 0; }; then :
3437   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3438 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3439 # work properly (i.e., refer to `conftest.exe'), while it won't with
3440 # `rm'.
3441 for ac_file in conftest.exe conftest conftest.*; do
3442   test -f "$ac_file" || continue
3443   case $ac_file in
3444     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446           break;;
3447     * ) break;;
3448   esac
3449 done
3450 else
3451   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details" "$LINENO" 5; }
3455 fi
3456 rm -f conftest conftest$ac_cv_exeext
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3458 $as_echo "$ac_cv_exeext" >&6; }
3459
3460 rm -f conftest.$ac_ext
3461 EXEEXT=$ac_cv_exeext
3462 ac_exeext=$EXEEXT
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h.  */
3465 #include <stdio.h>
3466 int
3467 main ()
3468 {
3469 FILE *f = fopen ("conftest.out", "w");
3470  return ferror (f) || fclose (f) != 0;
3471
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 ac_clean_files="$ac_clean_files conftest.out"
3477 # Check that the compiler produces executables we can run.  If not, either
3478 # the compiler is broken, or we cross compile.
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3480 $as_echo_n "checking whether we are cross compiling... " >&6; }
3481 if test "$cross_compiling" != yes; then
3482   { { ac_try="$ac_link"
3483 case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489   (eval "$ac_link") 2>&5
3490   ac_status=$?
3491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492   test $ac_status = 0; }
3493   if { ac_try='./conftest$ac_cv_exeext'
3494   { { case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500   (eval "$ac_try") 2>&5
3501   ac_status=$?
3502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503   test $ac_status = 0; }; }; then
3504     cross_compiling=no
3505   else
3506     if test "$cross_compiling" = maybe; then
3507         cross_compiling=yes
3508     else
3509         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 as_fn_error $? "cannot run C compiled programs.
3512 If you meant to cross compile, use \`--host'.
3513 See \`config.log' for more details" "$LINENO" 5; }
3514     fi
3515   fi
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3518 $as_echo "$cross_compiling" >&6; }
3519
3520 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3521 ac_clean_files=$ac_clean_files_save
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3523 $as_echo_n "checking for suffix of object files... " >&6; }
3524 if ${ac_cv_objext+:} false; then :
3525   $as_echo_n "(cached) " >&6
3526 else
3527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h.  */
3529
3530 int
3531 main ()
3532 {
3533
3534   ;
3535   return 0;
3536 }
3537 _ACEOF
3538 rm -f conftest.o conftest.obj
3539 if { { ac_try="$ac_compile"
3540 case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546   (eval "$ac_compile") 2>&5
3547   ac_status=$?
3548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549   test $ac_status = 0; }; then :
3550   for ac_file in conftest.o conftest.obj conftest.*; do
3551   test -f "$ac_file" || continue;
3552   case $ac_file in
3553     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3554     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3555        break;;
3556   esac
3557 done
3558 else
3559   $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error $? "cannot compute suffix of object files: cannot compile
3565 See \`config.log' for more details" "$LINENO" 5; }
3566 fi
3567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3568 fi
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3570 $as_echo "$ac_cv_objext" >&6; }
3571 OBJEXT=$ac_cv_objext
3572 ac_objext=$OBJEXT
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3574 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3575 if ${ac_cv_c_compiler_gnu+:} false; then :
3576   $as_echo_n "(cached) " >&6
3577 else
3578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h.  */
3580
3581 int
3582 main ()
3583 {
3584 #ifndef __GNUC__
3585        choke me
3586 #endif
3587
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 if ac_fn_c_try_compile "$LINENO"; then :
3593   ac_compiler_gnu=yes
3594 else
3595   ac_compiler_gnu=no
3596 fi
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3599
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3602 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3603 if test $ac_compiler_gnu = yes; then
3604   GCC=yes
3605 else
3606   GCC=
3607 fi
3608 ac_test_CFLAGS=${CFLAGS+set}
3609 ac_save_CFLAGS=$CFLAGS
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3611 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3612 if ${ac_cv_prog_cc_g+:} false; then :
3613   $as_echo_n "(cached) " >&6
3614 else
3615   ac_save_c_werror_flag=$ac_c_werror_flag
3616    ac_c_werror_flag=yes
3617    ac_cv_prog_cc_g=no
3618    CFLAGS="-g"
3619    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h.  */
3621
3622 int
3623 main ()
3624 {
3625
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 if ac_fn_c_try_compile "$LINENO"; then :
3631   ac_cv_prog_cc_g=yes
3632 else
3633   CFLAGS=""
3634       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h.  */
3636
3637 int
3638 main ()
3639 {
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646
3647 else
3648   ac_c_werror_flag=$ac_save_c_werror_flag
3649          CFLAGS="-g"
3650          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h.  */
3652
3653 int
3654 main ()
3655 {
3656
3657   ;
3658   return 0;
3659 }
3660 _ACEOF
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662   ac_cv_prog_cc_g=yes
3663 fi
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 fi
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667 fi
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669    ac_c_werror_flag=$ac_save_c_werror_flag
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3672 $as_echo "$ac_cv_prog_cc_g" >&6; }
3673 if test "$ac_test_CFLAGS" = set; then
3674   CFLAGS=$ac_save_CFLAGS
3675 elif test $ac_cv_prog_cc_g = yes; then
3676   if test "$GCC" = yes; then
3677     CFLAGS="-g -O2"
3678   else
3679     CFLAGS="-g"
3680   fi
3681 else
3682   if test "$GCC" = yes; then
3683     CFLAGS="-O2"
3684   else
3685     CFLAGS=
3686   fi
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3689 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3690 if ${ac_cv_prog_cc_c89+:} false; then :
3691   $as_echo_n "(cached) " >&6
3692 else
3693   ac_cv_prog_cc_c89=no
3694 ac_save_CC=$CC
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h.  */
3697 #include <stdarg.h>
3698 #include <stdio.h>
3699 #include <sys/types.h>
3700 #include <sys/stat.h>
3701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3702 struct buf { int x; };
3703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3704 static char *e (p, i)
3705      char **p;
3706      int i;
3707 {
3708   return p[i];
3709 }
3710 static char *f (char * (*g) (char **, int), char **p, ...)
3711 {
3712   char *s;
3713   va_list v;
3714   va_start (v,p);
3715   s = g (p, va_arg (v,int));
3716   va_end (v);
3717   return s;
3718 }
3719
3720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3721    function prototypes and stuff, but not '\xHH' hex character constants.
3722    These don't provoke an error unfortunately, instead are silently treated
3723    as 'x'.  The following induces an error, until -std is added to get
3724    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3725    array size at least.  It's necessary to write '\x00'==0 to get something
3726    that's true only with -std.  */
3727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3728
3729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3730    inside strings and character constants.  */
3731 #define FOO(x) 'x'
3732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3733
3734 int test (int i, double x);
3735 struct s1 {int (*f) (int a);};
3736 struct s2 {int (*f) (double a);};
3737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3738 int argc;
3739 char **argv;
3740 int
3741 main ()
3742 {
3743 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3744   ;
3745   return 0;
3746 }
3747 _ACEOF
3748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3749         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3750 do
3751   CC="$ac_save_CC $ac_arg"
3752   if ac_fn_c_try_compile "$LINENO"; then :
3753   ac_cv_prog_cc_c89=$ac_arg
3754 fi
3755 rm -f core conftest.err conftest.$ac_objext
3756   test "x$ac_cv_prog_cc_c89" != "xno" && break
3757 done
3758 rm -f conftest.$ac_ext
3759 CC=$ac_save_CC
3760
3761 fi
3762 # AC_CACHE_VAL
3763 case "x$ac_cv_prog_cc_c89" in
3764   x)
3765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3766 $as_echo "none needed" >&6; } ;;
3767   xno)
3768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3769 $as_echo "unsupported" >&6; } ;;
3770   *)
3771     CC="$CC $ac_cv_prog_cc_c89"
3772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3773 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3774 esac
3775 if test "x$ac_cv_prog_cc_c89" != xno; then :
3776
3777 fi
3778
3779 ac_ext=c
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784
3785 depcc="$CC"   am_compiler_list=
3786
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3788 $as_echo_n "checking dependency style of $depcc... " >&6; }
3789 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3790   $as_echo_n "(cached) " >&6
3791 else
3792   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3793   # We make a subdir and do the tests there.  Otherwise we can end up
3794   # making bogus files that we don't know about and never remove.  For
3795   # instance it was reported that on HP-UX the gcc test will end up
3796   # making a dummy file named `D' -- because `-MD' means `put the output
3797   # in D'.
3798   rm -rf conftest.dir
3799   mkdir conftest.dir
3800   # Copy depcomp to subdir because otherwise we won't find it if we're
3801   # using a relative directory.
3802   cp "$am_depcomp" conftest.dir
3803   cd conftest.dir
3804   # We will build objects and dependencies in a subdirectory because
3805   # it helps to detect inapplicable dependency modes.  For instance
3806   # both Tru64's cc and ICC support -MD to output dependencies as a
3807   # side effect of compilation, but ICC will put the dependencies in
3808   # the current directory while Tru64 will put them in the object
3809   # directory.
3810   mkdir sub
3811
3812   am_cv_CC_dependencies_compiler_type=none
3813   if test "$am_compiler_list" = ""; then
3814      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3815   fi
3816   am__universal=false
3817   case " $depcc " in #(
3818      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3819      esac
3820
3821   for depmode in $am_compiler_list; do
3822     # Setup a source with many dependencies, because some compilers
3823     # like to wrap large dependency lists on column 80 (with \), and
3824     # we should not choose a depcomp mode which is confused by this.
3825     #
3826     # We need to recreate these files for each test, as the compiler may
3827     # overwrite some of them when testing with obscure command lines.
3828     # This happens at least with the AIX C compiler.
3829     : > sub/conftest.c
3830     for i in 1 2 3 4 5 6; do
3831       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3832       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3833       # Solaris 8's {/usr,}/bin/sh.
3834       touch sub/conftst$i.h
3835     done
3836     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3837
3838     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3839     # mode.  It turns out that the SunPro C++ compiler does not properly
3840     # handle `-M -o', and we need to detect this.  Also, some Intel
3841     # versions had trouble with output in subdirs
3842     am__obj=sub/conftest.${OBJEXT-o}
3843     am__minus_obj="-o $am__obj"
3844     case $depmode in
3845     gcc)
3846       # This depmode causes a compiler race in universal mode.
3847       test "$am__universal" = false || continue
3848       ;;
3849     nosideeffect)
3850       # after this tag, mechanisms are not by side-effect, so they'll
3851       # only be used when explicitly requested
3852       if test "x$enable_dependency_tracking" = xyes; then
3853         continue
3854       else
3855         break
3856       fi
3857       ;;
3858     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3859       # This compiler won't grok `-c -o', but also, the minuso test has
3860       # not run yet.  These depmodes are late enough in the game, and
3861       # so weak that their functioning should not be impacted.
3862       am__obj=conftest.${OBJEXT-o}
3863       am__minus_obj=
3864       ;;
3865     none) break ;;
3866     esac
3867     if depmode=$depmode \
3868        source=sub/conftest.c object=$am__obj \
3869        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3870        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3871          >/dev/null 2>conftest.err &&
3872        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3873        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3874        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3875        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3876       # icc doesn't choke on unknown options, it will just issue warnings
3877       # or remarks (even with -Werror).  So we grep stderr for any message
3878       # that says an option was ignored or not supported.
3879       # When given -MP, icc 7.0 and 7.1 complain thusly:
3880       #   icc: Command line warning: ignoring option '-M'; no argument required
3881       # The diagnosis changed in icc 8.0:
3882       #   icc: Command line remark: option '-MP' not supported
3883       if (grep 'ignoring option' conftest.err ||
3884           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3885         am_cv_CC_dependencies_compiler_type=$depmode
3886         break
3887       fi
3888     fi
3889   done
3890
3891   cd ..
3892   rm -rf conftest.dir
3893 else
3894   am_cv_CC_dependencies_compiler_type=none
3895 fi
3896
3897 fi
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3899 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3900 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3901
3902  if
3903   test "x$enable_dependency_tracking" != xno \
3904   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3905   am__fastdepCC_TRUE=
3906   am__fastdepCC_FALSE='#'
3907 else
3908   am__fastdepCC_TRUE='#'
3909   am__fastdepCC_FALSE=
3910 fi
3911
3912
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3914 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3915 if ${ac_cv_path_SED+:} false; then :
3916   $as_echo_n "(cached) " >&6
3917 else
3918             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3919      for ac_i in 1 2 3 4 5 6 7; do
3920        ac_script="$ac_script$as_nl$ac_script"
3921      done
3922      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3923      { ac_script=; unset ac_script;}
3924      if test -z "$SED"; then
3925   ac_path_SED_found=false
3926   # Loop through the user's path and test for each of PROGNAME-LIST
3927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3929 do
3930   IFS=$as_save_IFS
3931   test -z "$as_dir" && as_dir=.
3932     for ac_prog in sed gsed; do
3933     for ac_exec_ext in '' $ac_executable_extensions; do
3934       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3935       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3936 # Check for GNU ac_path_SED and select it if it is found.
3937   # Check for GNU $ac_path_SED
3938 case `"$ac_path_SED" --version 2>&1` in
3939 *GNU*)
3940   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3941 *)
3942   ac_count=0
3943   $as_echo_n 0123456789 >"conftest.in"
3944   while :
3945   do
3946     cat "conftest.in" "conftest.in" >"conftest.tmp"
3947     mv "conftest.tmp" "conftest.in"
3948     cp "conftest.in" "conftest.nl"
3949     $as_echo '' >> "conftest.nl"
3950     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3951     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3952     as_fn_arith $ac_count + 1 && ac_count=$as_val
3953     if test $ac_count -gt ${ac_path_SED_max-0}; then
3954       # Best one so far, save it but keep looking for a better one
3955       ac_cv_path_SED="$ac_path_SED"
3956       ac_path_SED_max=$ac_count
3957     fi
3958     # 10*(2^10) chars as input seems more than enough
3959     test $ac_count -gt 10 && break
3960   done
3961   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3962 esac
3963
3964       $ac_path_SED_found && break 3
3965     done
3966   done
3967   done
3968 IFS=$as_save_IFS
3969   if test -z "$ac_cv_path_SED"; then
3970     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3971   fi
3972 else
3973   ac_cv_path_SED=$SED
3974 fi
3975
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3978 $as_echo "$ac_cv_path_SED" >&6; }
3979  SED="$ac_cv_path_SED"
3980   rm -f conftest.sed
3981
3982 test -z "$SED" && SED=sed
3983 Xsed="$SED -e 1s/^X//"
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3996 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3997 if ${ac_cv_path_GREP+:} false; then :
3998   $as_echo_n "(cached) " >&6
3999 else
4000   if test -z "$GREP"; then
4001   ac_path_GREP_found=false
4002   # Loop through the user's path and test for each of PROGNAME-LIST
4003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005 do
4006   IFS=$as_save_IFS
4007   test -z "$as_dir" && as_dir=.
4008     for ac_prog in grep ggrep; do
4009     for ac_exec_ext in '' $ac_executable_extensions; do
4010       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4011       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4012 # Check for GNU ac_path_GREP and select it if it is found.
4013   # Check for GNU $ac_path_GREP
4014 case `"$ac_path_GREP" --version 2>&1` in
4015 *GNU*)
4016   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4017 *)
4018   ac_count=0
4019   $as_echo_n 0123456789 >"conftest.in"
4020   while :
4021   do
4022     cat "conftest.in" "conftest.in" >"conftest.tmp"
4023     mv "conftest.tmp" "conftest.in"
4024     cp "conftest.in" "conftest.nl"
4025     $as_echo 'GREP' >> "conftest.nl"
4026     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028     as_fn_arith $ac_count + 1 && ac_count=$as_val
4029     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4030       # Best one so far, save it but keep looking for a better one
4031       ac_cv_path_GREP="$ac_path_GREP"
4032       ac_path_GREP_max=$ac_count
4033     fi
4034     # 10*(2^10) chars as input seems more than enough
4035     test $ac_count -gt 10 && break
4036   done
4037   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038 esac
4039
4040       $ac_path_GREP_found && break 3
4041     done
4042   done
4043   done
4044 IFS=$as_save_IFS
4045   if test -z "$ac_cv_path_GREP"; then
4046     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4047   fi
4048 else
4049   ac_cv_path_GREP=$GREP
4050 fi
4051
4052 fi
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4054 $as_echo "$ac_cv_path_GREP" >&6; }
4055  GREP="$ac_cv_path_GREP"
4056
4057
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4059 $as_echo_n "checking for egrep... " >&6; }
4060 if ${ac_cv_path_EGREP+:} false; then :
4061   $as_echo_n "(cached) " >&6
4062 else
4063   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4064    then ac_cv_path_EGREP="$GREP -E"
4065    else
4066      if test -z "$EGREP"; then
4067   ac_path_EGREP_found=false
4068   # Loop through the user's path and test for each of PROGNAME-LIST
4069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4071 do
4072   IFS=$as_save_IFS
4073   test -z "$as_dir" && as_dir=.
4074     for ac_prog in egrep; do
4075     for ac_exec_ext in '' $ac_executable_extensions; do
4076       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4077       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4078 # Check for GNU ac_path_EGREP and select it if it is found.
4079   # Check for GNU $ac_path_EGREP
4080 case `"$ac_path_EGREP" --version 2>&1` in
4081 *GNU*)
4082   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4083 *)
4084   ac_count=0
4085   $as_echo_n 0123456789 >"conftest.in"
4086   while :
4087   do
4088     cat "conftest.in" "conftest.in" >"conftest.tmp"
4089     mv "conftest.tmp" "conftest.in"
4090     cp "conftest.in" "conftest.nl"
4091     $as_echo 'EGREP' >> "conftest.nl"
4092     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4093     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4094     as_fn_arith $ac_count + 1 && ac_count=$as_val
4095     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4096       # Best one so far, save it but keep looking for a better one
4097       ac_cv_path_EGREP="$ac_path_EGREP"
4098       ac_path_EGREP_max=$ac_count
4099     fi
4100     # 10*(2^10) chars as input seems more than enough
4101     test $ac_count -gt 10 && break
4102   done
4103   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4104 esac
4105
4106       $ac_path_EGREP_found && break 3
4107     done
4108   done
4109   done
4110 IFS=$as_save_IFS
4111   if test -z "$ac_cv_path_EGREP"; then
4112     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4113   fi
4114 else
4115   ac_cv_path_EGREP=$EGREP
4116 fi
4117
4118    fi
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4121 $as_echo "$ac_cv_path_EGREP" >&6; }
4122  EGREP="$ac_cv_path_EGREP"
4123
4124
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4126 $as_echo_n "checking for fgrep... " >&6; }
4127 if ${ac_cv_path_FGREP+:} false; then :
4128   $as_echo_n "(cached) " >&6
4129 else
4130   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4131    then ac_cv_path_FGREP="$GREP -F"
4132    else
4133      if test -z "$FGREP"; then
4134   ac_path_FGREP_found=false
4135   # Loop through the user's path and test for each of PROGNAME-LIST
4136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4138 do
4139   IFS=$as_save_IFS
4140   test -z "$as_dir" && as_dir=.
4141     for ac_prog in fgrep; do
4142     for ac_exec_ext in '' $ac_executable_extensions; do
4143       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4144       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4145 # Check for GNU ac_path_FGREP and select it if it is found.
4146   # Check for GNU $ac_path_FGREP
4147 case `"$ac_path_FGREP" --version 2>&1` in
4148 *GNU*)
4149   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4150 *)
4151   ac_count=0
4152   $as_echo_n 0123456789 >"conftest.in"
4153   while :
4154   do
4155     cat "conftest.in" "conftest.in" >"conftest.tmp"
4156     mv "conftest.tmp" "conftest.in"
4157     cp "conftest.in" "conftest.nl"
4158     $as_echo 'FGREP' >> "conftest.nl"
4159     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4160     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4161     as_fn_arith $ac_count + 1 && ac_count=$as_val
4162     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4163       # Best one so far, save it but keep looking for a better one
4164       ac_cv_path_FGREP="$ac_path_FGREP"
4165       ac_path_FGREP_max=$ac_count
4166     fi
4167     # 10*(2^10) chars as input seems more than enough
4168     test $ac_count -gt 10 && break
4169   done
4170   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4171 esac
4172
4173       $ac_path_FGREP_found && break 3
4174     done
4175   done
4176   done
4177 IFS=$as_save_IFS
4178   if test -z "$ac_cv_path_FGREP"; then
4179     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4180   fi
4181 else
4182   ac_cv_path_FGREP=$FGREP
4183 fi
4184
4185    fi
4186 fi
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4188 $as_echo "$ac_cv_path_FGREP" >&6; }
4189  FGREP="$ac_cv_path_FGREP"
4190
4191
4192 test -z "$GREP" && GREP=grep
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212 # Check whether --with-gnu-ld was given.
4213 if test "${with_gnu_ld+set}" = set; then :
4214   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4215 else
4216   with_gnu_ld=no
4217 fi
4218
4219 ac_prog=ld
4220 if test "$GCC" = yes; then
4221   # Check if gcc -print-prog-name=ld gives a path.
4222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4223 $as_echo_n "checking for ld used by $CC... " >&6; }
4224   case $host in
4225   *-*-mingw*)
4226     # gcc leaves a trailing carriage return which upsets mingw
4227     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4228   *)
4229     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4230   esac
4231   case $ac_prog in
4232     # Accept absolute paths.
4233     [\\/]* | ?:[\\/]*)
4234       re_direlt='/[^/][^/]*/\.\./'
4235       # Canonicalize the pathname of ld
4236       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4237       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4238         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4239       done
4240       test -z "$LD" && LD="$ac_prog"
4241       ;;
4242   "")
4243     # If it fails, then pretend we aren't using GCC.
4244     ac_prog=ld
4245     ;;
4246   *)
4247     # If it is relative, then search for the first ld in PATH.
4248     with_gnu_ld=unknown
4249     ;;
4250   esac
4251 elif test "$with_gnu_ld" = yes; then
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4253 $as_echo_n "checking for GNU ld... " >&6; }
4254 else
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4256 $as_echo_n "checking for non-GNU ld... " >&6; }
4257 fi
4258 if ${lt_cv_path_LD+:} false; then :
4259   $as_echo_n "(cached) " >&6
4260 else
4261   if test -z "$LD"; then
4262   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4263   for ac_dir in $PATH; do
4264     IFS="$lt_save_ifs"
4265     test -z "$ac_dir" && ac_dir=.
4266     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4267       lt_cv_path_LD="$ac_dir/$ac_prog"
4268       # Check to see if the program is GNU ld.  I'd rather use --version,
4269       # but apparently some variants of GNU ld only accept -v.
4270       # Break only if it was the GNU/non-GNU ld that we prefer.
4271       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4272       *GNU* | *'with BFD'*)
4273         test "$with_gnu_ld" != no && break
4274         ;;
4275       *)
4276         test "$with_gnu_ld" != yes && break
4277         ;;
4278       esac
4279     fi
4280   done
4281   IFS="$lt_save_ifs"
4282 else
4283   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4284 fi
4285 fi
4286
4287 LD="$lt_cv_path_LD"
4288 if test -n "$LD"; then
4289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4290 $as_echo "$LD" >&6; }
4291 else
4292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 $as_echo "no" >&6; }
4294 fi
4295 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4297 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4298 if ${lt_cv_prog_gnu_ld+:} false; then :
4299   $as_echo_n "(cached) " >&6
4300 else
4301   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4302 case `$LD -v 2>&1 </dev/null` in
4303 *GNU* | *'with BFD'*)
4304   lt_cv_prog_gnu_ld=yes
4305   ;;
4306 *)
4307   lt_cv_prog_gnu_ld=no
4308   ;;
4309 esac
4310 fi
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4312 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4313 with_gnu_ld=$lt_cv_prog_gnu_ld
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4324 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4325 if ${lt_cv_path_NM+:} false; then :
4326   $as_echo_n "(cached) " >&6
4327 else
4328   if test -n "$NM"; then
4329   # Let the user override the test.
4330   lt_cv_path_NM="$NM"
4331 else
4332   lt_nm_to_check="${ac_tool_prefix}nm"
4333   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4334     lt_nm_to_check="$lt_nm_to_check nm"
4335   fi
4336   for lt_tmp_nm in $lt_nm_to_check; do
4337     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4338     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4339       IFS="$lt_save_ifs"
4340       test -z "$ac_dir" && ac_dir=.
4341       tmp_nm="$ac_dir/$lt_tmp_nm"
4342       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4343         # Check to see if the nm accepts a BSD-compat flag.
4344         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4345         #   nm: unknown option "B" ignored
4346         # Tru64's nm complains that /dev/null is an invalid object file
4347         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4348         */dev/null* | *'Invalid file or object type'*)
4349           lt_cv_path_NM="$tmp_nm -B"
4350           break
4351           ;;
4352         *)
4353           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4354           */dev/null*)
4355             lt_cv_path_NM="$tmp_nm -p"
4356             break
4357             ;;
4358           *)
4359             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4360             continue # so that we can try to find one that supports BSD flags
4361             ;;
4362           esac
4363           ;;
4364         esac
4365       fi
4366     done
4367     IFS="$lt_save_ifs"
4368   done
4369   : ${lt_cv_path_NM=no}
4370 fi
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4373 $as_echo "$lt_cv_path_NM" >&6; }
4374 if test "$lt_cv_path_NM" != "no"; then
4375   NM="$lt_cv_path_NM"
4376 else
4377   # Didn't find any BSD compatible name lister, look for dumpbin.
4378   if test -n "$DUMPBIN"; then :
4379     # Let the user override the test.
4380   else
4381     if test -n "$ac_tool_prefix"; then
4382   for ac_prog in dumpbin "link -dump"
4383   do
4384     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387 $as_echo_n "checking for $ac_word... " >&6; }
4388 if ${ac_cv_prog_DUMPBIN+:} false; then :
4389   $as_echo_n "(cached) " >&6
4390 else
4391   if test -n "$DUMPBIN"; then
4392   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4396 do
4397   IFS=$as_save_IFS
4398   test -z "$as_dir" && as_dir=.
4399     for ac_exec_ext in '' $ac_executable_extensions; do
4400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4401     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403     break 2
4404   fi
4405 done
4406   done
4407 IFS=$as_save_IFS
4408
4409 fi
4410 fi
4411 DUMPBIN=$ac_cv_prog_DUMPBIN
4412 if test -n "$DUMPBIN"; then
4413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4414 $as_echo "$DUMPBIN" >&6; }
4415 else
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418 fi
4419
4420
4421     test -n "$DUMPBIN" && break
4422   done
4423 fi
4424 if test -z "$DUMPBIN"; then
4425   ac_ct_DUMPBIN=$DUMPBIN
4426   for ac_prog in dumpbin "link -dump"
4427 do
4428   # Extract the first word of "$ac_prog", so it can be a program name with args.
4429 set dummy $ac_prog; ac_word=$2
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4431 $as_echo_n "checking for $ac_word... " >&6; }
4432 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4433   $as_echo_n "(cached) " >&6
4434 else
4435   if test -n "$ac_ct_DUMPBIN"; then
4436   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4440 do
4441   IFS=$as_save_IFS
4442   test -z "$as_dir" && as_dir=.
4443     for ac_exec_ext in '' $ac_executable_extensions; do
4444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4445     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4447     break 2
4448   fi
4449 done
4450   done
4451 IFS=$as_save_IFS
4452
4453 fi
4454 fi
4455 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4456 if test -n "$ac_ct_DUMPBIN"; then
4457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4458 $as_echo "$ac_ct_DUMPBIN" >&6; }
4459 else
4460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4462 fi
4463
4464
4465   test -n "$ac_ct_DUMPBIN" && break
4466 done
4467
4468   if test "x$ac_ct_DUMPBIN" = x; then
4469     DUMPBIN=":"
4470   else
4471     case $cross_compiling:$ac_tool_warned in
4472 yes:)
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4475 ac_tool_warned=yes ;;
4476 esac
4477     DUMPBIN=$ac_ct_DUMPBIN
4478   fi
4479 fi
4480
4481     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4482     *COFF*)
4483       DUMPBIN="$DUMPBIN -symbols"
4484       ;;
4485     *)
4486       DUMPBIN=:
4487       ;;
4488     esac
4489   fi
4490
4491   if test "$DUMPBIN" != ":"; then
4492     NM="$DUMPBIN"
4493   fi
4494 fi
4495 test -z "$NM" && NM=nm
4496
4497
4498
4499
4500
4501
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4503 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4504 if ${lt_cv_nm_interface+:} false; then :
4505   $as_echo_n "(cached) " >&6
4506 else
4507   lt_cv_nm_interface="BSD nm"
4508   echo "int some_variable = 0;" > conftest.$ac_ext
4509   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4510   (eval "$ac_compile" 2>conftest.err)
4511   cat conftest.err >&5
4512   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4513   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4514   cat conftest.err >&5
4515   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4516   cat conftest.out >&5
4517   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4518     lt_cv_nm_interface="MS dumpbin"
4519   fi
4520   rm -f conftest*
4521 fi
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4523 $as_echo "$lt_cv_nm_interface" >&6; }
4524
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4526 $as_echo_n "checking whether ln -s works... " >&6; }
4527 LN_S=$as_ln_s
4528 if test "$LN_S" = "ln -s"; then
4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4530 $as_echo "yes" >&6; }
4531 else
4532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4533 $as_echo "no, using $LN_S" >&6; }
4534 fi
4535
4536 # find the maximum length of command line arguments
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4538 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4539 if ${lt_cv_sys_max_cmd_len+:} false; then :
4540   $as_echo_n "(cached) " >&6
4541 else
4542     i=0
4543   teststring="ABCD"
4544
4545   case $build_os in
4546   msdosdjgpp*)
4547     # On DJGPP, this test can blow up pretty badly due to problems in libc
4548     # (any single argument exceeding 2000 bytes causes a buffer overrun
4549     # during glob expansion).  Even if it were fixed, the result of this
4550     # check would be larger than it should be.
4551     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4552     ;;
4553
4554   gnu*)
4555     # Under GNU Hurd, this test is not required because there is
4556     # no limit to the length of command line arguments.
4557     # Libtool will interpret -1 as no limit whatsoever
4558     lt_cv_sys_max_cmd_len=-1;
4559     ;;
4560
4561   cygwin* | mingw* | cegcc*)
4562     # On Win9x/ME, this test blows up -- it succeeds, but takes
4563     # about 5 minutes as the teststring grows exponentially.
4564     # Worse, since 9x/ME are not pre-emptively multitasking,
4565     # you end up with a "frozen" computer, even though with patience
4566     # the test eventually succeeds (with a max line length of 256k).
4567     # Instead, let's just punt: use the minimum linelength reported by
4568     # all of the supported platforms: 8192 (on NT/2K/XP).
4569     lt_cv_sys_max_cmd_len=8192;
4570     ;;
4571
4572   mint*)
4573     # On MiNT this can take a long time and run out of memory.
4574     lt_cv_sys_max_cmd_len=8192;
4575     ;;
4576
4577   amigaos*)
4578     # On AmigaOS with pdksh, this test takes hours, literally.
4579     # So we just punt and use a minimum line length of 8192.
4580     lt_cv_sys_max_cmd_len=8192;
4581     ;;
4582
4583   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4584     # This has been around since 386BSD, at least.  Likely further.
4585     if test -x /sbin/sysctl; then
4586       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4587     elif test -x /usr/sbin/sysctl; then
4588       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4589     else
4590       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4591     fi
4592     # And add a safety zone
4593     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4594     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4595     ;;
4596
4597   interix*)
4598     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4599     lt_cv_sys_max_cmd_len=196608
4600     ;;
4601
4602   os2*)
4603     # The test takes a long time on OS/2.
4604     lt_cv_sys_max_cmd_len=8192
4605     ;;
4606
4607   osf*)
4608     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4609     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4610     # nice to cause kernel panics so lets avoid the loop below.
4611     # First set a reasonable default.
4612     lt_cv_sys_max_cmd_len=16384
4613     #
4614     if test -x /sbin/sysconfig; then
4615       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4616         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4617       esac
4618     fi
4619     ;;
4620   sco3.2v5*)
4621     lt_cv_sys_max_cmd_len=102400
4622     ;;
4623   sysv5* | sco5v6* | sysv4.2uw2*)
4624     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4625     if test -n "$kargmax"; then
4626       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4627     else
4628       lt_cv_sys_max_cmd_len=32768
4629     fi
4630     ;;
4631   *)
4632     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4633     if test -n "$lt_cv_sys_max_cmd_len"; then
4634       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4635       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4636     else
4637       # Make teststring a little bigger before we do anything with it.
4638       # a 1K string should be a reasonable start.
4639       for i in 1 2 3 4 5 6 7 8 ; do
4640         teststring=$teststring$teststring
4641       done
4642       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4643       # If test is not a shell built-in, we'll probably end up computing a
4644       # maximum length that is only half of the actual maximum length, but
4645       # we can't tell.
4646       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4647                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4648               test $i != 17 # 1/2 MB should be enough
4649       do
4650         i=`expr $i + 1`
4651         teststring=$teststring$teststring
4652       done
4653       # Only check the string length outside the loop.
4654       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4655       teststring=
4656       # Add a significant safety factor because C++ compilers can tack on
4657       # massive amounts of additional arguments before passing them to the
4658       # linker.  It appears as though 1/2 is a usable value.
4659       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4660     fi
4661     ;;
4662   esac
4663
4664 fi
4665
4666 if test -n $lt_cv_sys_max_cmd_len ; then
4667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4668 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4669 else
4670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4671 $as_echo "none" >&6; }
4672 fi
4673 max_cmd_len=$lt_cv_sys_max_cmd_len
4674
4675
4676
4677
4678
4679
4680 : ${CP="cp -f"}
4681 : ${MV="mv -f"}
4682 : ${RM="rm -f"}
4683
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4685 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4686 # Try some XSI features
4687 xsi_shell=no
4688 ( _lt_dummy="a/b/c"
4689   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4690       = c,a/b,b/c, \
4691     && eval 'test $(( 1 + 1 )) -eq 2 \
4692     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4693   && xsi_shell=yes
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4695 $as_echo "$xsi_shell" >&6; }
4696
4697
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4699 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4700 lt_shell_append=no
4701 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4702     >/dev/null 2>&1 \
4703   && lt_shell_append=yes
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4705 $as_echo "$lt_shell_append" >&6; }
4706
4707
4708 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4709   lt_unset=unset
4710 else
4711   lt_unset=false
4712 fi
4713
4714
4715
4716
4717
4718 # test EBCDIC or ASCII
4719 case `echo X|tr X '\101'` in
4720  A) # ASCII based system
4721     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4722   lt_SP2NL='tr \040 \012'
4723   lt_NL2SP='tr \015\012 \040\040'
4724   ;;
4725  *) # EBCDIC based system
4726   lt_SP2NL='tr \100 \n'
4727   lt_NL2SP='tr \r\n \100\100'
4728   ;;
4729 esac
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4740 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4741 if ${lt_cv_to_host_file_cmd+:} false; then :
4742   $as_echo_n "(cached) " >&6
4743 else
4744   case $host in
4745   *-*-mingw* )
4746     case $build in
4747       *-*-mingw* ) # actually msys
4748         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4749         ;;
4750       *-*-cygwin* )
4751         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4752         ;;
4753       * ) # otherwise, assume *nix
4754         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4755         ;;
4756     esac
4757     ;;
4758   *-*-cygwin* )
4759     case $build in
4760       *-*-mingw* ) # actually msys
4761         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4762         ;;
4763       *-*-cygwin* )
4764         lt_cv_to_host_file_cmd=func_convert_file_noop
4765         ;;
4766       * ) # otherwise, assume *nix
4767         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4768         ;;
4769     esac
4770     ;;
4771   * ) # unhandled hosts (and "normal" native builds)
4772     lt_cv_to_host_file_cmd=func_convert_file_noop
4773     ;;
4774 esac
4775
4776 fi
4777
4778 to_host_file_cmd=$lt_cv_to_host_file_cmd
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4780 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4781
4782
4783
4784
4785
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4787 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4788 if ${lt_cv_to_tool_file_cmd+:} false; then :
4789   $as_echo_n "(cached) " >&6
4790 else
4791   #assume ordinary cross tools, or native build.
4792 lt_cv_to_tool_file_cmd=func_convert_file_noop
4793 case $host in
4794   *-*-mingw* )
4795     case $build in
4796       *-*-mingw* ) # actually msys
4797         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4798         ;;
4799     esac
4800     ;;
4801 esac
4802
4803 fi
4804
4805 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4807 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4808
4809
4810
4811
4812
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4814 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4815 if ${lt_cv_ld_reload_flag+:} false; then :
4816   $as_echo_n "(cached) " >&6
4817 else
4818   lt_cv_ld_reload_flag='-r'
4819 fi
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4821 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4822 reload_flag=$lt_cv_ld_reload_flag
4823 case $reload_flag in
4824 "" | " "*) ;;
4825 *) reload_flag=" $reload_flag" ;;
4826 esac
4827 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4828 case $host_os in
4829   cygwin* | mingw* | pw32* | cegcc*)
4830     if test "$GCC" != yes; then
4831       reload_cmds=false
4832     fi
4833     ;;
4834   darwin*)
4835     if test "$GCC" = yes; then
4836       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4837     else
4838       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4839     fi
4840     ;;
4841 esac
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851 if test -n "$ac_tool_prefix"; then
4852   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4853 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if ${ac_cv_prog_OBJDUMP+:} false; then :
4857   $as_echo_n "(cached) " >&6
4858 else
4859   if test -n "$OBJDUMP"; then
4860   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865   IFS=$as_save_IFS
4866   test -z "$as_dir" && as_dir=.
4867     for ac_exec_ext in '' $ac_executable_extensions; do
4868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871     break 2
4872   fi
4873 done
4874   done
4875 IFS=$as_save_IFS
4876
4877 fi
4878 fi
4879 OBJDUMP=$ac_cv_prog_OBJDUMP
4880 if test -n "$OBJDUMP"; then
4881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4882 $as_echo "$OBJDUMP" >&6; }
4883 else
4884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4886 fi
4887
4888
4889 fi
4890 if test -z "$ac_cv_prog_OBJDUMP"; then
4891   ac_ct_OBJDUMP=$OBJDUMP
4892   # Extract the first word of "objdump", so it can be a program name with args.
4893 set dummy objdump; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4897   $as_echo_n "(cached) " >&6
4898 else
4899   if test -n "$ac_ct_OBJDUMP"; then
4900   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905   IFS=$as_save_IFS
4906   test -z "$as_dir" && as_dir=.
4907     for ac_exec_ext in '' $ac_executable_extensions; do
4908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911     break 2
4912   fi
4913 done
4914   done
4915 IFS=$as_save_IFS
4916
4917 fi
4918 fi
4919 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4920 if test -n "$ac_ct_OBJDUMP"; then
4921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4922 $as_echo "$ac_ct_OBJDUMP" >&6; }
4923 else
4924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4926 fi
4927
4928   if test "x$ac_ct_OBJDUMP" = x; then
4929     OBJDUMP="false"
4930   else
4931     case $cross_compiling:$ac_tool_warned in
4932 yes:)
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935 ac_tool_warned=yes ;;
4936 esac
4937     OBJDUMP=$ac_ct_OBJDUMP
4938   fi
4939 else
4940   OBJDUMP="$ac_cv_prog_OBJDUMP"
4941 fi
4942
4943 test -z "$OBJDUMP" && OBJDUMP=objdump
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4954 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4955 if ${lt_cv_deplibs_check_method+:} false; then :
4956   $as_echo_n "(cached) " >&6
4957 else
4958   lt_cv_file_magic_cmd='$MAGIC_CMD'
4959 lt_cv_file_magic_test_file=
4960 lt_cv_deplibs_check_method='unknown'
4961 # Need to set the preceding variable on all platforms that support
4962 # interlibrary dependencies.
4963 # 'none' -- dependencies not supported.
4964 # `unknown' -- same as none, but documents that we really don't know.
4965 # 'pass_all' -- all dependencies passed with no checks.
4966 # 'test_compile' -- check by making test program.
4967 # 'file_magic [[regex]]' -- check by looking for files in library path
4968 # which responds to the $file_magic_cmd with a given extended regex.
4969 # If you have `file' or equivalent on your system and you're not sure
4970 # whether `pass_all' will *always* work, you probably want this one.
4971
4972 case $host_os in
4973 aix[4-9]*)
4974   lt_cv_deplibs_check_method=pass_all
4975   ;;
4976
4977 beos*)
4978   lt_cv_deplibs_check_method=pass_all
4979   ;;
4980
4981 bsdi[45]*)
4982   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4983   lt_cv_file_magic_cmd='/usr/bin/file -L'
4984   lt_cv_file_magic_test_file=/shlib/libc.so
4985   ;;
4986
4987 cygwin*)
4988   # func_win32_libid is a shell function defined in ltmain.sh
4989   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4990   lt_cv_file_magic_cmd='func_win32_libid'
4991   ;;
4992
4993 mingw* | pw32*)
4994   # Base MSYS/MinGW do not provide the 'file' command needed by
4995   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4996   # unless we find 'file', for example because we are cross-compiling.
4997   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4998   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4999     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5000     lt_cv_file_magic_cmd='func_win32_libid'
5001   else
5002     # Keep this pattern in sync with the one in func_win32_libid.
5003     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5004     lt_cv_file_magic_cmd='$OBJDUMP -f'
5005   fi
5006   ;;
5007
5008 cegcc*)
5009   # use the weaker test based on 'objdump'. See mingw*.
5010   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5011   lt_cv_file_magic_cmd='$OBJDUMP -f'
5012   ;;
5013
5014 darwin* | rhapsody*)
5015   lt_cv_deplibs_check_method=pass_all
5016   ;;
5017
5018 freebsd* | dragonfly*)
5019   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5020     case $host_cpu in
5021     i*86 )
5022       # Not sure whether the presence of OpenBSD here was a mistake.
5023       # Let's accept both of them until this is cleared up.
5024       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5025       lt_cv_file_magic_cmd=/usr/bin/file
5026       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5027       ;;
5028     esac
5029   else
5030     lt_cv_deplibs_check_method=pass_all
5031   fi
5032   ;;
5033
5034 gnu*)
5035   lt_cv_deplibs_check_method=pass_all
5036   ;;
5037
5038 haiku*)
5039   lt_cv_deplibs_check_method=pass_all
5040   ;;
5041
5042 hpux10.20* | hpux11*)
5043   lt_cv_file_magic_cmd=/usr/bin/file
5044   case $host_cpu in
5045   ia64*)
5046     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5047     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5048     ;;
5049   hppa*64*)
5050     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]'
5051     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5052     ;;
5053   *)
5054     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5055     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5056     ;;
5057   esac
5058   ;;
5059
5060 interix[3-9]*)
5061   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5062   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5063   ;;
5064
5065 irix5* | irix6* | nonstopux*)
5066   case $LD in
5067   *-32|*"-32 ") libmagic=32-bit;;
5068   *-n32|*"-n32 ") libmagic=N32;;
5069   *-64|*"-64 ") libmagic=64-bit;;
5070   *) libmagic=never-match;;
5071   esac
5072   lt_cv_deplibs_check_method=pass_all
5073   ;;
5074
5075 # This must be glibc/ELF.
5076 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5077   lt_cv_deplibs_check_method=pass_all
5078   ;;
5079
5080 netbsd*)
5081   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5082     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5083   else
5084     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5085   fi
5086   ;;
5087
5088 newos6*)
5089   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5090   lt_cv_file_magic_cmd=/usr/bin/file
5091   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5092   ;;
5093
5094 *nto* | *qnx*)
5095   lt_cv_deplibs_check_method=pass_all
5096   ;;
5097
5098 openbsd*)
5099   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5100     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5101   else
5102     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5103   fi
5104   ;;
5105
5106 osf3* | osf4* | osf5*)
5107   lt_cv_deplibs_check_method=pass_all
5108   ;;
5109
5110 rdos*)
5111   lt_cv_deplibs_check_method=pass_all
5112   ;;
5113
5114 solaris*)
5115   lt_cv_deplibs_check_method=pass_all
5116   ;;
5117
5118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5119   lt_cv_deplibs_check_method=pass_all
5120   ;;
5121
5122 sysv4 | sysv4.3*)
5123   case $host_vendor in
5124   motorola)
5125     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]'
5126     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5127     ;;
5128   ncr)
5129     lt_cv_deplibs_check_method=pass_all
5130     ;;
5131   sequent)
5132     lt_cv_file_magic_cmd='/bin/file'
5133     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5134     ;;
5135   sni)
5136     lt_cv_file_magic_cmd='/bin/file'
5137     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5138     lt_cv_file_magic_test_file=/lib/libc.so
5139     ;;
5140   siemens)
5141     lt_cv_deplibs_check_method=pass_all
5142     ;;
5143   pc)
5144     lt_cv_deplibs_check_method=pass_all
5145     ;;
5146   esac
5147   ;;
5148
5149 tpf*)
5150   lt_cv_deplibs_check_method=pass_all
5151   ;;
5152 esac
5153
5154 fi
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5156 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5157
5158 file_magic_glob=
5159 want_nocaseglob=no
5160 if test "$build" = "$host"; then
5161   case $host_os in
5162   mingw* | pw32*)
5163     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5164       want_nocaseglob=yes
5165     else
5166       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5167     fi
5168     ;;
5169   esac
5170 fi
5171
5172 file_magic_cmd=$lt_cv_file_magic_cmd
5173 deplibs_check_method=$lt_cv_deplibs_check_method
5174 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197 if test -n "$ac_tool_prefix"; then
5198   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5199 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_prog_DLLTOOL+:} false; then :
5203   $as_echo_n "(cached) " >&6
5204 else
5205   if test -n "$DLLTOOL"; then
5206   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211   IFS=$as_save_IFS
5212   test -z "$as_dir" && as_dir=.
5213     for ac_exec_ext in '' $ac_executable_extensions; do
5214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217     break 2
5218   fi
5219 done
5220   done
5221 IFS=$as_save_IFS
5222
5223 fi
5224 fi
5225 DLLTOOL=$ac_cv_prog_DLLTOOL
5226 if test -n "$DLLTOOL"; then
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5228 $as_echo "$DLLTOOL" >&6; }
5229 else
5230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5232 fi
5233
5234
5235 fi
5236 if test -z "$ac_cv_prog_DLLTOOL"; then
5237   ac_ct_DLLTOOL=$DLLTOOL
5238   # Extract the first word of "dlltool", so it can be a program name with args.
5239 set dummy dlltool; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5243   $as_echo_n "(cached) " >&6
5244 else
5245   if test -n "$ac_ct_DLLTOOL"; then
5246   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251   IFS=$as_save_IFS
5252   test -z "$as_dir" && as_dir=.
5253     for ac_exec_ext in '' $ac_executable_extensions; do
5254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257     break 2
5258   fi
5259 done
5260   done
5261 IFS=$as_save_IFS
5262
5263 fi
5264 fi
5265 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5266 if test -n "$ac_ct_DLLTOOL"; then
5267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5268 $as_echo "$ac_ct_DLLTOOL" >&6; }
5269 else
5270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 fi
5273
5274   if test "x$ac_ct_DLLTOOL" = x; then
5275     DLLTOOL="false"
5276   else
5277     case $cross_compiling:$ac_tool_warned in
5278 yes:)
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281 ac_tool_warned=yes ;;
5282 esac
5283     DLLTOOL=$ac_ct_DLLTOOL
5284   fi
5285 else
5286   DLLTOOL="$ac_cv_prog_DLLTOOL"
5287 fi
5288
5289 test -z "$DLLTOOL" && DLLTOOL=dlltool
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5301 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5302 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5303   $as_echo_n "(cached) " >&6
5304 else
5305   lt_cv_sharedlib_from_linklib_cmd='unknown'
5306
5307 case $host_os in
5308 cygwin* | mingw* | pw32* | cegcc*)
5309   # two different shell functions defined in ltmain.sh
5310   # decide which to use based on capabilities of $DLLTOOL
5311   case `$DLLTOOL --help 2>&1` in
5312   *--identify-strict*)
5313     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5314     ;;
5315   *)
5316     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5317     ;;
5318   esac
5319   ;;
5320 *)
5321   # fallback: assume linklib IS sharedlib
5322   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5323   ;;
5324 esac
5325
5326 fi
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5328 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5329 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5330 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5331
5332
5333
5334
5335
5336
5337
5338
5339 if test -n "$ac_tool_prefix"; then
5340   for ac_prog in ar
5341   do
5342     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if ${ac_cv_prog_AR+:} false; then :
5347   $as_echo_n "(cached) " >&6
5348 else
5349   if test -n "$AR"; then
5350   ac_cv_prog_AR="$AR" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355   IFS=$as_save_IFS
5356   test -z "$as_dir" && as_dir=.
5357     for ac_exec_ext in '' $ac_executable_extensions; do
5358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361     break 2
5362   fi
5363 done
5364   done
5365 IFS=$as_save_IFS
5366
5367 fi
5368 fi
5369 AR=$ac_cv_prog_AR
5370 if test -n "$AR"; then
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5372 $as_echo "$AR" >&6; }
5373 else
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377
5378
5379     test -n "$AR" && break
5380   done
5381 fi
5382 if test -z "$AR"; then
5383   ac_ct_AR=$AR
5384   for ac_prog in ar
5385 do
5386   # Extract the first word of "$ac_prog", so it can be a program name with args.
5387 set dummy $ac_prog; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5391   $as_echo_n "(cached) " >&6
5392 else
5393   if test -n "$ac_ct_AR"; then
5394   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399   IFS=$as_save_IFS
5400   test -z "$as_dir" && as_dir=.
5401     for ac_exec_ext in '' $ac_executable_extensions; do
5402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403     ac_cv_prog_ac_ct_AR="$ac_prog"
5404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405     break 2
5406   fi
5407 done
5408   done
5409 IFS=$as_save_IFS
5410
5411 fi
5412 fi
5413 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5414 if test -n "$ac_ct_AR"; then
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5416 $as_echo "$ac_ct_AR" >&6; }
5417 else
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5420 fi
5421
5422
5423   test -n "$ac_ct_AR" && break
5424 done
5425
5426   if test "x$ac_ct_AR" = x; then
5427     AR="false"
5428   else
5429     case $cross_compiling:$ac_tool_warned in
5430 yes:)
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5433 ac_tool_warned=yes ;;
5434 esac
5435     AR=$ac_ct_AR
5436   fi
5437 fi
5438
5439 : ${AR=ar}
5440 : ${AR_FLAGS=cru}
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5453 $as_echo_n "checking for archiver @FILE support... " >&6; }
5454 if ${lt_cv_ar_at_file+:} false; then :
5455   $as_echo_n "(cached) " >&6
5456 else
5457   lt_cv_ar_at_file=no
5458    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h.  */
5460
5461 int
5462 main ()
5463 {
5464
5465   ;
5466   return 0;
5467 }
5468 _ACEOF
5469 if ac_fn_c_try_compile "$LINENO"; then :
5470   echo conftest.$ac_objext > conftest.lst
5471       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5472       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5473   (eval $lt_ar_try) 2>&5
5474   ac_status=$?
5475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5476   test $ac_status = 0; }
5477       if test "$ac_status" -eq 0; then
5478         # Ensure the archiver fails upon bogus file names.
5479         rm -f conftest.$ac_objext libconftest.a
5480         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5481   (eval $lt_ar_try) 2>&5
5482   ac_status=$?
5483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5484   test $ac_status = 0; }
5485         if test "$ac_status" -ne 0; then
5486           lt_cv_ar_at_file=@
5487         fi
5488       fi
5489       rm -f conftest.* libconftest.a
5490
5491 fi
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493
5494 fi
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5496 $as_echo "$lt_cv_ar_at_file" >&6; }
5497
5498 if test "x$lt_cv_ar_at_file" = xno; then
5499   archiver_list_spec=
5500 else
5501   archiver_list_spec=$lt_cv_ar_at_file
5502 fi
5503
5504
5505
5506
5507
5508
5509
5510 if test -n "$ac_tool_prefix"; then
5511   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5512 set dummy ${ac_tool_prefix}strip; ac_word=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if ${ac_cv_prog_STRIP+:} false; then :
5516   $as_echo_n "(cached) " >&6
5517 else
5518   if test -n "$STRIP"; then
5519   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5520 else
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524   IFS=$as_save_IFS
5525   test -z "$as_dir" && as_dir=.
5526     for ac_exec_ext in '' $ac_executable_extensions; do
5527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5528     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530     break 2
5531   fi
5532 done
5533   done
5534 IFS=$as_save_IFS
5535
5536 fi
5537 fi
5538 STRIP=$ac_cv_prog_STRIP
5539 if test -n "$STRIP"; then
5540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5541 $as_echo "$STRIP" >&6; }
5542 else
5543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5545 fi
5546
5547
5548 fi
5549 if test -z "$ac_cv_prog_STRIP"; then
5550   ac_ct_STRIP=$STRIP
5551   # Extract the first word of "strip", so it can be a program name with args.
5552 set dummy strip; ac_word=$2
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554 $as_echo_n "checking for $ac_word... " >&6; }
5555 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5556   $as_echo_n "(cached) " >&6
5557 else
5558   if test -n "$ac_ct_STRIP"; then
5559   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5560 else
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH
5563 do
5564   IFS=$as_save_IFS
5565   test -z "$as_dir" && as_dir=.
5566     for ac_exec_ext in '' $ac_executable_extensions; do
5567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5568     ac_cv_prog_ac_ct_STRIP="strip"
5569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570     break 2
5571   fi
5572 done
5573   done
5574 IFS=$as_save_IFS
5575
5576 fi
5577 fi
5578 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5579 if test -n "$ac_ct_STRIP"; then
5580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5581 $as_echo "$ac_ct_STRIP" >&6; }
5582 else
5583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584 $as_echo "no" >&6; }
5585 fi
5586
5587   if test "x$ac_ct_STRIP" = x; then
5588     STRIP=":"
5589   else
5590     case $cross_compiling:$ac_tool_warned in
5591 yes:)
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5594 ac_tool_warned=yes ;;
5595 esac
5596     STRIP=$ac_ct_STRIP
5597   fi
5598 else
5599   STRIP="$ac_cv_prog_STRIP"
5600 fi
5601
5602 test -z "$STRIP" && STRIP=:
5603
5604
5605
5606
5607
5608
5609 if test -n "$ac_tool_prefix"; then
5610   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5611 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_prog_RANLIB+:} false; then :
5615   $as_echo_n "(cached) " >&6
5616 else
5617   if test -n "$RANLIB"; then
5618   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5622 do
5623   IFS=$as_save_IFS
5624   test -z "$as_dir" && as_dir=.
5625     for ac_exec_ext in '' $ac_executable_extensions; do
5626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629     break 2
5630   fi
5631 done
5632   done
5633 IFS=$as_save_IFS
5634
5635 fi
5636 fi
5637 RANLIB=$ac_cv_prog_RANLIB
5638 if test -n "$RANLIB"; then
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5640 $as_echo "$RANLIB" >&6; }
5641 else
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5644 fi
5645
5646
5647 fi
5648 if test -z "$ac_cv_prog_RANLIB"; then
5649   ac_ct_RANLIB=$RANLIB
5650   # Extract the first word of "ranlib", so it can be a program name with args.
5651 set dummy ranlib; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5655   $as_echo_n "(cached) " >&6
5656 else
5657   if test -n "$ac_ct_RANLIB"; then
5658   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5659 else
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5662 do
5663   IFS=$as_save_IFS
5664   test -z "$as_dir" && as_dir=.
5665     for ac_exec_ext in '' $ac_executable_extensions; do
5666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667     ac_cv_prog_ac_ct_RANLIB="ranlib"
5668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669     break 2
5670   fi
5671 done
5672   done
5673 IFS=$as_save_IFS
5674
5675 fi
5676 fi
5677 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5678 if test -n "$ac_ct_RANLIB"; then
5679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5680 $as_echo "$ac_ct_RANLIB" >&6; }
5681 else
5682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5684 fi
5685
5686   if test "x$ac_ct_RANLIB" = x; then
5687     RANLIB=":"
5688   else
5689     case $cross_compiling:$ac_tool_warned in
5690 yes:)
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5693 ac_tool_warned=yes ;;
5694 esac
5695     RANLIB=$ac_ct_RANLIB
5696   fi
5697 else
5698   RANLIB="$ac_cv_prog_RANLIB"
5699 fi
5700
5701 test -z "$RANLIB" && RANLIB=:
5702
5703
5704
5705
5706
5707
5708 # Determine commands to create old-style static archives.
5709 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5710 old_postinstall_cmds='chmod 644 $oldlib'
5711 old_postuninstall_cmds=
5712
5713 if test -n "$RANLIB"; then
5714   case $host_os in
5715   openbsd*)
5716     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5717     ;;
5718   *)
5719     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5720     ;;
5721   esac
5722   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5723 fi
5724
5725 case $host_os in
5726   darwin*)
5727     lock_old_archive_extraction=yes ;;
5728   *)
5729     lock_old_archive_extraction=no ;;
5730 esac
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
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770 # If no C compiler was specified, use CC.
5771 LTCC=${LTCC-"$CC"}
5772
5773 # If no C compiler flags were specified, use CFLAGS.
5774 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5775
5776 # Allow CC to be a program name with arguments.
5777 compiler=$CC
5778
5779
5780 # Check for command to grab the raw symbol name followed by C symbol from nm.
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5782 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5783 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5784   $as_echo_n "(cached) " >&6
5785 else
5786
5787 # These are sane defaults that work on at least a few old systems.
5788 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5789
5790 # Character class describing NM global symbol codes.
5791 symcode='[BCDEGRST]'
5792
5793 # Regexp to match symbols that can be accessed directly from C.
5794 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5795
5796 # Define system-specific variables.
5797 case $host_os in
5798 aix*)
5799   symcode='[BCDT]'
5800   ;;
5801 cygwin* | mingw* | pw32* | cegcc*)
5802   symcode='[ABCDGISTW]'
5803   ;;
5804 hpux*)
5805   if test "$host_cpu" = ia64; then
5806     symcode='[ABCDEGRST]'
5807   fi
5808   ;;
5809 irix* | nonstopux*)
5810   symcode='[BCDEGRST]'
5811   ;;
5812 osf*)
5813   symcode='[BCDEGQRST]'
5814   ;;
5815 solaris*)
5816   symcode='[BDRT]'
5817   ;;
5818 sco3.2v5*)
5819   symcode='[DT]'
5820   ;;
5821 sysv4.2uw2*)
5822   symcode='[DT]'
5823   ;;
5824 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5825   symcode='[ABDT]'
5826   ;;
5827 sysv4)
5828   symcode='[DFNSTU]'
5829   ;;
5830 esac
5831
5832 # If we're using GNU nm, then use its standard symbol codes.
5833 case `$NM -V 2>&1` in
5834 *GNU* | *'with BFD'*)
5835   symcode='[ABCDGIRSTW]' ;;
5836 esac
5837
5838 # Transform an extracted symbol line into a proper C declaration.
5839 # Some systems (esp. on ia64) link data and code symbols differently,
5840 # so use this general approach.
5841 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5842
5843 # Transform an extracted symbol line into symbol name and symbol address
5844 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5845 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'"
5846
5847 # Handle CRLF in mingw tool chain
5848 opt_cr=
5849 case $build_os in
5850 mingw*)
5851   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5852   ;;
5853 esac
5854
5855 # Try without a prefix underscore, then with it.
5856 for ac_symprfx in "" "_"; do
5857
5858   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5859   symxfrm="\\1 $ac_symprfx\\2 \\2"
5860
5861   # Write the raw and C identifiers.
5862   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5863     # Fake it for dumpbin and say T for any non-static function
5864     # and D for any global variable.
5865     # Also find C++ and __fastcall symbols from MSVC++,
5866     # which start with @ or ?.
5867     lt_cv_sys_global_symbol_pipe="$AWK '"\
5868 "     {last_section=section; section=\$ 3};"\
5869 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5870 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5871 "     \$ 0!~/External *\|/{next};"\
5872 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5873 "     {if(hide[section]) next};"\
5874 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5875 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5876 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5877 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5878 "     ' prfx=^$ac_symprfx"
5879   else
5880     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5881   fi
5882   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5883
5884   # Check to see that the pipe works correctly.
5885   pipe_works=no
5886
5887   rm -f conftest*
5888   cat > conftest.$ac_ext <<_LT_EOF
5889 #ifdef __cplusplus
5890 extern "C" {
5891 #endif
5892 char nm_test_var;
5893 void nm_test_func(void);
5894 void nm_test_func(void){}
5895 #ifdef __cplusplus
5896 }
5897 #endif
5898 int main(){nm_test_var='a';nm_test_func();return(0);}
5899 _LT_EOF
5900
5901   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5902   (eval $ac_compile) 2>&5
5903   ac_status=$?
5904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5905   test $ac_status = 0; }; then
5906     # Now try to grab the symbols.
5907     nlist=conftest.nm
5908     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5909   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5910   ac_status=$?
5911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5912   test $ac_status = 0; } && test -s "$nlist"; then
5913       # Try sorting and uniquifying the output.
5914       if sort "$nlist" | uniq > "$nlist"T; then
5915         mv -f "$nlist"T "$nlist"
5916       else
5917         rm -f "$nlist"T
5918       fi
5919
5920       # Make sure that we snagged all the symbols we need.
5921       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5922         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5923           cat <<_LT_EOF > conftest.$ac_ext
5924 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5925 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5926 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5927    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5928 # define LT_DLSYM_CONST
5929 #elif defined(__osf__)
5930 /* This system does not cope well with relocations in const data.  */
5931 # define LT_DLSYM_CONST
5932 #else
5933 # define LT_DLSYM_CONST const
5934 #endif
5935
5936 #ifdef __cplusplus
5937 extern "C" {
5938 #endif
5939
5940 _LT_EOF
5941           # Now generate the symbol file.
5942           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5943
5944           cat <<_LT_EOF >> conftest.$ac_ext
5945
5946 /* The mapping between symbol names and symbols.  */
5947 LT_DLSYM_CONST struct {
5948   const char *name;
5949   void       *address;
5950 }
5951 lt__PROGRAM__LTX_preloaded_symbols[] =
5952 {
5953   { "@PROGRAM@", (void *) 0 },
5954 _LT_EOF
5955           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5956           cat <<\_LT_EOF >> conftest.$ac_ext
5957   {0, (void *) 0}
5958 };
5959
5960 /* This works around a problem in FreeBSD linker */
5961 #ifdef FREEBSD_WORKAROUND
5962 static const void *lt_preloaded_setup() {
5963   return lt__PROGRAM__LTX_preloaded_symbols;
5964 }
5965 #endif
5966
5967 #ifdef __cplusplus
5968 }
5969 #endif
5970 _LT_EOF
5971           # Now try linking the two files.
5972           mv conftest.$ac_objext conftstm.$ac_objext
5973           lt_globsym_save_LIBS=$LIBS
5974           lt_globsym_save_CFLAGS=$CFLAGS
5975           LIBS="conftstm.$ac_objext"
5976           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5977           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5978   (eval $ac_link) 2>&5
5979   ac_status=$?
5980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5981   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5982             pipe_works=yes
5983           fi
5984           LIBS=$lt_globsym_save_LIBS
5985           CFLAGS=$lt_globsym_save_CFLAGS
5986         else
5987           echo "cannot find nm_test_func in $nlist" >&5
5988         fi
5989       else
5990         echo "cannot find nm_test_var in $nlist" >&5
5991       fi
5992     else
5993       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5994     fi
5995   else
5996     echo "$progname: failed program was:" >&5
5997     cat conftest.$ac_ext >&5
5998   fi
5999   rm -rf conftest* conftst*
6000
6001   # Do not use the global_symbol_pipe unless it works.
6002   if test "$pipe_works" = yes; then
6003     break
6004   else
6005     lt_cv_sys_global_symbol_pipe=
6006   fi
6007 done
6008
6009 fi
6010
6011 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6012   lt_cv_sys_global_symbol_to_cdecl=
6013 fi
6014 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6016 $as_echo "failed" >&6; }
6017 else
6018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6019 $as_echo "ok" >&6; }
6020 fi
6021
6022 # Response file support.
6023 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6024   nm_file_list_spec='@'
6025 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6026   nm_file_list_spec='@'
6027 fi
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6056 $as_echo_n "checking for sysroot... " >&6; }
6057
6058 # Check whether --with-sysroot was given.
6059 if test "${with_sysroot+set}" = set; then :
6060   withval=$with_sysroot;
6061 else
6062   with_sysroot=no
6063 fi
6064
6065
6066 lt_sysroot=
6067 case ${with_sysroot} in #(
6068  yes)
6069    if test "$GCC" = yes; then
6070      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6071    fi
6072    ;; #(
6073  /*)
6074    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6075    ;; #(
6076  no|'')
6077    ;; #(
6078  *)
6079    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6080 $as_echo "${with_sysroot}" >&6; }
6081    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6082    ;;
6083 esac
6084
6085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6086 $as_echo "${lt_sysroot:-no}" >&6; }
6087
6088
6089
6090
6091
6092 # Check whether --enable-libtool-lock was given.
6093 if test "${enable_libtool_lock+set}" = set; then :
6094   enableval=$enable_libtool_lock;
6095 fi
6096
6097 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6098
6099 # Some flags need to be propagated to the compiler or linker for good
6100 # libtool support.
6101 case $host in
6102 ia64-*-hpux*)
6103   # Find out which ABI we are using.
6104   echo 'int i;' > conftest.$ac_ext
6105   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6106   (eval $ac_compile) 2>&5
6107   ac_status=$?
6108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6109   test $ac_status = 0; }; then
6110     case `/usr/bin/file conftest.$ac_objext` in
6111       *ELF-32*)
6112         HPUX_IA64_MODE="32"
6113         ;;
6114       *ELF-64*)
6115         HPUX_IA64_MODE="64"
6116         ;;
6117     esac
6118   fi
6119   rm -rf conftest*
6120   ;;
6121 *-*-irix6*)
6122   # Find out which ABI we are using.
6123   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6124   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6125   (eval $ac_compile) 2>&5
6126   ac_status=$?
6127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6128   test $ac_status = 0; }; then
6129     if test "$lt_cv_prog_gnu_ld" = yes; then
6130       case `/usr/bin/file conftest.$ac_objext` in
6131         *32-bit*)
6132           LD="${LD-ld} -melf32bsmip"
6133           ;;
6134         *N32*)
6135           LD="${LD-ld} -melf32bmipn32"
6136           ;;
6137         *64-bit*)
6138           LD="${LD-ld} -melf64bmip"
6139         ;;
6140       esac
6141     else
6142       case `/usr/bin/file conftest.$ac_objext` in
6143         *32-bit*)
6144           LD="${LD-ld} -32"
6145           ;;
6146         *N32*)
6147           LD="${LD-ld} -n32"
6148           ;;
6149         *64-bit*)
6150           LD="${LD-ld} -64"
6151           ;;
6152       esac
6153     fi
6154   fi
6155   rm -rf conftest*
6156   ;;
6157
6158 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6159 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6160   # Find out which ABI we are using.
6161   echo 'int i;' > conftest.$ac_ext
6162   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6163   (eval $ac_compile) 2>&5
6164   ac_status=$?
6165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166   test $ac_status = 0; }; then
6167     case `/usr/bin/file conftest.o` in
6168       *32-bit*)
6169         case $host in
6170           x86_64-*kfreebsd*-gnu)
6171             LD="${LD-ld} -m elf_i386_fbsd"
6172             ;;
6173           x86_64-*linux*)
6174             LD="${LD-ld} -m elf_i386"
6175             ;;
6176           ppc64-*linux*|powerpc64-*linux*)
6177             LD="${LD-ld} -m elf32ppclinux"
6178             ;;
6179           s390x-*linux*)
6180             LD="${LD-ld} -m elf_s390"
6181             ;;
6182           sparc64-*linux*)
6183             LD="${LD-ld} -m elf32_sparc"
6184             ;;
6185         esac
6186         ;;
6187       *64-bit*)
6188         case $host in
6189           x86_64-*kfreebsd*-gnu)
6190             LD="${LD-ld} -m elf_x86_64_fbsd"
6191             ;;
6192           x86_64-*linux*)
6193             LD="${LD-ld} -m elf_x86_64"
6194             ;;
6195           ppc*-*linux*|powerpc*-*linux*)
6196             LD="${LD-ld} -m elf64ppc"
6197             ;;
6198           s390*-*linux*|s390*-*tpf*)
6199             LD="${LD-ld} -m elf64_s390"
6200             ;;
6201           sparc*-*linux*)
6202             LD="${LD-ld} -m elf64_sparc"
6203             ;;
6204         esac
6205         ;;
6206     esac
6207   fi
6208   rm -rf conftest*
6209   ;;
6210
6211 *-*-sco3.2v5*)
6212   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6213   SAVE_CFLAGS="$CFLAGS"
6214   CFLAGS="$CFLAGS -belf"
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6216 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6217 if ${lt_cv_cc_needs_belf+:} false; then :
6218   $as_echo_n "(cached) " >&6
6219 else
6220   ac_ext=c
6221 ac_cpp='$CPP $CPPFLAGS'
6222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6225
6226      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h.  */
6228
6229 int
6230 main ()
6231 {
6232
6233   ;
6234   return 0;
6235 }
6236 _ACEOF
6237 if ac_fn_c_try_link "$LINENO"; then :
6238   lt_cv_cc_needs_belf=yes
6239 else
6240   lt_cv_cc_needs_belf=no
6241 fi
6242 rm -f core conftest.err conftest.$ac_objext \
6243     conftest$ac_exeext conftest.$ac_ext
6244      ac_ext=c
6245 ac_cpp='$CPP $CPPFLAGS'
6246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6249
6250 fi
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6252 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6253   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6254     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6255     CFLAGS="$SAVE_CFLAGS"
6256   fi
6257   ;;
6258 *-*solaris*)
6259   # Find out which ABI we are using.
6260   echo 'int i;' > conftest.$ac_ext
6261   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6262   (eval $ac_compile) 2>&5
6263   ac_status=$?
6264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6265   test $ac_status = 0; }; then
6266     case `/usr/bin/file conftest.o` in
6267     *64-bit*)
6268       case $lt_cv_prog_gnu_ld in
6269       yes*)
6270         case $host in
6271         i?86-*-solaris*)
6272           LD="${LD-ld} -m elf_x86_64"
6273           ;;
6274         sparc*-*-solaris*)
6275           LD="${LD-ld} -m elf64_sparc"
6276           ;;
6277         esac
6278         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6279         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6280           LD="${LD-ld}_sol2"
6281         fi
6282         ;;
6283       *)
6284         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6285           LD="${LD-ld} -64"
6286         fi
6287         ;;
6288       esac
6289       ;;
6290     esac
6291   fi
6292   rm -rf conftest*
6293   ;;
6294 esac
6295
6296 need_locks="$enable_libtool_lock"
6297
6298 if test -n "$ac_tool_prefix"; then
6299   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6300 set dummy ${ac_tool_prefix}mt; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6304   $as_echo_n "(cached) " >&6
6305 else
6306   if test -n "$MANIFEST_TOOL"; then
6307   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312   IFS=$as_save_IFS
6313   test -z "$as_dir" && as_dir=.
6314     for ac_exec_ext in '' $ac_executable_extensions; do
6315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318     break 2
6319   fi
6320 done
6321   done
6322 IFS=$as_save_IFS
6323
6324 fi
6325 fi
6326 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6327 if test -n "$MANIFEST_TOOL"; then
6328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6329 $as_echo "$MANIFEST_TOOL" >&6; }
6330 else
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6333 fi
6334
6335
6336 fi
6337 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6338   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6339   # Extract the first word of "mt", so it can be a program name with args.
6340 set dummy mt; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6344   $as_echo_n "(cached) " >&6
6345 else
6346   if test -n "$ac_ct_MANIFEST_TOOL"; then
6347   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352   IFS=$as_save_IFS
6353   test -z "$as_dir" && as_dir=.
6354     for ac_exec_ext in '' $ac_executable_extensions; do
6355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358     break 2
6359   fi
6360 done
6361   done
6362 IFS=$as_save_IFS
6363
6364 fi
6365 fi
6366 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6367 if test -n "$ac_ct_MANIFEST_TOOL"; then
6368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6369 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6370 else
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6373 fi
6374
6375   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6376     MANIFEST_TOOL=":"
6377   else
6378     case $cross_compiling:$ac_tool_warned in
6379 yes:)
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382 ac_tool_warned=yes ;;
6383 esac
6384     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6385   fi
6386 else
6387   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6388 fi
6389
6390 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6392 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6393 if ${lt_cv_path_mainfest_tool+:} false; then :
6394   $as_echo_n "(cached) " >&6
6395 else
6396   lt_cv_path_mainfest_tool=no
6397   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6398   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6399   cat conftest.err >&5
6400   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6401     lt_cv_path_mainfest_tool=yes
6402   fi
6403   rm -f conftest*
6404 fi
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6406 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6407 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6408   MANIFEST_TOOL=:
6409 fi
6410
6411
6412
6413
6414
6415
6416   case $host_os in
6417     rhapsody* | darwin*)
6418     if test -n "$ac_tool_prefix"; then
6419   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6420 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6424   $as_echo_n "(cached) " >&6
6425 else
6426   if test -n "$DSYMUTIL"; then
6427   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432   IFS=$as_save_IFS
6433   test -z "$as_dir" && as_dir=.
6434     for ac_exec_ext in '' $ac_executable_extensions; do
6435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438     break 2
6439   fi
6440 done
6441   done
6442 IFS=$as_save_IFS
6443
6444 fi
6445 fi
6446 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6447 if test -n "$DSYMUTIL"; then
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6449 $as_echo "$DSYMUTIL" >&6; }
6450 else
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6453 fi
6454
6455
6456 fi
6457 if test -z "$ac_cv_prog_DSYMUTIL"; then
6458   ac_ct_DSYMUTIL=$DSYMUTIL
6459   # Extract the first word of "dsymutil", so it can be a program name with args.
6460 set dummy dsymutil; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6464   $as_echo_n "(cached) " >&6
6465 else
6466   if test -n "$ac_ct_DSYMUTIL"; then
6467   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472   IFS=$as_save_IFS
6473   test -z "$as_dir" && as_dir=.
6474     for ac_exec_ext in '' $ac_executable_extensions; do
6475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478     break 2
6479   fi
6480 done
6481   done
6482 IFS=$as_save_IFS
6483
6484 fi
6485 fi
6486 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6487 if test -n "$ac_ct_DSYMUTIL"; then
6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6489 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6490 else
6491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6493 fi
6494
6495   if test "x$ac_ct_DSYMUTIL" = x; then
6496     DSYMUTIL=":"
6497   else
6498     case $cross_compiling:$ac_tool_warned in
6499 yes:)
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6502 ac_tool_warned=yes ;;
6503 esac
6504     DSYMUTIL=$ac_ct_DSYMUTIL
6505   fi
6506 else
6507   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6508 fi
6509
6510     if test -n "$ac_tool_prefix"; then
6511   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6512 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_prog_NMEDIT+:} false; then :
6516   $as_echo_n "(cached) " >&6
6517 else
6518   if test -n "$NMEDIT"; then
6519   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526     for ac_exec_ext in '' $ac_executable_extensions; do
6527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533   done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 NMEDIT=$ac_cv_prog_NMEDIT
6539 if test -n "$NMEDIT"; then
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6541 $as_echo "$NMEDIT" >&6; }
6542 else
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6545 fi
6546
6547
6548 fi
6549 if test -z "$ac_cv_prog_NMEDIT"; then
6550   ac_ct_NMEDIT=$NMEDIT
6551   # Extract the first word of "nmedit", so it can be a program name with args.
6552 set dummy nmedit; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6556   $as_echo_n "(cached) " >&6
6557 else
6558   if test -n "$ac_ct_NMEDIT"; then
6559   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564   IFS=$as_save_IFS
6565   test -z "$as_dir" && as_dir=.
6566     for ac_exec_ext in '' $ac_executable_extensions; do
6567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570     break 2
6571   fi
6572 done
6573   done
6574 IFS=$as_save_IFS
6575
6576 fi
6577 fi
6578 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6579 if test -n "$ac_ct_NMEDIT"; then
6580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6581 $as_echo "$ac_ct_NMEDIT" >&6; }
6582 else
6583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6585 fi
6586
6587   if test "x$ac_ct_NMEDIT" = x; then
6588     NMEDIT=":"
6589   else
6590     case $cross_compiling:$ac_tool_warned in
6591 yes:)
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6594 ac_tool_warned=yes ;;
6595 esac
6596     NMEDIT=$ac_ct_NMEDIT
6597   fi
6598 else
6599   NMEDIT="$ac_cv_prog_NMEDIT"
6600 fi
6601
6602     if test -n "$ac_tool_prefix"; then
6603   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6604 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if ${ac_cv_prog_LIPO+:} false; then :
6608   $as_echo_n "(cached) " >&6
6609 else
6610   if test -n "$LIPO"; then
6611   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6615 do
6616   IFS=$as_save_IFS
6617   test -z "$as_dir" && as_dir=.
6618     for ac_exec_ext in '' $ac_executable_extensions; do
6619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622     break 2
6623   fi
6624 done
6625   done
6626 IFS=$as_save_IFS
6627
6628 fi
6629 fi
6630 LIPO=$ac_cv_prog_LIPO
6631 if test -n "$LIPO"; then
6632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6633 $as_echo "$LIPO" >&6; }
6634 else
6635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6637 fi
6638
6639
6640 fi
6641 if test -z "$ac_cv_prog_LIPO"; then
6642   ac_ct_LIPO=$LIPO
6643   # Extract the first word of "lipo", so it can be a program name with args.
6644 set dummy lipo; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6648   $as_echo_n "(cached) " >&6
6649 else
6650   if test -n "$ac_ct_LIPO"; then
6651   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656   IFS=$as_save_IFS
6657   test -z "$as_dir" && as_dir=.
6658     for ac_exec_ext in '' $ac_executable_extensions; do
6659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660     ac_cv_prog_ac_ct_LIPO="lipo"
6661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662     break 2
6663   fi
6664 done
6665   done
6666 IFS=$as_save_IFS
6667
6668 fi
6669 fi
6670 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6671 if test -n "$ac_ct_LIPO"; then
6672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6673 $as_echo "$ac_ct_LIPO" >&6; }
6674 else
6675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6677 fi
6678
6679   if test "x$ac_ct_LIPO" = x; then
6680     LIPO=":"
6681   else
6682     case $cross_compiling:$ac_tool_warned in
6683 yes:)
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6687 esac
6688     LIPO=$ac_ct_LIPO
6689   fi
6690 else
6691   LIPO="$ac_cv_prog_LIPO"
6692 fi
6693
6694     if test -n "$ac_tool_prefix"; then
6695   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6696 set dummy ${ac_tool_prefix}otool; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if ${ac_cv_prog_OTOOL+:} false; then :
6700   $as_echo_n "(cached) " >&6
6701 else
6702   if test -n "$OTOOL"; then
6703   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708   IFS=$as_save_IFS
6709   test -z "$as_dir" && as_dir=.
6710     for ac_exec_ext in '' $ac_executable_extensions; do
6711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714     break 2
6715   fi
6716 done
6717   done
6718 IFS=$as_save_IFS
6719
6720 fi
6721 fi
6722 OTOOL=$ac_cv_prog_OTOOL
6723 if test -n "$OTOOL"; then
6724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6725 $as_echo "$OTOOL" >&6; }
6726 else
6727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6729 fi
6730
6731
6732 fi
6733 if test -z "$ac_cv_prog_OTOOL"; then
6734   ac_ct_OTOOL=$OTOOL
6735   # Extract the first word of "otool", so it can be a program name with args.
6736 set dummy otool; ac_word=$2
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6740   $as_echo_n "(cached) " >&6
6741 else
6742   if test -n "$ac_ct_OTOOL"; then
6743   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748   IFS=$as_save_IFS
6749   test -z "$as_dir" && as_dir=.
6750     for ac_exec_ext in '' $ac_executable_extensions; do
6751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752     ac_cv_prog_ac_ct_OTOOL="otool"
6753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754     break 2
6755   fi
6756 done
6757   done
6758 IFS=$as_save_IFS
6759
6760 fi
6761 fi
6762 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6763 if test -n "$ac_ct_OTOOL"; then
6764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6765 $as_echo "$ac_ct_OTOOL" >&6; }
6766 else
6767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6769 fi
6770
6771   if test "x$ac_ct_OTOOL" = x; then
6772     OTOOL=":"
6773   else
6774     case $cross_compiling:$ac_tool_warned in
6775 yes:)
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6778 ac_tool_warned=yes ;;
6779 esac
6780     OTOOL=$ac_ct_OTOOL
6781   fi
6782 else
6783   OTOOL="$ac_cv_prog_OTOOL"
6784 fi
6785
6786     if test -n "$ac_tool_prefix"; then
6787   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6788 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if ${ac_cv_prog_OTOOL64+:} false; then :
6792   $as_echo_n "(cached) " >&6
6793 else
6794   if test -n "$OTOOL64"; then
6795   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800   IFS=$as_save_IFS
6801   test -z "$as_dir" && as_dir=.
6802     for ac_exec_ext in '' $ac_executable_extensions; do
6803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806     break 2
6807   fi
6808 done
6809   done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 OTOOL64=$ac_cv_prog_OTOOL64
6815 if test -n "$OTOOL64"; then
6816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6817 $as_echo "$OTOOL64" >&6; }
6818 else
6819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 $as_echo "no" >&6; }
6821 fi
6822
6823
6824 fi
6825 if test -z "$ac_cv_prog_OTOOL64"; then
6826   ac_ct_OTOOL64=$OTOOL64
6827   # Extract the first word of "otool64", so it can be a program name with args.
6828 set dummy otool64; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6832   $as_echo_n "(cached) " >&6
6833 else
6834   if test -n "$ac_ct_OTOOL64"; then
6835   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840   IFS=$as_save_IFS
6841   test -z "$as_dir" && as_dir=.
6842     for ac_exec_ext in '' $ac_executable_extensions; do
6843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844     ac_cv_prog_ac_ct_OTOOL64="otool64"
6845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846     break 2
6847   fi
6848 done
6849   done
6850 IFS=$as_save_IFS
6851
6852 fi
6853 fi
6854 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6855 if test -n "$ac_ct_OTOOL64"; then
6856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6857 $as_echo "$ac_ct_OTOOL64" >&6; }
6858 else
6859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6861 fi
6862
6863   if test "x$ac_ct_OTOOL64" = x; then
6864     OTOOL64=":"
6865   else
6866     case $cross_compiling:$ac_tool_warned in
6867 yes:)
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870 ac_tool_warned=yes ;;
6871 esac
6872     OTOOL64=$ac_ct_OTOOL64
6873   fi
6874 else
6875   OTOOL64="$ac_cv_prog_OTOOL64"
6876 fi
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6905 $as_echo_n "checking for -single_module linker flag... " >&6; }
6906 if ${lt_cv_apple_cc_single_mod+:} false; then :
6907   $as_echo_n "(cached) " >&6
6908 else
6909   lt_cv_apple_cc_single_mod=no
6910       if test -z "${LT_MULTI_MODULE}"; then
6911         # By default we will add the -single_module flag. You can override
6912         # by either setting the environment variable LT_MULTI_MODULE
6913         # non-empty at configure time, or by adding -multi_module to the
6914         # link flags.
6915         rm -rf libconftest.dylib*
6916         echo "int foo(void){return 1;}" > conftest.c
6917         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6918 -dynamiclib -Wl,-single_module conftest.c" >&5
6919         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6920           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6921         _lt_result=$?
6922         # If there is a non-empty error log, and "single_module"
6923         # appears in it, assume the flag caused a linker warning
6924         if test -s conftest.err && $GREP single_module conftest.err; then
6925           cat conftest.err >&5
6926         # Otherwise, if the output was created with a 0 exit code from
6927         # the compiler, it worked.
6928         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6929           lt_cv_apple_cc_single_mod=yes
6930         else
6931           cat conftest.err >&5
6932         fi
6933         rm -rf libconftest.dylib*
6934         rm -f conftest.*
6935       fi
6936 fi
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6938 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6939
6940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6941 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6942 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6943   $as_echo_n "(cached) " >&6
6944 else
6945   lt_cv_ld_exported_symbols_list=no
6946       save_LDFLAGS=$LDFLAGS
6947       echo "_main" > conftest.sym
6948       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6949       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h.  */
6951
6952 int
6953 main ()
6954 {
6955
6956   ;
6957   return 0;
6958 }
6959 _ACEOF
6960 if ac_fn_c_try_link "$LINENO"; then :
6961   lt_cv_ld_exported_symbols_list=yes
6962 else
6963   lt_cv_ld_exported_symbols_list=no
6964 fi
6965 rm -f core conftest.err conftest.$ac_objext \
6966     conftest$ac_exeext conftest.$ac_ext
6967         LDFLAGS="$save_LDFLAGS"
6968
6969 fi
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6971 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6972
6973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6974 $as_echo_n "checking for -force_load linker flag... " >&6; }
6975 if ${lt_cv_ld_force_load+:} false; then :
6976   $as_echo_n "(cached) " >&6
6977 else
6978   lt_cv_ld_force_load=no
6979       cat > conftest.c << _LT_EOF
6980 int forced_loaded() { return 2;}
6981 _LT_EOF
6982       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6983       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6984       echo "$AR cru libconftest.a conftest.o" >&5
6985       $AR cru libconftest.a conftest.o 2>&5
6986       echo "$RANLIB libconftest.a" >&5
6987       $RANLIB libconftest.a 2>&5
6988       cat > conftest.c << _LT_EOF
6989 int main() { return 0;}
6990 _LT_EOF
6991       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6992       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6993       _lt_result=$?
6994       if test -s conftest.err && $GREP force_load conftest.err; then
6995         cat conftest.err >&5
6996       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6997         lt_cv_ld_force_load=yes
6998       else
6999         cat conftest.err >&5
7000       fi
7001         rm -f conftest.err libconftest.a conftest conftest.c
7002         rm -rf conftest.dSYM
7003
7004 fi
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7006 $as_echo "$lt_cv_ld_force_load" >&6; }
7007     case $host_os in
7008     rhapsody* | darwin1.[012])
7009       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7010     darwin1.*)
7011       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7012     darwin*) # darwin 5.x on
7013       # if running on 10.5 or later, the deployment target defaults
7014       # to the OS version, if on x86, and 10.4, the deployment
7015       # target defaults to 10.4. Don't you love it?
7016       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7017         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7018           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7019         10.[012]*)
7020           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7021         10.*)
7022           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7023       esac
7024     ;;
7025   esac
7026     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7027       _lt_dar_single_mod='$single_module'
7028     fi
7029     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7030       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7031     else
7032       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7033     fi
7034     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7035       _lt_dsymutil='~$DSYMUTIL $lib || :'
7036     else
7037       _lt_dsymutil=
7038     fi
7039     ;;
7040   esac
7041
7042 ac_ext=c
7043 ac_cpp='$CPP $CPPFLAGS'
7044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7048 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7049 # On Suns, sometimes $CPP names a directory.
7050 if test -n "$CPP" && test -d "$CPP"; then
7051   CPP=
7052 fi
7053 if test -z "$CPP"; then
7054   if ${ac_cv_prog_CPP+:} false; then :
7055   $as_echo_n "(cached) " >&6
7056 else
7057       # Double quotes because CPP needs to be expanded
7058     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7059     do
7060       ac_preproc_ok=false
7061 for ac_c_preproc_warn_flag in '' yes
7062 do
7063   # Use a header file that comes with gcc, so configuring glibc
7064   # with a fresh cross-compiler works.
7065   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7066   # <limits.h> exists even on freestanding compilers.
7067   # On the NeXT, cc -E runs the code through the compiler's parser,
7068   # not just through cpp. "Syntax error" is here to catch this case.
7069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h.  */
7071 #ifdef __STDC__
7072 # include <limits.h>
7073 #else
7074 # include <assert.h>
7075 #endif
7076                      Syntax error
7077 _ACEOF
7078 if ac_fn_c_try_cpp "$LINENO"; then :
7079
7080 else
7081   # Broken: fails on valid input.
7082 continue
7083 fi
7084 rm -f conftest.err conftest.i conftest.$ac_ext
7085
7086   # OK, works on sane cases.  Now check whether nonexistent headers
7087   # can be detected and how.
7088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h.  */
7090 #include <ac_nonexistent.h>
7091 _ACEOF
7092 if ac_fn_c_try_cpp "$LINENO"; then :
7093   # Broken: success on invalid input.
7094 continue
7095 else
7096   # Passes both tests.
7097 ac_preproc_ok=:
7098 break
7099 fi
7100 rm -f conftest.err conftest.i conftest.$ac_ext
7101
7102 done
7103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7104 rm -f conftest.i conftest.err conftest.$ac_ext
7105 if $ac_preproc_ok; then :
7106   break
7107 fi
7108
7109     done
7110     ac_cv_prog_CPP=$CPP
7111
7112 fi
7113   CPP=$ac_cv_prog_CPP
7114 else
7115   ac_cv_prog_CPP=$CPP
7116 fi
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7118 $as_echo "$CPP" >&6; }
7119 ac_preproc_ok=false
7120 for ac_c_preproc_warn_flag in '' yes
7121 do
7122   # Use a header file that comes with gcc, so configuring glibc
7123   # with a fresh cross-compiler works.
7124   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7125   # <limits.h> exists even on freestanding compilers.
7126   # On the NeXT, cc -E runs the code through the compiler's parser,
7127   # not just through cpp. "Syntax error" is here to catch this case.
7128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h.  */
7130 #ifdef __STDC__
7131 # include <limits.h>
7132 #else
7133 # include <assert.h>
7134 #endif
7135                      Syntax error
7136 _ACEOF
7137 if ac_fn_c_try_cpp "$LINENO"; then :
7138
7139 else
7140   # Broken: fails on valid input.
7141 continue
7142 fi
7143 rm -f conftest.err conftest.i conftest.$ac_ext
7144
7145   # OK, works on sane cases.  Now check whether nonexistent headers
7146   # can be detected and how.
7147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h.  */
7149 #include <ac_nonexistent.h>
7150 _ACEOF
7151 if ac_fn_c_try_cpp "$LINENO"; then :
7152   # Broken: success on invalid input.
7153 continue
7154 else
7155   # Passes both tests.
7156 ac_preproc_ok=:
7157 break
7158 fi
7159 rm -f conftest.err conftest.i conftest.$ac_ext
7160
7161 done
7162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7163 rm -f conftest.i conftest.err conftest.$ac_ext
7164 if $ac_preproc_ok; then :
7165
7166 else
7167   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7169 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7170 See \`config.log' for more details" "$LINENO" 5; }
7171 fi
7172
7173 ac_ext=c
7174 ac_cpp='$CPP $CPPFLAGS'
7175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7178
7179
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7181 $as_echo_n "checking for ANSI C header files... " >&6; }
7182 if ${ac_cv_header_stdc+:} false; then :
7183   $as_echo_n "(cached) " >&6
7184 else
7185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h.  */
7187 #include <stdlib.h>
7188 #include <stdarg.h>
7189 #include <string.h>
7190 #include <float.h>
7191
7192 int
7193 main ()
7194 {
7195
7196   ;
7197   return 0;
7198 }
7199 _ACEOF
7200 if ac_fn_c_try_compile "$LINENO"; then :
7201   ac_cv_header_stdc=yes
7202 else
7203   ac_cv_header_stdc=no
7204 fi
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206
7207 if test $ac_cv_header_stdc = yes; then
7208   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h.  */
7211 #include <string.h>
7212
7213 _ACEOF
7214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7215   $EGREP "memchr" >/dev/null 2>&1; then :
7216
7217 else
7218   ac_cv_header_stdc=no
7219 fi
7220 rm -f conftest*
7221
7222 fi
7223
7224 if test $ac_cv_header_stdc = yes; then
7225   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h.  */
7228 #include <stdlib.h>
7229
7230 _ACEOF
7231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7232   $EGREP "free" >/dev/null 2>&1; then :
7233
7234 else
7235   ac_cv_header_stdc=no
7236 fi
7237 rm -f conftest*
7238
7239 fi
7240
7241 if test $ac_cv_header_stdc = yes; then
7242   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7243   if test "$cross_compiling" = yes; then :
7244   :
7245 else
7246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h.  */
7248 #include <ctype.h>
7249 #include <stdlib.h>
7250 #if ((' ' & 0x0FF) == 0x020)
7251 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7252 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7253 #else
7254 # define ISLOWER(c) \
7255                    (('a' <= (c) && (c) <= 'i') \
7256                      || ('j' <= (c) && (c) <= 'r') \
7257                      || ('s' <= (c) && (c) <= 'z'))
7258 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7259 #endif
7260
7261 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7262 int
7263 main ()
7264 {
7265   int i;
7266   for (i = 0; i < 256; i++)
7267     if (XOR (islower (i), ISLOWER (i))
7268         || toupper (i) != TOUPPER (i))
7269       return 2;
7270   return 0;
7271 }
7272 _ACEOF
7273 if ac_fn_c_try_run "$LINENO"; then :
7274
7275 else
7276   ac_cv_header_stdc=no
7277 fi
7278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7279   conftest.$ac_objext conftest.beam conftest.$ac_ext
7280 fi
7281
7282 fi
7283 fi
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7285 $as_echo "$ac_cv_header_stdc" >&6; }
7286 if test $ac_cv_header_stdc = yes; then
7287
7288 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7289
7290 fi
7291
7292 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7293 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7294                   inttypes.h stdint.h unistd.h
7295 do :
7296   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7298 "
7299 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7300   cat >>confdefs.h <<_ACEOF
7301 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7302 _ACEOF
7303
7304 fi
7305
7306 done
7307
7308
7309 for ac_header in dlfcn.h
7310 do :
7311   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7312 "
7313 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7314   cat >>confdefs.h <<_ACEOF
7315 #define HAVE_DLFCN_H 1
7316 _ACEOF
7317
7318 fi
7319
7320 done
7321
7322
7323
7324
7325
7326 # Set options
7327 # Check whether --enable-shared was given.
7328 if test "${enable_shared+set}" = set; then :
7329   enableval=$enable_shared; p=${PACKAGE-default}
7330     case $enableval in
7331     yes) enable_shared=yes ;;
7332     no) enable_shared=no ;;
7333     *)
7334       enable_shared=no
7335       # Look at the argument we got.  We use all the common list separators.
7336       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7337       for pkg in $enableval; do
7338         IFS="$lt_save_ifs"
7339         if test "X$pkg" = "X$p"; then
7340           enable_shared=yes
7341         fi
7342       done
7343       IFS="$lt_save_ifs"
7344       ;;
7345     esac
7346 else
7347   enable_shared=yes
7348 fi
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359         enable_dlopen=no
7360
7361
7362   enable_win32_dll=no
7363
7364
7365
7366   # Check whether --enable-static was given.
7367 if test "${enable_static+set}" = set; then :
7368   enableval=$enable_static; p=${PACKAGE-default}
7369     case $enableval in
7370     yes) enable_static=yes ;;
7371     no) enable_static=no ;;
7372     *)
7373      enable_static=no
7374       # Look at the argument we got.  We use all the common list separators.
7375       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7376       for pkg in $enableval; do
7377         IFS="$lt_save_ifs"
7378         if test "X$pkg" = "X$p"; then
7379           enable_static=yes
7380         fi
7381       done
7382       IFS="$lt_save_ifs"
7383       ;;
7384     esac
7385 else
7386   enable_static=yes
7387 fi
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398 # Check whether --with-pic was given.
7399 if test "${with_pic+set}" = set; then :
7400   withval=$with_pic; lt_p=${PACKAGE-default}
7401     case $withval in
7402     yes|no) pic_mode=$withval ;;
7403     *)
7404       pic_mode=default
7405       # Look at the argument we got.  We use all the common list separators.
7406       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7407       for lt_pkg in $withval; do
7408         IFS="$lt_save_ifs"
7409         if test "X$lt_pkg" = "X$lt_p"; then
7410           pic_mode=yes
7411         fi
7412       done
7413       IFS="$lt_save_ifs"
7414       ;;
7415     esac
7416 else
7417   pic_mode=default
7418 fi
7419
7420
7421 test -z "$pic_mode" && pic_mode=default
7422
7423
7424
7425
7426
7427
7428
7429   # Check whether --enable-fast-install was given.
7430 if test "${enable_fast_install+set}" = set; then :
7431   enableval=$enable_fast_install; p=${PACKAGE-default}
7432     case $enableval in
7433     yes) enable_fast_install=yes ;;
7434     no) enable_fast_install=no ;;
7435     *)
7436       enable_fast_install=no
7437       # Look at the argument we got.  We use all the common list separators.
7438       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7439       for pkg in $enableval; do
7440         IFS="$lt_save_ifs"
7441         if test "X$pkg" = "X$p"; then
7442           enable_fast_install=yes
7443         fi
7444       done
7445       IFS="$lt_save_ifs"
7446       ;;
7447     esac
7448 else
7449   enable_fast_install=yes
7450 fi
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462 # This can be used to rebuild libtool when needed
7463 LIBTOOL_DEPS="$ltmain"
7464
7465 # Always use our own libtool.
7466 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497 test -z "$LN_S" && LN_S="ln -s"
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512 if test -n "${ZSH_VERSION+set}" ; then
7513    setopt NO_GLOB_SUBST
7514 fi
7515
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7517 $as_echo_n "checking for objdir... " >&6; }
7518 if ${lt_cv_objdir+:} false; then :
7519   $as_echo_n "(cached) " >&6
7520 else
7521   rm -f .libs 2>/dev/null
7522 mkdir .libs 2>/dev/null
7523 if test -d .libs; then
7524   lt_cv_objdir=.libs
7525 else
7526   # MS-DOS does not allow filenames that begin with a dot.
7527   lt_cv_objdir=_libs
7528 fi
7529 rmdir .libs 2>/dev/null
7530 fi
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7532 $as_echo "$lt_cv_objdir" >&6; }
7533 objdir=$lt_cv_objdir
7534
7535
7536
7537
7538
7539 cat >>confdefs.h <<_ACEOF
7540 #define LT_OBJDIR "$lt_cv_objdir/"
7541 _ACEOF
7542
7543
7544
7545
7546 case $host_os in
7547 aix3*)
7548   # AIX sometimes has problems with the GCC collect2 program.  For some
7549   # reason, if we set the COLLECT_NAMES environment variable, the problems
7550   # vanish in a puff of smoke.
7551   if test "X${COLLECT_NAMES+set}" != Xset; then
7552     COLLECT_NAMES=
7553     export COLLECT_NAMES
7554   fi
7555   ;;
7556 esac
7557
7558 # Global variables:
7559 ofile=libtool
7560 can_build_shared=yes
7561
7562 # All known linkers require a `.a' archive for static linking (except MSVC,
7563 # which needs '.lib').
7564 libext=a
7565
7566 with_gnu_ld="$lt_cv_prog_gnu_ld"
7567
7568 old_CC="$CC"
7569 old_CFLAGS="$CFLAGS"
7570
7571 # Set sane defaults for various variables
7572 test -z "$CC" && CC=cc
7573 test -z "$LTCC" && LTCC=$CC
7574 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7575 test -z "$LD" && LD=ld
7576 test -z "$ac_objext" && ac_objext=o
7577
7578 for cc_temp in $compiler""; do
7579   case $cc_temp in
7580     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7581     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7582     \-*) ;;
7583     *) break;;
7584   esac
7585 done
7586 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7587
7588
7589 # Only perform the check for file, if the check method requires it
7590 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7591 case $deplibs_check_method in
7592 file_magic*)
7593   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7595 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7596 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7597   $as_echo_n "(cached) " >&6
7598 else
7599   case $MAGIC_CMD in
7600 [\\/*] |  ?:[\\/]*)
7601   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7602   ;;
7603 *)
7604   lt_save_MAGIC_CMD="$MAGIC_CMD"
7605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7606   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7607   for ac_dir in $ac_dummy; do
7608     IFS="$lt_save_ifs"
7609     test -z "$ac_dir" && ac_dir=.
7610     if test -f $ac_dir/${ac_tool_prefix}file; then
7611       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7612       if test -n "$file_magic_test_file"; then
7613         case $deplibs_check_method in
7614         "file_magic "*)
7615           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7616           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7617           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7618             $EGREP "$file_magic_regex" > /dev/null; then
7619             :
7620           else
7621             cat <<_LT_EOF 1>&2
7622
7623 *** Warning: the command libtool uses to detect shared libraries,
7624 *** $file_magic_cmd, produces output that libtool cannot recognize.
7625 *** The result is that libtool may fail to recognize shared libraries
7626 *** as such.  This will affect the creation of libtool libraries that
7627 *** depend on shared libraries, but programs linked with such libtool
7628 *** libraries will work regardless of this problem.  Nevertheless, you
7629 *** may want to report the problem to your system manager and/or to
7630 *** bug-libtool@gnu.org
7631
7632 _LT_EOF
7633           fi ;;
7634         esac
7635       fi
7636       break
7637     fi
7638   done
7639   IFS="$lt_save_ifs"
7640   MAGIC_CMD="$lt_save_MAGIC_CMD"
7641   ;;
7642 esac
7643 fi
7644
7645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7646 if test -n "$MAGIC_CMD"; then
7647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7648 $as_echo "$MAGIC_CMD" >&6; }
7649 else
7650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7652 fi
7653
7654
7655
7656
7657
7658 if test -z "$lt_cv_path_MAGIC_CMD"; then
7659   if test -n "$ac_tool_prefix"; then
7660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7661 $as_echo_n "checking for file... " >&6; }
7662 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7663   $as_echo_n "(cached) " >&6
7664 else
7665   case $MAGIC_CMD in
7666 [\\/*] |  ?:[\\/]*)
7667   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7668   ;;
7669 *)
7670   lt_save_MAGIC_CMD="$MAGIC_CMD"
7671   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7672   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7673   for ac_dir in $ac_dummy; do
7674     IFS="$lt_save_ifs"
7675     test -z "$ac_dir" && ac_dir=.
7676     if test -f $ac_dir/file; then
7677       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7678       if test -n "$file_magic_test_file"; then
7679         case $deplibs_check_method in
7680         "file_magic "*)
7681           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7682           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7683           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7684             $EGREP "$file_magic_regex" > /dev/null; then
7685             :
7686           else
7687             cat <<_LT_EOF 1>&2
7688
7689 *** Warning: the command libtool uses to detect shared libraries,
7690 *** $file_magic_cmd, produces output that libtool cannot recognize.
7691 *** The result is that libtool may fail to recognize shared libraries
7692 *** as such.  This will affect the creation of libtool libraries that
7693 *** depend on shared libraries, but programs linked with such libtool
7694 *** libraries will work regardless of this problem.  Nevertheless, you
7695 *** may want to report the problem to your system manager and/or to
7696 *** bug-libtool@gnu.org
7697
7698 _LT_EOF
7699           fi ;;
7700         esac
7701       fi
7702       break
7703     fi
7704   done
7705   IFS="$lt_save_ifs"
7706   MAGIC_CMD="$lt_save_MAGIC_CMD"
7707   ;;
7708 esac
7709 fi
7710
7711 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7712 if test -n "$MAGIC_CMD"; then
7713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7714 $as_echo "$MAGIC_CMD" >&6; }
7715 else
7716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7718 fi
7719
7720
7721   else
7722     MAGIC_CMD=:
7723   fi
7724 fi
7725
7726   fi
7727   ;;
7728 esac
7729
7730 # Use C for the default configuration in the libtool script
7731
7732 lt_save_CC="$CC"
7733 ac_ext=c
7734 ac_cpp='$CPP $CPPFLAGS'
7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738
7739
7740 # Source file extension for C test sources.
7741 ac_ext=c
7742
7743 # Object file extension for compiled C test sources.
7744 objext=o
7745 objext=$objext
7746
7747 # Code to be used in simple compile tests
7748 lt_simple_compile_test_code="int some_variable = 0;"
7749
7750 # Code to be used in simple link tests
7751 lt_simple_link_test_code='int main(){return(0);}'
7752
7753
7754
7755
7756
7757
7758
7759 # If no C compiler was specified, use CC.
7760 LTCC=${LTCC-"$CC"}
7761
7762 # If no C compiler flags were specified, use CFLAGS.
7763 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7764
7765 # Allow CC to be a program name with arguments.
7766 compiler=$CC
7767
7768 # Save the default compiler, since it gets overwritten when the other
7769 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7770 compiler_DEFAULT=$CC
7771
7772 # save warnings/boilerplate of simple test code
7773 ac_outfile=conftest.$ac_objext
7774 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7775 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7776 _lt_compiler_boilerplate=`cat conftest.err`
7777 $RM conftest*
7778
7779 ac_outfile=conftest.$ac_objext
7780 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7781 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7782 _lt_linker_boilerplate=`cat conftest.err`
7783 $RM -r conftest*
7784
7785
7786 if test -n "$compiler"; then
7787
7788 lt_prog_compiler_no_builtin_flag=
7789
7790 if test "$GCC" = yes; then
7791   case $cc_basename in
7792   nvcc*)
7793     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7794   *)
7795     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7796   esac
7797
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7799 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7800 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7801   $as_echo_n "(cached) " >&6
7802 else
7803   lt_cv_prog_compiler_rtti_exceptions=no
7804    ac_outfile=conftest.$ac_objext
7805    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7806    lt_compiler_flag="-fno-rtti -fno-exceptions"
7807    # Insert the option either (1) after the last *FLAGS variable, or
7808    # (2) before a word containing "conftest.", or (3) at the end.
7809    # Note that $ac_compile itself does not contain backslashes and begins
7810    # with a dollar sign (not a hyphen), so the echo should work correctly.
7811    # The option is referenced via a variable to avoid confusing sed.
7812    lt_compile=`echo "$ac_compile" | $SED \
7813    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7814    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7815    -e 's:$: $lt_compiler_flag:'`
7816    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7817    (eval "$lt_compile" 2>conftest.err)
7818    ac_status=$?
7819    cat conftest.err >&5
7820    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821    if (exit $ac_status) && test -s "$ac_outfile"; then
7822      # The compiler can only warn and ignore the option if not recognized
7823      # So say no if there are warnings other than the usual output.
7824      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7825      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7826      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7827        lt_cv_prog_compiler_rtti_exceptions=yes
7828      fi
7829    fi
7830    $RM conftest*
7831
7832 fi
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7834 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7835
7836 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7837     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7838 else
7839     :
7840 fi
7841
7842 fi
7843
7844
7845
7846
7847
7848
7849   lt_prog_compiler_wl=
7850 lt_prog_compiler_pic=
7851 lt_prog_compiler_static=
7852
7853
7854   if test "$GCC" = yes; then
7855     lt_prog_compiler_wl='-Wl,'
7856     lt_prog_compiler_static='-static'
7857
7858     case $host_os in
7859       aix*)
7860       # All AIX code is PIC.
7861       if test "$host_cpu" = ia64; then
7862         # AIX 5 now supports IA64 processor
7863         lt_prog_compiler_static='-Bstatic'
7864       fi
7865       ;;
7866
7867     amigaos*)
7868       case $host_cpu in
7869       powerpc)
7870             # see comment about AmigaOS4 .so support
7871             lt_prog_compiler_pic='-fPIC'
7872         ;;
7873       m68k)
7874             # FIXME: we need at least 68020 code to build shared libraries, but
7875             # adding the `-m68020' flag to GCC prevents building anything better,
7876             # like `-m68040'.
7877             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7878         ;;
7879       esac
7880       ;;
7881
7882     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7883       # PIC is the default for these OSes.
7884       ;;
7885
7886     mingw* | cygwin* | pw32* | os2* | cegcc*)
7887       # This hack is so that the source file can tell whether it is being
7888       # built for inclusion in a dll (and should export symbols for example).
7889       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7890       # (--disable-auto-import) libraries
7891       lt_prog_compiler_pic='-DDLL_EXPORT'
7892       ;;
7893
7894     darwin* | rhapsody*)
7895       # PIC is the default on this platform
7896       # Common symbols not allowed in MH_DYLIB files
7897       lt_prog_compiler_pic='-fno-common'
7898       ;;
7899
7900     haiku*)
7901       # PIC is the default for Haiku.
7902       # The "-static" flag exists, but is broken.
7903       lt_prog_compiler_static=
7904       ;;
7905
7906     hpux*)
7907       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7908       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7909       # sets the default TLS model and affects inlining.
7910       case $host_cpu in
7911       hppa*64*)
7912         # +Z the default
7913         ;;
7914       *)
7915         lt_prog_compiler_pic='-fPIC'
7916         ;;
7917       esac
7918       ;;
7919
7920     interix[3-9]*)
7921       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7922       # Instead, we relocate shared libraries at runtime.
7923       ;;
7924
7925     msdosdjgpp*)
7926       # Just because we use GCC doesn't mean we suddenly get shared libraries
7927       # on systems that don't support them.
7928       lt_prog_compiler_can_build_shared=no
7929       enable_shared=no
7930       ;;
7931
7932     *nto* | *qnx*)
7933       # QNX uses GNU C++, but need to define -shared option too, otherwise
7934       # it will coredump.
7935       lt_prog_compiler_pic='-fPIC -shared'
7936       ;;
7937
7938     sysv4*MP*)
7939       if test -d /usr/nec; then
7940         lt_prog_compiler_pic=-Kconform_pic
7941       fi
7942       ;;
7943
7944     *)
7945       lt_prog_compiler_pic='-fPIC'
7946       ;;
7947     esac
7948
7949     case $cc_basename in
7950     nvcc*) # Cuda Compiler Driver 2.2
7951       lt_prog_compiler_wl='-Xlinker '
7952       if test -n "$lt_prog_compiler_pic"; then
7953         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7954       fi
7955       ;;
7956     esac
7957   else
7958     # PORTME Check for flag to pass linker flags through the system compiler.
7959     case $host_os in
7960     aix*)
7961       lt_prog_compiler_wl='-Wl,'
7962       if test "$host_cpu" = ia64; then
7963         # AIX 5 now supports IA64 processor
7964         lt_prog_compiler_static='-Bstatic'
7965       else
7966         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7967       fi
7968       ;;
7969
7970     mingw* | cygwin* | pw32* | os2* | cegcc*)
7971       # This hack is so that the source file can tell whether it is being
7972       # built for inclusion in a dll (and should export symbols for example).
7973       lt_prog_compiler_pic='-DDLL_EXPORT'
7974       ;;
7975
7976     hpux9* | hpux10* | hpux11*)
7977       lt_prog_compiler_wl='-Wl,'
7978       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7979       # not for PA HP-UX.
7980       case $host_cpu in
7981       hppa*64*|ia64*)
7982         # +Z the default
7983         ;;
7984       *)
7985         lt_prog_compiler_pic='+Z'
7986         ;;
7987       esac
7988       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7989       lt_prog_compiler_static='${wl}-a ${wl}archive'
7990       ;;
7991
7992     irix5* | irix6* | nonstopux*)
7993       lt_prog_compiler_wl='-Wl,'
7994       # PIC (with -KPIC) is the default.
7995       lt_prog_compiler_static='-non_shared'
7996       ;;
7997
7998     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7999       case $cc_basename in
8000       # old Intel for x86_64 which still supported -KPIC.
8001       ecc*)
8002         lt_prog_compiler_wl='-Wl,'
8003         lt_prog_compiler_pic='-KPIC'
8004         lt_prog_compiler_static='-static'
8005         ;;
8006       # icc used to be incompatible with GCC.
8007       # ICC 10 doesn't accept -KPIC any more.
8008       icc* | ifort*)
8009         lt_prog_compiler_wl='-Wl,'
8010         lt_prog_compiler_pic='-fPIC'
8011         lt_prog_compiler_static='-static'
8012         ;;
8013       # Lahey Fortran 8.1.
8014       lf95*)
8015         lt_prog_compiler_wl='-Wl,'
8016         lt_prog_compiler_pic='--shared'
8017         lt_prog_compiler_static='--static'
8018         ;;
8019       nagfor*)
8020         # NAG Fortran compiler
8021         lt_prog_compiler_wl='-Wl,-Wl,,'
8022         lt_prog_compiler_pic='-PIC'
8023         lt_prog_compiler_static='-Bstatic'
8024         ;;
8025       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8026         # Portland Group compilers (*not* the Pentium gcc compiler,
8027         # which looks to be a dead project)
8028         lt_prog_compiler_wl='-Wl,'
8029         lt_prog_compiler_pic='-fpic'
8030         lt_prog_compiler_static='-Bstatic'
8031         ;;
8032       ccc*)
8033         lt_prog_compiler_wl='-Wl,'
8034         # All Alpha code is PIC.
8035         lt_prog_compiler_static='-non_shared'
8036         ;;
8037       xl* | bgxl* | bgf* | mpixl*)
8038         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8039         lt_prog_compiler_wl='-Wl,'
8040         lt_prog_compiler_pic='-qpic'
8041         lt_prog_compiler_static='-qstaticlink'
8042         ;;
8043       *)
8044         case `$CC -V 2>&1 | sed 5q` in
8045         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8046           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8047           lt_prog_compiler_pic='-KPIC'
8048           lt_prog_compiler_static='-Bstatic'
8049           lt_prog_compiler_wl=''
8050           ;;
8051         *Sun\ F* | *Sun*Fortran*)
8052           lt_prog_compiler_pic='-KPIC'
8053           lt_prog_compiler_static='-Bstatic'
8054           lt_prog_compiler_wl='-Qoption ld '
8055           ;;
8056         *Sun\ C*)
8057           # Sun C 5.9
8058           lt_prog_compiler_pic='-KPIC'
8059           lt_prog_compiler_static='-Bstatic'
8060           lt_prog_compiler_wl='-Wl,'
8061           ;;
8062         *Intel*\ [CF]*Compiler*)
8063           lt_prog_compiler_wl='-Wl,'
8064           lt_prog_compiler_pic='-fPIC'
8065           lt_prog_compiler_static='-static'
8066           ;;
8067         *Portland\ Group*)
8068           lt_prog_compiler_wl='-Wl,'
8069           lt_prog_compiler_pic='-fpic'
8070           lt_prog_compiler_static='-Bstatic'
8071           ;;
8072         esac
8073         ;;
8074       esac
8075       ;;
8076
8077     newsos6)
8078       lt_prog_compiler_pic='-KPIC'
8079       lt_prog_compiler_static='-Bstatic'
8080       ;;
8081
8082     *nto* | *qnx*)
8083       # QNX uses GNU C++, but need to define -shared option too, otherwise
8084       # it will coredump.
8085       lt_prog_compiler_pic='-fPIC -shared'
8086       ;;
8087
8088     osf3* | osf4* | osf5*)
8089       lt_prog_compiler_wl='-Wl,'
8090       # All OSF/1 code is PIC.
8091       lt_prog_compiler_static='-non_shared'
8092       ;;
8093
8094     rdos*)
8095       lt_prog_compiler_static='-non_shared'
8096       ;;
8097
8098     solaris*)
8099       lt_prog_compiler_pic='-KPIC'
8100       lt_prog_compiler_static='-Bstatic'
8101       case $cc_basename in
8102       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8103         lt_prog_compiler_wl='-Qoption ld ';;
8104       *)
8105         lt_prog_compiler_wl='-Wl,';;
8106       esac
8107       ;;
8108
8109     sunos4*)
8110       lt_prog_compiler_wl='-Qoption ld '
8111       lt_prog_compiler_pic='-PIC'
8112       lt_prog_compiler_static='-Bstatic'
8113       ;;
8114
8115     sysv4 | sysv4.2uw2* | sysv4.3*)
8116       lt_prog_compiler_wl='-Wl,'
8117       lt_prog_compiler_pic='-KPIC'
8118       lt_prog_compiler_static='-Bstatic'
8119       ;;
8120
8121     sysv4*MP*)
8122       if test -d /usr/nec ;then
8123         lt_prog_compiler_pic='-Kconform_pic'
8124         lt_prog_compiler_static='-Bstatic'
8125       fi
8126       ;;
8127
8128     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8129       lt_prog_compiler_wl='-Wl,'
8130       lt_prog_compiler_pic='-KPIC'
8131       lt_prog_compiler_static='-Bstatic'
8132       ;;
8133
8134     unicos*)
8135       lt_prog_compiler_wl='-Wl,'
8136       lt_prog_compiler_can_build_shared=no
8137       ;;
8138
8139     uts4*)
8140       lt_prog_compiler_pic='-pic'
8141       lt_prog_compiler_static='-Bstatic'
8142       ;;
8143
8144     *)
8145       lt_prog_compiler_can_build_shared=no
8146       ;;
8147     esac
8148   fi
8149
8150 case $host_os in
8151   # For platforms which do not support PIC, -DPIC is meaningless:
8152   *djgpp*)
8153     lt_prog_compiler_pic=
8154     ;;
8155   *)
8156     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8157     ;;
8158 esac
8159
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8161 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8162 if ${lt_cv_prog_compiler_pic+:} false; then :
8163   $as_echo_n "(cached) " >&6
8164 else
8165   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8168 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8169 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8170
8171 #
8172 # Check to make sure the PIC flag actually works.
8173 #
8174 if test -n "$lt_prog_compiler_pic"; then
8175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8176 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8177 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8178   $as_echo_n "(cached) " >&6
8179 else
8180   lt_cv_prog_compiler_pic_works=no
8181    ac_outfile=conftest.$ac_objext
8182    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8183    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8184    # Insert the option either (1) after the last *FLAGS variable, or
8185    # (2) before a word containing "conftest.", or (3) at the end.
8186    # Note that $ac_compile itself does not contain backslashes and begins
8187    # with a dollar sign (not a hyphen), so the echo should work correctly.
8188    # The option is referenced via a variable to avoid confusing sed.
8189    lt_compile=`echo "$ac_compile" | $SED \
8190    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8191    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8192    -e 's:$: $lt_compiler_flag:'`
8193    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8194    (eval "$lt_compile" 2>conftest.err)
8195    ac_status=$?
8196    cat conftest.err >&5
8197    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198    if (exit $ac_status) && test -s "$ac_outfile"; then
8199      # The compiler can only warn and ignore the option if not recognized
8200      # So say no if there are warnings other than the usual output.
8201      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8202      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8203      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8204        lt_cv_prog_compiler_pic_works=yes
8205      fi
8206    fi
8207    $RM conftest*
8208
8209 fi
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8211 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8212
8213 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8214     case $lt_prog_compiler_pic in
8215      "" | " "*) ;;
8216      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8217      esac
8218 else
8219     lt_prog_compiler_pic=
8220      lt_prog_compiler_can_build_shared=no
8221 fi
8222
8223 fi
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235 #
8236 # Check to make sure the static flag actually works.
8237 #
8238 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8240 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8241 if ${lt_cv_prog_compiler_static_works+:} false; then :
8242   $as_echo_n "(cached) " >&6
8243 else
8244   lt_cv_prog_compiler_static_works=no
8245    save_LDFLAGS="$LDFLAGS"
8246    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8247    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8248    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8249      # The linker can only warn and ignore the option if not recognized
8250      # So say no if there are warnings
8251      if test -s conftest.err; then
8252        # Append any errors to the config.log.
8253        cat conftest.err 1>&5
8254        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8255        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8256        if diff conftest.exp conftest.er2 >/dev/null; then
8257          lt_cv_prog_compiler_static_works=yes
8258        fi
8259      else
8260        lt_cv_prog_compiler_static_works=yes
8261      fi
8262    fi
8263    $RM -r conftest*
8264    LDFLAGS="$save_LDFLAGS"
8265
8266 fi
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8268 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8269
8270 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8271     :
8272 else
8273     lt_prog_compiler_static=
8274 fi
8275
8276
8277
8278
8279
8280
8281
8282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8283 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8284 if ${lt_cv_prog_compiler_c_o+:} false; then :
8285   $as_echo_n "(cached) " >&6
8286 else
8287   lt_cv_prog_compiler_c_o=no
8288    $RM -r conftest 2>/dev/null
8289    mkdir conftest
8290    cd conftest
8291    mkdir out
8292    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8293
8294    lt_compiler_flag="-o out/conftest2.$ac_objext"
8295    # Insert the option either (1) after the last *FLAGS variable, or
8296    # (2) before a word containing "conftest.", or (3) at the end.
8297    # Note that $ac_compile itself does not contain backslashes and begins
8298    # with a dollar sign (not a hyphen), so the echo should work correctly.
8299    lt_compile=`echo "$ac_compile" | $SED \
8300    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8301    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8302    -e 's:$: $lt_compiler_flag:'`
8303    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8304    (eval "$lt_compile" 2>out/conftest.err)
8305    ac_status=$?
8306    cat out/conftest.err >&5
8307    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8309    then
8310      # The compiler can only warn and ignore the option if not recognized
8311      # So say no if there are warnings
8312      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8313      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8314      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8315        lt_cv_prog_compiler_c_o=yes
8316      fi
8317    fi
8318    chmod u+w . 2>&5
8319    $RM conftest*
8320    # SGI C++ compiler will create directory out/ii_files/ for
8321    # template instantiation
8322    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8323    $RM out/* && rmdir out
8324    cd ..
8325    $RM -r conftest
8326    $RM conftest*
8327
8328 fi
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8330 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8331
8332
8333
8334
8335
8336
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8339 if ${lt_cv_prog_compiler_c_o+:} false; then :
8340   $as_echo_n "(cached) " >&6
8341 else
8342   lt_cv_prog_compiler_c_o=no
8343    $RM -r conftest 2>/dev/null
8344    mkdir conftest
8345    cd conftest
8346    mkdir out
8347    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8348
8349    lt_compiler_flag="-o out/conftest2.$ac_objext"
8350    # Insert the option either (1) after the last *FLAGS variable, or
8351    # (2) before a word containing "conftest.", or (3) at the end.
8352    # Note that $ac_compile itself does not contain backslashes and begins
8353    # with a dollar sign (not a hyphen), so the echo should work correctly.
8354    lt_compile=`echo "$ac_compile" | $SED \
8355    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8356    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8357    -e 's:$: $lt_compiler_flag:'`
8358    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8359    (eval "$lt_compile" 2>out/conftest.err)
8360    ac_status=$?
8361    cat out/conftest.err >&5
8362    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8364    then
8365      # The compiler can only warn and ignore the option if not recognized
8366      # So say no if there are warnings
8367      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8368      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8369      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8370        lt_cv_prog_compiler_c_o=yes
8371      fi
8372    fi
8373    chmod u+w . 2>&5
8374    $RM conftest*
8375    # SGI C++ compiler will create directory out/ii_files/ for
8376    # template instantiation
8377    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8378    $RM out/* && rmdir out
8379    cd ..
8380    $RM -r conftest
8381    $RM conftest*
8382
8383 fi
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8385 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8386
8387
8388
8389
8390 hard_links="nottested"
8391 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8392   # do not overwrite the value of need_locks provided by the user
8393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8394 $as_echo_n "checking if we can lock with hard links... " >&6; }
8395   hard_links=yes
8396   $RM conftest*
8397   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8398   touch conftest.a
8399   ln conftest.a conftest.b 2>&5 || hard_links=no
8400   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8402 $as_echo "$hard_links" >&6; }
8403   if test "$hard_links" = no; then
8404     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8405 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8406     need_locks=warn
8407   fi
8408 else
8409   need_locks=no
8410 fi
8411
8412
8413
8414
8415
8416
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8418 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8419
8420   runpath_var=
8421   allow_undefined_flag=
8422   always_export_symbols=no
8423   archive_cmds=
8424   archive_expsym_cmds=
8425   compiler_needs_object=no
8426   enable_shared_with_static_runtimes=no
8427   export_dynamic_flag_spec=
8428   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8429   hardcode_automatic=no
8430   hardcode_direct=no
8431   hardcode_direct_absolute=no
8432   hardcode_libdir_flag_spec=
8433   hardcode_libdir_separator=
8434   hardcode_minus_L=no
8435   hardcode_shlibpath_var=unsupported
8436   inherit_rpath=no
8437   link_all_deplibs=unknown
8438   module_cmds=
8439   module_expsym_cmds=
8440   old_archive_from_new_cmds=
8441   old_archive_from_expsyms_cmds=
8442   thread_safe_flag_spec=
8443   whole_archive_flag_spec=
8444   # include_expsyms should be a list of space-separated symbols to be *always*
8445   # included in the symbol list
8446   include_expsyms=
8447   # exclude_expsyms can be an extended regexp of symbols to exclude
8448   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8449   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8450   # as well as any symbol that contains `d'.
8451   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8452   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8453   # platforms (ab)use it in PIC code, but their linkers get confused if
8454   # the symbol is explicitly referenced.  Since portable code cannot
8455   # rely on this symbol name, it's probably fine to never include it in
8456   # preloaded symbol tables.
8457   # Exclude shared library initialization/finalization symbols.
8458   extract_expsyms_cmds=
8459
8460   case $host_os in
8461   cygwin* | mingw* | pw32* | cegcc*)
8462     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8463     # When not using gcc, we currently assume that we are using
8464     # Microsoft Visual C++.
8465     if test "$GCC" != yes; then
8466       with_gnu_ld=no
8467     fi
8468     ;;
8469   interix*)
8470     # we just hope/assume this is gcc and not c89 (= MSVC++)
8471     with_gnu_ld=yes
8472     ;;
8473   openbsd*)
8474     with_gnu_ld=no
8475     ;;
8476   esac
8477
8478   ld_shlibs=yes
8479
8480   # On some targets, GNU ld is compatible enough with the native linker
8481   # that we're better off using the native interface for both.
8482   lt_use_gnu_ld_interface=no
8483   if test "$with_gnu_ld" = yes; then
8484     case $host_os in
8485       aix*)
8486         # The AIX port of GNU ld has always aspired to compatibility
8487         # with the native linker.  However, as the warning in the GNU ld
8488         # block says, versions before 2.19.5* couldn't really create working
8489         # shared libraries, regardless of the interface used.
8490         case `$LD -v 2>&1` in
8491           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8492           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8493           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8494           *)
8495             lt_use_gnu_ld_interface=yes
8496             ;;
8497         esac
8498         ;;
8499       *)
8500         lt_use_gnu_ld_interface=yes
8501         ;;
8502     esac
8503   fi
8504
8505   if test "$lt_use_gnu_ld_interface" = yes; then
8506     # If archive_cmds runs LD, not CC, wlarc should be empty
8507     wlarc='${wl}'
8508
8509     # Set some defaults for GNU ld with shared library support. These
8510     # are reset later if shared libraries are not supported. Putting them
8511     # here allows them to be overridden if necessary.
8512     runpath_var=LD_RUN_PATH
8513     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8514     export_dynamic_flag_spec='${wl}--export-dynamic'
8515     # ancient GNU ld didn't support --whole-archive et. al.
8516     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8517       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8518     else
8519       whole_archive_flag_spec=
8520     fi
8521     supports_anon_versioning=no
8522     case `$LD -v 2>&1` in
8523       *GNU\ gold*) supports_anon_versioning=yes ;;
8524       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8525       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8526       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8527       *\ 2.11.*) ;; # other 2.11 versions
8528       *) supports_anon_versioning=yes ;;
8529     esac
8530
8531     # See if GNU ld supports shared libraries.
8532     case $host_os in
8533     aix[3-9]*)
8534       # On AIX/PPC, the GNU linker is very broken
8535       if test "$host_cpu" != ia64; then
8536         ld_shlibs=no
8537         cat <<_LT_EOF 1>&2
8538
8539 *** Warning: the GNU linker, at least up to release 2.19, is reported
8540 *** to be unable to reliably create shared libraries on AIX.
8541 *** Therefore, libtool is disabling shared libraries support.  If you
8542 *** really care for shared libraries, you may want to install binutils
8543 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8544 *** You will then need to restart the configuration process.
8545
8546 _LT_EOF
8547       fi
8548       ;;
8549
8550     amigaos*)
8551       case $host_cpu in
8552       powerpc)
8553             # see comment about AmigaOS4 .so support
8554             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8555             archive_expsym_cmds=''
8556         ;;
8557       m68k)
8558             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)'
8559             hardcode_libdir_flag_spec='-L$libdir'
8560             hardcode_minus_L=yes
8561         ;;
8562       esac
8563       ;;
8564
8565     beos*)
8566       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8567         allow_undefined_flag=unsupported
8568         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8569         # support --undefined.  This deserves some investigation.  FIXME
8570         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8571       else
8572         ld_shlibs=no
8573       fi
8574       ;;
8575
8576     cygwin* | mingw* | pw32* | cegcc*)
8577       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8578       # as there is no search path for DLLs.
8579       hardcode_libdir_flag_spec='-L$libdir'
8580       export_dynamic_flag_spec='${wl}--export-all-symbols'
8581       allow_undefined_flag=unsupported
8582       always_export_symbols=no
8583       enable_shared_with_static_runtimes=yes
8584       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'
8585       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8586
8587       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8588         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8589         # If the export-symbols file already is a .def file (1st line
8590         # is EXPORTS), use it as is; otherwise, prepend...
8591         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8592           cp $export_symbols $output_objdir/$soname.def;
8593         else
8594           echo EXPORTS > $output_objdir/$soname.def;
8595           cat $export_symbols >> $output_objdir/$soname.def;
8596         fi~
8597         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8598       else
8599         ld_shlibs=no
8600       fi
8601       ;;
8602
8603     haiku*)
8604       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8605       link_all_deplibs=yes
8606       ;;
8607
8608     interix[3-9]*)
8609       hardcode_direct=no
8610       hardcode_shlibpath_var=no
8611       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8612       export_dynamic_flag_spec='${wl}-E'
8613       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8614       # Instead, shared libraries are loaded at an image base (0x10000000 by
8615       # default) and relocated if they conflict, which is a slow very memory
8616       # consuming and fragmenting process.  To avoid this, we pick a random,
8617       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8618       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8619       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8620       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'
8621       ;;
8622
8623     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8624       tmp_diet=no
8625       if test "$host_os" = linux-dietlibc; then
8626         case $cc_basename in
8627           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8628         esac
8629       fi
8630       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8631          && test "$tmp_diet" = no
8632       then
8633         tmp_addflag=' $pic_flag'
8634         tmp_sharedflag='-shared'
8635         case $cc_basename,$host_cpu in
8636         pgcc*)                          # Portland Group C compiler
8637           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'
8638           tmp_addflag=' $pic_flag'
8639           ;;
8640         pgf77* | pgf90* | pgf95* | pgfortran*)
8641                                         # Portland Group f77 and f90 compilers
8642           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'
8643           tmp_addflag=' $pic_flag -Mnomain' ;;
8644         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8645           tmp_addflag=' -i_dynamic' ;;
8646         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8647           tmp_addflag=' -i_dynamic -nofor_main' ;;
8648         ifc* | ifort*)                  # Intel Fortran compiler
8649           tmp_addflag=' -nofor_main' ;;
8650         lf95*)                          # Lahey Fortran 8.1
8651           whole_archive_flag_spec=
8652           tmp_sharedflag='--shared' ;;
8653         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8654           tmp_sharedflag='-qmkshrobj'
8655           tmp_addflag= ;;
8656         nvcc*)  # Cuda Compiler Driver 2.2
8657           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'
8658           compiler_needs_object=yes
8659           ;;
8660         esac
8661         case `$CC -V 2>&1 | sed 5q` in
8662         *Sun\ C*)                       # Sun C 5.9
8663           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'
8664           compiler_needs_object=yes
8665           tmp_sharedflag='-G' ;;
8666         *Sun\ F*)                       # Sun Fortran 8.3
8667           tmp_sharedflag='-G' ;;
8668         esac
8669         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670
8671         if test "x$supports_anon_versioning" = xyes; then
8672           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8673             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8674             echo "local: *; };" >> $output_objdir/$libname.ver~
8675             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8676         fi
8677
8678         case $cc_basename in
8679         xlf* | bgf* | bgxlf* | mpixlf*)
8680           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8681           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8682           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8683           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8684           if test "x$supports_anon_versioning" = xyes; then
8685             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8686               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8687               echo "local: *; };" >> $output_objdir/$libname.ver~
8688               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8689           fi
8690           ;;
8691         esac
8692       else
8693         ld_shlibs=no
8694       fi
8695       ;;
8696
8697     netbsd*)
8698       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8699         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8700         wlarc=
8701       else
8702         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8704       fi
8705       ;;
8706
8707     solaris*)
8708       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8709         ld_shlibs=no
8710         cat <<_LT_EOF 1>&2
8711
8712 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8713 *** create shared libraries on Solaris systems.  Therefore, libtool
8714 *** is disabling shared libraries support.  We urge you to upgrade GNU
8715 *** binutils to release 2.9.1 or newer.  Another option is to modify
8716 *** your PATH or compiler configuration so that the native linker is
8717 *** used, and then restart.
8718
8719 _LT_EOF
8720       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8721         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723       else
8724         ld_shlibs=no
8725       fi
8726       ;;
8727
8728     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8729       case `$LD -v 2>&1` in
8730         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8731         ld_shlibs=no
8732         cat <<_LT_EOF 1>&2
8733
8734 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8735 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8736 *** is disabling shared libraries support.  We urge you to upgrade GNU
8737 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8738 *** your PATH or compiler configuration so that the native linker is
8739 *** used, and then restart.
8740
8741 _LT_EOF
8742         ;;
8743         *)
8744           # For security reasons, it is highly recommended that you always
8745           # use absolute paths for naming shared libraries, and exclude the
8746           # DT_RUNPATH tag from executables and libraries.  But doing so
8747           # requires that you compile everything twice, which is a pain.
8748           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8749             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8752           else
8753             ld_shlibs=no
8754           fi
8755         ;;
8756       esac
8757       ;;
8758
8759     sunos4*)
8760       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8761       wlarc=
8762       hardcode_direct=yes
8763       hardcode_shlibpath_var=no
8764       ;;
8765
8766     *)
8767       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8768         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8769         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8770       else
8771         ld_shlibs=no
8772       fi
8773       ;;
8774     esac
8775
8776     if test "$ld_shlibs" = no; then
8777       runpath_var=
8778       hardcode_libdir_flag_spec=
8779       export_dynamic_flag_spec=
8780       whole_archive_flag_spec=
8781     fi
8782   else
8783     # PORTME fill in a description of your system's linker (not GNU ld)
8784     case $host_os in
8785     aix3*)
8786       allow_undefined_flag=unsupported
8787       always_export_symbols=yes
8788       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'
8789       # Note: this linker hardcodes the directories in LIBPATH if there
8790       # are no directories specified by -L.
8791       hardcode_minus_L=yes
8792       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8793         # Neither direct hardcoding nor static linking is supported with a
8794         # broken collect2.
8795         hardcode_direct=unsupported
8796       fi
8797       ;;
8798
8799     aix[4-9]*)
8800       if test "$host_cpu" = ia64; then
8801         # On IA64, the linker does run time linking by default, so we don't
8802         # have to do anything special.
8803         aix_use_runtimelinking=no
8804         exp_sym_flag='-Bexport'
8805         no_entry_flag=""
8806       else
8807         # If we're using GNU nm, then we don't want the "-C" option.
8808         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8809         # Also, AIX nm treats weak defined symbols like other global
8810         # defined symbols, whereas GNU nm marks them as "W".
8811         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8812           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'
8813         else
8814           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'
8815         fi
8816         aix_use_runtimelinking=no
8817
8818         # Test if we are trying to use run time linking or normal
8819         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8820         # need to do runtime linking.
8821         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8822           for ld_flag in $LDFLAGS; do
8823           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8824             aix_use_runtimelinking=yes
8825             break
8826           fi
8827           done
8828           ;;
8829         esac
8830
8831         exp_sym_flag='-bexport'
8832         no_entry_flag='-bnoentry'
8833       fi
8834
8835       # When large executables or shared objects are built, AIX ld can
8836       # have problems creating the table of contents.  If linking a library
8837       # or program results in "error TOC overflow" add -mminimal-toc to
8838       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8839       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8840
8841       archive_cmds=''
8842       hardcode_direct=yes
8843       hardcode_direct_absolute=yes
8844       hardcode_libdir_separator=':'
8845       link_all_deplibs=yes
8846       file_list_spec='${wl}-f,'
8847
8848       if test "$GCC" = yes; then
8849         case $host_os in aix4.[012]|aix4.[012].*)
8850         # We only want to do this on AIX 4.2 and lower, the check
8851         # below for broken collect2 doesn't work under 4.3+
8852           collect2name=`${CC} -print-prog-name=collect2`
8853           if test -f "$collect2name" &&
8854            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8855           then
8856           # We have reworked collect2
8857           :
8858           else
8859           # We have old collect2
8860           hardcode_direct=unsupported
8861           # It fails to find uninstalled libraries when the uninstalled
8862           # path is not listed in the libpath.  Setting hardcode_minus_L
8863           # to unsupported forces relinking
8864           hardcode_minus_L=yes
8865           hardcode_libdir_flag_spec='-L$libdir'
8866           hardcode_libdir_separator=
8867           fi
8868           ;;
8869         esac
8870         shared_flag='-shared'
8871         if test "$aix_use_runtimelinking" = yes; then
8872           shared_flag="$shared_flag "'${wl}-G'
8873         fi
8874       else
8875         # not using gcc
8876         if test "$host_cpu" = ia64; then
8877         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8878         # chokes on -Wl,-G. The following line is correct:
8879           shared_flag='-G'
8880         else
8881           if test "$aix_use_runtimelinking" = yes; then
8882             shared_flag='${wl}-G'
8883           else
8884             shared_flag='${wl}-bM:SRE'
8885           fi
8886         fi
8887       fi
8888
8889       export_dynamic_flag_spec='${wl}-bexpall'
8890       # It seems that -bexpall does not export symbols beginning with
8891       # underscore (_), so it is better to generate a list of symbols to export.
8892       always_export_symbols=yes
8893       if test "$aix_use_runtimelinking" = yes; then
8894         # Warning - without using the other runtime loading flags (-brtl),
8895         # -berok will link without error, but may produce a broken library.
8896         allow_undefined_flag='-berok'
8897         # Determine the default libpath from the value encoded in an
8898         # empty executable.
8899         if test "${lt_cv_aix_libpath+set}" = set; then
8900   aix_libpath=$lt_cv_aix_libpath
8901 else
8902   if ${lt_cv_aix_libpath_+:} false; then :
8903   $as_echo_n "(cached) " >&6
8904 else
8905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h.  */
8907
8908 int
8909 main ()
8910 {
8911
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
8916 if ac_fn_c_try_link "$LINENO"; then :
8917
8918   lt_aix_libpath_sed='
8919       /Import File Strings/,/^$/ {
8920           /^0/ {
8921               s/^0  *\([^ ]*\) *$/\1/
8922               p
8923           }
8924       }'
8925   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8926   # Check for a 64-bit object if we didn't find anything.
8927   if test -z "$lt_cv_aix_libpath_"; then
8928     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8929   fi
8930 fi
8931 rm -f core conftest.err conftest.$ac_objext \
8932     conftest$ac_exeext conftest.$ac_ext
8933   if test -z "$lt_cv_aix_libpath_"; then
8934     lt_cv_aix_libpath_="/usr/lib:/lib"
8935   fi
8936
8937 fi
8938
8939   aix_libpath=$lt_cv_aix_libpath_
8940 fi
8941
8942         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8943         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"
8944       else
8945         if test "$host_cpu" = ia64; then
8946           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8947           allow_undefined_flag="-z nodefs"
8948           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"
8949         else
8950          # Determine the default libpath from the value encoded in an
8951          # empty executable.
8952          if test "${lt_cv_aix_libpath+set}" = set; then
8953   aix_libpath=$lt_cv_aix_libpath
8954 else
8955   if ${lt_cv_aix_libpath_+:} false; then :
8956   $as_echo_n "(cached) " >&6
8957 else
8958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h.  */
8960
8961 int
8962 main ()
8963 {
8964
8965   ;
8966   return 0;
8967 }
8968 _ACEOF
8969 if ac_fn_c_try_link "$LINENO"; then :
8970
8971   lt_aix_libpath_sed='
8972       /Import File Strings/,/^$/ {
8973           /^0/ {
8974               s/^0  *\([^ ]*\) *$/\1/
8975               p
8976           }
8977       }'
8978   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8979   # Check for a 64-bit object if we didn't find anything.
8980   if test -z "$lt_cv_aix_libpath_"; then
8981     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8982   fi
8983 fi
8984 rm -f core conftest.err conftest.$ac_objext \
8985     conftest$ac_exeext conftest.$ac_ext
8986   if test -z "$lt_cv_aix_libpath_"; then
8987     lt_cv_aix_libpath_="/usr/lib:/lib"
8988   fi
8989
8990 fi
8991
8992   aix_libpath=$lt_cv_aix_libpath_
8993 fi
8994
8995          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8996           # Warning - without using the other run time loading flags,
8997           # -berok will link without error, but may produce a broken library.
8998           no_undefined_flag=' ${wl}-bernotok'
8999           allow_undefined_flag=' ${wl}-berok'
9000           if test "$with_gnu_ld" = yes; then
9001             # We only use this code for GNU lds that support --whole-archive.
9002             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9003           else
9004             # Exported symbols can be pulled into shared objects from archives
9005             whole_archive_flag_spec='$convenience'
9006           fi
9007           archive_cmds_need_lc=yes
9008           # This is similar to how AIX traditionally builds its shared libraries.
9009           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'
9010         fi
9011       fi
9012       ;;
9013
9014     amigaos*)
9015       case $host_cpu in
9016       powerpc)
9017             # see comment about AmigaOS4 .so support
9018             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019             archive_expsym_cmds=''
9020         ;;
9021       m68k)
9022             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)'
9023             hardcode_libdir_flag_spec='-L$libdir'
9024             hardcode_minus_L=yes
9025         ;;
9026       esac
9027       ;;
9028
9029     bsdi[45]*)
9030       export_dynamic_flag_spec=-rdynamic
9031       ;;
9032
9033     cygwin* | mingw* | pw32* | cegcc*)
9034       # When not using gcc, we currently assume that we are using
9035       # Microsoft Visual C++.
9036       # hardcode_libdir_flag_spec is actually meaningless, as there is
9037       # no search path for DLLs.
9038       case $cc_basename in
9039       cl*)
9040         # Native MSVC
9041         hardcode_libdir_flag_spec=' '
9042         allow_undefined_flag=unsupported
9043         always_export_symbols=yes
9044         file_list_spec='@'
9045         # Tell ltmain to make .lib files, not .a files.
9046         libext=lib
9047         # Tell ltmain to make .dll files, not .so files.
9048         shrext_cmds=".dll"
9049         # FIXME: Setting linknames here is a bad hack.
9050         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9051         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9052             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9053           else
9054             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9055           fi~
9056           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9057           linknames='
9058         # The linker will not automatically build a static lib if we build a DLL.
9059         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9060         enable_shared_with_static_runtimes=yes
9061         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9062         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9063         # Don't use ranlib
9064         old_postinstall_cmds='chmod 644 $oldlib'
9065         postlink_cmds='lt_outputfile="@OUTPUT@"~
9066           lt_tool_outputfile="@TOOL_OUTPUT@"~
9067           case $lt_outputfile in
9068             *.exe|*.EXE) ;;
9069             *)
9070               lt_outputfile="$lt_outputfile.exe"
9071               lt_tool_outputfile="$lt_tool_outputfile.exe"
9072               ;;
9073           esac~
9074           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9075             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9076             $RM "$lt_outputfile.manifest";
9077           fi'
9078         ;;
9079       *)
9080         # Assume MSVC wrapper
9081         hardcode_libdir_flag_spec=' '
9082         allow_undefined_flag=unsupported
9083         # Tell ltmain to make .lib files, not .a files.
9084         libext=lib
9085         # Tell ltmain to make .dll files, not .so files.
9086         shrext_cmds=".dll"
9087         # FIXME: Setting linknames here is a bad hack.
9088         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9089         # The linker will automatically build a .lib file if we build a DLL.
9090         old_archive_from_new_cmds='true'
9091         # FIXME: Should let the user specify the lib program.
9092         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9093         enable_shared_with_static_runtimes=yes
9094         ;;
9095       esac
9096       ;;
9097
9098     darwin* | rhapsody*)
9099
9100
9101   archive_cmds_need_lc=no
9102   hardcode_direct=no
9103   hardcode_automatic=yes
9104   hardcode_shlibpath_var=unsupported
9105   if test "$lt_cv_ld_force_load" = "yes"; then
9106     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\"`'
9107
9108   else
9109     whole_archive_flag_spec=''
9110   fi
9111   link_all_deplibs=yes
9112   allow_undefined_flag="$_lt_dar_allow_undefined"
9113   case $cc_basename in
9114      ifort*) _lt_dar_can_shared=yes ;;
9115      *) _lt_dar_can_shared=$GCC ;;
9116   esac
9117   if test "$_lt_dar_can_shared" = "yes"; then
9118     output_verbose_link_cmd=func_echo_all
9119     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9120     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9121     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}"
9122     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}"
9123
9124   else
9125   ld_shlibs=no
9126   fi
9127
9128       ;;
9129
9130     dgux*)
9131       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9132       hardcode_libdir_flag_spec='-L$libdir'
9133       hardcode_shlibpath_var=no
9134       ;;
9135
9136     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9137     # support.  Future versions do this automatically, but an explicit c++rt0.o
9138     # does not break anything, and helps significantly (at the cost of a little
9139     # extra space).
9140     freebsd2.2*)
9141       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9142       hardcode_libdir_flag_spec='-R$libdir'
9143       hardcode_direct=yes
9144       hardcode_shlibpath_var=no
9145       ;;
9146
9147     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9148     freebsd2.*)
9149       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9150       hardcode_direct=yes
9151       hardcode_minus_L=yes
9152       hardcode_shlibpath_var=no
9153       ;;
9154
9155     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9156     freebsd* | dragonfly*)
9157       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9158       hardcode_libdir_flag_spec='-R$libdir'
9159       hardcode_direct=yes
9160       hardcode_shlibpath_var=no
9161       ;;
9162
9163     hpux9*)
9164       if test "$GCC" = yes; then
9165         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'
9166       else
9167         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'
9168       fi
9169       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9170       hardcode_libdir_separator=:
9171       hardcode_direct=yes
9172
9173       # hardcode_minus_L: Not really in the search PATH,
9174       # but as the default location of the library.
9175       hardcode_minus_L=yes
9176       export_dynamic_flag_spec='${wl}-E'
9177       ;;
9178
9179     hpux10*)
9180       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9181         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9182       else
9183         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9184       fi
9185       if test "$with_gnu_ld" = no; then
9186         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9187         hardcode_libdir_separator=:
9188         hardcode_direct=yes
9189         hardcode_direct_absolute=yes
9190         export_dynamic_flag_spec='${wl}-E'
9191         # hardcode_minus_L: Not really in the search PATH,
9192         # but as the default location of the library.
9193         hardcode_minus_L=yes
9194       fi
9195       ;;
9196
9197     hpux11*)
9198       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9199         case $host_cpu in
9200         hppa*64*)
9201           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9202           ;;
9203         ia64*)
9204           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9205           ;;
9206         *)
9207           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9208           ;;
9209         esac
9210       else
9211         case $host_cpu in
9212         hppa*64*)
9213           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9214           ;;
9215         ia64*)
9216           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9217           ;;
9218         *)
9219
9220           # Older versions of the 11.00 compiler do not understand -b yet
9221           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9222           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9223 $as_echo_n "checking if $CC understands -b... " >&6; }
9224 if ${lt_cv_prog_compiler__b+:} false; then :
9225   $as_echo_n "(cached) " >&6
9226 else
9227   lt_cv_prog_compiler__b=no
9228    save_LDFLAGS="$LDFLAGS"
9229    LDFLAGS="$LDFLAGS -b"
9230    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9231    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9232      # The linker can only warn and ignore the option if not recognized
9233      # So say no if there are warnings
9234      if test -s conftest.err; then
9235        # Append any errors to the config.log.
9236        cat conftest.err 1>&5
9237        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9238        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9239        if diff conftest.exp conftest.er2 >/dev/null; then
9240          lt_cv_prog_compiler__b=yes
9241        fi
9242      else
9243        lt_cv_prog_compiler__b=yes
9244      fi
9245    fi
9246    $RM -r conftest*
9247    LDFLAGS="$save_LDFLAGS"
9248
9249 fi
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9251 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9252
9253 if test x"$lt_cv_prog_compiler__b" = xyes; then
9254     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9255 else
9256     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9257 fi
9258
9259           ;;
9260         esac
9261       fi
9262       if test "$with_gnu_ld" = no; then
9263         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9264         hardcode_libdir_separator=:
9265
9266         case $host_cpu in
9267         hppa*64*|ia64*)
9268           hardcode_direct=no
9269           hardcode_shlibpath_var=no
9270           ;;
9271         *)
9272           hardcode_direct=yes
9273           hardcode_direct_absolute=yes
9274           export_dynamic_flag_spec='${wl}-E'
9275
9276           # hardcode_minus_L: Not really in the search PATH,
9277           # but as the default location of the library.
9278           hardcode_minus_L=yes
9279           ;;
9280         esac
9281       fi
9282       ;;
9283
9284     irix5* | irix6* | nonstopux*)
9285       if test "$GCC" = yes; then
9286         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'
9287         # Try to use the -exported_symbol ld option, if it does not
9288         # work, assume that -exports_file does not work either and
9289         # implicitly export all symbols.
9290         # This should be the same for all languages, so no per-tag cache variable.
9291         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9292 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9293 if ${lt_cv_irix_exported_symbol+:} false; then :
9294   $as_echo_n "(cached) " >&6
9295 else
9296   save_LDFLAGS="$LDFLAGS"
9297            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9298            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h.  */
9300 int foo (void) { return 0; }
9301 _ACEOF
9302 if ac_fn_c_try_link "$LINENO"; then :
9303   lt_cv_irix_exported_symbol=yes
9304 else
9305   lt_cv_irix_exported_symbol=no
9306 fi
9307 rm -f core conftest.err conftest.$ac_objext \
9308     conftest$ac_exeext conftest.$ac_ext
9309            LDFLAGS="$save_LDFLAGS"
9310 fi
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9312 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9313         if test "$lt_cv_irix_exported_symbol" = yes; then
9314           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'
9315         fi
9316       else
9317         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'
9318         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'
9319       fi
9320       archive_cmds_need_lc='no'
9321       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9322       hardcode_libdir_separator=:
9323       inherit_rpath=yes
9324       link_all_deplibs=yes
9325       ;;
9326
9327     netbsd*)
9328       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9329         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9330       else
9331         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9332       fi
9333       hardcode_libdir_flag_spec='-R$libdir'
9334       hardcode_direct=yes
9335       hardcode_shlibpath_var=no
9336       ;;
9337
9338     newsos6)
9339       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340       hardcode_direct=yes
9341       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9342       hardcode_libdir_separator=:
9343       hardcode_shlibpath_var=no
9344       ;;
9345
9346     *nto* | *qnx*)
9347       ;;
9348
9349     openbsd*)
9350       if test -f /usr/libexec/ld.so; then
9351         hardcode_direct=yes
9352         hardcode_shlibpath_var=no
9353         hardcode_direct_absolute=yes
9354         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9355           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9356           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9357           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9358           export_dynamic_flag_spec='${wl}-E'
9359         else
9360           case $host_os in
9361            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9362              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9363              hardcode_libdir_flag_spec='-R$libdir'
9364              ;;
9365            *)
9366              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9367              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9368              ;;
9369           esac
9370         fi
9371       else
9372         ld_shlibs=no
9373       fi
9374       ;;
9375
9376     os2*)
9377       hardcode_libdir_flag_spec='-L$libdir'
9378       hardcode_minus_L=yes
9379       allow_undefined_flag=unsupported
9380       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'
9381       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9382       ;;
9383
9384     osf3*)
9385       if test "$GCC" = yes; then
9386         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9387         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'
9388       else
9389         allow_undefined_flag=' -expect_unresolved \*'
9390         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'
9391       fi
9392       archive_cmds_need_lc='no'
9393       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9394       hardcode_libdir_separator=:
9395       ;;
9396
9397     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9398       if test "$GCC" = yes; then
9399         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9400         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'
9401         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9402       else
9403         allow_undefined_flag=' -expect_unresolved \*'
9404         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'
9405         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~
9406         $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'
9407
9408         # Both c and cxx compiler support -rpath directly
9409         hardcode_libdir_flag_spec='-rpath $libdir'
9410       fi
9411       archive_cmds_need_lc='no'
9412       hardcode_libdir_separator=:
9413       ;;
9414
9415     solaris*)
9416       no_undefined_flag=' -z defs'
9417       if test "$GCC" = yes; then
9418         wlarc='${wl}'
9419         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9420         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9421           $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'
9422       else
9423         case `$CC -V 2>&1` in
9424         *"Compilers 5.0"*)
9425           wlarc=''
9426           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9428           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9429           ;;
9430         *)
9431           wlarc='${wl}'
9432           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9433           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9434           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9435           ;;
9436         esac
9437       fi
9438       hardcode_libdir_flag_spec='-R$libdir'
9439       hardcode_shlibpath_var=no
9440       case $host_os in
9441       solaris2.[0-5] | solaris2.[0-5].*) ;;
9442       *)
9443         # The compiler driver will combine and reorder linker options,
9444         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9445         # but is careful enough not to reorder.
9446         # Supported since Solaris 2.6 (maybe 2.5.1?)
9447         if test "$GCC" = yes; then
9448           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9449         else
9450           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9451         fi
9452         ;;
9453       esac
9454       link_all_deplibs=yes
9455       ;;
9456
9457     sunos4*)
9458       if test "x$host_vendor" = xsequent; then
9459         # Use $CC to link under sequent, because it throws in some extra .o
9460         # files that make .init and .fini sections work.
9461         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9462       else
9463         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9464       fi
9465       hardcode_libdir_flag_spec='-L$libdir'
9466       hardcode_direct=yes
9467       hardcode_minus_L=yes
9468       hardcode_shlibpath_var=no
9469       ;;
9470
9471     sysv4)
9472       case $host_vendor in
9473         sni)
9474           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9475           hardcode_direct=yes # is this really true???
9476         ;;
9477         siemens)
9478           ## LD is ld it makes a PLAMLIB
9479           ## CC just makes a GrossModule.
9480           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9481           reload_cmds='$CC -r -o $output$reload_objs'
9482           hardcode_direct=no
9483         ;;
9484         motorola)
9485           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9486           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9487         ;;
9488       esac
9489       runpath_var='LD_RUN_PATH'
9490       hardcode_shlibpath_var=no
9491       ;;
9492
9493     sysv4.3*)
9494       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9495       hardcode_shlibpath_var=no
9496       export_dynamic_flag_spec='-Bexport'
9497       ;;
9498
9499     sysv4*MP*)
9500       if test -d /usr/nec; then
9501         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9502         hardcode_shlibpath_var=no
9503         runpath_var=LD_RUN_PATH
9504         hardcode_runpath_var=yes
9505         ld_shlibs=yes
9506       fi
9507       ;;
9508
9509     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9510       no_undefined_flag='${wl}-z,text'
9511       archive_cmds_need_lc=no
9512       hardcode_shlibpath_var=no
9513       runpath_var='LD_RUN_PATH'
9514
9515       if test "$GCC" = yes; then
9516         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9517         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9518       else
9519         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9520         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9521       fi
9522       ;;
9523
9524     sysv5* | sco3.2v5* | sco5v6*)
9525       # Note: We can NOT use -z defs as we might desire, because we do not
9526       # link with -lc, and that would cause any symbols used from libc to
9527       # always be unresolved, which means just about no library would
9528       # ever link correctly.  If we're not using GNU ld we use -z text
9529       # though, which does catch some bad symbols but isn't as heavy-handed
9530       # as -z defs.
9531       no_undefined_flag='${wl}-z,text'
9532       allow_undefined_flag='${wl}-z,nodefs'
9533       archive_cmds_need_lc=no
9534       hardcode_shlibpath_var=no
9535       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9536       hardcode_libdir_separator=':'
9537       link_all_deplibs=yes
9538       export_dynamic_flag_spec='${wl}-Bexport'
9539       runpath_var='LD_RUN_PATH'
9540
9541       if test "$GCC" = yes; then
9542         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9543         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9544       else
9545         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9546         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9547       fi
9548       ;;
9549
9550     uts4*)
9551       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9552       hardcode_libdir_flag_spec='-L$libdir'
9553       hardcode_shlibpath_var=no
9554       ;;
9555
9556     *)
9557       ld_shlibs=no
9558       ;;
9559     esac
9560
9561     if test x$host_vendor = xsni; then
9562       case $host in
9563       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9564         export_dynamic_flag_spec='${wl}-Blargedynsym'
9565         ;;
9566       esac
9567     fi
9568   fi
9569
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9571 $as_echo "$ld_shlibs" >&6; }
9572 test "$ld_shlibs" = no && can_build_shared=no
9573
9574 with_gnu_ld=$with_gnu_ld
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590 #
9591 # Do we need to explicitly link libc?
9592 #
9593 case "x$archive_cmds_need_lc" in
9594 x|xyes)
9595   # Assume -lc should be added
9596   archive_cmds_need_lc=yes
9597
9598   if test "$enable_shared" = yes && test "$GCC" = yes; then
9599     case $archive_cmds in
9600     *'~'*)
9601       # FIXME: we may have to deal with multi-command sequences.
9602       ;;
9603     '$CC '*)
9604       # Test whether the compiler implicitly links with -lc since on some
9605       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9606       # to ld, don't add -lc before -lgcc.
9607       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9608 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9609 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9610   $as_echo_n "(cached) " >&6
9611 else
9612   $RM conftest*
9613         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9614
9615         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9616   (eval $ac_compile) 2>&5
9617   ac_status=$?
9618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9619   test $ac_status = 0; } 2>conftest.err; then
9620           soname=conftest
9621           lib=conftest
9622           libobjs=conftest.$ac_objext
9623           deplibs=
9624           wl=$lt_prog_compiler_wl
9625           pic_flag=$lt_prog_compiler_pic
9626           compiler_flags=-v
9627           linker_flags=-v
9628           verstring=
9629           output_objdir=.
9630           libname=conftest
9631           lt_save_allow_undefined_flag=$allow_undefined_flag
9632           allow_undefined_flag=
9633           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9634   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9635   ac_status=$?
9636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9637   test $ac_status = 0; }
9638           then
9639             lt_cv_archive_cmds_need_lc=no
9640           else
9641             lt_cv_archive_cmds_need_lc=yes
9642           fi
9643           allow_undefined_flag=$lt_save_allow_undefined_flag
9644         else
9645           cat conftest.err 1>&5
9646         fi
9647         $RM conftest*
9648
9649 fi
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9651 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9652       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9653       ;;
9654     esac
9655   fi
9656   ;;
9657 esac
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
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9811 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9812
9813 if test "$GCC" = yes; then
9814   case $host_os in
9815     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9816     *) lt_awk_arg="/^libraries:/" ;;
9817   esac
9818   case $host_os in
9819     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9820     *) lt_sed_strip_eq="s,=/,/,g" ;;
9821   esac
9822   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9823   case $lt_search_path_spec in
9824   *\;*)
9825     # if the path contains ";" then we assume it to be the separator
9826     # otherwise default to the standard path separator (i.e. ":") - it is
9827     # assumed that no part of a normal pathname contains ";" but that should
9828     # okay in the real world where ";" in dirpaths is itself problematic.
9829     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9830     ;;
9831   *)
9832     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9833     ;;
9834   esac
9835   # Ok, now we have the path, separated by spaces, we can step through it
9836   # and add multilib dir if necessary.
9837   lt_tmp_lt_search_path_spec=
9838   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9839   for lt_sys_path in $lt_search_path_spec; do
9840     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9841       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9842     else
9843       test -d "$lt_sys_path" && \
9844         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9845     fi
9846   done
9847   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9848 BEGIN {RS=" "; FS="/|\n";} {
9849   lt_foo="";
9850   lt_count=0;
9851   for (lt_i = NF; lt_i > 0; lt_i--) {
9852     if ($lt_i != "" && $lt_i != ".") {
9853       if ($lt_i == "..") {
9854         lt_count++;
9855       } else {
9856         if (lt_count == 0) {
9857           lt_foo="/" $lt_i lt_foo;
9858         } else {
9859           lt_count--;
9860         }
9861       }
9862     }
9863   }
9864   if (lt_foo != "") { lt_freq[lt_foo]++; }
9865   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9866 }'`
9867   # AWK program above erroneously prepends '/' to C:/dos/paths
9868   # for these hosts.
9869   case $host_os in
9870     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9871       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9872   esac
9873   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9874 else
9875   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9876 fi
9877 library_names_spec=
9878 libname_spec='lib$name'
9879 soname_spec=
9880 shrext_cmds=".so"
9881 postinstall_cmds=
9882 postuninstall_cmds=
9883 finish_cmds=
9884 finish_eval=
9885 shlibpath_var=
9886 shlibpath_overrides_runpath=unknown
9887 version_type=none
9888 dynamic_linker="$host_os ld.so"
9889 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9890 need_lib_prefix=unknown
9891 hardcode_into_libs=no
9892
9893 # when you set need_version to no, make sure it does not cause -set_version
9894 # flags to be left without arguments
9895 need_version=unknown
9896
9897 case $host_os in
9898 aix3*)
9899   version_type=linux # correct to gnu/linux during the next big refactor
9900   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9901   shlibpath_var=LIBPATH
9902
9903   # AIX 3 has no versioning support, so we append a major version to the name.
9904   soname_spec='${libname}${release}${shared_ext}$major'
9905   ;;
9906
9907 aix[4-9]*)
9908   version_type=linux # correct to gnu/linux during the next big refactor
9909   need_lib_prefix=no
9910   need_version=no
9911   hardcode_into_libs=yes
9912   if test "$host_cpu" = ia64; then
9913     # AIX 5 supports IA64
9914     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9915     shlibpath_var=LD_LIBRARY_PATH
9916   else
9917     # With GCC up to 2.95.x, collect2 would create an import file
9918     # for dependence libraries.  The import file would start with
9919     # the line `#! .'.  This would cause the generated library to
9920     # depend on `.', always an invalid library.  This was fixed in
9921     # development snapshots of GCC prior to 3.0.
9922     case $host_os in
9923       aix4 | aix4.[01] | aix4.[01].*)
9924       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9925            echo ' yes '
9926            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9927         :
9928       else
9929         can_build_shared=no
9930       fi
9931       ;;
9932     esac
9933     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9934     # soname into executable. Probably we can add versioning support to
9935     # collect2, so additional links can be useful in future.
9936     if test "$aix_use_runtimelinking" = yes; then
9937       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9938       # instead of lib<name>.a to let people know that these are not
9939       # typical AIX shared libraries.
9940       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941     else
9942       # We preserve .a as extension for shared libraries through AIX4.2
9943       # and later when we are not doing run time linking.
9944       library_names_spec='${libname}${release}.a $libname.a'
9945       soname_spec='${libname}${release}${shared_ext}$major'
9946     fi
9947     shlibpath_var=LIBPATH
9948   fi
9949   ;;
9950
9951 amigaos*)
9952   case $host_cpu in
9953   powerpc)
9954     # Since July 2007 AmigaOS4 officially supports .so libraries.
9955     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9956     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957     ;;
9958   m68k)
9959     library_names_spec='$libname.ixlibrary $libname.a'
9960     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9961     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'
9962     ;;
9963   esac
9964   ;;
9965
9966 beos*)
9967   library_names_spec='${libname}${shared_ext}'
9968   dynamic_linker="$host_os ld.so"
9969   shlibpath_var=LIBRARY_PATH
9970   ;;
9971
9972 bsdi[45]*)
9973   version_type=linux # correct to gnu/linux during the next big refactor
9974   need_version=no
9975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9976   soname_spec='${libname}${release}${shared_ext}$major'
9977   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9978   shlibpath_var=LD_LIBRARY_PATH
9979   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9980   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9981   # the default ld.so.conf also contains /usr/contrib/lib and
9982   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9983   # libtool to hard-code these into programs
9984   ;;
9985
9986 cygwin* | mingw* | pw32* | cegcc*)
9987   version_type=windows
9988   shrext_cmds=".dll"
9989   need_version=no
9990   need_lib_prefix=no
9991
9992   case $GCC,$cc_basename in
9993   yes,*)
9994     # gcc
9995     library_names_spec='$libname.dll.a'
9996     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9997     postinstall_cmds='base_file=`basename \${file}`~
9998       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9999       dldir=$destdir/`dirname \$dlpath`~
10000       test -d \$dldir || mkdir -p \$dldir~
10001       $install_prog $dir/$dlname \$dldir/$dlname~
10002       chmod a+x \$dldir/$dlname~
10003       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10004         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10005       fi'
10006     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10007       dlpath=$dir/\$dldll~
10008        $RM \$dlpath'
10009     shlibpath_overrides_runpath=yes
10010
10011     case $host_os in
10012     cygwin*)
10013       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10014       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10015
10016       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10017       ;;
10018     mingw* | cegcc*)
10019       # MinGW DLLs use traditional 'lib' prefix
10020       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10021       ;;
10022     pw32*)
10023       # pw32 DLLs use 'pw' prefix rather than 'lib'
10024       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10025       ;;
10026     esac
10027     dynamic_linker='Win32 ld.exe'
10028     ;;
10029
10030   *,cl*)
10031     # Native MSVC
10032     libname_spec='$name'
10033     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10034     library_names_spec='${libname}.dll.lib'
10035
10036     case $build_os in
10037     mingw*)
10038       sys_lib_search_path_spec=
10039       lt_save_ifs=$IFS
10040       IFS=';'
10041       for lt_path in $LIB
10042       do
10043         IFS=$lt_save_ifs
10044         # Let DOS variable expansion print the short 8.3 style file name.
10045         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10046         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10047       done
10048       IFS=$lt_save_ifs
10049       # Convert to MSYS style.
10050       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10051       ;;
10052     cygwin*)
10053       # Convert to unix form, then to dos form, then back to unix form
10054       # but this time dos style (no spaces!) so that the unix form looks
10055       # like /cygdrive/c/PROGRA~1:/cygdr...
10056       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10057       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10058       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10059       ;;
10060     *)
10061       sys_lib_search_path_spec="$LIB"
10062       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10063         # It is most probably a Windows format PATH.
10064         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10065       else
10066         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10067       fi
10068       # FIXME: find the short name or the path components, as spaces are
10069       # common. (e.g. "Program Files" -> "PROGRA~1")
10070       ;;
10071     esac
10072
10073     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10074     postinstall_cmds='base_file=`basename \${file}`~
10075       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10076       dldir=$destdir/`dirname \$dlpath`~
10077       test -d \$dldir || mkdir -p \$dldir~
10078       $install_prog $dir/$dlname \$dldir/$dlname'
10079     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10080       dlpath=$dir/\$dldll~
10081        $RM \$dlpath'
10082     shlibpath_overrides_runpath=yes
10083     dynamic_linker='Win32 link.exe'
10084     ;;
10085
10086   *)
10087     # Assume MSVC wrapper
10088     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10089     dynamic_linker='Win32 ld.exe'
10090     ;;
10091   esac
10092   # FIXME: first we should search . and the directory the executable is in
10093   shlibpath_var=PATH
10094   ;;
10095
10096 darwin* | rhapsody*)
10097   dynamic_linker="$host_os dyld"
10098   version_type=darwin
10099   need_lib_prefix=no
10100   need_version=no
10101   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10102   soname_spec='${libname}${release}${major}$shared_ext'
10103   shlibpath_overrides_runpath=yes
10104   shlibpath_var=DYLD_LIBRARY_PATH
10105   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10106
10107   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10108   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10109   ;;
10110
10111 dgux*)
10112   version_type=linux # correct to gnu/linux during the next big refactor
10113   need_lib_prefix=no
10114   need_version=no
10115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10116   soname_spec='${libname}${release}${shared_ext}$major'
10117   shlibpath_var=LD_LIBRARY_PATH
10118   ;;
10119
10120 freebsd* | dragonfly*)
10121   # DragonFly does not have aout.  When/if they implement a new
10122   # versioning mechanism, adjust this.
10123   if test -x /usr/bin/objformat; then
10124     objformat=`/usr/bin/objformat`
10125   else
10126     case $host_os in
10127     freebsd[23].*) objformat=aout ;;
10128     *) objformat=elf ;;
10129     esac
10130   fi
10131   version_type=freebsd-$objformat
10132   case $version_type in
10133     freebsd-elf*)
10134       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10135       need_version=no
10136       need_lib_prefix=no
10137       ;;
10138     freebsd-*)
10139       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10140       need_version=yes
10141       ;;
10142   esac
10143   shlibpath_var=LD_LIBRARY_PATH
10144   case $host_os in
10145   freebsd2.*)
10146     shlibpath_overrides_runpath=yes
10147     ;;
10148   freebsd3.[01]* | freebsdelf3.[01]*)
10149     shlibpath_overrides_runpath=yes
10150     hardcode_into_libs=yes
10151     ;;
10152   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10153   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10154     shlibpath_overrides_runpath=no
10155     hardcode_into_libs=yes
10156     ;;
10157   *) # from 4.6 on, and DragonFly
10158     shlibpath_overrides_runpath=yes
10159     hardcode_into_libs=yes
10160     ;;
10161   esac
10162   ;;
10163
10164 gnu*)
10165   version_type=linux # correct to gnu/linux during the next big refactor
10166   need_lib_prefix=no
10167   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
10171   shlibpath_overrides_runpath=no
10172   hardcode_into_libs=yes
10173   ;;
10174
10175 haiku*)
10176   version_type=linux # correct to gnu/linux during the next big refactor
10177   need_lib_prefix=no
10178   need_version=no
10179   dynamic_linker="$host_os runtime_loader"
10180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10181   soname_spec='${libname}${release}${shared_ext}$major'
10182   shlibpath_var=LIBRARY_PATH
10183   shlibpath_overrides_runpath=yes
10184   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10185   hardcode_into_libs=yes
10186   ;;
10187
10188 hpux9* | hpux10* | hpux11*)
10189   # Give a soname corresponding to the major version so that dld.sl refuses to
10190   # link against other versions.
10191   version_type=sunos
10192   need_lib_prefix=no
10193   need_version=no
10194   case $host_cpu in
10195   ia64*)
10196     shrext_cmds='.so'
10197     hardcode_into_libs=yes
10198     dynamic_linker="$host_os dld.so"
10199     shlibpath_var=LD_LIBRARY_PATH
10200     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10201     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202     soname_spec='${libname}${release}${shared_ext}$major'
10203     if test "X$HPUX_IA64_MODE" = X32; then
10204       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10205     else
10206       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10207     fi
10208     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10209     ;;
10210   hppa*64*)
10211     shrext_cmds='.sl'
10212     hardcode_into_libs=yes
10213     dynamic_linker="$host_os dld.sl"
10214     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10215     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217     soname_spec='${libname}${release}${shared_ext}$major'
10218     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10219     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10220     ;;
10221   *)
10222     shrext_cmds='.sl'
10223     dynamic_linker="$host_os dld.sl"
10224     shlibpath_var=SHLIB_PATH
10225     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10226     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227     soname_spec='${libname}${release}${shared_ext}$major'
10228     ;;
10229   esac
10230   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10231   postinstall_cmds='chmod 555 $lib'
10232   # or fails outright, so override atomically:
10233   install_override_mode=555
10234   ;;
10235
10236 interix[3-9]*)
10237   version_type=linux # correct to gnu/linux during the next big refactor
10238   need_lib_prefix=no
10239   need_version=no
10240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10241   soname_spec='${libname}${release}${shared_ext}$major'
10242   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10243   shlibpath_var=LD_LIBRARY_PATH
10244   shlibpath_overrides_runpath=no
10245   hardcode_into_libs=yes
10246   ;;
10247
10248 irix5* | irix6* | nonstopux*)
10249   case $host_os in
10250     nonstopux*) version_type=nonstopux ;;
10251     *)
10252         if test "$lt_cv_prog_gnu_ld" = yes; then
10253                 version_type=linux # correct to gnu/linux during the next big refactor
10254         else
10255                 version_type=irix
10256         fi ;;
10257   esac
10258   need_lib_prefix=no
10259   need_version=no
10260   soname_spec='${libname}${release}${shared_ext}$major'
10261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10262   case $host_os in
10263   irix5* | nonstopux*)
10264     libsuff= shlibsuff=
10265     ;;
10266   *)
10267     case $LD in # libtool.m4 will add one of these switches to LD
10268     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10269       libsuff= shlibsuff= libmagic=32-bit;;
10270     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10271       libsuff=32 shlibsuff=N32 libmagic=N32;;
10272     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10273       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10274     *) libsuff= shlibsuff= libmagic=never-match;;
10275     esac
10276     ;;
10277   esac
10278   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10279   shlibpath_overrides_runpath=no
10280   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10281   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10282   hardcode_into_libs=yes
10283   ;;
10284
10285 # No shared lib support for Linux oldld, aout, or coff.
10286 linux*oldld* | linux*aout* | linux*coff*)
10287   dynamic_linker=no
10288   ;;
10289
10290 # This must be glibc/ELF.
10291 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10292   version_type=linux # correct to gnu/linux during the next big refactor
10293   need_lib_prefix=no
10294   need_version=no
10295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296   soname_spec='${libname}${release}${shared_ext}$major'
10297   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10298   shlibpath_var=LD_LIBRARY_PATH
10299   shlibpath_overrides_runpath=no
10300
10301   # Some binutils ld are patched to set DT_RUNPATH
10302   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10303   $as_echo_n "(cached) " >&6
10304 else
10305   lt_cv_shlibpath_overrides_runpath=no
10306     save_LDFLAGS=$LDFLAGS
10307     save_libdir=$libdir
10308     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10309          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10310     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h.  */
10312
10313 int
10314 main ()
10315 {
10316
10317   ;
10318   return 0;
10319 }
10320 _ACEOF
10321 if ac_fn_c_try_link "$LINENO"; then :
10322   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10323   lt_cv_shlibpath_overrides_runpath=yes
10324 fi
10325 fi
10326 rm -f core conftest.err conftest.$ac_objext \
10327     conftest$ac_exeext conftest.$ac_ext
10328     LDFLAGS=$save_LDFLAGS
10329     libdir=$save_libdir
10330
10331 fi
10332
10333   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10334
10335   # This implies no fast_install, which is unacceptable.
10336   # Some rework will be needed to allow for fast_install
10337   # before this can be enabled.
10338   hardcode_into_libs=yes
10339
10340   # Add ABI-specific directories to the system library path.
10341   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10342
10343   # Append ld.so.conf contents to the search path
10344   if test -f /etc/ld.so.conf; then
10345     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' ' '`
10346     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10347
10348   fi
10349
10350   # We used to test for /lib/ld.so.1 and disable shared libraries on
10351   # powerpc, because MkLinux only supported shared libraries with the
10352   # GNU dynamic linker.  Since this was broken with cross compilers,
10353   # most powerpc-linux boxes support dynamic linking these days and
10354   # people can always --disable-shared, the test was removed, and we
10355   # assume the GNU/Linux dynamic linker is in use.
10356   dynamic_linker='GNU/Linux ld.so'
10357   ;;
10358
10359 netbsd*)
10360   version_type=sunos
10361   need_lib_prefix=no
10362   need_version=no
10363   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10364     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10365     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10366     dynamic_linker='NetBSD (a.out) ld.so'
10367   else
10368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10369     soname_spec='${libname}${release}${shared_ext}$major'
10370     dynamic_linker='NetBSD ld.elf_so'
10371   fi
10372   shlibpath_var=LD_LIBRARY_PATH
10373   shlibpath_overrides_runpath=yes
10374   hardcode_into_libs=yes
10375   ;;
10376
10377 newsos6)
10378   version_type=linux # correct to gnu/linux during the next big refactor
10379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380   shlibpath_var=LD_LIBRARY_PATH
10381   shlibpath_overrides_runpath=yes
10382   ;;
10383
10384 *nto* | *qnx*)
10385   version_type=qnx
10386   need_lib_prefix=no
10387   need_version=no
10388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10389   soname_spec='${libname}${release}${shared_ext}$major'
10390   shlibpath_var=LD_LIBRARY_PATH
10391   shlibpath_overrides_runpath=no
10392   hardcode_into_libs=yes
10393   dynamic_linker='ldqnx.so'
10394   ;;
10395
10396 openbsd*)
10397   version_type=sunos
10398   sys_lib_dlsearch_path_spec="/usr/lib"
10399   need_lib_prefix=no
10400   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10401   case $host_os in
10402     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10403     *)                          need_version=no  ;;
10404   esac
10405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10406   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10407   shlibpath_var=LD_LIBRARY_PATH
10408   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10409     case $host_os in
10410       openbsd2.[89] | openbsd2.[89].*)
10411         shlibpath_overrides_runpath=no
10412         ;;
10413       *)
10414         shlibpath_overrides_runpath=yes
10415         ;;
10416       esac
10417   else
10418     shlibpath_overrides_runpath=yes
10419   fi
10420   ;;
10421
10422 os2*)
10423   libname_spec='$name'
10424   shrext_cmds=".dll"
10425   need_lib_prefix=no
10426   library_names_spec='$libname${shared_ext} $libname.a'
10427   dynamic_linker='OS/2 ld.exe'
10428   shlibpath_var=LIBPATH
10429   ;;
10430
10431 osf3* | osf4* | osf5*)
10432   version_type=osf
10433   need_lib_prefix=no
10434   need_version=no
10435   soname_spec='${libname}${release}${shared_ext}$major'
10436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437   shlibpath_var=LD_LIBRARY_PATH
10438   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10439   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10440   ;;
10441
10442 rdos*)
10443   dynamic_linker=no
10444   ;;
10445
10446 solaris*)
10447   version_type=linux # correct to gnu/linux during the next big refactor
10448   need_lib_prefix=no
10449   need_version=no
10450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451   soname_spec='${libname}${release}${shared_ext}$major'
10452   shlibpath_var=LD_LIBRARY_PATH
10453   shlibpath_overrides_runpath=yes
10454   hardcode_into_libs=yes
10455   # ldd complains unless libraries are executable
10456   postinstall_cmds='chmod +x $lib'
10457   ;;
10458
10459 sunos4*)
10460   version_type=sunos
10461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10462   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10463   shlibpath_var=LD_LIBRARY_PATH
10464   shlibpath_overrides_runpath=yes
10465   if test "$with_gnu_ld" = yes; then
10466     need_lib_prefix=no
10467   fi
10468   need_version=yes
10469   ;;
10470
10471 sysv4 | sysv4.3*)
10472   version_type=linux # correct to gnu/linux during the next big refactor
10473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474   soname_spec='${libname}${release}${shared_ext}$major'
10475   shlibpath_var=LD_LIBRARY_PATH
10476   case $host_vendor in
10477     sni)
10478       shlibpath_overrides_runpath=no
10479       need_lib_prefix=no
10480       runpath_var=LD_RUN_PATH
10481       ;;
10482     siemens)
10483       need_lib_prefix=no
10484       ;;
10485     motorola)
10486       need_lib_prefix=no
10487       need_version=no
10488       shlibpath_overrides_runpath=no
10489       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10490       ;;
10491   esac
10492   ;;
10493
10494 sysv4*MP*)
10495   if test -d /usr/nec ;then
10496     version_type=linux # correct to gnu/linux during the next big refactor
10497     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10498     soname_spec='$libname${shared_ext}.$major'
10499     shlibpath_var=LD_LIBRARY_PATH
10500   fi
10501   ;;
10502
10503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10504   version_type=freebsd-elf
10505   need_lib_prefix=no
10506   need_version=no
10507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10508   soname_spec='${libname}${release}${shared_ext}$major'
10509   shlibpath_var=LD_LIBRARY_PATH
10510   shlibpath_overrides_runpath=yes
10511   hardcode_into_libs=yes
10512   if test "$with_gnu_ld" = yes; then
10513     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10514   else
10515     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10516     case $host_os in
10517       sco3.2v5*)
10518         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10519         ;;
10520     esac
10521   fi
10522   sys_lib_dlsearch_path_spec='/usr/lib'
10523   ;;
10524
10525 tpf*)
10526   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10527   version_type=linux # correct to gnu/linux during the next big refactor
10528   need_lib_prefix=no
10529   need_version=no
10530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531   shlibpath_var=LD_LIBRARY_PATH
10532   shlibpath_overrides_runpath=no
10533   hardcode_into_libs=yes
10534   ;;
10535
10536 uts4*)
10537   version_type=linux # correct to gnu/linux during the next big refactor
10538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10539   soname_spec='${libname}${release}${shared_ext}$major'
10540   shlibpath_var=LD_LIBRARY_PATH
10541   ;;
10542
10543 *)
10544   dynamic_linker=no
10545   ;;
10546 esac
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10548 $as_echo "$dynamic_linker" >&6; }
10549 test "$dynamic_linker" = no && can_build_shared=no
10550
10551 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10552 if test "$GCC" = yes; then
10553   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10554 fi
10555
10556 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10557   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10558 fi
10559 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10560   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10561 fi
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10655 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10656 hardcode_action=
10657 if test -n "$hardcode_libdir_flag_spec" ||
10658    test -n "$runpath_var" ||
10659    test "X$hardcode_automatic" = "Xyes" ; then
10660
10661   # We can hardcode non-existent directories.
10662   if test "$hardcode_direct" != no &&
10663      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10664      # have to relink, otherwise we might link with an installed library
10665      # when we should be linking with a yet-to-be-installed one
10666      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10667      test "$hardcode_minus_L" != no; then
10668     # Linking always hardcodes the temporary library directory.
10669     hardcode_action=relink
10670   else
10671     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10672     hardcode_action=immediate
10673   fi
10674 else
10675   # We cannot hardcode anything, or else we can only hardcode existing
10676   # directories.
10677   hardcode_action=unsupported
10678 fi
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10680 $as_echo "$hardcode_action" >&6; }
10681
10682 if test "$hardcode_action" = relink ||
10683    test "$inherit_rpath" = yes; then
10684   # Fast installation is not supported
10685   enable_fast_install=no
10686 elif test "$shlibpath_overrides_runpath" = yes ||
10687      test "$enable_shared" = no; then
10688   # Fast installation is not necessary
10689   enable_fast_install=needless
10690 fi
10691
10692
10693
10694
10695
10696
10697   if test "x$enable_dlopen" != xyes; then
10698   enable_dlopen=unknown
10699   enable_dlopen_self=unknown
10700   enable_dlopen_self_static=unknown
10701 else
10702   lt_cv_dlopen=no
10703   lt_cv_dlopen_libs=
10704
10705   case $host_os in
10706   beos*)
10707     lt_cv_dlopen="load_add_on"
10708     lt_cv_dlopen_libs=
10709     lt_cv_dlopen_self=yes
10710     ;;
10711
10712   mingw* | pw32* | cegcc*)
10713     lt_cv_dlopen="LoadLibrary"
10714     lt_cv_dlopen_libs=
10715     ;;
10716
10717   cygwin*)
10718     lt_cv_dlopen="dlopen"
10719     lt_cv_dlopen_libs=
10720     ;;
10721
10722   darwin*)
10723   # if libdl is installed we need to link against it
10724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10725 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10726 if ${ac_cv_lib_dl_dlopen+:} false; then :
10727   $as_echo_n "(cached) " >&6
10728 else
10729   ac_check_lib_save_LIBS=$LIBS
10730 LIBS="-ldl  $LIBS"
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h.  */
10733
10734 /* Override any GCC internal prototype to avoid an error.
10735    Use char because int might match the return type of a GCC
10736    builtin and then its argument prototype would still apply.  */
10737 #ifdef __cplusplus
10738 extern "C"
10739 #endif
10740 char dlopen ();
10741 int
10742 main ()
10743 {
10744 return dlopen ();
10745   ;
10746   return 0;
10747 }
10748 _ACEOF
10749 if ac_fn_c_try_link "$LINENO"; then :
10750   ac_cv_lib_dl_dlopen=yes
10751 else
10752   ac_cv_lib_dl_dlopen=no
10753 fi
10754 rm -f core conftest.err conftest.$ac_objext \
10755     conftest$ac_exeext conftest.$ac_ext
10756 LIBS=$ac_check_lib_save_LIBS
10757 fi
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10759 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10760 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10761   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10762 else
10763
10764     lt_cv_dlopen="dyld"
10765     lt_cv_dlopen_libs=
10766     lt_cv_dlopen_self=yes
10767
10768 fi
10769
10770     ;;
10771
10772   *)
10773     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10774 if test "x$ac_cv_func_shl_load" = xyes; then :
10775   lt_cv_dlopen="shl_load"
10776 else
10777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10778 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10779 if ${ac_cv_lib_dld_shl_load+:} false; then :
10780   $as_echo_n "(cached) " >&6
10781 else
10782   ac_check_lib_save_LIBS=$LIBS
10783 LIBS="-ldld  $LIBS"
10784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h.  */
10786
10787 /* Override any GCC internal prototype to avoid an error.
10788    Use char because int might match the return type of a GCC
10789    builtin and then its argument prototype would still apply.  */
10790 #ifdef __cplusplus
10791 extern "C"
10792 #endif
10793 char shl_load ();
10794 int
10795 main ()
10796 {
10797 return shl_load ();
10798   ;
10799   return 0;
10800 }
10801 _ACEOF
10802 if ac_fn_c_try_link "$LINENO"; then :
10803   ac_cv_lib_dld_shl_load=yes
10804 else
10805   ac_cv_lib_dld_shl_load=no
10806 fi
10807 rm -f core conftest.err conftest.$ac_objext \
10808     conftest$ac_exeext conftest.$ac_ext
10809 LIBS=$ac_check_lib_save_LIBS
10810 fi
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10812 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10813 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10814   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10815 else
10816   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10817 if test "x$ac_cv_func_dlopen" = xyes; then :
10818   lt_cv_dlopen="dlopen"
10819 else
10820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10821 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10822 if ${ac_cv_lib_dl_dlopen+:} false; then :
10823   $as_echo_n "(cached) " >&6
10824 else
10825   ac_check_lib_save_LIBS=$LIBS
10826 LIBS="-ldl  $LIBS"
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h.  */
10829
10830 /* Override any GCC internal prototype to avoid an error.
10831    Use char because int might match the return type of a GCC
10832    builtin and then its argument prototype would still apply.  */
10833 #ifdef __cplusplus
10834 extern "C"
10835 #endif
10836 char dlopen ();
10837 int
10838 main ()
10839 {
10840 return dlopen ();
10841   ;
10842   return 0;
10843 }
10844 _ACEOF
10845 if ac_fn_c_try_link "$LINENO"; then :
10846   ac_cv_lib_dl_dlopen=yes
10847 else
10848   ac_cv_lib_dl_dlopen=no
10849 fi
10850 rm -f core conftest.err conftest.$ac_objext \
10851     conftest$ac_exeext conftest.$ac_ext
10852 LIBS=$ac_check_lib_save_LIBS
10853 fi
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10855 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10856 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10857   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10858 else
10859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10860 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10861 if ${ac_cv_lib_svld_dlopen+:} false; then :
10862   $as_echo_n "(cached) " >&6
10863 else
10864   ac_check_lib_save_LIBS=$LIBS
10865 LIBS="-lsvld  $LIBS"
10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h.  */
10868
10869 /* Override any GCC internal prototype to avoid an error.
10870    Use char because int might match the return type of a GCC
10871    builtin and then its argument prototype would still apply.  */
10872 #ifdef __cplusplus
10873 extern "C"
10874 #endif
10875 char dlopen ();
10876 int
10877 main ()
10878 {
10879 return dlopen ();
10880   ;
10881   return 0;
10882 }
10883 _ACEOF
10884 if ac_fn_c_try_link "$LINENO"; then :
10885   ac_cv_lib_svld_dlopen=yes
10886 else
10887   ac_cv_lib_svld_dlopen=no
10888 fi
10889 rm -f core conftest.err conftest.$ac_objext \
10890     conftest$ac_exeext conftest.$ac_ext
10891 LIBS=$ac_check_lib_save_LIBS
10892 fi
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10894 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10895 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10896   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10897 else
10898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10899 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10900 if ${ac_cv_lib_dld_dld_link+:} false; then :
10901   $as_echo_n "(cached) " >&6
10902 else
10903   ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-ldld  $LIBS"
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h.  */
10907
10908 /* Override any GCC internal prototype to avoid an error.
10909    Use char because int might match the return type of a GCC
10910    builtin and then its argument prototype would still apply.  */
10911 #ifdef __cplusplus
10912 extern "C"
10913 #endif
10914 char dld_link ();
10915 int
10916 main ()
10917 {
10918 return dld_link ();
10919   ;
10920   return 0;
10921 }
10922 _ACEOF
10923 if ac_fn_c_try_link "$LINENO"; then :
10924   ac_cv_lib_dld_dld_link=yes
10925 else
10926   ac_cv_lib_dld_dld_link=no
10927 fi
10928 rm -f core conftest.err conftest.$ac_objext \
10929     conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10931 fi
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10933 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10934 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10935   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10936 fi
10937
10938
10939 fi
10940
10941
10942 fi
10943
10944
10945 fi
10946
10947
10948 fi
10949
10950
10951 fi
10952
10953     ;;
10954   esac
10955
10956   if test "x$lt_cv_dlopen" != xno; then
10957     enable_dlopen=yes
10958   else
10959     enable_dlopen=no
10960   fi
10961
10962   case $lt_cv_dlopen in
10963   dlopen)
10964     save_CPPFLAGS="$CPPFLAGS"
10965     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10966
10967     save_LDFLAGS="$LDFLAGS"
10968     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10969
10970     save_LIBS="$LIBS"
10971     LIBS="$lt_cv_dlopen_libs $LIBS"
10972
10973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10974 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10975 if ${lt_cv_dlopen_self+:} false; then :
10976   $as_echo_n "(cached) " >&6
10977 else
10978           if test "$cross_compiling" = yes; then :
10979   lt_cv_dlopen_self=cross
10980 else
10981   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10982   lt_status=$lt_dlunknown
10983   cat > conftest.$ac_ext <<_LT_EOF
10984 #line $LINENO "configure"
10985 #include "confdefs.h"
10986
10987 #if HAVE_DLFCN_H
10988 #include <dlfcn.h>
10989 #endif
10990
10991 #include <stdio.h>
10992
10993 #ifdef RTLD_GLOBAL
10994 #  define LT_DLGLOBAL           RTLD_GLOBAL
10995 #else
10996 #  ifdef DL_GLOBAL
10997 #    define LT_DLGLOBAL         DL_GLOBAL
10998 #  else
10999 #    define LT_DLGLOBAL         0
11000 #  endif
11001 #endif
11002
11003 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11004    find out it does not work in some platform. */
11005 #ifndef LT_DLLAZY_OR_NOW
11006 #  ifdef RTLD_LAZY
11007 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11008 #  else
11009 #    ifdef DL_LAZY
11010 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11011 #    else
11012 #      ifdef RTLD_NOW
11013 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11014 #      else
11015 #        ifdef DL_NOW
11016 #          define LT_DLLAZY_OR_NOW      DL_NOW
11017 #        else
11018 #          define LT_DLLAZY_OR_NOW      0
11019 #        endif
11020 #      endif
11021 #    endif
11022 #  endif
11023 #endif
11024
11025 /* When -fvisbility=hidden is used, assume the code has been annotated
11026    correspondingly for the symbols needed.  */
11027 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11028 int fnord () __attribute__((visibility("default")));
11029 #endif
11030
11031 int fnord () { return 42; }
11032 int main ()
11033 {
11034   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11035   int status = $lt_dlunknown;
11036
11037   if (self)
11038     {
11039       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11040       else
11041         {
11042           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11043           else puts (dlerror ());
11044         }
11045       /* dlclose (self); */
11046     }
11047   else
11048     puts (dlerror ());
11049
11050   return status;
11051 }
11052 _LT_EOF
11053   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11054   (eval $ac_link) 2>&5
11055   ac_status=$?
11056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11057   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11058     (./conftest; exit; ) >&5 2>/dev/null
11059     lt_status=$?
11060     case x$lt_status in
11061       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11062       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11063       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11064     esac
11065   else :
11066     # compilation failed
11067     lt_cv_dlopen_self=no
11068   fi
11069 fi
11070 rm -fr conftest*
11071
11072
11073 fi
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11075 $as_echo "$lt_cv_dlopen_self" >&6; }
11076
11077     if test "x$lt_cv_dlopen_self" = xyes; then
11078       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11079       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11080 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11081 if ${lt_cv_dlopen_self_static+:} false; then :
11082   $as_echo_n "(cached) " >&6
11083 else
11084           if test "$cross_compiling" = yes; then :
11085   lt_cv_dlopen_self_static=cross
11086 else
11087   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11088   lt_status=$lt_dlunknown
11089   cat > conftest.$ac_ext <<_LT_EOF
11090 #line $LINENO "configure"
11091 #include "confdefs.h"
11092
11093 #if HAVE_DLFCN_H
11094 #include <dlfcn.h>
11095 #endif
11096
11097 #include <stdio.h>
11098
11099 #ifdef RTLD_GLOBAL
11100 #  define LT_DLGLOBAL           RTLD_GLOBAL
11101 #else
11102 #  ifdef DL_GLOBAL
11103 #    define LT_DLGLOBAL         DL_GLOBAL
11104 #  else
11105 #    define LT_DLGLOBAL         0
11106 #  endif
11107 #endif
11108
11109 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11110    find out it does not work in some platform. */
11111 #ifndef LT_DLLAZY_OR_NOW
11112 #  ifdef RTLD_LAZY
11113 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11114 #  else
11115 #    ifdef DL_LAZY
11116 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11117 #    else
11118 #      ifdef RTLD_NOW
11119 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11120 #      else
11121 #        ifdef DL_NOW
11122 #          define LT_DLLAZY_OR_NOW      DL_NOW
11123 #        else
11124 #          define LT_DLLAZY_OR_NOW      0
11125 #        endif
11126 #      endif
11127 #    endif
11128 #  endif
11129 #endif
11130
11131 /* When -fvisbility=hidden is used, assume the code has been annotated
11132    correspondingly for the symbols needed.  */
11133 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11134 int fnord () __attribute__((visibility("default")));
11135 #endif
11136
11137 int fnord () { return 42; }
11138 int main ()
11139 {
11140   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11141   int status = $lt_dlunknown;
11142
11143   if (self)
11144     {
11145       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11146       else
11147         {
11148           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11149           else puts (dlerror ());
11150         }
11151       /* dlclose (self); */
11152     }
11153   else
11154     puts (dlerror ());
11155
11156   return status;
11157 }
11158 _LT_EOF
11159   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11160   (eval $ac_link) 2>&5
11161   ac_status=$?
11162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11163   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11164     (./conftest; exit; ) >&5 2>/dev/null
11165     lt_status=$?
11166     case x$lt_status in
11167       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11168       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11169       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11170     esac
11171   else :
11172     # compilation failed
11173     lt_cv_dlopen_self_static=no
11174   fi
11175 fi
11176 rm -fr conftest*
11177
11178
11179 fi
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11181 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11182     fi
11183
11184     CPPFLAGS="$save_CPPFLAGS"
11185     LDFLAGS="$save_LDFLAGS"
11186     LIBS="$save_LIBS"
11187     ;;
11188   esac
11189
11190   case $lt_cv_dlopen_self in
11191   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11192   *) enable_dlopen_self=unknown ;;
11193   esac
11194
11195   case $lt_cv_dlopen_self_static in
11196   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11197   *) enable_dlopen_self_static=unknown ;;
11198   esac
11199 fi
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217 striplib=
11218 old_striplib=
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11220 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11221 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11222   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11223   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11225 $as_echo "yes" >&6; }
11226 else
11227 # FIXME - insert some real tests, host_os isn't really good enough
11228   case $host_os in
11229   darwin*)
11230     if test -n "$STRIP" ; then
11231       striplib="$STRIP -x"
11232       old_striplib="$STRIP -S"
11233       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11234 $as_echo "yes" >&6; }
11235     else
11236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237 $as_echo "no" >&6; }
11238     fi
11239     ;;
11240   *)
11241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242 $as_echo "no" >&6; }
11243     ;;
11244   esac
11245 fi
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258   # Report which library types will actually be built
11259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11260 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11262 $as_echo "$can_build_shared" >&6; }
11263
11264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11265 $as_echo_n "checking whether to build shared libraries... " >&6; }
11266   test "$can_build_shared" = "no" && enable_shared=no
11267
11268   # On AIX, shared libraries and static libraries use the same namespace, and
11269   # are all built from PIC.
11270   case $host_os in
11271   aix3*)
11272     test "$enable_shared" = yes && enable_static=no
11273     if test -n "$RANLIB"; then
11274       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11275       postinstall_cmds='$RANLIB $lib'
11276     fi
11277     ;;
11278
11279   aix[4-9]*)
11280     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11281       test "$enable_shared" = yes && enable_static=no
11282     fi
11283     ;;
11284   esac
11285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11286 $as_echo "$enable_shared" >&6; }
11287
11288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11289 $as_echo_n "checking whether to build static libraries... " >&6; }
11290   # Make sure either enable_shared or enable_static is yes.
11291   test "$enable_shared" = yes || enable_static=yes
11292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11293 $as_echo "$enable_static" >&6; }
11294
11295
11296
11297
11298 fi
11299 ac_ext=c
11300 ac_cpp='$CPP $CPPFLAGS'
11301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11304
11305 CC="$lt_save_CC"
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321         ac_config_commands="$ac_config_commands libtool"
11322
11323
11324
11325
11326 # Only expand once:
11327
11328
11329
11330 #AX_PTHREAD
11331
11332 # Checks for programs.
11333 ac_ext=c
11334 ac_cpp='$CPP $CPPFLAGS'
11335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11338 if test -n "$ac_tool_prefix"; then
11339   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11340 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11342 $as_echo_n "checking for $ac_word... " >&6; }
11343 if ${ac_cv_prog_CC+:} false; then :
11344   $as_echo_n "(cached) " >&6
11345 else
11346   if test -n "$CC"; then
11347   ac_cv_prog_CC="$CC" # Let the user override the test.
11348 else
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11351 do
11352   IFS=$as_save_IFS
11353   test -z "$as_dir" && as_dir=.
11354     for ac_exec_ext in '' $ac_executable_extensions; do
11355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11356     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11358     break 2
11359   fi
11360 done
11361   done
11362 IFS=$as_save_IFS
11363
11364 fi
11365 fi
11366 CC=$ac_cv_prog_CC
11367 if test -n "$CC"; then
11368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11369 $as_echo "$CC" >&6; }
11370 else
11371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11373 fi
11374
11375
11376 fi
11377 if test -z "$ac_cv_prog_CC"; then
11378   ac_ct_CC=$CC
11379   # Extract the first word of "gcc", so it can be a program name with args.
11380 set dummy gcc; ac_word=$2
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11382 $as_echo_n "checking for $ac_word... " >&6; }
11383 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11384   $as_echo_n "(cached) " >&6
11385 else
11386   if test -n "$ac_ct_CC"; then
11387   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11388 else
11389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390 for as_dir in $PATH
11391 do
11392   IFS=$as_save_IFS
11393   test -z "$as_dir" && as_dir=.
11394     for ac_exec_ext in '' $ac_executable_extensions; do
11395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11396     ac_cv_prog_ac_ct_CC="gcc"
11397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11398     break 2
11399   fi
11400 done
11401   done
11402 IFS=$as_save_IFS
11403
11404 fi
11405 fi
11406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11407 if test -n "$ac_ct_CC"; then
11408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11409 $as_echo "$ac_ct_CC" >&6; }
11410 else
11411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11413 fi
11414
11415   if test "x$ac_ct_CC" = x; then
11416     CC=""
11417   else
11418     case $cross_compiling:$ac_tool_warned in
11419 yes:)
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11422 ac_tool_warned=yes ;;
11423 esac
11424     CC=$ac_ct_CC
11425   fi
11426 else
11427   CC="$ac_cv_prog_CC"
11428 fi
11429
11430 if test -z "$CC"; then
11431           if test -n "$ac_tool_prefix"; then
11432     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11433 set dummy ${ac_tool_prefix}cc; ac_word=$2
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435 $as_echo_n "checking for $ac_word... " >&6; }
11436 if ${ac_cv_prog_CC+:} false; then :
11437   $as_echo_n "(cached) " >&6
11438 else
11439   if test -n "$CC"; then
11440   ac_cv_prog_CC="$CC" # Let the user override the test.
11441 else
11442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443 for as_dir in $PATH
11444 do
11445   IFS=$as_save_IFS
11446   test -z "$as_dir" && as_dir=.
11447     for ac_exec_ext in '' $ac_executable_extensions; do
11448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11449     ac_cv_prog_CC="${ac_tool_prefix}cc"
11450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11451     break 2
11452   fi
11453 done
11454   done
11455 IFS=$as_save_IFS
11456
11457 fi
11458 fi
11459 CC=$ac_cv_prog_CC
11460 if test -n "$CC"; then
11461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11462 $as_echo "$CC" >&6; }
11463 else
11464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465 $as_echo "no" >&6; }
11466 fi
11467
11468
11469   fi
11470 fi
11471 if test -z "$CC"; then
11472   # Extract the first word of "cc", so it can be a program name with args.
11473 set dummy cc; ac_word=$2
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11475 $as_echo_n "checking for $ac_word... " >&6; }
11476 if ${ac_cv_prog_CC+:} false; then :
11477   $as_echo_n "(cached) " >&6
11478 else
11479   if test -n "$CC"; then
11480   ac_cv_prog_CC="$CC" # Let the user override the test.
11481 else
11482   ac_prog_rejected=no
11483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484 for as_dir in $PATH
11485 do
11486   IFS=$as_save_IFS
11487   test -z "$as_dir" && as_dir=.
11488     for ac_exec_ext in '' $ac_executable_extensions; do
11489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11490     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11491        ac_prog_rejected=yes
11492        continue
11493      fi
11494     ac_cv_prog_CC="cc"
11495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11496     break 2
11497   fi
11498 done
11499   done
11500 IFS=$as_save_IFS
11501
11502 if test $ac_prog_rejected = yes; then
11503   # We found a bogon in the path, so make sure we never use it.
11504   set dummy $ac_cv_prog_CC
11505   shift
11506   if test $# != 0; then
11507     # We chose a different compiler from the bogus one.
11508     # However, it has the same basename, so the bogon will be chosen
11509     # first if we set CC to just the basename; use the full file name.
11510     shift
11511     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11512   fi
11513 fi
11514 fi
11515 fi
11516 CC=$ac_cv_prog_CC
11517 if test -n "$CC"; then
11518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11519 $as_echo "$CC" >&6; }
11520 else
11521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522 $as_echo "no" >&6; }
11523 fi
11524
11525
11526 fi
11527 if test -z "$CC"; then
11528   if test -n "$ac_tool_prefix"; then
11529   for ac_prog in cl.exe
11530   do
11531     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11534 $as_echo_n "checking for $ac_word... " >&6; }
11535 if ${ac_cv_prog_CC+:} false; then :
11536   $as_echo_n "(cached) " >&6
11537 else
11538   if test -n "$CC"; then
11539   ac_cv_prog_CC="$CC" # Let the user override the test.
11540 else
11541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542 for as_dir in $PATH
11543 do
11544   IFS=$as_save_IFS
11545   test -z "$as_dir" && as_dir=.
11546     for ac_exec_ext in '' $ac_executable_extensions; do
11547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11548     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11550     break 2
11551   fi
11552 done
11553   done
11554 IFS=$as_save_IFS
11555
11556 fi
11557 fi
11558 CC=$ac_cv_prog_CC
11559 if test -n "$CC"; then
11560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11561 $as_echo "$CC" >&6; }
11562 else
11563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564 $as_echo "no" >&6; }
11565 fi
11566
11567
11568     test -n "$CC" && break
11569   done
11570 fi
11571 if test -z "$CC"; then
11572   ac_ct_CC=$CC
11573   for ac_prog in cl.exe
11574 do
11575   # Extract the first word of "$ac_prog", so it can be a program name with args.
11576 set dummy $ac_prog; ac_word=$2
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11578 $as_echo_n "checking for $ac_word... " >&6; }
11579 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11580   $as_echo_n "(cached) " >&6
11581 else
11582   if test -n "$ac_ct_CC"; then
11583   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11584 else
11585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586 for as_dir in $PATH
11587 do
11588   IFS=$as_save_IFS
11589   test -z "$as_dir" && as_dir=.
11590     for ac_exec_ext in '' $ac_executable_extensions; do
11591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11592     ac_cv_prog_ac_ct_CC="$ac_prog"
11593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11594     break 2
11595   fi
11596 done
11597   done
11598 IFS=$as_save_IFS
11599
11600 fi
11601 fi
11602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11603 if test -n "$ac_ct_CC"; then
11604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11605 $as_echo "$ac_ct_CC" >&6; }
11606 else
11607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11609 fi
11610
11611
11612   test -n "$ac_ct_CC" && break
11613 done
11614
11615   if test "x$ac_ct_CC" = x; then
11616     CC=""
11617   else
11618     case $cross_compiling:$ac_tool_warned in
11619 yes:)
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11622 ac_tool_warned=yes ;;
11623 esac
11624     CC=$ac_ct_CC
11625   fi
11626 fi
11627
11628 fi
11629
11630
11631 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11633 as_fn_error $? "no acceptable C compiler found in \$PATH
11634 See \`config.log' for more details" "$LINENO" 5; }
11635
11636 # Provide some information about the compiler.
11637 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11638 set X $ac_compile
11639 ac_compiler=$2
11640 for ac_option in --version -v -V -qversion; do
11641   { { ac_try="$ac_compiler $ac_option >&5"
11642 case "(($ac_try" in
11643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644   *) ac_try_echo=$ac_try;;
11645 esac
11646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11647 $as_echo "$ac_try_echo"; } >&5
11648   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11649   ac_status=$?
11650   if test -s conftest.err; then
11651     sed '10a\
11652 ... rest of stderr output deleted ...
11653          10q' conftest.err >conftest.er1
11654     cat conftest.er1 >&5
11655   fi
11656   rm -f conftest.er1 conftest.err
11657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11658   test $ac_status = 0; }
11659 done
11660
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11662 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11663 if ${ac_cv_c_compiler_gnu+:} false; then :
11664   $as_echo_n "(cached) " >&6
11665 else
11666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h.  */
11668
11669 int
11670 main ()
11671 {
11672 #ifndef __GNUC__
11673        choke me
11674 #endif
11675
11676   ;
11677   return 0;
11678 }
11679 _ACEOF
11680 if ac_fn_c_try_compile "$LINENO"; then :
11681   ac_compiler_gnu=yes
11682 else
11683   ac_compiler_gnu=no
11684 fi
11685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11686 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11687
11688 fi
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11690 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11691 if test $ac_compiler_gnu = yes; then
11692   GCC=yes
11693 else
11694   GCC=
11695 fi
11696 ac_test_CFLAGS=${CFLAGS+set}
11697 ac_save_CFLAGS=$CFLAGS
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11699 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11700 if ${ac_cv_prog_cc_g+:} false; then :
11701   $as_echo_n "(cached) " >&6
11702 else
11703   ac_save_c_werror_flag=$ac_c_werror_flag
11704    ac_c_werror_flag=yes
11705    ac_cv_prog_cc_g=no
11706    CFLAGS="-g"
11707    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h.  */
11709
11710 int
11711 main ()
11712 {
11713
11714   ;
11715   return 0;
11716 }
11717 _ACEOF
11718 if ac_fn_c_try_compile "$LINENO"; then :
11719   ac_cv_prog_cc_g=yes
11720 else
11721   CFLAGS=""
11722       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h.  */
11724
11725 int
11726 main ()
11727 {
11728
11729   ;
11730   return 0;
11731 }
11732 _ACEOF
11733 if ac_fn_c_try_compile "$LINENO"; then :
11734
11735 else
11736   ac_c_werror_flag=$ac_save_c_werror_flag
11737          CFLAGS="-g"
11738          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11739 /* end confdefs.h.  */
11740
11741 int
11742 main ()
11743 {
11744
11745   ;
11746   return 0;
11747 }
11748 _ACEOF
11749 if ac_fn_c_try_compile "$LINENO"; then :
11750   ac_cv_prog_cc_g=yes
11751 fi
11752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11753 fi
11754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11755 fi
11756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11757    ac_c_werror_flag=$ac_save_c_werror_flag
11758 fi
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11760 $as_echo "$ac_cv_prog_cc_g" >&6; }
11761 if test "$ac_test_CFLAGS" = set; then
11762   CFLAGS=$ac_save_CFLAGS
11763 elif test $ac_cv_prog_cc_g = yes; then
11764   if test "$GCC" = yes; then
11765     CFLAGS="-g -O2"
11766   else
11767     CFLAGS="-g"
11768   fi
11769 else
11770   if test "$GCC" = yes; then
11771     CFLAGS="-O2"
11772   else
11773     CFLAGS=
11774   fi
11775 fi
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11777 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11778 if ${ac_cv_prog_cc_c89+:} false; then :
11779   $as_echo_n "(cached) " >&6
11780 else
11781   ac_cv_prog_cc_c89=no
11782 ac_save_CC=$CC
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h.  */
11785 #include <stdarg.h>
11786 #include <stdio.h>
11787 #include <sys/types.h>
11788 #include <sys/stat.h>
11789 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11790 struct buf { int x; };
11791 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11792 static char *e (p, i)
11793      char **p;
11794      int i;
11795 {
11796   return p[i];
11797 }
11798 static char *f (char * (*g) (char **, int), char **p, ...)
11799 {
11800   char *s;
11801   va_list v;
11802   va_start (v,p);
11803   s = g (p, va_arg (v,int));
11804   va_end (v);
11805   return s;
11806 }
11807
11808 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11809    function prototypes and stuff, but not '\xHH' hex character constants.
11810    These don't provoke an error unfortunately, instead are silently treated
11811    as 'x'.  The following induces an error, until -std is added to get
11812    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11813    array size at least.  It's necessary to write '\x00'==0 to get something
11814    that's true only with -std.  */
11815 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11816
11817 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11818    inside strings and character constants.  */
11819 #define FOO(x) 'x'
11820 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11821
11822 int test (int i, double x);
11823 struct s1 {int (*f) (int a);};
11824 struct s2 {int (*f) (double a);};
11825 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11826 int argc;
11827 char **argv;
11828 int
11829 main ()
11830 {
11831 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11832   ;
11833   return 0;
11834 }
11835 _ACEOF
11836 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11837         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11838 do
11839   CC="$ac_save_CC $ac_arg"
11840   if ac_fn_c_try_compile "$LINENO"; then :
11841   ac_cv_prog_cc_c89=$ac_arg
11842 fi
11843 rm -f core conftest.err conftest.$ac_objext
11844   test "x$ac_cv_prog_cc_c89" != "xno" && break
11845 done
11846 rm -f conftest.$ac_ext
11847 CC=$ac_save_CC
11848
11849 fi
11850 # AC_CACHE_VAL
11851 case "x$ac_cv_prog_cc_c89" in
11852   x)
11853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11854 $as_echo "none needed" >&6; } ;;
11855   xno)
11856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11857 $as_echo "unsupported" >&6; } ;;
11858   *)
11859     CC="$CC $ac_cv_prog_cc_c89"
11860     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11861 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11862 esac
11863 if test "x$ac_cv_prog_cc_c89" != xno; then :
11864
11865 fi
11866
11867 ac_ext=c
11868 ac_cpp='$CPP $CPPFLAGS'
11869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11872
11873 depcc="$CC"   am_compiler_list=
11874
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11876 $as_echo_n "checking dependency style of $depcc... " >&6; }
11877 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11878   $as_echo_n "(cached) " >&6
11879 else
11880   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11881   # We make a subdir and do the tests there.  Otherwise we can end up
11882   # making bogus files that we don't know about and never remove.  For
11883   # instance it was reported that on HP-UX the gcc test will end up
11884   # making a dummy file named `D' -- because `-MD' means `put the output
11885   # in D'.
11886   rm -rf conftest.dir
11887   mkdir conftest.dir
11888   # Copy depcomp to subdir because otherwise we won't find it if we're
11889   # using a relative directory.
11890   cp "$am_depcomp" conftest.dir
11891   cd conftest.dir
11892   # We will build objects and dependencies in a subdirectory because
11893   # it helps to detect inapplicable dependency modes.  For instance
11894   # both Tru64's cc and ICC support -MD to output dependencies as a
11895   # side effect of compilation, but ICC will put the dependencies in
11896   # the current directory while Tru64 will put them in the object
11897   # directory.
11898   mkdir sub
11899
11900   am_cv_CC_dependencies_compiler_type=none
11901   if test "$am_compiler_list" = ""; then
11902      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11903   fi
11904   am__universal=false
11905   case " $depcc " in #(
11906      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11907      esac
11908
11909   for depmode in $am_compiler_list; do
11910     # Setup a source with many dependencies, because some compilers
11911     # like to wrap large dependency lists on column 80 (with \), and
11912     # we should not choose a depcomp mode which is confused by this.
11913     #
11914     # We need to recreate these files for each test, as the compiler may
11915     # overwrite some of them when testing with obscure command lines.
11916     # This happens at least with the AIX C compiler.
11917     : > sub/conftest.c
11918     for i in 1 2 3 4 5 6; do
11919       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11920       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11921       # Solaris 8's {/usr,}/bin/sh.
11922       touch sub/conftst$i.h
11923     done
11924     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11925
11926     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11927     # mode.  It turns out that the SunPro C++ compiler does not properly
11928     # handle `-M -o', and we need to detect this.  Also, some Intel
11929     # versions had trouble with output in subdirs
11930     am__obj=sub/conftest.${OBJEXT-o}
11931     am__minus_obj="-o $am__obj"
11932     case $depmode in
11933     gcc)
11934       # This depmode causes a compiler race in universal mode.
11935       test "$am__universal" = false || continue
11936       ;;
11937     nosideeffect)
11938       # after this tag, mechanisms are not by side-effect, so they'll
11939       # only be used when explicitly requested
11940       if test "x$enable_dependency_tracking" = xyes; then
11941         continue
11942       else
11943         break
11944       fi
11945       ;;
11946     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11947       # This compiler won't grok `-c -o', but also, the minuso test has
11948       # not run yet.  These depmodes are late enough in the game, and
11949       # so weak that their functioning should not be impacted.
11950       am__obj=conftest.${OBJEXT-o}
11951       am__minus_obj=
11952       ;;
11953     none) break ;;
11954     esac
11955     if depmode=$depmode \
11956        source=sub/conftest.c object=$am__obj \
11957        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11958        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11959          >/dev/null 2>conftest.err &&
11960        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11961        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11962        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11963        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11964       # icc doesn't choke on unknown options, it will just issue warnings
11965       # or remarks (even with -Werror).  So we grep stderr for any message
11966       # that says an option was ignored or not supported.
11967       # When given -MP, icc 7.0 and 7.1 complain thusly:
11968       #   icc: Command line warning: ignoring option '-M'; no argument required
11969       # The diagnosis changed in icc 8.0:
11970       #   icc: Command line remark: option '-MP' not supported
11971       if (grep 'ignoring option' conftest.err ||
11972           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11973         am_cv_CC_dependencies_compiler_type=$depmode
11974         break
11975       fi
11976     fi
11977   done
11978
11979   cd ..
11980   rm -rf conftest.dir
11981 else
11982   am_cv_CC_dependencies_compiler_type=none
11983 fi
11984
11985 fi
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11987 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11988 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11989
11990  if
11991   test "x$enable_dependency_tracking" != xno \
11992   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11993   am__fastdepCC_TRUE=
11994   am__fastdepCC_FALSE='#'
11995 else
11996   am__fastdepCC_TRUE='#'
11997   am__fastdepCC_FALSE=
11998 fi
11999
12000
12001
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12003 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12004 set x ${MAKE-make}
12005 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12006 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12007   $as_echo_n "(cached) " >&6
12008 else
12009   cat >conftest.make <<\_ACEOF
12010 SHELL = /bin/sh
12011 all:
12012         @echo '@@@%%%=$(MAKE)=@@@%%%'
12013 _ACEOF
12014 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12015 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12016   *@@@%%%=?*=@@@%%%*)
12017     eval ac_cv_prog_make_${ac_make}_set=yes;;
12018   *)
12019     eval ac_cv_prog_make_${ac_make}_set=no;;
12020 esac
12021 rm -f conftest.make
12022 fi
12023 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12025 $as_echo "yes" >&6; }
12026   SET_MAKE=
12027 else
12028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029 $as_echo "no" >&6; }
12030   SET_MAKE="MAKE=${MAKE-make}"
12031 fi
12032
12033
12034
12035
12036 #
12037 #
12038 #
12039 # Check whether --enable-openssl was given.
12040 if test "${enable_openssl+set}" = set; then :
12041   enableval=$enable_openssl;  openssl=yes
12042
12043 fi
12044
12045
12046 if test "x$openssl" = "xyes" ; then
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
12048 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
12049 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
12050   $as_echo_n "(cached) " >&6
12051 else
12052   ac_check_lib_save_LIBS=$LIBS
12053 LIBS="-lssl  $LIBS"
12054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055 /* end confdefs.h.  */
12056
12057 /* Override any GCC internal prototype to avoid an error.
12058    Use char because int might match the return type of a GCC
12059    builtin and then its argument prototype would still apply.  */
12060 #ifdef __cplusplus
12061 extern "C"
12062 #endif
12063 char SSL_library_init ();
12064 int
12065 main ()
12066 {
12067 return SSL_library_init ();
12068   ;
12069   return 0;
12070 }
12071 _ACEOF
12072 if ac_fn_c_try_link "$LINENO"; then :
12073   ac_cv_lib_ssl_SSL_library_init=yes
12074 else
12075   ac_cv_lib_ssl_SSL_library_init=no
12076 fi
12077 rm -f core conftest.err conftest.$ac_objext \
12078     conftest$ac_exeext conftest.$ac_ext
12079 LIBS=$ac_check_lib_save_LIBS
12080 fi
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
12082 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
12083 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
12084   cat >>confdefs.h <<_ACEOF
12085 #define HAVE_LIBSSL 1
12086 _ACEOF
12087
12088   LIBS="-lssl $LIBS"
12089
12090 fi
12091
12092 CFLAGS="$CFLAGS -DLWS_OPENSSL_SUPPORT"
12093 fi
12094
12095 #
12096 #
12097 #
12098 # Check whether --enable-nofork was given.
12099 if test "${enable_nofork+set}" = set; then :
12100   enableval=$enable_nofork;  nofork=yes
12101
12102 fi
12103
12104
12105 if test "x$nofork" = "xyes" ; then
12106 CFLAGS="$CFLAGS -DLWS_NO_FORK"
12107 else
12108 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12109 if test "x$ac_cv_type_pid_t" = xyes; then :
12110
12111 else
12112
12113 cat >>confdefs.h <<_ACEOF
12114 #define pid_t int
12115 _ACEOF
12116
12117 fi
12118
12119 for ac_header in vfork.h
12120 do :
12121   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12122 if test "x$ac_cv_header_vfork_h" = xyes; then :
12123   cat >>confdefs.h <<_ACEOF
12124 #define HAVE_VFORK_H 1
12125 _ACEOF
12126
12127 fi
12128
12129 done
12130
12131 for ac_func in fork vfork
12132 do :
12133   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12134 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12135 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12136   cat >>confdefs.h <<_ACEOF
12137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12138 _ACEOF
12139
12140 fi
12141 done
12142
12143 if test "x$ac_cv_func_fork" = xyes; then
12144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12145 $as_echo_n "checking for working fork... " >&6; }
12146 if ${ac_cv_func_fork_works+:} false; then :
12147   $as_echo_n "(cached) " >&6
12148 else
12149   if test "$cross_compiling" = yes; then :
12150   ac_cv_func_fork_works=cross
12151 else
12152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h.  */
12154 $ac_includes_default
12155 int
12156 main ()
12157 {
12158
12159           /* By Ruediger Kuhlmann. */
12160           return fork () < 0;
12161
12162   ;
12163   return 0;
12164 }
12165 _ACEOF
12166 if ac_fn_c_try_run "$LINENO"; then :
12167   ac_cv_func_fork_works=yes
12168 else
12169   ac_cv_func_fork_works=no
12170 fi
12171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12172   conftest.$ac_objext conftest.beam conftest.$ac_ext
12173 fi
12174
12175 fi
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12177 $as_echo "$ac_cv_func_fork_works" >&6; }
12178
12179 else
12180   ac_cv_func_fork_works=$ac_cv_func_fork
12181 fi
12182 if test "x$ac_cv_func_fork_works" = xcross; then
12183   case $host in
12184     *-*-amigaos* | *-*-msdosdjgpp*)
12185       # Override, as these systems have only a dummy fork() stub
12186       ac_cv_func_fork_works=no
12187       ;;
12188     *)
12189       ac_cv_func_fork_works=yes
12190       ;;
12191   esac
12192   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12193 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12194 fi
12195 ac_cv_func_vfork_works=$ac_cv_func_vfork
12196 if test "x$ac_cv_func_vfork" = xyes; then
12197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12198 $as_echo_n "checking for working vfork... " >&6; }
12199 if ${ac_cv_func_vfork_works+:} false; then :
12200   $as_echo_n "(cached) " >&6
12201 else
12202   if test "$cross_compiling" = yes; then :
12203   ac_cv_func_vfork_works=cross
12204 else
12205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h.  */
12207 /* Thanks to Paul Eggert for this test.  */
12208 $ac_includes_default
12209 #include <sys/wait.h>
12210 #ifdef HAVE_VFORK_H
12211 # include <vfork.h>
12212 #endif
12213 /* On some sparc systems, changes by the child to local and incoming
12214    argument registers are propagated back to the parent.  The compiler
12215    is told about this with #include <vfork.h>, but some compilers
12216    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12217    static variable whose address is put into a register that is
12218    clobbered by the vfork.  */
12219 static void
12220 #ifdef __cplusplus
12221 sparc_address_test (int arg)
12222 # else
12223 sparc_address_test (arg) int arg;
12224 #endif
12225 {
12226   static pid_t child;
12227   if (!child) {
12228     child = vfork ();
12229     if (child < 0) {
12230       perror ("vfork");
12231       _exit(2);
12232     }
12233     if (!child) {
12234       arg = getpid();
12235       write(-1, "", 0);
12236       _exit (arg);
12237     }
12238   }
12239 }
12240
12241 int
12242 main ()
12243 {
12244   pid_t parent = getpid ();
12245   pid_t child;
12246
12247   sparc_address_test (0);
12248
12249   child = vfork ();
12250
12251   if (child == 0) {
12252     /* Here is another test for sparc vfork register problems.  This
12253        test uses lots of local variables, at least as many local
12254        variables as main has allocated so far including compiler
12255        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
12256        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
12257        reuse the register of parent for one of the local variables,
12258        since it will think that parent can't possibly be used any more
12259        in this routine.  Assigning to the local variable will thus
12260        munge parent in the parent process.  */
12261     pid_t
12262       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12263       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12264     /* Convince the compiler that p..p7 are live; otherwise, it might
12265        use the same hardware register for all 8 local variables.  */
12266     if (p != p1 || p != p2 || p != p3 || p != p4
12267         || p != p5 || p != p6 || p != p7)
12268       _exit(1);
12269
12270     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12271        from child file descriptors.  If the child closes a descriptor
12272        before it execs or exits, this munges the parent's descriptor
12273        as well.  Test for this by closing stdout in the child.  */
12274     _exit(close(fileno(stdout)) != 0);
12275   } else {
12276     int status;
12277     struct stat st;
12278
12279     while (wait(&status) != child)
12280       ;
12281     return (
12282          /* Was there some problem with vforking?  */
12283          child < 0
12284
12285          /* Did the child fail?  (This shouldn't happen.)  */
12286          || status
12287
12288          /* Did the vfork/compiler bug occur?  */
12289          || parent != getpid()
12290
12291          /* Did the file descriptor bug occur?  */
12292          || fstat(fileno(stdout), &st) != 0
12293          );
12294   }
12295 }
12296 _ACEOF
12297 if ac_fn_c_try_run "$LINENO"; then :
12298   ac_cv_func_vfork_works=yes
12299 else
12300   ac_cv_func_vfork_works=no
12301 fi
12302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12303   conftest.$ac_objext conftest.beam conftest.$ac_ext
12304 fi
12305
12306 fi
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12308 $as_echo "$ac_cv_func_vfork_works" >&6; }
12309
12310 fi;
12311 if test "x$ac_cv_func_fork_works" = xcross; then
12312   ac_cv_func_vfork_works=$ac_cv_func_vfork
12313   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12314 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12315 fi
12316
12317 if test "x$ac_cv_func_vfork_works" = xyes; then
12318
12319 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12320
12321 else
12322
12323 $as_echo "#define vfork fork" >>confdefs.h
12324
12325 fi
12326 if test "x$ac_cv_func_fork_works" = xyes; then
12327
12328 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12329
12330 fi
12331
12332 fi
12333
12334 #
12335 #
12336 #
12337 # Check whether --enable-libcrypto was given.
12338 if test "${enable_libcrypto+set}" = set; then :
12339   enableval=$enable_libcrypto;  libcrypto=yes
12340
12341 fi
12342
12343
12344 if test "x$libcrypto" = "xyes" ; then
12345 CFLAGS="$CFLAGS -DLWS_LIBCRYPTO"
12346 LDFLAGS="$LDFLAGS -lcrypto"
12347 fi
12348  if test x$libcrypto = xyes; then
12349   LIBCRYPTO_TRUE=
12350   LIBCRYPTO_FALSE='#'
12351 else
12352   LIBCRYPTO_TRUE='#'
12353   LIBCRYPTO_FALSE=
12354 fi
12355
12356
12357
12358 #
12359 #
12360 #
12361 # Check whether --enable-x-google-mux was given.
12362 if test "${enable_x_google_mux+set}" = set; then :
12363   enableval=$enable_x_google_mux;  x_google_mux=yes
12364
12365 fi
12366
12367 if test "x$x_google_mux" = "xyes" ; then
12368 CFLAGS="$CFLAGS -DLWS_EXT_GOOGLE_MUX"
12369 fi
12370  if test x$x_google_mux = xyes; then
12371   EXT_GOOGLE_MUX_TRUE=
12372   EXT_GOOGLE_MUX_FALSE='#'
12373 else
12374   EXT_GOOGLE_MUX_TRUE='#'
12375   EXT_GOOGLE_MUX_FALSE=
12376 fi
12377
12378
12379 #
12380 #
12381 #
12382 # Check whether --enable-mingw was given.
12383 if test "${enable_mingw+set}" = set; then :
12384   enableval=$enable_mingw;  mingw=yes
12385    noping=yes
12386
12387 fi
12388
12389
12390 if test "x$mingw" = "xyes" ; then
12391 CFLAGS="$CFLAGS -DLWS_MINGW_SUPPORT"
12392 fi
12393  if test x$mingw = xyes; then
12394   MINGW_TRUE=
12395   MINGW_FALSE='#'
12396 else
12397   MINGW_TRUE='#'
12398   MINGW_FALSE=
12399 fi
12400
12401
12402 #
12403 #
12404 #
12405
12406 # Check whether --with-client-cert-dir was given.
12407 if test "${with_client_cert_dir+set}" = set; then :
12408   withval=$with_client_cert_dir; clientcertdir=$withval
12409 else
12410   clientcertdir=/etc/pki/tls/certs/
12411
12412 fi
12413
12414
12415
12416
12417
12418
12419 #
12420 #
12421 #
12422 # Check whether --enable-noping was given.
12423 if test "${enable_noping+set}" = set; then :
12424   enableval=$enable_noping;  noping=yes
12425
12426 fi
12427
12428
12429  if test x$noping = xyes; then
12430   NOPING_TRUE=
12431   NOPING_FALSE='#'
12432 else
12433   NOPING_TRUE='#'
12434   NOPING_FALSE=
12435 fi
12436
12437
12438
12439
12440 # Checks for header files.
12441 for ac_header in zlib.h fcntl.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h
12442 do :
12443   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12444 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12445 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12446   cat >>confdefs.h <<_ACEOF
12447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12448 _ACEOF
12449
12450 fi
12451
12452 done
12453
12454
12455 # Checks for typedefs, structures, and compiler characteristics.
12456 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12457 if test "x$ac_cv_type_size_t" = xyes; then :
12458
12459 else
12460
12461 cat >>confdefs.h <<_ACEOF
12462 #define size_t unsigned int
12463 _ACEOF
12464
12465 fi
12466
12467
12468 # Checks for library functions.
12469
12470 for ac_header in stdlib.h
12471 do :
12472   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12473 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12474   cat >>confdefs.h <<_ACEOF
12475 #define HAVE_STDLIB_H 1
12476 _ACEOF
12477
12478 fi
12479
12480 done
12481
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12483 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12484 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12485   $as_echo_n "(cached) " >&6
12486 else
12487   if test "$cross_compiling" = yes; then :
12488   ac_cv_func_malloc_0_nonnull=no
12489 else
12490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12491 /* end confdefs.h.  */
12492 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12493 # include <stdlib.h>
12494 #else
12495 char *malloc ();
12496 #endif
12497
12498 int
12499 main ()
12500 {
12501 return ! malloc (0);
12502   ;
12503   return 0;
12504 }
12505 _ACEOF
12506 if ac_fn_c_try_run "$LINENO"; then :
12507   ac_cv_func_malloc_0_nonnull=yes
12508 else
12509   ac_cv_func_malloc_0_nonnull=no
12510 fi
12511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12512   conftest.$ac_objext conftest.beam conftest.$ac_ext
12513 fi
12514
12515 fi
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12517 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12518 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12519
12520 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12521
12522 else
12523   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12524
12525    case " $LIBOBJS " in
12526   *" malloc.$ac_objext "* ) ;;
12527   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12528  ;;
12529 esac
12530
12531
12532 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12533
12534 fi
12535
12536
12537 for ac_header in stdlib.h
12538 do :
12539   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12540 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12541   cat >>confdefs.h <<_ACEOF
12542 #define HAVE_STDLIB_H 1
12543 _ACEOF
12544
12545 fi
12546
12547 done
12548
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12550 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12551 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
12552   $as_echo_n "(cached) " >&6
12553 else
12554   if test "$cross_compiling" = yes; then :
12555   ac_cv_func_realloc_0_nonnull=no
12556 else
12557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h.  */
12559 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12560 # include <stdlib.h>
12561 #else
12562 char *realloc ();
12563 #endif
12564
12565 int
12566 main ()
12567 {
12568 return ! realloc (0, 0);
12569   ;
12570   return 0;
12571 }
12572 _ACEOF
12573 if ac_fn_c_try_run "$LINENO"; then :
12574   ac_cv_func_realloc_0_nonnull=yes
12575 else
12576   ac_cv_func_realloc_0_nonnull=no
12577 fi
12578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12579   conftest.$ac_objext conftest.beam conftest.$ac_ext
12580 fi
12581
12582 fi
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12584 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12585 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12586
12587 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12588
12589 else
12590   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12591
12592    case " $LIBOBJS " in
12593   *" realloc.$ac_objext "* ) ;;
12594   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12595  ;;
12596 esac
12597
12598
12599 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12600
12601 fi
12602
12603
12604 for ac_func in bzero memset socket strerror
12605 do :
12606   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12607 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12608 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12609   cat >>confdefs.h <<_ACEOF
12610 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12611 _ACEOF
12612
12613 fi
12614 done
12615
12616
12617 ac_config_files="$ac_config_files Makefile lib/Makefile test-server/Makefile"
12618
12619
12620 cat >confcache <<\_ACEOF
12621 # This file is a shell script that caches the results of configure
12622 # tests run on this system so they can be shared between configure
12623 # scripts and configure runs, see configure's option --config-cache.
12624 # It is not useful on other systems.  If it contains results you don't
12625 # want to keep, you may remove or edit it.
12626 #
12627 # config.status only pays attention to the cache file if you give it
12628 # the --recheck option to rerun configure.
12629 #
12630 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12631 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12632 # following values.
12633
12634 _ACEOF
12635
12636 # The following way of writing the cache mishandles newlines in values,
12637 # but we know of no workaround that is simple, portable, and efficient.
12638 # So, we kill variables containing newlines.
12639 # Ultrix sh set writes to stderr and can't be redirected directly,
12640 # and sets the high bit in the cache file unless we assign to the vars.
12641 (
12642   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12643     eval ac_val=\$$ac_var
12644     case $ac_val in #(
12645     *${as_nl}*)
12646       case $ac_var in #(
12647       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12648 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12649       esac
12650       case $ac_var in #(
12651       _ | IFS | as_nl) ;; #(
12652       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12653       *) { eval $ac_var=; unset $ac_var;} ;;
12654       esac ;;
12655     esac
12656   done
12657
12658   (set) 2>&1 |
12659     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12660     *${as_nl}ac_space=\ *)
12661       # `set' does not quote correctly, so add quotes: double-quote
12662       # substitution turns \\\\ into \\, and sed turns \\ into \.
12663       sed -n \
12664         "s/'/'\\\\''/g;
12665           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12666       ;; #(
12667     *)
12668       # `set' quotes correctly as required by POSIX, so do not add quotes.
12669       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12670       ;;
12671     esac |
12672     sort
12673 ) |
12674   sed '
12675      /^ac_cv_env_/b end
12676      t clear
12677      :clear
12678      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12679      t end
12680      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12681      :end' >>confcache
12682 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12683   if test -w "$cache_file"; then
12684     if test "x$cache_file" != "x/dev/null"; then
12685       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12686 $as_echo "$as_me: updating cache $cache_file" >&6;}
12687       if test ! -f "$cache_file" || test -h "$cache_file"; then
12688         cat confcache >"$cache_file"
12689       else
12690         case $cache_file in #(
12691         */* | ?:*)
12692           mv -f confcache "$cache_file"$$ &&
12693           mv -f "$cache_file"$$ "$cache_file" ;; #(
12694         *)
12695           mv -f confcache "$cache_file" ;;
12696         esac
12697       fi
12698     fi
12699   else
12700     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12701 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12702   fi
12703 fi
12704 rm -f confcache
12705
12706 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12707 # Let make expand exec_prefix.
12708 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12709
12710 DEFS=-DHAVE_CONFIG_H
12711
12712 ac_libobjs=
12713 ac_ltlibobjs=
12714 U=
12715 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12716   # 1. Remove the extension, and $U if already installed.
12717   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12718   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12719   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12720   #    will be set to the directory where LIBOBJS objects are built.
12721   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12722   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12723 done
12724 LIBOBJS=$ac_libobjs
12725
12726 LTLIBOBJS=$ac_ltlibobjs
12727
12728
12729  if test -n "$EXEEXT"; then
12730   am__EXEEXT_TRUE=
12731   am__EXEEXT_FALSE='#'
12732 else
12733   am__EXEEXT_TRUE='#'
12734   am__EXEEXT_FALSE=
12735 fi
12736
12737 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12738   as_fn_error $? "conditional \"AMDEP\" was never defined.
12739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12740 fi
12741 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12742   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12744 fi
12745 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12746   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12748 fi
12749 if test -z "${LIBCRYPTO_TRUE}" && test -z "${LIBCRYPTO_FALSE}"; then
12750   as_fn_error $? "conditional \"LIBCRYPTO\" was never defined.
12751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12752 fi
12753 if test -z "${EXT_GOOGLE_MUX_TRUE}" && test -z "${EXT_GOOGLE_MUX_FALSE}"; then
12754   as_fn_error $? "conditional \"EXT_GOOGLE_MUX\" was never defined.
12755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12756 fi
12757 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
12758   as_fn_error $? "conditional \"MINGW\" was never defined.
12759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12760 fi
12761 if test -z "${NOPING_TRUE}" && test -z "${NOPING_FALSE}"; then
12762   as_fn_error $? "conditional \"NOPING\" was never defined.
12763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12764 fi
12765
12766 : "${CONFIG_STATUS=./config.status}"
12767 ac_write_fail=0
12768 ac_clean_files_save=$ac_clean_files
12769 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12771 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12772 as_write_fail=0
12773 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12774 #! $SHELL
12775 # Generated by $as_me.
12776 # Run this file to recreate the current configuration.
12777 # Compiler output produced by configure, useful for debugging
12778 # configure, is in config.log if it exists.
12779
12780 debug=false
12781 ac_cs_recheck=false
12782 ac_cs_silent=false
12783
12784 SHELL=\${CONFIG_SHELL-$SHELL}
12785 export SHELL
12786 _ASEOF
12787 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12788 ## -------------------- ##
12789 ## M4sh Initialization. ##
12790 ## -------------------- ##
12791
12792 # Be more Bourne compatible
12793 DUALCASE=1; export DUALCASE # for MKS sh
12794 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12795   emulate sh
12796   NULLCMD=:
12797   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12798   # is contrary to our usage.  Disable this feature.
12799   alias -g '${1+"$@"}'='"$@"'
12800   setopt NO_GLOB_SUBST
12801 else
12802   case `(set -o) 2>/dev/null` in #(
12803   *posix*) :
12804     set -o posix ;; #(
12805   *) :
12806      ;;
12807 esac
12808 fi
12809
12810
12811 as_nl='
12812 '
12813 export as_nl
12814 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12815 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12818 # Prefer a ksh shell builtin over an external printf program on Solaris,
12819 # but without wasting forks for bash or zsh.
12820 if test -z "$BASH_VERSION$ZSH_VERSION" \
12821     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12822   as_echo='print -r --'
12823   as_echo_n='print -rn --'
12824 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12825   as_echo='printf %s\n'
12826   as_echo_n='printf %s'
12827 else
12828   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12829     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12830     as_echo_n='/usr/ucb/echo -n'
12831   else
12832     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12833     as_echo_n_body='eval
12834       arg=$1;
12835       case $arg in #(
12836       *"$as_nl"*)
12837         expr "X$arg" : "X\\(.*\\)$as_nl";
12838         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12839       esac;
12840       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12841     '
12842     export as_echo_n_body
12843     as_echo_n='sh -c $as_echo_n_body as_echo'
12844   fi
12845   export as_echo_body
12846   as_echo='sh -c $as_echo_body as_echo'
12847 fi
12848
12849 # The user is always right.
12850 if test "${PATH_SEPARATOR+set}" != set; then
12851   PATH_SEPARATOR=:
12852   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12853     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12854       PATH_SEPARATOR=';'
12855   }
12856 fi
12857
12858
12859 # IFS
12860 # We need space, tab and new line, in precisely that order.  Quoting is
12861 # there to prevent editors from complaining about space-tab.
12862 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12863 # splitting by setting IFS to empty value.)
12864 IFS=" ""        $as_nl"
12865
12866 # Find who we are.  Look in the path if we contain no directory separator.
12867 as_myself=
12868 case $0 in #((
12869   *[\\/]* ) as_myself=$0 ;;
12870   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12871 for as_dir in $PATH
12872 do
12873   IFS=$as_save_IFS
12874   test -z "$as_dir" && as_dir=.
12875     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12876   done
12877 IFS=$as_save_IFS
12878
12879      ;;
12880 esac
12881 # We did not find ourselves, most probably we were run as `sh COMMAND'
12882 # in which case we are not to be found in the path.
12883 if test "x$as_myself" = x; then
12884   as_myself=$0
12885 fi
12886 if test ! -f "$as_myself"; then
12887   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12888   exit 1
12889 fi
12890
12891 # Unset variables that we do not need and which cause bugs (e.g. in
12892 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12893 # suppresses any "Segmentation fault" message there.  '((' could
12894 # trigger a bug in pdksh 5.2.14.
12895 for as_var in BASH_ENV ENV MAIL MAILPATH
12896 do eval test x\${$as_var+set} = xset \
12897   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12898 done
12899 PS1='$ '
12900 PS2='> '
12901 PS4='+ '
12902
12903 # NLS nuisances.
12904 LC_ALL=C
12905 export LC_ALL
12906 LANGUAGE=C
12907 export LANGUAGE
12908
12909 # CDPATH.
12910 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12911
12912
12913 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12914 # ----------------------------------------
12915 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12916 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12917 # script with STATUS, using 1 if that was 0.
12918 as_fn_error ()
12919 {
12920   as_status=$1; test $as_status -eq 0 && as_status=1
12921   if test "$4"; then
12922     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12923     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12924   fi
12925   $as_echo "$as_me: error: $2" >&2
12926   as_fn_exit $as_status
12927 } # as_fn_error
12928
12929
12930 # as_fn_set_status STATUS
12931 # -----------------------
12932 # Set $? to STATUS, without forking.
12933 as_fn_set_status ()
12934 {
12935   return $1
12936 } # as_fn_set_status
12937
12938 # as_fn_exit STATUS
12939 # -----------------
12940 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12941 as_fn_exit ()
12942 {
12943   set +e
12944   as_fn_set_status $1
12945   exit $1
12946 } # as_fn_exit
12947
12948 # as_fn_unset VAR
12949 # ---------------
12950 # Portably unset VAR.
12951 as_fn_unset ()
12952 {
12953   { eval $1=; unset $1;}
12954 }
12955 as_unset=as_fn_unset
12956 # as_fn_append VAR VALUE
12957 # ----------------------
12958 # Append the text in VALUE to the end of the definition contained in VAR. Take
12959 # advantage of any shell optimizations that allow amortized linear growth over
12960 # repeated appends, instead of the typical quadratic growth present in naive
12961 # implementations.
12962 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12963   eval 'as_fn_append ()
12964   {
12965     eval $1+=\$2
12966   }'
12967 else
12968   as_fn_append ()
12969   {
12970     eval $1=\$$1\$2
12971   }
12972 fi # as_fn_append
12973
12974 # as_fn_arith ARG...
12975 # ------------------
12976 # Perform arithmetic evaluation on the ARGs, and store the result in the
12977 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12978 # must be portable across $(()) and expr.
12979 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12980   eval 'as_fn_arith ()
12981   {
12982     as_val=$(( $* ))
12983   }'
12984 else
12985   as_fn_arith ()
12986   {
12987     as_val=`expr "$@" || test $? -eq 1`
12988   }
12989 fi # as_fn_arith
12990
12991
12992 if expr a : '\(a\)' >/dev/null 2>&1 &&
12993    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12994   as_expr=expr
12995 else
12996   as_expr=false
12997 fi
12998
12999 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13000   as_basename=basename
13001 else
13002   as_basename=false
13003 fi
13004
13005 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13006   as_dirname=dirname
13007 else
13008   as_dirname=false
13009 fi
13010
13011 as_me=`$as_basename -- "$0" ||
13012 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13013          X"$0" : 'X\(//\)$' \| \
13014          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13015 $as_echo X/"$0" |
13016     sed '/^.*\/\([^/][^/]*\)\/*$/{
13017             s//\1/
13018             q
13019           }
13020           /^X\/\(\/\/\)$/{
13021             s//\1/
13022             q
13023           }
13024           /^X\/\(\/\).*/{
13025             s//\1/
13026             q
13027           }
13028           s/.*/./; q'`
13029
13030 # Avoid depending upon Character Ranges.
13031 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13032 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13033 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13034 as_cr_digits='0123456789'
13035 as_cr_alnum=$as_cr_Letters$as_cr_digits
13036
13037 ECHO_C= ECHO_N= ECHO_T=
13038 case `echo -n x` in #(((((
13039 -n*)
13040   case `echo 'xy\c'` in
13041   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13042   xy)  ECHO_C='\c';;
13043   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13044        ECHO_T=' ';;
13045   esac;;
13046 *)
13047   ECHO_N='-n';;
13048 esac
13049
13050 rm -f conf$$ conf$$.exe conf$$.file
13051 if test -d conf$$.dir; then
13052   rm -f conf$$.dir/conf$$.file
13053 else
13054   rm -f conf$$.dir
13055   mkdir conf$$.dir 2>/dev/null
13056 fi
13057 if (echo >conf$$.file) 2>/dev/null; then
13058   if ln -s conf$$.file conf$$ 2>/dev/null; then
13059     as_ln_s='ln -s'
13060     # ... but there are two gotchas:
13061     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13062     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13063     # In both cases, we have to default to `cp -p'.
13064     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13065       as_ln_s='cp -p'
13066   elif ln conf$$.file conf$$ 2>/dev/null; then
13067     as_ln_s=ln
13068   else
13069     as_ln_s='cp -p'
13070   fi
13071 else
13072   as_ln_s='cp -p'
13073 fi
13074 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13075 rmdir conf$$.dir 2>/dev/null
13076
13077
13078 # as_fn_mkdir_p
13079 # -------------
13080 # Create "$as_dir" as a directory, including parents if necessary.
13081 as_fn_mkdir_p ()
13082 {
13083
13084   case $as_dir in #(
13085   -*) as_dir=./$as_dir;;
13086   esac
13087   test -d "$as_dir" || eval $as_mkdir_p || {
13088     as_dirs=
13089     while :; do
13090       case $as_dir in #(
13091       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13092       *) as_qdir=$as_dir;;
13093       esac
13094       as_dirs="'$as_qdir' $as_dirs"
13095       as_dir=`$as_dirname -- "$as_dir" ||
13096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13097          X"$as_dir" : 'X\(//\)[^/]' \| \
13098          X"$as_dir" : 'X\(//\)$' \| \
13099          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13100 $as_echo X"$as_dir" |
13101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13102             s//\1/
13103             q
13104           }
13105           /^X\(\/\/\)[^/].*/{
13106             s//\1/
13107             q
13108           }
13109           /^X\(\/\/\)$/{
13110             s//\1/
13111             q
13112           }
13113           /^X\(\/\).*/{
13114             s//\1/
13115             q
13116           }
13117           s/.*/./; q'`
13118       test -d "$as_dir" && break
13119     done
13120     test -z "$as_dirs" || eval "mkdir $as_dirs"
13121   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13122
13123
13124 } # as_fn_mkdir_p
13125 if mkdir -p . 2>/dev/null; then
13126   as_mkdir_p='mkdir -p "$as_dir"'
13127 else
13128   test -d ./-p && rmdir ./-p
13129   as_mkdir_p=false
13130 fi
13131
13132 if test -x / >/dev/null 2>&1; then
13133   as_test_x='test -x'
13134 else
13135   if ls -dL / >/dev/null 2>&1; then
13136     as_ls_L_option=L
13137   else
13138     as_ls_L_option=
13139   fi
13140   as_test_x='
13141     eval sh -c '\''
13142       if test -d "$1"; then
13143         test -d "$1/.";
13144       else
13145         case $1 in #(
13146         -*)set "./$1";;
13147         esac;
13148         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13149         ???[sx]*):;;*)false;;esac;fi
13150     '\'' sh
13151   '
13152 fi
13153 as_executable_p=$as_test_x
13154
13155 # Sed expression to map a string onto a valid CPP name.
13156 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13157
13158 # Sed expression to map a string onto a valid variable name.
13159 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13160
13161
13162 exec 6>&1
13163 ## ----------------------------------- ##
13164 ## Main body of $CONFIG_STATUS script. ##
13165 ## ----------------------------------- ##
13166 _ASEOF
13167 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13168
13169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13170 # Save the log message, to keep $0 and so on meaningful, and to
13171 # report actual input values of CONFIG_FILES etc. instead of their
13172 # values after options handling.
13173 ac_log="
13174 This file was extended by libwebsockets $as_me 0.3, which was
13175 generated by GNU Autoconf 2.68.  Invocation command line was
13176
13177   CONFIG_FILES    = $CONFIG_FILES
13178   CONFIG_HEADERS  = $CONFIG_HEADERS
13179   CONFIG_LINKS    = $CONFIG_LINKS
13180   CONFIG_COMMANDS = $CONFIG_COMMANDS
13181   $ $0 $@
13182
13183 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13184 "
13185
13186 _ACEOF
13187
13188 case $ac_config_files in *"
13189 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13190 esac
13191
13192 case $ac_config_headers in *"
13193 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13194 esac
13195
13196
13197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13198 # Files that config.status was made for.
13199 config_files="$ac_config_files"
13200 config_headers="$ac_config_headers"
13201 config_commands="$ac_config_commands"
13202
13203 _ACEOF
13204
13205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13206 ac_cs_usage="\
13207 \`$as_me' instantiates files and other configuration actions
13208 from templates according to the current configuration.  Unless the files
13209 and actions are specified as TAGs, all are instantiated by default.
13210
13211 Usage: $0 [OPTION]... [TAG]...
13212
13213   -h, --help       print this help, then exit
13214   -V, --version    print version number and configuration settings, then exit
13215       --config     print configuration, then exit
13216   -q, --quiet, --silent
13217                    do not print progress messages
13218   -d, --debug      don't remove temporary files
13219       --recheck    update $as_me by reconfiguring in the same conditions
13220       --file=FILE[:TEMPLATE]
13221                    instantiate the configuration file FILE
13222       --header=FILE[:TEMPLATE]
13223                    instantiate the configuration header FILE
13224
13225 Configuration files:
13226 $config_files
13227
13228 Configuration headers:
13229 $config_headers
13230
13231 Configuration commands:
13232 $config_commands
13233
13234 Report bugs to <andy@warmcat.com>."
13235
13236 _ACEOF
13237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13238 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13239 ac_cs_version="\\
13240 libwebsockets config.status 0.3
13241 configured by $0, generated by GNU Autoconf 2.68,
13242   with options \\"\$ac_cs_config\\"
13243
13244 Copyright (C) 2010 Free Software Foundation, Inc.
13245 This config.status script is free software; the Free Software Foundation
13246 gives unlimited permission to copy, distribute and modify it."
13247
13248 ac_pwd='$ac_pwd'
13249 srcdir='$srcdir'
13250 INSTALL='$INSTALL'
13251 MKDIR_P='$MKDIR_P'
13252 AWK='$AWK'
13253 test -n "\$AWK" || AWK=awk
13254 _ACEOF
13255
13256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13257 # The default lists apply if the user does not specify any file.
13258 ac_need_defaults=:
13259 while test $# != 0
13260 do
13261   case $1 in
13262   --*=?*)
13263     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13264     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13265     ac_shift=:
13266     ;;
13267   --*=)
13268     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13269     ac_optarg=
13270     ac_shift=:
13271     ;;
13272   *)
13273     ac_option=$1
13274     ac_optarg=$2
13275     ac_shift=shift
13276     ;;
13277   esac
13278
13279   case $ac_option in
13280   # Handling of the options.
13281   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13282     ac_cs_recheck=: ;;
13283   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13284     $as_echo "$ac_cs_version"; exit ;;
13285   --config | --confi | --conf | --con | --co | --c )
13286     $as_echo "$ac_cs_config"; exit ;;
13287   --debug | --debu | --deb | --de | --d | -d )
13288     debug=: ;;
13289   --file | --fil | --fi | --f )
13290     $ac_shift
13291     case $ac_optarg in
13292     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13293     '') as_fn_error $? "missing file argument" ;;
13294     esac
13295     as_fn_append CONFIG_FILES " '$ac_optarg'"
13296     ac_need_defaults=false;;
13297   --header | --heade | --head | --hea )
13298     $ac_shift
13299     case $ac_optarg in
13300     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13301     esac
13302     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13303     ac_need_defaults=false;;
13304   --he | --h)
13305     # Conflict between --help and --header
13306     as_fn_error $? "ambiguous option: \`$1'
13307 Try \`$0 --help' for more information.";;
13308   --help | --hel | -h )
13309     $as_echo "$ac_cs_usage"; exit ;;
13310   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13311   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13312     ac_cs_silent=: ;;
13313
13314   # This is an error.
13315   -*) as_fn_error $? "unrecognized option: \`$1'
13316 Try \`$0 --help' for more information." ;;
13317
13318   *) as_fn_append ac_config_targets " $1"
13319      ac_need_defaults=false ;;
13320
13321   esac
13322   shift
13323 done
13324
13325 ac_configure_extra_args=
13326
13327 if $ac_cs_silent; then
13328   exec 6>/dev/null
13329   ac_configure_extra_args="$ac_configure_extra_args --silent"
13330 fi
13331
13332 _ACEOF
13333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13334 if \$ac_cs_recheck; then
13335   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13336   shift
13337   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13338   CONFIG_SHELL='$SHELL'
13339   export CONFIG_SHELL
13340   exec "\$@"
13341 fi
13342
13343 _ACEOF
13344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13345 exec 5>>config.log
13346 {
13347   echo
13348   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13349 ## Running $as_me. ##
13350 _ASBOX
13351   $as_echo "$ac_log"
13352 } >&5
13353
13354 _ACEOF
13355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13356 #
13357 # INIT-COMMANDS
13358 #
13359 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13360
13361
13362 # The HP-UX ksh and POSIX shell print the target directory to stdout
13363 # if CDPATH is set.
13364 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13365
13366 sed_quote_subst='$sed_quote_subst'
13367 double_quote_subst='$double_quote_subst'
13368 delay_variable_subst='$delay_variable_subst'
13369 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13370 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13371 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13372 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13373 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13374 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13375 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13376 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13377 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13378 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13379 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13380 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13381 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13382 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13383 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13384 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13385 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13386 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13387 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13388 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13389 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13390 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13391 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13392 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13393 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13394 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13395 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13396 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13397 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13398 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13399 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13400 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13401 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13402 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13403 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13404 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13405 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13406 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13407 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13408 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13409 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13410 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13411 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13412 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13413 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13414 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13415 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13416 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13417 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13418 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13419 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13420 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13421 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13422 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13423 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13424 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13425 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"`'
13426 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13427 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13428 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13429 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13430 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13431 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13432 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13433 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13434 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13435 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13436 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13437 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13438 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13439 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13440 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13441 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13442 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13443 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13444 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13445 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13446 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13447 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13448 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13449 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13450 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13451 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13452 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13453 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13454 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13455 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13456 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13457 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13458 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13459 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13460 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13461 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13462 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13463 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13464 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13465 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13466 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13467 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13468 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13469 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13470 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13471 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13472 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13473 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13474 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13475 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13476 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13477 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13478 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13479 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13480 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13481 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13482 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13483 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13484 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13485 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13486 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13487 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13488 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13489 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13490 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13491 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13492 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13493 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13494 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13495 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13496 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13497 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13498 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13499
13500 LTCC='$LTCC'
13501 LTCFLAGS='$LTCFLAGS'
13502 compiler='$compiler_DEFAULT'
13503
13504 # A function that is used when there is no print builtin or printf.
13505 func_fallback_echo ()
13506 {
13507   eval 'cat <<_LTECHO_EOF
13508 \$1
13509 _LTECHO_EOF'
13510 }
13511
13512 # Quote evaled strings.
13513 for var in SHELL \
13514 ECHO \
13515 PATH_SEPARATOR \
13516 SED \
13517 GREP \
13518 EGREP \
13519 FGREP \
13520 LD \
13521 NM \
13522 LN_S \
13523 lt_SP2NL \
13524 lt_NL2SP \
13525 reload_flag \
13526 OBJDUMP \
13527 deplibs_check_method \
13528 file_magic_cmd \
13529 file_magic_glob \
13530 want_nocaseglob \
13531 DLLTOOL \
13532 sharedlib_from_linklib_cmd \
13533 AR \
13534 AR_FLAGS \
13535 archiver_list_spec \
13536 STRIP \
13537 RANLIB \
13538 CC \
13539 CFLAGS \
13540 compiler \
13541 lt_cv_sys_global_symbol_pipe \
13542 lt_cv_sys_global_symbol_to_cdecl \
13543 lt_cv_sys_global_symbol_to_c_name_address \
13544 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13545 nm_file_list_spec \
13546 lt_prog_compiler_no_builtin_flag \
13547 lt_prog_compiler_pic \
13548 lt_prog_compiler_wl \
13549 lt_prog_compiler_static \
13550 lt_cv_prog_compiler_c_o \
13551 need_locks \
13552 MANIFEST_TOOL \
13553 DSYMUTIL \
13554 NMEDIT \
13555 LIPO \
13556 OTOOL \
13557 OTOOL64 \
13558 shrext_cmds \
13559 export_dynamic_flag_spec \
13560 whole_archive_flag_spec \
13561 compiler_needs_object \
13562 with_gnu_ld \
13563 allow_undefined_flag \
13564 no_undefined_flag \
13565 hardcode_libdir_flag_spec \
13566 hardcode_libdir_separator \
13567 exclude_expsyms \
13568 include_expsyms \
13569 file_list_spec \
13570 variables_saved_for_relink \
13571 libname_spec \
13572 library_names_spec \
13573 soname_spec \
13574 install_override_mode \
13575 finish_eval \
13576 old_striplib \
13577 striplib; do
13578     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13579     *[\\\\\\\`\\"\\\$]*)
13580       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13581       ;;
13582     *)
13583       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13584       ;;
13585     esac
13586 done
13587
13588 # Double-quote double-evaled strings.
13589 for var in reload_cmds \
13590 old_postinstall_cmds \
13591 old_postuninstall_cmds \
13592 old_archive_cmds \
13593 extract_expsyms_cmds \
13594 old_archive_from_new_cmds \
13595 old_archive_from_expsyms_cmds \
13596 archive_cmds \
13597 archive_expsym_cmds \
13598 module_cmds \
13599 module_expsym_cmds \
13600 export_symbols_cmds \
13601 prelink_cmds \
13602 postlink_cmds \
13603 postinstall_cmds \
13604 postuninstall_cmds \
13605 finish_cmds \
13606 sys_lib_search_path_spec \
13607 sys_lib_dlsearch_path_spec; do
13608     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13609     *[\\\\\\\`\\"\\\$]*)
13610       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13611       ;;
13612     *)
13613       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13614       ;;
13615     esac
13616 done
13617
13618 ac_aux_dir='$ac_aux_dir'
13619 xsi_shell='$xsi_shell'
13620 lt_shell_append='$lt_shell_append'
13621
13622 # See if we are running on zsh, and set the options which allow our
13623 # commands through without removal of \ escapes INIT.
13624 if test -n "\${ZSH_VERSION+set}" ; then
13625    setopt NO_GLOB_SUBST
13626 fi
13627
13628
13629     PACKAGE='$PACKAGE'
13630     VERSION='$VERSION'
13631     TIMESTAMP='$TIMESTAMP'
13632     RM='$RM'
13633     ofile='$ofile'
13634
13635
13636
13637
13638 _ACEOF
13639
13640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13641
13642 # Handling of arguments.
13643 for ac_config_target in $ac_config_targets
13644 do
13645   case $ac_config_target in
13646     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13647     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13648     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13649     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13650     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13651     "test-server/Makefile") CONFIG_FILES="$CONFIG_FILES test-server/Makefile" ;;
13652
13653   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13654   esac
13655 done
13656
13657
13658 # If the user did not use the arguments to specify the items to instantiate,
13659 # then the envvar interface is used.  Set only those that are not.
13660 # We use the long form for the default assignment because of an extremely
13661 # bizarre bug on SunOS 4.1.3.
13662 if $ac_need_defaults; then
13663   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13664   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13665   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13666 fi
13667
13668 # Have a temporary directory for convenience.  Make it in the build tree
13669 # simply because there is no reason against having it here, and in addition,
13670 # creating and moving files from /tmp can sometimes cause problems.
13671 # Hook for its removal unless debugging.
13672 # Note that there is a small window in which the directory will not be cleaned:
13673 # after its creation but before its name has been assigned to `$tmp'.
13674 $debug ||
13675 {
13676   tmp= ac_tmp=
13677   trap 'exit_status=$?
13678   : "${ac_tmp:=$tmp}"
13679   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13680 ' 0
13681   trap 'as_fn_exit 1' 1 2 13 15
13682 }
13683 # Create a (secure) tmp directory for tmp files.
13684
13685 {
13686   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13687   test -d "$tmp"
13688 }  ||
13689 {
13690   tmp=./conf$$-$RANDOM
13691   (umask 077 && mkdir "$tmp")
13692 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13693 ac_tmp=$tmp
13694
13695 # Set up the scripts for CONFIG_FILES section.
13696 # No need to generate them if there are no CONFIG_FILES.
13697 # This happens for instance with `./config.status config.h'.
13698 if test -n "$CONFIG_FILES"; then
13699
13700
13701 ac_cr=`echo X | tr X '\015'`
13702 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13703 # But we know of no other shell where ac_cr would be empty at this
13704 # point, so we can use a bashism as a fallback.
13705 if test "x$ac_cr" = x; then
13706   eval ac_cr=\$\'\\r\'
13707 fi
13708 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13709 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13710   ac_cs_awk_cr='\\r'
13711 else
13712   ac_cs_awk_cr=$ac_cr
13713 fi
13714
13715 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13716 _ACEOF
13717
13718
13719 {
13720   echo "cat >conf$$subs.awk <<_ACEOF" &&
13721   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13722   echo "_ACEOF"
13723 } >conf$$subs.sh ||
13724   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13725 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13726 ac_delim='%!_!# '
13727 for ac_last_try in false false false false false :; do
13728   . ./conf$$subs.sh ||
13729     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13730
13731   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13732   if test $ac_delim_n = $ac_delim_num; then
13733     break
13734   elif $ac_last_try; then
13735     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13736   else
13737     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13738   fi
13739 done
13740 rm -f conf$$subs.sh
13741
13742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13743 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13744 _ACEOF
13745 sed -n '
13746 h
13747 s/^/S["/; s/!.*/"]=/
13748 p
13749 g
13750 s/^[^!]*!//
13751 :repl
13752 t repl
13753 s/'"$ac_delim"'$//
13754 t delim
13755 :nl
13756 h
13757 s/\(.\{148\}\)..*/\1/
13758 t more1
13759 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13760 p
13761 n
13762 b repl
13763 :more1
13764 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13765 p
13766 g
13767 s/.\{148\}//
13768 t nl
13769 :delim
13770 h
13771 s/\(.\{148\}\)..*/\1/
13772 t more2
13773 s/["\\]/\\&/g; s/^/"/; s/$/"/
13774 p
13775 b
13776 :more2
13777 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13778 p
13779 g
13780 s/.\{148\}//
13781 t delim
13782 ' <conf$$subs.awk | sed '
13783 /^[^""]/{
13784   N
13785   s/\n//
13786 }
13787 ' >>$CONFIG_STATUS || ac_write_fail=1
13788 rm -f conf$$subs.awk
13789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13790 _ACAWK
13791 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13792   for (key in S) S_is_set[key] = 1
13793   FS = "\a"
13794
13795 }
13796 {
13797   line = $ 0
13798   nfields = split(line, field, "@")
13799   substed = 0
13800   len = length(field[1])
13801   for (i = 2; i < nfields; i++) {
13802     key = field[i]
13803     keylen = length(key)
13804     if (S_is_set[key]) {
13805       value = S[key]
13806       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13807       len += length(value) + length(field[++i])
13808       substed = 1
13809     } else
13810       len += 1 + keylen
13811   }
13812
13813   print line
13814 }
13815
13816 _ACAWK
13817 _ACEOF
13818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13819 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13820   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13821 else
13822   cat
13823 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13824   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13825 _ACEOF
13826
13827 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13828 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13829 # trailing colons and then remove the whole line if VPATH becomes empty
13830 # (actually we leave an empty line to preserve line numbers).
13831 if test "x$srcdir" = x.; then
13832   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13833 h
13834 s///
13835 s/^/:/
13836 s/[      ]*$/:/
13837 s/:\$(srcdir):/:/g
13838 s/:\${srcdir}:/:/g
13839 s/:@srcdir@:/:/g
13840 s/^:*//
13841 s/:*$//
13842 x
13843 s/\(=[   ]*\).*/\1/
13844 G
13845 s/\n//
13846 s/^[^=]*=[       ]*$//
13847 }'
13848 fi
13849
13850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13851 fi # test -n "$CONFIG_FILES"
13852
13853 # Set up the scripts for CONFIG_HEADERS section.
13854 # No need to generate them if there are no CONFIG_HEADERS.
13855 # This happens for instance with `./config.status Makefile'.
13856 if test -n "$CONFIG_HEADERS"; then
13857 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13858 BEGIN {
13859 _ACEOF
13860
13861 # Transform confdefs.h into an awk script `defines.awk', embedded as
13862 # here-document in config.status, that substitutes the proper values into
13863 # config.h.in to produce config.h.
13864
13865 # Create a delimiter string that does not exist in confdefs.h, to ease
13866 # handling of long lines.
13867 ac_delim='%!_!# '
13868 for ac_last_try in false false :; do
13869   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13870   if test -z "$ac_tt"; then
13871     break
13872   elif $ac_last_try; then
13873     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13874   else
13875     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13876   fi
13877 done
13878
13879 # For the awk script, D is an array of macro values keyed by name,
13880 # likewise P contains macro parameters if any.  Preserve backslash
13881 # newline sequences.
13882
13883 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13884 sed -n '
13885 s/.\{148\}/&'"$ac_delim"'/g
13886 t rset
13887 :rset
13888 s/^[     ]*#[    ]*define[       ][      ]*/ /
13889 t def
13890 d
13891 :def
13892 s/\\$//
13893 t bsnl
13894 s/["\\]/\\&/g
13895 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13896 D["\1"]=" \3"/p
13897 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13898 d
13899 :bsnl
13900 s/["\\]/\\&/g
13901 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13902 D["\1"]=" \3\\\\\\n"\\/p
13903 t cont
13904 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13905 t cont
13906 d
13907 :cont
13908 n
13909 s/.\{148\}/&'"$ac_delim"'/g
13910 t clear
13911 :clear
13912 s/\\$//
13913 t bsnlc
13914 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13915 d
13916 :bsnlc
13917 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13918 b cont
13919 ' <confdefs.h | sed '
13920 s/'"$ac_delim"'/"\\\
13921 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13922
13923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13924   for (key in D) D_is_set[key] = 1
13925   FS = "\a"
13926 }
13927 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13928   line = \$ 0
13929   split(line, arg, " ")
13930   if (arg[1] == "#") {
13931     defundef = arg[2]
13932     mac1 = arg[3]
13933   } else {
13934     defundef = substr(arg[1], 2)
13935     mac1 = arg[2]
13936   }
13937   split(mac1, mac2, "(") #)
13938   macro = mac2[1]
13939   prefix = substr(line, 1, index(line, defundef) - 1)
13940   if (D_is_set[macro]) {
13941     # Preserve the white space surrounding the "#".
13942     print prefix "define", macro P[macro] D[macro]
13943     next
13944   } else {
13945     # Replace #undef with comments.  This is necessary, for example,
13946     # in the case of _POSIX_SOURCE, which is predefined and required
13947     # on some systems where configure will not decide to define it.
13948     if (defundef == "undef") {
13949       print "/*", prefix defundef, macro, "*/"
13950       next
13951     }
13952   }
13953 }
13954 { print }
13955 _ACAWK
13956 _ACEOF
13957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13958   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13959 fi # test -n "$CONFIG_HEADERS"
13960
13961
13962 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13963 shift
13964 for ac_tag
13965 do
13966   case $ac_tag in
13967   :[FHLC]) ac_mode=$ac_tag; continue;;
13968   esac
13969   case $ac_mode$ac_tag in
13970   :[FHL]*:*);;
13971   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13972   :[FH]-) ac_tag=-:-;;
13973   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13974   esac
13975   ac_save_IFS=$IFS
13976   IFS=:
13977   set x $ac_tag
13978   IFS=$ac_save_IFS
13979   shift
13980   ac_file=$1
13981   shift
13982
13983   case $ac_mode in
13984   :L) ac_source=$1;;
13985   :[FH])
13986     ac_file_inputs=
13987     for ac_f
13988     do
13989       case $ac_f in
13990       -) ac_f="$ac_tmp/stdin";;
13991       *) # Look for the file first in the build tree, then in the source tree
13992          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13993          # because $ac_f cannot contain `:'.
13994          test -f "$ac_f" ||
13995            case $ac_f in
13996            [\\/$]*) false;;
13997            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13998            esac ||
13999            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14000       esac
14001       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14002       as_fn_append ac_file_inputs " '$ac_f'"
14003     done
14004
14005     # Let's still pretend it is `configure' which instantiates (i.e., don't
14006     # use $as_me), people would be surprised to read:
14007     #    /* config.h.  Generated by config.status.  */
14008     configure_input='Generated from '`
14009           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14010         `' by configure.'
14011     if test x"$ac_file" != x-; then
14012       configure_input="$ac_file.  $configure_input"
14013       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14014 $as_echo "$as_me: creating $ac_file" >&6;}
14015     fi
14016     # Neutralize special characters interpreted by sed in replacement strings.
14017     case $configure_input in #(
14018     *\&* | *\|* | *\\* )
14019        ac_sed_conf_input=`$as_echo "$configure_input" |
14020        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14021     *) ac_sed_conf_input=$configure_input;;
14022     esac
14023
14024     case $ac_tag in
14025     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14026       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14027     esac
14028     ;;
14029   esac
14030
14031   ac_dir=`$as_dirname -- "$ac_file" ||
14032 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14033          X"$ac_file" : 'X\(//\)[^/]' \| \
14034          X"$ac_file" : 'X\(//\)$' \| \
14035          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14036 $as_echo X"$ac_file" |
14037     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14038             s//\1/
14039             q
14040           }
14041           /^X\(\/\/\)[^/].*/{
14042             s//\1/
14043             q
14044           }
14045           /^X\(\/\/\)$/{
14046             s//\1/
14047             q
14048           }
14049           /^X\(\/\).*/{
14050             s//\1/
14051             q
14052           }
14053           s/.*/./; q'`
14054   as_dir="$ac_dir"; as_fn_mkdir_p
14055   ac_builddir=.
14056
14057 case "$ac_dir" in
14058 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14059 *)
14060   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14061   # A ".." for each directory in $ac_dir_suffix.
14062   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14063   case $ac_top_builddir_sub in
14064   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14065   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14066   esac ;;
14067 esac
14068 ac_abs_top_builddir=$ac_pwd
14069 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14070 # for backward compatibility:
14071 ac_top_builddir=$ac_top_build_prefix
14072
14073 case $srcdir in
14074   .)  # We are building in place.
14075     ac_srcdir=.
14076     ac_top_srcdir=$ac_top_builddir_sub
14077     ac_abs_top_srcdir=$ac_pwd ;;
14078   [\\/]* | ?:[\\/]* )  # Absolute name.
14079     ac_srcdir=$srcdir$ac_dir_suffix;
14080     ac_top_srcdir=$srcdir
14081     ac_abs_top_srcdir=$srcdir ;;
14082   *) # Relative name.
14083     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14084     ac_top_srcdir=$ac_top_build_prefix$srcdir
14085     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14086 esac
14087 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14088
14089
14090   case $ac_mode in
14091   :F)
14092   #
14093   # CONFIG_FILE
14094   #
14095
14096   case $INSTALL in
14097   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14098   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14099   esac
14100   ac_MKDIR_P=$MKDIR_P
14101   case $MKDIR_P in
14102   [\\/$]* | ?:[\\/]* ) ;;
14103   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14104   esac
14105 _ACEOF
14106
14107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14108 # If the template does not know about datarootdir, expand it.
14109 # FIXME: This hack should be removed a few years after 2.60.
14110 ac_datarootdir_hack=; ac_datarootdir_seen=
14111 ac_sed_dataroot='
14112 /datarootdir/ {
14113   p
14114   q
14115 }
14116 /@datadir@/p
14117 /@docdir@/p
14118 /@infodir@/p
14119 /@localedir@/p
14120 /@mandir@/p'
14121 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14122 *datarootdir*) ac_datarootdir_seen=yes;;
14123 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14124   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14125 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14126 _ACEOF
14127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14128   ac_datarootdir_hack='
14129   s&@datadir@&$datadir&g
14130   s&@docdir@&$docdir&g
14131   s&@infodir@&$infodir&g
14132   s&@localedir@&$localedir&g
14133   s&@mandir@&$mandir&g
14134   s&\\\${datarootdir}&$datarootdir&g' ;;
14135 esac
14136 _ACEOF
14137
14138 # Neutralize VPATH when `$srcdir' = `.'.
14139 # Shell code in configure.ac might set extrasub.
14140 # FIXME: do we really want to maintain this feature?
14141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14142 ac_sed_extra="$ac_vpsub
14143 $extrasub
14144 _ACEOF
14145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14146 :t
14147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14148 s|@configure_input@|$ac_sed_conf_input|;t t
14149 s&@top_builddir@&$ac_top_builddir_sub&;t t
14150 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14151 s&@srcdir@&$ac_srcdir&;t t
14152 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14153 s&@top_srcdir@&$ac_top_srcdir&;t t
14154 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14155 s&@builddir@&$ac_builddir&;t t
14156 s&@abs_builddir@&$ac_abs_builddir&;t t
14157 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14158 s&@INSTALL@&$ac_INSTALL&;t t
14159 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14160 $ac_datarootdir_hack
14161 "
14162 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14163   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14164
14165 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14166   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14167   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14168       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14169   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14170 which seems to be undefined.  Please make sure it is defined" >&5
14171 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14172 which seems to be undefined.  Please make sure it is defined" >&2;}
14173
14174   rm -f "$ac_tmp/stdin"
14175   case $ac_file in
14176   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14177   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14178   esac \
14179   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14180  ;;
14181   :H)
14182   #
14183   # CONFIG_HEADER
14184   #
14185   if test x"$ac_file" != x-; then
14186     {
14187       $as_echo "/* $configure_input  */" \
14188       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14189     } >"$ac_tmp/config.h" \
14190       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14191     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14192       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14193 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14194     else
14195       rm -f "$ac_file"
14196       mv "$ac_tmp/config.h" "$ac_file" \
14197         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14198     fi
14199   else
14200     $as_echo "/* $configure_input  */" \
14201       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14202       || as_fn_error $? "could not create -" "$LINENO" 5
14203   fi
14204 # Compute "$ac_file"'s index in $config_headers.
14205 _am_arg="$ac_file"
14206 _am_stamp_count=1
14207 for _am_header in $config_headers :; do
14208   case $_am_header in
14209     $_am_arg | $_am_arg:* )
14210       break ;;
14211     * )
14212       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14213   esac
14214 done
14215 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14216 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14217          X"$_am_arg" : 'X\(//\)[^/]' \| \
14218          X"$_am_arg" : 'X\(//\)$' \| \
14219          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14220 $as_echo X"$_am_arg" |
14221     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14222             s//\1/
14223             q
14224           }
14225           /^X\(\/\/\)[^/].*/{
14226             s//\1/
14227             q
14228           }
14229           /^X\(\/\/\)$/{
14230             s//\1/
14231             q
14232           }
14233           /^X\(\/\).*/{
14234             s//\1/
14235             q
14236           }
14237           s/.*/./; q'`/stamp-h$_am_stamp_count
14238  ;;
14239
14240   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14241 $as_echo "$as_me: executing $ac_file commands" >&6;}
14242  ;;
14243   esac
14244
14245
14246   case $ac_file$ac_mode in
14247     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14248   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14249   # are listed without --file.  Let's play safe and only enable the eval
14250   # if we detect the quoting.
14251   case $CONFIG_FILES in
14252   *\'*) eval set x "$CONFIG_FILES" ;;
14253   *)   set x $CONFIG_FILES ;;
14254   esac
14255   shift
14256   for mf
14257   do
14258     # Strip MF so we end up with the name of the file.
14259     mf=`echo "$mf" | sed -e 's/:.*$//'`
14260     # Check whether this is an Automake generated Makefile or not.
14261     # We used to match only the files named `Makefile.in', but
14262     # some people rename them; so instead we look at the file content.
14263     # Grep'ing the first line is not enough: some people post-process
14264     # each Makefile.in and add a new line on top of each file to say so.
14265     # Grep'ing the whole file is not good either: AIX grep has a line
14266     # limit of 2048, but all sed's we know have understand at least 4000.
14267     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14268       dirpart=`$as_dirname -- "$mf" ||
14269 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14270          X"$mf" : 'X\(//\)[^/]' \| \
14271          X"$mf" : 'X\(//\)$' \| \
14272          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14273 $as_echo X"$mf" |
14274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14275             s//\1/
14276             q
14277           }
14278           /^X\(\/\/\)[^/].*/{
14279             s//\1/
14280             q
14281           }
14282           /^X\(\/\/\)$/{
14283             s//\1/
14284             q
14285           }
14286           /^X\(\/\).*/{
14287             s//\1/
14288             q
14289           }
14290           s/.*/./; q'`
14291     else
14292       continue
14293     fi
14294     # Extract the definition of DEPDIR, am__include, and am__quote
14295     # from the Makefile without running `make'.
14296     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14297     test -z "$DEPDIR" && continue
14298     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14299     test -z "am__include" && continue
14300     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14301     # When using ansi2knr, U may be empty or an underscore; expand it
14302     U=`sed -n 's/^U = //p' < "$mf"`
14303     # Find all dependency output files, they are included files with
14304     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14305     # simplest approach to changing $(DEPDIR) to its actual value in the
14306     # expansion.
14307     for file in `sed -n "
14308       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14309          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14310       # Make sure the directory exists.
14311       test -f "$dirpart/$file" && continue
14312       fdir=`$as_dirname -- "$file" ||
14313 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14314          X"$file" : 'X\(//\)[^/]' \| \
14315          X"$file" : 'X\(//\)$' \| \
14316          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14317 $as_echo X"$file" |
14318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14319             s//\1/
14320             q
14321           }
14322           /^X\(\/\/\)[^/].*/{
14323             s//\1/
14324             q
14325           }
14326           /^X\(\/\/\)$/{
14327             s//\1/
14328             q
14329           }
14330           /^X\(\/\).*/{
14331             s//\1/
14332             q
14333           }
14334           s/.*/./; q'`
14335       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14336       # echo "creating $dirpart/$file"
14337       echo '# dummy' > "$dirpart/$file"
14338     done
14339   done
14340 }
14341  ;;
14342     "libtool":C)
14343
14344     # See if we are running on zsh, and set the options which allow our
14345     # commands through without removal of \ escapes.
14346     if test -n "${ZSH_VERSION+set}" ; then
14347       setopt NO_GLOB_SUBST
14348     fi
14349
14350     cfgfile="${ofile}T"
14351     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14352     $RM "$cfgfile"
14353
14354     cat <<_LT_EOF >> "$cfgfile"
14355 #! $SHELL
14356
14357 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14358 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14359 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14360 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14361 #
14362 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14363 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14364 #                 Foundation, Inc.
14365 #   Written by Gordon Matzigkeit, 1996
14366 #
14367 #   This file is part of GNU Libtool.
14368 #
14369 # GNU Libtool is free software; you can redistribute it and/or
14370 # modify it under the terms of the GNU General Public License as
14371 # published by the Free Software Foundation; either version 2 of
14372 # the License, or (at your option) any later version.
14373 #
14374 # As a special exception to the GNU General Public License,
14375 # if you distribute this file as part of a program or library that
14376 # is built using GNU Libtool, you may include this file under the
14377 # same distribution terms that you use for the rest of that program.
14378 #
14379 # GNU Libtool is distributed in the hope that it will be useful,
14380 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14381 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14382 # GNU General Public License for more details.
14383 #
14384 # You should have received a copy of the GNU General Public License
14385 # along with GNU Libtool; see the file COPYING.  If not, a copy
14386 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14387 # obtained by writing to the Free Software Foundation, Inc.,
14388 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14389
14390
14391 # The names of the tagged configurations supported by this script.
14392 available_tags=""
14393
14394 # ### BEGIN LIBTOOL CONFIG
14395
14396 # Which release of libtool.m4 was used?
14397 macro_version=$macro_version
14398 macro_revision=$macro_revision
14399
14400 # Whether or not to build shared libraries.
14401 build_libtool_libs=$enable_shared
14402
14403 # Whether or not to build static libraries.
14404 build_old_libs=$enable_static
14405
14406 # What type of objects to build.
14407 pic_mode=$pic_mode
14408
14409 # Whether or not to optimize for fast installation.
14410 fast_install=$enable_fast_install
14411
14412 # Shell to use when invoking shell scripts.
14413 SHELL=$lt_SHELL
14414
14415 # An echo program that protects backslashes.
14416 ECHO=$lt_ECHO
14417
14418 # The PATH separator for the build system.
14419 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14420
14421 # The host system.
14422 host_alias=$host_alias
14423 host=$host
14424 host_os=$host_os
14425
14426 # The build system.
14427 build_alias=$build_alias
14428 build=$build
14429 build_os=$build_os
14430
14431 # A sed program that does not truncate output.
14432 SED=$lt_SED
14433
14434 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14435 Xsed="\$SED -e 1s/^X//"
14436
14437 # A grep program that handles long lines.
14438 GREP=$lt_GREP
14439
14440 # An ERE matcher.
14441 EGREP=$lt_EGREP
14442
14443 # A literal string matcher.
14444 FGREP=$lt_FGREP
14445
14446 # A BSD- or MS-compatible name lister.
14447 NM=$lt_NM
14448
14449 # Whether we need soft or hard links.
14450 LN_S=$lt_LN_S
14451
14452 # What is the maximum length of a command?
14453 max_cmd_len=$max_cmd_len
14454
14455 # Object file suffix (normally "o").
14456 objext=$ac_objext
14457
14458 # Executable file suffix (normally "").
14459 exeext=$exeext
14460
14461 # whether the shell understands "unset".
14462 lt_unset=$lt_unset
14463
14464 # turn spaces into newlines.
14465 SP2NL=$lt_lt_SP2NL
14466
14467 # turn newlines into spaces.
14468 NL2SP=$lt_lt_NL2SP
14469
14470 # convert \$build file names to \$host format.
14471 to_host_file_cmd=$lt_cv_to_host_file_cmd
14472
14473 # convert \$build files to toolchain format.
14474 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14475
14476 # An object symbol dumper.
14477 OBJDUMP=$lt_OBJDUMP
14478
14479 # Method to check whether dependent libraries are shared objects.
14480 deplibs_check_method=$lt_deplibs_check_method
14481
14482 # Command to use when deplibs_check_method = "file_magic".
14483 file_magic_cmd=$lt_file_magic_cmd
14484
14485 # How to find potential files when deplibs_check_method = "file_magic".
14486 file_magic_glob=$lt_file_magic_glob
14487
14488 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14489 want_nocaseglob=$lt_want_nocaseglob
14490
14491 # DLL creation program.
14492 DLLTOOL=$lt_DLLTOOL
14493
14494 # Command to associate shared and link libraries.
14495 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14496
14497 # The archiver.
14498 AR=$lt_AR
14499
14500 # Flags to create an archive.
14501 AR_FLAGS=$lt_AR_FLAGS
14502
14503 # How to feed a file listing to the archiver.
14504 archiver_list_spec=$lt_archiver_list_spec
14505
14506 # A symbol stripping program.
14507 STRIP=$lt_STRIP
14508
14509 # Commands used to install an old-style archive.
14510 RANLIB=$lt_RANLIB
14511 old_postinstall_cmds=$lt_old_postinstall_cmds
14512 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14513
14514 # Whether to use a lock for old archive extraction.
14515 lock_old_archive_extraction=$lock_old_archive_extraction
14516
14517 # A C compiler.
14518 LTCC=$lt_CC
14519
14520 # LTCC compiler flags.
14521 LTCFLAGS=$lt_CFLAGS
14522
14523 # Take the output of nm and produce a listing of raw symbols and C names.
14524 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14525
14526 # Transform the output of nm in a proper C declaration.
14527 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14528
14529 # Transform the output of nm in a C name address pair.
14530 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14531
14532 # Transform the output of nm in a C name address pair when lib prefix is needed.
14533 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14534
14535 # Specify filename containing input files for \$NM.
14536 nm_file_list_spec=$lt_nm_file_list_spec
14537
14538 # The root where to search for dependent libraries,and in which our libraries should be installed.
14539 lt_sysroot=$lt_sysroot
14540
14541 # The name of the directory that contains temporary libtool files.
14542 objdir=$objdir
14543
14544 # Used to examine libraries when file_magic_cmd begins with "file".
14545 MAGIC_CMD=$MAGIC_CMD
14546
14547 # Must we lock files when doing compilation?
14548 need_locks=$lt_need_locks
14549
14550 # Manifest tool.
14551 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14552
14553 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14554 DSYMUTIL=$lt_DSYMUTIL
14555
14556 # Tool to change global to local symbols on Mac OS X.
14557 NMEDIT=$lt_NMEDIT
14558
14559 # Tool to manipulate fat objects and archives on Mac OS X.
14560 LIPO=$lt_LIPO
14561
14562 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14563 OTOOL=$lt_OTOOL
14564
14565 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14566 OTOOL64=$lt_OTOOL64
14567
14568 # Old archive suffix (normally "a").
14569 libext=$libext
14570
14571 # Shared library suffix (normally ".so").
14572 shrext_cmds=$lt_shrext_cmds
14573
14574 # The commands to extract the exported symbol list from a shared archive.
14575 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14576
14577 # Variables whose values should be saved in libtool wrapper scripts and
14578 # restored at link time.
14579 variables_saved_for_relink=$lt_variables_saved_for_relink
14580
14581 # Do we need the "lib" prefix for modules?
14582 need_lib_prefix=$need_lib_prefix
14583
14584 # Do we need a version for libraries?
14585 need_version=$need_version
14586
14587 # Library versioning type.
14588 version_type=$version_type
14589
14590 # Shared library runtime path variable.
14591 runpath_var=$runpath_var
14592
14593 # Shared library path variable.
14594 shlibpath_var=$shlibpath_var
14595
14596 # Is shlibpath searched before the hard-coded library search path?
14597 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14598
14599 # Format of library name prefix.
14600 libname_spec=$lt_libname_spec
14601
14602 # List of archive names.  First name is the real one, the rest are links.
14603 # The last name is the one that the linker finds with -lNAME
14604 library_names_spec=$lt_library_names_spec
14605
14606 # The coded name of the library, if different from the real name.
14607 soname_spec=$lt_soname_spec
14608
14609 # Permission mode override for installation of shared libraries.
14610 install_override_mode=$lt_install_override_mode
14611
14612 # Command to use after installation of a shared archive.
14613 postinstall_cmds=$lt_postinstall_cmds
14614
14615 # Command to use after uninstallation of a shared archive.
14616 postuninstall_cmds=$lt_postuninstall_cmds
14617
14618 # Commands used to finish a libtool library installation in a directory.
14619 finish_cmds=$lt_finish_cmds
14620
14621 # As "finish_cmds", except a single script fragment to be evaled but
14622 # not shown.
14623 finish_eval=$lt_finish_eval
14624
14625 # Whether we should hardcode library paths into libraries.
14626 hardcode_into_libs=$hardcode_into_libs
14627
14628 # Compile-time system search path for libraries.
14629 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14630
14631 # Run-time system search path for libraries.
14632 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14633
14634 # Whether dlopen is supported.
14635 dlopen_support=$enable_dlopen
14636
14637 # Whether dlopen of programs is supported.
14638 dlopen_self=$enable_dlopen_self
14639
14640 # Whether dlopen of statically linked programs is supported.
14641 dlopen_self_static=$enable_dlopen_self_static
14642
14643 # Commands to strip libraries.
14644 old_striplib=$lt_old_striplib
14645 striplib=$lt_striplib
14646
14647
14648 # The linker used to build libraries.
14649 LD=$lt_LD
14650
14651 # How to create reloadable object files.
14652 reload_flag=$lt_reload_flag
14653 reload_cmds=$lt_reload_cmds
14654
14655 # Commands used to build an old-style archive.
14656 old_archive_cmds=$lt_old_archive_cmds
14657
14658 # A language specific compiler.
14659 CC=$lt_compiler
14660
14661 # Is the compiler the GNU compiler?
14662 with_gcc=$GCC
14663
14664 # Compiler flag to turn off builtin functions.
14665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14666
14667 # Additional compiler flags for building library objects.
14668 pic_flag=$lt_lt_prog_compiler_pic
14669
14670 # How to pass a linker flag through the compiler.
14671 wl=$lt_lt_prog_compiler_wl
14672
14673 # Compiler flag to prevent dynamic linking.
14674 link_static_flag=$lt_lt_prog_compiler_static
14675
14676 # Does compiler simultaneously support -c and -o options?
14677 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14678
14679 # Whether or not to add -lc for building shared libraries.
14680 build_libtool_need_lc=$archive_cmds_need_lc
14681
14682 # Whether or not to disallow shared libs when runtime libs are static.
14683 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14684
14685 # Compiler flag to allow reflexive dlopens.
14686 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14687
14688 # Compiler flag to generate shared objects directly from archives.
14689 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14690
14691 # Whether the compiler copes with passing no objects directly.
14692 compiler_needs_object=$lt_compiler_needs_object
14693
14694 # Create an old-style archive from a shared archive.
14695 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14696
14697 # Create a temporary old-style archive to link instead of a shared archive.
14698 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14699
14700 # Commands used to build a shared archive.
14701 archive_cmds=$lt_archive_cmds
14702 archive_expsym_cmds=$lt_archive_expsym_cmds
14703
14704 # Commands used to build a loadable module if different from building
14705 # a shared archive.
14706 module_cmds=$lt_module_cmds
14707 module_expsym_cmds=$lt_module_expsym_cmds
14708
14709 # Whether we are building with GNU ld or not.
14710 with_gnu_ld=$lt_with_gnu_ld
14711
14712 # Flag that allows shared libraries with undefined symbols to be built.
14713 allow_undefined_flag=$lt_allow_undefined_flag
14714
14715 # Flag that enforces no undefined symbols.
14716 no_undefined_flag=$lt_no_undefined_flag
14717
14718 # Flag to hardcode \$libdir into a binary during linking.
14719 # This must work even if \$libdir does not exist
14720 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14721
14722 # Whether we need a single "-rpath" flag with a separated argument.
14723 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14724
14725 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14726 # DIR into the resulting binary.
14727 hardcode_direct=$hardcode_direct
14728
14729 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14730 # DIR into the resulting binary and the resulting library dependency is
14731 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14732 # library is relocated.
14733 hardcode_direct_absolute=$hardcode_direct_absolute
14734
14735 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14736 # into the resulting binary.
14737 hardcode_minus_L=$hardcode_minus_L
14738
14739 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14740 # into the resulting binary.
14741 hardcode_shlibpath_var=$hardcode_shlibpath_var
14742
14743 # Set to "yes" if building a shared library automatically hardcodes DIR
14744 # into the library and all subsequent libraries and executables linked
14745 # against it.
14746 hardcode_automatic=$hardcode_automatic
14747
14748 # Set to yes if linker adds runtime paths of dependent libraries
14749 # to runtime path list.
14750 inherit_rpath=$inherit_rpath
14751
14752 # Whether libtool must link a program against all its dependency libraries.
14753 link_all_deplibs=$link_all_deplibs
14754
14755 # Set to "yes" if exported symbols are required.
14756 always_export_symbols=$always_export_symbols
14757
14758 # The commands to list exported symbols.
14759 export_symbols_cmds=$lt_export_symbols_cmds
14760
14761 # Symbols that should not be listed in the preloaded symbols.
14762 exclude_expsyms=$lt_exclude_expsyms
14763
14764 # Symbols that must always be exported.
14765 include_expsyms=$lt_include_expsyms
14766
14767 # Commands necessary for linking programs (against libraries) with templates.
14768 prelink_cmds=$lt_prelink_cmds
14769
14770 # Commands necessary for finishing linking programs.
14771 postlink_cmds=$lt_postlink_cmds
14772
14773 # Specify filename containing input files.
14774 file_list_spec=$lt_file_list_spec
14775
14776 # How to hardcode a shared library path into an executable.
14777 hardcode_action=$hardcode_action
14778
14779 # ### END LIBTOOL CONFIG
14780
14781 _LT_EOF
14782
14783   case $host_os in
14784   aix3*)
14785     cat <<\_LT_EOF >> "$cfgfile"
14786 # AIX sometimes has problems with the GCC collect2 program.  For some
14787 # reason, if we set the COLLECT_NAMES environment variable, the problems
14788 # vanish in a puff of smoke.
14789 if test "X${COLLECT_NAMES+set}" != Xset; then
14790   COLLECT_NAMES=
14791   export COLLECT_NAMES
14792 fi
14793 _LT_EOF
14794     ;;
14795   esac
14796
14797
14798 ltmain="$ac_aux_dir/ltmain.sh"
14799
14800
14801   # We use sed instead of cat because bash on DJGPP gets confused if
14802   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14803   # text mode, it properly converts lines to CR/LF.  This bash problem
14804   # is reportedly fixed, but why not run on old versions too?
14805   sed '$q' "$ltmain" >> "$cfgfile" \
14806      || (rm -f "$cfgfile"; exit 1)
14807
14808   if test x"$xsi_shell" = xyes; then
14809   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14810 func_dirname ()\
14811 {\
14812 \    case ${1} in\
14813 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14814 \      *  ) func_dirname_result="${3}" ;;\
14815 \    esac\
14816 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14817   && mv -f "$cfgfile.tmp" "$cfgfile" \
14818     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14819 test 0 -eq $? || _lt_function_replace_fail=:
14820
14821
14822   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14823 func_basename ()\
14824 {\
14825 \    func_basename_result="${1##*/}"\
14826 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14827   && mv -f "$cfgfile.tmp" "$cfgfile" \
14828     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14829 test 0 -eq $? || _lt_function_replace_fail=:
14830
14831
14832   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14833 func_dirname_and_basename ()\
14834 {\
14835 \    case ${1} in\
14836 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14837 \      *  ) func_dirname_result="${3}" ;;\
14838 \    esac\
14839 \    func_basename_result="${1##*/}"\
14840 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14841   && mv -f "$cfgfile.tmp" "$cfgfile" \
14842     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14843 test 0 -eq $? || _lt_function_replace_fail=:
14844
14845
14846   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14847 func_stripname ()\
14848 {\
14849 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14850 \    # positional parameters, so assign one to ordinary parameter first.\
14851 \    func_stripname_result=${3}\
14852 \    func_stripname_result=${func_stripname_result#"${1}"}\
14853 \    func_stripname_result=${func_stripname_result%"${2}"}\
14854 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14855   && mv -f "$cfgfile.tmp" "$cfgfile" \
14856     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14857 test 0 -eq $? || _lt_function_replace_fail=:
14858
14859
14860   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14861 func_split_long_opt ()\
14862 {\
14863 \    func_split_long_opt_name=${1%%=*}\
14864 \    func_split_long_opt_arg=${1#*=}\
14865 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14866   && mv -f "$cfgfile.tmp" "$cfgfile" \
14867     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14868 test 0 -eq $? || _lt_function_replace_fail=:
14869
14870
14871   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14872 func_split_short_opt ()\
14873 {\
14874 \    func_split_short_opt_arg=${1#??}\
14875 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14876 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14877   && mv -f "$cfgfile.tmp" "$cfgfile" \
14878     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14879 test 0 -eq $? || _lt_function_replace_fail=:
14880
14881
14882   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14883 func_lo2o ()\
14884 {\
14885 \    case ${1} in\
14886 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14887 \      *)    func_lo2o_result=${1} ;;\
14888 \    esac\
14889 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14890   && mv -f "$cfgfile.tmp" "$cfgfile" \
14891     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14892 test 0 -eq $? || _lt_function_replace_fail=:
14893
14894
14895   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14896 func_xform ()\
14897 {\
14898     func_xform_result=${1%.*}.lo\
14899 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14900   && mv -f "$cfgfile.tmp" "$cfgfile" \
14901     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14902 test 0 -eq $? || _lt_function_replace_fail=:
14903
14904
14905   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14906 func_arith ()\
14907 {\
14908     func_arith_result=$(( $* ))\
14909 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14910   && mv -f "$cfgfile.tmp" "$cfgfile" \
14911     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14912 test 0 -eq $? || _lt_function_replace_fail=:
14913
14914
14915   sed -e '/^func_len ()$/,/^} # func_len /c\
14916 func_len ()\
14917 {\
14918     func_len_result=${#1}\
14919 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14920   && mv -f "$cfgfile.tmp" "$cfgfile" \
14921     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14922 test 0 -eq $? || _lt_function_replace_fail=:
14923
14924 fi
14925
14926 if test x"$lt_shell_append" = xyes; then
14927   sed -e '/^func_append ()$/,/^} # func_append /c\
14928 func_append ()\
14929 {\
14930     eval "${1}+=\\${2}"\
14931 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14932   && mv -f "$cfgfile.tmp" "$cfgfile" \
14933     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14934 test 0 -eq $? || _lt_function_replace_fail=:
14935
14936
14937   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14938 func_append_quoted ()\
14939 {\
14940 \    func_quote_for_eval "${2}"\
14941 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14942 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14943   && mv -f "$cfgfile.tmp" "$cfgfile" \
14944     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14945 test 0 -eq $? || _lt_function_replace_fail=:
14946
14947
14948   # Save a `func_append' function call where possible by direct use of '+='
14949   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14950     && mv -f "$cfgfile.tmp" "$cfgfile" \
14951       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14952   test 0 -eq $? || _lt_function_replace_fail=:
14953 else
14954   # Save a `func_append' function call even when '+=' is not available
14955   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14956     && mv -f "$cfgfile.tmp" "$cfgfile" \
14957       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14958   test 0 -eq $? || _lt_function_replace_fail=:
14959 fi
14960
14961 if test x"$_lt_function_replace_fail" = x":"; then
14962   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14963 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14964 fi
14965
14966
14967    mv -f "$cfgfile" "$ofile" ||
14968     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14969   chmod +x "$ofile"
14970
14971  ;;
14972
14973   esac
14974 done # for ac_tag
14975
14976
14977 as_fn_exit 0
14978 _ACEOF
14979 ac_clean_files=$ac_clean_files_save
14980
14981 test $ac_write_fail = 0 ||
14982   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14983
14984
14985 # configure is writing to config.log, and then calls config.status.
14986 # config.status does its own redirection, appending to config.log.
14987 # Unfortunately, on DOS this fails, as config.log is still kept open
14988 # by configure, so config.status won't be able to write to it; its
14989 # output is simply discarded.  So we exec the FD to /dev/null,
14990 # effectively closing config.log, so it can be properly (re)opened and
14991 # appended to by config.status.  When coming back to configure, we
14992 # need to make the FD available again.
14993 if test "$no_create" != yes; then
14994   ac_cs_success=:
14995   ac_config_status_args=
14996   test "$silent" = yes &&
14997     ac_config_status_args="$ac_config_status_args --quiet"
14998   exec 5>/dev/null
14999   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15000   exec 5>>config.log
15001   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15002   # would make configure fail if this is the last instruction.
15003   $ac_cs_success || as_fn_exit 1
15004 fi
15005 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15006   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15007 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15008 fi
15009