OSDN Git Service

a0cecf4a01f1e50032acc0bbc39cad93b02ccca0
[eb123/eb123.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for eb123 0.5.
4 #
5 # Report bugs to <evgeny@sourceforge.jp>.
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
250 $0: evgeny@sourceforge.jp about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do 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='eb123'
572 PACKAGE_TARNAME='eb123'
573 PACKAGE_VERSION='0.5'
574 PACKAGE_STRING='eb123 0.5'
575 PACKAGE_BUGREPORT='evgeny@sourceforge.jp'
576 PACKAGE_URL=''
577
578 ac_unique_file="src"
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 EBCONF_INTLLIBS
620 EBCONF_INTLINCS
621 EBCONF_PTHREAD_LDFLAGS
622 EBCONF_PTHREAD_CFLAGS
623 EBCONF_PTHREAD_CPPFLAGS
624 EBCONF_ZLIBLIBS
625 EBCONF_ZLIBINCS
626 EBCONF_EBLIBS
627 EBCONF_EBINCS
628 XML_LIBS
629 XML_CPPFLAGS
630 XML2_CONFIG
631 GMODULE_LIBS
632 GMODULE_CFLAGS
633 PKG_CONFIG_LIBDIR
634 PKG_CONFIG_PATH
635 GTK_LIBS
636 GTK_CFLAGS
637 PKG_CONFIG
638 CPP
639 OTOOL64
640 OTOOL
641 LIPO
642 NMEDIT
643 DSYMUTIL
644 MANIFEST_TOOL
645 RANLIB
646 ac_ct_AR
647 AR
648 DLLTOOL
649 OBJDUMP
650 LN_S
651 NM
652 ac_ct_DUMPBIN
653 DUMPBIN
654 LD
655 FGREP
656 EGREP
657 GREP
658 SED
659 host_os
660 host_vendor
661 host_cpu
662 host
663 build_os
664 build_vendor
665 build_cpu
666 build
667 LIBTOOL
668 am__fastdepCC_FALSE
669 am__fastdepCC_TRUE
670 CCDEPMODE
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__quote
675 am__include
676 DEPDIR
677 OBJEXT
678 EXEEXT
679 ac_ct_CC
680 CPPFLAGS
681 LDFLAGS
682 CFLAGS
683 CC
684 am__untar
685 am__tar
686 AMTAR
687 am__leading_dot
688 SET_MAKE
689 AWK
690 mkdir_p
691 MKDIR_P
692 INSTALL_STRIP_PROGRAM
693 STRIP
694 install_sh
695 MAKEINFO
696 AUTOHEADER
697 AUTOMAKE
698 AUTOCONF
699 ACLOCAL
700 VERSION
701 PACKAGE
702 CYGPATH_W
703 am__isrc
704 INSTALL_DATA
705 INSTALL_SCRIPT
706 INSTALL_PROGRAM
707 target_alias
708 host_alias
709 build_alias
710 LIBS
711 ECHO_T
712 ECHO_N
713 ECHO_C
714 DEFS
715 mandir
716 localedir
717 libdir
718 psdir
719 pdfdir
720 dvidir
721 htmldir
722 infodir
723 docdir
724 oldincludedir
725 includedir
726 localstatedir
727 sharedstatedir
728 sysconfdir
729 datadir
730 datarootdir
731 libexecdir
732 sbindir
733 bindir
734 program_transform_name
735 prefix
736 exec_prefix
737 PACKAGE_URL
738 PACKAGE_BUGREPORT
739 PACKAGE_STRING
740 PACKAGE_VERSION
741 PACKAGE_TARNAME
742 PACKAGE_NAME
743 PATH_SEPARATOR
744 SHELL'
745 ac_subst_files=''
746 ac_user_opts='
747 enable_option_checking
748 enable_dependency_tracking
749 enable_shared
750 enable_static
751 with_pic
752 enable_fast_install
753 with_gnu_ld
754 with_sysroot
755 enable_libtool_lock
756 enable_gtktest
757 with_xml_prefix
758 with_xml_exec_prefix
759 enable_xmltest
760 enable_debug
761 enable_gstreamer
762 with_eb_conf
763 '
764       ac_precious_vars='build_alias
765 host_alias
766 target_alias
767 CC
768 CFLAGS
769 LDFLAGS
770 LIBS
771 CPPFLAGS
772 CPP
773 PKG_CONFIG
774 PKG_CONFIG_PATH
775 PKG_CONFIG_LIBDIR
776 GTK_CFLAGS
777 GTK_LIBS
778 GMODULE_CFLAGS
779 GMODULE_LIBS'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834   # If the previous option needs an argument, assign it.
835   if test -n "$ac_prev"; then
836     eval $ac_prev=\$ac_option
837     ac_prev=
838     continue
839   fi
840
841   case $ac_option in
842   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843   *=)   ac_optarg= ;;
844   *)    ac_optarg=yes ;;
845   esac
846
847   # Accept the important Cygnus configure options, so we can diagnose typos.
848
849   case $ac_dashdash$ac_option in
850   --)
851     ac_dashdash=yes ;;
852
853   -bindir | --bindir | --bindi | --bind | --bin | --bi)
854     ac_prev=bindir ;;
855   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856     bindir=$ac_optarg ;;
857
858   -build | --build | --buil | --bui | --bu)
859     ac_prev=build_alias ;;
860   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861     build_alias=$ac_optarg ;;
862
863   -cache-file | --cache-file | --cache-fil | --cache-fi \
864   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865     ac_prev=cache_file ;;
866   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868     cache_file=$ac_optarg ;;
869
870   --config-cache | -C)
871     cache_file=config.cache ;;
872
873   -datadir | --datadir | --datadi | --datad)
874     ac_prev=datadir ;;
875   -datadir=* | --datadir=* | --datadi=* | --datad=*)
876     datadir=$ac_optarg ;;
877
878   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879   | --dataroo | --dataro | --datar)
880     ac_prev=datarootdir ;;
881   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883     datarootdir=$ac_optarg ;;
884
885   -disable-* | --disable-*)
886     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887     # Reject names that are not valid shell variable names.
888     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889       as_fn_error $? "invalid feature name: $ac_useropt"
890     ac_useropt_orig=$ac_useropt
891     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892     case $ac_user_opts in
893       *"
894 "enable_$ac_useropt"
895 "*) ;;
896       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897          ac_unrecognized_sep=', ';;
898     esac
899     eval enable_$ac_useropt=no ;;
900
901   -docdir | --docdir | --docdi | --doc | --do)
902     ac_prev=docdir ;;
903   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904     docdir=$ac_optarg ;;
905
906   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907     ac_prev=dvidir ;;
908   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909     dvidir=$ac_optarg ;;
910
911   -enable-* | --enable-*)
912     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913     # Reject names that are not valid shell variable names.
914     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915       as_fn_error $? "invalid feature name: $ac_useropt"
916     ac_useropt_orig=$ac_useropt
917     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918     case $ac_user_opts in
919       *"
920 "enable_$ac_useropt"
921 "*) ;;
922       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923          ac_unrecognized_sep=', ';;
924     esac
925     eval enable_$ac_useropt=\$ac_optarg ;;
926
927   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929   | --exec | --exe | --ex)
930     ac_prev=exec_prefix ;;
931   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933   | --exec=* | --exe=* | --ex=*)
934     exec_prefix=$ac_optarg ;;
935
936   -gas | --gas | --ga | --g)
937     # Obsolete; use --with-gas.
938     with_gas=yes ;;
939
940   -help | --help | --hel | --he | -h)
941     ac_init_help=long ;;
942   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943     ac_init_help=recursive ;;
944   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945     ac_init_help=short ;;
946
947   -host | --host | --hos | --ho)
948     ac_prev=host_alias ;;
949   -host=* | --host=* | --hos=* | --ho=*)
950     host_alias=$ac_optarg ;;
951
952   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953     ac_prev=htmldir ;;
954   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955   | --ht=*)
956     htmldir=$ac_optarg ;;
957
958   -includedir | --includedir | --includedi | --included | --include \
959   | --includ | --inclu | --incl | --inc)
960     ac_prev=includedir ;;
961   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962   | --includ=* | --inclu=* | --incl=* | --inc=*)
963     includedir=$ac_optarg ;;
964
965   -infodir | --infodir | --infodi | --infod | --info | --inf)
966     ac_prev=infodir ;;
967   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968     infodir=$ac_optarg ;;
969
970   -libdir | --libdir | --libdi | --libd)
971     ac_prev=libdir ;;
972   -libdir=* | --libdir=* | --libdi=* | --libd=*)
973     libdir=$ac_optarg ;;
974
975   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976   | --libexe | --libex | --libe)
977     ac_prev=libexecdir ;;
978   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979   | --libexe=* | --libex=* | --libe=*)
980     libexecdir=$ac_optarg ;;
981
982   -localedir | --localedir | --localedi | --localed | --locale)
983     ac_prev=localedir ;;
984   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985     localedir=$ac_optarg ;;
986
987   -localstatedir | --localstatedir | --localstatedi | --localstated \
988   | --localstate | --localstat | --localsta | --localst | --locals)
989     ac_prev=localstatedir ;;
990   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992     localstatedir=$ac_optarg ;;
993
994   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995     ac_prev=mandir ;;
996   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997     mandir=$ac_optarg ;;
998
999   -nfp | --nfp | --nf)
1000     # Obsolete; use --without-fp.
1001     with_fp=no ;;
1002
1003   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004   | --no-cr | --no-c | -n)
1005     no_create=yes ;;
1006
1007   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009     no_recursion=yes ;;
1010
1011   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013   | --oldin | --oldi | --old | --ol | --o)
1014     ac_prev=oldincludedir ;;
1015   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018     oldincludedir=$ac_optarg ;;
1019
1020   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021     ac_prev=prefix ;;
1022   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023     prefix=$ac_optarg ;;
1024
1025   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026   | --program-pre | --program-pr | --program-p)
1027     ac_prev=program_prefix ;;
1028   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030     program_prefix=$ac_optarg ;;
1031
1032   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033   | --program-suf | --program-su | --program-s)
1034     ac_prev=program_suffix ;;
1035   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037     program_suffix=$ac_optarg ;;
1038
1039   -program-transform-name | --program-transform-name \
1040   | --program-transform-nam | --program-transform-na \
1041   | --program-transform-n | --program-transform- \
1042   | --program-transform | --program-transfor \
1043   | --program-transfo | --program-transf \
1044   | --program-trans | --program-tran \
1045   | --progr-tra | --program-tr | --program-t)
1046     ac_prev=program_transform_name ;;
1047   -program-transform-name=* | --program-transform-name=* \
1048   | --program-transform-nam=* | --program-transform-na=* \
1049   | --program-transform-n=* | --program-transform-=* \
1050   | --program-transform=* | --program-transfor=* \
1051   | --program-transfo=* | --program-transf=* \
1052   | --program-trans=* | --program-tran=* \
1053   | --progr-tra=* | --program-tr=* | --program-t=*)
1054     program_transform_name=$ac_optarg ;;
1055
1056   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057     ac_prev=pdfdir ;;
1058   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059     pdfdir=$ac_optarg ;;
1060
1061   -psdir | --psdir | --psdi | --psd | --ps)
1062     ac_prev=psdir ;;
1063   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064     psdir=$ac_optarg ;;
1065
1066   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067   | -silent | --silent | --silen | --sile | --sil)
1068     silent=yes ;;
1069
1070   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071     ac_prev=sbindir ;;
1072   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073   | --sbi=* | --sb=*)
1074     sbindir=$ac_optarg ;;
1075
1076   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078   | --sharedst | --shareds | --shared | --share | --shar \
1079   | --sha | --sh)
1080     ac_prev=sharedstatedir ;;
1081   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084   | --sha=* | --sh=*)
1085     sharedstatedir=$ac_optarg ;;
1086
1087   -site | --site | --sit)
1088     ac_prev=site ;;
1089   -site=* | --site=* | --sit=*)
1090     site=$ac_optarg ;;
1091
1092   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093     ac_prev=srcdir ;;
1094   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095     srcdir=$ac_optarg ;;
1096
1097   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098   | --syscon | --sysco | --sysc | --sys | --sy)
1099     ac_prev=sysconfdir ;;
1100   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102     sysconfdir=$ac_optarg ;;
1103
1104   -target | --target | --targe | --targ | --tar | --ta | --t)
1105     ac_prev=target_alias ;;
1106   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107     target_alias=$ac_optarg ;;
1108
1109   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110     verbose=yes ;;
1111
1112   -version | --version | --versio | --versi | --vers | -V)
1113     ac_init_version=: ;;
1114
1115   -with-* | --with-*)
1116     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1127          ac_unrecognized_sep=', ';;
1128     esac
1129     eval with_$ac_useropt=\$ac_optarg ;;
1130
1131   -without-* | --without-*)
1132     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133     # Reject names that are not valid shell variable names.
1134     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135       as_fn_error $? "invalid package name: $ac_useropt"
1136     ac_useropt_orig=$ac_useropt
1137     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138     case $ac_user_opts in
1139       *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143          ac_unrecognized_sep=', ';;
1144     esac
1145     eval with_$ac_useropt=no ;;
1146
1147   --x)
1148     # Obsolete; use --with-x.
1149     with_x=yes ;;
1150
1151   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152   | --x-incl | --x-inc | --x-in | --x-i)
1153     ac_prev=x_includes ;;
1154   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156     x_includes=$ac_optarg ;;
1157
1158   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160     ac_prev=x_libraries ;;
1161   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163     x_libraries=$ac_optarg ;;
1164
1165   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1167     ;;
1168
1169   *=*)
1170     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171     # Reject names that are not valid shell variable names.
1172     case $ac_envvar in #(
1173       '' | [0-9]* | *[!_$as_cr_alnum]* )
1174       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175     esac
1176     eval $ac_envvar=\$ac_optarg
1177     export $ac_envvar ;;
1178
1179   *)
1180     # FIXME: should be removed in autoconf 3.0.
1181     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185     ;;
1186
1187   esac
1188 done
1189
1190 if test -n "$ac_prev"; then
1191   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192   as_fn_error $? "missing argument to $ac_option"
1193 fi
1194
1195 if test -n "$ac_unrecognized_opts"; then
1196   case $enable_option_checking in
1197     no) ;;
1198     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200   esac
1201 fi
1202
1203 # Check all directory arguments for consistency.
1204 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205                 datadir sysconfdir sharedstatedir localstatedir includedir \
1206                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207                 libdir localedir mandir
1208 do
1209   eval ac_val=\$$ac_var
1210   # Remove trailing slashes.
1211   case $ac_val in
1212     */ )
1213       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214       eval $ac_var=\$ac_val;;
1215   esac
1216   # Be sure to have absolute directory names.
1217   case $ac_val in
1218     [\\/$]* | ?:[\\/]* )  continue;;
1219     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220   esac
1221   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 done
1223
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1230
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233   if test "x$build_alias" = x; then
1234     cross_compiling=maybe
1235     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1236     If a cross compiler is detected then cross compile mode will be used" >&2
1237   elif test "x$build_alias" != "x$host_alias"; then
1238     cross_compiling=yes
1239   fi
1240 fi
1241
1242 ac_tool_prefix=
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245 test "$silent" = yes && exec 6>/dev/null
1246
1247
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251   as_fn_error $? "working directory cannot be determined"
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253   as_fn_error $? "pwd does not report name of working directory"
1254
1255
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258   ac_srcdir_defaulted=yes
1259   # Try the directory containing this script, then the parent directory.
1260   ac_confdir=`$as_dirname -- "$as_myself" ||
1261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262          X"$as_myself" : 'X\(//\)[^/]' \| \
1263          X"$as_myself" : 'X\(//\)$' \| \
1264          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265 $as_echo X"$as_myself" |
1266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\/\)[^/].*/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\/\)$/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\).*/{
1279             s//\1/
1280             q
1281           }
1282           s/.*/./; q'`
1283   srcdir=$ac_confdir
1284   if test ! -r "$srcdir/$ac_unique_file"; then
1285     srcdir=..
1286   fi
1287 else
1288   ac_srcdir_defaulted=no
1289 fi
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1293 fi
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297         pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300   srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_env_${ac_var}_value=\$${ac_var}
1311   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319   # Omit some internal or obsolete options to make the list less imposing.
1320   # This message is too long to be a string in the A/UX 3.1 sh.
1321   cat <<_ACEOF
1322 \`configure' configures eb123 0.5 to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE.  See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332   -h, --help              display this help and exit
1333       --help=short        display options specific to this package
1334       --help=recursive    display the short help of all the included packages
1335   -V, --version           display version information and exit
1336   -q, --quiet, --silent   do not print \`checking ...' messages
1337       --cache-file=FILE   cache test results in FILE [disabled]
1338   -C, --config-cache      alias for \`--cache-file=config.cache'
1339   -n, --no-create         do not create output files
1340       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1341
1342 Installation directories:
1343   --prefix=PREFIX         install architecture-independent files in PREFIX
1344                           [$ac_default_prefix]
1345   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1346                           [PREFIX]
1347
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356   --bindir=DIR            user executables [EPREFIX/bin]
1357   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1358   --libexecdir=DIR        program executables [EPREFIX/libexec]
1359   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1360   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1361   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1362   --libdir=DIR            object code libraries [EPREFIX/lib]
1363   --includedir=DIR        C header files [PREFIX/include]
1364   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1365   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1366   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1367   --infodir=DIR           info documentation [DATAROOTDIR/info]
1368   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1369   --mandir=DIR            man documentation [DATAROOTDIR/man]
1370   --docdir=DIR            documentation root [DATAROOTDIR/doc/eb123]
1371   --htmldir=DIR           html documentation [DOCDIR]
1372   --dvidir=DIR            dvi documentation [DOCDIR]
1373   --pdfdir=DIR            pdf documentation [DOCDIR]
1374   --psdir=DIR             ps documentation [DOCDIR]
1375 _ACEOF
1376
1377   cat <<\_ACEOF
1378
1379 Program names:
1380   --program-prefix=PREFIX            prepend PREFIX to installed program names
1381   --program-suffix=SUFFIX            append SUFFIX to installed program names
1382   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1383
1384 System types:
1385   --build=BUILD     configure for building on BUILD [guessed]
1386   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1387 _ACEOF
1388 fi
1389
1390 if test -n "$ac_init_help"; then
1391   case $ac_init_help in
1392      short | recursive ) echo "Configuration of eb123 0.5:";;
1393    esac
1394   cat <<\_ACEOF
1395
1396 Optional Features:
1397   --disable-option-checking  ignore unrecognized --enable/--with options
1398   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1399   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1400   --disable-dependency-tracking  speeds up one-time build
1401   --enable-dependency-tracking   do not reject slow dependency extractors
1402   --enable-shared[=PKGS]  build shared libraries [default=yes]
1403   --enable-static[=PKGS]  build static libraries [default=yes]
1404   --enable-fast-install[=PKGS]
1405                           optimize for fast installation [default=yes]
1406   --disable-libtool-lock  avoid locking (might break parallel builds)
1407   --disable-gtktest       do not try to compile and run a test GTK+ program
1408   --disable-xmltest       Do not try to compile and run a test LIBXML program
1409   --enable-debug          enable debug information [default=no]
1410   --enable-gstreamer          enable audio and video playback using gstreamer [default=no]
1411
1412 Optional Packages:
1413   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1414   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1415   --with-pic              try to use only PIC/non-PIC objects [default=use
1416                           both]
1417   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1418   --with-sysroot=DIR Search for dependent libraries within DIR
1419                         (or the compiler's sysroot if not specified).
1420   --with-xml-prefix=PFX   Prefix where libxml is installed (optional)
1421   --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
1422   --with-eb-conf=FILE     eb.conf file is FILE [[SYSCONFDIR/eb.conf]]
1423
1424 Some influential environment variables:
1425   CC          C compiler command
1426   CFLAGS      C compiler flags
1427   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1428               nonstandard directory <lib dir>
1429   LIBS        libraries to pass to the linker, e.g. -l<library>
1430   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1431               you have headers in a nonstandard directory <include dir>
1432   CPP         C preprocessor
1433   PKG_CONFIG  path to pkg-config utility
1434   PKG_CONFIG_PATH
1435               directories to add to pkg-config's search path
1436   PKG_CONFIG_LIBDIR
1437               path overriding pkg-config's built-in search path
1438   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1439   GTK_LIBS    linker flags for GTK, overriding pkg-config
1440   GMODULE_CFLAGS
1441               C compiler flags for GMODULE, overriding pkg-config
1442   GMODULE_LIBS
1443               linker flags for GMODULE, overriding pkg-config
1444
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1447
1448 Report bugs to <evgeny@sourceforge.jp>.
1449 _ACEOF
1450 ac_status=$?
1451 fi
1452
1453 if test "$ac_init_help" = "recursive"; then
1454   # If there are subdirs, report their specific --help.
1455   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456     test -d "$ac_dir" ||
1457       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458       continue
1459     ac_builddir=.
1460
1461 case "$ac_dir" in
1462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *)
1464   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465   # A ".." for each directory in $ac_dir_suffix.
1466   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467   case $ac_top_builddir_sub in
1468   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470   esac ;;
1471 esac
1472 ac_abs_top_builddir=$ac_pwd
1473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474 # for backward compatibility:
1475 ac_top_builddir=$ac_top_build_prefix
1476
1477 case $srcdir in
1478   .)  # We are building in place.
1479     ac_srcdir=.
1480     ac_top_srcdir=$ac_top_builddir_sub
1481     ac_abs_top_srcdir=$ac_pwd ;;
1482   [\\/]* | ?:[\\/]* )  # Absolute name.
1483     ac_srcdir=$srcdir$ac_dir_suffix;
1484     ac_top_srcdir=$srcdir
1485     ac_abs_top_srcdir=$srcdir ;;
1486   *) # Relative name.
1487     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488     ac_top_srcdir=$ac_top_build_prefix$srcdir
1489     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490 esac
1491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492
1493     cd "$ac_dir" || { ac_status=$?; continue; }
1494     # Check for guested configure.
1495     if test -f "$ac_srcdir/configure.gnu"; then
1496       echo &&
1497       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498     elif test -f "$ac_srcdir/configure"; then
1499       echo &&
1500       $SHELL "$ac_srcdir/configure" --help=recursive
1501     else
1502       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503     fi || ac_status=$?
1504     cd "$ac_pwd" || { ac_status=$?; break; }
1505   done
1506 fi
1507
1508 test -n "$ac_init_help" && exit $ac_status
1509 if $ac_init_version; then
1510   cat <<\_ACEOF
1511 eb123 configure 0.5
1512 generated by GNU Autoconf 2.68
1513
1514 Copyright (C) 2010 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1517 _ACEOF
1518   exit
1519 fi
1520
1521 ## ------------------------ ##
1522 ## Autoconf initialization. ##
1523 ## ------------------------ ##
1524
1525 # ac_fn_c_try_compile LINENO
1526 # --------------------------
1527 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_compile ()
1529 {
1530   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531   rm -f conftest.$ac_objext
1532   if { { ac_try="$ac_compile"
1533 case "(($ac_try" in
1534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535   *) ac_try_echo=$ac_try;;
1536 esac
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539   (eval "$ac_compile") 2>conftest.err
1540   ac_status=$?
1541   if test -s conftest.err; then
1542     grep -v '^ *+' conftest.err >conftest.er1
1543     cat conftest.er1 >&5
1544     mv -f conftest.er1 conftest.err
1545   fi
1546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547   test $ac_status = 0; } && {
1548          test -z "$ac_c_werror_flag" ||
1549          test ! -s conftest.err
1550        } && test -s conftest.$ac_objext; then :
1551   ac_retval=0
1552 else
1553   $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1555
1556         ac_retval=1
1557 fi
1558   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559   as_fn_set_status $ac_retval
1560
1561 } # ac_fn_c_try_compile
1562
1563 # ac_fn_c_try_link LINENO
1564 # -----------------------
1565 # Try to link conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_link ()
1567 {
1568   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569   rm -f conftest.$ac_objext conftest$ac_exeext
1570   if { { ac_try="$ac_link"
1571 case "(($ac_try" in
1572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573   *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577   (eval "$ac_link") 2>conftest.err
1578   ac_status=$?
1579   if test -s conftest.err; then
1580     grep -v '^ *+' conftest.err >conftest.er1
1581     cat conftest.er1 >&5
1582     mv -f conftest.er1 conftest.err
1583   fi
1584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585   test $ac_status = 0; } && {
1586          test -z "$ac_c_werror_flag" ||
1587          test ! -s conftest.err
1588        } && test -s conftest$ac_exeext && {
1589          test "$cross_compiling" = yes ||
1590          $as_test_x conftest$ac_exeext
1591        }; then :
1592   ac_retval=0
1593 else
1594   $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597         ac_retval=1
1598 fi
1599   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1600   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1601   # interfere with the next link command; also delete a directory that is
1602   # left behind by Apple's compiler.  We do this before executing the actions.
1603   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1604   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605   as_fn_set_status $ac_retval
1606
1607 } # ac_fn_c_try_link
1608
1609 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1610 # -------------------------------------------------------
1611 # Tests whether HEADER exists and can be compiled using the include files in
1612 # INCLUDES, setting the cache variable VAR accordingly.
1613 ac_fn_c_check_header_compile ()
1614 {
1615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 $as_echo_n "checking for $2... " >&6; }
1618 if eval \${$3+:} false; then :
1619   $as_echo_n "(cached) " >&6
1620 else
1621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h.  */
1623 $4
1624 #include <$2>
1625 _ACEOF
1626 if ac_fn_c_try_compile "$LINENO"; then :
1627   eval "$3=yes"
1628 else
1629   eval "$3=no"
1630 fi
1631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632 fi
1633 eval ac_res=\$$3
1634                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635 $as_echo "$ac_res" >&6; }
1636   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637
1638 } # ac_fn_c_check_header_compile
1639
1640 # ac_fn_c_try_cpp LINENO
1641 # ----------------------
1642 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_cpp ()
1644 {
1645   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646   if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 case "(($ac_try" in
1648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649   *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654   ac_status=$?
1655   if test -s conftest.err; then
1656     grep -v '^ *+' conftest.err >conftest.er1
1657     cat conftest.er1 >&5
1658     mv -f conftest.er1 conftest.err
1659   fi
1660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661   test $ac_status = 0; } > conftest.i && {
1662          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663          test ! -s conftest.err
1664        }; then :
1665   ac_retval=0
1666 else
1667   $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670     ac_retval=1
1671 fi
1672   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673   as_fn_set_status $ac_retval
1674
1675 } # ac_fn_c_try_cpp
1676
1677 # ac_fn_c_try_run LINENO
1678 # ----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680 # that executables *can* be run.
1681 ac_fn_c_try_run ()
1682 {
1683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684   if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687   *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691   (eval "$ac_link") 2>&5
1692   ac_status=$?
1693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695   { { case "(($ac_try" in
1696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697   *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701   (eval "$ac_try") 2>&5
1702   ac_status=$?
1703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704   test $ac_status = 0; }; }; then :
1705   ac_retval=0
1706 else
1707   $as_echo "$as_me: program exited with status $ac_status" >&5
1708        $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711        ac_retval=$ac_status
1712 fi
1713   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715   as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_run
1718
1719 # ac_fn_c_check_func LINENO FUNC VAR
1720 # ----------------------------------
1721 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1722 ac_fn_c_check_func ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728   $as_echo_n "(cached) " >&6
1729 else
1730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h.  */
1732 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1734 #define $2 innocuous_$2
1735
1736 /* System header to define __stub macros and hopefully few prototypes,
1737     which can conflict with char $2 (); below.
1738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1739     <limits.h> exists even on freestanding compilers.  */
1740
1741 #ifdef __STDC__
1742 # include <limits.h>
1743 #else
1744 # include <assert.h>
1745 #endif
1746
1747 #undef $2
1748
1749 /* Override any GCC internal prototype to avoid an error.
1750    Use char because int might match the return type of a GCC
1751    builtin and then its argument prototype would still apply.  */
1752 #ifdef __cplusplus
1753 extern "C"
1754 #endif
1755 char $2 ();
1756 /* The GNU C library defines this for functions which it implements
1757     to always fail with ENOSYS.  Some functions are actually named
1758     something starting with __ and the normal name is an alias.  */
1759 #if defined __stub_$2 || defined __stub___$2
1760 choke me
1761 #endif
1762
1763 int
1764 main ()
1765 {
1766 return $2 ();
1767   ;
1768   return 0;
1769 }
1770 _ACEOF
1771 if ac_fn_c_try_link "$LINENO"; then :
1772   eval "$3=yes"
1773 else
1774   eval "$3=no"
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext \
1777     conftest$ac_exeext conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_func
1785
1786 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1787 # -------------------------------------------
1788 # Tests whether TYPE exists after having included INCLUDES, setting cache
1789 # variable VAR accordingly.
1790 ac_fn_c_check_type ()
1791 {
1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796   $as_echo_n "(cached) " >&6
1797 else
1798   eval "$3=no"
1799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h.  */
1801 $4
1802 int
1803 main ()
1804 {
1805 if (sizeof ($2))
1806          return 0;
1807   ;
1808   return 0;
1809 }
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h.  */
1814 $4
1815 int
1816 main ()
1817 {
1818 if (sizeof (($2)))
1819             return 0;
1820   ;
1821   return 0;
1822 }
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825
1826 else
1827   eval "$3=yes"
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 fi
1833 eval ac_res=\$$3
1834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838 } # ac_fn_c_check_type
1839
1840 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1843 # the include files in INCLUDES and setting the cache variable VAR
1844 # accordingly.
1845 ac_fn_c_check_header_mongrel ()
1846 {
1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848   if eval \${$3+:} false; then :
1849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852   $as_echo_n "(cached) " >&6
1853 fi
1854 eval ac_res=\$$3
1855                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 else
1858   # Is the header compilable?
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1860 $as_echo_n "checking $2 usability... " >&6; }
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h.  */
1863 $4
1864 #include <$2>
1865 _ACEOF
1866 if ac_fn_c_try_compile "$LINENO"; then :
1867   ac_header_compiler=yes
1868 else
1869   ac_header_compiler=no
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1873 $as_echo "$ac_header_compiler" >&6; }
1874
1875 # Is the header present?
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1877 $as_echo_n "checking $2 presence... " >&6; }
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h.  */
1880 #include <$2>
1881 _ACEOF
1882 if ac_fn_c_try_cpp "$LINENO"; then :
1883   ac_header_preproc=yes
1884 else
1885   ac_header_preproc=no
1886 fi
1887 rm -f conftest.err conftest.i conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1889 $as_echo "$ac_header_preproc" >&6; }
1890
1891 # So?  What about this header?
1892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1893   yes:no: )
1894     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1895 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1896     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1898     ;;
1899   no:yes:* )
1900     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1901 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1903 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1904     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1905 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1907 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1908     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1909 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1910 ( $as_echo "## ------------------------------------ ##
1911 ## Report this to evgeny@sourceforge.jp ##
1912 ## ------------------------------------ ##"
1913      ) | sed "s/^/$as_me: WARNING:     /" >&2
1914     ;;
1915 esac
1916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919   $as_echo_n "(cached) " >&6
1920 else
1921   eval "$3=\$ac_header_compiler"
1922 fi
1923 eval ac_res=\$$3
1924                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 fi
1927   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928
1929 } # ac_fn_c_check_header_mongrel
1930 cat >config.log <<_ACEOF
1931 This file contains any messages produced by compilers while
1932 running configure, to aid debugging if configure makes a mistake.
1933
1934 It was created by eb123 $as_me 0.5, which was
1935 generated by GNU Autoconf 2.68.  Invocation command line was
1936
1937   $ $0 $@
1938
1939 _ACEOF
1940 exec 5>>config.log
1941 {
1942 cat <<_ASUNAME
1943 ## --------- ##
1944 ## Platform. ##
1945 ## --------- ##
1946
1947 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1948 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1949 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1950 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1951 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1952
1953 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1954 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1955
1956 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1957 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1958 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1959 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1960 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1961 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1962 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1963
1964 _ASUNAME
1965
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1968 do
1969   IFS=$as_save_IFS
1970   test -z "$as_dir" && as_dir=.
1971     $as_echo "PATH: $as_dir"
1972   done
1973 IFS=$as_save_IFS
1974
1975 } >&5
1976
1977 cat >&5 <<_ACEOF
1978
1979
1980 ## ----------- ##
1981 ## Core tests. ##
1982 ## ----------- ##
1983
1984 _ACEOF
1985
1986
1987 # Keep a trace of the command line.
1988 # Strip out --no-create and --no-recursion so they do not pile up.
1989 # Strip out --silent because we don't want to record it for future runs.
1990 # Also quote any args containing shell meta-characters.
1991 # Make two passes to allow for proper duplicate-argument suppression.
1992 ac_configure_args=
1993 ac_configure_args0=
1994 ac_configure_args1=
1995 ac_must_keep_next=false
1996 for ac_pass in 1 2
1997 do
1998   for ac_arg
1999   do
2000     case $ac_arg in
2001     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2002     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2003     | -silent | --silent | --silen | --sile | --sil)
2004       continue ;;
2005     *\'*)
2006       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2007     esac
2008     case $ac_pass in
2009     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2010     2)
2011       as_fn_append ac_configure_args1 " '$ac_arg'"
2012       if test $ac_must_keep_next = true; then
2013         ac_must_keep_next=false # Got value, back to normal.
2014       else
2015         case $ac_arg in
2016           *=* | --config-cache | -C | -disable-* | --disable-* \
2017           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2018           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2019           | -with-* | --with-* | -without-* | --without-* | --x)
2020             case "$ac_configure_args0 " in
2021               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2022             esac
2023             ;;
2024           -* ) ac_must_keep_next=true ;;
2025         esac
2026       fi
2027       as_fn_append ac_configure_args " '$ac_arg'"
2028       ;;
2029     esac
2030   done
2031 done
2032 { ac_configure_args0=; unset ac_configure_args0;}
2033 { ac_configure_args1=; unset ac_configure_args1;}
2034
2035 # When interrupted or exit'd, cleanup temporary files, and complete
2036 # config.log.  We remove comments because anyway the quotes in there
2037 # would cause problems or look ugly.
2038 # WARNING: Use '\'' to represent an apostrophe within the trap.
2039 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2040 trap 'exit_status=$?
2041   # Save into config.log some information that might help in debugging.
2042   {
2043     echo
2044
2045     $as_echo "## ---------------- ##
2046 ## Cache variables. ##
2047 ## ---------------- ##"
2048     echo
2049     # The following way of writing the cache mishandles newlines in values,
2050 (
2051   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2052     eval ac_val=\$$ac_var
2053     case $ac_val in #(
2054     *${as_nl}*)
2055       case $ac_var in #(
2056       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2057 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2058       esac
2059       case $ac_var in #(
2060       _ | IFS | as_nl) ;; #(
2061       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2062       *) { eval $ac_var=; unset $ac_var;} ;;
2063       esac ;;
2064     esac
2065   done
2066   (set) 2>&1 |
2067     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2068     *${as_nl}ac_space=\ *)
2069       sed -n \
2070         "s/'\''/'\''\\\\'\'''\''/g;
2071           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2072       ;; #(
2073     *)
2074       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2075       ;;
2076     esac |
2077     sort
2078 )
2079     echo
2080
2081     $as_echo "## ----------------- ##
2082 ## Output variables. ##
2083 ## ----------------- ##"
2084     echo
2085     for ac_var in $ac_subst_vars
2086     do
2087       eval ac_val=\$$ac_var
2088       case $ac_val in
2089       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2090       esac
2091       $as_echo "$ac_var='\''$ac_val'\''"
2092     done | sort
2093     echo
2094
2095     if test -n "$ac_subst_files"; then
2096       $as_echo "## ------------------- ##
2097 ## File substitutions. ##
2098 ## ------------------- ##"
2099       echo
2100       for ac_var in $ac_subst_files
2101       do
2102         eval ac_val=\$$ac_var
2103         case $ac_val in
2104         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2105         esac
2106         $as_echo "$ac_var='\''$ac_val'\''"
2107       done | sort
2108       echo
2109     fi
2110
2111     if test -s confdefs.h; then
2112       $as_echo "## ----------- ##
2113 ## confdefs.h. ##
2114 ## ----------- ##"
2115       echo
2116       cat confdefs.h
2117       echo
2118     fi
2119     test "$ac_signal" != 0 &&
2120       $as_echo "$as_me: caught signal $ac_signal"
2121     $as_echo "$as_me: exit $exit_status"
2122   } >&5
2123   rm -f core *.core core.conftest.* &&
2124     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2125     exit $exit_status
2126 ' 0
2127 for ac_signal in 1 2 13 15; do
2128   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2129 done
2130 ac_signal=0
2131
2132 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2133 rm -f -r conftest* confdefs.h
2134
2135 $as_echo "/* confdefs.h */" > confdefs.h
2136
2137 # Predefined preprocessor variables.
2138
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_NAME "$PACKAGE_NAME"
2141 _ACEOF
2142
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2145 _ACEOF
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2149 _ACEOF
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_STRING "$PACKAGE_STRING"
2153 _ACEOF
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2157 _ACEOF
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_URL "$PACKAGE_URL"
2161 _ACEOF
2162
2163
2164 # Let the site file select an alternate cache file if it wants to.
2165 # Prefer an explicitly selected file to automatically selected ones.
2166 ac_site_file1=NONE
2167 ac_site_file2=NONE
2168 if test -n "$CONFIG_SITE"; then
2169   # We do not want a PATH search for config.site.
2170   case $CONFIG_SITE in #((
2171     -*)  ac_site_file1=./$CONFIG_SITE;;
2172     */*) ac_site_file1=$CONFIG_SITE;;
2173     *)   ac_site_file1=./$CONFIG_SITE;;
2174   esac
2175 elif test "x$prefix" != xNONE; then
2176   ac_site_file1=$prefix/share/config.site
2177   ac_site_file2=$prefix/etc/config.site
2178 else
2179   ac_site_file1=$ac_default_prefix/share/config.site
2180   ac_site_file2=$ac_default_prefix/etc/config.site
2181 fi
2182 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2183 do
2184   test "x$ac_site_file" = xNONE && continue
2185   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2186     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2187 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2188     sed 's/^/| /' "$ac_site_file" >&5
2189     . "$ac_site_file" \
2190       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2192 as_fn_error $? "failed to load site script $ac_site_file
2193 See \`config.log' for more details" "$LINENO" 5; }
2194   fi
2195 done
2196
2197 if test -r "$cache_file"; then
2198   # Some versions of bash will fail to source /dev/null (special files
2199   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2200   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2201     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2202 $as_echo "$as_me: loading cache $cache_file" >&6;}
2203     case $cache_file in
2204       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2205       *)                      . "./$cache_file";;
2206     esac
2207   fi
2208 else
2209   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2210 $as_echo "$as_me: creating cache $cache_file" >&6;}
2211   >$cache_file
2212 fi
2213
2214 # Check that the precious variables saved in the cache have kept the same
2215 # value.
2216 ac_cache_corrupted=false
2217 for ac_var in $ac_precious_vars; do
2218   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2219   eval ac_new_set=\$ac_env_${ac_var}_set
2220   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2221   eval ac_new_val=\$ac_env_${ac_var}_value
2222   case $ac_old_set,$ac_new_set in
2223     set,)
2224       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2225 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2226       ac_cache_corrupted=: ;;
2227     ,set)
2228       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2229 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2230       ac_cache_corrupted=: ;;
2231     ,);;
2232     *)
2233       if test "x$ac_old_val" != "x$ac_new_val"; then
2234         # differences in whitespace do not lead to failure.
2235         ac_old_val_w=`echo x $ac_old_val`
2236         ac_new_val_w=`echo x $ac_new_val`
2237         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2238           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2239 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2240           ac_cache_corrupted=:
2241         else
2242           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2243 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2244           eval $ac_var=\$ac_old_val
2245         fi
2246         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2247 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2248         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2249 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2250       fi;;
2251   esac
2252   # Pass precious variables to config.status.
2253   if test "$ac_new_set" = set; then
2254     case $ac_new_val in
2255     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2256     *) ac_arg=$ac_var=$ac_new_val ;;
2257     esac
2258     case " $ac_configure_args " in
2259       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2260       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2261     esac
2262   fi
2263 done
2264 if $ac_cache_corrupted; then
2265   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2267   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2268 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2269   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2270 fi
2271 ## -------------------- ##
2272 ## Main body of script. ##
2273 ## -------------------- ##
2274
2275 ac_ext=c
2276 ac_cpp='$CPP $CPPFLAGS'
2277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2280
2281
2282
2283 ac_config_headers="$ac_config_headers config.h"
2284
2285
2286 am__api_version='1.11'
2287
2288 ac_aux_dir=
2289 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2290   if test -f "$ac_dir/install-sh"; then
2291     ac_aux_dir=$ac_dir
2292     ac_install_sh="$ac_aux_dir/install-sh -c"
2293     break
2294   elif test -f "$ac_dir/install.sh"; then
2295     ac_aux_dir=$ac_dir
2296     ac_install_sh="$ac_aux_dir/install.sh -c"
2297     break
2298   elif test -f "$ac_dir/shtool"; then
2299     ac_aux_dir=$ac_dir
2300     ac_install_sh="$ac_aux_dir/shtool install -c"
2301     break
2302   fi
2303 done
2304 if test -z "$ac_aux_dir"; then
2305   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2306 fi
2307
2308 # These three variables are undocumented and unsupported,
2309 # and are intended to be withdrawn in a future Autoconf release.
2310 # They can cause serious problems if a builder's source tree is in a directory
2311 # whose full name contains unusual characters.
2312 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2313 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2314 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2315
2316
2317 # Find a good install program.  We prefer a C program (faster),
2318 # so one script is as good as another.  But avoid the broken or
2319 # incompatible versions:
2320 # SysV /etc/install, /usr/sbin/install
2321 # SunOS /usr/etc/install
2322 # IRIX /sbin/install
2323 # AIX /bin/install
2324 # AmigaOS /C/install, which installs bootblocks on floppy discs
2325 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2326 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2327 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2328 # OS/2's system install, which has a completely different semantic
2329 # ./install, which can be erroneously created by make from ./install.sh.
2330 # Reject install programs that cannot install multiple files.
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2332 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2333 if test -z "$INSTALL"; then
2334 if ${ac_cv_path_install+:} false; then :
2335   $as_echo_n "(cached) " >&6
2336 else
2337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2339 do
2340   IFS=$as_save_IFS
2341   test -z "$as_dir" && as_dir=.
2342     # Account for people who put trailing slashes in PATH elements.
2343 case $as_dir/ in #((
2344   ./ | .// | /[cC]/* | \
2345   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2346   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2347   /usr/ucb/* ) ;;
2348   *)
2349     # OSF1 and SCO ODT 3.0 have their own names for install.
2350     # Don't use installbsd from OSF since it installs stuff as root
2351     # by default.
2352     for ac_prog in ginstall scoinst install; do
2353       for ac_exec_ext in '' $ac_executable_extensions; do
2354         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2355           if test $ac_prog = install &&
2356             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2357             # AIX install.  It has an incompatible calling convention.
2358             :
2359           elif test $ac_prog = install &&
2360             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2361             # program-specific install script used by HP pwplus--don't use.
2362             :
2363           else
2364             rm -rf conftest.one conftest.two conftest.dir
2365             echo one > conftest.one
2366             echo two > conftest.two
2367             mkdir conftest.dir
2368             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2369               test -s conftest.one && test -s conftest.two &&
2370               test -s conftest.dir/conftest.one &&
2371               test -s conftest.dir/conftest.two
2372             then
2373               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2374               break 3
2375             fi
2376           fi
2377         fi
2378       done
2379     done
2380     ;;
2381 esac
2382
2383   done
2384 IFS=$as_save_IFS
2385
2386 rm -rf conftest.one conftest.two conftest.dir
2387
2388 fi
2389   if test "${ac_cv_path_install+set}" = set; then
2390     INSTALL=$ac_cv_path_install
2391   else
2392     # As a last resort, use the slow shell script.  Don't cache a
2393     # value for INSTALL within a source directory, because that will
2394     # break other packages using the cache if that directory is
2395     # removed, or if the value is a relative name.
2396     INSTALL=$ac_install_sh
2397   fi
2398 fi
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2400 $as_echo "$INSTALL" >&6; }
2401
2402 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2403 # It thinks the first close brace ends the variable substitution.
2404 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2405
2406 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2407
2408 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2409
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2411 $as_echo_n "checking whether build environment is sane... " >&6; }
2412 # Just in case
2413 sleep 1
2414 echo timestamp > conftest.file
2415 # Reject unsafe characters in $srcdir or the absolute working directory
2416 # name.  Accept space and tab only in the latter.
2417 am_lf='
2418 '
2419 case `pwd` in
2420   *[\\\"\#\$\&\'\`$am_lf]*)
2421     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2422 esac
2423 case $srcdir in
2424   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2425     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2426 esac
2427
2428 # Do `set' in a subshell so we don't clobber the current shell's
2429 # arguments.  Must try -L first in case configure is actually a
2430 # symlink; some systems play weird games with the mod time of symlinks
2431 # (eg FreeBSD returns the mod time of the symlink's containing
2432 # directory).
2433 if (
2434    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2435    if test "$*" = "X"; then
2436       # -L didn't work.
2437       set X `ls -t "$srcdir/configure" conftest.file`
2438    fi
2439    rm -f conftest.file
2440    if test "$*" != "X $srcdir/configure conftest.file" \
2441       && test "$*" != "X conftest.file $srcdir/configure"; then
2442
2443       # If neither matched, then we have a broken ls.  This can happen
2444       # if, for instance, CONFIG_SHELL is bash and it inherits a
2445       # broken ls alias from the environment.  This has actually
2446       # happened.  Such a system could not be considered "sane".
2447       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2448 alias in your environment" "$LINENO" 5
2449    fi
2450
2451    test "$2" = conftest.file
2452    )
2453 then
2454    # Ok.
2455    :
2456 else
2457    as_fn_error $? "newly created file is older than distributed files!
2458 Check your system clock" "$LINENO" 5
2459 fi
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2461 $as_echo "yes" >&6; }
2462 test "$program_prefix" != NONE &&
2463   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2464 # Use a double $ so make ignores it.
2465 test "$program_suffix" != NONE &&
2466   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2467 # Double any \ or $.
2468 # By default was `s,x,x', remove it if useless.
2469 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2470 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2471
2472 # expand $ac_aux_dir to an absolute path
2473 am_aux_dir=`cd $ac_aux_dir && pwd`
2474
2475 if test x"${MISSING+set}" != xset; then
2476   case $am_aux_dir in
2477   *\ * | *\     *)
2478     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2479   *)
2480     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2481   esac
2482 fi
2483 # Use eval to expand $SHELL
2484 if eval "$MISSING --run true"; then
2485   am_missing_run="$MISSING --run "
2486 else
2487   am_missing_run=
2488   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2489 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2490 fi
2491
2492 if test x"${install_sh}" != xset; then
2493   case $am_aux_dir in
2494   *\ * | *\     *)
2495     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2496   *)
2497     install_sh="\${SHELL} $am_aux_dir/install-sh"
2498   esac
2499 fi
2500
2501 # Installed binaries are usually stripped using `strip' when the user
2502 # run `make install-strip'.  However `strip' might not be the right
2503 # tool to use in cross-compilation environments, therefore Automake
2504 # will honor the `STRIP' environment variable to overrule this program.
2505 if test "$cross_compiling" != no; then
2506   if test -n "$ac_tool_prefix"; then
2507   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2508 set dummy ${ac_tool_prefix}strip; ac_word=$2
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2510 $as_echo_n "checking for $ac_word... " >&6; }
2511 if ${ac_cv_prog_STRIP+:} false; then :
2512   $as_echo_n "(cached) " >&6
2513 else
2514   if test -n "$STRIP"; then
2515   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2516 else
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2519 do
2520   IFS=$as_save_IFS
2521   test -z "$as_dir" && as_dir=.
2522     for ac_exec_ext in '' $ac_executable_extensions; do
2523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2526     break 2
2527   fi
2528 done
2529   done
2530 IFS=$as_save_IFS
2531
2532 fi
2533 fi
2534 STRIP=$ac_cv_prog_STRIP
2535 if test -n "$STRIP"; then
2536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2537 $as_echo "$STRIP" >&6; }
2538 else
2539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2540 $as_echo "no" >&6; }
2541 fi
2542
2543
2544 fi
2545 if test -z "$ac_cv_prog_STRIP"; then
2546   ac_ct_STRIP=$STRIP
2547   # Extract the first word of "strip", so it can be a program name with args.
2548 set dummy strip; ac_word=$2
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550 $as_echo_n "checking for $ac_word... " >&6; }
2551 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2552   $as_echo_n "(cached) " >&6
2553 else
2554   if test -n "$ac_ct_STRIP"; then
2555   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2556 else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2559 do
2560   IFS=$as_save_IFS
2561   test -z "$as_dir" && as_dir=.
2562     for ac_exec_ext in '' $ac_executable_extensions; do
2563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2564     ac_cv_prog_ac_ct_STRIP="strip"
2565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566     break 2
2567   fi
2568 done
2569   done
2570 IFS=$as_save_IFS
2571
2572 fi
2573 fi
2574 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2575 if test -n "$ac_ct_STRIP"; then
2576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2577 $as_echo "$ac_ct_STRIP" >&6; }
2578 else
2579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580 $as_echo "no" >&6; }
2581 fi
2582
2583   if test "x$ac_ct_STRIP" = x; then
2584     STRIP=":"
2585   else
2586     case $cross_compiling:$ac_tool_warned in
2587 yes:)
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2590 ac_tool_warned=yes ;;
2591 esac
2592     STRIP=$ac_ct_STRIP
2593   fi
2594 else
2595   STRIP="$ac_cv_prog_STRIP"
2596 fi
2597
2598 fi
2599 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2600
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2602 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2603 if test -z "$MKDIR_P"; then
2604   if ${ac_cv_path_mkdir+:} false; then :
2605   $as_echo_n "(cached) " >&6
2606 else
2607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2609 do
2610   IFS=$as_save_IFS
2611   test -z "$as_dir" && as_dir=.
2612     for ac_prog in mkdir gmkdir; do
2613          for ac_exec_ext in '' $ac_executable_extensions; do
2614            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2615            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2616              'mkdir (GNU coreutils) '* | \
2617              'mkdir (coreutils) '* | \
2618              'mkdir (fileutils) '4.1*)
2619                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2620                break 3;;
2621            esac
2622          done
2623        done
2624   done
2625 IFS=$as_save_IFS
2626
2627 fi
2628
2629   test -d ./--version && rmdir ./--version
2630   if test "${ac_cv_path_mkdir+set}" = set; then
2631     MKDIR_P="$ac_cv_path_mkdir -p"
2632   else
2633     # As a last resort, use the slow shell script.  Don't cache a
2634     # value for MKDIR_P within a source directory, because that will
2635     # break other packages using the cache if that directory is
2636     # removed, or if the value is a relative name.
2637     MKDIR_P="$ac_install_sh -d"
2638   fi
2639 fi
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2641 $as_echo "$MKDIR_P" >&6; }
2642
2643 mkdir_p="$MKDIR_P"
2644 case $mkdir_p in
2645   [\\/$]* | ?:[\\/]*) ;;
2646   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2647 esac
2648
2649 for ac_prog in gawk mawk nawk awk
2650 do
2651   # Extract the first word of "$ac_prog", so it can be a program name with args.
2652 set dummy $ac_prog; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_AWK+:} false; then :
2656   $as_echo_n "(cached) " >&6
2657 else
2658   if test -n "$AWK"; then
2659   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664   IFS=$as_save_IFS
2665   test -z "$as_dir" && as_dir=.
2666     for ac_exec_ext in '' $ac_executable_extensions; do
2667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668     ac_cv_prog_AWK="$ac_prog"
2669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670     break 2
2671   fi
2672 done
2673   done
2674 IFS=$as_save_IFS
2675
2676 fi
2677 fi
2678 AWK=$ac_cv_prog_AWK
2679 if test -n "$AWK"; then
2680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2681 $as_echo "$AWK" >&6; }
2682 else
2683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2685 fi
2686
2687
2688   test -n "$AWK" && break
2689 done
2690
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2692 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2693 set x ${MAKE-make}
2694 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2695 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2696   $as_echo_n "(cached) " >&6
2697 else
2698   cat >conftest.make <<\_ACEOF
2699 SHELL = /bin/sh
2700 all:
2701         @echo '@@@%%%=$(MAKE)=@@@%%%'
2702 _ACEOF
2703 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2704 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2705   *@@@%%%=?*=@@@%%%*)
2706     eval ac_cv_prog_make_${ac_make}_set=yes;;
2707   *)
2708     eval ac_cv_prog_make_${ac_make}_set=no;;
2709 esac
2710 rm -f conftest.make
2711 fi
2712 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2714 $as_echo "yes" >&6; }
2715   SET_MAKE=
2716 else
2717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2719   SET_MAKE="MAKE=${MAKE-make}"
2720 fi
2721
2722 rm -rf .tst 2>/dev/null
2723 mkdir .tst 2>/dev/null
2724 if test -d .tst; then
2725   am__leading_dot=.
2726 else
2727   am__leading_dot=_
2728 fi
2729 rmdir .tst 2>/dev/null
2730
2731 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2732   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2733   # is not polluted with repeated "-I."
2734   am__isrc=' -I$(srcdir)'
2735   # test to see if srcdir already configured
2736   if test -f $srcdir/config.status; then
2737     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2738   fi
2739 fi
2740
2741 # test whether we have cygpath
2742 if test -z "$CYGPATH_W"; then
2743   if (cygpath --version) >/dev/null 2>/dev/null; then
2744     CYGPATH_W='cygpath -w'
2745   else
2746     CYGPATH_W=echo
2747   fi
2748 fi
2749
2750
2751 # Define the identity of the package.
2752  PACKAGE=$PACKAGE_NAME
2753  VERSION=$PACKAGE_VERSION
2754
2755
2756 cat >>confdefs.h <<_ACEOF
2757 #define PACKAGE "$PACKAGE"
2758 _ACEOF
2759
2760
2761 cat >>confdefs.h <<_ACEOF
2762 #define VERSION "$VERSION"
2763 _ACEOF
2764
2765 # Some tools Automake needs.
2766
2767 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2768
2769
2770 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2771
2772
2773 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2774
2775
2776 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2777
2778
2779 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2780
2781 # We need awk for the "check" target.  The system "awk" is bad on
2782 # some platforms.
2783 # Always define AMTAR for backward compatibility.
2784
2785 AMTAR=${AMTAR-"${am_missing_run}tar"}
2786
2787 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2788
2789
2790
2791
2792
2793
2794 # Checks for programs
2795
2796 ac_ext=c
2797 ac_cpp='$CPP $CPPFLAGS'
2798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801 if test -n "$ac_tool_prefix"; then
2802   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2803 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if ${ac_cv_prog_CC+:} false; then :
2807   $as_echo_n "(cached) " >&6
2808 else
2809   if test -n "$CC"; then
2810   ac_cv_prog_CC="$CC" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815   IFS=$as_save_IFS
2816   test -z "$as_dir" && as_dir=.
2817     for ac_exec_ext in '' $ac_executable_extensions; do
2818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821     break 2
2822   fi
2823 done
2824   done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 CC=$ac_cv_prog_CC
2830 if test -n "$CC"; then
2831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2832 $as_echo "$CC" >&6; }
2833 else
2834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836 fi
2837
2838
2839 fi
2840 if test -z "$ac_cv_prog_CC"; then
2841   ac_ct_CC=$CC
2842   # Extract the first word of "gcc", so it can be a program name with args.
2843 set dummy gcc; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2847   $as_echo_n "(cached) " >&6
2848 else
2849   if test -n "$ac_ct_CC"; then
2850   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855   IFS=$as_save_IFS
2856   test -z "$as_dir" && as_dir=.
2857     for ac_exec_ext in '' $ac_executable_extensions; do
2858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859     ac_cv_prog_ac_ct_CC="gcc"
2860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861     break 2
2862   fi
2863 done
2864   done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2870 if test -n "$ac_ct_CC"; then
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2872 $as_echo "$ac_ct_CC" >&6; }
2873 else
2874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878   if test "x$ac_ct_CC" = x; then
2879     CC=""
2880   else
2881     case $cross_compiling:$ac_tool_warned in
2882 yes:)
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2885 ac_tool_warned=yes ;;
2886 esac
2887     CC=$ac_ct_CC
2888   fi
2889 else
2890   CC="$ac_cv_prog_CC"
2891 fi
2892
2893 if test -z "$CC"; then
2894           if test -n "$ac_tool_prefix"; then
2895     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}cc; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_CC+:} false; then :
2900   $as_echo_n "(cached) " >&6
2901 else
2902   if test -n "$CC"; then
2903   ac_cv_prog_CC="$CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908   IFS=$as_save_IFS
2909   test -z "$as_dir" && as_dir=.
2910     for ac_exec_ext in '' $ac_executable_extensions; do
2911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912     ac_cv_prog_CC="${ac_tool_prefix}cc"
2913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914     break 2
2915   fi
2916 done
2917   done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 CC=$ac_cv_prog_CC
2923 if test -n "$CC"; then
2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2925 $as_echo "$CC" >&6; }
2926 else
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 fi
2930
2931
2932   fi
2933 fi
2934 if test -z "$CC"; then
2935   # Extract the first word of "cc", so it can be a program name with args.
2936 set dummy cc; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_CC+:} false; then :
2940   $as_echo_n "(cached) " >&6
2941 else
2942   if test -n "$CC"; then
2943   ac_cv_prog_CC="$CC" # Let the user override the test.
2944 else
2945   ac_prog_rejected=no
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949   IFS=$as_save_IFS
2950   test -z "$as_dir" && as_dir=.
2951     for ac_exec_ext in '' $ac_executable_extensions; do
2952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2954        ac_prog_rejected=yes
2955        continue
2956      fi
2957     ac_cv_prog_CC="cc"
2958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959     break 2
2960   fi
2961 done
2962   done
2963 IFS=$as_save_IFS
2964
2965 if test $ac_prog_rejected = yes; then
2966   # We found a bogon in the path, so make sure we never use it.
2967   set dummy $ac_cv_prog_CC
2968   shift
2969   if test $# != 0; then
2970     # We chose a different compiler from the bogus one.
2971     # However, it has the same basename, so the bogon will be chosen
2972     # first if we set CC to just the basename; use the full file name.
2973     shift
2974     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2975   fi
2976 fi
2977 fi
2978 fi
2979 CC=$ac_cv_prog_CC
2980 if test -n "$CC"; then
2981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2982 $as_echo "$CC" >&6; }
2983 else
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2986 fi
2987
2988
2989 fi
2990 if test -z "$CC"; then
2991   if test -n "$ac_tool_prefix"; then
2992   for ac_prog in cl.exe
2993   do
2994     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_CC+:} false; then :
2999   $as_echo_n "(cached) " >&6
3000 else
3001   if test -n "$CC"; then
3002   ac_cv_prog_CC="$CC" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007   IFS=$as_save_IFS
3008   test -z "$as_dir" && as_dir=.
3009     for ac_exec_ext in '' $ac_executable_extensions; do
3010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013     break 2
3014   fi
3015 done
3016   done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 CC=$ac_cv_prog_CC
3022 if test -n "$CC"; then
3023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3024 $as_echo "$CC" >&6; }
3025 else
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028 fi
3029
3030
3031     test -n "$CC" && break
3032   done
3033 fi
3034 if test -z "$CC"; then
3035   ac_ct_CC=$CC
3036   for ac_prog in cl.exe
3037 do
3038   # Extract the first word of "$ac_prog", so it can be a program name with args.
3039 set dummy $ac_prog; ac_word=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3043   $as_echo_n "(cached) " >&6
3044 else
3045   if test -n "$ac_ct_CC"; then
3046   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051   IFS=$as_save_IFS
3052   test -z "$as_dir" && as_dir=.
3053     for ac_exec_ext in '' $ac_executable_extensions; do
3054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055     ac_cv_prog_ac_ct_CC="$ac_prog"
3056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057     break 2
3058   fi
3059 done
3060   done
3061 IFS=$as_save_IFS
3062
3063 fi
3064 fi
3065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3066 if test -n "$ac_ct_CC"; then
3067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3068 $as_echo "$ac_ct_CC" >&6; }
3069 else
3070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 fi
3073
3074
3075   test -n "$ac_ct_CC" && break
3076 done
3077
3078   if test "x$ac_ct_CC" = x; then
3079     CC=""
3080   else
3081     case $cross_compiling:$ac_tool_warned in
3082 yes:)
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3085 ac_tool_warned=yes ;;
3086 esac
3087     CC=$ac_ct_CC
3088   fi
3089 fi
3090
3091 fi
3092
3093
3094 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096 as_fn_error $? "no acceptable C compiler found in \$PATH
3097 See \`config.log' for more details" "$LINENO" 5; }
3098
3099 # Provide some information about the compiler.
3100 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3101 set X $ac_compile
3102 ac_compiler=$2
3103 for ac_option in --version -v -V -qversion; do
3104   { { ac_try="$ac_compiler $ac_option >&5"
3105 case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110 $as_echo "$ac_try_echo"; } >&5
3111   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3112   ac_status=$?
3113   if test -s conftest.err; then
3114     sed '10a\
3115 ... rest of stderr output deleted ...
3116          10q' conftest.err >conftest.er1
3117     cat conftest.er1 >&5
3118   fi
3119   rm -f conftest.er1 conftest.err
3120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121   test $ac_status = 0; }
3122 done
3123
3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h.  */
3126
3127 int
3128 main ()
3129 {
3130
3131   ;
3132   return 0;
3133 }
3134 _ACEOF
3135 ac_clean_files_save=$ac_clean_files
3136 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3137 # Try to create an executable without -o first, disregard a.out.
3138 # It will help us diagnose broken compilers, and finding out an intuition
3139 # of exeext.
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3141 $as_echo_n "checking whether the C compiler works... " >&6; }
3142 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3143
3144 # The possible output files:
3145 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3146
3147 ac_rmfiles=
3148 for ac_file in $ac_files
3149 do
3150   case $ac_file in
3151     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3152     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3153   esac
3154 done
3155 rm -f $ac_rmfiles
3156
3157 if { { ac_try="$ac_link_default"
3158 case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164   (eval "$ac_link_default") 2>&5
3165   ac_status=$?
3166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167   test $ac_status = 0; }; then :
3168   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3169 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3170 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3171 # so that the user can short-circuit this test for compilers unknown to
3172 # Autoconf.
3173 for ac_file in $ac_files ''
3174 do
3175   test -f "$ac_file" || continue
3176   case $ac_file in
3177     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3178         ;;
3179     [ab].out )
3180         # We found the default executable, but exeext='' is most
3181         # certainly right.
3182         break;;
3183     *.* )
3184         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3185         then :; else
3186            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3187         fi
3188         # We set ac_cv_exeext here because the later test for it is not
3189         # safe: cross compilers may not add the suffix if given an `-o'
3190         # argument, so we may need to know it at that point already.
3191         # Even if this section looks crufty: it has the advantage of
3192         # actually working.
3193         break;;
3194     * )
3195         break;;
3196   esac
3197 done
3198 test "$ac_cv_exeext" = no && ac_cv_exeext=
3199
3200 else
3201   ac_file=''
3202 fi
3203 if test -z "$ac_file"; then :
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 $as_echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3208
3209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211 as_fn_error 77 "C compiler cannot create executables
3212 See \`config.log' for more details" "$LINENO" 5; }
3213 else
3214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3215 $as_echo "yes" >&6; }
3216 fi
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3218 $as_echo_n "checking for C compiler default output file name... " >&6; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3220 $as_echo "$ac_file" >&6; }
3221 ac_exeext=$ac_cv_exeext
3222
3223 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3224 ac_clean_files=$ac_clean_files_save
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3226 $as_echo_n "checking for suffix of executables... " >&6; }
3227 if { { ac_try="$ac_link"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234   (eval "$ac_link") 2>&5
3235   ac_status=$?
3236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237   test $ac_status = 0; }; then :
3238   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3239 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3240 # work properly (i.e., refer to `conftest.exe'), while it won't with
3241 # `rm'.
3242 for ac_file in conftest.exe conftest conftest.*; do
3243   test -f "$ac_file" || continue
3244   case $ac_file in
3245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3246     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3247           break;;
3248     * ) break;;
3249   esac
3250 done
3251 else
3252   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3255 See \`config.log' for more details" "$LINENO" 5; }
3256 fi
3257 rm -f conftest conftest$ac_cv_exeext
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3259 $as_echo "$ac_cv_exeext" >&6; }
3260
3261 rm -f conftest.$ac_ext
3262 EXEEXT=$ac_cv_exeext
3263 ac_exeext=$EXEEXT
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h.  */
3266 #include <stdio.h>
3267 int
3268 main ()
3269 {
3270 FILE *f = fopen ("conftest.out", "w");
3271  return ferror (f) || fclose (f) != 0;
3272
3273   ;
3274   return 0;
3275 }
3276 _ACEOF
3277 ac_clean_files="$ac_clean_files conftest.out"
3278 # Check that the compiler produces executables we can run.  If not, either
3279 # the compiler is broken, or we cross compile.
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3281 $as_echo_n "checking whether we are cross compiling... " >&6; }
3282 if test "$cross_compiling" != yes; then
3283   { { ac_try="$ac_link"
3284 case "(($ac_try" in
3285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286   *) ac_try_echo=$ac_try;;
3287 esac
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290   (eval "$ac_link") 2>&5
3291   ac_status=$?
3292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293   test $ac_status = 0; }
3294   if { ac_try='./conftest$ac_cv_exeext'
3295   { { case "(($ac_try" in
3296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297   *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301   (eval "$ac_try") 2>&5
3302   ac_status=$?
3303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304   test $ac_status = 0; }; }; then
3305     cross_compiling=no
3306   else
3307     if test "$cross_compiling" = maybe; then
3308         cross_compiling=yes
3309     else
3310         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error $? "cannot run C compiled programs.
3313 If you meant to cross compile, use \`--host'.
3314 See \`config.log' for more details" "$LINENO" 5; }
3315     fi
3316   fi
3317 fi
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3319 $as_echo "$cross_compiling" >&6; }
3320
3321 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3322 ac_clean_files=$ac_clean_files_save
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3324 $as_echo_n "checking for suffix of object files... " >&6; }
3325 if ${ac_cv_objext+:} false; then :
3326   $as_echo_n "(cached) " >&6
3327 else
3328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h.  */
3330
3331 int
3332 main ()
3333 {
3334
3335   ;
3336   return 0;
3337 }
3338 _ACEOF
3339 rm -f conftest.o conftest.obj
3340 if { { ac_try="$ac_compile"
3341 case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347   (eval "$ac_compile") 2>&5
3348   ac_status=$?
3349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350   test $ac_status = 0; }; then :
3351   for ac_file in conftest.o conftest.obj conftest.*; do
3352   test -f "$ac_file" || continue;
3353   case $ac_file in
3354     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3355     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3356        break;;
3357   esac
3358 done
3359 else
3360   $as_echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "cannot compute suffix of object files: cannot compile
3366 See \`config.log' for more details" "$LINENO" 5; }
3367 fi
3368 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3369 fi
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3371 $as_echo "$ac_cv_objext" >&6; }
3372 OBJEXT=$ac_cv_objext
3373 ac_objext=$OBJEXT
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3375 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3376 if ${ac_cv_c_compiler_gnu+:} false; then :
3377   $as_echo_n "(cached) " >&6
3378 else
3379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h.  */
3381
3382 int
3383 main ()
3384 {
3385 #ifndef __GNUC__
3386        choke me
3387 #endif
3388
3389   ;
3390   return 0;
3391 }
3392 _ACEOF
3393 if ac_fn_c_try_compile "$LINENO"; then :
3394   ac_compiler_gnu=yes
3395 else
3396   ac_compiler_gnu=no
3397 fi
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3400
3401 fi
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3403 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3404 if test $ac_compiler_gnu = yes; then
3405   GCC=yes
3406 else
3407   GCC=
3408 fi
3409 ac_test_CFLAGS=${CFLAGS+set}
3410 ac_save_CFLAGS=$CFLAGS
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3412 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3413 if ${ac_cv_prog_cc_g+:} false; then :
3414   $as_echo_n "(cached) " >&6
3415 else
3416   ac_save_c_werror_flag=$ac_c_werror_flag
3417    ac_c_werror_flag=yes
3418    ac_cv_prog_cc_g=no
3419    CFLAGS="-g"
3420    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h.  */
3422
3423 int
3424 main ()
3425 {
3426
3427   ;
3428   return 0;
3429 }
3430 _ACEOF
3431 if ac_fn_c_try_compile "$LINENO"; then :
3432   ac_cv_prog_cc_g=yes
3433 else
3434   CFLAGS=""
3435       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h.  */
3437
3438 int
3439 main ()
3440 {
3441
3442   ;
3443   return 0;
3444 }
3445 _ACEOF
3446 if ac_fn_c_try_compile "$LINENO"; then :
3447
3448 else
3449   ac_c_werror_flag=$ac_save_c_werror_flag
3450          CFLAGS="-g"
3451          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h.  */
3453
3454 int
3455 main ()
3456 {
3457
3458   ;
3459   return 0;
3460 }
3461 _ACEOF
3462 if ac_fn_c_try_compile "$LINENO"; then :
3463   ac_cv_prog_cc_g=yes
3464 fi
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 fi
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 fi
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470    ac_c_werror_flag=$ac_save_c_werror_flag
3471 fi
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3473 $as_echo "$ac_cv_prog_cc_g" >&6; }
3474 if test "$ac_test_CFLAGS" = set; then
3475   CFLAGS=$ac_save_CFLAGS
3476 elif test $ac_cv_prog_cc_g = yes; then
3477   if test "$GCC" = yes; then
3478     CFLAGS="-g -O2"
3479   else
3480     CFLAGS="-g"
3481   fi
3482 else
3483   if test "$GCC" = yes; then
3484     CFLAGS="-O2"
3485   else
3486     CFLAGS=
3487   fi
3488 fi
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3490 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3491 if ${ac_cv_prog_cc_c89+:} false; then :
3492   $as_echo_n "(cached) " >&6
3493 else
3494   ac_cv_prog_cc_c89=no
3495 ac_save_CC=$CC
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h.  */
3498 #include <stdarg.h>
3499 #include <stdio.h>
3500 #include <sys/types.h>
3501 #include <sys/stat.h>
3502 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3503 struct buf { int x; };
3504 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3505 static char *e (p, i)
3506      char **p;
3507      int i;
3508 {
3509   return p[i];
3510 }
3511 static char *f (char * (*g) (char **, int), char **p, ...)
3512 {
3513   char *s;
3514   va_list v;
3515   va_start (v,p);
3516   s = g (p, va_arg (v,int));
3517   va_end (v);
3518   return s;
3519 }
3520
3521 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3522    function prototypes and stuff, but not '\xHH' hex character constants.
3523    These don't provoke an error unfortunately, instead are silently treated
3524    as 'x'.  The following induces an error, until -std is added to get
3525    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3526    array size at least.  It's necessary to write '\x00'==0 to get something
3527    that's true only with -std.  */
3528 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3529
3530 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3531    inside strings and character constants.  */
3532 #define FOO(x) 'x'
3533 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3534
3535 int test (int i, double x);
3536 struct s1 {int (*f) (int a);};
3537 struct s2 {int (*f) (double a);};
3538 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3539 int argc;
3540 char **argv;
3541 int
3542 main ()
3543 {
3544 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3550         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3551 do
3552   CC="$ac_save_CC $ac_arg"
3553   if ac_fn_c_try_compile "$LINENO"; then :
3554   ac_cv_prog_cc_c89=$ac_arg
3555 fi
3556 rm -f core conftest.err conftest.$ac_objext
3557   test "x$ac_cv_prog_cc_c89" != "xno" && break
3558 done
3559 rm -f conftest.$ac_ext
3560 CC=$ac_save_CC
3561
3562 fi
3563 # AC_CACHE_VAL
3564 case "x$ac_cv_prog_cc_c89" in
3565   x)
3566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3567 $as_echo "none needed" >&6; } ;;
3568   xno)
3569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3570 $as_echo "unsupported" >&6; } ;;
3571   *)
3572     CC="$CC $ac_cv_prog_cc_c89"
3573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3574 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3575 esac
3576 if test "x$ac_cv_prog_cc_c89" != xno; then :
3577
3578 fi
3579
3580 ac_ext=c
3581 ac_cpp='$CPP $CPPFLAGS'
3582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3585 DEPDIR="${am__leading_dot}deps"
3586
3587 ac_config_commands="$ac_config_commands depfiles"
3588
3589
3590 am_make=${MAKE-make}
3591 cat > confinc << 'END'
3592 am__doit:
3593         @echo this is the am__doit target
3594 .PHONY: am__doit
3595 END
3596 # If we don't find an include directive, just comment out the code.
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3598 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3599 am__include="#"
3600 am__quote=
3601 _am_result=none
3602 # First try GNU make style include.
3603 echo "include confinc" > confmf
3604 # Ignore all kinds of additional output from `make'.
3605 case `$am_make -s -f confmf 2> /dev/null` in #(
3606 *the\ am__doit\ target*)
3607   am__include=include
3608   am__quote=
3609   _am_result=GNU
3610   ;;
3611 esac
3612 # Now try BSD make style include.
3613 if test "$am__include" = "#"; then
3614    echo '.include "confinc"' > confmf
3615    case `$am_make -s -f confmf 2> /dev/null` in #(
3616    *the\ am__doit\ target*)
3617      am__include=.include
3618      am__quote="\""
3619      _am_result=BSD
3620      ;;
3621    esac
3622 fi
3623
3624
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3626 $as_echo "$_am_result" >&6; }
3627 rm -f confinc confmf
3628
3629 # Check whether --enable-dependency-tracking was given.
3630 if test "${enable_dependency_tracking+set}" = set; then :
3631   enableval=$enable_dependency_tracking;
3632 fi
3633
3634 if test "x$enable_dependency_tracking" != xno; then
3635   am_depcomp="$ac_aux_dir/depcomp"
3636   AMDEPBACKSLASH='\'
3637 fi
3638  if test "x$enable_dependency_tracking" != xno; then
3639   AMDEP_TRUE=
3640   AMDEP_FALSE='#'
3641 else
3642   AMDEP_TRUE='#'
3643   AMDEP_FALSE=
3644 fi
3645
3646
3647
3648 depcc="$CC"   am_compiler_list=
3649
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3651 $as_echo_n "checking dependency style of $depcc... " >&6; }
3652 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3653   $as_echo_n "(cached) " >&6
3654 else
3655   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3656   # We make a subdir and do the tests there.  Otherwise we can end up
3657   # making bogus files that we don't know about and never remove.  For
3658   # instance it was reported that on HP-UX the gcc test will end up
3659   # making a dummy file named `D' -- because `-MD' means `put the output
3660   # in D'.
3661   mkdir conftest.dir
3662   # Copy depcomp to subdir because otherwise we won't find it if we're
3663   # using a relative directory.
3664   cp "$am_depcomp" conftest.dir
3665   cd conftest.dir
3666   # We will build objects and dependencies in a subdirectory because
3667   # it helps to detect inapplicable dependency modes.  For instance
3668   # both Tru64's cc and ICC support -MD to output dependencies as a
3669   # side effect of compilation, but ICC will put the dependencies in
3670   # the current directory while Tru64 will put them in the object
3671   # directory.
3672   mkdir sub
3673
3674   am_cv_CC_dependencies_compiler_type=none
3675   if test "$am_compiler_list" = ""; then
3676      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3677   fi
3678   am__universal=false
3679   case " $depcc " in #(
3680      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3681      esac
3682
3683   for depmode in $am_compiler_list; do
3684     # Setup a source with many dependencies, because some compilers
3685     # like to wrap large dependency lists on column 80 (with \), and
3686     # we should not choose a depcomp mode which is confused by this.
3687     #
3688     # We need to recreate these files for each test, as the compiler may
3689     # overwrite some of them when testing with obscure command lines.
3690     # This happens at least with the AIX C compiler.
3691     : > sub/conftest.c
3692     for i in 1 2 3 4 5 6; do
3693       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3694       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3695       # Solaris 8's {/usr,}/bin/sh.
3696       touch sub/conftst$i.h
3697     done
3698     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3699
3700     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3701     # mode.  It turns out that the SunPro C++ compiler does not properly
3702     # handle `-M -o', and we need to detect this.  Also, some Intel
3703     # versions had trouble with output in subdirs
3704     am__obj=sub/conftest.${OBJEXT-o}
3705     am__minus_obj="-o $am__obj"
3706     case $depmode in
3707     gcc)
3708       # This depmode causes a compiler race in universal mode.
3709       test "$am__universal" = false || continue
3710       ;;
3711     nosideeffect)
3712       # after this tag, mechanisms are not by side-effect, so they'll
3713       # only be used when explicitly requested
3714       if test "x$enable_dependency_tracking" = xyes; then
3715         continue
3716       else
3717         break
3718       fi
3719       ;;
3720     msvisualcpp | msvcmsys)
3721       # This compiler won't grok `-c -o', but also, the minuso test has
3722       # not run yet.  These depmodes are late enough in the game, and
3723       # so weak that their functioning should not be impacted.
3724       am__obj=conftest.${OBJEXT-o}
3725       am__minus_obj=
3726       ;;
3727     none) break ;;
3728     esac
3729     if depmode=$depmode \
3730        source=sub/conftest.c object=$am__obj \
3731        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3732        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3733          >/dev/null 2>conftest.err &&
3734        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3735        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3736        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3737        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3738       # icc doesn't choke on unknown options, it will just issue warnings
3739       # or remarks (even with -Werror).  So we grep stderr for any message
3740       # that says an option was ignored or not supported.
3741       # When given -MP, icc 7.0 and 7.1 complain thusly:
3742       #   icc: Command line warning: ignoring option '-M'; no argument required
3743       # The diagnosis changed in icc 8.0:
3744       #   icc: Command line remark: option '-MP' not supported
3745       if (grep 'ignoring option' conftest.err ||
3746           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3747         am_cv_CC_dependencies_compiler_type=$depmode
3748         break
3749       fi
3750     fi
3751   done
3752
3753   cd ..
3754   rm -rf conftest.dir
3755 else
3756   am_cv_CC_dependencies_compiler_type=none
3757 fi
3758
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3761 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3762 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3763
3764  if
3765   test "x$enable_dependency_tracking" != xno \
3766   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3767   am__fastdepCC_TRUE=
3768   am__fastdepCC_FALSE='#'
3769 else
3770   am__fastdepCC_TRUE='#'
3771   am__fastdepCC_FALSE=
3772 fi
3773
3774
3775
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3777 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3778 set x ${MAKE-make}
3779 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3780 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3781   $as_echo_n "(cached) " >&6
3782 else
3783   cat >conftest.make <<\_ACEOF
3784 SHELL = /bin/sh
3785 all:
3786         @echo '@@@%%%=$(MAKE)=@@@%%%'
3787 _ACEOF
3788 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3789 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3790   *@@@%%%=?*=@@@%%%*)
3791     eval ac_cv_prog_make_${ac_make}_set=yes;;
3792   *)
3793     eval ac_cv_prog_make_${ac_make}_set=no;;
3794 esac
3795 rm -f conftest.make
3796 fi
3797 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3799 $as_echo "yes" >&6; }
3800   SET_MAKE=
3801 else
3802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3804   SET_MAKE="MAKE=${MAKE-make}"
3805 fi
3806
3807 case `pwd` in
3808   *\ * | *\     *)
3809     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3810 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3811 esac
3812
3813
3814
3815 macro_version='2.4'
3816 macro_revision='1.3293'
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830 ltmain="$ac_aux_dir/ltmain.sh"
3831
3832 # Make sure we can run config.sub.
3833 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3834   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3835
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3837 $as_echo_n "checking build system type... " >&6; }
3838 if ${ac_cv_build+:} false; then :
3839   $as_echo_n "(cached) " >&6
3840 else
3841   ac_build_alias=$build_alias
3842 test "x$ac_build_alias" = x &&
3843   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3844 test "x$ac_build_alias" = x &&
3845   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3846 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3847   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3848
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3851 $as_echo "$ac_cv_build" >&6; }
3852 case $ac_cv_build in
3853 *-*-*) ;;
3854 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3855 esac
3856 build=$ac_cv_build
3857 ac_save_IFS=$IFS; IFS='-'
3858 set x $ac_cv_build
3859 shift
3860 build_cpu=$1
3861 build_vendor=$2
3862 shift; shift
3863 # Remember, the first character of IFS is used to create $*,
3864 # except with old shells:
3865 build_os=$*
3866 IFS=$ac_save_IFS
3867 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3868
3869
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3871 $as_echo_n "checking host system type... " >&6; }
3872 if ${ac_cv_host+:} false; then :
3873   $as_echo_n "(cached) " >&6
3874 else
3875   if test "x$host_alias" = x; then
3876   ac_cv_host=$ac_cv_build
3877 else
3878   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3879     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3880 fi
3881
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3884 $as_echo "$ac_cv_host" >&6; }
3885 case $ac_cv_host in
3886 *-*-*) ;;
3887 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3888 esac
3889 host=$ac_cv_host
3890 ac_save_IFS=$IFS; IFS='-'
3891 set x $ac_cv_host
3892 shift
3893 host_cpu=$1
3894 host_vendor=$2
3895 shift; shift
3896 # Remember, the first character of IFS is used to create $*,
3897 # except with old shells:
3898 host_os=$*
3899 IFS=$ac_save_IFS
3900 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3901
3902
3903 # Backslashify metacharacters that are still active within
3904 # double-quoted strings.
3905 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3906
3907 # Same as above, but do not quote variable references.
3908 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3909
3910 # Sed substitution to delay expansion of an escaped shell variable in a
3911 # double_quote_subst'ed string.
3912 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3913
3914 # Sed substitution to delay expansion of an escaped single quote.
3915 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3916
3917 # Sed substitution to avoid accidental globbing in evaled expressions
3918 no_glob_subst='s/\*/\\\*/g'
3919
3920 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3921 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3922 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3923
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3925 $as_echo_n "checking how to print strings... " >&6; }
3926 # Test print first, because it will be a builtin if present.
3927 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3928    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3929   ECHO='print -r --'
3930 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3931   ECHO='printf %s\n'
3932 else
3933   # Use this function as a fallback that always works.
3934   func_fallback_echo ()
3935   {
3936     eval 'cat <<_LTECHO_EOF
3937 $1
3938 _LTECHO_EOF'
3939   }
3940   ECHO='func_fallback_echo'
3941 fi
3942
3943 # func_echo_all arg...
3944 # Invoke $ECHO with all args, space-separated.
3945 func_echo_all ()
3946 {
3947     $ECHO ""
3948 }
3949
3950 case "$ECHO" in
3951   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3952 $as_echo "printf" >&6; } ;;
3953   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3954 $as_echo "print -r" >&6; } ;;
3955   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3956 $as_echo "cat" >&6; } ;;
3957 esac
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3973 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3974 if ${ac_cv_path_SED+:} false; then :
3975   $as_echo_n "(cached) " >&6
3976 else
3977             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3978      for ac_i in 1 2 3 4 5 6 7; do
3979        ac_script="$ac_script$as_nl$ac_script"
3980      done
3981      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3982      { ac_script=; unset ac_script;}
3983      if test -z "$SED"; then
3984   ac_path_SED_found=false
3985   # Loop through the user's path and test for each of PROGNAME-LIST
3986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989   IFS=$as_save_IFS
3990   test -z "$as_dir" && as_dir=.
3991     for ac_prog in sed gsed; do
3992     for ac_exec_ext in '' $ac_executable_extensions; do
3993       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3994       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3995 # Check for GNU ac_path_SED and select it if it is found.
3996   # Check for GNU $ac_path_SED
3997 case `"$ac_path_SED" --version 2>&1` in
3998 *GNU*)
3999   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4000 *)
4001   ac_count=0
4002   $as_echo_n 0123456789 >"conftest.in"
4003   while :
4004   do
4005     cat "conftest.in" "conftest.in" >"conftest.tmp"
4006     mv "conftest.tmp" "conftest.in"
4007     cp "conftest.in" "conftest.nl"
4008     $as_echo '' >> "conftest.nl"
4009     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4010     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4011     as_fn_arith $ac_count + 1 && ac_count=$as_val
4012     if test $ac_count -gt ${ac_path_SED_max-0}; then
4013       # Best one so far, save it but keep looking for a better one
4014       ac_cv_path_SED="$ac_path_SED"
4015       ac_path_SED_max=$ac_count
4016     fi
4017     # 10*(2^10) chars as input seems more than enough
4018     test $ac_count -gt 10 && break
4019   done
4020   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4021 esac
4022
4023       $ac_path_SED_found && break 3
4024     done
4025   done
4026   done
4027 IFS=$as_save_IFS
4028   if test -z "$ac_cv_path_SED"; then
4029     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4030   fi
4031 else
4032   ac_cv_path_SED=$SED
4033 fi
4034
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4037 $as_echo "$ac_cv_path_SED" >&6; }
4038  SED="$ac_cv_path_SED"
4039   rm -f conftest.sed
4040
4041 test -z "$SED" && SED=sed
4042 Xsed="$SED -e 1s/^X//"
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4055 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4056 if ${ac_cv_path_GREP+:} false; then :
4057   $as_echo_n "(cached) " >&6
4058 else
4059   if test -z "$GREP"; then
4060   ac_path_GREP_found=false
4061   # Loop through the user's path and test for each of PROGNAME-LIST
4062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4064 do
4065   IFS=$as_save_IFS
4066   test -z "$as_dir" && as_dir=.
4067     for ac_prog in grep ggrep; do
4068     for ac_exec_ext in '' $ac_executable_extensions; do
4069       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4070       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4071 # Check for GNU ac_path_GREP and select it if it is found.
4072   # Check for GNU $ac_path_GREP
4073 case `"$ac_path_GREP" --version 2>&1` in
4074 *GNU*)
4075   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4076 *)
4077   ac_count=0
4078   $as_echo_n 0123456789 >"conftest.in"
4079   while :
4080   do
4081     cat "conftest.in" "conftest.in" >"conftest.tmp"
4082     mv "conftest.tmp" "conftest.in"
4083     cp "conftest.in" "conftest.nl"
4084     $as_echo 'GREP' >> "conftest.nl"
4085     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4086     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4087     as_fn_arith $ac_count + 1 && ac_count=$as_val
4088     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4089       # Best one so far, save it but keep looking for a better one
4090       ac_cv_path_GREP="$ac_path_GREP"
4091       ac_path_GREP_max=$ac_count
4092     fi
4093     # 10*(2^10) chars as input seems more than enough
4094     test $ac_count -gt 10 && break
4095   done
4096   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4097 esac
4098
4099       $ac_path_GREP_found && break 3
4100     done
4101   done
4102   done
4103 IFS=$as_save_IFS
4104   if test -z "$ac_cv_path_GREP"; then
4105     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4106   fi
4107 else
4108   ac_cv_path_GREP=$GREP
4109 fi
4110
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4113 $as_echo "$ac_cv_path_GREP" >&6; }
4114  GREP="$ac_cv_path_GREP"
4115
4116
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4118 $as_echo_n "checking for egrep... " >&6; }
4119 if ${ac_cv_path_EGREP+:} false; then :
4120   $as_echo_n "(cached) " >&6
4121 else
4122   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4123    then ac_cv_path_EGREP="$GREP -E"
4124    else
4125      if test -z "$EGREP"; then
4126   ac_path_EGREP_found=false
4127   # Loop through the user's path and test for each of PROGNAME-LIST
4128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4130 do
4131   IFS=$as_save_IFS
4132   test -z "$as_dir" && as_dir=.
4133     for ac_prog in egrep; do
4134     for ac_exec_ext in '' $ac_executable_extensions; do
4135       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4136       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4137 # Check for GNU ac_path_EGREP and select it if it is found.
4138   # Check for GNU $ac_path_EGREP
4139 case `"$ac_path_EGREP" --version 2>&1` in
4140 *GNU*)
4141   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4142 *)
4143   ac_count=0
4144   $as_echo_n 0123456789 >"conftest.in"
4145   while :
4146   do
4147     cat "conftest.in" "conftest.in" >"conftest.tmp"
4148     mv "conftest.tmp" "conftest.in"
4149     cp "conftest.in" "conftest.nl"
4150     $as_echo 'EGREP' >> "conftest.nl"
4151     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4152     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4153     as_fn_arith $ac_count + 1 && ac_count=$as_val
4154     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4155       # Best one so far, save it but keep looking for a better one
4156       ac_cv_path_EGREP="$ac_path_EGREP"
4157       ac_path_EGREP_max=$ac_count
4158     fi
4159     # 10*(2^10) chars as input seems more than enough
4160     test $ac_count -gt 10 && break
4161   done
4162   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4163 esac
4164
4165       $ac_path_EGREP_found && break 3
4166     done
4167   done
4168   done
4169 IFS=$as_save_IFS
4170   if test -z "$ac_cv_path_EGREP"; then
4171     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4172   fi
4173 else
4174   ac_cv_path_EGREP=$EGREP
4175 fi
4176
4177    fi
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4180 $as_echo "$ac_cv_path_EGREP" >&6; }
4181  EGREP="$ac_cv_path_EGREP"
4182
4183
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4185 $as_echo_n "checking for fgrep... " >&6; }
4186 if ${ac_cv_path_FGREP+:} false; then :
4187   $as_echo_n "(cached) " >&6
4188 else
4189   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4190    then ac_cv_path_FGREP="$GREP -F"
4191    else
4192      if test -z "$FGREP"; then
4193   ac_path_FGREP_found=false
4194   # Loop through the user's path and test for each of PROGNAME-LIST
4195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4197 do
4198   IFS=$as_save_IFS
4199   test -z "$as_dir" && as_dir=.
4200     for ac_prog in fgrep; do
4201     for ac_exec_ext in '' $ac_executable_extensions; do
4202       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4203       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4204 # Check for GNU ac_path_FGREP and select it if it is found.
4205   # Check for GNU $ac_path_FGREP
4206 case `"$ac_path_FGREP" --version 2>&1` in
4207 *GNU*)
4208   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4209 *)
4210   ac_count=0
4211   $as_echo_n 0123456789 >"conftest.in"
4212   while :
4213   do
4214     cat "conftest.in" "conftest.in" >"conftest.tmp"
4215     mv "conftest.tmp" "conftest.in"
4216     cp "conftest.in" "conftest.nl"
4217     $as_echo 'FGREP' >> "conftest.nl"
4218     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4219     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4220     as_fn_arith $ac_count + 1 && ac_count=$as_val
4221     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4222       # Best one so far, save it but keep looking for a better one
4223       ac_cv_path_FGREP="$ac_path_FGREP"
4224       ac_path_FGREP_max=$ac_count
4225     fi
4226     # 10*(2^10) chars as input seems more than enough
4227     test $ac_count -gt 10 && break
4228   done
4229   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4230 esac
4231
4232       $ac_path_FGREP_found && break 3
4233     done
4234   done
4235   done
4236 IFS=$as_save_IFS
4237   if test -z "$ac_cv_path_FGREP"; then
4238     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4239   fi
4240 else
4241   ac_cv_path_FGREP=$FGREP
4242 fi
4243
4244    fi
4245 fi
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4247 $as_echo "$ac_cv_path_FGREP" >&6; }
4248  FGREP="$ac_cv_path_FGREP"
4249
4250
4251 test -z "$GREP" && GREP=grep
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271 # Check whether --with-gnu-ld was given.
4272 if test "${with_gnu_ld+set}" = set; then :
4273   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4274 else
4275   with_gnu_ld=no
4276 fi
4277
4278 ac_prog=ld
4279 if test "$GCC" = yes; then
4280   # Check if gcc -print-prog-name=ld gives a path.
4281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4282 $as_echo_n "checking for ld used by $CC... " >&6; }
4283   case $host in
4284   *-*-mingw*)
4285     # gcc leaves a trailing carriage return which upsets mingw
4286     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4287   *)
4288     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4289   esac
4290   case $ac_prog in
4291     # Accept absolute paths.
4292     [\\/]* | ?:[\\/]*)
4293       re_direlt='/[^/][^/]*/\.\./'
4294       # Canonicalize the pathname of ld
4295       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4296       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4297         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4298       done
4299       test -z "$LD" && LD="$ac_prog"
4300       ;;
4301   "")
4302     # If it fails, then pretend we aren't using GCC.
4303     ac_prog=ld
4304     ;;
4305   *)
4306     # If it is relative, then search for the first ld in PATH.
4307     with_gnu_ld=unknown
4308     ;;
4309   esac
4310 elif test "$with_gnu_ld" = yes; then
4311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4312 $as_echo_n "checking for GNU ld... " >&6; }
4313 else
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4315 $as_echo_n "checking for non-GNU ld... " >&6; }
4316 fi
4317 if ${lt_cv_path_LD+:} false; then :
4318   $as_echo_n "(cached) " >&6
4319 else
4320   if test -z "$LD"; then
4321   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4322   for ac_dir in $PATH; do
4323     IFS="$lt_save_ifs"
4324     test -z "$ac_dir" && ac_dir=.
4325     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4326       lt_cv_path_LD="$ac_dir/$ac_prog"
4327       # Check to see if the program is GNU ld.  I'd rather use --version,
4328       # but apparently some variants of GNU ld only accept -v.
4329       # Break only if it was the GNU/non-GNU ld that we prefer.
4330       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4331       *GNU* | *'with BFD'*)
4332         test "$with_gnu_ld" != no && break
4333         ;;
4334       *)
4335         test "$with_gnu_ld" != yes && break
4336         ;;
4337       esac
4338     fi
4339   done
4340   IFS="$lt_save_ifs"
4341 else
4342   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4343 fi
4344 fi
4345
4346 LD="$lt_cv_path_LD"
4347 if test -n "$LD"; then
4348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4349 $as_echo "$LD" >&6; }
4350 else
4351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4353 fi
4354 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4356 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4357 if ${lt_cv_prog_gnu_ld+:} false; then :
4358   $as_echo_n "(cached) " >&6
4359 else
4360   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4361 case `$LD -v 2>&1 </dev/null` in
4362 *GNU* | *'with BFD'*)
4363   lt_cv_prog_gnu_ld=yes
4364   ;;
4365 *)
4366   lt_cv_prog_gnu_ld=no
4367   ;;
4368 esac
4369 fi
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4371 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4372 with_gnu_ld=$lt_cv_prog_gnu_ld
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4383 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4384 if ${lt_cv_path_NM+:} false; then :
4385   $as_echo_n "(cached) " >&6
4386 else
4387   if test -n "$NM"; then
4388   # Let the user override the test.
4389   lt_cv_path_NM="$NM"
4390 else
4391   lt_nm_to_check="${ac_tool_prefix}nm"
4392   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4393     lt_nm_to_check="$lt_nm_to_check nm"
4394   fi
4395   for lt_tmp_nm in $lt_nm_to_check; do
4396     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4397     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4398       IFS="$lt_save_ifs"
4399       test -z "$ac_dir" && ac_dir=.
4400       tmp_nm="$ac_dir/$lt_tmp_nm"
4401       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4402         # Check to see if the nm accepts a BSD-compat flag.
4403         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4404         #   nm: unknown option "B" ignored
4405         # Tru64's nm complains that /dev/null is an invalid object file
4406         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4407         */dev/null* | *'Invalid file or object type'*)
4408           lt_cv_path_NM="$tmp_nm -B"
4409           break
4410           ;;
4411         *)
4412           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4413           */dev/null*)
4414             lt_cv_path_NM="$tmp_nm -p"
4415             break
4416             ;;
4417           *)
4418             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4419             continue # so that we can try to find one that supports BSD flags
4420             ;;
4421           esac
4422           ;;
4423         esac
4424       fi
4425     done
4426     IFS="$lt_save_ifs"
4427   done
4428   : ${lt_cv_path_NM=no}
4429 fi
4430 fi
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4432 $as_echo "$lt_cv_path_NM" >&6; }
4433 if test "$lt_cv_path_NM" != "no"; then
4434   NM="$lt_cv_path_NM"
4435 else
4436   # Didn't find any BSD compatible name lister, look for dumpbin.
4437   if test -n "$DUMPBIN"; then :
4438     # Let the user override the test.
4439   else
4440     if test -n "$ac_tool_prefix"; then
4441   for ac_prog in dumpbin "link -dump"
4442   do
4443     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 $as_echo_n "checking for $ac_word... " >&6; }
4447 if ${ac_cv_prog_DUMPBIN+:} false; then :
4448   $as_echo_n "(cached) " >&6
4449 else
4450   if test -n "$DUMPBIN"; then
4451   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4455 do
4456   IFS=$as_save_IFS
4457   test -z "$as_dir" && as_dir=.
4458     for ac_exec_ext in '' $ac_executable_extensions; do
4459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462     break 2
4463   fi
4464 done
4465   done
4466 IFS=$as_save_IFS
4467
4468 fi
4469 fi
4470 DUMPBIN=$ac_cv_prog_DUMPBIN
4471 if test -n "$DUMPBIN"; then
4472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4473 $as_echo "$DUMPBIN" >&6; }
4474 else
4475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4477 fi
4478
4479
4480     test -n "$DUMPBIN" && break
4481   done
4482 fi
4483 if test -z "$DUMPBIN"; then
4484   ac_ct_DUMPBIN=$DUMPBIN
4485   for ac_prog in dumpbin "link -dump"
4486 do
4487   # Extract the first word of "$ac_prog", so it can be a program name with args.
4488 set dummy $ac_prog; ac_word=$2
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490 $as_echo_n "checking for $ac_word... " >&6; }
4491 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4492   $as_echo_n "(cached) " >&6
4493 else
4494   if test -n "$ac_ct_DUMPBIN"; then
4495   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4496 else
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500   IFS=$as_save_IFS
4501   test -z "$as_dir" && as_dir=.
4502     for ac_exec_ext in '' $ac_executable_extensions; do
4503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4504     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4506     break 2
4507   fi
4508 done
4509   done
4510 IFS=$as_save_IFS
4511
4512 fi
4513 fi
4514 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4515 if test -n "$ac_ct_DUMPBIN"; then
4516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4517 $as_echo "$ac_ct_DUMPBIN" >&6; }
4518 else
4519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520 $as_echo "no" >&6; }
4521 fi
4522
4523
4524   test -n "$ac_ct_DUMPBIN" && break
4525 done
4526
4527   if test "x$ac_ct_DUMPBIN" = x; then
4528     DUMPBIN=":"
4529   else
4530     case $cross_compiling:$ac_tool_warned in
4531 yes:)
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4534 ac_tool_warned=yes ;;
4535 esac
4536     DUMPBIN=$ac_ct_DUMPBIN
4537   fi
4538 fi
4539
4540     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4541     *COFF*)
4542       DUMPBIN="$DUMPBIN -symbols"
4543       ;;
4544     *)
4545       DUMPBIN=:
4546       ;;
4547     esac
4548   fi
4549
4550   if test "$DUMPBIN" != ":"; then
4551     NM="$DUMPBIN"
4552   fi
4553 fi
4554 test -z "$NM" && NM=nm
4555
4556
4557
4558
4559
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4562 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4563 if ${lt_cv_nm_interface+:} false; then :
4564   $as_echo_n "(cached) " >&6
4565 else
4566   lt_cv_nm_interface="BSD nm"
4567   echo "int some_variable = 0;" > conftest.$ac_ext
4568   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4569   (eval "$ac_compile" 2>conftest.err)
4570   cat conftest.err >&5
4571   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4572   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4573   cat conftest.err >&5
4574   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4575   cat conftest.out >&5
4576   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4577     lt_cv_nm_interface="MS dumpbin"
4578   fi
4579   rm -f conftest*
4580 fi
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4582 $as_echo "$lt_cv_nm_interface" >&6; }
4583
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4585 $as_echo_n "checking whether ln -s works... " >&6; }
4586 LN_S=$as_ln_s
4587 if test "$LN_S" = "ln -s"; then
4588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4589 $as_echo "yes" >&6; }
4590 else
4591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4592 $as_echo "no, using $LN_S" >&6; }
4593 fi
4594
4595 # find the maximum length of command line arguments
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4597 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4598 if ${lt_cv_sys_max_cmd_len+:} false; then :
4599   $as_echo_n "(cached) " >&6
4600 else
4601     i=0
4602   teststring="ABCD"
4603
4604   case $build_os in
4605   msdosdjgpp*)
4606     # On DJGPP, this test can blow up pretty badly due to problems in libc
4607     # (any single argument exceeding 2000 bytes causes a buffer overrun
4608     # during glob expansion).  Even if it were fixed, the result of this
4609     # check would be larger than it should be.
4610     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4611     ;;
4612
4613   gnu*)
4614     # Under GNU Hurd, this test is not required because there is
4615     # no limit to the length of command line arguments.
4616     # Libtool will interpret -1 as no limit whatsoever
4617     lt_cv_sys_max_cmd_len=-1;
4618     ;;
4619
4620   cygwin* | mingw* | cegcc*)
4621     # On Win9x/ME, this test blows up -- it succeeds, but takes
4622     # about 5 minutes as the teststring grows exponentially.
4623     # Worse, since 9x/ME are not pre-emptively multitasking,
4624     # you end up with a "frozen" computer, even though with patience
4625     # the test eventually succeeds (with a max line length of 256k).
4626     # Instead, let's just punt: use the minimum linelength reported by
4627     # all of the supported platforms: 8192 (on NT/2K/XP).
4628     lt_cv_sys_max_cmd_len=8192;
4629     ;;
4630
4631   mint*)
4632     # On MiNT this can take a long time and run out of memory.
4633     lt_cv_sys_max_cmd_len=8192;
4634     ;;
4635
4636   amigaos*)
4637     # On AmigaOS with pdksh, this test takes hours, literally.
4638     # So we just punt and use a minimum line length of 8192.
4639     lt_cv_sys_max_cmd_len=8192;
4640     ;;
4641
4642   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4643     # This has been around since 386BSD, at least.  Likely further.
4644     if test -x /sbin/sysctl; then
4645       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4646     elif test -x /usr/sbin/sysctl; then
4647       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4648     else
4649       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4650     fi
4651     # And add a safety zone
4652     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4653     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4654     ;;
4655
4656   interix*)
4657     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4658     lt_cv_sys_max_cmd_len=196608
4659     ;;
4660
4661   osf*)
4662     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4663     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4664     # nice to cause kernel panics so lets avoid the loop below.
4665     # First set a reasonable default.
4666     lt_cv_sys_max_cmd_len=16384
4667     #
4668     if test -x /sbin/sysconfig; then
4669       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4670         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4671       esac
4672     fi
4673     ;;
4674   sco3.2v5*)
4675     lt_cv_sys_max_cmd_len=102400
4676     ;;
4677   sysv5* | sco5v6* | sysv4.2uw2*)
4678     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4679     if test -n "$kargmax"; then
4680       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4681     else
4682       lt_cv_sys_max_cmd_len=32768
4683     fi
4684     ;;
4685   *)
4686     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4687     if test -n "$lt_cv_sys_max_cmd_len"; then
4688       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4689       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4690     else
4691       # Make teststring a little bigger before we do anything with it.
4692       # a 1K string should be a reasonable start.
4693       for i in 1 2 3 4 5 6 7 8 ; do
4694         teststring=$teststring$teststring
4695       done
4696       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4697       # If test is not a shell built-in, we'll probably end up computing a
4698       # maximum length that is only half of the actual maximum length, but
4699       # we can't tell.
4700       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4701                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4702               test $i != 17 # 1/2 MB should be enough
4703       do
4704         i=`expr $i + 1`
4705         teststring=$teststring$teststring
4706       done
4707       # Only check the string length outside the loop.
4708       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4709       teststring=
4710       # Add a significant safety factor because C++ compilers can tack on
4711       # massive amounts of additional arguments before passing them to the
4712       # linker.  It appears as though 1/2 is a usable value.
4713       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4714     fi
4715     ;;
4716   esac
4717
4718 fi
4719
4720 if test -n $lt_cv_sys_max_cmd_len ; then
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4722 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4723 else
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4725 $as_echo "none" >&6; }
4726 fi
4727 max_cmd_len=$lt_cv_sys_max_cmd_len
4728
4729
4730
4731
4732
4733
4734 : ${CP="cp -f"}
4735 : ${MV="mv -f"}
4736 : ${RM="rm -f"}
4737
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4739 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4740 # Try some XSI features
4741 xsi_shell=no
4742 ( _lt_dummy="a/b/c"
4743   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4744       = c,a/b,b/c, \
4745     && eval 'test $(( 1 + 1 )) -eq 2 \
4746     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4747   && xsi_shell=yes
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4749 $as_echo "$xsi_shell" >&6; }
4750
4751
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4753 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4754 lt_shell_append=no
4755 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4756     >/dev/null 2>&1 \
4757   && lt_shell_append=yes
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4759 $as_echo "$lt_shell_append" >&6; }
4760
4761
4762 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4763   lt_unset=unset
4764 else
4765   lt_unset=false
4766 fi
4767
4768
4769
4770
4771
4772 # test EBCDIC or ASCII
4773 case `echo X|tr X '\101'` in
4774  A) # ASCII based system
4775     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4776   lt_SP2NL='tr \040 \012'
4777   lt_NL2SP='tr \015\012 \040\040'
4778   ;;
4779  *) # EBCDIC based system
4780   lt_SP2NL='tr \100 \n'
4781   lt_NL2SP='tr \r\n \100\100'
4782   ;;
4783 esac
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4794 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4795 if ${lt_cv_to_host_file_cmd+:} false; then :
4796   $as_echo_n "(cached) " >&6
4797 else
4798   case $host in
4799   *-*-mingw* )
4800     case $build in
4801       *-*-mingw* ) # actually msys
4802         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4803         ;;
4804       *-*-cygwin* )
4805         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4806         ;;
4807       * ) # otherwise, assume *nix
4808         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4809         ;;
4810     esac
4811     ;;
4812   *-*-cygwin* )
4813     case $build in
4814       *-*-mingw* ) # actually msys
4815         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4816         ;;
4817       *-*-cygwin* )
4818         lt_cv_to_host_file_cmd=func_convert_file_noop
4819         ;;
4820       * ) # otherwise, assume *nix
4821         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4822         ;;
4823     esac
4824     ;;
4825   * ) # unhandled hosts (and "normal" native builds)
4826     lt_cv_to_host_file_cmd=func_convert_file_noop
4827     ;;
4828 esac
4829
4830 fi
4831
4832 to_host_file_cmd=$lt_cv_to_host_file_cmd
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4834 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4835
4836
4837
4838
4839
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4841 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4842 if ${lt_cv_to_tool_file_cmd+:} false; then :
4843   $as_echo_n "(cached) " >&6
4844 else
4845   #assume ordinary cross tools, or native build.
4846 lt_cv_to_tool_file_cmd=func_convert_file_noop
4847 case $host in
4848   *-*-mingw* )
4849     case $build in
4850       *-*-mingw* ) # actually msys
4851         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4852         ;;
4853     esac
4854     ;;
4855 esac
4856
4857 fi
4858
4859 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4861 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4862
4863
4864
4865
4866
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4868 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4869 if ${lt_cv_ld_reload_flag+:} false; then :
4870   $as_echo_n "(cached) " >&6
4871 else
4872   lt_cv_ld_reload_flag='-r'
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4875 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4876 reload_flag=$lt_cv_ld_reload_flag
4877 case $reload_flag in
4878 "" | " "*) ;;
4879 *) reload_flag=" $reload_flag" ;;
4880 esac
4881 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4882 case $host_os in
4883   cygwin* | mingw* | pw32* | cegcc*)
4884     if test "$GCC" != yes; then
4885       reload_cmds=false
4886     fi
4887     ;;
4888   darwin*)
4889     if test "$GCC" = yes; then
4890       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4891     else
4892       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4893     fi
4894     ;;
4895 esac
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905 if test -n "$ac_tool_prefix"; then
4906   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4907 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_prog_OBJDUMP+:} false; then :
4911   $as_echo_n "(cached) " >&6
4912 else
4913   if test -n "$OBJDUMP"; then
4914   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919   IFS=$as_save_IFS
4920   test -z "$as_dir" && as_dir=.
4921     for ac_exec_ext in '' $ac_executable_extensions; do
4922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925     break 2
4926   fi
4927 done
4928   done
4929 IFS=$as_save_IFS
4930
4931 fi
4932 fi
4933 OBJDUMP=$ac_cv_prog_OBJDUMP
4934 if test -n "$OBJDUMP"; then
4935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4936 $as_echo "$OBJDUMP" >&6; }
4937 else
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4940 fi
4941
4942
4943 fi
4944 if test -z "$ac_cv_prog_OBJDUMP"; then
4945   ac_ct_OBJDUMP=$OBJDUMP
4946   # Extract the first word of "objdump", so it can be a program name with args.
4947 set dummy objdump; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4951   $as_echo_n "(cached) " >&6
4952 else
4953   if test -n "$ac_ct_OBJDUMP"; then
4954   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4955 else
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4958 do
4959   IFS=$as_save_IFS
4960   test -z "$as_dir" && as_dir=.
4961     for ac_exec_ext in '' $ac_executable_extensions; do
4962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965     break 2
4966   fi
4967 done
4968   done
4969 IFS=$as_save_IFS
4970
4971 fi
4972 fi
4973 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4974 if test -n "$ac_ct_OBJDUMP"; then
4975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4976 $as_echo "$ac_ct_OBJDUMP" >&6; }
4977 else
4978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4980 fi
4981
4982   if test "x$ac_ct_OBJDUMP" = x; then
4983     OBJDUMP="false"
4984   else
4985     case $cross_compiling:$ac_tool_warned in
4986 yes:)
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4989 ac_tool_warned=yes ;;
4990 esac
4991     OBJDUMP=$ac_ct_OBJDUMP
4992   fi
4993 else
4994   OBJDUMP="$ac_cv_prog_OBJDUMP"
4995 fi
4996
4997 test -z "$OBJDUMP" && OBJDUMP=objdump
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5008 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5009 if ${lt_cv_deplibs_check_method+:} false; then :
5010   $as_echo_n "(cached) " >&6
5011 else
5012   lt_cv_file_magic_cmd='$MAGIC_CMD'
5013 lt_cv_file_magic_test_file=
5014 lt_cv_deplibs_check_method='unknown'
5015 # Need to set the preceding variable on all platforms that support
5016 # interlibrary dependencies.
5017 # 'none' -- dependencies not supported.
5018 # `unknown' -- same as none, but documents that we really don't know.
5019 # 'pass_all' -- all dependencies passed with no checks.
5020 # 'test_compile' -- check by making test program.
5021 # 'file_magic [[regex]]' -- check by looking for files in library path
5022 # which responds to the $file_magic_cmd with a given extended regex.
5023 # If you have `file' or equivalent on your system and you're not sure
5024 # whether `pass_all' will *always* work, you probably want this one.
5025
5026 case $host_os in
5027 aix[4-9]*)
5028   lt_cv_deplibs_check_method=pass_all
5029   ;;
5030
5031 beos*)
5032   lt_cv_deplibs_check_method=pass_all
5033   ;;
5034
5035 bsdi[45]*)
5036   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5037   lt_cv_file_magic_cmd='/usr/bin/file -L'
5038   lt_cv_file_magic_test_file=/shlib/libc.so
5039   ;;
5040
5041 cygwin*)
5042   # func_win32_libid is a shell function defined in ltmain.sh
5043   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5044   lt_cv_file_magic_cmd='func_win32_libid'
5045   ;;
5046
5047 mingw* | pw32*)
5048   # Base MSYS/MinGW do not provide the 'file' command needed by
5049   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5050   # unless we find 'file', for example because we are cross-compiling.
5051   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5052   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5053     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5054     lt_cv_file_magic_cmd='func_win32_libid'
5055   else
5056     # Keep this pattern in sync with the one in func_win32_libid.
5057     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5058     lt_cv_file_magic_cmd='$OBJDUMP -f'
5059   fi
5060   ;;
5061
5062 cegcc*)
5063   # use the weaker test based on 'objdump'. See mingw*.
5064   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5065   lt_cv_file_magic_cmd='$OBJDUMP -f'
5066   ;;
5067
5068 darwin* | rhapsody*)
5069   lt_cv_deplibs_check_method=pass_all
5070   ;;
5071
5072 freebsd* | dragonfly*)
5073   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5074     case $host_cpu in
5075     i*86 )
5076       # Not sure whether the presence of OpenBSD here was a mistake.
5077       # Let's accept both of them until this is cleared up.
5078       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5079       lt_cv_file_magic_cmd=/usr/bin/file
5080       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5081       ;;
5082     esac
5083   else
5084     lt_cv_deplibs_check_method=pass_all
5085   fi
5086   ;;
5087
5088 gnu*)
5089   lt_cv_deplibs_check_method=pass_all
5090   ;;
5091
5092 haiku*)
5093   lt_cv_deplibs_check_method=pass_all
5094   ;;
5095
5096 hpux10.20* | hpux11*)
5097   lt_cv_file_magic_cmd=/usr/bin/file
5098   case $host_cpu in
5099   ia64*)
5100     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5101     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5102     ;;
5103   hppa*64*)
5104     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]'
5105     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5106     ;;
5107   *)
5108     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5109     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5110     ;;
5111   esac
5112   ;;
5113
5114 interix[3-9]*)
5115   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5116   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5117   ;;
5118
5119 irix5* | irix6* | nonstopux*)
5120   case $LD in
5121   *-32|*"-32 ") libmagic=32-bit;;
5122   *-n32|*"-n32 ") libmagic=N32;;
5123   *-64|*"-64 ") libmagic=64-bit;;
5124   *) libmagic=never-match;;
5125   esac
5126   lt_cv_deplibs_check_method=pass_all
5127   ;;
5128
5129 # This must be Linux ELF.
5130 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5131   lt_cv_deplibs_check_method=pass_all
5132   ;;
5133
5134 netbsd* | netbsdelf*-gnu)
5135   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5136     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5137   else
5138     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5139   fi
5140   ;;
5141
5142 newos6*)
5143   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5144   lt_cv_file_magic_cmd=/usr/bin/file
5145   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5146   ;;
5147
5148 *nto* | *qnx*)
5149   lt_cv_deplibs_check_method=pass_all
5150   ;;
5151
5152 openbsd*)
5153   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5154     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5155   else
5156     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5157   fi
5158   ;;
5159
5160 osf3* | osf4* | osf5*)
5161   lt_cv_deplibs_check_method=pass_all
5162   ;;
5163
5164 rdos*)
5165   lt_cv_deplibs_check_method=pass_all
5166   ;;
5167
5168 solaris*)
5169   lt_cv_deplibs_check_method=pass_all
5170   ;;
5171
5172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5173   lt_cv_deplibs_check_method=pass_all
5174   ;;
5175
5176 sysv4 | sysv4.3*)
5177   case $host_vendor in
5178   motorola)
5179     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]'
5180     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5181     ;;
5182   ncr)
5183     lt_cv_deplibs_check_method=pass_all
5184     ;;
5185   sequent)
5186     lt_cv_file_magic_cmd='/bin/file'
5187     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5188     ;;
5189   sni)
5190     lt_cv_file_magic_cmd='/bin/file'
5191     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5192     lt_cv_file_magic_test_file=/lib/libc.so
5193     ;;
5194   siemens)
5195     lt_cv_deplibs_check_method=pass_all
5196     ;;
5197   pc)
5198     lt_cv_deplibs_check_method=pass_all
5199     ;;
5200   esac
5201   ;;
5202
5203 tpf*)
5204   lt_cv_deplibs_check_method=pass_all
5205   ;;
5206 esac
5207
5208 fi
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5210 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5211
5212 file_magic_glob=
5213 want_nocaseglob=no
5214 if test "$build" = "$host"; then
5215   case $host_os in
5216   mingw* | pw32*)
5217     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5218       want_nocaseglob=yes
5219     else
5220       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5221     fi
5222     ;;
5223   esac
5224 fi
5225
5226 file_magic_cmd=$lt_cv_file_magic_cmd
5227 deplibs_check_method=$lt_cv_deplibs_check_method
5228 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251 if test -n "$ac_tool_prefix"; then
5252   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5253 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if ${ac_cv_prog_DLLTOOL+:} false; then :
5257   $as_echo_n "(cached) " >&6
5258 else
5259   if test -n "$DLLTOOL"; then
5260   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5261 else
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5264 do
5265   IFS=$as_save_IFS
5266   test -z "$as_dir" && as_dir=.
5267     for ac_exec_ext in '' $ac_executable_extensions; do
5268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271     break 2
5272   fi
5273 done
5274   done
5275 IFS=$as_save_IFS
5276
5277 fi
5278 fi
5279 DLLTOOL=$ac_cv_prog_DLLTOOL
5280 if test -n "$DLLTOOL"; then
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5282 $as_echo "$DLLTOOL" >&6; }
5283 else
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5286 fi
5287
5288
5289 fi
5290 if test -z "$ac_cv_prog_DLLTOOL"; then
5291   ac_ct_DLLTOOL=$DLLTOOL
5292   # Extract the first word of "dlltool", so it can be a program name with args.
5293 set dummy dlltool; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5297   $as_echo_n "(cached) " >&6
5298 else
5299   if test -n "$ac_ct_DLLTOOL"; then
5300   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5304 do
5305   IFS=$as_save_IFS
5306   test -z "$as_dir" && as_dir=.
5307     for ac_exec_ext in '' $ac_executable_extensions; do
5308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311     break 2
5312   fi
5313 done
5314   done
5315 IFS=$as_save_IFS
5316
5317 fi
5318 fi
5319 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5320 if test -n "$ac_ct_DLLTOOL"; then
5321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5322 $as_echo "$ac_ct_DLLTOOL" >&6; }
5323 else
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5326 fi
5327
5328   if test "x$ac_ct_DLLTOOL" = x; then
5329     DLLTOOL="false"
5330   else
5331     case $cross_compiling:$ac_tool_warned in
5332 yes:)
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5335 ac_tool_warned=yes ;;
5336 esac
5337     DLLTOOL=$ac_ct_DLLTOOL
5338   fi
5339 else
5340   DLLTOOL="$ac_cv_prog_DLLTOOL"
5341 fi
5342
5343 test -z "$DLLTOOL" && DLLTOOL=dlltool
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5355 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5356 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359   lt_cv_sharedlib_from_linklib_cmd='unknown'
5360
5361 case $host_os in
5362 cygwin* | mingw* | pw32* | cegcc*)
5363   # two different shell functions defined in ltmain.sh
5364   # decide which to use based on capabilities of $DLLTOOL
5365   case `$DLLTOOL --help 2>&1` in
5366   *--identify-strict*)
5367     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5368     ;;
5369   *)
5370     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5371     ;;
5372   esac
5373   ;;
5374 *)
5375   # fallback: assume linklib IS sharedlib
5376   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5377   ;;
5378 esac
5379
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5382 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5383 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5384 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5385
5386
5387
5388
5389
5390
5391
5392
5393 if test -n "$ac_tool_prefix"; then
5394   for ac_prog in ar
5395   do
5396     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_AR+:} false; then :
5401   $as_echo_n "(cached) " >&6
5402 else
5403   if test -n "$AR"; then
5404   ac_cv_prog_AR="$AR" # Let the user override the test.
5405 else
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5408 do
5409   IFS=$as_save_IFS
5410   test -z "$as_dir" && as_dir=.
5411     for ac_exec_ext in '' $ac_executable_extensions; do
5412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5413     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415     break 2
5416   fi
5417 done
5418   done
5419 IFS=$as_save_IFS
5420
5421 fi
5422 fi
5423 AR=$ac_cv_prog_AR
5424 if test -n "$AR"; then
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5426 $as_echo "$AR" >&6; }
5427 else
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430 fi
5431
5432
5433     test -n "$AR" && break
5434   done
5435 fi
5436 if test -z "$AR"; then
5437   ac_ct_AR=$AR
5438   for ac_prog in ar
5439 do
5440   # Extract the first word of "$ac_prog", so it can be a program name with args.
5441 set dummy $ac_prog; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5445   $as_echo_n "(cached) " >&6
5446 else
5447   if test -n "$ac_ct_AR"; then
5448   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5449 else
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5452 do
5453   IFS=$as_save_IFS
5454   test -z "$as_dir" && as_dir=.
5455     for ac_exec_ext in '' $ac_executable_extensions; do
5456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457     ac_cv_prog_ac_ct_AR="$ac_prog"
5458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459     break 2
5460   fi
5461 done
5462   done
5463 IFS=$as_save_IFS
5464
5465 fi
5466 fi
5467 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5468 if test -n "$ac_ct_AR"; then
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5470 $as_echo "$ac_ct_AR" >&6; }
5471 else
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5474 fi
5475
5476
5477   test -n "$ac_ct_AR" && break
5478 done
5479
5480   if test "x$ac_ct_AR" = x; then
5481     AR="false"
5482   else
5483     case $cross_compiling:$ac_tool_warned in
5484 yes:)
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5487 ac_tool_warned=yes ;;
5488 esac
5489     AR=$ac_ct_AR
5490   fi
5491 fi
5492
5493 : ${AR=ar}
5494 : ${AR_FLAGS=cru}
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5507 $as_echo_n "checking for archiver @FILE support... " >&6; }
5508 if ${lt_cv_ar_at_file+:} false; then :
5509   $as_echo_n "(cached) " >&6
5510 else
5511   lt_cv_ar_at_file=no
5512    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h.  */
5514
5515 int
5516 main ()
5517 {
5518
5519   ;
5520   return 0;
5521 }
5522 _ACEOF
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524   echo conftest.$ac_objext > conftest.lst
5525       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5526       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5527   (eval $lt_ar_try) 2>&5
5528   ac_status=$?
5529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5530   test $ac_status = 0; }
5531       if test "$ac_status" -eq 0; then
5532         # Ensure the archiver fails upon bogus file names.
5533         rm -f conftest.$ac_objext libconftest.a
5534         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5535   (eval $lt_ar_try) 2>&5
5536   ac_status=$?
5537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5538   test $ac_status = 0; }
5539         if test "$ac_status" -ne 0; then
5540           lt_cv_ar_at_file=@
5541         fi
5542       fi
5543       rm -f conftest.* libconftest.a
5544
5545 fi
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547
5548 fi
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5550 $as_echo "$lt_cv_ar_at_file" >&6; }
5551
5552 if test "x$lt_cv_ar_at_file" = xno; then
5553   archiver_list_spec=
5554 else
5555   archiver_list_spec=$lt_cv_ar_at_file
5556 fi
5557
5558
5559
5560
5561
5562
5563
5564 if test -n "$ac_tool_prefix"; then
5565   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5566 set dummy ${ac_tool_prefix}strip; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_prog_STRIP+:} false; then :
5570   $as_echo_n "(cached) " >&6
5571 else
5572   if test -n "$STRIP"; then
5573   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5574 else
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH
5577 do
5578   IFS=$as_save_IFS
5579   test -z "$as_dir" && as_dir=.
5580     for ac_exec_ext in '' $ac_executable_extensions; do
5581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5584     break 2
5585   fi
5586 done
5587   done
5588 IFS=$as_save_IFS
5589
5590 fi
5591 fi
5592 STRIP=$ac_cv_prog_STRIP
5593 if test -n "$STRIP"; then
5594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5595 $as_echo "$STRIP" >&6; }
5596 else
5597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 $as_echo "no" >&6; }
5599 fi
5600
5601
5602 fi
5603 if test -z "$ac_cv_prog_STRIP"; then
5604   ac_ct_STRIP=$STRIP
5605   # Extract the first word of "strip", so it can be a program name with args.
5606 set dummy strip; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   if test -n "$ac_ct_STRIP"; then
5613   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618   IFS=$as_save_IFS
5619   test -z "$as_dir" && as_dir=.
5620     for ac_exec_ext in '' $ac_executable_extensions; do
5621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622     ac_cv_prog_ac_ct_STRIP="strip"
5623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624     break 2
5625   fi
5626 done
5627   done
5628 IFS=$as_save_IFS
5629
5630 fi
5631 fi
5632 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5633 if test -n "$ac_ct_STRIP"; then
5634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5635 $as_echo "$ac_ct_STRIP" >&6; }
5636 else
5637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5639 fi
5640
5641   if test "x$ac_ct_STRIP" = x; then
5642     STRIP=":"
5643   else
5644     case $cross_compiling:$ac_tool_warned in
5645 yes:)
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5648 ac_tool_warned=yes ;;
5649 esac
5650     STRIP=$ac_ct_STRIP
5651   fi
5652 else
5653   STRIP="$ac_cv_prog_STRIP"
5654 fi
5655
5656 test -z "$STRIP" && STRIP=:
5657
5658
5659
5660
5661
5662
5663 if test -n "$ac_tool_prefix"; then
5664   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5665 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if ${ac_cv_prog_RANLIB+:} false; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671   if test -n "$RANLIB"; then
5672   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5673 else
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in $PATH
5676 do
5677   IFS=$as_save_IFS
5678   test -z "$as_dir" && as_dir=.
5679     for ac_exec_ext in '' $ac_executable_extensions; do
5680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5681     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683     break 2
5684   fi
5685 done
5686   done
5687 IFS=$as_save_IFS
5688
5689 fi
5690 fi
5691 RANLIB=$ac_cv_prog_RANLIB
5692 if test -n "$RANLIB"; then
5693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5694 $as_echo "$RANLIB" >&6; }
5695 else
5696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5698 fi
5699
5700
5701 fi
5702 if test -z "$ac_cv_prog_RANLIB"; then
5703   ac_ct_RANLIB=$RANLIB
5704   # Extract the first word of "ranlib", so it can be a program name with args.
5705 set dummy ranlib; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5709   $as_echo_n "(cached) " >&6
5710 else
5711   if test -n "$ac_ct_RANLIB"; then
5712   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717   IFS=$as_save_IFS
5718   test -z "$as_dir" && as_dir=.
5719     for ac_exec_ext in '' $ac_executable_extensions; do
5720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5721     ac_cv_prog_ac_ct_RANLIB="ranlib"
5722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723     break 2
5724   fi
5725 done
5726   done
5727 IFS=$as_save_IFS
5728
5729 fi
5730 fi
5731 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5732 if test -n "$ac_ct_RANLIB"; then
5733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5734 $as_echo "$ac_ct_RANLIB" >&6; }
5735 else
5736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5738 fi
5739
5740   if test "x$ac_ct_RANLIB" = x; then
5741     RANLIB=":"
5742   else
5743     case $cross_compiling:$ac_tool_warned in
5744 yes:)
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5747 ac_tool_warned=yes ;;
5748 esac
5749     RANLIB=$ac_ct_RANLIB
5750   fi
5751 else
5752   RANLIB="$ac_cv_prog_RANLIB"
5753 fi
5754
5755 test -z "$RANLIB" && RANLIB=:
5756
5757
5758
5759
5760
5761
5762 # Determine commands to create old-style static archives.
5763 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5764 old_postinstall_cmds='chmod 644 $oldlib'
5765 old_postuninstall_cmds=
5766
5767 if test -n "$RANLIB"; then
5768   case $host_os in
5769   openbsd*)
5770     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5771     ;;
5772   *)
5773     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5774     ;;
5775   esac
5776   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5777 fi
5778
5779 case $host_os in
5780   darwin*)
5781     lock_old_archive_extraction=yes ;;
5782   *)
5783     lock_old_archive_extraction=no ;;
5784 esac
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824 # If no C compiler was specified, use CC.
5825 LTCC=${LTCC-"$CC"}
5826
5827 # If no C compiler flags were specified, use CFLAGS.
5828 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5829
5830 # Allow CC to be a program name with arguments.
5831 compiler=$CC
5832
5833
5834 # Check for command to grab the raw symbol name followed by C symbol from nm.
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5836 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5837 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5838   $as_echo_n "(cached) " >&6
5839 else
5840
5841 # These are sane defaults that work on at least a few old systems.
5842 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5843
5844 # Character class describing NM global symbol codes.
5845 symcode='[BCDEGRST]'
5846
5847 # Regexp to match symbols that can be accessed directly from C.
5848 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5849
5850 # Define system-specific variables.
5851 case $host_os in
5852 aix*)
5853   symcode='[BCDT]'
5854   ;;
5855 cygwin* | mingw* | pw32* | cegcc*)
5856   symcode='[ABCDGISTW]'
5857   ;;
5858 hpux*)
5859   if test "$host_cpu" = ia64; then
5860     symcode='[ABCDEGRST]'
5861   fi
5862   ;;
5863 irix* | nonstopux*)
5864   symcode='[BCDEGRST]'
5865   ;;
5866 osf*)
5867   symcode='[BCDEGQRST]'
5868   ;;
5869 solaris*)
5870   symcode='[BDRT]'
5871   ;;
5872 sco3.2v5*)
5873   symcode='[DT]'
5874   ;;
5875 sysv4.2uw2*)
5876   symcode='[DT]'
5877   ;;
5878 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5879   symcode='[ABDT]'
5880   ;;
5881 sysv4)
5882   symcode='[DFNSTU]'
5883   ;;
5884 esac
5885
5886 # If we're using GNU nm, then use its standard symbol codes.
5887 case `$NM -V 2>&1` in
5888 *GNU* | *'with BFD'*)
5889   symcode='[ABCDGIRSTW]' ;;
5890 esac
5891
5892 # Transform an extracted symbol line into a proper C declaration.
5893 # Some systems (esp. on ia64) link data and code symbols differently,
5894 # so use this general approach.
5895 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5896
5897 # Transform an extracted symbol line into symbol name and symbol address
5898 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5899 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'"
5900
5901 # Handle CRLF in mingw tool chain
5902 opt_cr=
5903 case $build_os in
5904 mingw*)
5905   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5906   ;;
5907 esac
5908
5909 # Try without a prefix underscore, then with it.
5910 for ac_symprfx in "" "_"; do
5911
5912   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5913   symxfrm="\\1 $ac_symprfx\\2 \\2"
5914
5915   # Write the raw and C identifiers.
5916   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5917     # Fake it for dumpbin and say T for any non-static function
5918     # and D for any global variable.
5919     # Also find C++ and __fastcall symbols from MSVC++,
5920     # which start with @ or ?.
5921     lt_cv_sys_global_symbol_pipe="$AWK '"\
5922 "     {last_section=section; section=\$ 3};"\
5923 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5924 "     \$ 0!~/External *\|/{next};"\
5925 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5926 "     {if(hide[section]) next};"\
5927 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5928 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5929 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5930 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5931 "     ' prfx=^$ac_symprfx"
5932   else
5933     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5934   fi
5935   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5936
5937   # Check to see that the pipe works correctly.
5938   pipe_works=no
5939
5940   rm -f conftest*
5941   cat > conftest.$ac_ext <<_LT_EOF
5942 #ifdef __cplusplus
5943 extern "C" {
5944 #endif
5945 char nm_test_var;
5946 void nm_test_func(void);
5947 void nm_test_func(void){}
5948 #ifdef __cplusplus
5949 }
5950 #endif
5951 int main(){nm_test_var='a';nm_test_func();return(0);}
5952 _LT_EOF
5953
5954   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5955   (eval $ac_compile) 2>&5
5956   ac_status=$?
5957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5958   test $ac_status = 0; }; then
5959     # Now try to grab the symbols.
5960     nlist=conftest.nm
5961     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5962   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5963   ac_status=$?
5964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5965   test $ac_status = 0; } && test -s "$nlist"; then
5966       # Try sorting and uniquifying the output.
5967       if sort "$nlist" | uniq > "$nlist"T; then
5968         mv -f "$nlist"T "$nlist"
5969       else
5970         rm -f "$nlist"T
5971       fi
5972
5973       # Make sure that we snagged all the symbols we need.
5974       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5975         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5976           cat <<_LT_EOF > conftest.$ac_ext
5977 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5978 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5979 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5980    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5981 # define LT_DLSYM_CONST
5982 #elif defined(__osf__)
5983 /* This system does not cope well with relocations in const data.  */
5984 # define LT_DLSYM_CONST
5985 #else
5986 # define LT_DLSYM_CONST const
5987 #endif
5988
5989 #ifdef __cplusplus
5990 extern "C" {
5991 #endif
5992
5993 _LT_EOF
5994           # Now generate the symbol file.
5995           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5996
5997           cat <<_LT_EOF >> conftest.$ac_ext
5998
5999 /* The mapping between symbol names and symbols.  */
6000 LT_DLSYM_CONST struct {
6001   const char *name;
6002   void       *address;
6003 }
6004 lt__PROGRAM__LTX_preloaded_symbols[] =
6005 {
6006   { "@PROGRAM@", (void *) 0 },
6007 _LT_EOF
6008           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6009           cat <<\_LT_EOF >> conftest.$ac_ext
6010   {0, (void *) 0}
6011 };
6012
6013 /* This works around a problem in FreeBSD linker */
6014 #ifdef FREEBSD_WORKAROUND
6015 static const void *lt_preloaded_setup() {
6016   return lt__PROGRAM__LTX_preloaded_symbols;
6017 }
6018 #endif
6019
6020 #ifdef __cplusplus
6021 }
6022 #endif
6023 _LT_EOF
6024           # Now try linking the two files.
6025           mv conftest.$ac_objext conftstm.$ac_objext
6026           lt_globsym_save_LIBS=$LIBS
6027           lt_globsym_save_CFLAGS=$CFLAGS
6028           LIBS="conftstm.$ac_objext"
6029           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6030           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6031   (eval $ac_link) 2>&5
6032   ac_status=$?
6033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6034   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6035             pipe_works=yes
6036           fi
6037           LIBS=$lt_globsym_save_LIBS
6038           CFLAGS=$lt_globsym_save_CFLAGS
6039         else
6040           echo "cannot find nm_test_func in $nlist" >&5
6041         fi
6042       else
6043         echo "cannot find nm_test_var in $nlist" >&5
6044       fi
6045     else
6046       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6047     fi
6048   else
6049     echo "$progname: failed program was:" >&5
6050     cat conftest.$ac_ext >&5
6051   fi
6052   rm -rf conftest* conftst*
6053
6054   # Do not use the global_symbol_pipe unless it works.
6055   if test "$pipe_works" = yes; then
6056     break
6057   else
6058     lt_cv_sys_global_symbol_pipe=
6059   fi
6060 done
6061
6062 fi
6063
6064 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6065   lt_cv_sys_global_symbol_to_cdecl=
6066 fi
6067 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6069 $as_echo "failed" >&6; }
6070 else
6071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6072 $as_echo "ok" >&6; }
6073 fi
6074
6075 # Response file support.
6076 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6077   nm_file_list_spec='@'
6078 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6079   nm_file_list_spec='@'
6080 fi
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6109 $as_echo_n "checking for sysroot... " >&6; }
6110
6111 # Check whether --with-sysroot was given.
6112 if test "${with_sysroot+set}" = set; then :
6113   withval=$with_sysroot;
6114 else
6115   with_sysroot=no
6116 fi
6117
6118
6119 lt_sysroot=
6120 case ${with_sysroot} in #(
6121  yes)
6122    if test "$GCC" = yes; then
6123      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6124    fi
6125    ;; #(
6126  /*)
6127    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6128    ;; #(
6129  no|'')
6130    ;; #(
6131  *)
6132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6133 $as_echo "${with_sysroot}" >&6; }
6134    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6135    ;;
6136 esac
6137
6138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6139 $as_echo "${lt_sysroot:-no}" >&6; }
6140
6141
6142
6143
6144
6145 # Check whether --enable-libtool-lock was given.
6146 if test "${enable_libtool_lock+set}" = set; then :
6147   enableval=$enable_libtool_lock;
6148 fi
6149
6150 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6151
6152 # Some flags need to be propagated to the compiler or linker for good
6153 # libtool support.
6154 case $host in
6155 ia64-*-hpux*)
6156   # Find out which ABI we are using.
6157   echo 'int i;' > conftest.$ac_ext
6158   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6159   (eval $ac_compile) 2>&5
6160   ac_status=$?
6161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6162   test $ac_status = 0; }; then
6163     case `/usr/bin/file conftest.$ac_objext` in
6164       *ELF-32*)
6165         HPUX_IA64_MODE="32"
6166         ;;
6167       *ELF-64*)
6168         HPUX_IA64_MODE="64"
6169         ;;
6170     esac
6171   fi
6172   rm -rf conftest*
6173   ;;
6174 *-*-irix6*)
6175   # Find out which ABI we are using.
6176   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6177   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6178   (eval $ac_compile) 2>&5
6179   ac_status=$?
6180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6181   test $ac_status = 0; }; then
6182     if test "$lt_cv_prog_gnu_ld" = yes; then
6183       case `/usr/bin/file conftest.$ac_objext` in
6184         *32-bit*)
6185           LD="${LD-ld} -melf32bsmip"
6186           ;;
6187         *N32*)
6188           LD="${LD-ld} -melf32bmipn32"
6189           ;;
6190         *64-bit*)
6191           LD="${LD-ld} -melf64bmip"
6192         ;;
6193       esac
6194     else
6195       case `/usr/bin/file conftest.$ac_objext` in
6196         *32-bit*)
6197           LD="${LD-ld} -32"
6198           ;;
6199         *N32*)
6200           LD="${LD-ld} -n32"
6201           ;;
6202         *64-bit*)
6203           LD="${LD-ld} -64"
6204           ;;
6205       esac
6206     fi
6207   fi
6208   rm -rf conftest*
6209   ;;
6210
6211 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6212 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6213   # Find out which ABI we are using.
6214   echo 'int i;' > conftest.$ac_ext
6215   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6216   (eval $ac_compile) 2>&5
6217   ac_status=$?
6218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6219   test $ac_status = 0; }; then
6220     case `/usr/bin/file conftest.o` in
6221       *32-bit*)
6222         case $host in
6223           x86_64-*kfreebsd*-gnu)
6224             LD="${LD-ld} -m elf_i386_fbsd"
6225             ;;
6226           x86_64-*linux*)
6227             LD="${LD-ld} -m elf_i386"
6228             ;;
6229           ppc64-*linux*|powerpc64-*linux*)
6230             LD="${LD-ld} -m elf32ppclinux"
6231             ;;
6232           s390x-*linux*)
6233             LD="${LD-ld} -m elf_s390"
6234             ;;
6235           sparc64-*linux*)
6236             LD="${LD-ld} -m elf32_sparc"
6237             ;;
6238         esac
6239         ;;
6240       *64-bit*)
6241         case $host in
6242           x86_64-*kfreebsd*-gnu)
6243             LD="${LD-ld} -m elf_x86_64_fbsd"
6244             ;;
6245           x86_64-*linux*)
6246             LD="${LD-ld} -m elf_x86_64"
6247             ;;
6248           ppc*-*linux*|powerpc*-*linux*)
6249             LD="${LD-ld} -m elf64ppc"
6250             ;;
6251           s390*-*linux*|s390*-*tpf*)
6252             LD="${LD-ld} -m elf64_s390"
6253             ;;
6254           sparc*-*linux*)
6255             LD="${LD-ld} -m elf64_sparc"
6256             ;;
6257         esac
6258         ;;
6259     esac
6260   fi
6261   rm -rf conftest*
6262   ;;
6263
6264 *-*-sco3.2v5*)
6265   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6266   SAVE_CFLAGS="$CFLAGS"
6267   CFLAGS="$CFLAGS -belf"
6268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6269 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6270 if ${lt_cv_cc_needs_belf+:} false; then :
6271   $as_echo_n "(cached) " >&6
6272 else
6273   ac_ext=c
6274 ac_cpp='$CPP $CPPFLAGS'
6275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6278
6279      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h.  */
6281
6282 int
6283 main ()
6284 {
6285
6286   ;
6287   return 0;
6288 }
6289 _ACEOF
6290 if ac_fn_c_try_link "$LINENO"; then :
6291   lt_cv_cc_needs_belf=yes
6292 else
6293   lt_cv_cc_needs_belf=no
6294 fi
6295 rm -f core conftest.err conftest.$ac_objext \
6296     conftest$ac_exeext conftest.$ac_ext
6297      ac_ext=c
6298 ac_cpp='$CPP $CPPFLAGS'
6299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6302
6303 fi
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6305 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6306   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6307     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6308     CFLAGS="$SAVE_CFLAGS"
6309   fi
6310   ;;
6311 sparc*-*solaris*)
6312   # Find out which ABI we are using.
6313   echo 'int i;' > conftest.$ac_ext
6314   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6315   (eval $ac_compile) 2>&5
6316   ac_status=$?
6317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318   test $ac_status = 0; }; then
6319     case `/usr/bin/file conftest.o` in
6320     *64-bit*)
6321       case $lt_cv_prog_gnu_ld in
6322       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6323       *)
6324         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6325           LD="${LD-ld} -64"
6326         fi
6327         ;;
6328       esac
6329       ;;
6330     esac
6331   fi
6332   rm -rf conftest*
6333   ;;
6334 esac
6335
6336 need_locks="$enable_libtool_lock"
6337
6338 if test -n "$ac_tool_prefix"; then
6339   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6340 set dummy ${ac_tool_prefix}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_MANIFEST_TOOL+:} false; then :
6344   $as_echo_n "(cached) " >&6
6345 else
6346   if test -n "$MANIFEST_TOOL"; then
6347   ac_cv_prog_MANIFEST_TOOL="$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_MANIFEST_TOOL="${ac_tool_prefix}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 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6367 if test -n "$MANIFEST_TOOL"; then
6368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6369 $as_echo "$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
6376 fi
6377 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6378   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6379   # Extract the first word of "mt", so it can be a program name with args.
6380 set dummy mt; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6384   $as_echo_n "(cached) " >&6
6385 else
6386   if test -n "$ac_ct_MANIFEST_TOOL"; then
6387   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394     for ac_exec_ext in '' $ac_executable_extensions; do
6395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401   done
6402 IFS=$as_save_IFS
6403
6404 fi
6405 fi
6406 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6407 if test -n "$ac_ct_MANIFEST_TOOL"; then
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6409 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6410 else
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6413 fi
6414
6415   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6416     MANIFEST_TOOL=":"
6417   else
6418     case $cross_compiling:$ac_tool_warned in
6419 yes:)
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6422 ac_tool_warned=yes ;;
6423 esac
6424     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6425   fi
6426 else
6427   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6428 fi
6429
6430 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6432 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6433 if ${lt_cv_path_mainfest_tool+:} false; then :
6434   $as_echo_n "(cached) " >&6
6435 else
6436   lt_cv_path_mainfest_tool=no
6437   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6438   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6439   cat conftest.err >&5
6440   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6441     lt_cv_path_mainfest_tool=yes
6442   fi
6443   rm -f conftest*
6444 fi
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6446 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6447 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6448   MANIFEST_TOOL=:
6449 fi
6450
6451
6452
6453
6454
6455
6456   case $host_os in
6457     rhapsody* | darwin*)
6458     if test -n "$ac_tool_prefix"; then
6459   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6460 set dummy ${ac_tool_prefix}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_DSYMUTIL+:} false; then :
6464   $as_echo_n "(cached) " >&6
6465 else
6466   if test -n "$DSYMUTIL"; then
6467   ac_cv_prog_DSYMUTIL="$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_DSYMUTIL="${ac_tool_prefix}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 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6487 if test -n "$DSYMUTIL"; then
6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6489 $as_echo "$DSYMUTIL" >&6; }
6490 else
6491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6493 fi
6494
6495
6496 fi
6497 if test -z "$ac_cv_prog_DSYMUTIL"; then
6498   ac_ct_DSYMUTIL=$DSYMUTIL
6499   # Extract the first word of "dsymutil", so it can be a program name with args.
6500 set dummy dsymutil; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6504   $as_echo_n "(cached) " >&6
6505 else
6506   if test -n "$ac_ct_DSYMUTIL"; then
6507   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6508 else
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512   IFS=$as_save_IFS
6513   test -z "$as_dir" && as_dir=.
6514     for ac_exec_ext in '' $ac_executable_extensions; do
6515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518     break 2
6519   fi
6520 done
6521   done
6522 IFS=$as_save_IFS
6523
6524 fi
6525 fi
6526 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6527 if test -n "$ac_ct_DSYMUTIL"; then
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6529 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6530 else
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6533 fi
6534
6535   if test "x$ac_ct_DSYMUTIL" = x; then
6536     DSYMUTIL=":"
6537   else
6538     case $cross_compiling:$ac_tool_warned in
6539 yes:)
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542 ac_tool_warned=yes ;;
6543 esac
6544     DSYMUTIL=$ac_ct_DSYMUTIL
6545   fi
6546 else
6547   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6548 fi
6549
6550     if test -n "$ac_tool_prefix"; then
6551   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6552 set dummy ${ac_tool_prefix}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_NMEDIT+:} false; then :
6556   $as_echo_n "(cached) " >&6
6557 else
6558   if test -n "$NMEDIT"; then
6559   ac_cv_prog_NMEDIT="$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_NMEDIT="${ac_tool_prefix}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 NMEDIT=$ac_cv_prog_NMEDIT
6579 if test -n "$NMEDIT"; then
6580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6581 $as_echo "$NMEDIT" >&6; }
6582 else
6583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6585 fi
6586
6587
6588 fi
6589 if test -z "$ac_cv_prog_NMEDIT"; then
6590   ac_ct_NMEDIT=$NMEDIT
6591   # Extract the first word of "nmedit", so it can be a program name with args.
6592 set dummy nmedit; ac_word=$2
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594 $as_echo_n "checking for $ac_word... " >&6; }
6595 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6596   $as_echo_n "(cached) " >&6
6597 else
6598   if test -n "$ac_ct_NMEDIT"; then
6599   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6600 else
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 for as_dir in $PATH
6603 do
6604   IFS=$as_save_IFS
6605   test -z "$as_dir" && as_dir=.
6606     for ac_exec_ext in '' $ac_executable_extensions; do
6607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6610     break 2
6611   fi
6612 done
6613   done
6614 IFS=$as_save_IFS
6615
6616 fi
6617 fi
6618 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6619 if test -n "$ac_ct_NMEDIT"; then
6620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6621 $as_echo "$ac_ct_NMEDIT" >&6; }
6622 else
6623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624 $as_echo "no" >&6; }
6625 fi
6626
6627   if test "x$ac_ct_NMEDIT" = x; then
6628     NMEDIT=":"
6629   else
6630     case $cross_compiling:$ac_tool_warned in
6631 yes:)
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6634 ac_tool_warned=yes ;;
6635 esac
6636     NMEDIT=$ac_ct_NMEDIT
6637   fi
6638 else
6639   NMEDIT="$ac_cv_prog_NMEDIT"
6640 fi
6641
6642     if test -n "$ac_tool_prefix"; then
6643   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6644 set dummy ${ac_tool_prefix}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_LIPO+:} false; then :
6648   $as_echo_n "(cached) " >&6
6649 else
6650   if test -n "$LIPO"; then
6651   ac_cv_prog_LIPO="$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_LIPO="${ac_tool_prefix}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 LIPO=$ac_cv_prog_LIPO
6671 if test -n "$LIPO"; then
6672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6673 $as_echo "$LIPO" >&6; }
6674 else
6675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6677 fi
6678
6679
6680 fi
6681 if test -z "$ac_cv_prog_LIPO"; then
6682   ac_ct_LIPO=$LIPO
6683   # Extract the first word of "lipo", so it can be a program name with args.
6684 set dummy lipo; ac_word=$2
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686 $as_echo_n "checking for $ac_word... " >&6; }
6687 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6688   $as_echo_n "(cached) " >&6
6689 else
6690   if test -n "$ac_ct_LIPO"; then
6691   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696   IFS=$as_save_IFS
6697   test -z "$as_dir" && as_dir=.
6698     for ac_exec_ext in '' $ac_executable_extensions; do
6699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700     ac_cv_prog_ac_ct_LIPO="lipo"
6701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702     break 2
6703   fi
6704 done
6705   done
6706 IFS=$as_save_IFS
6707
6708 fi
6709 fi
6710 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6711 if test -n "$ac_ct_LIPO"; then
6712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6713 $as_echo "$ac_ct_LIPO" >&6; }
6714 else
6715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716 $as_echo "no" >&6; }
6717 fi
6718
6719   if test "x$ac_ct_LIPO" = x; then
6720     LIPO=":"
6721   else
6722     case $cross_compiling:$ac_tool_warned in
6723 yes:)
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6726 ac_tool_warned=yes ;;
6727 esac
6728     LIPO=$ac_ct_LIPO
6729   fi
6730 else
6731   LIPO="$ac_cv_prog_LIPO"
6732 fi
6733
6734     if test -n "$ac_tool_prefix"; then
6735   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6736 set dummy ${ac_tool_prefix}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_OTOOL+:} false; then :
6740   $as_echo_n "(cached) " >&6
6741 else
6742   if test -n "$OTOOL"; then
6743   ac_cv_prog_OTOOL="$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_OTOOL="${ac_tool_prefix}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 OTOOL=$ac_cv_prog_OTOOL
6763 if test -n "$OTOOL"; then
6764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6765 $as_echo "$OTOOL" >&6; }
6766 else
6767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6769 fi
6770
6771
6772 fi
6773 if test -z "$ac_cv_prog_OTOOL"; then
6774   ac_ct_OTOOL=$OTOOL
6775   # Extract the first word of "otool", so it can be a program name with args.
6776 set dummy otool; ac_word=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6780   $as_echo_n "(cached) " >&6
6781 else
6782   if test -n "$ac_ct_OTOOL"; then
6783   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788   IFS=$as_save_IFS
6789   test -z "$as_dir" && as_dir=.
6790     for ac_exec_ext in '' $ac_executable_extensions; do
6791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792     ac_cv_prog_ac_ct_OTOOL="otool"
6793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794     break 2
6795   fi
6796 done
6797   done
6798 IFS=$as_save_IFS
6799
6800 fi
6801 fi
6802 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6803 if test -n "$ac_ct_OTOOL"; then
6804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6805 $as_echo "$ac_ct_OTOOL" >&6; }
6806 else
6807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808 $as_echo "no" >&6; }
6809 fi
6810
6811   if test "x$ac_ct_OTOOL" = x; then
6812     OTOOL=":"
6813   else
6814     case $cross_compiling:$ac_tool_warned in
6815 yes:)
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6818 ac_tool_warned=yes ;;
6819 esac
6820     OTOOL=$ac_ct_OTOOL
6821   fi
6822 else
6823   OTOOL="$ac_cv_prog_OTOOL"
6824 fi
6825
6826     if test -n "$ac_tool_prefix"; then
6827   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6828 set dummy ${ac_tool_prefix}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_OTOOL64+:} false; then :
6832   $as_echo_n "(cached) " >&6
6833 else
6834   if test -n "$OTOOL64"; then
6835   ac_cv_prog_OTOOL64="$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_OTOOL64="${ac_tool_prefix}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 OTOOL64=$ac_cv_prog_OTOOL64
6855 if test -n "$OTOOL64"; then
6856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6857 $as_echo "$OTOOL64" >&6; }
6858 else
6859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6861 fi
6862
6863
6864 fi
6865 if test -z "$ac_cv_prog_OTOOL64"; then
6866   ac_ct_OTOOL64=$OTOOL64
6867   # Extract the first word of "otool64", so it can be a program name with args.
6868 set dummy otool64; ac_word=$2
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6872   $as_echo_n "(cached) " >&6
6873 else
6874   if test -n "$ac_ct_OTOOL64"; then
6875   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880   IFS=$as_save_IFS
6881   test -z "$as_dir" && as_dir=.
6882     for ac_exec_ext in '' $ac_executable_extensions; do
6883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6884     ac_cv_prog_ac_ct_OTOOL64="otool64"
6885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886     break 2
6887   fi
6888 done
6889   done
6890 IFS=$as_save_IFS
6891
6892 fi
6893 fi
6894 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6895 if test -n "$ac_ct_OTOOL64"; then
6896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6897 $as_echo "$ac_ct_OTOOL64" >&6; }
6898 else
6899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6901 fi
6902
6903   if test "x$ac_ct_OTOOL64" = x; then
6904     OTOOL64=":"
6905   else
6906     case $cross_compiling:$ac_tool_warned in
6907 yes:)
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910 ac_tool_warned=yes ;;
6911 esac
6912     OTOOL64=$ac_ct_OTOOL64
6913   fi
6914 else
6915   OTOOL64="$ac_cv_prog_OTOOL64"
6916 fi
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6945 $as_echo_n "checking for -single_module linker flag... " >&6; }
6946 if ${lt_cv_apple_cc_single_mod+:} false; then :
6947   $as_echo_n "(cached) " >&6
6948 else
6949   lt_cv_apple_cc_single_mod=no
6950       if test -z "${LT_MULTI_MODULE}"; then
6951         # By default we will add the -single_module flag. You can override
6952         # by either setting the environment variable LT_MULTI_MODULE
6953         # non-empty at configure time, or by adding -multi_module to the
6954         # link flags.
6955         rm -rf libconftest.dylib*
6956         echo "int foo(void){return 1;}" > conftest.c
6957         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6958 -dynamiclib -Wl,-single_module conftest.c" >&5
6959         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6960           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6961         _lt_result=$?
6962         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6963           lt_cv_apple_cc_single_mod=yes
6964         else
6965           cat conftest.err >&5
6966         fi
6967         rm -rf libconftest.dylib*
6968         rm -f conftest.*
6969       fi
6970 fi
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6972 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6974 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6975 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6976   $as_echo_n "(cached) " >&6
6977 else
6978   lt_cv_ld_exported_symbols_list=no
6979       save_LDFLAGS=$LDFLAGS
6980       echo "_main" > conftest.sym
6981       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6982       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h.  */
6984
6985 int
6986 main ()
6987 {
6988
6989   ;
6990   return 0;
6991 }
6992 _ACEOF
6993 if ac_fn_c_try_link "$LINENO"; then :
6994   lt_cv_ld_exported_symbols_list=yes
6995 else
6996   lt_cv_ld_exported_symbols_list=no
6997 fi
6998 rm -f core conftest.err conftest.$ac_objext \
6999     conftest$ac_exeext conftest.$ac_ext
7000         LDFLAGS="$save_LDFLAGS"
7001
7002 fi
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7004 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7006 $as_echo_n "checking for -force_load linker flag... " >&6; }
7007 if ${lt_cv_ld_force_load+:} false; then :
7008   $as_echo_n "(cached) " >&6
7009 else
7010   lt_cv_ld_force_load=no
7011       cat > conftest.c << _LT_EOF
7012 int forced_loaded() { return 2;}
7013 _LT_EOF
7014       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7015       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7016       echo "$AR cru libconftest.a conftest.o" >&5
7017       $AR cru libconftest.a conftest.o 2>&5
7018       echo "$RANLIB libconftest.a" >&5
7019       $RANLIB libconftest.a 2>&5
7020       cat > conftest.c << _LT_EOF
7021 int main() { return 0;}
7022 _LT_EOF
7023       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7024       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7025       _lt_result=$?
7026       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7027         lt_cv_ld_force_load=yes
7028       else
7029         cat conftest.err >&5
7030       fi
7031         rm -f conftest.err libconftest.a conftest conftest.c
7032         rm -rf conftest.dSYM
7033
7034 fi
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7036 $as_echo "$lt_cv_ld_force_load" >&6; }
7037     case $host_os in
7038     rhapsody* | darwin1.[012])
7039       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7040     darwin1.*)
7041       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7042     darwin*) # darwin 5.x on
7043       # if running on 10.5 or later, the deployment target defaults
7044       # to the OS version, if on x86, and 10.4, the deployment
7045       # target defaults to 10.4. Don't you love it?
7046       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7047         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7048           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7049         10.[012]*)
7050           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7051         10.*)
7052           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7053       esac
7054     ;;
7055   esac
7056     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7057       _lt_dar_single_mod='$single_module'
7058     fi
7059     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7060       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7061     else
7062       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7063     fi
7064     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7065       _lt_dsymutil='~$DSYMUTIL $lib || :'
7066     else
7067       _lt_dsymutil=
7068     fi
7069     ;;
7070   esac
7071
7072 ac_ext=c
7073 ac_cpp='$CPP $CPPFLAGS'
7074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7078 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7079 # On Suns, sometimes $CPP names a directory.
7080 if test -n "$CPP" && test -d "$CPP"; then
7081   CPP=
7082 fi
7083 if test -z "$CPP"; then
7084   if ${ac_cv_prog_CPP+:} false; then :
7085   $as_echo_n "(cached) " >&6
7086 else
7087       # Double quotes because CPP needs to be expanded
7088     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7089     do
7090       ac_preproc_ok=false
7091 for ac_c_preproc_warn_flag in '' yes
7092 do
7093   # Use a header file that comes with gcc, so configuring glibc
7094   # with a fresh cross-compiler works.
7095   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7096   # <limits.h> exists even on freestanding compilers.
7097   # On the NeXT, cc -E runs the code through the compiler's parser,
7098   # not just through cpp. "Syntax error" is here to catch this case.
7099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h.  */
7101 #ifdef __STDC__
7102 # include <limits.h>
7103 #else
7104 # include <assert.h>
7105 #endif
7106                      Syntax error
7107 _ACEOF
7108 if ac_fn_c_try_cpp "$LINENO"; then :
7109
7110 else
7111   # Broken: fails on valid input.
7112 continue
7113 fi
7114 rm -f conftest.err conftest.i conftest.$ac_ext
7115
7116   # OK, works on sane cases.  Now check whether nonexistent headers
7117   # can be detected and how.
7118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h.  */
7120 #include <ac_nonexistent.h>
7121 _ACEOF
7122 if ac_fn_c_try_cpp "$LINENO"; then :
7123   # Broken: success on invalid input.
7124 continue
7125 else
7126   # Passes both tests.
7127 ac_preproc_ok=:
7128 break
7129 fi
7130 rm -f conftest.err conftest.i conftest.$ac_ext
7131
7132 done
7133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7134 rm -f conftest.i conftest.err conftest.$ac_ext
7135 if $ac_preproc_ok; then :
7136   break
7137 fi
7138
7139     done
7140     ac_cv_prog_CPP=$CPP
7141
7142 fi
7143   CPP=$ac_cv_prog_CPP
7144 else
7145   ac_cv_prog_CPP=$CPP
7146 fi
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7148 $as_echo "$CPP" >&6; }
7149 ac_preproc_ok=false
7150 for ac_c_preproc_warn_flag in '' yes
7151 do
7152   # Use a header file that comes with gcc, so configuring glibc
7153   # with a fresh cross-compiler works.
7154   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7155   # <limits.h> exists even on freestanding compilers.
7156   # On the NeXT, cc -E runs the code through the compiler's parser,
7157   # not just through cpp. "Syntax error" is here to catch this case.
7158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h.  */
7160 #ifdef __STDC__
7161 # include <limits.h>
7162 #else
7163 # include <assert.h>
7164 #endif
7165                      Syntax error
7166 _ACEOF
7167 if ac_fn_c_try_cpp "$LINENO"; then :
7168
7169 else
7170   # Broken: fails on valid input.
7171 continue
7172 fi
7173 rm -f conftest.err conftest.i conftest.$ac_ext
7174
7175   # OK, works on sane cases.  Now check whether nonexistent headers
7176   # can be detected and how.
7177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h.  */
7179 #include <ac_nonexistent.h>
7180 _ACEOF
7181 if ac_fn_c_try_cpp "$LINENO"; then :
7182   # Broken: success on invalid input.
7183 continue
7184 else
7185   # Passes both tests.
7186 ac_preproc_ok=:
7187 break
7188 fi
7189 rm -f conftest.err conftest.i conftest.$ac_ext
7190
7191 done
7192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7193 rm -f conftest.i conftest.err conftest.$ac_ext
7194 if $ac_preproc_ok; then :
7195
7196 else
7197   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7199 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7200 See \`config.log' for more details" "$LINENO" 5; }
7201 fi
7202
7203 ac_ext=c
7204 ac_cpp='$CPP $CPPFLAGS'
7205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7208
7209
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7211 $as_echo_n "checking for ANSI C header files... " >&6; }
7212 if ${ac_cv_header_stdc+:} false; then :
7213   $as_echo_n "(cached) " >&6
7214 else
7215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h.  */
7217 #include <stdlib.h>
7218 #include <stdarg.h>
7219 #include <string.h>
7220 #include <float.h>
7221
7222 int
7223 main ()
7224 {
7225
7226   ;
7227   return 0;
7228 }
7229 _ACEOF
7230 if ac_fn_c_try_compile "$LINENO"; then :
7231   ac_cv_header_stdc=yes
7232 else
7233   ac_cv_header_stdc=no
7234 fi
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236
7237 if test $ac_cv_header_stdc = yes; then
7238   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h.  */
7241 #include <string.h>
7242
7243 _ACEOF
7244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7245   $EGREP "memchr" >/dev/null 2>&1; then :
7246
7247 else
7248   ac_cv_header_stdc=no
7249 fi
7250 rm -f conftest*
7251
7252 fi
7253
7254 if test $ac_cv_header_stdc = yes; then
7255   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h.  */
7258 #include <stdlib.h>
7259
7260 _ACEOF
7261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7262   $EGREP "free" >/dev/null 2>&1; then :
7263
7264 else
7265   ac_cv_header_stdc=no
7266 fi
7267 rm -f conftest*
7268
7269 fi
7270
7271 if test $ac_cv_header_stdc = yes; then
7272   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7273   if test "$cross_compiling" = yes; then :
7274   :
7275 else
7276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h.  */
7278 #include <ctype.h>
7279 #include <stdlib.h>
7280 #if ((' ' & 0x0FF) == 0x020)
7281 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7282 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7283 #else
7284 # define ISLOWER(c) \
7285                    (('a' <= (c) && (c) <= 'i') \
7286                      || ('j' <= (c) && (c) <= 'r') \
7287                      || ('s' <= (c) && (c) <= 'z'))
7288 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7289 #endif
7290
7291 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7292 int
7293 main ()
7294 {
7295   int i;
7296   for (i = 0; i < 256; i++)
7297     if (XOR (islower (i), ISLOWER (i))
7298         || toupper (i) != TOUPPER (i))
7299       return 2;
7300   return 0;
7301 }
7302 _ACEOF
7303 if ac_fn_c_try_run "$LINENO"; then :
7304
7305 else
7306   ac_cv_header_stdc=no
7307 fi
7308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7309   conftest.$ac_objext conftest.beam conftest.$ac_ext
7310 fi
7311
7312 fi
7313 fi
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7315 $as_echo "$ac_cv_header_stdc" >&6; }
7316 if test $ac_cv_header_stdc = yes; then
7317
7318 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7319
7320 fi
7321
7322 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7323 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7324                   inttypes.h stdint.h unistd.h
7325 do :
7326   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7327 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7328 "
7329 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7330   cat >>confdefs.h <<_ACEOF
7331 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7332 _ACEOF
7333
7334 fi
7335
7336 done
7337
7338
7339 for ac_header in dlfcn.h
7340 do :
7341   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7342 "
7343 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7344   cat >>confdefs.h <<_ACEOF
7345 #define HAVE_DLFCN_H 1
7346 _ACEOF
7347
7348 fi
7349
7350 done
7351
7352
7353
7354
7355
7356 # Set options
7357
7358
7359
7360         enable_dlopen=no
7361
7362
7363   enable_win32_dll=no
7364
7365
7366             # Check whether --enable-shared was given.
7367 if test "${enable_shared+set}" = set; then :
7368   enableval=$enable_shared; p=${PACKAGE-default}
7369     case $enableval in
7370     yes) enable_shared=yes ;;
7371     no) enable_shared=no ;;
7372     *)
7373       enable_shared=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_shared=yes
7380         fi
7381       done
7382       IFS="$lt_save_ifs"
7383       ;;
7384     esac
7385 else
7386   enable_shared=yes
7387 fi
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397   # Check whether --enable-static was given.
7398 if test "${enable_static+set}" = set; then :
7399   enableval=$enable_static; p=${PACKAGE-default}
7400     case $enableval in
7401     yes) enable_static=yes ;;
7402     no) enable_static=no ;;
7403     *)
7404      enable_static=no
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 pkg in $enableval; do
7408         IFS="$lt_save_ifs"
7409         if test "X$pkg" = "X$p"; then
7410           enable_static=yes
7411         fi
7412       done
7413       IFS="$lt_save_ifs"
7414       ;;
7415     esac
7416 else
7417   enable_static=yes
7418 fi
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429 # Check whether --with-pic was given.
7430 if test "${with_pic+set}" = set; then :
7431   withval=$with_pic; pic_mode="$withval"
7432 else
7433   pic_mode=default
7434 fi
7435
7436
7437 test -z "$pic_mode" && pic_mode=default
7438
7439
7440
7441
7442
7443
7444
7445   # Check whether --enable-fast-install was given.
7446 if test "${enable_fast_install+set}" = set; then :
7447   enableval=$enable_fast_install; p=${PACKAGE-default}
7448     case $enableval in
7449     yes) enable_fast_install=yes ;;
7450     no) enable_fast_install=no ;;
7451     *)
7452       enable_fast_install=no
7453       # Look at the argument we got.  We use all the common list separators.
7454       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7455       for pkg in $enableval; do
7456         IFS="$lt_save_ifs"
7457         if test "X$pkg" = "X$p"; then
7458           enable_fast_install=yes
7459         fi
7460       done
7461       IFS="$lt_save_ifs"
7462       ;;
7463     esac
7464 else
7465   enable_fast_install=yes
7466 fi
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478 # This can be used to rebuild libtool when needed
7479 LIBTOOL_DEPS="$ltmain"
7480
7481 # Always use our own libtool.
7482 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509 test -z "$LN_S" && LN_S="ln -s"
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524 if test -n "${ZSH_VERSION+set}" ; then
7525    setopt NO_GLOB_SUBST
7526 fi
7527
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7529 $as_echo_n "checking for objdir... " >&6; }
7530 if ${lt_cv_objdir+:} false; then :
7531   $as_echo_n "(cached) " >&6
7532 else
7533   rm -f .libs 2>/dev/null
7534 mkdir .libs 2>/dev/null
7535 if test -d .libs; then
7536   lt_cv_objdir=.libs
7537 else
7538   # MS-DOS does not allow filenames that begin with a dot.
7539   lt_cv_objdir=_libs
7540 fi
7541 rmdir .libs 2>/dev/null
7542 fi
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7544 $as_echo "$lt_cv_objdir" >&6; }
7545 objdir=$lt_cv_objdir
7546
7547
7548
7549
7550
7551 cat >>confdefs.h <<_ACEOF
7552 #define LT_OBJDIR "$lt_cv_objdir/"
7553 _ACEOF
7554
7555
7556
7557
7558 case $host_os in
7559 aix3*)
7560   # AIX sometimes has problems with the GCC collect2 program.  For some
7561   # reason, if we set the COLLECT_NAMES environment variable, the problems
7562   # vanish in a puff of smoke.
7563   if test "X${COLLECT_NAMES+set}" != Xset; then
7564     COLLECT_NAMES=
7565     export COLLECT_NAMES
7566   fi
7567   ;;
7568 esac
7569
7570 # Global variables:
7571 ofile=libtool
7572 can_build_shared=yes
7573
7574 # All known linkers require a `.a' archive for static linking (except MSVC,
7575 # which needs '.lib').
7576 libext=a
7577
7578 with_gnu_ld="$lt_cv_prog_gnu_ld"
7579
7580 old_CC="$CC"
7581 old_CFLAGS="$CFLAGS"
7582
7583 # Set sane defaults for various variables
7584 test -z "$CC" && CC=cc
7585 test -z "$LTCC" && LTCC=$CC
7586 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7587 test -z "$LD" && LD=ld
7588 test -z "$ac_objext" && ac_objext=o
7589
7590 for cc_temp in $compiler""; do
7591   case $cc_temp in
7592     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7593     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7594     \-*) ;;
7595     *) break;;
7596   esac
7597 done
7598 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7599
7600
7601 # Only perform the check for file, if the check method requires it
7602 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7603 case $deplibs_check_method in
7604 file_magic*)
7605   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7607 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7608 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7609   $as_echo_n "(cached) " >&6
7610 else
7611   case $MAGIC_CMD in
7612 [\\/*] |  ?:[\\/]*)
7613   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7614   ;;
7615 *)
7616   lt_save_MAGIC_CMD="$MAGIC_CMD"
7617   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7618   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7619   for ac_dir in $ac_dummy; do
7620     IFS="$lt_save_ifs"
7621     test -z "$ac_dir" && ac_dir=.
7622     if test -f $ac_dir/${ac_tool_prefix}file; then
7623       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7624       if test -n "$file_magic_test_file"; then
7625         case $deplibs_check_method in
7626         "file_magic "*)
7627           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7628           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7629           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7630             $EGREP "$file_magic_regex" > /dev/null; then
7631             :
7632           else
7633             cat <<_LT_EOF 1>&2
7634
7635 *** Warning: the command libtool uses to detect shared libraries,
7636 *** $file_magic_cmd, produces output that libtool cannot recognize.
7637 *** The result is that libtool may fail to recognize shared libraries
7638 *** as such.  This will affect the creation of libtool libraries that
7639 *** depend on shared libraries, but programs linked with such libtool
7640 *** libraries will work regardless of this problem.  Nevertheless, you
7641 *** may want to report the problem to your system manager and/or to
7642 *** bug-libtool@gnu.org
7643
7644 _LT_EOF
7645           fi ;;
7646         esac
7647       fi
7648       break
7649     fi
7650   done
7651   IFS="$lt_save_ifs"
7652   MAGIC_CMD="$lt_save_MAGIC_CMD"
7653   ;;
7654 esac
7655 fi
7656
7657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7658 if test -n "$MAGIC_CMD"; then
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7660 $as_echo "$MAGIC_CMD" >&6; }
7661 else
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7664 fi
7665
7666
7667
7668
7669
7670 if test -z "$lt_cv_path_MAGIC_CMD"; then
7671   if test -n "$ac_tool_prefix"; then
7672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7673 $as_echo_n "checking for file... " >&6; }
7674 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7675   $as_echo_n "(cached) " >&6
7676 else
7677   case $MAGIC_CMD in
7678 [\\/*] |  ?:[\\/]*)
7679   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7680   ;;
7681 *)
7682   lt_save_MAGIC_CMD="$MAGIC_CMD"
7683   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7684   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7685   for ac_dir in $ac_dummy; do
7686     IFS="$lt_save_ifs"
7687     test -z "$ac_dir" && ac_dir=.
7688     if test -f $ac_dir/file; then
7689       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7690       if test -n "$file_magic_test_file"; then
7691         case $deplibs_check_method in
7692         "file_magic "*)
7693           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7694           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7696             $EGREP "$file_magic_regex" > /dev/null; then
7697             :
7698           else
7699             cat <<_LT_EOF 1>&2
7700
7701 *** Warning: the command libtool uses to detect shared libraries,
7702 *** $file_magic_cmd, produces output that libtool cannot recognize.
7703 *** The result is that libtool may fail to recognize shared libraries
7704 *** as such.  This will affect the creation of libtool libraries that
7705 *** depend on shared libraries, but programs linked with such libtool
7706 *** libraries will work regardless of this problem.  Nevertheless, you
7707 *** may want to report the problem to your system manager and/or to
7708 *** bug-libtool@gnu.org
7709
7710 _LT_EOF
7711           fi ;;
7712         esac
7713       fi
7714       break
7715     fi
7716   done
7717   IFS="$lt_save_ifs"
7718   MAGIC_CMD="$lt_save_MAGIC_CMD"
7719   ;;
7720 esac
7721 fi
7722
7723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7724 if test -n "$MAGIC_CMD"; then
7725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7726 $as_echo "$MAGIC_CMD" >&6; }
7727 else
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7730 fi
7731
7732
7733   else
7734     MAGIC_CMD=:
7735   fi
7736 fi
7737
7738   fi
7739   ;;
7740 esac
7741
7742 # Use C for the default configuration in the libtool script
7743
7744 lt_save_CC="$CC"
7745 ac_ext=c
7746 ac_cpp='$CPP $CPPFLAGS'
7747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7750
7751
7752 # Source file extension for C test sources.
7753 ac_ext=c
7754
7755 # Object file extension for compiled C test sources.
7756 objext=o
7757 objext=$objext
7758
7759 # Code to be used in simple compile tests
7760 lt_simple_compile_test_code="int some_variable = 0;"
7761
7762 # Code to be used in simple link tests
7763 lt_simple_link_test_code='int main(){return(0);}'
7764
7765
7766
7767
7768
7769
7770
7771 # If no C compiler was specified, use CC.
7772 LTCC=${LTCC-"$CC"}
7773
7774 # If no C compiler flags were specified, use CFLAGS.
7775 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7776
7777 # Allow CC to be a program name with arguments.
7778 compiler=$CC
7779
7780 # Save the default compiler, since it gets overwritten when the other
7781 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7782 compiler_DEFAULT=$CC
7783
7784 # save warnings/boilerplate of simple test code
7785 ac_outfile=conftest.$ac_objext
7786 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7787 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7788 _lt_compiler_boilerplate=`cat conftest.err`
7789 $RM conftest*
7790
7791 ac_outfile=conftest.$ac_objext
7792 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7793 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7794 _lt_linker_boilerplate=`cat conftest.err`
7795 $RM -r conftest*
7796
7797
7798 ## CAVEAT EMPTOR:
7799 ## There is no encapsulation within the following macros, do not change
7800 ## the running order or otherwise move them around unless you know exactly
7801 ## what you are doing...
7802 if test -n "$compiler"; then
7803
7804 lt_prog_compiler_no_builtin_flag=
7805
7806 if test "$GCC" = yes; then
7807   case $cc_basename in
7808   nvcc*)
7809     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7810   *)
7811     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7812   esac
7813
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7815 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7816 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7817   $as_echo_n "(cached) " >&6
7818 else
7819   lt_cv_prog_compiler_rtti_exceptions=no
7820    ac_outfile=conftest.$ac_objext
7821    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7822    lt_compiler_flag="-fno-rtti -fno-exceptions"
7823    # Insert the option either (1) after the last *FLAGS variable, or
7824    # (2) before a word containing "conftest.", or (3) at the end.
7825    # Note that $ac_compile itself does not contain backslashes and begins
7826    # with a dollar sign (not a hyphen), so the echo should work correctly.
7827    # The option is referenced via a variable to avoid confusing sed.
7828    lt_compile=`echo "$ac_compile" | $SED \
7829    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7830    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7831    -e 's:$: $lt_compiler_flag:'`
7832    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7833    (eval "$lt_compile" 2>conftest.err)
7834    ac_status=$?
7835    cat conftest.err >&5
7836    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837    if (exit $ac_status) && test -s "$ac_outfile"; then
7838      # The compiler can only warn and ignore the option if not recognized
7839      # So say no if there are warnings other than the usual output.
7840      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7841      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7842      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7843        lt_cv_prog_compiler_rtti_exceptions=yes
7844      fi
7845    fi
7846    $RM conftest*
7847
7848 fi
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7850 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7851
7852 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7853     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7854 else
7855     :
7856 fi
7857
7858 fi
7859
7860
7861
7862
7863
7864
7865   lt_prog_compiler_wl=
7866 lt_prog_compiler_pic=
7867 lt_prog_compiler_static=
7868
7869
7870   if test "$GCC" = yes; then
7871     lt_prog_compiler_wl='-Wl,'
7872     lt_prog_compiler_static='-static'
7873
7874     case $host_os in
7875       aix*)
7876       # All AIX code is PIC.
7877       if test "$host_cpu" = ia64; then
7878         # AIX 5 now supports IA64 processor
7879         lt_prog_compiler_static='-Bstatic'
7880       fi
7881       ;;
7882
7883     amigaos*)
7884       case $host_cpu in
7885       powerpc)
7886             # see comment about AmigaOS4 .so support
7887             lt_prog_compiler_pic='-fPIC'
7888         ;;
7889       m68k)
7890             # FIXME: we need at least 68020 code to build shared libraries, but
7891             # adding the `-m68020' flag to GCC prevents building anything better,
7892             # like `-m68040'.
7893             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7894         ;;
7895       esac
7896       ;;
7897
7898     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7899       # PIC is the default for these OSes.
7900       ;;
7901
7902     mingw* | cygwin* | pw32* | os2* | cegcc*)
7903       # This hack is so that the source file can tell whether it is being
7904       # built for inclusion in a dll (and should export symbols for example).
7905       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7906       # (--disable-auto-import) libraries
7907       lt_prog_compiler_pic='-DDLL_EXPORT'
7908       ;;
7909
7910     darwin* | rhapsody*)
7911       # PIC is the default on this platform
7912       # Common symbols not allowed in MH_DYLIB files
7913       lt_prog_compiler_pic='-fno-common'
7914       ;;
7915
7916     haiku*)
7917       # PIC is the default for Haiku.
7918       # The "-static" flag exists, but is broken.
7919       lt_prog_compiler_static=
7920       ;;
7921
7922     hpux*)
7923       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7924       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7925       # sets the default TLS model and affects inlining.
7926       case $host_cpu in
7927       hppa*64*)
7928         # +Z the default
7929         ;;
7930       *)
7931         lt_prog_compiler_pic='-fPIC'
7932         ;;
7933       esac
7934       ;;
7935
7936     interix[3-9]*)
7937       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7938       # Instead, we relocate shared libraries at runtime.
7939       ;;
7940
7941     msdosdjgpp*)
7942       # Just because we use GCC doesn't mean we suddenly get shared libraries
7943       # on systems that don't support them.
7944       lt_prog_compiler_can_build_shared=no
7945       enable_shared=no
7946       ;;
7947
7948     *nto* | *qnx*)
7949       # QNX uses GNU C++, but need to define -shared option too, otherwise
7950       # it will coredump.
7951       lt_prog_compiler_pic='-fPIC -shared'
7952       ;;
7953
7954     sysv4*MP*)
7955       if test -d /usr/nec; then
7956         lt_prog_compiler_pic=-Kconform_pic
7957       fi
7958       ;;
7959
7960     *)
7961       lt_prog_compiler_pic='-fPIC'
7962       ;;
7963     esac
7964
7965     case $cc_basename in
7966     nvcc*) # Cuda Compiler Driver 2.2
7967       lt_prog_compiler_wl='-Xlinker '
7968       lt_prog_compiler_pic='-Xcompiler -fPIC'
7969       ;;
7970     esac
7971   else
7972     # PORTME Check for flag to pass linker flags through the system compiler.
7973     case $host_os in
7974     aix*)
7975       lt_prog_compiler_wl='-Wl,'
7976       if test "$host_cpu" = ia64; then
7977         # AIX 5 now supports IA64 processor
7978         lt_prog_compiler_static='-Bstatic'
7979       else
7980         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7981       fi
7982       ;;
7983
7984     mingw* | cygwin* | pw32* | os2* | cegcc*)
7985       # This hack is so that the source file can tell whether it is being
7986       # built for inclusion in a dll (and should export symbols for example).
7987       lt_prog_compiler_pic='-DDLL_EXPORT'
7988       ;;
7989
7990     hpux9* | hpux10* | hpux11*)
7991       lt_prog_compiler_wl='-Wl,'
7992       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7993       # not for PA HP-UX.
7994       case $host_cpu in
7995       hppa*64*|ia64*)
7996         # +Z the default
7997         ;;
7998       *)
7999         lt_prog_compiler_pic='+Z'
8000         ;;
8001       esac
8002       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8003       lt_prog_compiler_static='${wl}-a ${wl}archive'
8004       ;;
8005
8006     irix5* | irix6* | nonstopux*)
8007       lt_prog_compiler_wl='-Wl,'
8008       # PIC (with -KPIC) is the default.
8009       lt_prog_compiler_static='-non_shared'
8010       ;;
8011
8012     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8013       case $cc_basename in
8014       # old Intel for x86_64 which still supported -KPIC.
8015       ecc*)
8016         lt_prog_compiler_wl='-Wl,'
8017         lt_prog_compiler_pic='-KPIC'
8018         lt_prog_compiler_static='-static'
8019         ;;
8020       # icc used to be incompatible with GCC.
8021       # ICC 10 doesn't accept -KPIC any more.
8022       icc* | ifort*)
8023         lt_prog_compiler_wl='-Wl,'
8024         lt_prog_compiler_pic='-fPIC'
8025         lt_prog_compiler_static='-static'
8026         ;;
8027       # Lahey Fortran 8.1.
8028       lf95*)
8029         lt_prog_compiler_wl='-Wl,'
8030         lt_prog_compiler_pic='--shared'
8031         lt_prog_compiler_static='--static'
8032         ;;
8033       nagfor*)
8034         # NAG Fortran compiler
8035         lt_prog_compiler_wl='-Wl,-Wl,,'
8036         lt_prog_compiler_pic='-PIC'
8037         lt_prog_compiler_static='-Bstatic'
8038         ;;
8039       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8040         # Portland Group compilers (*not* the Pentium gcc compiler,
8041         # which looks to be a dead project)
8042         lt_prog_compiler_wl='-Wl,'
8043         lt_prog_compiler_pic='-fpic'
8044         lt_prog_compiler_static='-Bstatic'
8045         ;;
8046       ccc*)
8047         lt_prog_compiler_wl='-Wl,'
8048         # All Alpha code is PIC.
8049         lt_prog_compiler_static='-non_shared'
8050         ;;
8051       xl* | bgxl* | bgf* | mpixl*)
8052         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8053         lt_prog_compiler_wl='-Wl,'
8054         lt_prog_compiler_pic='-qpic'
8055         lt_prog_compiler_static='-qstaticlink'
8056         ;;
8057       *)
8058         case `$CC -V 2>&1 | sed 5q` in
8059         *Sun\ F* | *Sun*Fortran*)
8060           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8061           lt_prog_compiler_pic='-KPIC'
8062           lt_prog_compiler_static='-Bstatic'
8063           lt_prog_compiler_wl=''
8064           ;;
8065         *Sun\ C*)
8066           # Sun C 5.9
8067           lt_prog_compiler_pic='-KPIC'
8068           lt_prog_compiler_static='-Bstatic'
8069           lt_prog_compiler_wl='-Wl,'
8070           ;;
8071         esac
8072         ;;
8073       esac
8074       ;;
8075
8076     newsos6)
8077       lt_prog_compiler_pic='-KPIC'
8078       lt_prog_compiler_static='-Bstatic'
8079       ;;
8080
8081     *nto* | *qnx*)
8082       # QNX uses GNU C++, but need to define -shared option too, otherwise
8083       # it will coredump.
8084       lt_prog_compiler_pic='-fPIC -shared'
8085       ;;
8086
8087     osf3* | osf4* | osf5*)
8088       lt_prog_compiler_wl='-Wl,'
8089       # All OSF/1 code is PIC.
8090       lt_prog_compiler_static='-non_shared'
8091       ;;
8092
8093     rdos*)
8094       lt_prog_compiler_static='-non_shared'
8095       ;;
8096
8097     solaris*)
8098       lt_prog_compiler_pic='-KPIC'
8099       lt_prog_compiler_static='-Bstatic'
8100       case $cc_basename in
8101       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8102         lt_prog_compiler_wl='-Qoption ld ';;
8103       *)
8104         lt_prog_compiler_wl='-Wl,';;
8105       esac
8106       ;;
8107
8108     sunos4*)
8109       lt_prog_compiler_wl='-Qoption ld '
8110       lt_prog_compiler_pic='-PIC'
8111       lt_prog_compiler_static='-Bstatic'
8112       ;;
8113
8114     sysv4 | sysv4.2uw2* | sysv4.3*)
8115       lt_prog_compiler_wl='-Wl,'
8116       lt_prog_compiler_pic='-KPIC'
8117       lt_prog_compiler_static='-Bstatic'
8118       ;;
8119
8120     sysv4*MP*)
8121       if test -d /usr/nec ;then
8122         lt_prog_compiler_pic='-Kconform_pic'
8123         lt_prog_compiler_static='-Bstatic'
8124       fi
8125       ;;
8126
8127     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8128       lt_prog_compiler_wl='-Wl,'
8129       lt_prog_compiler_pic='-KPIC'
8130       lt_prog_compiler_static='-Bstatic'
8131       ;;
8132
8133     unicos*)
8134       lt_prog_compiler_wl='-Wl,'
8135       lt_prog_compiler_can_build_shared=no
8136       ;;
8137
8138     uts4*)
8139       lt_prog_compiler_pic='-pic'
8140       lt_prog_compiler_static='-Bstatic'
8141       ;;
8142
8143     *)
8144       lt_prog_compiler_can_build_shared=no
8145       ;;
8146     esac
8147   fi
8148
8149 case $host_os in
8150   # For platforms which do not support PIC, -DPIC is meaningless:
8151   *djgpp*)
8152     lt_prog_compiler_pic=
8153     ;;
8154   *)
8155     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8156     ;;
8157 esac
8158
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8160 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8161 if ${lt_cv_prog_compiler_pic+:} false; then :
8162   $as_echo_n "(cached) " >&6
8163 else
8164   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8165 fi
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8167 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8168 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8169
8170 #
8171 # Check to make sure the PIC flag actually works.
8172 #
8173 if test -n "$lt_prog_compiler_pic"; then
8174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8175 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8176 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8177   $as_echo_n "(cached) " >&6
8178 else
8179   lt_cv_prog_compiler_pic_works=no
8180    ac_outfile=conftest.$ac_objext
8181    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8182    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8183    # Insert the option either (1) after the last *FLAGS variable, or
8184    # (2) before a word containing "conftest.", or (3) at the end.
8185    # Note that $ac_compile itself does not contain backslashes and begins
8186    # with a dollar sign (not a hyphen), so the echo should work correctly.
8187    # The option is referenced via a variable to avoid confusing sed.
8188    lt_compile=`echo "$ac_compile" | $SED \
8189    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8190    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8191    -e 's:$: $lt_compiler_flag:'`
8192    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8193    (eval "$lt_compile" 2>conftest.err)
8194    ac_status=$?
8195    cat conftest.err >&5
8196    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197    if (exit $ac_status) && test -s "$ac_outfile"; then
8198      # The compiler can only warn and ignore the option if not recognized
8199      # So say no if there are warnings other than the usual output.
8200      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8201      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8202      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8203        lt_cv_prog_compiler_pic_works=yes
8204      fi
8205    fi
8206    $RM conftest*
8207
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8210 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8211
8212 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8213     case $lt_prog_compiler_pic in
8214      "" | " "*) ;;
8215      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8216      esac
8217 else
8218     lt_prog_compiler_pic=
8219      lt_prog_compiler_can_build_shared=no
8220 fi
8221
8222 fi
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234 #
8235 # Check to make sure the static flag actually works.
8236 #
8237 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8239 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8240 if ${lt_cv_prog_compiler_static_works+:} false; then :
8241   $as_echo_n "(cached) " >&6
8242 else
8243   lt_cv_prog_compiler_static_works=no
8244    save_LDFLAGS="$LDFLAGS"
8245    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8246    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8247    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8248      # The linker can only warn and ignore the option if not recognized
8249      # So say no if there are warnings
8250      if test -s conftest.err; then
8251        # Append any errors to the config.log.
8252        cat conftest.err 1>&5
8253        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8254        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8255        if diff conftest.exp conftest.er2 >/dev/null; then
8256          lt_cv_prog_compiler_static_works=yes
8257        fi
8258      else
8259        lt_cv_prog_compiler_static_works=yes
8260      fi
8261    fi
8262    $RM -r conftest*
8263    LDFLAGS="$save_LDFLAGS"
8264
8265 fi
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8267 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8268
8269 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8270     :
8271 else
8272     lt_prog_compiler_static=
8273 fi
8274
8275
8276
8277
8278
8279
8280
8281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8282 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8283 if ${lt_cv_prog_compiler_c_o+:} false; then :
8284   $as_echo_n "(cached) " >&6
8285 else
8286   lt_cv_prog_compiler_c_o=no
8287    $RM -r conftest 2>/dev/null
8288    mkdir conftest
8289    cd conftest
8290    mkdir out
8291    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8292
8293    lt_compiler_flag="-o out/conftest2.$ac_objext"
8294    # Insert the option either (1) after the last *FLAGS variable, or
8295    # (2) before a word containing "conftest.", or (3) at the end.
8296    # Note that $ac_compile itself does not contain backslashes and begins
8297    # with a dollar sign (not a hyphen), so the echo should work correctly.
8298    lt_compile=`echo "$ac_compile" | $SED \
8299    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8300    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8301    -e 's:$: $lt_compiler_flag:'`
8302    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8303    (eval "$lt_compile" 2>out/conftest.err)
8304    ac_status=$?
8305    cat out/conftest.err >&5
8306    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8308    then
8309      # The compiler can only warn and ignore the option if not recognized
8310      # So say no if there are warnings
8311      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8312      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8313      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8314        lt_cv_prog_compiler_c_o=yes
8315      fi
8316    fi
8317    chmod u+w . 2>&5
8318    $RM conftest*
8319    # SGI C++ compiler will create directory out/ii_files/ for
8320    # template instantiation
8321    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8322    $RM out/* && rmdir out
8323    cd ..
8324    $RM -r conftest
8325    $RM conftest*
8326
8327 fi
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8329 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8330
8331
8332
8333
8334
8335
8336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8337 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8338 if ${lt_cv_prog_compiler_c_o+:} false; then :
8339   $as_echo_n "(cached) " >&6
8340 else
8341   lt_cv_prog_compiler_c_o=no
8342    $RM -r conftest 2>/dev/null
8343    mkdir conftest
8344    cd conftest
8345    mkdir out
8346    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8347
8348    lt_compiler_flag="-o out/conftest2.$ac_objext"
8349    # Insert the option either (1) after the last *FLAGS variable, or
8350    # (2) before a word containing "conftest.", or (3) at the end.
8351    # Note that $ac_compile itself does not contain backslashes and begins
8352    # with a dollar sign (not a hyphen), so the echo should work correctly.
8353    lt_compile=`echo "$ac_compile" | $SED \
8354    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8355    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8356    -e 's:$: $lt_compiler_flag:'`
8357    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8358    (eval "$lt_compile" 2>out/conftest.err)
8359    ac_status=$?
8360    cat out/conftest.err >&5
8361    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8363    then
8364      # The compiler can only warn and ignore the option if not recognized
8365      # So say no if there are warnings
8366      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8367      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8368      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8369        lt_cv_prog_compiler_c_o=yes
8370      fi
8371    fi
8372    chmod u+w . 2>&5
8373    $RM conftest*
8374    # SGI C++ compiler will create directory out/ii_files/ for
8375    # template instantiation
8376    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8377    $RM out/* && rmdir out
8378    cd ..
8379    $RM -r conftest
8380    $RM conftest*
8381
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8384 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8385
8386
8387
8388
8389 hard_links="nottested"
8390 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8391   # do not overwrite the value of need_locks provided by the user
8392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8393 $as_echo_n "checking if we can lock with hard links... " >&6; }
8394   hard_links=yes
8395   $RM conftest*
8396   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8397   touch conftest.a
8398   ln conftest.a conftest.b 2>&5 || hard_links=no
8399   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8401 $as_echo "$hard_links" >&6; }
8402   if test "$hard_links" = no; then
8403     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8404 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8405     need_locks=warn
8406   fi
8407 else
8408   need_locks=no
8409 fi
8410
8411
8412
8413
8414
8415
8416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8417 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8418
8419   runpath_var=
8420   allow_undefined_flag=
8421   always_export_symbols=no
8422   archive_cmds=
8423   archive_expsym_cmds=
8424   compiler_needs_object=no
8425   enable_shared_with_static_runtimes=no
8426   export_dynamic_flag_spec=
8427   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8428   hardcode_automatic=no
8429   hardcode_direct=no
8430   hardcode_direct_absolute=no
8431   hardcode_libdir_flag_spec=
8432   hardcode_libdir_flag_spec_ld=
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   linux* | k*bsd*-gnu | gnu*)
8477     link_all_deplibs=no
8478     ;;
8479   esac
8480
8481   ld_shlibs=yes
8482
8483   # On some targets, GNU ld is compatible enough with the native linker
8484   # that we're better off using the native interface for both.
8485   lt_use_gnu_ld_interface=no
8486   if test "$with_gnu_ld" = yes; then
8487     case $host_os in
8488       aix*)
8489         # The AIX port of GNU ld has always aspired to compatibility
8490         # with the native linker.  However, as the warning in the GNU ld
8491         # block says, versions before 2.19.5* couldn't really create working
8492         # shared libraries, regardless of the interface used.
8493         case `$LD -v 2>&1` in
8494           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8495           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8496           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8497           *)
8498             lt_use_gnu_ld_interface=yes
8499             ;;
8500         esac
8501         ;;
8502       *)
8503         lt_use_gnu_ld_interface=yes
8504         ;;
8505     esac
8506   fi
8507
8508   if test "$lt_use_gnu_ld_interface" = yes; then
8509     # If archive_cmds runs LD, not CC, wlarc should be empty
8510     wlarc='${wl}'
8511
8512     # Set some defaults for GNU ld with shared library support. These
8513     # are reset later if shared libraries are not supported. Putting them
8514     # here allows them to be overridden if necessary.
8515     runpath_var=LD_RUN_PATH
8516     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8517     export_dynamic_flag_spec='${wl}--export-dynamic'
8518     # ancient GNU ld didn't support --whole-archive et. al.
8519     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8520       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8521     else
8522       whole_archive_flag_spec=
8523     fi
8524     supports_anon_versioning=no
8525     case `$LD -v 2>&1` in
8526       *GNU\ gold*) supports_anon_versioning=yes ;;
8527       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8528       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8529       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8530       *\ 2.11.*) ;; # other 2.11 versions
8531       *) supports_anon_versioning=yes ;;
8532     esac
8533
8534     # See if GNU ld supports shared libraries.
8535     case $host_os in
8536     aix[3-9]*)
8537       # On AIX/PPC, the GNU linker is very broken
8538       if test "$host_cpu" != ia64; then
8539         ld_shlibs=no
8540         cat <<_LT_EOF 1>&2
8541
8542 *** Warning: the GNU linker, at least up to release 2.19, is reported
8543 *** to be unable to reliably create shared libraries on AIX.
8544 *** Therefore, libtool is disabling shared libraries support.  If you
8545 *** really care for shared libraries, you may want to install binutils
8546 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8547 *** You will then need to restart the configuration process.
8548
8549 _LT_EOF
8550       fi
8551       ;;
8552
8553     amigaos*)
8554       case $host_cpu in
8555       powerpc)
8556             # see comment about AmigaOS4 .so support
8557             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8558             archive_expsym_cmds=''
8559         ;;
8560       m68k)
8561             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)'
8562             hardcode_libdir_flag_spec='-L$libdir'
8563             hardcode_minus_L=yes
8564         ;;
8565       esac
8566       ;;
8567
8568     beos*)
8569       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8570         allow_undefined_flag=unsupported
8571         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8572         # support --undefined.  This deserves some investigation.  FIXME
8573         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8574       else
8575         ld_shlibs=no
8576       fi
8577       ;;
8578
8579     cygwin* | mingw* | pw32* | cegcc*)
8580       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8581       # as there is no search path for DLLs.
8582       hardcode_libdir_flag_spec='-L$libdir'
8583       export_dynamic_flag_spec='${wl}--export-all-symbols'
8584       allow_undefined_flag=unsupported
8585       always_export_symbols=no
8586       enable_shared_with_static_runtimes=yes
8587       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'
8588       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8589
8590       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8591         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8592         # If the export-symbols file already is a .def file (1st line
8593         # is EXPORTS), use it as is; otherwise, prepend...
8594         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8595           cp $export_symbols $output_objdir/$soname.def;
8596         else
8597           echo EXPORTS > $output_objdir/$soname.def;
8598           cat $export_symbols >> $output_objdir/$soname.def;
8599         fi~
8600         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8601       else
8602         ld_shlibs=no
8603       fi
8604       ;;
8605
8606     haiku*)
8607       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8608       link_all_deplibs=yes
8609       ;;
8610
8611     interix[3-9]*)
8612       hardcode_direct=no
8613       hardcode_shlibpath_var=no
8614       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8615       export_dynamic_flag_spec='${wl}-E'
8616       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8617       # Instead, shared libraries are loaded at an image base (0x10000000 by
8618       # default) and relocated if they conflict, which is a slow very memory
8619       # consuming and fragmenting process.  To avoid this, we pick a random,
8620       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8621       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8622       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8623       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'
8624       ;;
8625
8626     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8627       tmp_diet=no
8628       if test "$host_os" = linux-dietlibc; then
8629         case $cc_basename in
8630           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8631         esac
8632       fi
8633       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8634          && test "$tmp_diet" = no
8635       then
8636         tmp_addflag=' $pic_flag'
8637         tmp_sharedflag='-shared'
8638         case $cc_basename,$host_cpu in
8639         pgcc*)                          # Portland Group C compiler
8640           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'
8641           tmp_addflag=' $pic_flag'
8642           ;;
8643         pgf77* | pgf90* | pgf95* | pgfortran*)
8644                                         # Portland Group f77 and f90 compilers
8645           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'
8646           tmp_addflag=' $pic_flag -Mnomain' ;;
8647         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8648           tmp_addflag=' -i_dynamic' ;;
8649         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8650           tmp_addflag=' -i_dynamic -nofor_main' ;;
8651         ifc* | ifort*)                  # Intel Fortran compiler
8652           tmp_addflag=' -nofor_main' ;;
8653         lf95*)                          # Lahey Fortran 8.1
8654           whole_archive_flag_spec=
8655           tmp_sharedflag='--shared' ;;
8656         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8657           tmp_sharedflag='-qmkshrobj'
8658           tmp_addflag= ;;
8659         nvcc*)  # Cuda Compiler Driver 2.2
8660           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'
8661           compiler_needs_object=yes
8662           ;;
8663         esac
8664         case `$CC -V 2>&1 | sed 5q` in
8665         *Sun\ C*)                       # Sun C 5.9
8666           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'
8667           compiler_needs_object=yes
8668           tmp_sharedflag='-G' ;;
8669         *Sun\ F*)                       # Sun Fortran 8.3
8670           tmp_sharedflag='-G' ;;
8671         esac
8672         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8673
8674         if test "x$supports_anon_versioning" = xyes; then
8675           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8676             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8677             echo "local: *; };" >> $output_objdir/$libname.ver~
8678             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8679         fi
8680
8681         case $cc_basename in
8682         xlf* | bgf* | bgxlf* | mpixlf*)
8683           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8684           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8685           hardcode_libdir_flag_spec=
8686           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8687           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8688           if test "x$supports_anon_versioning" = xyes; then
8689             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8690               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8691               echo "local: *; };" >> $output_objdir/$libname.ver~
8692               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8693           fi
8694           ;;
8695         esac
8696       else
8697         ld_shlibs=no
8698       fi
8699       ;;
8700
8701     netbsd* | netbsdelf*-gnu)
8702       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8703         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8704         wlarc=
8705       else
8706         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8707         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8708       fi
8709       ;;
8710
8711     solaris*)
8712       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8713         ld_shlibs=no
8714         cat <<_LT_EOF 1>&2
8715
8716 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8717 *** create shared libraries on Solaris systems.  Therefore, libtool
8718 *** is disabling shared libraries support.  We urge you to upgrade GNU
8719 *** binutils to release 2.9.1 or newer.  Another option is to modify
8720 *** your PATH or compiler configuration so that the native linker is
8721 *** used, and then restart.
8722
8723 _LT_EOF
8724       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8725         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8726         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8727       else
8728         ld_shlibs=no
8729       fi
8730       ;;
8731
8732     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8733       case `$LD -v 2>&1` in
8734         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8735         ld_shlibs=no
8736         cat <<_LT_EOF 1>&2
8737
8738 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8739 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8740 *** is disabling shared libraries support.  We urge you to upgrade GNU
8741 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8742 *** your PATH or compiler configuration so that the native linker is
8743 *** used, and then restart.
8744
8745 _LT_EOF
8746         ;;
8747         *)
8748           # For security reasons, it is highly recommended that you always
8749           # use absolute paths for naming shared libraries, and exclude the
8750           # DT_RUNPATH tag from executables and libraries.  But doing so
8751           # requires that you compile everything twice, which is a pain.
8752           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8753             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8754             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8755             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8756           else
8757             ld_shlibs=no
8758           fi
8759         ;;
8760       esac
8761       ;;
8762
8763     sunos4*)
8764       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8765       wlarc=
8766       hardcode_direct=yes
8767       hardcode_shlibpath_var=no
8768       ;;
8769
8770     *)
8771       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8772         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8773         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8774       else
8775         ld_shlibs=no
8776       fi
8777       ;;
8778     esac
8779
8780     if test "$ld_shlibs" = no; then
8781       runpath_var=
8782       hardcode_libdir_flag_spec=
8783       export_dynamic_flag_spec=
8784       whole_archive_flag_spec=
8785     fi
8786   else
8787     # PORTME fill in a description of your system's linker (not GNU ld)
8788     case $host_os in
8789     aix3*)
8790       allow_undefined_flag=unsupported
8791       always_export_symbols=yes
8792       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'
8793       # Note: this linker hardcodes the directories in LIBPATH if there
8794       # are no directories specified by -L.
8795       hardcode_minus_L=yes
8796       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8797         # Neither direct hardcoding nor static linking is supported with a
8798         # broken collect2.
8799         hardcode_direct=unsupported
8800       fi
8801       ;;
8802
8803     aix[4-9]*)
8804       if test "$host_cpu" = ia64; then
8805         # On IA64, the linker does run time linking by default, so we don't
8806         # have to do anything special.
8807         aix_use_runtimelinking=no
8808         exp_sym_flag='-Bexport'
8809         no_entry_flag=""
8810       else
8811         # If we're using GNU nm, then we don't want the "-C" option.
8812         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8813         # Also, AIX nm treats weak defined symbols like other global
8814         # defined symbols, whereas GNU nm marks them as "W".
8815         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8816           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'
8817         else
8818           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'
8819         fi
8820         aix_use_runtimelinking=no
8821
8822         # Test if we are trying to use run time linking or normal
8823         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8824         # need to do runtime linking.
8825         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8826           for ld_flag in $LDFLAGS; do
8827           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8828             aix_use_runtimelinking=yes
8829             break
8830           fi
8831           done
8832           ;;
8833         esac
8834
8835         exp_sym_flag='-bexport'
8836         no_entry_flag='-bnoentry'
8837       fi
8838
8839       # When large executables or shared objects are built, AIX ld can
8840       # have problems creating the table of contents.  If linking a library
8841       # or program results in "error TOC overflow" add -mminimal-toc to
8842       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8843       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8844
8845       archive_cmds=''
8846       hardcode_direct=yes
8847       hardcode_direct_absolute=yes
8848       hardcode_libdir_separator=':'
8849       link_all_deplibs=yes
8850       file_list_spec='${wl}-f,'
8851
8852       if test "$GCC" = yes; then
8853         case $host_os in aix4.[012]|aix4.[012].*)
8854         # We only want to do this on AIX 4.2 and lower, the check
8855         # below for broken collect2 doesn't work under 4.3+
8856           collect2name=`${CC} -print-prog-name=collect2`
8857           if test -f "$collect2name" &&
8858            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8859           then
8860           # We have reworked collect2
8861           :
8862           else
8863           # We have old collect2
8864           hardcode_direct=unsupported
8865           # It fails to find uninstalled libraries when the uninstalled
8866           # path is not listed in the libpath.  Setting hardcode_minus_L
8867           # to unsupported forces relinking
8868           hardcode_minus_L=yes
8869           hardcode_libdir_flag_spec='-L$libdir'
8870           hardcode_libdir_separator=
8871           fi
8872           ;;
8873         esac
8874         shared_flag='-shared'
8875         if test "$aix_use_runtimelinking" = yes; then
8876           shared_flag="$shared_flag "'${wl}-G'
8877         fi
8878         link_all_deplibs=no
8879       else
8880         # not using gcc
8881         if test "$host_cpu" = ia64; then
8882         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8883         # chokes on -Wl,-G. The following line is correct:
8884           shared_flag='-G'
8885         else
8886           if test "$aix_use_runtimelinking" = yes; then
8887             shared_flag='${wl}-G'
8888           else
8889             shared_flag='${wl}-bM:SRE'
8890           fi
8891         fi
8892       fi
8893
8894       export_dynamic_flag_spec='${wl}-bexpall'
8895       # It seems that -bexpall does not export symbols beginning with
8896       # underscore (_), so it is better to generate a list of symbols to export.
8897       always_export_symbols=yes
8898       if test "$aix_use_runtimelinking" = yes; then
8899         # Warning - without using the other runtime loading flags (-brtl),
8900         # -berok will link without error, but may produce a broken library.
8901         allow_undefined_flag='-berok'
8902         # Determine the default libpath from the value encoded in an
8903         # empty executable.
8904         if test "${lt_cv_aix_libpath+set}" = set; then
8905   aix_libpath=$lt_cv_aix_libpath
8906 else
8907   if ${lt_cv_aix_libpath_+:} false; then :
8908   $as_echo_n "(cached) " >&6
8909 else
8910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h.  */
8912
8913 int
8914 main ()
8915 {
8916
8917   ;
8918   return 0;
8919 }
8920 _ACEOF
8921 if ac_fn_c_try_link "$LINENO"; then :
8922
8923   lt_aix_libpath_sed='
8924       /Import File Strings/,/^$/ {
8925           /^0/ {
8926               s/^0  *\([^ ]*\) *$/\1/
8927               p
8928           }
8929       }'
8930   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8931   # Check for a 64-bit object if we didn't find anything.
8932   if test -z "$lt_cv_aix_libpath_"; then
8933     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8934   fi
8935 fi
8936 rm -f core conftest.err conftest.$ac_objext \
8937     conftest$ac_exeext conftest.$ac_ext
8938   if test -z "$lt_cv_aix_libpath_"; then
8939     lt_cv_aix_libpath_="/usr/lib:/lib"
8940   fi
8941
8942 fi
8943
8944   aix_libpath=$lt_cv_aix_libpath_
8945 fi
8946
8947         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8948         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"
8949       else
8950         if test "$host_cpu" = ia64; then
8951           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8952           allow_undefined_flag="-z nodefs"
8953           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"
8954         else
8955          # Determine the default libpath from the value encoded in an
8956          # empty executable.
8957          if test "${lt_cv_aix_libpath+set}" = set; then
8958   aix_libpath=$lt_cv_aix_libpath
8959 else
8960   if ${lt_cv_aix_libpath_+:} false; then :
8961   $as_echo_n "(cached) " >&6
8962 else
8963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h.  */
8965
8966 int
8967 main ()
8968 {
8969
8970   ;
8971   return 0;
8972 }
8973 _ACEOF
8974 if ac_fn_c_try_link "$LINENO"; then :
8975
8976   lt_aix_libpath_sed='
8977       /Import File Strings/,/^$/ {
8978           /^0/ {
8979               s/^0  *\([^ ]*\) *$/\1/
8980               p
8981           }
8982       }'
8983   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8984   # Check for a 64-bit object if we didn't find anything.
8985   if test -z "$lt_cv_aix_libpath_"; then
8986     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8987   fi
8988 fi
8989 rm -f core conftest.err conftest.$ac_objext \
8990     conftest$ac_exeext conftest.$ac_ext
8991   if test -z "$lt_cv_aix_libpath_"; then
8992     lt_cv_aix_libpath_="/usr/lib:/lib"
8993   fi
8994
8995 fi
8996
8997   aix_libpath=$lt_cv_aix_libpath_
8998 fi
8999
9000          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9001           # Warning - without using the other run time loading flags,
9002           # -berok will link without error, but may produce a broken library.
9003           no_undefined_flag=' ${wl}-bernotok'
9004           allow_undefined_flag=' ${wl}-berok'
9005           if test "$with_gnu_ld" = yes; then
9006             # We only use this code for GNU lds that support --whole-archive.
9007             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9008           else
9009             # Exported symbols can be pulled into shared objects from archives
9010             whole_archive_flag_spec='$convenience'
9011           fi
9012           archive_cmds_need_lc=yes
9013           # This is similar to how AIX traditionally builds its shared libraries.
9014           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'
9015         fi
9016       fi
9017       ;;
9018
9019     amigaos*)
9020       case $host_cpu in
9021       powerpc)
9022             # see comment about AmigaOS4 .so support
9023             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9024             archive_expsym_cmds=''
9025         ;;
9026       m68k)
9027             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)'
9028             hardcode_libdir_flag_spec='-L$libdir'
9029             hardcode_minus_L=yes
9030         ;;
9031       esac
9032       ;;
9033
9034     bsdi[45]*)
9035       export_dynamic_flag_spec=-rdynamic
9036       ;;
9037
9038     cygwin* | mingw* | pw32* | cegcc*)
9039       # When not using gcc, we currently assume that we are using
9040       # Microsoft Visual C++.
9041       # hardcode_libdir_flag_spec is actually meaningless, as there is
9042       # no search path for DLLs.
9043       case $cc_basename in
9044       cl*)
9045         # Native MSVC
9046         hardcode_libdir_flag_spec=' '
9047         allow_undefined_flag=unsupported
9048         always_export_symbols=yes
9049         file_list_spec='@'
9050         # Tell ltmain to make .lib files, not .a files.
9051         libext=lib
9052         # Tell ltmain to make .dll files, not .so files.
9053         shrext_cmds=".dll"
9054         # FIXME: Setting linknames here is a bad hack.
9055         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9056         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9057             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9058           else
9059             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9060           fi~
9061           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9062           linknames='
9063         # The linker will not automatically build a static lib if we build a DLL.
9064         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9065         enable_shared_with_static_runtimes=yes
9066         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9067         # Don't use ranlib
9068         old_postinstall_cmds='chmod 644 $oldlib'
9069         postlink_cmds='lt_outputfile="@OUTPUT@"~
9070           lt_tool_outputfile="@TOOL_OUTPUT@"~
9071           case $lt_outputfile in
9072             *.exe|*.EXE) ;;
9073             *)
9074               lt_outputfile="$lt_outputfile.exe"
9075               lt_tool_outputfile="$lt_tool_outputfile.exe"
9076               ;;
9077           esac~
9078           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9079             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9080             $RM "$lt_outputfile.manifest";
9081           fi'
9082         ;;
9083       *)
9084         # Assume MSVC wrapper
9085         hardcode_libdir_flag_spec=' '
9086         allow_undefined_flag=unsupported
9087         # Tell ltmain to make .lib files, not .a files.
9088         libext=lib
9089         # Tell ltmain to make .dll files, not .so files.
9090         shrext_cmds=".dll"
9091         # FIXME: Setting linknames here is a bad hack.
9092         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9093         # The linker will automatically build a .lib file if we build a DLL.
9094         old_archive_from_new_cmds='true'
9095         # FIXME: Should let the user specify the lib program.
9096         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9097         enable_shared_with_static_runtimes=yes
9098         ;;
9099       esac
9100       ;;
9101
9102     darwin* | rhapsody*)
9103
9104
9105   archive_cmds_need_lc=no
9106   hardcode_direct=no
9107   hardcode_automatic=yes
9108   hardcode_shlibpath_var=unsupported
9109   if test "$lt_cv_ld_force_load" = "yes"; then
9110     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\"`'
9111   else
9112     whole_archive_flag_spec=''
9113   fi
9114   link_all_deplibs=yes
9115   allow_undefined_flag="$_lt_dar_allow_undefined"
9116   case $cc_basename in
9117      ifort*) _lt_dar_can_shared=yes ;;
9118      *) _lt_dar_can_shared=$GCC ;;
9119   esac
9120   if test "$_lt_dar_can_shared" = "yes"; then
9121     output_verbose_link_cmd=func_echo_all
9122     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9123     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9124     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}"
9125     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}"
9126
9127   else
9128   ld_shlibs=no
9129   fi
9130
9131       ;;
9132
9133     dgux*)
9134       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9135       hardcode_libdir_flag_spec='-L$libdir'
9136       hardcode_shlibpath_var=no
9137       ;;
9138
9139     freebsd1*)
9140       ld_shlibs=no
9141       ;;
9142
9143     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9144     # support.  Future versions do this automatically, but an explicit c++rt0.o
9145     # does not break anything, and helps significantly (at the cost of a little
9146     # extra space).
9147     freebsd2.2*)
9148       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9149       hardcode_libdir_flag_spec='-R$libdir'
9150       hardcode_direct=yes
9151       hardcode_shlibpath_var=no
9152       ;;
9153
9154     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9155     freebsd2*)
9156       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9157       hardcode_direct=yes
9158       hardcode_minus_L=yes
9159       hardcode_shlibpath_var=no
9160       ;;
9161
9162     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9163     freebsd* | dragonfly*)
9164       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9165       hardcode_libdir_flag_spec='-R$libdir'
9166       hardcode_direct=yes
9167       hardcode_shlibpath_var=no
9168       ;;
9169
9170     hpux9*)
9171       if test "$GCC" = yes; then
9172         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'
9173       else
9174         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'
9175       fi
9176       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9177       hardcode_libdir_separator=:
9178       hardcode_direct=yes
9179
9180       # hardcode_minus_L: Not really in the search PATH,
9181       # but as the default location of the library.
9182       hardcode_minus_L=yes
9183       export_dynamic_flag_spec='${wl}-E'
9184       ;;
9185
9186     hpux10*)
9187       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9188         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9189       else
9190         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9191       fi
9192       if test "$with_gnu_ld" = no; then
9193         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9194         hardcode_libdir_flag_spec_ld='+b $libdir'
9195         hardcode_libdir_separator=:
9196         hardcode_direct=yes
9197         hardcode_direct_absolute=yes
9198         export_dynamic_flag_spec='${wl}-E'
9199         # hardcode_minus_L: Not really in the search PATH,
9200         # but as the default location of the library.
9201         hardcode_minus_L=yes
9202       fi
9203       ;;
9204
9205     hpux11*)
9206       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9207         case $host_cpu in
9208         hppa*64*)
9209           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9210           ;;
9211         ia64*)
9212           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9213           ;;
9214         *)
9215           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9216           ;;
9217         esac
9218       else
9219         case $host_cpu in
9220         hppa*64*)
9221           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9222           ;;
9223         ia64*)
9224           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9225           ;;
9226         *)
9227
9228           # Older versions of the 11.00 compiler do not understand -b yet
9229           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9230           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9231 $as_echo_n "checking if $CC understands -b... " >&6; }
9232 if ${lt_cv_prog_compiler__b+:} false; then :
9233   $as_echo_n "(cached) " >&6
9234 else
9235   lt_cv_prog_compiler__b=no
9236    save_LDFLAGS="$LDFLAGS"
9237    LDFLAGS="$LDFLAGS -b"
9238    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9239    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9240      # The linker can only warn and ignore the option if not recognized
9241      # So say no if there are warnings
9242      if test -s conftest.err; then
9243        # Append any errors to the config.log.
9244        cat conftest.err 1>&5
9245        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9246        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9247        if diff conftest.exp conftest.er2 >/dev/null; then
9248          lt_cv_prog_compiler__b=yes
9249        fi
9250      else
9251        lt_cv_prog_compiler__b=yes
9252      fi
9253    fi
9254    $RM -r conftest*
9255    LDFLAGS="$save_LDFLAGS"
9256
9257 fi
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9259 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9260
9261 if test x"$lt_cv_prog_compiler__b" = xyes; then
9262     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9263 else
9264     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9265 fi
9266
9267           ;;
9268         esac
9269       fi
9270       if test "$with_gnu_ld" = no; then
9271         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9272         hardcode_libdir_separator=:
9273
9274         case $host_cpu in
9275         hppa*64*|ia64*)
9276           hardcode_direct=no
9277           hardcode_shlibpath_var=no
9278           ;;
9279         *)
9280           hardcode_direct=yes
9281           hardcode_direct_absolute=yes
9282           export_dynamic_flag_spec='${wl}-E'
9283
9284           # hardcode_minus_L: Not really in the search PATH,
9285           # but as the default location of the library.
9286           hardcode_minus_L=yes
9287           ;;
9288         esac
9289       fi
9290       ;;
9291
9292     irix5* | irix6* | nonstopux*)
9293       if test "$GCC" = yes; then
9294         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'
9295         # Try to use the -exported_symbol ld option, if it does not
9296         # work, assume that -exports_file does not work either and
9297         # implicitly export all symbols.
9298         # This should be the same for all languages, so no per-tag cache variable.
9299         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9300 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9301 if ${lt_cv_irix_exported_symbol+:} false; then :
9302   $as_echo_n "(cached) " >&6
9303 else
9304   save_LDFLAGS="$LDFLAGS"
9305            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9306            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h.  */
9308 int foo (void) { return 0; }
9309 _ACEOF
9310 if ac_fn_c_try_link "$LINENO"; then :
9311   lt_cv_irix_exported_symbol=yes
9312 else
9313   lt_cv_irix_exported_symbol=no
9314 fi
9315 rm -f core conftest.err conftest.$ac_objext \
9316     conftest$ac_exeext conftest.$ac_ext
9317            LDFLAGS="$save_LDFLAGS"
9318 fi
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9320 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9321         if test "$lt_cv_irix_exported_symbol" = yes; then
9322           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'
9323         fi
9324       else
9325         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'
9326         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'
9327       fi
9328       archive_cmds_need_lc='no'
9329       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9330       hardcode_libdir_separator=:
9331       inherit_rpath=yes
9332       link_all_deplibs=yes
9333       ;;
9334
9335     netbsd* | netbsdelf*-gnu)
9336       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9337         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9338       else
9339         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9340       fi
9341       hardcode_libdir_flag_spec='-R$libdir'
9342       hardcode_direct=yes
9343       hardcode_shlibpath_var=no
9344       ;;
9345
9346     newsos6)
9347       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348       hardcode_direct=yes
9349       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9350       hardcode_libdir_separator=:
9351       hardcode_shlibpath_var=no
9352       ;;
9353
9354     *nto* | *qnx*)
9355       ;;
9356
9357     openbsd*)
9358       if test -f /usr/libexec/ld.so; then
9359         hardcode_direct=yes
9360         hardcode_shlibpath_var=no
9361         hardcode_direct_absolute=yes
9362         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9363           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9364           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9365           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9366           export_dynamic_flag_spec='${wl}-E'
9367         else
9368           case $host_os in
9369            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9370              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9371              hardcode_libdir_flag_spec='-R$libdir'
9372              ;;
9373            *)
9374              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9375              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9376              ;;
9377           esac
9378         fi
9379       else
9380         ld_shlibs=no
9381       fi
9382       ;;
9383
9384     os2*)
9385       hardcode_libdir_flag_spec='-L$libdir'
9386       hardcode_minus_L=yes
9387       allow_undefined_flag=unsupported
9388       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'
9389       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9390       ;;
9391
9392     osf3*)
9393       if test "$GCC" = yes; then
9394         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9395         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'
9396       else
9397         allow_undefined_flag=' -expect_unresolved \*'
9398         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'
9399       fi
9400       archive_cmds_need_lc='no'
9401       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9402       hardcode_libdir_separator=:
9403       ;;
9404
9405     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9406       if test "$GCC" = yes; then
9407         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9408         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'
9409         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9410       else
9411         allow_undefined_flag=' -expect_unresolved \*'
9412         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'
9413         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~
9414         $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'
9415
9416         # Both c and cxx compiler support -rpath directly
9417         hardcode_libdir_flag_spec='-rpath $libdir'
9418       fi
9419       archive_cmds_need_lc='no'
9420       hardcode_libdir_separator=:
9421       ;;
9422
9423     solaris*)
9424       no_undefined_flag=' -z defs'
9425       if test "$GCC" = yes; then
9426         wlarc='${wl}'
9427         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9428         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9429           $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'
9430       else
9431         case `$CC -V 2>&1` in
9432         *"Compilers 5.0"*)
9433           wlarc=''
9434           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9435           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9436           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9437           ;;
9438         *)
9439           wlarc='${wl}'
9440           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9441           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9442           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9443           ;;
9444         esac
9445       fi
9446       hardcode_libdir_flag_spec='-R$libdir'
9447       hardcode_shlibpath_var=no
9448       case $host_os in
9449       solaris2.[0-5] | solaris2.[0-5].*) ;;
9450       *)
9451         # The compiler driver will combine and reorder linker options,
9452         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9453         # but is careful enough not to reorder.
9454         # Supported since Solaris 2.6 (maybe 2.5.1?)
9455         if test "$GCC" = yes; then
9456           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9457         else
9458           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9459         fi
9460         ;;
9461       esac
9462       link_all_deplibs=yes
9463       ;;
9464
9465     sunos4*)
9466       if test "x$host_vendor" = xsequent; then
9467         # Use $CC to link under sequent, because it throws in some extra .o
9468         # files that make .init and .fini sections work.
9469         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9470       else
9471         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9472       fi
9473       hardcode_libdir_flag_spec='-L$libdir'
9474       hardcode_direct=yes
9475       hardcode_minus_L=yes
9476       hardcode_shlibpath_var=no
9477       ;;
9478
9479     sysv4)
9480       case $host_vendor in
9481         sni)
9482           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483           hardcode_direct=yes # is this really true???
9484         ;;
9485         siemens)
9486           ## LD is ld it makes a PLAMLIB
9487           ## CC just makes a GrossModule.
9488           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9489           reload_cmds='$CC -r -o $output$reload_objs'
9490           hardcode_direct=no
9491         ;;
9492         motorola)
9493           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9494           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9495         ;;
9496       esac
9497       runpath_var='LD_RUN_PATH'
9498       hardcode_shlibpath_var=no
9499       ;;
9500
9501     sysv4.3*)
9502       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503       hardcode_shlibpath_var=no
9504       export_dynamic_flag_spec='-Bexport'
9505       ;;
9506
9507     sysv4*MP*)
9508       if test -d /usr/nec; then
9509         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9510         hardcode_shlibpath_var=no
9511         runpath_var=LD_RUN_PATH
9512         hardcode_runpath_var=yes
9513         ld_shlibs=yes
9514       fi
9515       ;;
9516
9517     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9518       no_undefined_flag='${wl}-z,text'
9519       archive_cmds_need_lc=no
9520       hardcode_shlibpath_var=no
9521       runpath_var='LD_RUN_PATH'
9522
9523       if test "$GCC" = yes; then
9524         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9525         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9526       else
9527         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9528         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529       fi
9530       ;;
9531
9532     sysv5* | sco3.2v5* | sco5v6*)
9533       # Note: We can NOT use -z defs as we might desire, because we do not
9534       # link with -lc, and that would cause any symbols used from libc to
9535       # always be unresolved, which means just about no library would
9536       # ever link correctly.  If we're not using GNU ld we use -z text
9537       # though, which does catch some bad symbols but isn't as heavy-handed
9538       # as -z defs.
9539       no_undefined_flag='${wl}-z,text'
9540       allow_undefined_flag='${wl}-z,nodefs'
9541       archive_cmds_need_lc=no
9542       hardcode_shlibpath_var=no
9543       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9544       hardcode_libdir_separator=':'
9545       link_all_deplibs=yes
9546       export_dynamic_flag_spec='${wl}-Bexport'
9547       runpath_var='LD_RUN_PATH'
9548
9549       if test "$GCC" = yes; then
9550         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9551         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9552       else
9553         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9554         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9555       fi
9556       ;;
9557
9558     uts4*)
9559       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560       hardcode_libdir_flag_spec='-L$libdir'
9561       hardcode_shlibpath_var=no
9562       ;;
9563
9564     *)
9565       ld_shlibs=no
9566       ;;
9567     esac
9568
9569     if test x$host_vendor = xsni; then
9570       case $host in
9571       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9572         export_dynamic_flag_spec='${wl}-Blargedynsym'
9573         ;;
9574       esac
9575     fi
9576   fi
9577
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9579 $as_echo "$ld_shlibs" >&6; }
9580 test "$ld_shlibs" = no && can_build_shared=no
9581
9582 with_gnu_ld=$with_gnu_ld
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598 #
9599 # Do we need to explicitly link libc?
9600 #
9601 case "x$archive_cmds_need_lc" in
9602 x|xyes)
9603   # Assume -lc should be added
9604   archive_cmds_need_lc=yes
9605
9606   if test "$enable_shared" = yes && test "$GCC" = yes; then
9607     case $archive_cmds in
9608     *'~'*)
9609       # FIXME: we may have to deal with multi-command sequences.
9610       ;;
9611     '$CC '*)
9612       # Test whether the compiler implicitly links with -lc since on some
9613       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9614       # to ld, don't add -lc before -lgcc.
9615       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9616 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9617 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9618   $as_echo_n "(cached) " >&6
9619 else
9620   $RM conftest*
9621         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9622
9623         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9624   (eval $ac_compile) 2>&5
9625   ac_status=$?
9626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9627   test $ac_status = 0; } 2>conftest.err; then
9628           soname=conftest
9629           lib=conftest
9630           libobjs=conftest.$ac_objext
9631           deplibs=
9632           wl=$lt_prog_compiler_wl
9633           pic_flag=$lt_prog_compiler_pic
9634           compiler_flags=-v
9635           linker_flags=-v
9636           verstring=
9637           output_objdir=.
9638           libname=conftest
9639           lt_save_allow_undefined_flag=$allow_undefined_flag
9640           allow_undefined_flag=
9641           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9642   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9643   ac_status=$?
9644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9645   test $ac_status = 0; }
9646           then
9647             lt_cv_archive_cmds_need_lc=no
9648           else
9649             lt_cv_archive_cmds_need_lc=yes
9650           fi
9651           allow_undefined_flag=$lt_save_allow_undefined_flag
9652         else
9653           cat conftest.err 1>&5
9654         fi
9655         $RM conftest*
9656
9657 fi
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9659 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9660       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9661       ;;
9662     esac
9663   fi
9664   ;;
9665 esac
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
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9824 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9825
9826 if test "$GCC" = yes; then
9827   case $host_os in
9828     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9829     *) lt_awk_arg="/^libraries:/" ;;
9830   esac
9831   case $host_os in
9832     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9833     *) lt_sed_strip_eq="s,=/,/,g" ;;
9834   esac
9835   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9836   case $lt_search_path_spec in
9837   *\;*)
9838     # if the path contains ";" then we assume it to be the separator
9839     # otherwise default to the standard path separator (i.e. ":") - it is
9840     # assumed that no part of a normal pathname contains ";" but that should
9841     # okay in the real world where ";" in dirpaths is itself problematic.
9842     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9843     ;;
9844   *)
9845     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9846     ;;
9847   esac
9848   # Ok, now we have the path, separated by spaces, we can step through it
9849   # and add multilib dir if necessary.
9850   lt_tmp_lt_search_path_spec=
9851   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9852   for lt_sys_path in $lt_search_path_spec; do
9853     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9854       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9855     else
9856       test -d "$lt_sys_path" && \
9857         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9858     fi
9859   done
9860   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9861 BEGIN {RS=" "; FS="/|\n";} {
9862   lt_foo="";
9863   lt_count=0;
9864   for (lt_i = NF; lt_i > 0; lt_i--) {
9865     if ($lt_i != "" && $lt_i != ".") {
9866       if ($lt_i == "..") {
9867         lt_count++;
9868       } else {
9869         if (lt_count == 0) {
9870           lt_foo="/" $lt_i lt_foo;
9871         } else {
9872           lt_count--;
9873         }
9874       }
9875     }
9876   }
9877   if (lt_foo != "") { lt_freq[lt_foo]++; }
9878   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9879 }'`
9880   # AWK program above erroneously prepends '/' to C:/dos/paths
9881   # for these hosts.
9882   case $host_os in
9883     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9884       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9885   esac
9886   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9887 else
9888   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9889 fi
9890 library_names_spec=
9891 libname_spec='lib$name'
9892 soname_spec=
9893 shrext_cmds=".so"
9894 postinstall_cmds=
9895 postuninstall_cmds=
9896 finish_cmds=
9897 finish_eval=
9898 shlibpath_var=
9899 shlibpath_overrides_runpath=unknown
9900 version_type=none
9901 dynamic_linker="$host_os ld.so"
9902 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9903 need_lib_prefix=unknown
9904 hardcode_into_libs=no
9905
9906 # when you set need_version to no, make sure it does not cause -set_version
9907 # flags to be left without arguments
9908 need_version=unknown
9909
9910 case $host_os in
9911 aix3*)
9912   version_type=linux
9913   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9914   shlibpath_var=LIBPATH
9915
9916   # AIX 3 has no versioning support, so we append a major version to the name.
9917   soname_spec='${libname}${release}${shared_ext}$major'
9918   ;;
9919
9920 aix[4-9]*)
9921   version_type=linux
9922   need_lib_prefix=no
9923   need_version=no
9924   hardcode_into_libs=yes
9925   if test "$host_cpu" = ia64; then
9926     # AIX 5 supports IA64
9927     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9928     shlibpath_var=LD_LIBRARY_PATH
9929   else
9930     # With GCC up to 2.95.x, collect2 would create an import file
9931     # for dependence libraries.  The import file would start with
9932     # the line `#! .'.  This would cause the generated library to
9933     # depend on `.', always an invalid library.  This was fixed in
9934     # development snapshots of GCC prior to 3.0.
9935     case $host_os in
9936       aix4 | aix4.[01] | aix4.[01].*)
9937       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9938            echo ' yes '
9939            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9940         :
9941       else
9942         can_build_shared=no
9943       fi
9944       ;;
9945     esac
9946     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9947     # soname into executable. Probably we can add versioning support to
9948     # collect2, so additional links can be useful in future.
9949     if test "$aix_use_runtimelinking" = yes; then
9950       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9951       # instead of lib<name>.a to let people know that these are not
9952       # typical AIX shared libraries.
9953       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9954     else
9955       # We preserve .a as extension for shared libraries through AIX4.2
9956       # and later when we are not doing run time linking.
9957       library_names_spec='${libname}${release}.a $libname.a'
9958       soname_spec='${libname}${release}${shared_ext}$major'
9959     fi
9960     shlibpath_var=LIBPATH
9961   fi
9962   ;;
9963
9964 amigaos*)
9965   case $host_cpu in
9966   powerpc)
9967     # Since July 2007 AmigaOS4 officially supports .so libraries.
9968     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9970     ;;
9971   m68k)
9972     library_names_spec='$libname.ixlibrary $libname.a'
9973     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9974     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'
9975     ;;
9976   esac
9977   ;;
9978
9979 beos*)
9980   library_names_spec='${libname}${shared_ext}'
9981   dynamic_linker="$host_os ld.so"
9982   shlibpath_var=LIBRARY_PATH
9983   ;;
9984
9985 bsdi[45]*)
9986   version_type=linux
9987   need_version=no
9988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989   soname_spec='${libname}${release}${shared_ext}$major'
9990   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9991   shlibpath_var=LD_LIBRARY_PATH
9992   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9993   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9994   # the default ld.so.conf also contains /usr/contrib/lib and
9995   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9996   # libtool to hard-code these into programs
9997   ;;
9998
9999 cygwin* | mingw* | pw32* | cegcc*)
10000   version_type=windows
10001   shrext_cmds=".dll"
10002   need_version=no
10003   need_lib_prefix=no
10004
10005   case $GCC,$cc_basename in
10006   yes,*)
10007     # gcc
10008     library_names_spec='$libname.dll.a'
10009     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10010     postinstall_cmds='base_file=`basename \${file}`~
10011       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10012       dldir=$destdir/`dirname \$dlpath`~
10013       test -d \$dldir || mkdir -p \$dldir~
10014       $install_prog $dir/$dlname \$dldir/$dlname~
10015       chmod a+x \$dldir/$dlname~
10016       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10017         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10018       fi'
10019     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10020       dlpath=$dir/\$dldll~
10021        $RM \$dlpath'
10022     shlibpath_overrides_runpath=yes
10023
10024     case $host_os in
10025     cygwin*)
10026       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10027       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10028
10029       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10030       ;;
10031     mingw* | cegcc*)
10032       # MinGW DLLs use traditional 'lib' prefix
10033       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10034       ;;
10035     pw32*)
10036       # pw32 DLLs use 'pw' prefix rather than 'lib'
10037       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10038       ;;
10039     esac
10040     dynamic_linker='Win32 ld.exe'
10041     ;;
10042
10043   *,cl*)
10044     # Native MSVC
10045     libname_spec='$name'
10046     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10047     library_names_spec='${libname}.dll.lib'
10048
10049     case $build_os in
10050     mingw*)
10051       sys_lib_search_path_spec=
10052       lt_save_ifs=$IFS
10053       IFS=';'
10054       for lt_path in $LIB
10055       do
10056         IFS=$lt_save_ifs
10057         # Let DOS variable expansion print the short 8.3 style file name.
10058         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10059         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10060       done
10061       IFS=$lt_save_ifs
10062       # Convert to MSYS style.
10063       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10064       ;;
10065     cygwin*)
10066       # Convert to unix form, then to dos form, then back to unix form
10067       # but this time dos style (no spaces!) so that the unix form looks
10068       # like /cygdrive/c/PROGRA~1:/cygdr...
10069       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10070       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10071       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10072       ;;
10073     *)
10074       sys_lib_search_path_spec="$LIB"
10075       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10076         # It is most probably a Windows format PATH.
10077         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10078       else
10079         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10080       fi
10081       # FIXME: find the short name or the path components, as spaces are
10082       # common. (e.g. "Program Files" -> "PROGRA~1")
10083       ;;
10084     esac
10085
10086     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10087     postinstall_cmds='base_file=`basename \${file}`~
10088       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10089       dldir=$destdir/`dirname \$dlpath`~
10090       test -d \$dldir || mkdir -p \$dldir~
10091       $install_prog $dir/$dlname \$dldir/$dlname'
10092     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10093       dlpath=$dir/\$dldll~
10094        $RM \$dlpath'
10095     shlibpath_overrides_runpath=yes
10096     dynamic_linker='Win32 link.exe'
10097     ;;
10098
10099   *)
10100     # Assume MSVC wrapper
10101     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10102     dynamic_linker='Win32 ld.exe'
10103     ;;
10104   esac
10105   # FIXME: first we should search . and the directory the executable is in
10106   shlibpath_var=PATH
10107   ;;
10108
10109 darwin* | rhapsody*)
10110   dynamic_linker="$host_os dyld"
10111   version_type=darwin
10112   need_lib_prefix=no
10113   need_version=no
10114   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10115   soname_spec='${libname}${release}${major}$shared_ext'
10116   shlibpath_overrides_runpath=yes
10117   shlibpath_var=DYLD_LIBRARY_PATH
10118   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10119
10120   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10121   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10122   ;;
10123
10124 dgux*)
10125   version_type=linux
10126   need_lib_prefix=no
10127   need_version=no
10128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10129   soname_spec='${libname}${release}${shared_ext}$major'
10130   shlibpath_var=LD_LIBRARY_PATH
10131   ;;
10132
10133 freebsd1*)
10134   dynamic_linker=no
10135   ;;
10136
10137 freebsd* | dragonfly*)
10138   # DragonFly does not have aout.  When/if they implement a new
10139   # versioning mechanism, adjust this.
10140   if test -x /usr/bin/objformat; then
10141     objformat=`/usr/bin/objformat`
10142   else
10143     case $host_os in
10144     freebsd[123]*) objformat=aout ;;
10145     *) objformat=elf ;;
10146     esac
10147   fi
10148   version_type=freebsd-$objformat
10149   case $version_type in
10150     freebsd-elf*)
10151       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10152       need_version=no
10153       need_lib_prefix=no
10154       ;;
10155     freebsd-*)
10156       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10157       need_version=yes
10158       ;;
10159   esac
10160   shlibpath_var=LD_LIBRARY_PATH
10161   case $host_os in
10162   freebsd2*)
10163     shlibpath_overrides_runpath=yes
10164     ;;
10165   freebsd3.[01]* | freebsdelf3.[01]*)
10166     shlibpath_overrides_runpath=yes
10167     hardcode_into_libs=yes
10168     ;;
10169   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10170   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10171     shlibpath_overrides_runpath=no
10172     hardcode_into_libs=yes
10173     ;;
10174   *) # from 4.6 on, and DragonFly
10175     shlibpath_overrides_runpath=yes
10176     hardcode_into_libs=yes
10177     ;;
10178   esac
10179   ;;
10180
10181 gnu*)
10182   version_type=linux
10183   need_lib_prefix=no
10184   need_version=no
10185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10186   soname_spec='${libname}${release}${shared_ext}$major'
10187   shlibpath_var=LD_LIBRARY_PATH
10188   shlibpath_overrides_runpath=no
10189   hardcode_into_libs=yes
10190   ;;
10191
10192 haiku*)
10193   version_type=linux
10194   need_lib_prefix=no
10195   need_version=no
10196   dynamic_linker="$host_os runtime_loader"
10197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10198   soname_spec='${libname}${release}${shared_ext}$major'
10199   shlibpath_var=LIBRARY_PATH
10200   shlibpath_overrides_runpath=yes
10201   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10202   hardcode_into_libs=yes
10203   ;;
10204
10205 hpux9* | hpux10* | hpux11*)
10206   # Give a soname corresponding to the major version so that dld.sl refuses to
10207   # link against other versions.
10208   version_type=sunos
10209   need_lib_prefix=no
10210   need_version=no
10211   case $host_cpu in
10212   ia64*)
10213     shrext_cmds='.so'
10214     hardcode_into_libs=yes
10215     dynamic_linker="$host_os dld.so"
10216     shlibpath_var=LD_LIBRARY_PATH
10217     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10218     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219     soname_spec='${libname}${release}${shared_ext}$major'
10220     if test "X$HPUX_IA64_MODE" = X32; then
10221       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10222     else
10223       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10224     fi
10225     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10226     ;;
10227   hppa*64*)
10228     shrext_cmds='.sl'
10229     hardcode_into_libs=yes
10230     dynamic_linker="$host_os dld.sl"
10231     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10232     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234     soname_spec='${libname}${release}${shared_ext}$major'
10235     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10236     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10237     ;;
10238   *)
10239     shrext_cmds='.sl'
10240     dynamic_linker="$host_os dld.sl"
10241     shlibpath_var=SHLIB_PATH
10242     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244     soname_spec='${libname}${release}${shared_ext}$major'
10245     ;;
10246   esac
10247   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10248   postinstall_cmds='chmod 555 $lib'
10249   # or fails outright, so override atomically:
10250   install_override_mode=555
10251   ;;
10252
10253 interix[3-9]*)
10254   version_type=linux
10255   need_lib_prefix=no
10256   need_version=no
10257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10258   soname_spec='${libname}${release}${shared_ext}$major'
10259   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10260   shlibpath_var=LD_LIBRARY_PATH
10261   shlibpath_overrides_runpath=no
10262   hardcode_into_libs=yes
10263   ;;
10264
10265 irix5* | irix6* | nonstopux*)
10266   case $host_os in
10267     nonstopux*) version_type=nonstopux ;;
10268     *)
10269         if test "$lt_cv_prog_gnu_ld" = yes; then
10270                 version_type=linux
10271         else
10272                 version_type=irix
10273         fi ;;
10274   esac
10275   need_lib_prefix=no
10276   need_version=no
10277   soname_spec='${libname}${release}${shared_ext}$major'
10278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10279   case $host_os in
10280   irix5* | nonstopux*)
10281     libsuff= shlibsuff=
10282     ;;
10283   *)
10284     case $LD in # libtool.m4 will add one of these switches to LD
10285     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10286       libsuff= shlibsuff= libmagic=32-bit;;
10287     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10288       libsuff=32 shlibsuff=N32 libmagic=N32;;
10289     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10290       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10291     *) libsuff= shlibsuff= libmagic=never-match;;
10292     esac
10293     ;;
10294   esac
10295   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10296   shlibpath_overrides_runpath=no
10297   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10298   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10299   hardcode_into_libs=yes
10300   ;;
10301
10302 # No shared lib support for Linux oldld, aout, or coff.
10303 linux*oldld* | linux*aout* | linux*coff*)
10304   dynamic_linker=no
10305   ;;
10306
10307 # This must be Linux ELF.
10308 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10309   version_type=linux
10310   need_lib_prefix=no
10311   need_version=no
10312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313   soname_spec='${libname}${release}${shared_ext}$major'
10314   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10315   shlibpath_var=LD_LIBRARY_PATH
10316   shlibpath_overrides_runpath=no
10317
10318   # Some binutils ld are patched to set DT_RUNPATH
10319   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10320   $as_echo_n "(cached) " >&6
10321 else
10322   lt_cv_shlibpath_overrides_runpath=no
10323     save_LDFLAGS=$LDFLAGS
10324     save_libdir=$libdir
10325     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10326          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10327     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h.  */
10329
10330 int
10331 main ()
10332 {
10333
10334   ;
10335   return 0;
10336 }
10337 _ACEOF
10338 if ac_fn_c_try_link "$LINENO"; then :
10339   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10340   lt_cv_shlibpath_overrides_runpath=yes
10341 fi
10342 fi
10343 rm -f core conftest.err conftest.$ac_objext \
10344     conftest$ac_exeext conftest.$ac_ext
10345     LDFLAGS=$save_LDFLAGS
10346     libdir=$save_libdir
10347
10348 fi
10349
10350   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10351
10352   # This implies no fast_install, which is unacceptable.
10353   # Some rework will be needed to allow for fast_install
10354   # before this can be enabled.
10355   hardcode_into_libs=yes
10356
10357   # Append ld.so.conf contents to the search path
10358   if test -f /etc/ld.so.conf; then
10359     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' ' '`
10360     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10361   fi
10362
10363   # We used to test for /lib/ld.so.1 and disable shared libraries on
10364   # powerpc, because MkLinux only supported shared libraries with the
10365   # GNU dynamic linker.  Since this was broken with cross compilers,
10366   # most powerpc-linux boxes support dynamic linking these days and
10367   # people can always --disable-shared, the test was removed, and we
10368   # assume the GNU/Linux dynamic linker is in use.
10369   dynamic_linker='GNU/Linux ld.so'
10370   ;;
10371
10372 netbsdelf*-gnu)
10373   version_type=linux
10374   need_lib_prefix=no
10375   need_version=no
10376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10377   soname_spec='${libname}${release}${shared_ext}$major'
10378   shlibpath_var=LD_LIBRARY_PATH
10379   shlibpath_overrides_runpath=no
10380   hardcode_into_libs=yes
10381   dynamic_linker='NetBSD ld.elf_so'
10382   ;;
10383
10384 netbsd*)
10385   version_type=sunos
10386   need_lib_prefix=no
10387   need_version=no
10388   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10389     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10390     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10391     dynamic_linker='NetBSD (a.out) ld.so'
10392   else
10393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10394     soname_spec='${libname}${release}${shared_ext}$major'
10395     dynamic_linker='NetBSD ld.elf_so'
10396   fi
10397   shlibpath_var=LD_LIBRARY_PATH
10398   shlibpath_overrides_runpath=yes
10399   hardcode_into_libs=yes
10400   ;;
10401
10402 newsos6)
10403   version_type=linux
10404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405   shlibpath_var=LD_LIBRARY_PATH
10406   shlibpath_overrides_runpath=yes
10407   ;;
10408
10409 *nto* | *qnx*)
10410   version_type=qnx
10411   need_lib_prefix=no
10412   need_version=no
10413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10414   soname_spec='${libname}${release}${shared_ext}$major'
10415   shlibpath_var=LD_LIBRARY_PATH
10416   shlibpath_overrides_runpath=no
10417   hardcode_into_libs=yes
10418   dynamic_linker='ldqnx.so'
10419   ;;
10420
10421 openbsd*)
10422   version_type=sunos
10423   sys_lib_dlsearch_path_spec="/usr/lib"
10424   need_lib_prefix=no
10425   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10426   case $host_os in
10427     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10428     *)                          need_version=no  ;;
10429   esac
10430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10431   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10432   shlibpath_var=LD_LIBRARY_PATH
10433   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10434     case $host_os in
10435       openbsd2.[89] | openbsd2.[89].*)
10436         shlibpath_overrides_runpath=no
10437         ;;
10438       *)
10439         shlibpath_overrides_runpath=yes
10440         ;;
10441       esac
10442   else
10443     shlibpath_overrides_runpath=yes
10444   fi
10445   ;;
10446
10447 os2*)
10448   libname_spec='$name'
10449   shrext_cmds=".dll"
10450   need_lib_prefix=no
10451   library_names_spec='$libname${shared_ext} $libname.a'
10452   dynamic_linker='OS/2 ld.exe'
10453   shlibpath_var=LIBPATH
10454   ;;
10455
10456 osf3* | osf4* | osf5*)
10457   version_type=osf
10458   need_lib_prefix=no
10459   need_version=no
10460   soname_spec='${libname}${release}${shared_ext}$major'
10461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10462   shlibpath_var=LD_LIBRARY_PATH
10463   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10464   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10465   ;;
10466
10467 rdos*)
10468   dynamic_linker=no
10469   ;;
10470
10471 solaris*)
10472   version_type=linux
10473   need_lib_prefix=no
10474   need_version=no
10475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476   soname_spec='${libname}${release}${shared_ext}$major'
10477   shlibpath_var=LD_LIBRARY_PATH
10478   shlibpath_overrides_runpath=yes
10479   hardcode_into_libs=yes
10480   # ldd complains unless libraries are executable
10481   postinstall_cmds='chmod +x $lib'
10482   ;;
10483
10484 sunos4*)
10485   version_type=sunos
10486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10487   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10488   shlibpath_var=LD_LIBRARY_PATH
10489   shlibpath_overrides_runpath=yes
10490   if test "$with_gnu_ld" = yes; then
10491     need_lib_prefix=no
10492   fi
10493   need_version=yes
10494   ;;
10495
10496 sysv4 | sysv4.3*)
10497   version_type=linux
10498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499   soname_spec='${libname}${release}${shared_ext}$major'
10500   shlibpath_var=LD_LIBRARY_PATH
10501   case $host_vendor in
10502     sni)
10503       shlibpath_overrides_runpath=no
10504       need_lib_prefix=no
10505       runpath_var=LD_RUN_PATH
10506       ;;
10507     siemens)
10508       need_lib_prefix=no
10509       ;;
10510     motorola)
10511       need_lib_prefix=no
10512       need_version=no
10513       shlibpath_overrides_runpath=no
10514       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10515       ;;
10516   esac
10517   ;;
10518
10519 sysv4*MP*)
10520   if test -d /usr/nec ;then
10521     version_type=linux
10522     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10523     soname_spec='$libname${shared_ext}.$major'
10524     shlibpath_var=LD_LIBRARY_PATH
10525   fi
10526   ;;
10527
10528 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10529   version_type=freebsd-elf
10530   need_lib_prefix=no
10531   need_version=no
10532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10533   soname_spec='${libname}${release}${shared_ext}$major'
10534   shlibpath_var=LD_LIBRARY_PATH
10535   shlibpath_overrides_runpath=yes
10536   hardcode_into_libs=yes
10537   if test "$with_gnu_ld" = yes; then
10538     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10539   else
10540     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10541     case $host_os in
10542       sco3.2v5*)
10543         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10544         ;;
10545     esac
10546   fi
10547   sys_lib_dlsearch_path_spec='/usr/lib'
10548   ;;
10549
10550 tpf*)
10551   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10552   version_type=linux
10553   need_lib_prefix=no
10554   need_version=no
10555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556   shlibpath_var=LD_LIBRARY_PATH
10557   shlibpath_overrides_runpath=no
10558   hardcode_into_libs=yes
10559   ;;
10560
10561 uts4*)
10562   version_type=linux
10563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564   soname_spec='${libname}${release}${shared_ext}$major'
10565   shlibpath_var=LD_LIBRARY_PATH
10566   ;;
10567
10568 *)
10569   dynamic_linker=no
10570   ;;
10571 esac
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10573 $as_echo "$dynamic_linker" >&6; }
10574 test "$dynamic_linker" = no && can_build_shared=no
10575
10576 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10577 if test "$GCC" = yes; then
10578   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10579 fi
10580
10581 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10582   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10583 fi
10584 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10585   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10586 fi
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
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10680 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10681 hardcode_action=
10682 if test -n "$hardcode_libdir_flag_spec" ||
10683    test -n "$runpath_var" ||
10684    test "X$hardcode_automatic" = "Xyes" ; then
10685
10686   # We can hardcode non-existent directories.
10687   if test "$hardcode_direct" != no &&
10688      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10689      # have to relink, otherwise we might link with an installed library
10690      # when we should be linking with a yet-to-be-installed one
10691      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10692      test "$hardcode_minus_L" != no; then
10693     # Linking always hardcodes the temporary library directory.
10694     hardcode_action=relink
10695   else
10696     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10697     hardcode_action=immediate
10698   fi
10699 else
10700   # We cannot hardcode anything, or else we can only hardcode existing
10701   # directories.
10702   hardcode_action=unsupported
10703 fi
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10705 $as_echo "$hardcode_action" >&6; }
10706
10707 if test "$hardcode_action" = relink ||
10708    test "$inherit_rpath" = yes; then
10709   # Fast installation is not supported
10710   enable_fast_install=no
10711 elif test "$shlibpath_overrides_runpath" = yes ||
10712      test "$enable_shared" = no; then
10713   # Fast installation is not necessary
10714   enable_fast_install=needless
10715 fi
10716
10717
10718
10719
10720
10721
10722   if test "x$enable_dlopen" != xyes; then
10723   enable_dlopen=unknown
10724   enable_dlopen_self=unknown
10725   enable_dlopen_self_static=unknown
10726 else
10727   lt_cv_dlopen=no
10728   lt_cv_dlopen_libs=
10729
10730   case $host_os in
10731   beos*)
10732     lt_cv_dlopen="load_add_on"
10733     lt_cv_dlopen_libs=
10734     lt_cv_dlopen_self=yes
10735     ;;
10736
10737   mingw* | pw32* | cegcc*)
10738     lt_cv_dlopen="LoadLibrary"
10739     lt_cv_dlopen_libs=
10740     ;;
10741
10742   cygwin*)
10743     lt_cv_dlopen="dlopen"
10744     lt_cv_dlopen_libs=
10745     ;;
10746
10747   darwin*)
10748   # if libdl is installed we need to link against it
10749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10750 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10751 if ${ac_cv_lib_dl_dlopen+:} false; then :
10752   $as_echo_n "(cached) " >&6
10753 else
10754   ac_check_lib_save_LIBS=$LIBS
10755 LIBS="-ldl  $LIBS"
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h.  */
10758
10759 /* Override any GCC internal prototype to avoid an error.
10760    Use char because int might match the return type of a GCC
10761    builtin and then its argument prototype would still apply.  */
10762 #ifdef __cplusplus
10763 extern "C"
10764 #endif
10765 char dlopen ();
10766 int
10767 main ()
10768 {
10769 return dlopen ();
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 if ac_fn_c_try_link "$LINENO"; then :
10775   ac_cv_lib_dl_dlopen=yes
10776 else
10777   ac_cv_lib_dl_dlopen=no
10778 fi
10779 rm -f core conftest.err conftest.$ac_objext \
10780     conftest$ac_exeext conftest.$ac_ext
10781 LIBS=$ac_check_lib_save_LIBS
10782 fi
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10784 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10785 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10786   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10787 else
10788
10789     lt_cv_dlopen="dyld"
10790     lt_cv_dlopen_libs=
10791     lt_cv_dlopen_self=yes
10792
10793 fi
10794
10795     ;;
10796
10797   *)
10798     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10799 if test "x$ac_cv_func_shl_load" = xyes; then :
10800   lt_cv_dlopen="shl_load"
10801 else
10802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10803 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10804 if ${ac_cv_lib_dld_shl_load+:} false; then :
10805   $as_echo_n "(cached) " >&6
10806 else
10807   ac_check_lib_save_LIBS=$LIBS
10808 LIBS="-ldld  $LIBS"
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h.  */
10811
10812 /* Override any GCC internal prototype to avoid an error.
10813    Use char because int might match the return type of a GCC
10814    builtin and then its argument prototype would still apply.  */
10815 #ifdef __cplusplus
10816 extern "C"
10817 #endif
10818 char shl_load ();
10819 int
10820 main ()
10821 {
10822 return shl_load ();
10823   ;
10824   return 0;
10825 }
10826 _ACEOF
10827 if ac_fn_c_try_link "$LINENO"; then :
10828   ac_cv_lib_dld_shl_load=yes
10829 else
10830   ac_cv_lib_dld_shl_load=no
10831 fi
10832 rm -f core conftest.err conftest.$ac_objext \
10833     conftest$ac_exeext conftest.$ac_ext
10834 LIBS=$ac_check_lib_save_LIBS
10835 fi
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10837 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10838 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10839   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10840 else
10841   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10842 if test "x$ac_cv_func_dlopen" = xyes; then :
10843   lt_cv_dlopen="dlopen"
10844 else
10845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10846 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10847 if ${ac_cv_lib_dl_dlopen+:} false; then :
10848   $as_echo_n "(cached) " >&6
10849 else
10850   ac_check_lib_save_LIBS=$LIBS
10851 LIBS="-ldl  $LIBS"
10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h.  */
10854
10855 /* Override any GCC internal prototype to avoid an error.
10856    Use char because int might match the return type of a GCC
10857    builtin and then its argument prototype would still apply.  */
10858 #ifdef __cplusplus
10859 extern "C"
10860 #endif
10861 char dlopen ();
10862 int
10863 main ()
10864 {
10865 return dlopen ();
10866   ;
10867   return 0;
10868 }
10869 _ACEOF
10870 if ac_fn_c_try_link "$LINENO"; then :
10871   ac_cv_lib_dl_dlopen=yes
10872 else
10873   ac_cv_lib_dl_dlopen=no
10874 fi
10875 rm -f core conftest.err conftest.$ac_objext \
10876     conftest$ac_exeext conftest.$ac_ext
10877 LIBS=$ac_check_lib_save_LIBS
10878 fi
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10880 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10881 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10882   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10883 else
10884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10885 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10886 if ${ac_cv_lib_svld_dlopen+:} false; then :
10887   $as_echo_n "(cached) " >&6
10888 else
10889   ac_check_lib_save_LIBS=$LIBS
10890 LIBS="-lsvld  $LIBS"
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h.  */
10893
10894 /* Override any GCC internal prototype to avoid an error.
10895    Use char because int might match the return type of a GCC
10896    builtin and then its argument prototype would still apply.  */
10897 #ifdef __cplusplus
10898 extern "C"
10899 #endif
10900 char dlopen ();
10901 int
10902 main ()
10903 {
10904 return dlopen ();
10905   ;
10906   return 0;
10907 }
10908 _ACEOF
10909 if ac_fn_c_try_link "$LINENO"; then :
10910   ac_cv_lib_svld_dlopen=yes
10911 else
10912   ac_cv_lib_svld_dlopen=no
10913 fi
10914 rm -f core conftest.err conftest.$ac_objext \
10915     conftest$ac_exeext conftest.$ac_ext
10916 LIBS=$ac_check_lib_save_LIBS
10917 fi
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10919 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10920 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10921   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10922 else
10923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10924 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10925 if ${ac_cv_lib_dld_dld_link+:} false; then :
10926   $as_echo_n "(cached) " >&6
10927 else
10928   ac_check_lib_save_LIBS=$LIBS
10929 LIBS="-ldld  $LIBS"
10930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10931 /* end confdefs.h.  */
10932
10933 /* Override any GCC internal prototype to avoid an error.
10934    Use char because int might match the return type of a GCC
10935    builtin and then its argument prototype would still apply.  */
10936 #ifdef __cplusplus
10937 extern "C"
10938 #endif
10939 char dld_link ();
10940 int
10941 main ()
10942 {
10943 return dld_link ();
10944   ;
10945   return 0;
10946 }
10947 _ACEOF
10948 if ac_fn_c_try_link "$LINENO"; then :
10949   ac_cv_lib_dld_dld_link=yes
10950 else
10951   ac_cv_lib_dld_dld_link=no
10952 fi
10953 rm -f core conftest.err conftest.$ac_objext \
10954     conftest$ac_exeext conftest.$ac_ext
10955 LIBS=$ac_check_lib_save_LIBS
10956 fi
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10958 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10959 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10960   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10961 fi
10962
10963
10964 fi
10965
10966
10967 fi
10968
10969
10970 fi
10971
10972
10973 fi
10974
10975
10976 fi
10977
10978     ;;
10979   esac
10980
10981   if test "x$lt_cv_dlopen" != xno; then
10982     enable_dlopen=yes
10983   else
10984     enable_dlopen=no
10985   fi
10986
10987   case $lt_cv_dlopen in
10988   dlopen)
10989     save_CPPFLAGS="$CPPFLAGS"
10990     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10991
10992     save_LDFLAGS="$LDFLAGS"
10993     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10994
10995     save_LIBS="$LIBS"
10996     LIBS="$lt_cv_dlopen_libs $LIBS"
10997
10998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10999 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11000 if ${lt_cv_dlopen_self+:} false; then :
11001   $as_echo_n "(cached) " >&6
11002 else
11003           if test "$cross_compiling" = yes; then :
11004   lt_cv_dlopen_self=cross
11005 else
11006   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11007   lt_status=$lt_dlunknown
11008   cat > conftest.$ac_ext <<_LT_EOF
11009 #line $LINENO "configure"
11010 #include "confdefs.h"
11011
11012 #if HAVE_DLFCN_H
11013 #include <dlfcn.h>
11014 #endif
11015
11016 #include <stdio.h>
11017
11018 #ifdef RTLD_GLOBAL
11019 #  define LT_DLGLOBAL           RTLD_GLOBAL
11020 #else
11021 #  ifdef DL_GLOBAL
11022 #    define LT_DLGLOBAL         DL_GLOBAL
11023 #  else
11024 #    define LT_DLGLOBAL         0
11025 #  endif
11026 #endif
11027
11028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11029    find out it does not work in some platform. */
11030 #ifndef LT_DLLAZY_OR_NOW
11031 #  ifdef RTLD_LAZY
11032 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11033 #  else
11034 #    ifdef DL_LAZY
11035 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11036 #    else
11037 #      ifdef RTLD_NOW
11038 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11039 #      else
11040 #        ifdef DL_NOW
11041 #          define LT_DLLAZY_OR_NOW      DL_NOW
11042 #        else
11043 #          define LT_DLLAZY_OR_NOW      0
11044 #        endif
11045 #      endif
11046 #    endif
11047 #  endif
11048 #endif
11049
11050 /* When -fvisbility=hidden is used, assume the code has been annotated
11051    correspondingly for the symbols needed.  */
11052 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11053 int fnord () __attribute__((visibility("default")));
11054 #endif
11055
11056 int fnord () { return 42; }
11057 int main ()
11058 {
11059   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11060   int status = $lt_dlunknown;
11061
11062   if (self)
11063     {
11064       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11065       else
11066         {
11067           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11068           else puts (dlerror ());
11069         }
11070       /* dlclose (self); */
11071     }
11072   else
11073     puts (dlerror ());
11074
11075   return status;
11076 }
11077 _LT_EOF
11078   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11079   (eval $ac_link) 2>&5
11080   ac_status=$?
11081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11082   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11083     (./conftest; exit; ) >&5 2>/dev/null
11084     lt_status=$?
11085     case x$lt_status in
11086       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11087       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11088       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11089     esac
11090   else :
11091     # compilation failed
11092     lt_cv_dlopen_self=no
11093   fi
11094 fi
11095 rm -fr conftest*
11096
11097
11098 fi
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11100 $as_echo "$lt_cv_dlopen_self" >&6; }
11101
11102     if test "x$lt_cv_dlopen_self" = xyes; then
11103       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11104       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11105 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11106 if ${lt_cv_dlopen_self_static+:} false; then :
11107   $as_echo_n "(cached) " >&6
11108 else
11109           if test "$cross_compiling" = yes; then :
11110   lt_cv_dlopen_self_static=cross
11111 else
11112   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11113   lt_status=$lt_dlunknown
11114   cat > conftest.$ac_ext <<_LT_EOF
11115 #line $LINENO "configure"
11116 #include "confdefs.h"
11117
11118 #if HAVE_DLFCN_H
11119 #include <dlfcn.h>
11120 #endif
11121
11122 #include <stdio.h>
11123
11124 #ifdef RTLD_GLOBAL
11125 #  define LT_DLGLOBAL           RTLD_GLOBAL
11126 #else
11127 #  ifdef DL_GLOBAL
11128 #    define LT_DLGLOBAL         DL_GLOBAL
11129 #  else
11130 #    define LT_DLGLOBAL         0
11131 #  endif
11132 #endif
11133
11134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11135    find out it does not work in some platform. */
11136 #ifndef LT_DLLAZY_OR_NOW
11137 #  ifdef RTLD_LAZY
11138 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11139 #  else
11140 #    ifdef DL_LAZY
11141 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11142 #    else
11143 #      ifdef RTLD_NOW
11144 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11145 #      else
11146 #        ifdef DL_NOW
11147 #          define LT_DLLAZY_OR_NOW      DL_NOW
11148 #        else
11149 #          define LT_DLLAZY_OR_NOW      0
11150 #        endif
11151 #      endif
11152 #    endif
11153 #  endif
11154 #endif
11155
11156 /* When -fvisbility=hidden is used, assume the code has been annotated
11157    correspondingly for the symbols needed.  */
11158 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11159 int fnord () __attribute__((visibility("default")));
11160 #endif
11161
11162 int fnord () { return 42; }
11163 int main ()
11164 {
11165   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11166   int status = $lt_dlunknown;
11167
11168   if (self)
11169     {
11170       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11171       else
11172         {
11173           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11174           else puts (dlerror ());
11175         }
11176       /* dlclose (self); */
11177     }
11178   else
11179     puts (dlerror ());
11180
11181   return status;
11182 }
11183 _LT_EOF
11184   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11185   (eval $ac_link) 2>&5
11186   ac_status=$?
11187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11188   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11189     (./conftest; exit; ) >&5 2>/dev/null
11190     lt_status=$?
11191     case x$lt_status in
11192       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11193       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11194       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11195     esac
11196   else :
11197     # compilation failed
11198     lt_cv_dlopen_self_static=no
11199   fi
11200 fi
11201 rm -fr conftest*
11202
11203
11204 fi
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11206 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11207     fi
11208
11209     CPPFLAGS="$save_CPPFLAGS"
11210     LDFLAGS="$save_LDFLAGS"
11211     LIBS="$save_LIBS"
11212     ;;
11213   esac
11214
11215   case $lt_cv_dlopen_self in
11216   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11217   *) enable_dlopen_self=unknown ;;
11218   esac
11219
11220   case $lt_cv_dlopen_self_static in
11221   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11222   *) enable_dlopen_self_static=unknown ;;
11223   esac
11224 fi
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242 striplib=
11243 old_striplib=
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11245 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11246 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11247   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11248   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11250 $as_echo "yes" >&6; }
11251 else
11252 # FIXME - insert some real tests, host_os isn't really good enough
11253   case $host_os in
11254   darwin*)
11255     if test -n "$STRIP" ; then
11256       striplib="$STRIP -x"
11257       old_striplib="$STRIP -S"
11258       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11259 $as_echo "yes" >&6; }
11260     else
11261       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262 $as_echo "no" >&6; }
11263     fi
11264     ;;
11265   *)
11266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11267 $as_echo "no" >&6; }
11268     ;;
11269   esac
11270 fi
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283   # Report which library types will actually be built
11284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11285 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11287 $as_echo "$can_build_shared" >&6; }
11288
11289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11290 $as_echo_n "checking whether to build shared libraries... " >&6; }
11291   test "$can_build_shared" = "no" && enable_shared=no
11292
11293   # On AIX, shared libraries and static libraries use the same namespace, and
11294   # are all built from PIC.
11295   case $host_os in
11296   aix3*)
11297     test "$enable_shared" = yes && enable_static=no
11298     if test -n "$RANLIB"; then
11299       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11300       postinstall_cmds='$RANLIB $lib'
11301     fi
11302     ;;
11303
11304   aix[4-9]*)
11305     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11306       test "$enable_shared" = yes && enable_static=no
11307     fi
11308     ;;
11309   esac
11310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11311 $as_echo "$enable_shared" >&6; }
11312
11313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11314 $as_echo_n "checking whether to build static libraries... " >&6; }
11315   # Make sure either enable_shared or enable_static is yes.
11316   test "$enable_shared" = yes || enable_static=yes
11317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11318 $as_echo "$enable_static" >&6; }
11319
11320
11321
11322
11323 fi
11324 ac_ext=c
11325 ac_cpp='$CPP $CPPFLAGS'
11326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11329
11330 CC="$lt_save_CC"
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344         ac_config_commands="$ac_config_commands libtool"
11345
11346
11347
11348
11349 # Only expand once:
11350
11351
11352
11353 # Checks for libraries
11354
11355 # Check whether --enable-gtktest was given.
11356 if test "${enable_gtktest+set}" = set; then :
11357   enableval=$enable_gtktest;
11358 else
11359   enable_gtktest=yes
11360 fi
11361
11362
11363   pkg_config_args=gtk+-3.0
11364   for module in .
11365   do
11366       case "$module" in
11367          gthread)
11368              pkg_config_args="$pkg_config_args gthread-2.0"
11369          ;;
11370       esac
11371   done
11372
11373   no_gtk=""
11374
11375   # Extract the first word of "pkg-config", so it can be a program name with args.
11376 set dummy pkg-config; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11380   $as_echo_n "(cached) " >&6
11381 else
11382   case $PKG_CONFIG in
11383   [\\/]* | ?:[\\/]*)
11384   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11385   ;;
11386   *)
11387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $PATH
11389 do
11390   IFS=$as_save_IFS
11391   test -z "$as_dir" && as_dir=.
11392     for ac_exec_ext in '' $ac_executable_extensions; do
11393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11394     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396     break 2
11397   fi
11398 done
11399   done
11400 IFS=$as_save_IFS
11401
11402   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11403   ;;
11404 esac
11405 fi
11406 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11407 if test -n "$PKG_CONFIG"; then
11408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11409 $as_echo "$PKG_CONFIG" >&6; }
11410 else
11411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11413 fi
11414
11415
11416
11417   if test x$PKG_CONFIG != xno ; then
11418     if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
11419       :
11420     else
11421       echo "*** pkg-config too old; version 0.7 or better required."
11422       no_gtk=yes
11423       PKG_CONFIG=no
11424     fi
11425   else
11426     no_gtk=yes
11427   fi
11428
11429   min_gtk_version=3.0.0
11430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
11431 $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
11432
11433   if test x$PKG_CONFIG != xno ; then
11434     ## don't try to run the test against uninstalled libtool libs
11435     if $PKG_CONFIG --uninstalled $pkg_config_args; then
11436           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11437           enable_gtktest=no
11438     fi
11439
11440     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11441           :
11442     else
11443           no_gtk=yes
11444     fi
11445   fi
11446
11447   if test x"$no_gtk" = x ; then
11448     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11449     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11450     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
11451            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11452     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
11453            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11454     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
11455            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11456     if test "x$enable_gtktest" = "xyes" ; then
11457       ac_save_CFLAGS="$CFLAGS"
11458       ac_save_LIBS="$LIBS"
11459       CFLAGS="$CFLAGS $GTK_CFLAGS"
11460       LIBS="$GTK_LIBS $LIBS"
11461       rm -f conf.gtktest
11462       if test "$cross_compiling" = yes; then :
11463   echo $ac_n "cross compiling; assumed OK... $ac_c"
11464 else
11465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h.  */
11467
11468 #include <gtk/gtk.h>
11469 #include <stdio.h>
11470 #include <stdlib.h>
11471
11472 int
11473 main ()
11474 {
11475   int major, minor, micro;
11476   char *tmp_version;
11477
11478   fclose (fopen ("conf.gtktest", "w"));
11479
11480   /* HP/UX 9 (%@#!) writes to sscanf strings */
11481   tmp_version = g_strdup("$min_gtk_version");
11482   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11483      printf("%s, bad version string\n", "$min_gtk_version");
11484      exit(1);
11485    }
11486
11487   if ((gtk_major_version != $gtk_config_major_version) ||
11488       (gtk_minor_version != $gtk_config_minor_version) ||
11489       (gtk_micro_version != $gtk_config_micro_version))
11490     {
11491       printf("\n*** 'pkg-config --modversion gtk+-3.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11492              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11493              gtk_major_version, gtk_minor_version, gtk_micro_version);
11494       printf ("*** was found! If pkg-config was correct, then it is best\n");
11495       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11496       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11497       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11498       printf("*** required on your system.\n");
11499       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11500       printf("*** to point to the correct configuration files\n");
11501     }
11502   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11503            (gtk_minor_version != GTK_MINOR_VERSION) ||
11504            (gtk_micro_version != GTK_MICRO_VERSION))
11505     {
11506       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11507              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11508       printf("*** library (version %d.%d.%d)\n",
11509              gtk_major_version, gtk_minor_version, gtk_micro_version);
11510     }
11511   else
11512     {
11513       if ((gtk_major_version > major) ||
11514         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11515         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11516       {
11517         return 0;
11518        }
11519      else
11520       {
11521         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11522                gtk_major_version, gtk_minor_version, gtk_micro_version);
11523         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11524                major, minor, micro);
11525         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11526         printf("***\n");
11527         printf("*** If you have already installed a sufficiently new version, this error\n");
11528         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11529         printf("*** being found. The easiest way to fix this is to remove the old version\n");
11530         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11531         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11532         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11533         printf("*** so that the correct libraries are found at run-time))\n");
11534       }
11535     }
11536   return 1;
11537 }
11538
11539 _ACEOF
11540 if ac_fn_c_try_run "$LINENO"; then :
11541
11542 else
11543   no_gtk=yes
11544 fi
11545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11546   conftest.$ac_objext conftest.beam conftest.$ac_ext
11547 fi
11548
11549        CFLAGS="$ac_save_CFLAGS"
11550        LIBS="$ac_save_LIBS"
11551      fi
11552   fi
11553   if test "x$no_gtk" = x ; then
11554      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
11555 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
11556      :
11557   else
11558      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559 $as_echo "no" >&6; }
11560      if test "$PKG_CONFIG" = "no" ; then
11561        echo "*** A new enough version of pkg-config was not found."
11562        echo "*** See http://pkgconfig.sourceforge.net"
11563      else
11564        if test -f conf.gtktest ; then
11565         :
11566        else
11567           echo "*** Could not run GTK+ test program, checking why..."
11568           ac_save_CFLAGS="$CFLAGS"
11569           ac_save_LIBS="$LIBS"
11570           CFLAGS="$CFLAGS $GTK_CFLAGS"
11571           LIBS="$LIBS $GTK_LIBS"
11572           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h.  */
11574
11575 #include <gtk/gtk.h>
11576 #include <stdio.h>
11577
11578 int
11579 main ()
11580 {
11581  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11582   ;
11583   return 0;
11584 }
11585 _ACEOF
11586 if ac_fn_c_try_link "$LINENO"; then :
11587    echo "*** The test program compiled, but did not run. This usually means"
11588           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
11589           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
11590           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11591           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
11592           echo "*** is required on your system"
11593           echo "***"
11594           echo "*** If you have an old version installed, it is best to remove it, although"
11595           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11596 else
11597    echo "*** The test program failed to compile or link. See the file config.log for the"
11598           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
11599 fi
11600 rm -f core conftest.err conftest.$ac_objext \
11601     conftest$ac_exeext conftest.$ac_ext
11602           CFLAGS="$ac_save_CFLAGS"
11603           LIBS="$ac_save_LIBS"
11604        fi
11605      fi
11606      GTK_CFLAGS=""
11607      GTK_LIBS=""
11608      :
11609   fi
11610
11611
11612   rm -f conf.gtktest
11613
11614
11615
11616
11617
11618
11619
11620
11621 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11622         if test -n "$ac_tool_prefix"; then
11623   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11624 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11626 $as_echo_n "checking for $ac_word... " >&6; }
11627 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11628   $as_echo_n "(cached) " >&6
11629 else
11630   case $PKG_CONFIG in
11631   [\\/]* | ?:[\\/]*)
11632   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11633   ;;
11634   *)
11635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $PATH
11637 do
11638   IFS=$as_save_IFS
11639   test -z "$as_dir" && as_dir=.
11640     for ac_exec_ext in '' $ac_executable_extensions; do
11641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11642     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11644     break 2
11645   fi
11646 done
11647   done
11648 IFS=$as_save_IFS
11649
11650   ;;
11651 esac
11652 fi
11653 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11654 if test -n "$PKG_CONFIG"; then
11655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11656 $as_echo "$PKG_CONFIG" >&6; }
11657 else
11658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11660 fi
11661
11662
11663 fi
11664 if test -z "$ac_cv_path_PKG_CONFIG"; then
11665   ac_pt_PKG_CONFIG=$PKG_CONFIG
11666   # Extract the first word of "pkg-config", so it can be a program name with args.
11667 set dummy pkg-config; ac_word=$2
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11669 $as_echo_n "checking for $ac_word... " >&6; }
11670 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11671   $as_echo_n "(cached) " >&6
11672 else
11673   case $ac_pt_PKG_CONFIG in
11674   [\\/]* | ?:[\\/]*)
11675   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11676   ;;
11677   *)
11678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679 for as_dir in $PATH
11680 do
11681   IFS=$as_save_IFS
11682   test -z "$as_dir" && as_dir=.
11683     for ac_exec_ext in '' $ac_executable_extensions; do
11684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11685     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11687     break 2
11688   fi
11689 done
11690   done
11691 IFS=$as_save_IFS
11692
11693   ;;
11694 esac
11695 fi
11696 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11697 if test -n "$ac_pt_PKG_CONFIG"; then
11698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11699 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11700 else
11701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702 $as_echo "no" >&6; }
11703 fi
11704
11705   if test "x$ac_pt_PKG_CONFIG" = x; then
11706     PKG_CONFIG=""
11707   else
11708     case $cross_compiling:$ac_tool_warned in
11709 yes:)
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11712 ac_tool_warned=yes ;;
11713 esac
11714     PKG_CONFIG=$ac_pt_PKG_CONFIG
11715   fi
11716 else
11717   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11718 fi
11719
11720 fi
11721 if test -n "$PKG_CONFIG"; then
11722         _pkg_min_version=0.9.0
11723         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11724 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11725         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11726                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11727 $as_echo "yes" >&6; }
11728         else
11729                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730 $as_echo "no" >&6; }
11731                 PKG_CONFIG=""
11732         fi
11733 fi
11734
11735 pkg_failed=no
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
11737 $as_echo_n "checking for GTK... " >&6; }
11738
11739 if test -n "$GTK_CFLAGS"; then
11740     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
11741  elif test -n "$PKG_CONFIG"; then
11742     if test -n "$PKG_CONFIG" && \
11743     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\""; } >&5
11744   ($PKG_CONFIG --exists --print-errors "") 2>&5
11745   ac_status=$?
11746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11747   test $ac_status = 0; }; then
11748   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "" 2>/dev/null`
11749                       test "x$?" != "x0" && pkg_failed=yes
11750 else
11751   pkg_failed=yes
11752 fi
11753  else
11754     pkg_failed=untried
11755 fi
11756 if test -n "$GTK_LIBS"; then
11757     pkg_cv_GTK_LIBS="$GTK_LIBS"
11758  elif test -n "$PKG_CONFIG"; then
11759     if test -n "$PKG_CONFIG" && \
11760     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\""; } >&5
11761   ($PKG_CONFIG --exists --print-errors "") 2>&5
11762   ac_status=$?
11763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11764   test $ac_status = 0; }; then
11765   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "" 2>/dev/null`
11766                       test "x$?" != "x0" && pkg_failed=yes
11767 else
11768   pkg_failed=yes
11769 fi
11770  else
11771     pkg_failed=untried
11772 fi
11773
11774
11775
11776 if test $pkg_failed = yes; then
11777         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778 $as_echo "no" >&6; }
11779
11780 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11781         _pkg_short_errors_supported=yes
11782 else
11783         _pkg_short_errors_supported=no
11784 fi
11785         if test $_pkg_short_errors_supported = yes; then
11786                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "" 2>&1`
11787         else
11788                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "" 2>&1`
11789         fi
11790         # Put the nasty error message in config.log where it belongs
11791         echo "$GTK_PKG_ERRORS" >&5
11792
11793         as_fn_error $? "Package requirements () were not met:
11794
11795 $GTK_PKG_ERRORS
11796
11797 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11798 installed software in a non-standard prefix.
11799
11800 Alternatively, you may set the environment variables GTK_CFLAGS
11801 and GTK_LIBS to avoid the need to call pkg-config.
11802 See the pkg-config man page for more details." "$LINENO" 5
11803 elif test $pkg_failed = untried; then
11804         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11806         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11808 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11809 is in your PATH or set the PKG_CONFIG environment variable to the full
11810 path to pkg-config.
11811
11812 Alternatively, you may set the environment variables GTK_CFLAGS
11813 and GTK_LIBS to avoid the need to call pkg-config.
11814 See the pkg-config man page for more details.
11815
11816 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11817 See \`config.log' for more details" "$LINENO" 5; }
11818 else
11819         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
11820         GTK_LIBS=$pkg_cv_GTK_LIBS
11821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11822 $as_echo "yes" >&6; }
11823
11824 fi
11825
11826
11827
11828
11829 pkg_failed=no
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
11831 $as_echo_n "checking for GMODULE... " >&6; }
11832
11833 if test -n "$GMODULE_CFLAGS"; then
11834     pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
11835  elif test -n "$PKG_CONFIG"; then
11836     if test -n "$PKG_CONFIG" && \
11837     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
11838   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
11839   ac_status=$?
11840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11841   test $ac_status = 0; }; then
11842   pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
11843                       test "x$?" != "x0" && pkg_failed=yes
11844 else
11845   pkg_failed=yes
11846 fi
11847  else
11848     pkg_failed=untried
11849 fi
11850 if test -n "$GMODULE_LIBS"; then
11851     pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
11852  elif test -n "$PKG_CONFIG"; then
11853     if test -n "$PKG_CONFIG" && \
11854     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
11855   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
11856   ac_status=$?
11857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11858   test $ac_status = 0; }; then
11859   pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
11860                       test "x$?" != "x0" && pkg_failed=yes
11861 else
11862   pkg_failed=yes
11863 fi
11864  else
11865     pkg_failed=untried
11866 fi
11867
11868
11869
11870 if test $pkg_failed = yes; then
11871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11873
11874 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11875         _pkg_short_errors_supported=yes
11876 else
11877         _pkg_short_errors_supported=no
11878 fi
11879         if test $_pkg_short_errors_supported = yes; then
11880                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0" 2>&1`
11881         else
11882                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0" 2>&1`
11883         fi
11884         # Put the nasty error message in config.log where it belongs
11885         echo "$GMODULE_PKG_ERRORS" >&5
11886
11887         as_fn_error $? "Package requirements (gmodule-2.0) were not met:
11888
11889 $GMODULE_PKG_ERRORS
11890
11891 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11892 installed software in a non-standard prefix.
11893
11894 Alternatively, you may set the environment variables GMODULE_CFLAGS
11895 and GMODULE_LIBS to avoid the need to call pkg-config.
11896 See the pkg-config man page for more details." "$LINENO" 5
11897 elif test $pkg_failed = untried; then
11898         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11899 $as_echo "no" >&6; }
11900         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11902 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11903 is in your PATH or set the PKG_CONFIG environment variable to the full
11904 path to pkg-config.
11905
11906 Alternatively, you may set the environment variables GMODULE_CFLAGS
11907 and GMODULE_LIBS to avoid the need to call pkg-config.
11908 See the pkg-config man page for more details.
11909
11910 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11911 See \`config.log' for more details" "$LINENO" 5; }
11912 else
11913         GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
11914         GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
11915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11916 $as_echo "yes" >&6; }
11917
11918 fi
11919
11920
11921
11922
11923
11924 # Check whether --with-xml-prefix was given.
11925 if test "${with_xml_prefix+set}" = set; then :
11926   withval=$with_xml_prefix; xml_config_prefix="$withval"
11927 else
11928   xml_config_prefix=""
11929 fi
11930
11931
11932 # Check whether --with-xml-exec-prefix was given.
11933 if test "${with_xml_exec_prefix+set}" = set; then :
11934   withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
11935 else
11936   xml_config_exec_prefix=""
11937 fi
11938
11939 # Check whether --enable-xmltest was given.
11940 if test "${enable_xmltest+set}" = set; then :
11941   enableval=$enable_xmltest;
11942 else
11943   enable_xmltest=yes
11944 fi
11945
11946
11947   if test x$xml_config_exec_prefix != x ; then
11948      xml_config_args="$xml_config_args"
11949      if test x${XML2_CONFIG+set} != xset ; then
11950         XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
11951      fi
11952   fi
11953   if test x$xml_config_prefix != x ; then
11954      xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
11955      if test x${XML2_CONFIG+set} != xset ; then
11956         XML2_CONFIG=$xml_config_prefix/bin/xml2-config
11957      fi
11958   fi
11959
11960   # Extract the first word of "xml2-config", so it can be a program name with args.
11961 set dummy xml2-config; ac_word=$2
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11963 $as_echo_n "checking for $ac_word... " >&6; }
11964 if ${ac_cv_path_XML2_CONFIG+:} false; then :
11965   $as_echo_n "(cached) " >&6
11966 else
11967   case $XML2_CONFIG in
11968   [\\/]* | ?:[\\/]*)
11969   ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
11970   ;;
11971   *)
11972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973 for as_dir in $PATH
11974 do
11975   IFS=$as_save_IFS
11976   test -z "$as_dir" && as_dir=.
11977     for ac_exec_ext in '' $ac_executable_extensions; do
11978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11979     ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11981     break 2
11982   fi
11983 done
11984   done
11985 IFS=$as_save_IFS
11986
11987   test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
11988   ;;
11989 esac
11990 fi
11991 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
11992 if test -n "$XML2_CONFIG"; then
11993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
11994 $as_echo "$XML2_CONFIG" >&6; }
11995 else
11996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 $as_echo "no" >&6; }
11998 fi
11999
12000
12001   min_xml_version=2.0.0
12002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
12003 $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
12004   no_xml=""
12005   if test "$XML2_CONFIG" = "no" ; then
12006     no_xml=yes
12007   else
12008     XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
12009     XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
12010     xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
12011            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12012     xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
12013            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12014     xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
12015            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12016     if test "x$enable_xmltest" = "xyes" ; then
12017       ac_save_CPPFLAGS="$CPPFLAGS"
12018       ac_save_LIBS="$LIBS"
12019       CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
12020       LIBS="$XML_LIBS $LIBS"
12021       rm -f conf.xmltest
12022       if test "$cross_compiling" = yes; then :
12023   echo $ac_n "cross compiling; assumed OK... $ac_c"
12024 else
12025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h.  */
12027
12028 #include <stdlib.h>
12029 #include <stdio.h>
12030 #include <string.h>
12031 #include <libxml/xmlversion.h>
12032
12033 int
12034 main()
12035 {
12036   int xml_major_version, xml_minor_version, xml_micro_version;
12037   int major, minor, micro;
12038   char *tmp_version;
12039
12040   system("touch conf.xmltest");
12041
12042   /* Capture xml2-config output via autoconf/configure variables */
12043   /* HP/UX 9 (%@#!) writes to sscanf strings */
12044   tmp_version = (char *)strdup("$min_xml_version");
12045   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12046      printf("%s, bad version string from xml2-config\n", "$min_xml_version");
12047      exit(1);
12048    }
12049    free(tmp_version);
12050
12051    /* Capture the version information from the header files */
12052    tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
12053    if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
12054      printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
12055      exit(1);
12056    }
12057    free(tmp_version);
12058
12059  /* Compare xml2-config output to the libxml headers */
12060   if ((xml_major_version != $xml_config_major_version) ||
12061       (xml_minor_version != $xml_config_minor_version) ||
12062       (xml_micro_version != $xml_config_micro_version))
12063     {
12064       printf("*** libxml header files (version %d.%d.%d) do not match\n",
12065          xml_major_version, xml_minor_version, xml_micro_version);
12066       printf("*** xml2-config (version %d.%d.%d)\n",
12067          $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
12068       return 1;
12069     }
12070 /* Compare the headers to the library to make sure we match */
12071   /* Less than ideal -- doesn't provide us with return value feedback,
12072    * only exits if there's a serious mismatch between header and library.
12073    */
12074     LIBXML_TEST_VERSION;
12075
12076     /* Test that the library is greater than our minimum version */
12077     if ((xml_major_version > major) ||
12078         ((xml_major_version == major) && (xml_minor_version > minor)) ||
12079         ((xml_major_version == major) && (xml_minor_version == minor) &&
12080         (xml_micro_version >= micro)))
12081       {
12082         return 0;
12083        }
12084      else
12085       {
12086         printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
12087                xml_major_version, xml_minor_version, xml_micro_version);
12088         printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
12089            major, minor, micro);
12090         printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
12091         printf("***\n");
12092         printf("*** If you have already installed a sufficiently new version, this error\n");
12093         printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
12094         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12095         printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
12096         printf("*** correct copy of xml2-config. (In this case, you will have to\n");
12097         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12098         printf("*** so that the correct libraries are found at run-time))\n");
12099     }
12100   return 1;
12101 }
12102
12103 _ACEOF
12104 if ac_fn_c_try_run "$LINENO"; then :
12105
12106 else
12107   no_xml=yes
12108 fi
12109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12110   conftest.$ac_objext conftest.beam conftest.$ac_ext
12111 fi
12112
12113        CPPFLAGS="$ac_save_CPPFLAGS"
12114        LIBS="$ac_save_LIBS"
12115      fi
12116   fi
12117
12118   if test "x$no_xml" = x ; then
12119      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
12120 $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
12121      :
12122   else
12123      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12125      if test "$XML2_CONFIG" = "no" ; then
12126        echo "*** The xml2-config script installed by LIBXML could not be found"
12127        echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
12128        echo "*** your path, or set the XML2_CONFIG environment variable to the"
12129        echo "*** full path to xml2-config."
12130      else
12131        if test -f conf.xmltest ; then
12132         :
12133        else
12134           echo "*** Could not run libxml test program, checking why..."
12135           CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
12136           LIBS="$LIBS $XML_LIBS"
12137           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h.  */
12139
12140 #include <libxml/xmlversion.h>
12141 #include <stdio.h>
12142
12143 int
12144 main ()
12145 {
12146  LIBXML_TEST_VERSION; return 0;
12147   ;
12148   return 0;
12149 }
12150 _ACEOF
12151 if ac_fn_c_try_link "$LINENO"; then :
12152    echo "*** The test program compiled, but did not run. This usually means"
12153           echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
12154           echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
12155           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12156           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12157           echo "*** is required on your system"
12158           echo "***"
12159           echo "*** If you have an old version installed, it is best to remove it, although"
12160           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12161 else
12162    echo "*** The test program failed to compile or link. See the file config.log for the"
12163           echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
12164           echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
12165           echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
12166 fi
12167 rm -f core conftest.err conftest.$ac_objext \
12168     conftest$ac_exeext conftest.$ac_ext
12169           CPPFLAGS="$ac_save_CPPFLAGS"
12170           LIBS="$ac_save_LIBS"
12171        fi
12172      fi
12173
12174      XML_CPPFLAGS=""
12175      XML_LIBS=""
12176      :
12177   fi
12178
12179
12180   rm -f conf.xmltest
12181
12182
12183
12184
12185
12186   # Check whether --enable-debug was given.
12187 if test "${enable_debug+set}" = set; then :
12188   enableval=$enable_debug;
12189         if test "$enableval" = "yes"; then
12190             CFLAGS="-g -O0"
12191         fi
12192
12193 fi
12194
12195
12196
12197   # Check whether --enable-gstreamer was given.
12198 if test "${enable_gstreamer+set}" = set; then :
12199   enableval=$enable_gstreamer;
12200         if test "$enableval" = "yes"; then
12201             CFLAGS="$CFLAGS -DENABLE_GSTREAMER `pkg-config --cflags --libs gstreamer-0.10 gstreamer-video-0.10 gstreamer-interfaces-0.10`"
12202         fi
12203
12204 fi
12205
12206
12207
12208
12209 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12210 if test "x$ac_cv_type_off_t" = xyes; then :
12211
12212 else
12213
12214 cat >>confdefs.h <<_ACEOF
12215 #define off_t long int
12216 _ACEOF
12217
12218 fi
12219
12220 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12221 if test "x$ac_cv_type_size_t" = xyes; then :
12222
12223 else
12224
12225 cat >>confdefs.h <<_ACEOF
12226 #define size_t unsigned int
12227 _ACEOF
12228
12229 fi
12230
12231
12232
12233
12234
12235
12236 for ac_header in limits.h
12237 do :
12238   ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
12239 if test "x$ac_cv_header_limits_h" = xyes; then :
12240   cat >>confdefs.h <<_ACEOF
12241 #define HAVE_LIMITS_H 1
12242 _ACEOF
12243
12244 fi
12245
12246 done
12247
12248 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12249 if test "x$ac_cv_type_ssize_t" = xyes; then :
12250
12251 else
12252
12253 cat >>confdefs.h <<_ACEOF
12254 #define ssize_t int
12255 _ACEOF
12256
12257 fi
12258
12259
12260
12261 # Check whether --with-eb-conf was given.
12262 if test "${with_eb_conf+set}" = set; then :
12263   withval=$with_eb_conf; ebconf="${withval}"
12264 else
12265   ebconf=$sysconfdir/eb.conf
12266 fi
12267
12268 if test X$prefix = XNONE; then
12269    PREFIX=$ac_default_prefix
12270 else
12271    PREFIX=$prefix
12272 fi
12273 ebconf=`echo X$ebconf | sed -e 's/^X//' -e 's;\${prefix};'"$PREFIX;g" \
12274    -e 's;\$(prefix);'"$PREFIX;g"`
12275
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eb.conf" >&5
12277 $as_echo_n "checking for eb.conf... " >&6; }
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ebconf" >&5
12279 $as_echo "$ebconf" >&6; }
12280 if test -f ${ebconf}; then
12281    . ${ebconf}
12282 else
12283    as_fn_error $? "$ebconf not found" "$LINENO" 5
12284 fi
12285
12286 if test X$EBCONF_ENABLE_PTHREAD = Xyes; then
12287
12288 $as_echo "#define EBCONF_ENABLE_PTHREAD 1" >>confdefs.h
12289
12290 fi
12291 if test X$EBCONF_ENABLE_NLS = Xyes; then
12292
12293 $as_echo "#define EBCONF_ENABLE_NLS 1" >>confdefs.h
12294
12295 fi
12296 if test X$EBCONF_ENABLE_EBNET = Xyes; then
12297
12298 $as_echo "#define EBCONF_ENABLE_EBNET 1" >>confdefs.h
12299
12300 fi
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EB Library" >&5
12313 $as_echo_n "checking for EB Library... " >&6; }
12314 save_CPPFLAGS=$CPPFLAGS
12315 save_CFLAGS=$CFLAGS
12316 save_LDFLAGS=$LDFLAGS
12317 save_LIBS=$LIBS
12318 CPPFLAGS="$CPPFLAGS $EBCONF_PTHREAD_CPPFLAGS $EBCONF_EBINCS $EBCONF_ZLIBINCS $EBCONF_INTLINCS"
12319 CFLAGS="$CFLAGS $EBCONF_PTHREAD_CFLAGS"
12320 LDFLAGS="$LDFAGS $EBCONF_PTHREAD_LDFLAGS"
12321 LIBS="$LIBS $EBCONF_EBLIBS $EBCONF_ZLIBLIBS $EBCONF_INTLLIBS"
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h.  */
12324 #include <eb/eb.h>
12325 int
12326 main ()
12327 {
12328 eb_initialize_library(); return 0;
12329   ;
12330   return 0;
12331 }
12332 _ACEOF
12333 if ac_fn_c_try_link "$LINENO"; then :
12334   try_eb=yes
12335 else
12336   try_eb=no
12337 fi
12338 rm -f core conftest.err conftest.$ac_objext \
12339     conftest$ac_exeext conftest.$ac_ext
12340 CPPFLAGS=$save_CPPFLAGS
12341 CFLAGS=$save_CFLAGS
12342 LDFLAGS=$save_LDFLAGS
12343 LIBS=$save_LIBS
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_eb" >&5
12345 $as_echo "$try_eb" >&6; }
12346 if test ${try_eb} != yes; then
12347    as_fn_error $? "EB Library not available" "$LINENO" 5
12348 fi
12349
12350
12351
12352
12353 ac_config_files="$ac_config_files Makefile src/Makefile"
12354
12355 cat >confcache <<\_ACEOF
12356 # This file is a shell script that caches the results of configure
12357 # tests run on this system so they can be shared between configure
12358 # scripts and configure runs, see configure's option --config-cache.
12359 # It is not useful on other systems.  If it contains results you don't
12360 # want to keep, you may remove or edit it.
12361 #
12362 # config.status only pays attention to the cache file if you give it
12363 # the --recheck option to rerun configure.
12364 #
12365 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12366 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12367 # following values.
12368
12369 _ACEOF
12370
12371 # The following way of writing the cache mishandles newlines in values,
12372 # but we know of no workaround that is simple, portable, and efficient.
12373 # So, we kill variables containing newlines.
12374 # Ultrix sh set writes to stderr and can't be redirected directly,
12375 # and sets the high bit in the cache file unless we assign to the vars.
12376 (
12377   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12378     eval ac_val=\$$ac_var
12379     case $ac_val in #(
12380     *${as_nl}*)
12381       case $ac_var in #(
12382       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12383 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12384       esac
12385       case $ac_var in #(
12386       _ | IFS | as_nl) ;; #(
12387       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12388       *) { eval $ac_var=; unset $ac_var;} ;;
12389       esac ;;
12390     esac
12391   done
12392
12393   (set) 2>&1 |
12394     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12395     *${as_nl}ac_space=\ *)
12396       # `set' does not quote correctly, so add quotes: double-quote
12397       # substitution turns \\\\ into \\, and sed turns \\ into \.
12398       sed -n \
12399         "s/'/'\\\\''/g;
12400           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12401       ;; #(
12402     *)
12403       # `set' quotes correctly as required by POSIX, so do not add quotes.
12404       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12405       ;;
12406     esac |
12407     sort
12408 ) |
12409   sed '
12410      /^ac_cv_env_/b end
12411      t clear
12412      :clear
12413      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12414      t end
12415      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12416      :end' >>confcache
12417 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12418   if test -w "$cache_file"; then
12419     if test "x$cache_file" != "x/dev/null"; then
12420       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12421 $as_echo "$as_me: updating cache $cache_file" >&6;}
12422       if test ! -f "$cache_file" || test -h "$cache_file"; then
12423         cat confcache >"$cache_file"
12424       else
12425         case $cache_file in #(
12426         */* | ?:*)
12427           mv -f confcache "$cache_file"$$ &&
12428           mv -f "$cache_file"$$ "$cache_file" ;; #(
12429         *)
12430           mv -f confcache "$cache_file" ;;
12431         esac
12432       fi
12433     fi
12434   else
12435     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12436 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12437   fi
12438 fi
12439 rm -f confcache
12440
12441 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12442 # Let make expand exec_prefix.
12443 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12444
12445 DEFS=-DHAVE_CONFIG_H
12446
12447 ac_libobjs=
12448 ac_ltlibobjs=
12449 U=
12450 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12451   # 1. Remove the extension, and $U if already installed.
12452   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12453   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12454   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12455   #    will be set to the directory where LIBOBJS objects are built.
12456   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12457   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12458 done
12459 LIBOBJS=$ac_libobjs
12460
12461 LTLIBOBJS=$ac_ltlibobjs
12462
12463
12464  if test -n "$EXEEXT"; then
12465   am__EXEEXT_TRUE=
12466   am__EXEEXT_FALSE='#'
12467 else
12468   am__EXEEXT_TRUE='#'
12469   am__EXEEXT_FALSE=
12470 fi
12471
12472 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12473   as_fn_error $? "conditional \"AMDEP\" was never defined.
12474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12475 fi
12476 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12477   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12479 fi
12480
12481 : "${CONFIG_STATUS=./config.status}"
12482 ac_write_fail=0
12483 ac_clean_files_save=$ac_clean_files
12484 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12486 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12487 as_write_fail=0
12488 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12489 #! $SHELL
12490 # Generated by $as_me.
12491 # Run this file to recreate the current configuration.
12492 # Compiler output produced by configure, useful for debugging
12493 # configure, is in config.log if it exists.
12494
12495 debug=false
12496 ac_cs_recheck=false
12497 ac_cs_silent=false
12498
12499 SHELL=\${CONFIG_SHELL-$SHELL}
12500 export SHELL
12501 _ASEOF
12502 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12503 ## -------------------- ##
12504 ## M4sh Initialization. ##
12505 ## -------------------- ##
12506
12507 # Be more Bourne compatible
12508 DUALCASE=1; export DUALCASE # for MKS sh
12509 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12510   emulate sh
12511   NULLCMD=:
12512   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12513   # is contrary to our usage.  Disable this feature.
12514   alias -g '${1+"$@"}'='"$@"'
12515   setopt NO_GLOB_SUBST
12516 else
12517   case `(set -o) 2>/dev/null` in #(
12518   *posix*) :
12519     set -o posix ;; #(
12520   *) :
12521      ;;
12522 esac
12523 fi
12524
12525
12526 as_nl='
12527 '
12528 export as_nl
12529 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12530 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12531 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12532 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12533 # Prefer a ksh shell builtin over an external printf program on Solaris,
12534 # but without wasting forks for bash or zsh.
12535 if test -z "$BASH_VERSION$ZSH_VERSION" \
12536     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12537   as_echo='print -r --'
12538   as_echo_n='print -rn --'
12539 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12540   as_echo='printf %s\n'
12541   as_echo_n='printf %s'
12542 else
12543   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12544     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12545     as_echo_n='/usr/ucb/echo -n'
12546   else
12547     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12548     as_echo_n_body='eval
12549       arg=$1;
12550       case $arg in #(
12551       *"$as_nl"*)
12552         expr "X$arg" : "X\\(.*\\)$as_nl";
12553         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12554       esac;
12555       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12556     '
12557     export as_echo_n_body
12558     as_echo_n='sh -c $as_echo_n_body as_echo'
12559   fi
12560   export as_echo_body
12561   as_echo='sh -c $as_echo_body as_echo'
12562 fi
12563
12564 # The user is always right.
12565 if test "${PATH_SEPARATOR+set}" != set; then
12566   PATH_SEPARATOR=:
12567   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12568     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12569       PATH_SEPARATOR=';'
12570   }
12571 fi
12572
12573
12574 # IFS
12575 # We need space, tab and new line, in precisely that order.  Quoting is
12576 # there to prevent editors from complaining about space-tab.
12577 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12578 # splitting by setting IFS to empty value.)
12579 IFS=" ""        $as_nl"
12580
12581 # Find who we are.  Look in the path if we contain no directory separator.
12582 as_myself=
12583 case $0 in #((
12584   *[\\/]* ) as_myself=$0 ;;
12585   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586 for as_dir in $PATH
12587 do
12588   IFS=$as_save_IFS
12589   test -z "$as_dir" && as_dir=.
12590     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12591   done
12592 IFS=$as_save_IFS
12593
12594      ;;
12595 esac
12596 # We did not find ourselves, most probably we were run as `sh COMMAND'
12597 # in which case we are not to be found in the path.
12598 if test "x$as_myself" = x; then
12599   as_myself=$0
12600 fi
12601 if test ! -f "$as_myself"; then
12602   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12603   exit 1
12604 fi
12605
12606 # Unset variables that we do not need and which cause bugs (e.g. in
12607 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12608 # suppresses any "Segmentation fault" message there.  '((' could
12609 # trigger a bug in pdksh 5.2.14.
12610 for as_var in BASH_ENV ENV MAIL MAILPATH
12611 do eval test x\${$as_var+set} = xset \
12612   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12613 done
12614 PS1='$ '
12615 PS2='> '
12616 PS4='+ '
12617
12618 # NLS nuisances.
12619 LC_ALL=C
12620 export LC_ALL
12621 LANGUAGE=C
12622 export LANGUAGE
12623
12624 # CDPATH.
12625 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12626
12627
12628 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12629 # ----------------------------------------
12630 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12631 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12632 # script with STATUS, using 1 if that was 0.
12633 as_fn_error ()
12634 {
12635   as_status=$1; test $as_status -eq 0 && as_status=1
12636   if test "$4"; then
12637     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12638     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12639   fi
12640   $as_echo "$as_me: error: $2" >&2
12641   as_fn_exit $as_status
12642 } # as_fn_error
12643
12644
12645 # as_fn_set_status STATUS
12646 # -----------------------
12647 # Set $? to STATUS, without forking.
12648 as_fn_set_status ()
12649 {
12650   return $1
12651 } # as_fn_set_status
12652
12653 # as_fn_exit STATUS
12654 # -----------------
12655 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12656 as_fn_exit ()
12657 {
12658   set +e
12659   as_fn_set_status $1
12660   exit $1
12661 } # as_fn_exit
12662
12663 # as_fn_unset VAR
12664 # ---------------
12665 # Portably unset VAR.
12666 as_fn_unset ()
12667 {
12668   { eval $1=; unset $1;}
12669 }
12670 as_unset=as_fn_unset
12671 # as_fn_append VAR VALUE
12672 # ----------------------
12673 # Append the text in VALUE to the end of the definition contained in VAR. Take
12674 # advantage of any shell optimizations that allow amortized linear growth over
12675 # repeated appends, instead of the typical quadratic growth present in naive
12676 # implementations.
12677 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12678   eval 'as_fn_append ()
12679   {
12680     eval $1+=\$2
12681   }'
12682 else
12683   as_fn_append ()
12684   {
12685     eval $1=\$$1\$2
12686   }
12687 fi # as_fn_append
12688
12689 # as_fn_arith ARG...
12690 # ------------------
12691 # Perform arithmetic evaluation on the ARGs, and store the result in the
12692 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12693 # must be portable across $(()) and expr.
12694 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12695   eval 'as_fn_arith ()
12696   {
12697     as_val=$(( $* ))
12698   }'
12699 else
12700   as_fn_arith ()
12701   {
12702     as_val=`expr "$@" || test $? -eq 1`
12703   }
12704 fi # as_fn_arith
12705
12706
12707 if expr a : '\(a\)' >/dev/null 2>&1 &&
12708    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12709   as_expr=expr
12710 else
12711   as_expr=false
12712 fi
12713
12714 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12715   as_basename=basename
12716 else
12717   as_basename=false
12718 fi
12719
12720 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12721   as_dirname=dirname
12722 else
12723   as_dirname=false
12724 fi
12725
12726 as_me=`$as_basename -- "$0" ||
12727 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12728          X"$0" : 'X\(//\)$' \| \
12729          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12730 $as_echo X/"$0" |
12731     sed '/^.*\/\([^/][^/]*\)\/*$/{
12732             s//\1/
12733             q
12734           }
12735           /^X\/\(\/\/\)$/{
12736             s//\1/
12737             q
12738           }
12739           /^X\/\(\/\).*/{
12740             s//\1/
12741             q
12742           }
12743           s/.*/./; q'`
12744
12745 # Avoid depending upon Character Ranges.
12746 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12747 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12748 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12749 as_cr_digits='0123456789'
12750 as_cr_alnum=$as_cr_Letters$as_cr_digits
12751
12752 ECHO_C= ECHO_N= ECHO_T=
12753 case `echo -n x` in #(((((
12754 -n*)
12755   case `echo 'xy\c'` in
12756   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12757   xy)  ECHO_C='\c';;
12758   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12759        ECHO_T=' ';;
12760   esac;;
12761 *)
12762   ECHO_N='-n';;
12763 esac
12764
12765 rm -f conf$$ conf$$.exe conf$$.file
12766 if test -d conf$$.dir; then
12767   rm -f conf$$.dir/conf$$.file
12768 else
12769   rm -f conf$$.dir
12770   mkdir conf$$.dir 2>/dev/null
12771 fi
12772 if (echo >conf$$.file) 2>/dev/null; then
12773   if ln -s conf$$.file conf$$ 2>/dev/null; then
12774     as_ln_s='ln -s'
12775     # ... but there are two gotchas:
12776     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12777     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12778     # In both cases, we have to default to `cp -p'.
12779     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12780       as_ln_s='cp -p'
12781   elif ln conf$$.file conf$$ 2>/dev/null; then
12782     as_ln_s=ln
12783   else
12784     as_ln_s='cp -p'
12785   fi
12786 else
12787   as_ln_s='cp -p'
12788 fi
12789 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12790 rmdir conf$$.dir 2>/dev/null
12791
12792
12793 # as_fn_mkdir_p
12794 # -------------
12795 # Create "$as_dir" as a directory, including parents if necessary.
12796 as_fn_mkdir_p ()
12797 {
12798
12799   case $as_dir in #(
12800   -*) as_dir=./$as_dir;;
12801   esac
12802   test -d "$as_dir" || eval $as_mkdir_p || {
12803     as_dirs=
12804     while :; do
12805       case $as_dir in #(
12806       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12807       *) as_qdir=$as_dir;;
12808       esac
12809       as_dirs="'$as_qdir' $as_dirs"
12810       as_dir=`$as_dirname -- "$as_dir" ||
12811 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12812          X"$as_dir" : 'X\(//\)[^/]' \| \
12813          X"$as_dir" : 'X\(//\)$' \| \
12814          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12815 $as_echo X"$as_dir" |
12816     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12817             s//\1/
12818             q
12819           }
12820           /^X\(\/\/\)[^/].*/{
12821             s//\1/
12822             q
12823           }
12824           /^X\(\/\/\)$/{
12825             s//\1/
12826             q
12827           }
12828           /^X\(\/\).*/{
12829             s//\1/
12830             q
12831           }
12832           s/.*/./; q'`
12833       test -d "$as_dir" && break
12834     done
12835     test -z "$as_dirs" || eval "mkdir $as_dirs"
12836   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12837
12838
12839 } # as_fn_mkdir_p
12840 if mkdir -p . 2>/dev/null; then
12841   as_mkdir_p='mkdir -p "$as_dir"'
12842 else
12843   test -d ./-p && rmdir ./-p
12844   as_mkdir_p=false
12845 fi
12846
12847 if test -x / >/dev/null 2>&1; then
12848   as_test_x='test -x'
12849 else
12850   if ls -dL / >/dev/null 2>&1; then
12851     as_ls_L_option=L
12852   else
12853     as_ls_L_option=
12854   fi
12855   as_test_x='
12856     eval sh -c '\''
12857       if test -d "$1"; then
12858         test -d "$1/.";
12859       else
12860         case $1 in #(
12861         -*)set "./$1";;
12862         esac;
12863         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12864         ???[sx]*):;;*)false;;esac;fi
12865     '\'' sh
12866   '
12867 fi
12868 as_executable_p=$as_test_x
12869
12870 # Sed expression to map a string onto a valid CPP name.
12871 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12872
12873 # Sed expression to map a string onto a valid variable name.
12874 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12875
12876
12877 exec 6>&1
12878 ## ----------------------------------- ##
12879 ## Main body of $CONFIG_STATUS script. ##
12880 ## ----------------------------------- ##
12881 _ASEOF
12882 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12883
12884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12885 # Save the log message, to keep $0 and so on meaningful, and to
12886 # report actual input values of CONFIG_FILES etc. instead of their
12887 # values after options handling.
12888 ac_log="
12889 This file was extended by eb123 $as_me 0.5, which was
12890 generated by GNU Autoconf 2.68.  Invocation command line was
12891
12892   CONFIG_FILES    = $CONFIG_FILES
12893   CONFIG_HEADERS  = $CONFIG_HEADERS
12894   CONFIG_LINKS    = $CONFIG_LINKS
12895   CONFIG_COMMANDS = $CONFIG_COMMANDS
12896   $ $0 $@
12897
12898 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12899 "
12900
12901 _ACEOF
12902
12903 case $ac_config_files in *"
12904 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12905 esac
12906
12907 case $ac_config_headers in *"
12908 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12909 esac
12910
12911
12912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12913 # Files that config.status was made for.
12914 config_files="$ac_config_files"
12915 config_headers="$ac_config_headers"
12916 config_commands="$ac_config_commands"
12917
12918 _ACEOF
12919
12920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12921 ac_cs_usage="\
12922 \`$as_me' instantiates files and other configuration actions
12923 from templates according to the current configuration.  Unless the files
12924 and actions are specified as TAGs, all are instantiated by default.
12925
12926 Usage: $0 [OPTION]... [TAG]...
12927
12928   -h, --help       print this help, then exit
12929   -V, --version    print version number and configuration settings, then exit
12930       --config     print configuration, then exit
12931   -q, --quiet, --silent
12932                    do not print progress messages
12933   -d, --debug      don't remove temporary files
12934       --recheck    update $as_me by reconfiguring in the same conditions
12935       --file=FILE[:TEMPLATE]
12936                    instantiate the configuration file FILE
12937       --header=FILE[:TEMPLATE]
12938                    instantiate the configuration header FILE
12939
12940 Configuration files:
12941 $config_files
12942
12943 Configuration headers:
12944 $config_headers
12945
12946 Configuration commands:
12947 $config_commands
12948
12949 Report bugs to <evgeny@sourceforge.jp>."
12950
12951 _ACEOF
12952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12953 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12954 ac_cs_version="\\
12955 eb123 config.status 0.5
12956 configured by $0, generated by GNU Autoconf 2.68,
12957   with options \\"\$ac_cs_config\\"
12958
12959 Copyright (C) 2010 Free Software Foundation, Inc.
12960 This config.status script is free software; the Free Software Foundation
12961 gives unlimited permission to copy, distribute and modify it."
12962
12963 ac_pwd='$ac_pwd'
12964 srcdir='$srcdir'
12965 INSTALL='$INSTALL'
12966 MKDIR_P='$MKDIR_P'
12967 AWK='$AWK'
12968 test -n "\$AWK" || AWK=awk
12969 _ACEOF
12970
12971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12972 # The default lists apply if the user does not specify any file.
12973 ac_need_defaults=:
12974 while test $# != 0
12975 do
12976   case $1 in
12977   --*=?*)
12978     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12979     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12980     ac_shift=:
12981     ;;
12982   --*=)
12983     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12984     ac_optarg=
12985     ac_shift=:
12986     ;;
12987   *)
12988     ac_option=$1
12989     ac_optarg=$2
12990     ac_shift=shift
12991     ;;
12992   esac
12993
12994   case $ac_option in
12995   # Handling of the options.
12996   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12997     ac_cs_recheck=: ;;
12998   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12999     $as_echo "$ac_cs_version"; exit ;;
13000   --config | --confi | --conf | --con | --co | --c )
13001     $as_echo "$ac_cs_config"; exit ;;
13002   --debug | --debu | --deb | --de | --d | -d )
13003     debug=: ;;
13004   --file | --fil | --fi | --f )
13005     $ac_shift
13006     case $ac_optarg in
13007     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13008     '') as_fn_error $? "missing file argument" ;;
13009     esac
13010     as_fn_append CONFIG_FILES " '$ac_optarg'"
13011     ac_need_defaults=false;;
13012   --header | --heade | --head | --hea )
13013     $ac_shift
13014     case $ac_optarg in
13015     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13016     esac
13017     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13018     ac_need_defaults=false;;
13019   --he | --h)
13020     # Conflict between --help and --header
13021     as_fn_error $? "ambiguous option: \`$1'
13022 Try \`$0 --help' for more information.";;
13023   --help | --hel | -h )
13024     $as_echo "$ac_cs_usage"; exit ;;
13025   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13026   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13027     ac_cs_silent=: ;;
13028
13029   # This is an error.
13030   -*) as_fn_error $? "unrecognized option: \`$1'
13031 Try \`$0 --help' for more information." ;;
13032
13033   *) as_fn_append ac_config_targets " $1"
13034      ac_need_defaults=false ;;
13035
13036   esac
13037   shift
13038 done
13039
13040 ac_configure_extra_args=
13041
13042 if $ac_cs_silent; then
13043   exec 6>/dev/null
13044   ac_configure_extra_args="$ac_configure_extra_args --silent"
13045 fi
13046
13047 _ACEOF
13048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13049 if \$ac_cs_recheck; then
13050   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13051   shift
13052   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13053   CONFIG_SHELL='$SHELL'
13054   export CONFIG_SHELL
13055   exec "\$@"
13056 fi
13057
13058 _ACEOF
13059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13060 exec 5>>config.log
13061 {
13062   echo
13063   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13064 ## Running $as_me. ##
13065 _ASBOX
13066   $as_echo "$ac_log"
13067 } >&5
13068
13069 _ACEOF
13070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13071 #
13072 # INIT-COMMANDS
13073 #
13074 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13075
13076
13077 # The HP-UX ksh and POSIX shell print the target directory to stdout
13078 # if CDPATH is set.
13079 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13080
13081 sed_quote_subst='$sed_quote_subst'
13082 double_quote_subst='$double_quote_subst'
13083 delay_variable_subst='$delay_variable_subst'
13084 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13085 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13086 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13087 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13088 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13089 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13090 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13091 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13092 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13093 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13094 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13095 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13096 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13097 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13098 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13099 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13100 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13101 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13102 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13103 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13104 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13105 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13106 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13107 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13108 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13109 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13110 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13111 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13112 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13113 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13114 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13115 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13116 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13117 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13118 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13119 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13120 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13121 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13122 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13123 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13124 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13125 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13126 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13127 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13128 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13129 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13130 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13131 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13132 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13133 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13134 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13135 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13136 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13137 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13138 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13139 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"`'
13140 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13141 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13142 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13143 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13144 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13145 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13146 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13147 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13148 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13149 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13150 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13151 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13152 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13153 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13154 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13155 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13156 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13157 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13158 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13159 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13160 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13161 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13162 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13163 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13164 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13165 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13166 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13167 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13168 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13169 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13170 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13171 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13172 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13173 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13174 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13175 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13176 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13177 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13178 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13179 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13180 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13181 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13182 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13183 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13184 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13185 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13186 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13187 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13188 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13189 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13190 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13191 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13192 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13193 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13194 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13195 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13196 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13197 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13198 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13199 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13200 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13201 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13202 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13203 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13204 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13205 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13206 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13207 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13208 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13209 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13210 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13211 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13212 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13213 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13214
13215 LTCC='$LTCC'
13216 LTCFLAGS='$LTCFLAGS'
13217 compiler='$compiler_DEFAULT'
13218
13219 # A function that is used when there is no print builtin or printf.
13220 func_fallback_echo ()
13221 {
13222   eval 'cat <<_LTECHO_EOF
13223 \$1
13224 _LTECHO_EOF'
13225 }
13226
13227 # Quote evaled strings.
13228 for var in SHELL \
13229 ECHO \
13230 SED \
13231 GREP \
13232 EGREP \
13233 FGREP \
13234 LD \
13235 NM \
13236 LN_S \
13237 lt_SP2NL \
13238 lt_NL2SP \
13239 reload_flag \
13240 OBJDUMP \
13241 deplibs_check_method \
13242 file_magic_cmd \
13243 file_magic_glob \
13244 want_nocaseglob \
13245 DLLTOOL \
13246 sharedlib_from_linklib_cmd \
13247 AR \
13248 AR_FLAGS \
13249 archiver_list_spec \
13250 STRIP \
13251 RANLIB \
13252 CC \
13253 CFLAGS \
13254 compiler \
13255 lt_cv_sys_global_symbol_pipe \
13256 lt_cv_sys_global_symbol_to_cdecl \
13257 lt_cv_sys_global_symbol_to_c_name_address \
13258 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13259 nm_file_list_spec \
13260 lt_prog_compiler_no_builtin_flag \
13261 lt_prog_compiler_pic \
13262 lt_prog_compiler_wl \
13263 lt_prog_compiler_static \
13264 lt_cv_prog_compiler_c_o \
13265 need_locks \
13266 MANIFEST_TOOL \
13267 DSYMUTIL \
13268 NMEDIT \
13269 LIPO \
13270 OTOOL \
13271 OTOOL64 \
13272 shrext_cmds \
13273 export_dynamic_flag_spec \
13274 whole_archive_flag_spec \
13275 compiler_needs_object \
13276 with_gnu_ld \
13277 allow_undefined_flag \
13278 no_undefined_flag \
13279 hardcode_libdir_flag_spec \
13280 hardcode_libdir_flag_spec_ld \
13281 hardcode_libdir_separator \
13282 exclude_expsyms \
13283 include_expsyms \
13284 file_list_spec \
13285 variables_saved_for_relink \
13286 libname_spec \
13287 library_names_spec \
13288 soname_spec \
13289 install_override_mode \
13290 finish_eval \
13291 old_striplib \
13292 striplib; do
13293     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13294     *[\\\\\\\`\\"\\\$]*)
13295       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13296       ;;
13297     *)
13298       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13299       ;;
13300     esac
13301 done
13302
13303 # Double-quote double-evaled strings.
13304 for var in reload_cmds \
13305 old_postinstall_cmds \
13306 old_postuninstall_cmds \
13307 old_archive_cmds \
13308 extract_expsyms_cmds \
13309 old_archive_from_new_cmds \
13310 old_archive_from_expsyms_cmds \
13311 archive_cmds \
13312 archive_expsym_cmds \
13313 module_cmds \
13314 module_expsym_cmds \
13315 export_symbols_cmds \
13316 prelink_cmds \
13317 postlink_cmds \
13318 postinstall_cmds \
13319 postuninstall_cmds \
13320 finish_cmds \
13321 sys_lib_search_path_spec \
13322 sys_lib_dlsearch_path_spec; do
13323     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13324     *[\\\\\\\`\\"\\\$]*)
13325       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13326       ;;
13327     *)
13328       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13329       ;;
13330     esac
13331 done
13332
13333 ac_aux_dir='$ac_aux_dir'
13334 xsi_shell='$xsi_shell'
13335 lt_shell_append='$lt_shell_append'
13336
13337 # See if we are running on zsh, and set the options which allow our
13338 # commands through without removal of \ escapes INIT.
13339 if test -n "\${ZSH_VERSION+set}" ; then
13340    setopt NO_GLOB_SUBST
13341 fi
13342
13343
13344     PACKAGE='$PACKAGE'
13345     VERSION='$VERSION'
13346     TIMESTAMP='$TIMESTAMP'
13347     RM='$RM'
13348     ofile='$ofile'
13349
13350
13351
13352
13353 _ACEOF
13354
13355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13356
13357 # Handling of arguments.
13358 for ac_config_target in $ac_config_targets
13359 do
13360   case $ac_config_target in
13361     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13362     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13363     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13364     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13365     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13366
13367   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13368   esac
13369 done
13370
13371
13372 # If the user did not use the arguments to specify the items to instantiate,
13373 # then the envvar interface is used.  Set only those that are not.
13374 # We use the long form for the default assignment because of an extremely
13375 # bizarre bug on SunOS 4.1.3.
13376 if $ac_need_defaults; then
13377   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13378   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13379   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13380 fi
13381
13382 # Have a temporary directory for convenience.  Make it in the build tree
13383 # simply because there is no reason against having it here, and in addition,
13384 # creating and moving files from /tmp can sometimes cause problems.
13385 # Hook for its removal unless debugging.
13386 # Note that there is a small window in which the directory will not be cleaned:
13387 # after its creation but before its name has been assigned to `$tmp'.
13388 $debug ||
13389 {
13390   tmp= ac_tmp=
13391   trap 'exit_status=$?
13392   : "${ac_tmp:=$tmp}"
13393   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13394 ' 0
13395   trap 'as_fn_exit 1' 1 2 13 15
13396 }
13397 # Create a (secure) tmp directory for tmp files.
13398
13399 {
13400   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13401   test -d "$tmp"
13402 }  ||
13403 {
13404   tmp=./conf$$-$RANDOM
13405   (umask 077 && mkdir "$tmp")
13406 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13407 ac_tmp=$tmp
13408
13409 # Set up the scripts for CONFIG_FILES section.
13410 # No need to generate them if there are no CONFIG_FILES.
13411 # This happens for instance with `./config.status config.h'.
13412 if test -n "$CONFIG_FILES"; then
13413
13414
13415 ac_cr=`echo X | tr X '\015'`
13416 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13417 # But we know of no other shell where ac_cr would be empty at this
13418 # point, so we can use a bashism as a fallback.
13419 if test "x$ac_cr" = x; then
13420   eval ac_cr=\$\'\\r\'
13421 fi
13422 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13423 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13424   ac_cs_awk_cr='\\r'
13425 else
13426   ac_cs_awk_cr=$ac_cr
13427 fi
13428
13429 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13430 _ACEOF
13431
13432
13433 {
13434   echo "cat >conf$$subs.awk <<_ACEOF" &&
13435   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13436   echo "_ACEOF"
13437 } >conf$$subs.sh ||
13438   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13439 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13440 ac_delim='%!_!# '
13441 for ac_last_try in false false false false false :; do
13442   . ./conf$$subs.sh ||
13443     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13444
13445   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13446   if test $ac_delim_n = $ac_delim_num; then
13447     break
13448   elif $ac_last_try; then
13449     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13450   else
13451     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13452   fi
13453 done
13454 rm -f conf$$subs.sh
13455
13456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13457 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13458 _ACEOF
13459 sed -n '
13460 h
13461 s/^/S["/; s/!.*/"]=/
13462 p
13463 g
13464 s/^[^!]*!//
13465 :repl
13466 t repl
13467 s/'"$ac_delim"'$//
13468 t delim
13469 :nl
13470 h
13471 s/\(.\{148\}\)..*/\1/
13472 t more1
13473 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13474 p
13475 n
13476 b repl
13477 :more1
13478 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13479 p
13480 g
13481 s/.\{148\}//
13482 t nl
13483 :delim
13484 h
13485 s/\(.\{148\}\)..*/\1/
13486 t more2
13487 s/["\\]/\\&/g; s/^/"/; s/$/"/
13488 p
13489 b
13490 :more2
13491 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13492 p
13493 g
13494 s/.\{148\}//
13495 t delim
13496 ' <conf$$subs.awk | sed '
13497 /^[^""]/{
13498   N
13499   s/\n//
13500 }
13501 ' >>$CONFIG_STATUS || ac_write_fail=1
13502 rm -f conf$$subs.awk
13503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13504 _ACAWK
13505 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13506   for (key in S) S_is_set[key] = 1
13507   FS = "\a"
13508
13509 }
13510 {
13511   line = $ 0
13512   nfields = split(line, field, "@")
13513   substed = 0
13514   len = length(field[1])
13515   for (i = 2; i < nfields; i++) {
13516     key = field[i]
13517     keylen = length(key)
13518     if (S_is_set[key]) {
13519       value = S[key]
13520       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13521       len += length(value) + length(field[++i])
13522       substed = 1
13523     } else
13524       len += 1 + keylen
13525   }
13526
13527   print line
13528 }
13529
13530 _ACAWK
13531 _ACEOF
13532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13533 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13534   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13535 else
13536   cat
13537 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13538   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13539 _ACEOF
13540
13541 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13542 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13543 # trailing colons and then remove the whole line if VPATH becomes empty
13544 # (actually we leave an empty line to preserve line numbers).
13545 if test "x$srcdir" = x.; then
13546   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13547 h
13548 s///
13549 s/^/:/
13550 s/[      ]*$/:/
13551 s/:\$(srcdir):/:/g
13552 s/:\${srcdir}:/:/g
13553 s/:@srcdir@:/:/g
13554 s/^:*//
13555 s/:*$//
13556 x
13557 s/\(=[   ]*\).*/\1/
13558 G
13559 s/\n//
13560 s/^[^=]*=[       ]*$//
13561 }'
13562 fi
13563
13564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13565 fi # test -n "$CONFIG_FILES"
13566
13567 # Set up the scripts for CONFIG_HEADERS section.
13568 # No need to generate them if there are no CONFIG_HEADERS.
13569 # This happens for instance with `./config.status Makefile'.
13570 if test -n "$CONFIG_HEADERS"; then
13571 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13572 BEGIN {
13573 _ACEOF
13574
13575 # Transform confdefs.h into an awk script `defines.awk', embedded as
13576 # here-document in config.status, that substitutes the proper values into
13577 # config.h.in to produce config.h.
13578
13579 # Create a delimiter string that does not exist in confdefs.h, to ease
13580 # handling of long lines.
13581 ac_delim='%!_!# '
13582 for ac_last_try in false false :; do
13583   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13584   if test -z "$ac_tt"; then
13585     break
13586   elif $ac_last_try; then
13587     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13588   else
13589     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13590   fi
13591 done
13592
13593 # For the awk script, D is an array of macro values keyed by name,
13594 # likewise P contains macro parameters if any.  Preserve backslash
13595 # newline sequences.
13596
13597 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13598 sed -n '
13599 s/.\{148\}/&'"$ac_delim"'/g
13600 t rset
13601 :rset
13602 s/^[     ]*#[    ]*define[       ][      ]*/ /
13603 t def
13604 d
13605 :def
13606 s/\\$//
13607 t bsnl
13608 s/["\\]/\\&/g
13609 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13610 D["\1"]=" \3"/p
13611 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13612 d
13613 :bsnl
13614 s/["\\]/\\&/g
13615 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13616 D["\1"]=" \3\\\\\\n"\\/p
13617 t cont
13618 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13619 t cont
13620 d
13621 :cont
13622 n
13623 s/.\{148\}/&'"$ac_delim"'/g
13624 t clear
13625 :clear
13626 s/\\$//
13627 t bsnlc
13628 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13629 d
13630 :bsnlc
13631 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13632 b cont
13633 ' <confdefs.h | sed '
13634 s/'"$ac_delim"'/"\\\
13635 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13636
13637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13638   for (key in D) D_is_set[key] = 1
13639   FS = "\a"
13640 }
13641 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13642   line = \$ 0
13643   split(line, arg, " ")
13644   if (arg[1] == "#") {
13645     defundef = arg[2]
13646     mac1 = arg[3]
13647   } else {
13648     defundef = substr(arg[1], 2)
13649     mac1 = arg[2]
13650   }
13651   split(mac1, mac2, "(") #)
13652   macro = mac2[1]
13653   prefix = substr(line, 1, index(line, defundef) - 1)
13654   if (D_is_set[macro]) {
13655     # Preserve the white space surrounding the "#".
13656     print prefix "define", macro P[macro] D[macro]
13657     next
13658   } else {
13659     # Replace #undef with comments.  This is necessary, for example,
13660     # in the case of _POSIX_SOURCE, which is predefined and required
13661     # on some systems where configure will not decide to define it.
13662     if (defundef == "undef") {
13663       print "/*", prefix defundef, macro, "*/"
13664       next
13665     }
13666   }
13667 }
13668 { print }
13669 _ACAWK
13670 _ACEOF
13671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13672   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13673 fi # test -n "$CONFIG_HEADERS"
13674
13675
13676 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13677 shift
13678 for ac_tag
13679 do
13680   case $ac_tag in
13681   :[FHLC]) ac_mode=$ac_tag; continue;;
13682   esac
13683   case $ac_mode$ac_tag in
13684   :[FHL]*:*);;
13685   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13686   :[FH]-) ac_tag=-:-;;
13687   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13688   esac
13689   ac_save_IFS=$IFS
13690   IFS=:
13691   set x $ac_tag
13692   IFS=$ac_save_IFS
13693   shift
13694   ac_file=$1
13695   shift
13696
13697   case $ac_mode in
13698   :L) ac_source=$1;;
13699   :[FH])
13700     ac_file_inputs=
13701     for ac_f
13702     do
13703       case $ac_f in
13704       -) ac_f="$ac_tmp/stdin";;
13705       *) # Look for the file first in the build tree, then in the source tree
13706          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13707          # because $ac_f cannot contain `:'.
13708          test -f "$ac_f" ||
13709            case $ac_f in
13710            [\\/$]*) false;;
13711            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13712            esac ||
13713            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13714       esac
13715       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13716       as_fn_append ac_file_inputs " '$ac_f'"
13717     done
13718
13719     # Let's still pretend it is `configure' which instantiates (i.e., don't
13720     # use $as_me), people would be surprised to read:
13721     #    /* config.h.  Generated by config.status.  */
13722     configure_input='Generated from '`
13723           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13724         `' by configure.'
13725     if test x"$ac_file" != x-; then
13726       configure_input="$ac_file.  $configure_input"
13727       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13728 $as_echo "$as_me: creating $ac_file" >&6;}
13729     fi
13730     # Neutralize special characters interpreted by sed in replacement strings.
13731     case $configure_input in #(
13732     *\&* | *\|* | *\\* )
13733        ac_sed_conf_input=`$as_echo "$configure_input" |
13734        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13735     *) ac_sed_conf_input=$configure_input;;
13736     esac
13737
13738     case $ac_tag in
13739     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13740       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13741     esac
13742     ;;
13743   esac
13744
13745   ac_dir=`$as_dirname -- "$ac_file" ||
13746 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13747          X"$ac_file" : 'X\(//\)[^/]' \| \
13748          X"$ac_file" : 'X\(//\)$' \| \
13749          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13750 $as_echo X"$ac_file" |
13751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13752             s//\1/
13753             q
13754           }
13755           /^X\(\/\/\)[^/].*/{
13756             s//\1/
13757             q
13758           }
13759           /^X\(\/\/\)$/{
13760             s//\1/
13761             q
13762           }
13763           /^X\(\/\).*/{
13764             s//\1/
13765             q
13766           }
13767           s/.*/./; q'`
13768   as_dir="$ac_dir"; as_fn_mkdir_p
13769   ac_builddir=.
13770
13771 case "$ac_dir" in
13772 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13773 *)
13774   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13775   # A ".." for each directory in $ac_dir_suffix.
13776   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13777   case $ac_top_builddir_sub in
13778   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13779   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13780   esac ;;
13781 esac
13782 ac_abs_top_builddir=$ac_pwd
13783 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13784 # for backward compatibility:
13785 ac_top_builddir=$ac_top_build_prefix
13786
13787 case $srcdir in
13788   .)  # We are building in place.
13789     ac_srcdir=.
13790     ac_top_srcdir=$ac_top_builddir_sub
13791     ac_abs_top_srcdir=$ac_pwd ;;
13792   [\\/]* | ?:[\\/]* )  # Absolute name.
13793     ac_srcdir=$srcdir$ac_dir_suffix;
13794     ac_top_srcdir=$srcdir
13795     ac_abs_top_srcdir=$srcdir ;;
13796   *) # Relative name.
13797     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13798     ac_top_srcdir=$ac_top_build_prefix$srcdir
13799     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13800 esac
13801 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13802
13803
13804   case $ac_mode in
13805   :F)
13806   #
13807   # CONFIG_FILE
13808   #
13809
13810   case $INSTALL in
13811   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13812   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13813   esac
13814   ac_MKDIR_P=$MKDIR_P
13815   case $MKDIR_P in
13816   [\\/$]* | ?:[\\/]* ) ;;
13817   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13818   esac
13819 _ACEOF
13820
13821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13822 # If the template does not know about datarootdir, expand it.
13823 # FIXME: This hack should be removed a few years after 2.60.
13824 ac_datarootdir_hack=; ac_datarootdir_seen=
13825 ac_sed_dataroot='
13826 /datarootdir/ {
13827   p
13828   q
13829 }
13830 /@datadir@/p
13831 /@docdir@/p
13832 /@infodir@/p
13833 /@localedir@/p
13834 /@mandir@/p'
13835 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13836 *datarootdir*) ac_datarootdir_seen=yes;;
13837 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13838   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13839 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13840 _ACEOF
13841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13842   ac_datarootdir_hack='
13843   s&@datadir@&$datadir&g
13844   s&@docdir@&$docdir&g
13845   s&@infodir@&$infodir&g
13846   s&@localedir@&$localedir&g
13847   s&@mandir@&$mandir&g
13848   s&\\\${datarootdir}&$datarootdir&g' ;;
13849 esac
13850 _ACEOF
13851
13852 # Neutralize VPATH when `$srcdir' = `.'.
13853 # Shell code in configure.ac might set extrasub.
13854 # FIXME: do we really want to maintain this feature?
13855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13856 ac_sed_extra="$ac_vpsub
13857 $extrasub
13858 _ACEOF
13859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13860 :t
13861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13862 s|@configure_input@|$ac_sed_conf_input|;t t
13863 s&@top_builddir@&$ac_top_builddir_sub&;t t
13864 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13865 s&@srcdir@&$ac_srcdir&;t t
13866 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13867 s&@top_srcdir@&$ac_top_srcdir&;t t
13868 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13869 s&@builddir@&$ac_builddir&;t t
13870 s&@abs_builddir@&$ac_abs_builddir&;t t
13871 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13872 s&@INSTALL@&$ac_INSTALL&;t t
13873 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13874 $ac_datarootdir_hack
13875 "
13876 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13877   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13878
13879 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13880   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13881   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13882       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13883   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13884 which seems to be undefined.  Please make sure it is defined" >&5
13885 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13886 which seems to be undefined.  Please make sure it is defined" >&2;}
13887
13888   rm -f "$ac_tmp/stdin"
13889   case $ac_file in
13890   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13891   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13892   esac \
13893   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13894  ;;
13895   :H)
13896   #
13897   # CONFIG_HEADER
13898   #
13899   if test x"$ac_file" != x-; then
13900     {
13901       $as_echo "/* $configure_input  */" \
13902       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13903     } >"$ac_tmp/config.h" \
13904       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13905     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13906       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13907 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13908     else
13909       rm -f "$ac_file"
13910       mv "$ac_tmp/config.h" "$ac_file" \
13911         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13912     fi
13913   else
13914     $as_echo "/* $configure_input  */" \
13915       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13916       || as_fn_error $? "could not create -" "$LINENO" 5
13917   fi
13918 # Compute "$ac_file"'s index in $config_headers.
13919 _am_arg="$ac_file"
13920 _am_stamp_count=1
13921 for _am_header in $config_headers :; do
13922   case $_am_header in
13923     $_am_arg | $_am_arg:* )
13924       break ;;
13925     * )
13926       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13927   esac
13928 done
13929 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13930 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13931          X"$_am_arg" : 'X\(//\)[^/]' \| \
13932          X"$_am_arg" : 'X\(//\)$' \| \
13933          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13934 $as_echo X"$_am_arg" |
13935     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13936             s//\1/
13937             q
13938           }
13939           /^X\(\/\/\)[^/].*/{
13940             s//\1/
13941             q
13942           }
13943           /^X\(\/\/\)$/{
13944             s//\1/
13945             q
13946           }
13947           /^X\(\/\).*/{
13948             s//\1/
13949             q
13950           }
13951           s/.*/./; q'`/stamp-h$_am_stamp_count
13952  ;;
13953
13954   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13955 $as_echo "$as_me: executing $ac_file commands" >&6;}
13956  ;;
13957   esac
13958
13959
13960   case $ac_file$ac_mode in
13961     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13962   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13963   # are listed without --file.  Let's play safe and only enable the eval
13964   # if we detect the quoting.
13965   case $CONFIG_FILES in
13966   *\'*) eval set x "$CONFIG_FILES" ;;
13967   *)   set x $CONFIG_FILES ;;
13968   esac
13969   shift
13970   for mf
13971   do
13972     # Strip MF so we end up with the name of the file.
13973     mf=`echo "$mf" | sed -e 's/:.*$//'`
13974     # Check whether this is an Automake generated Makefile or not.
13975     # We used to match only the files named `Makefile.in', but
13976     # some people rename them; so instead we look at the file content.
13977     # Grep'ing the first line is not enough: some people post-process
13978     # each Makefile.in and add a new line on top of each file to say so.
13979     # Grep'ing the whole file is not good either: AIX grep has a line
13980     # limit of 2048, but all sed's we know have understand at least 4000.
13981     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13982       dirpart=`$as_dirname -- "$mf" ||
13983 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13984          X"$mf" : 'X\(//\)[^/]' \| \
13985          X"$mf" : 'X\(//\)$' \| \
13986          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13987 $as_echo X"$mf" |
13988     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13989             s//\1/
13990             q
13991           }
13992           /^X\(\/\/\)[^/].*/{
13993             s//\1/
13994             q
13995           }
13996           /^X\(\/\/\)$/{
13997             s//\1/
13998             q
13999           }
14000           /^X\(\/\).*/{
14001             s//\1/
14002             q
14003           }
14004           s/.*/./; q'`
14005     else
14006       continue
14007     fi
14008     # Extract the definition of DEPDIR, am__include, and am__quote
14009     # from the Makefile without running `make'.
14010     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14011     test -z "$DEPDIR" && continue
14012     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14013     test -z "am__include" && continue
14014     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14015     # When using ansi2knr, U may be empty or an underscore; expand it
14016     U=`sed -n 's/^U = //p' < "$mf"`
14017     # Find all dependency output files, they are included files with
14018     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14019     # simplest approach to changing $(DEPDIR) to its actual value in the
14020     # expansion.
14021     for file in `sed -n "
14022       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14023          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14024       # Make sure the directory exists.
14025       test -f "$dirpart/$file" && continue
14026       fdir=`$as_dirname -- "$file" ||
14027 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14028          X"$file" : 'X\(//\)[^/]' \| \
14029          X"$file" : 'X\(//\)$' \| \
14030          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14031 $as_echo X"$file" |
14032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14033             s//\1/
14034             q
14035           }
14036           /^X\(\/\/\)[^/].*/{
14037             s//\1/
14038             q
14039           }
14040           /^X\(\/\/\)$/{
14041             s//\1/
14042             q
14043           }
14044           /^X\(\/\).*/{
14045             s//\1/
14046             q
14047           }
14048           s/.*/./; q'`
14049       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14050       # echo "creating $dirpart/$file"
14051       echo '# dummy' > "$dirpart/$file"
14052     done
14053   done
14054 }
14055  ;;
14056     "libtool":C)
14057
14058     # See if we are running on zsh, and set the options which allow our
14059     # commands through without removal of \ escapes.
14060     if test -n "${ZSH_VERSION+set}" ; then
14061       setopt NO_GLOB_SUBST
14062     fi
14063
14064     cfgfile="${ofile}T"
14065     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14066     $RM "$cfgfile"
14067
14068     cat <<_LT_EOF >> "$cfgfile"
14069 #! $SHELL
14070
14071 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14072 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14073 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14074 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14075 #
14076 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14077 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14078 #                 Inc.
14079 #   Written by Gordon Matzigkeit, 1996
14080 #
14081 #   This file is part of GNU Libtool.
14082 #
14083 # GNU Libtool is free software; you can redistribute it and/or
14084 # modify it under the terms of the GNU General Public License as
14085 # published by the Free Software Foundation; either version 2 of
14086 # the License, or (at your option) any later version.
14087 #
14088 # As a special exception to the GNU General Public License,
14089 # if you distribute this file as part of a program or library that
14090 # is built using GNU Libtool, you may include this file under the
14091 # same distribution terms that you use for the rest of that program.
14092 #
14093 # GNU Libtool is distributed in the hope that it will be useful,
14094 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14095 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14096 # GNU General Public License for more details.
14097 #
14098 # You should have received a copy of the GNU General Public License
14099 # along with GNU Libtool; see the file COPYING.  If not, a copy
14100 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14101 # obtained by writing to the Free Software Foundation, Inc.,
14102 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14103
14104
14105 # The names of the tagged configurations supported by this script.
14106 available_tags=""
14107
14108 # ### BEGIN LIBTOOL CONFIG
14109
14110 # Which release of libtool.m4 was used?
14111 macro_version=$macro_version
14112 macro_revision=$macro_revision
14113
14114 # Whether or not to build shared libraries.
14115 build_libtool_libs=$enable_shared
14116
14117 # Whether or not to build static libraries.
14118 build_old_libs=$enable_static
14119
14120 # What type of objects to build.
14121 pic_mode=$pic_mode
14122
14123 # Whether or not to optimize for fast installation.
14124 fast_install=$enable_fast_install
14125
14126 # Shell to use when invoking shell scripts.
14127 SHELL=$lt_SHELL
14128
14129 # An echo program that protects backslashes.
14130 ECHO=$lt_ECHO
14131
14132 # The host system.
14133 host_alias=$host_alias
14134 host=$host
14135 host_os=$host_os
14136
14137 # The build system.
14138 build_alias=$build_alias
14139 build=$build
14140 build_os=$build_os
14141
14142 # A sed program that does not truncate output.
14143 SED=$lt_SED
14144
14145 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14146 Xsed="\$SED -e 1s/^X//"
14147
14148 # A grep program that handles long lines.
14149 GREP=$lt_GREP
14150
14151 # An ERE matcher.
14152 EGREP=$lt_EGREP
14153
14154 # A literal string matcher.
14155 FGREP=$lt_FGREP
14156
14157 # A BSD- or MS-compatible name lister.
14158 NM=$lt_NM
14159
14160 # Whether we need soft or hard links.
14161 LN_S=$lt_LN_S
14162
14163 # What is the maximum length of a command?
14164 max_cmd_len=$max_cmd_len
14165
14166 # Object file suffix (normally "o").
14167 objext=$ac_objext
14168
14169 # Executable file suffix (normally "").
14170 exeext=$exeext
14171
14172 # whether the shell understands "unset".
14173 lt_unset=$lt_unset
14174
14175 # turn spaces into newlines.
14176 SP2NL=$lt_lt_SP2NL
14177
14178 # turn newlines into spaces.
14179 NL2SP=$lt_lt_NL2SP
14180
14181 # convert \$build file names to \$host format.
14182 to_host_file_cmd=$lt_cv_to_host_file_cmd
14183
14184 # convert \$build files to toolchain format.
14185 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14186
14187 # An object symbol dumper.
14188 OBJDUMP=$lt_OBJDUMP
14189
14190 # Method to check whether dependent libraries are shared objects.
14191 deplibs_check_method=$lt_deplibs_check_method
14192
14193 # Command to use when deplibs_check_method = "file_magic".
14194 file_magic_cmd=$lt_file_magic_cmd
14195
14196 # How to find potential files when deplibs_check_method = "file_magic".
14197 file_magic_glob=$lt_file_magic_glob
14198
14199 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14200 want_nocaseglob=$lt_want_nocaseglob
14201
14202 # DLL creation program.
14203 DLLTOOL=$lt_DLLTOOL
14204
14205 # Command to associate shared and link libraries.
14206 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14207
14208 # The archiver.
14209 AR=$lt_AR
14210
14211 # Flags to create an archive.
14212 AR_FLAGS=$lt_AR_FLAGS
14213
14214 # How to feed a file listing to the archiver.
14215 archiver_list_spec=$lt_archiver_list_spec
14216
14217 # A symbol stripping program.
14218 STRIP=$lt_STRIP
14219
14220 # Commands used to install an old-style archive.
14221 RANLIB=$lt_RANLIB
14222 old_postinstall_cmds=$lt_old_postinstall_cmds
14223 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14224
14225 # Whether to use a lock for old archive extraction.
14226 lock_old_archive_extraction=$lock_old_archive_extraction
14227
14228 # A C compiler.
14229 LTCC=$lt_CC
14230
14231 # LTCC compiler flags.
14232 LTCFLAGS=$lt_CFLAGS
14233
14234 # Take the output of nm and produce a listing of raw symbols and C names.
14235 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14236
14237 # Transform the output of nm in a proper C declaration.
14238 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14239
14240 # Transform the output of nm in a C name address pair.
14241 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14242
14243 # Transform the output of nm in a C name address pair when lib prefix is needed.
14244 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14245
14246 # Specify filename containing input files for \$NM.
14247 nm_file_list_spec=$lt_nm_file_list_spec
14248
14249 # The root where to search for dependent libraries,and in which our libraries should be installed.
14250 lt_sysroot=$lt_sysroot
14251
14252 # The name of the directory that contains temporary libtool files.
14253 objdir=$objdir
14254
14255 # Used to examine libraries when file_magic_cmd begins with "file".
14256 MAGIC_CMD=$MAGIC_CMD
14257
14258 # Must we lock files when doing compilation?
14259 need_locks=$lt_need_locks
14260
14261 # Manifest tool.
14262 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14263
14264 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14265 DSYMUTIL=$lt_DSYMUTIL
14266
14267 # Tool to change global to local symbols on Mac OS X.
14268 NMEDIT=$lt_NMEDIT
14269
14270 # Tool to manipulate fat objects and archives on Mac OS X.
14271 LIPO=$lt_LIPO
14272
14273 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14274 OTOOL=$lt_OTOOL
14275
14276 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14277 OTOOL64=$lt_OTOOL64
14278
14279 # Old archive suffix (normally "a").
14280 libext=$libext
14281
14282 # Shared library suffix (normally ".so").
14283 shrext_cmds=$lt_shrext_cmds
14284
14285 # The commands to extract the exported symbol list from a shared archive.
14286 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14287
14288 # Variables whose values should be saved in libtool wrapper scripts and
14289 # restored at link time.
14290 variables_saved_for_relink=$lt_variables_saved_for_relink
14291
14292 # Do we need the "lib" prefix for modules?
14293 need_lib_prefix=$need_lib_prefix
14294
14295 # Do we need a version for libraries?
14296 need_version=$need_version
14297
14298 # Library versioning type.
14299 version_type=$version_type
14300
14301 # Shared library runtime path variable.
14302 runpath_var=$runpath_var
14303
14304 # Shared library path variable.
14305 shlibpath_var=$shlibpath_var
14306
14307 # Is shlibpath searched before the hard-coded library search path?
14308 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14309
14310 # Format of library name prefix.
14311 libname_spec=$lt_libname_spec
14312
14313 # List of archive names.  First name is the real one, the rest are links.
14314 # The last name is the one that the linker finds with -lNAME
14315 library_names_spec=$lt_library_names_spec
14316
14317 # The coded name of the library, if different from the real name.
14318 soname_spec=$lt_soname_spec
14319
14320 # Permission mode override for installation of shared libraries.
14321 install_override_mode=$lt_install_override_mode
14322
14323 # Command to use after installation of a shared archive.
14324 postinstall_cmds=$lt_postinstall_cmds
14325
14326 # Command to use after uninstallation of a shared archive.
14327 postuninstall_cmds=$lt_postuninstall_cmds
14328
14329 # Commands used to finish a libtool library installation in a directory.
14330 finish_cmds=$lt_finish_cmds
14331
14332 # As "finish_cmds", except a single script fragment to be evaled but
14333 # not shown.
14334 finish_eval=$lt_finish_eval
14335
14336 # Whether we should hardcode library paths into libraries.
14337 hardcode_into_libs=$hardcode_into_libs
14338
14339 # Compile-time system search path for libraries.
14340 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14341
14342 # Run-time system search path for libraries.
14343 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14344
14345 # Whether dlopen is supported.
14346 dlopen_support=$enable_dlopen
14347
14348 # Whether dlopen of programs is supported.
14349 dlopen_self=$enable_dlopen_self
14350
14351 # Whether dlopen of statically linked programs is supported.
14352 dlopen_self_static=$enable_dlopen_self_static
14353
14354 # Commands to strip libraries.
14355 old_striplib=$lt_old_striplib
14356 striplib=$lt_striplib
14357
14358
14359 # The linker used to build libraries.
14360 LD=$lt_LD
14361
14362 # How to create reloadable object files.
14363 reload_flag=$lt_reload_flag
14364 reload_cmds=$lt_reload_cmds
14365
14366 # Commands used to build an old-style archive.
14367 old_archive_cmds=$lt_old_archive_cmds
14368
14369 # A language specific compiler.
14370 CC=$lt_compiler
14371
14372 # Is the compiler the GNU compiler?
14373 with_gcc=$GCC
14374
14375 # Compiler flag to turn off builtin functions.
14376 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14377
14378 # Additional compiler flags for building library objects.
14379 pic_flag=$lt_lt_prog_compiler_pic
14380
14381 # How to pass a linker flag through the compiler.
14382 wl=$lt_lt_prog_compiler_wl
14383
14384 # Compiler flag to prevent dynamic linking.
14385 link_static_flag=$lt_lt_prog_compiler_static
14386
14387 # Does compiler simultaneously support -c and -o options?
14388 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14389
14390 # Whether or not to add -lc for building shared libraries.
14391 build_libtool_need_lc=$archive_cmds_need_lc
14392
14393 # Whether or not to disallow shared libs when runtime libs are static.
14394 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14395
14396 # Compiler flag to allow reflexive dlopens.
14397 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14398
14399 # Compiler flag to generate shared objects directly from archives.
14400 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14401
14402 # Whether the compiler copes with passing no objects directly.
14403 compiler_needs_object=$lt_compiler_needs_object
14404
14405 # Create an old-style archive from a shared archive.
14406 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14407
14408 # Create a temporary old-style archive to link instead of a shared archive.
14409 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14410
14411 # Commands used to build a shared archive.
14412 archive_cmds=$lt_archive_cmds
14413 archive_expsym_cmds=$lt_archive_expsym_cmds
14414
14415 # Commands used to build a loadable module if different from building
14416 # a shared archive.
14417 module_cmds=$lt_module_cmds
14418 module_expsym_cmds=$lt_module_expsym_cmds
14419
14420 # Whether we are building with GNU ld or not.
14421 with_gnu_ld=$lt_with_gnu_ld
14422
14423 # Flag that allows shared libraries with undefined symbols to be built.
14424 allow_undefined_flag=$lt_allow_undefined_flag
14425
14426 # Flag that enforces no undefined symbols.
14427 no_undefined_flag=$lt_no_undefined_flag
14428
14429 # Flag to hardcode \$libdir into a binary during linking.
14430 # This must work even if \$libdir does not exist
14431 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14432
14433 # If ld is used when linking, flag to hardcode \$libdir into a binary
14434 # during linking.  This must work even if \$libdir does not exist.
14435 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14436
14437 # Whether we need a single "-rpath" flag with a separated argument.
14438 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14439
14440 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14441 # DIR into the resulting binary.
14442 hardcode_direct=$hardcode_direct
14443
14444 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14445 # DIR into the resulting binary and the resulting library dependency is
14446 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14447 # library is relocated.
14448 hardcode_direct_absolute=$hardcode_direct_absolute
14449
14450 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14451 # into the resulting binary.
14452 hardcode_minus_L=$hardcode_minus_L
14453
14454 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14455 # into the resulting binary.
14456 hardcode_shlibpath_var=$hardcode_shlibpath_var
14457
14458 # Set to "yes" if building a shared library automatically hardcodes DIR
14459 # into the library and all subsequent libraries and executables linked
14460 # against it.
14461 hardcode_automatic=$hardcode_automatic
14462
14463 # Set to yes if linker adds runtime paths of dependent libraries
14464 # to runtime path list.
14465 inherit_rpath=$inherit_rpath
14466
14467 # Whether libtool must link a program against all its dependency libraries.
14468 link_all_deplibs=$link_all_deplibs
14469
14470 # Set to "yes" if exported symbols are required.
14471 always_export_symbols=$always_export_symbols
14472
14473 # The commands to list exported symbols.
14474 export_symbols_cmds=$lt_export_symbols_cmds
14475
14476 # Symbols that should not be listed in the preloaded symbols.
14477 exclude_expsyms=$lt_exclude_expsyms
14478
14479 # Symbols that must always be exported.
14480 include_expsyms=$lt_include_expsyms
14481
14482 # Commands necessary for linking programs (against libraries) with templates.
14483 prelink_cmds=$lt_prelink_cmds
14484
14485 # Commands necessary for finishing linking programs.
14486 postlink_cmds=$lt_postlink_cmds
14487
14488 # Specify filename containing input files.
14489 file_list_spec=$lt_file_list_spec
14490
14491 # How to hardcode a shared library path into an executable.
14492 hardcode_action=$hardcode_action
14493
14494 # ### END LIBTOOL CONFIG
14495
14496 _LT_EOF
14497
14498   case $host_os in
14499   aix3*)
14500     cat <<\_LT_EOF >> "$cfgfile"
14501 # AIX sometimes has problems with the GCC collect2 program.  For some
14502 # reason, if we set the COLLECT_NAMES environment variable, the problems
14503 # vanish in a puff of smoke.
14504 if test "X${COLLECT_NAMES+set}" != Xset; then
14505   COLLECT_NAMES=
14506   export COLLECT_NAMES
14507 fi
14508 _LT_EOF
14509     ;;
14510   esac
14511
14512
14513 ltmain="$ac_aux_dir/ltmain.sh"
14514
14515
14516   # We use sed instead of cat because bash on DJGPP gets confused if
14517   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14518   # text mode, it properly converts lines to CR/LF.  This bash problem
14519   # is reportedly fixed, but why not run on old versions too?
14520   sed '$q' "$ltmain" >> "$cfgfile" \
14521      || (rm -f "$cfgfile"; exit 1)
14522
14523   if test x"$xsi_shell" = xyes; then
14524   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14525 func_dirname ()\
14526 {\
14527 \    case ${1} in\
14528 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14529 \      *  ) func_dirname_result="${3}" ;;\
14530 \    esac\
14531 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14532   && mv -f "$cfgfile.tmp" "$cfgfile" \
14533     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14534 test 0 -eq $? || _lt_function_replace_fail=:
14535
14536
14537   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14538 func_basename ()\
14539 {\
14540 \    func_basename_result="${1##*/}"\
14541 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14542   && mv -f "$cfgfile.tmp" "$cfgfile" \
14543     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14544 test 0 -eq $? || _lt_function_replace_fail=:
14545
14546
14547   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14548 func_dirname_and_basename ()\
14549 {\
14550 \    case ${1} in\
14551 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14552 \      *  ) func_dirname_result="${3}" ;;\
14553 \    esac\
14554 \    func_basename_result="${1##*/}"\
14555 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14556   && mv -f "$cfgfile.tmp" "$cfgfile" \
14557     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14558 test 0 -eq $? || _lt_function_replace_fail=:
14559
14560
14561   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14562 func_stripname ()\
14563 {\
14564 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14565 \    # positional parameters, so assign one to ordinary parameter first.\
14566 \    func_stripname_result=${3}\
14567 \    func_stripname_result=${func_stripname_result#"${1}"}\
14568 \    func_stripname_result=${func_stripname_result%"${2}"}\
14569 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14570   && mv -f "$cfgfile.tmp" "$cfgfile" \
14571     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14572 test 0 -eq $? || _lt_function_replace_fail=:
14573
14574
14575   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14576 func_split_long_opt ()\
14577 {\
14578 \    func_split_long_opt_name=${1%%=*}\
14579 \    func_split_long_opt_arg=${1#*=}\
14580 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14581   && mv -f "$cfgfile.tmp" "$cfgfile" \
14582     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14583 test 0 -eq $? || _lt_function_replace_fail=:
14584
14585
14586   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14587 func_split_short_opt ()\
14588 {\
14589 \    func_split_short_opt_arg=${1#??}\
14590 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14591 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14592   && mv -f "$cfgfile.tmp" "$cfgfile" \
14593     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14594 test 0 -eq $? || _lt_function_replace_fail=:
14595
14596
14597   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14598 func_lo2o ()\
14599 {\
14600 \    case ${1} in\
14601 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14602 \      *)    func_lo2o_result=${1} ;;\
14603 \    esac\
14604 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14605   && mv -f "$cfgfile.tmp" "$cfgfile" \
14606     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14607 test 0 -eq $? || _lt_function_replace_fail=:
14608
14609
14610   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14611 func_xform ()\
14612 {\
14613     func_xform_result=${1%.*}.lo\
14614 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14615   && mv -f "$cfgfile.tmp" "$cfgfile" \
14616     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14617 test 0 -eq $? || _lt_function_replace_fail=:
14618
14619
14620   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14621 func_arith ()\
14622 {\
14623     func_arith_result=$(( $* ))\
14624 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14625   && mv -f "$cfgfile.tmp" "$cfgfile" \
14626     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14627 test 0 -eq $? || _lt_function_replace_fail=:
14628
14629
14630   sed -e '/^func_len ()$/,/^} # func_len /c\
14631 func_len ()\
14632 {\
14633     func_len_result=${#1}\
14634 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14635   && mv -f "$cfgfile.tmp" "$cfgfile" \
14636     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14637 test 0 -eq $? || _lt_function_replace_fail=:
14638
14639 fi
14640
14641 if test x"$lt_shell_append" = xyes; then
14642   sed -e '/^func_append ()$/,/^} # func_append /c\
14643 func_append ()\
14644 {\
14645     eval "${1}+=\\${2}"\
14646 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14647   && mv -f "$cfgfile.tmp" "$cfgfile" \
14648     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14649 test 0 -eq $? || _lt_function_replace_fail=:
14650
14651
14652   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14653 func_append_quoted ()\
14654 {\
14655 \    func_quote_for_eval "${2}"\
14656 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14657 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14658   && mv -f "$cfgfile.tmp" "$cfgfile" \
14659     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14660 test 0 -eq $? || _lt_function_replace_fail=:
14661
14662
14663   # Save a `func_append' function call where possible by direct use of '+='
14664   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14665     && mv -f "$cfgfile.tmp" "$cfgfile" \
14666       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14667   test 0 -eq $? || _lt_function_replace_fail=:
14668 else
14669   # Save a `func_append' function call even when '+=' is not available
14670   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14671     && mv -f "$cfgfile.tmp" "$cfgfile" \
14672       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14673   test 0 -eq $? || _lt_function_replace_fail=:
14674 fi
14675
14676 if test x"$_lt_function_replace_fail" = x":"; then
14677   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14678 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14679 fi
14680
14681
14682    mv -f "$cfgfile" "$ofile" ||
14683     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14684   chmod +x "$ofile"
14685
14686  ;;
14687
14688   esac
14689 done # for ac_tag
14690
14691
14692 as_fn_exit 0
14693 _ACEOF
14694 ac_clean_files=$ac_clean_files_save
14695
14696 test $ac_write_fail = 0 ||
14697   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14698
14699
14700 # configure is writing to config.log, and then calls config.status.
14701 # config.status does its own redirection, appending to config.log.
14702 # Unfortunately, on DOS this fails, as config.log is still kept open
14703 # by configure, so config.status won't be able to write to it; its
14704 # output is simply discarded.  So we exec the FD to /dev/null,
14705 # effectively closing config.log, so it can be properly (re)opened and
14706 # appended to by config.status.  When coming back to configure, we
14707 # need to make the FD available again.
14708 if test "$no_create" != yes; then
14709   ac_cs_success=:
14710   ac_config_status_args=
14711   test "$silent" = yes &&
14712     ac_config_status_args="$ac_config_status_args --quiet"
14713   exec 5>/dev/null
14714   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14715   exec 5>>config.log
14716   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14717   # would make configure fail if this is the last instruction.
14718   $ac_cs_success || as_fn_exit 1
14719 fi
14720 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14721   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14722 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14723 fi
14724
14725