]> git.jsancho.org Git - gacela.git/blob - configure
Experimenting with autotools
[gacela.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for gacela 0.5.
4 #
5 # Report bugs to <jsf@jsancho.org>.
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 jsf@jsancho.org
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
253 $0: have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='gacela'
572 PACKAGE_TARNAME='gacela'
573 PACKAGE_VERSION='0.5'
574 PACKAGE_STRING='gacela 0.5'
575 PACKAGE_BUGREPORT='jsf@jsancho.org'
576 PACKAGE_URL=''
577
578 # Factoring default headers for most tests.
579 ac_includes_default="\
580 #include <stdio.h>
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
583 #endif
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
586 #endif
587 #ifdef STDC_HEADERS
588 # include <stdlib.h>
589 # include <stddef.h>
590 #else
591 # ifdef HAVE_STDLIB_H
592 #  include <stdlib.h>
593 # endif
594 #endif
595 #ifdef HAVE_STRING_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597 #  include <memory.h>
598 # endif
599 # include <string.h>
600 #endif
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
603 #endif
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
606 #endif
607 #ifdef HAVE_STDINT_H
608 # include <stdint.h>
609 #endif
610 #ifdef HAVE_UNISTD_H
611 # include <unistd.h>
612 #endif"
613
614 ac_unique_file="src/sdl.c"
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 SDL_LIBS
620 GUILE_LDFLAGS
621 GUILE_CFLAGS
622 GUILE_LTLIBS
623 GUILE_LIBS
624 GUILE_TOOLS
625 GUILE_CONFIG
626 GUILE
627 CPP
628 OTOOL64
629 OTOOL
630 LIPO
631 NMEDIT
632 DSYMUTIL
633 MANIFEST_TOOL
634 RANLIB
635 ac_ct_AR
636 AR
637 DLLTOOL
638 OBJDUMP
639 LN_S
640 NM
641 ac_ct_DUMPBIN
642 DUMPBIN
643 LD
644 FGREP
645 EGREP
646 GREP
647 SED
648 am__fastdepCC_FALSE
649 am__fastdepCC_TRUE
650 CCDEPMODE
651 AMDEPBACKSLASH
652 AMDEP_FALSE
653 AMDEP_TRUE
654 am__quote
655 am__include
656 DEPDIR
657 OBJEXT
658 EXEEXT
659 ac_ct_CC
660 CPPFLAGS
661 LDFLAGS
662 CFLAGS
663 CC
664 host_os
665 host_vendor
666 host_cpu
667 host
668 build_os
669 build_vendor
670 build_cpu
671 build
672 LIBTOOL
673 am__untar
674 am__tar
675 AMTAR
676 am__leading_dot
677 SET_MAKE
678 AWK
679 mkdir_p
680 MKDIR_P
681 INSTALL_STRIP_PROGRAM
682 STRIP
683 install_sh
684 MAKEINFO
685 AUTOHEADER
686 AUTOMAKE
687 AUTOCONF
688 ACLOCAL
689 VERSION
690 PACKAGE
691 CYGPATH_W
692 am__isrc
693 INSTALL_DATA
694 INSTALL_SCRIPT
695 INSTALL_PROGRAM
696 target_alias
697 host_alias
698 build_alias
699 LIBS
700 ECHO_T
701 ECHO_N
702 ECHO_C
703 DEFS
704 mandir
705 localedir
706 libdir
707 psdir
708 pdfdir
709 dvidir
710 htmldir
711 infodir
712 docdir
713 oldincludedir
714 includedir
715 localstatedir
716 sharedstatedir
717 sysconfdir
718 datadir
719 datarootdir
720 libexecdir
721 sbindir
722 bindir
723 program_transform_name
724 prefix
725 exec_prefix
726 PACKAGE_URL
727 PACKAGE_BUGREPORT
728 PACKAGE_STRING
729 PACKAGE_VERSION
730 PACKAGE_TARNAME
731 PACKAGE_NAME
732 PATH_SEPARATOR
733 SHELL'
734 ac_subst_files=''
735 ac_user_opts='
736 enable_option_checking
737 enable_shared
738 enable_static
739 with_pic
740 enable_fast_install
741 enable_dependency_tracking
742 with_gnu_ld
743 with_sysroot
744 enable_libtool_lock
745 enable_rpath
746 '
747       ac_precious_vars='build_alias
748 host_alias
749 target_alias
750 CC
751 CFLAGS
752 LDFLAGS
753 LIBS
754 CPPFLAGS
755 CPP'
756
757
758 # Initialize some variables set by options.
759 ac_init_help=
760 ac_init_version=false
761 ac_unrecognized_opts=
762 ac_unrecognized_sep=
763 # The variables have the same names as the options, with
764 # dashes changed to underlines.
765 cache_file=/dev/null
766 exec_prefix=NONE
767 no_create=
768 no_recursion=
769 prefix=NONE
770 program_prefix=NONE
771 program_suffix=NONE
772 program_transform_name=s,x,x,
773 silent=
774 site=
775 srcdir=
776 verbose=
777 x_includes=NONE
778 x_libraries=NONE
779
780 # Installation directory options.
781 # These are left unexpanded so users can "make install exec_prefix=/foo"
782 # and all the variables that are supposed to be based on exec_prefix
783 # by default will actually change.
784 # Use braces instead of parens because sh, perl, etc. also accept them.
785 # (The list follows the same order as the GNU Coding Standards.)
786 bindir='${exec_prefix}/bin'
787 sbindir='${exec_prefix}/sbin'
788 libexecdir='${exec_prefix}/libexec'
789 datarootdir='${prefix}/share'
790 datadir='${datarootdir}'
791 sysconfdir='${prefix}/etc'
792 sharedstatedir='${prefix}/com'
793 localstatedir='${prefix}/var'
794 includedir='${prefix}/include'
795 oldincludedir='/usr/include'
796 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
797 infodir='${datarootdir}/info'
798 htmldir='${docdir}'
799 dvidir='${docdir}'
800 pdfdir='${docdir}'
801 psdir='${docdir}'
802 libdir='${exec_prefix}/lib'
803 localedir='${datarootdir}/locale'
804 mandir='${datarootdir}/man'
805
806 ac_prev=
807 ac_dashdash=
808 for ac_option
809 do
810   # If the previous option needs an argument, assign it.
811   if test -n "$ac_prev"; then
812     eval $ac_prev=\$ac_option
813     ac_prev=
814     continue
815   fi
816
817   case $ac_option in
818   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819   *=)   ac_optarg= ;;
820   *)    ac_optarg=yes ;;
821   esac
822
823   # Accept the important Cygnus configure options, so we can diagnose typos.
824
825   case $ac_dashdash$ac_option in
826   --)
827     ac_dashdash=yes ;;
828
829   -bindir | --bindir | --bindi | --bind | --bin | --bi)
830     ac_prev=bindir ;;
831   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832     bindir=$ac_optarg ;;
833
834   -build | --build | --buil | --bui | --bu)
835     ac_prev=build_alias ;;
836   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837     build_alias=$ac_optarg ;;
838
839   -cache-file | --cache-file | --cache-fil | --cache-fi \
840   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841     ac_prev=cache_file ;;
842   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844     cache_file=$ac_optarg ;;
845
846   --config-cache | -C)
847     cache_file=config.cache ;;
848
849   -datadir | --datadir | --datadi | --datad)
850     ac_prev=datadir ;;
851   -datadir=* | --datadir=* | --datadi=* | --datad=*)
852     datadir=$ac_optarg ;;
853
854   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855   | --dataroo | --dataro | --datar)
856     ac_prev=datarootdir ;;
857   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859     datarootdir=$ac_optarg ;;
860
861   -disable-* | --disable-*)
862     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863     # Reject names that are not valid shell variable names.
864     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865       as_fn_error $? "invalid feature name: $ac_useropt"
866     ac_useropt_orig=$ac_useropt
867     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868     case $ac_user_opts in
869       *"
870 "enable_$ac_useropt"
871 "*) ;;
872       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873          ac_unrecognized_sep=', ';;
874     esac
875     eval enable_$ac_useropt=no ;;
876
877   -docdir | --docdir | --docdi | --doc | --do)
878     ac_prev=docdir ;;
879   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880     docdir=$ac_optarg ;;
881
882   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883     ac_prev=dvidir ;;
884   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885     dvidir=$ac_optarg ;;
886
887   -enable-* | --enable-*)
888     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889     # Reject names that are not valid shell variable names.
890     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891       as_fn_error $? "invalid feature name: $ac_useropt"
892     ac_useropt_orig=$ac_useropt
893     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894     case $ac_user_opts in
895       *"
896 "enable_$ac_useropt"
897 "*) ;;
898       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899          ac_unrecognized_sep=', ';;
900     esac
901     eval enable_$ac_useropt=\$ac_optarg ;;
902
903   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905   | --exec | --exe | --ex)
906     ac_prev=exec_prefix ;;
907   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909   | --exec=* | --exe=* | --ex=*)
910     exec_prefix=$ac_optarg ;;
911
912   -gas | --gas | --ga | --g)
913     # Obsolete; use --with-gas.
914     with_gas=yes ;;
915
916   -help | --help | --hel | --he | -h)
917     ac_init_help=long ;;
918   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919     ac_init_help=recursive ;;
920   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921     ac_init_help=short ;;
922
923   -host | --host | --hos | --ho)
924     ac_prev=host_alias ;;
925   -host=* | --host=* | --hos=* | --ho=*)
926     host_alias=$ac_optarg ;;
927
928   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929     ac_prev=htmldir ;;
930   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931   | --ht=*)
932     htmldir=$ac_optarg ;;
933
934   -includedir | --includedir | --includedi | --included | --include \
935   | --includ | --inclu | --incl | --inc)
936     ac_prev=includedir ;;
937   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938   | --includ=* | --inclu=* | --incl=* | --inc=*)
939     includedir=$ac_optarg ;;
940
941   -infodir | --infodir | --infodi | --infod | --info | --inf)
942     ac_prev=infodir ;;
943   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944     infodir=$ac_optarg ;;
945
946   -libdir | --libdir | --libdi | --libd)
947     ac_prev=libdir ;;
948   -libdir=* | --libdir=* | --libdi=* | --libd=*)
949     libdir=$ac_optarg ;;
950
951   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952   | --libexe | --libex | --libe)
953     ac_prev=libexecdir ;;
954   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955   | --libexe=* | --libex=* | --libe=*)
956     libexecdir=$ac_optarg ;;
957
958   -localedir | --localedir | --localedi | --localed | --locale)
959     ac_prev=localedir ;;
960   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961     localedir=$ac_optarg ;;
962
963   -localstatedir | --localstatedir | --localstatedi | --localstated \
964   | --localstate | --localstat | --localsta | --localst | --locals)
965     ac_prev=localstatedir ;;
966   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968     localstatedir=$ac_optarg ;;
969
970   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971     ac_prev=mandir ;;
972   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973     mandir=$ac_optarg ;;
974
975   -nfp | --nfp | --nf)
976     # Obsolete; use --without-fp.
977     with_fp=no ;;
978
979   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980   | --no-cr | --no-c | -n)
981     no_create=yes ;;
982
983   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985     no_recursion=yes ;;
986
987   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989   | --oldin | --oldi | --old | --ol | --o)
990     ac_prev=oldincludedir ;;
991   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994     oldincludedir=$ac_optarg ;;
995
996   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997     ac_prev=prefix ;;
998   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999     prefix=$ac_optarg ;;
1000
1001   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002   | --program-pre | --program-pr | --program-p)
1003     ac_prev=program_prefix ;;
1004   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006     program_prefix=$ac_optarg ;;
1007
1008   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009   | --program-suf | --program-su | --program-s)
1010     ac_prev=program_suffix ;;
1011   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013     program_suffix=$ac_optarg ;;
1014
1015   -program-transform-name | --program-transform-name \
1016   | --program-transform-nam | --program-transform-na \
1017   | --program-transform-n | --program-transform- \
1018   | --program-transform | --program-transfor \
1019   | --program-transfo | --program-transf \
1020   | --program-trans | --program-tran \
1021   | --progr-tra | --program-tr | --program-t)
1022     ac_prev=program_transform_name ;;
1023   -program-transform-name=* | --program-transform-name=* \
1024   | --program-transform-nam=* | --program-transform-na=* \
1025   | --program-transform-n=* | --program-transform-=* \
1026   | --program-transform=* | --program-transfor=* \
1027   | --program-transfo=* | --program-transf=* \
1028   | --program-trans=* | --program-tran=* \
1029   | --progr-tra=* | --program-tr=* | --program-t=*)
1030     program_transform_name=$ac_optarg ;;
1031
1032   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033     ac_prev=pdfdir ;;
1034   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035     pdfdir=$ac_optarg ;;
1036
1037   -psdir | --psdir | --psdi | --psd | --ps)
1038     ac_prev=psdir ;;
1039   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040     psdir=$ac_optarg ;;
1041
1042   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043   | -silent | --silent | --silen | --sile | --sil)
1044     silent=yes ;;
1045
1046   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047     ac_prev=sbindir ;;
1048   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049   | --sbi=* | --sb=*)
1050     sbindir=$ac_optarg ;;
1051
1052   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054   | --sharedst | --shareds | --shared | --share | --shar \
1055   | --sha | --sh)
1056     ac_prev=sharedstatedir ;;
1057   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060   | --sha=* | --sh=*)
1061     sharedstatedir=$ac_optarg ;;
1062
1063   -site | --site | --sit)
1064     ac_prev=site ;;
1065   -site=* | --site=* | --sit=*)
1066     site=$ac_optarg ;;
1067
1068   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069     ac_prev=srcdir ;;
1070   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071     srcdir=$ac_optarg ;;
1072
1073   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074   | --syscon | --sysco | --sysc | --sys | --sy)
1075     ac_prev=sysconfdir ;;
1076   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078     sysconfdir=$ac_optarg ;;
1079
1080   -target | --target | --targe | --targ | --tar | --ta | --t)
1081     ac_prev=target_alias ;;
1082   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083     target_alias=$ac_optarg ;;
1084
1085   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086     verbose=yes ;;
1087
1088   -version | --version | --versio | --versi | --vers | -V)
1089     ac_init_version=: ;;
1090
1091   -with-* | --with-*)
1092     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095       as_fn_error $? "invalid package name: $ac_useropt"
1096     ac_useropt_orig=$ac_useropt
1097     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098     case $ac_user_opts in
1099       *"
1100 "with_$ac_useropt"
1101 "*) ;;
1102       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103          ac_unrecognized_sep=', ';;
1104     esac
1105     eval with_$ac_useropt=\$ac_optarg ;;
1106
1107   -without-* | --without-*)
1108     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109     # Reject names that are not valid shell variable names.
1110     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111       as_fn_error $? "invalid package name: $ac_useropt"
1112     ac_useropt_orig=$ac_useropt
1113     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114     case $ac_user_opts in
1115       *"
1116 "with_$ac_useropt"
1117 "*) ;;
1118       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119          ac_unrecognized_sep=', ';;
1120     esac
1121     eval with_$ac_useropt=no ;;
1122
1123   --x)
1124     # Obsolete; use --with-x.
1125     with_x=yes ;;
1126
1127   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128   | --x-incl | --x-inc | --x-in | --x-i)
1129     ac_prev=x_includes ;;
1130   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132     x_includes=$ac_optarg ;;
1133
1134   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136     ac_prev=x_libraries ;;
1137   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139     x_libraries=$ac_optarg ;;
1140
1141   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1142 Try \`$0 --help' for more information"
1143     ;;
1144
1145   *=*)
1146     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147     # Reject names that are not valid shell variable names.
1148     case $ac_envvar in #(
1149       '' | [0-9]* | *[!_$as_cr_alnum]* )
1150       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1151     esac
1152     eval $ac_envvar=\$ac_optarg
1153     export $ac_envvar ;;
1154
1155   *)
1156     # FIXME: should be removed in autoconf 3.0.
1157     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1161     ;;
1162
1163   esac
1164 done
1165
1166 if test -n "$ac_prev"; then
1167   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168   as_fn_error $? "missing argument to $ac_option"
1169 fi
1170
1171 if test -n "$ac_unrecognized_opts"; then
1172   case $enable_option_checking in
1173     no) ;;
1174     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1175     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176   esac
1177 fi
1178
1179 # Check all directory arguments for consistency.
1180 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181                 datadir sysconfdir sharedstatedir localstatedir includedir \
1182                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183                 libdir localedir mandir
1184 do
1185   eval ac_val=\$$ac_var
1186   # Remove trailing slashes.
1187   case $ac_val in
1188     */ )
1189       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190       eval $ac_var=\$ac_val;;
1191   esac
1192   # Be sure to have absolute directory names.
1193   case $ac_val in
1194     [\\/$]* | ?:[\\/]* )  continue;;
1195     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196   esac
1197   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1198 done
1199
1200 # There might be people who depend on the old broken behavior: `$host'
1201 # used to hold the argument of --host etc.
1202 # FIXME: To remove some day.
1203 build=$build_alias
1204 host=$host_alias
1205 target=$target_alias
1206
1207 # FIXME: To remove some day.
1208 if test "x$host_alias" != x; then
1209   if test "x$build_alias" = x; then
1210     cross_compiling=maybe
1211     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1212     If a cross compiler is detected then cross compile mode will be used" >&2
1213   elif test "x$build_alias" != "x$host_alias"; then
1214     cross_compiling=yes
1215   fi
1216 fi
1217
1218 ac_tool_prefix=
1219 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220
1221 test "$silent" = yes && exec 6>/dev/null
1222
1223
1224 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225 ac_ls_di=`ls -di .` &&
1226 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227   as_fn_error $? "working directory cannot be determined"
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229   as_fn_error $? "pwd does not report name of working directory"
1230
1231
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234   ac_srcdir_defaulted=yes
1235   # Try the directory containing this script, then the parent directory.
1236   ac_confdir=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238          X"$as_myself" : 'X\(//\)[^/]' \| \
1239          X"$as_myself" : 'X\(//\)$' \| \
1240          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243             s//\1/
1244             q
1245           }
1246           /^X\(\/\/\)[^/].*/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\/\)$/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\).*/{
1255             s//\1/
1256             q
1257           }
1258           s/.*/./; q'`
1259   srcdir=$ac_confdir
1260   if test ! -r "$srcdir/$ac_unique_file"; then
1261     srcdir=..
1262   fi
1263 else
1264   ac_srcdir_defaulted=no
1265 fi
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269 fi
1270 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 ac_abs_confdir=`(
1272         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273         pwd)`
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1276   srcdir=.
1277 fi
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1281 case $srcdir in
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 esac
1284 for ac_var in $ac_precious_vars; do
1285   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286   eval ac_env_${ac_var}_value=\$${ac_var}
1287   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 done
1290
1291 #
1292 # Report the --help message.
1293 #
1294 if test "$ac_init_help" = "long"; then
1295   # Omit some internal or obsolete options to make the list less imposing.
1296   # This message is too long to be a string in the A/UX 3.1 sh.
1297   cat <<_ACEOF
1298 \`configure' configures gacela 0.5 to adapt to many kinds of systems.
1299
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1301
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE.  See below for descriptions of some of the useful variables.
1304
1305 Defaults for the options are specified in brackets.
1306
1307 Configuration:
1308   -h, --help              display this help and exit
1309       --help=short        display options specific to this package
1310       --help=recursive    display the short help of all the included packages
1311   -V, --version           display version information and exit
1312   -q, --quiet, --silent   do not print \`checking ...' messages
1313       --cache-file=FILE   cache test results in FILE [disabled]
1314   -C, --config-cache      alias for \`--cache-file=config.cache'
1315   -n, --no-create         do not create output files
1316       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1317
1318 Installation directories:
1319   --prefix=PREFIX         install architecture-independent files in PREFIX
1320                           [$ac_default_prefix]
1321   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1322                           [PREFIX]
1323
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1328
1329 For better control, use the options below.
1330
1331 Fine tuning of the installation directories:
1332   --bindir=DIR            user executables [EPREFIX/bin]
1333   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1334   --libexecdir=DIR        program executables [EPREFIX/libexec]
1335   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1336   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1337   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1338   --libdir=DIR            object code libraries [EPREFIX/lib]
1339   --includedir=DIR        C header files [PREFIX/include]
1340   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1341   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1342   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1343   --infodir=DIR           info documentation [DATAROOTDIR/info]
1344   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1345   --mandir=DIR            man documentation [DATAROOTDIR/man]
1346   --docdir=DIR            documentation root [DATAROOTDIR/doc/gacela]
1347   --htmldir=DIR           html documentation [DOCDIR]
1348   --dvidir=DIR            dvi documentation [DOCDIR]
1349   --pdfdir=DIR            pdf documentation [DOCDIR]
1350   --psdir=DIR             ps documentation [DOCDIR]
1351 _ACEOF
1352
1353   cat <<\_ACEOF
1354
1355 Program names:
1356   --program-prefix=PREFIX            prepend PREFIX to installed program names
1357   --program-suffix=SUFFIX            append SUFFIX to installed program names
1358   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1359
1360 System types:
1361   --build=BUILD     configure for building on BUILD [guessed]
1362   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1363 _ACEOF
1364 fi
1365
1366 if test -n "$ac_init_help"; then
1367   case $ac_init_help in
1368      short | recursive ) echo "Configuration of gacela 0.5:";;
1369    esac
1370   cat <<\_ACEOF
1371
1372 Optional Features:
1373   --disable-option-checking  ignore unrecognized --enable/--with options
1374   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1375   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1376   --enable-shared[=PKGS]  build shared libraries [default=yes]
1377   --enable-static[=PKGS]  build static libraries [default=yes]
1378   --enable-fast-install[=PKGS]
1379                           optimize for fast installation [default=yes]
1380   --disable-dependency-tracking  speeds up one-time build
1381   --enable-dependency-tracking   do not reject slow dependency extractors
1382   --disable-libtool-lock  avoid locking (might break parallel builds)
1383   --disable-rpath         do not hardcode runtime library paths
1384
1385 Optional Packages:
1386   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1387   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1388   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1389                           both]
1390   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1391   --with-sysroot=DIR Search for dependent libraries within DIR
1392                         (or the compiler's sysroot if not specified).
1393   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1394
1395 Some influential environment variables:
1396   CC          C compiler command
1397   CFLAGS      C compiler flags
1398   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1399               nonstandard directory <lib dir>
1400   LIBS        libraries to pass to the linker, e.g. -l<library>
1401   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1402               you have headers in a nonstandard directory <include dir>
1403   CPP         C preprocessor
1404
1405 Use these variables to override the choices made by `configure' or to help
1406 it to find libraries and programs with nonstandard names/locations.
1407
1408 Report bugs to <jsf@jsancho.org>.
1409 _ACEOF
1410 ac_status=$?
1411 fi
1412
1413 if test "$ac_init_help" = "recursive"; then
1414   # If there are subdirs, report their specific --help.
1415   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1416     test -d "$ac_dir" ||
1417       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1418       continue
1419     ac_builddir=.
1420
1421 case "$ac_dir" in
1422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *)
1424   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1425   # A ".." for each directory in $ac_dir_suffix.
1426   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1427   case $ac_top_builddir_sub in
1428   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430   esac ;;
1431 esac
1432 ac_abs_top_builddir=$ac_pwd
1433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434 # for backward compatibility:
1435 ac_top_builddir=$ac_top_build_prefix
1436
1437 case $srcdir in
1438   .)  # We are building in place.
1439     ac_srcdir=.
1440     ac_top_srcdir=$ac_top_builddir_sub
1441     ac_abs_top_srcdir=$ac_pwd ;;
1442   [\\/]* | ?:[\\/]* )  # Absolute name.
1443     ac_srcdir=$srcdir$ac_dir_suffix;
1444     ac_top_srcdir=$srcdir
1445     ac_abs_top_srcdir=$srcdir ;;
1446   *) # Relative name.
1447     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448     ac_top_srcdir=$ac_top_build_prefix$srcdir
1449     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1450 esac
1451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1452
1453     cd "$ac_dir" || { ac_status=$?; continue; }
1454     # Check for guested configure.
1455     if test -f "$ac_srcdir/configure.gnu"; then
1456       echo &&
1457       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458     elif test -f "$ac_srcdir/configure"; then
1459       echo &&
1460       $SHELL "$ac_srcdir/configure" --help=recursive
1461     else
1462       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463     fi || ac_status=$?
1464     cd "$ac_pwd" || { ac_status=$?; break; }
1465   done
1466 fi
1467
1468 test -n "$ac_init_help" && exit $ac_status
1469 if $ac_init_version; then
1470   cat <<\_ACEOF
1471 gacela configure 0.5
1472 generated by GNU Autoconf 2.68
1473
1474 Copyright (C) 2010 Free Software Foundation, Inc.
1475 This configure script is free software; the Free Software Foundation
1476 gives unlimited permission to copy, distribute and modify it.
1477 _ACEOF
1478   exit
1479 fi
1480
1481 ## ------------------------ ##
1482 ## Autoconf initialization. ##
1483 ## ------------------------ ##
1484
1485 # ac_fn_c_try_compile LINENO
1486 # --------------------------
1487 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1488 ac_fn_c_try_compile ()
1489 {
1490   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491   rm -f conftest.$ac_objext
1492   if { { ac_try="$ac_compile"
1493 case "(($ac_try" in
1494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495   *) ac_try_echo=$ac_try;;
1496 esac
1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498 $as_echo "$ac_try_echo"; } >&5
1499   (eval "$ac_compile") 2>conftest.err
1500   ac_status=$?
1501   if test -s conftest.err; then
1502     grep -v '^ *+' conftest.err >conftest.er1
1503     cat conftest.er1 >&5
1504     mv -f conftest.er1 conftest.err
1505   fi
1506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507   test $ac_status = 0; } && {
1508          test -z "$ac_c_werror_flag" ||
1509          test ! -s conftest.err
1510        } && test -s conftest.$ac_objext; then :
1511   ac_retval=0
1512 else
1513   $as_echo "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.$ac_ext >&5
1515
1516         ac_retval=1
1517 fi
1518   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519   as_fn_set_status $ac_retval
1520
1521 } # ac_fn_c_try_compile
1522
1523 # ac_fn_c_try_link LINENO
1524 # -----------------------
1525 # Try to link conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_link ()
1527 {
1528   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529   rm -f conftest.$ac_objext conftest$ac_exeext
1530   if { { ac_try="$ac_link"
1531 case "(($ac_try" in
1532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533   *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537   (eval "$ac_link") 2>conftest.err
1538   ac_status=$?
1539   if test -s conftest.err; then
1540     grep -v '^ *+' conftest.err >conftest.er1
1541     cat conftest.er1 >&5
1542     mv -f conftest.er1 conftest.err
1543   fi
1544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545   test $ac_status = 0; } && {
1546          test -z "$ac_c_werror_flag" ||
1547          test ! -s conftest.err
1548        } && test -s conftest$ac_exeext && {
1549          test "$cross_compiling" = yes ||
1550          $as_test_x conftest$ac_exeext
1551        }; then :
1552   ac_retval=0
1553 else
1554   $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1556
1557         ac_retval=1
1558 fi
1559   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1560   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1561   # interfere with the next link command; also delete a directory that is
1562   # left behind by Apple's compiler.  We do this before executing the actions.
1563   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1564   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565   as_fn_set_status $ac_retval
1566
1567 } # ac_fn_c_try_link
1568
1569 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1570 # -------------------------------------------------------
1571 # Tests whether HEADER exists and can be compiled using the include files in
1572 # INCLUDES, setting the cache variable VAR accordingly.
1573 ac_fn_c_check_header_compile ()
1574 {
1575   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1577 $as_echo_n "checking for $2... " >&6; }
1578 if eval \${$3+:} false; then :
1579   $as_echo_n "(cached) " >&6
1580 else
1581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582 /* end confdefs.h.  */
1583 $4
1584 #include <$2>
1585 _ACEOF
1586 if ac_fn_c_try_compile "$LINENO"; then :
1587   eval "$3=yes"
1588 else
1589   eval "$3=no"
1590 fi
1591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1592 fi
1593 eval ac_res=\$$3
1594                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1595 $as_echo "$ac_res" >&6; }
1596   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597
1598 } # ac_fn_c_check_header_compile
1599
1600 # ac_fn_c_try_cpp LINENO
1601 # ----------------------
1602 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_cpp ()
1604 {
1605   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606   if { { ac_try="$ac_cpp conftest.$ac_ext"
1607 case "(($ac_try" in
1608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609   *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1614   ac_status=$?
1615   if test -s conftest.err; then
1616     grep -v '^ *+' conftest.err >conftest.er1
1617     cat conftest.er1 >&5
1618     mv -f conftest.er1 conftest.err
1619   fi
1620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621   test $ac_status = 0; } > conftest.i && {
1622          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1623          test ! -s conftest.err
1624        }; then :
1625   ac_retval=0
1626 else
1627   $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630     ac_retval=1
1631 fi
1632   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633   as_fn_set_status $ac_retval
1634
1635 } # ac_fn_c_try_cpp
1636
1637 # ac_fn_c_try_run LINENO
1638 # ----------------------
1639 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1640 # that executables *can* be run.
1641 ac_fn_c_try_run ()
1642 {
1643   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644   if { { ac_try="$ac_link"
1645 case "(($ac_try" in
1646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647   *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651   (eval "$ac_link") 2>&5
1652   ac_status=$?
1653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1655   { { case "(($ac_try" in
1656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657   *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661   (eval "$ac_try") 2>&5
1662   ac_status=$?
1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; }; }; then :
1665   ac_retval=0
1666 else
1667   $as_echo "$as_me: program exited with status $ac_status" >&5
1668        $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671        ac_retval=$ac_status
1672 fi
1673   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1674   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675   as_fn_set_status $ac_retval
1676
1677 } # ac_fn_c_try_run
1678
1679 # ac_fn_c_check_func LINENO FUNC VAR
1680 # ----------------------------------
1681 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1682 ac_fn_c_check_func ()
1683 {
1684   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688   $as_echo_n "(cached) " >&6
1689 else
1690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h.  */
1692 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1694 #define $2 innocuous_$2
1695
1696 /* System header to define __stub macros and hopefully few prototypes,
1697     which can conflict with char $2 (); below.
1698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1699     <limits.h> exists even on freestanding compilers.  */
1700
1701 #ifdef __STDC__
1702 # include <limits.h>
1703 #else
1704 # include <assert.h>
1705 #endif
1706
1707 #undef $2
1708
1709 /* Override any GCC internal prototype to avoid an error.
1710    Use char because int might match the return type of a GCC
1711    builtin and then its argument prototype would still apply.  */
1712 #ifdef __cplusplus
1713 extern "C"
1714 #endif
1715 char $2 ();
1716 /* The GNU C library defines this for functions which it implements
1717     to always fail with ENOSYS.  Some functions are actually named
1718     something starting with __ and the normal name is an alias.  */
1719 #if defined __stub_$2 || defined __stub___$2
1720 choke me
1721 #endif
1722
1723 int
1724 main ()
1725 {
1726 return $2 ();
1727   ;
1728   return 0;
1729 }
1730 _ACEOF
1731 if ac_fn_c_try_link "$LINENO"; then :
1732   eval "$3=yes"
1733 else
1734   eval "$3=no"
1735 fi
1736 rm -f core conftest.err conftest.$ac_objext \
1737     conftest$ac_exeext conftest.$ac_ext
1738 fi
1739 eval ac_res=\$$3
1740                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743
1744 } # ac_fn_c_check_func
1745 cat >config.log <<_ACEOF
1746 This file contains any messages produced by compilers while
1747 running configure, to aid debugging if configure makes a mistake.
1748
1749 It was created by gacela $as_me 0.5, which was
1750 generated by GNU Autoconf 2.68.  Invocation command line was
1751
1752   $ $0 $@
1753
1754 _ACEOF
1755 exec 5>>config.log
1756 {
1757 cat <<_ASUNAME
1758 ## --------- ##
1759 ## Platform. ##
1760 ## --------- ##
1761
1762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1767
1768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1769 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1770
1771 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1772 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1774 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1775 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1776 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1777 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1778
1779 _ASUNAME
1780
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 for as_dir in $PATH
1783 do
1784   IFS=$as_save_IFS
1785   test -z "$as_dir" && as_dir=.
1786     $as_echo "PATH: $as_dir"
1787   done
1788 IFS=$as_save_IFS
1789
1790 } >&5
1791
1792 cat >&5 <<_ACEOF
1793
1794
1795 ## ----------- ##
1796 ## Core tests. ##
1797 ## ----------- ##
1798
1799 _ACEOF
1800
1801
1802 # Keep a trace of the command line.
1803 # Strip out --no-create and --no-recursion so they do not pile up.
1804 # Strip out --silent because we don't want to record it for future runs.
1805 # Also quote any args containing shell meta-characters.
1806 # Make two passes to allow for proper duplicate-argument suppression.
1807 ac_configure_args=
1808 ac_configure_args0=
1809 ac_configure_args1=
1810 ac_must_keep_next=false
1811 for ac_pass in 1 2
1812 do
1813   for ac_arg
1814   do
1815     case $ac_arg in
1816     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1817     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1818     | -silent | --silent | --silen | --sile | --sil)
1819       continue ;;
1820     *\'*)
1821       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1822     esac
1823     case $ac_pass in
1824     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1825     2)
1826       as_fn_append ac_configure_args1 " '$ac_arg'"
1827       if test $ac_must_keep_next = true; then
1828         ac_must_keep_next=false # Got value, back to normal.
1829       else
1830         case $ac_arg in
1831           *=* | --config-cache | -C | -disable-* | --disable-* \
1832           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1833           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1834           | -with-* | --with-* | -without-* | --without-* | --x)
1835             case "$ac_configure_args0 " in
1836               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1837             esac
1838             ;;
1839           -* ) ac_must_keep_next=true ;;
1840         esac
1841       fi
1842       as_fn_append ac_configure_args " '$ac_arg'"
1843       ;;
1844     esac
1845   done
1846 done
1847 { ac_configure_args0=; unset ac_configure_args0;}
1848 { ac_configure_args1=; unset ac_configure_args1;}
1849
1850 # When interrupted or exit'd, cleanup temporary files, and complete
1851 # config.log.  We remove comments because anyway the quotes in there
1852 # would cause problems or look ugly.
1853 # WARNING: Use '\'' to represent an apostrophe within the trap.
1854 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1855 trap 'exit_status=$?
1856   # Save into config.log some information that might help in debugging.
1857   {
1858     echo
1859
1860     $as_echo "## ---------------- ##
1861 ## Cache variables. ##
1862 ## ---------------- ##"
1863     echo
1864     # The following way of writing the cache mishandles newlines in values,
1865 (
1866   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867     eval ac_val=\$$ac_var
1868     case $ac_val in #(
1869     *${as_nl}*)
1870       case $ac_var in #(
1871       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1872 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1873       esac
1874       case $ac_var in #(
1875       _ | IFS | as_nl) ;; #(
1876       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877       *) { eval $ac_var=; unset $ac_var;} ;;
1878       esac ;;
1879     esac
1880   done
1881   (set) 2>&1 |
1882     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1883     *${as_nl}ac_space=\ *)
1884       sed -n \
1885         "s/'\''/'\''\\\\'\'''\''/g;
1886           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1887       ;; #(
1888     *)
1889       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1890       ;;
1891     esac |
1892     sort
1893 )
1894     echo
1895
1896     $as_echo "## ----------------- ##
1897 ## Output variables. ##
1898 ## ----------------- ##"
1899     echo
1900     for ac_var in $ac_subst_vars
1901     do
1902       eval ac_val=\$$ac_var
1903       case $ac_val in
1904       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905       esac
1906       $as_echo "$ac_var='\''$ac_val'\''"
1907     done | sort
1908     echo
1909
1910     if test -n "$ac_subst_files"; then
1911       $as_echo "## ------------------- ##
1912 ## File substitutions. ##
1913 ## ------------------- ##"
1914       echo
1915       for ac_var in $ac_subst_files
1916       do
1917         eval ac_val=\$$ac_var
1918         case $ac_val in
1919         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920         esac
1921         $as_echo "$ac_var='\''$ac_val'\''"
1922       done | sort
1923       echo
1924     fi
1925
1926     if test -s confdefs.h; then
1927       $as_echo "## ----------- ##
1928 ## confdefs.h. ##
1929 ## ----------- ##"
1930       echo
1931       cat confdefs.h
1932       echo
1933     fi
1934     test "$ac_signal" != 0 &&
1935       $as_echo "$as_me: caught signal $ac_signal"
1936     $as_echo "$as_me: exit $exit_status"
1937   } >&5
1938   rm -f core *.core core.conftest.* &&
1939     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1940     exit $exit_status
1941 ' 0
1942 for ac_signal in 1 2 13 15; do
1943   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1944 done
1945 ac_signal=0
1946
1947 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1948 rm -f -r conftest* confdefs.h
1949
1950 $as_echo "/* confdefs.h */" > confdefs.h
1951
1952 # Predefined preprocessor variables.
1953
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_NAME "$PACKAGE_NAME"
1956 _ACEOF
1957
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1960 _ACEOF
1961
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1964 _ACEOF
1965
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_STRING "$PACKAGE_STRING"
1968 _ACEOF
1969
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1972 _ACEOF
1973
1974 cat >>confdefs.h <<_ACEOF
1975 #define PACKAGE_URL "$PACKAGE_URL"
1976 _ACEOF
1977
1978
1979 # Let the site file select an alternate cache file if it wants to.
1980 # Prefer an explicitly selected file to automatically selected ones.
1981 ac_site_file1=NONE
1982 ac_site_file2=NONE
1983 if test -n "$CONFIG_SITE"; then
1984   # We do not want a PATH search for config.site.
1985   case $CONFIG_SITE in #((
1986     -*)  ac_site_file1=./$CONFIG_SITE;;
1987     */*) ac_site_file1=$CONFIG_SITE;;
1988     *)   ac_site_file1=./$CONFIG_SITE;;
1989   esac
1990 elif test "x$prefix" != xNONE; then
1991   ac_site_file1=$prefix/share/config.site
1992   ac_site_file2=$prefix/etc/config.site
1993 else
1994   ac_site_file1=$ac_default_prefix/share/config.site
1995   ac_site_file2=$ac_default_prefix/etc/config.site
1996 fi
1997 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1998 do
1999   test "x$ac_site_file" = xNONE && continue
2000   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2001     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2002 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2003     sed 's/^/| /' "$ac_site_file" >&5
2004     . "$ac_site_file" \
2005       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2007 as_fn_error $? "failed to load site script $ac_site_file
2008 See \`config.log' for more details" "$LINENO" 5; }
2009   fi
2010 done
2011
2012 if test -r "$cache_file"; then
2013   # Some versions of bash will fail to source /dev/null (special files
2014   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2015   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2016     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2017 $as_echo "$as_me: loading cache $cache_file" >&6;}
2018     case $cache_file in
2019       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2020       *)                      . "./$cache_file";;
2021     esac
2022   fi
2023 else
2024   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2025 $as_echo "$as_me: creating cache $cache_file" >&6;}
2026   >$cache_file
2027 fi
2028
2029 # Check that the precious variables saved in the cache have kept the same
2030 # value.
2031 ac_cache_corrupted=false
2032 for ac_var in $ac_precious_vars; do
2033   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2034   eval ac_new_set=\$ac_env_${ac_var}_set
2035   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2036   eval ac_new_val=\$ac_env_${ac_var}_value
2037   case $ac_old_set,$ac_new_set in
2038     set,)
2039       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2040 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2041       ac_cache_corrupted=: ;;
2042     ,set)
2043       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2044 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2045       ac_cache_corrupted=: ;;
2046     ,);;
2047     *)
2048       if test "x$ac_old_val" != "x$ac_new_val"; then
2049         # differences in whitespace do not lead to failure.
2050         ac_old_val_w=`echo x $ac_old_val`
2051         ac_new_val_w=`echo x $ac_new_val`
2052         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2053           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2054 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2055           ac_cache_corrupted=:
2056         else
2057           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2058 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2059           eval $ac_var=\$ac_old_val
2060         fi
2061         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2062 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2063         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2064 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2065       fi;;
2066   esac
2067   # Pass precious variables to config.status.
2068   if test "$ac_new_set" = set; then
2069     case $ac_new_val in
2070     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2071     *) ac_arg=$ac_var=$ac_new_val ;;
2072     esac
2073     case " $ac_configure_args " in
2074       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2075       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2076     esac
2077   fi
2078 done
2079 if $ac_cache_corrupted; then
2080   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2082   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2083 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2084   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2085 fi
2086 ## -------------------- ##
2087 ## Main body of script. ##
2088 ## -------------------- ##
2089
2090 ac_ext=c
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095
2096
2097 am__api_version='1.11'
2098
2099 ac_aux_dir=
2100 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2101   if test -f "$ac_dir/install-sh"; then
2102     ac_aux_dir=$ac_dir
2103     ac_install_sh="$ac_aux_dir/install-sh -c"
2104     break
2105   elif test -f "$ac_dir/install.sh"; then
2106     ac_aux_dir=$ac_dir
2107     ac_install_sh="$ac_aux_dir/install.sh -c"
2108     break
2109   elif test -f "$ac_dir/shtool"; then
2110     ac_aux_dir=$ac_dir
2111     ac_install_sh="$ac_aux_dir/shtool install -c"
2112     break
2113   fi
2114 done
2115 if test -z "$ac_aux_dir"; then
2116   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2117 fi
2118
2119 # These three variables are undocumented and unsupported,
2120 # and are intended to be withdrawn in a future Autoconf release.
2121 # They can cause serious problems if a builder's source tree is in a directory
2122 # whose full name contains unusual characters.
2123 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2124 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2125 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2126
2127
2128 # Find a good install program.  We prefer a C program (faster),
2129 # so one script is as good as another.  But avoid the broken or
2130 # incompatible versions:
2131 # SysV /etc/install, /usr/sbin/install
2132 # SunOS /usr/etc/install
2133 # IRIX /sbin/install
2134 # AIX /bin/install
2135 # AmigaOS /C/install, which installs bootblocks on floppy discs
2136 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2139 # OS/2's system install, which has a completely different semantic
2140 # ./install, which can be erroneously created by make from ./install.sh.
2141 # Reject install programs that cannot install multiple files.
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2143 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2144 if test -z "$INSTALL"; then
2145 if ${ac_cv_path_install+:} false; then :
2146   $as_echo_n "(cached) " >&6
2147 else
2148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2150 do
2151   IFS=$as_save_IFS
2152   test -z "$as_dir" && as_dir=.
2153     # Account for people who put trailing slashes in PATH elements.
2154 case $as_dir/ in #((
2155   ./ | .// | /[cC]/* | \
2156   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2157   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2158   /usr/ucb/* ) ;;
2159   *)
2160     # OSF1 and SCO ODT 3.0 have their own names for install.
2161     # Don't use installbsd from OSF since it installs stuff as root
2162     # by default.
2163     for ac_prog in ginstall scoinst install; do
2164       for ac_exec_ext in '' $ac_executable_extensions; do
2165         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2166           if test $ac_prog = install &&
2167             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2168             # AIX install.  It has an incompatible calling convention.
2169             :
2170           elif test $ac_prog = install &&
2171             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2172             # program-specific install script used by HP pwplus--don't use.
2173             :
2174           else
2175             rm -rf conftest.one conftest.two conftest.dir
2176             echo one > conftest.one
2177             echo two > conftest.two
2178             mkdir conftest.dir
2179             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2180               test -s conftest.one && test -s conftest.two &&
2181               test -s conftest.dir/conftest.one &&
2182               test -s conftest.dir/conftest.two
2183             then
2184               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2185               break 3
2186             fi
2187           fi
2188         fi
2189       done
2190     done
2191     ;;
2192 esac
2193
2194   done
2195 IFS=$as_save_IFS
2196
2197 rm -rf conftest.one conftest.two conftest.dir
2198
2199 fi
2200   if test "${ac_cv_path_install+set}" = set; then
2201     INSTALL=$ac_cv_path_install
2202   else
2203     # As a last resort, use the slow shell script.  Don't cache a
2204     # value for INSTALL within a source directory, because that will
2205     # break other packages using the cache if that directory is
2206     # removed, or if the value is a relative name.
2207     INSTALL=$ac_install_sh
2208   fi
2209 fi
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2211 $as_echo "$INSTALL" >&6; }
2212
2213 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2214 # It thinks the first close brace ends the variable substitution.
2215 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2216
2217 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2218
2219 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2220
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2222 $as_echo_n "checking whether build environment is sane... " >&6; }
2223 # Just in case
2224 sleep 1
2225 echo timestamp > conftest.file
2226 # Reject unsafe characters in $srcdir or the absolute working directory
2227 # name.  Accept space and tab only in the latter.
2228 am_lf='
2229 '
2230 case `pwd` in
2231   *[\\\"\#\$\&\'\`$am_lf]*)
2232     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2233 esac
2234 case $srcdir in
2235   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2236     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2237 esac
2238
2239 # Do `set' in a subshell so we don't clobber the current shell's
2240 # arguments.  Must try -L first in case configure is actually a
2241 # symlink; some systems play weird games with the mod time of symlinks
2242 # (eg FreeBSD returns the mod time of the symlink's containing
2243 # directory).
2244 if (
2245    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2246    if test "$*" = "X"; then
2247       # -L didn't work.
2248       set X `ls -t "$srcdir/configure" conftest.file`
2249    fi
2250    rm -f conftest.file
2251    if test "$*" != "X $srcdir/configure conftest.file" \
2252       && test "$*" != "X conftest.file $srcdir/configure"; then
2253
2254       # If neither matched, then we have a broken ls.  This can happen
2255       # if, for instance, CONFIG_SHELL is bash and it inherits a
2256       # broken ls alias from the environment.  This has actually
2257       # happened.  Such a system could not be considered "sane".
2258       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2259 alias in your environment" "$LINENO" 5
2260    fi
2261
2262    test "$2" = conftest.file
2263    )
2264 then
2265    # Ok.
2266    :
2267 else
2268    as_fn_error $? "newly created file is older than distributed files!
2269 Check your system clock" "$LINENO" 5
2270 fi
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2272 $as_echo "yes" >&6; }
2273 test "$program_prefix" != NONE &&
2274   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2275 # Use a double $ so make ignores it.
2276 test "$program_suffix" != NONE &&
2277   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2278 # Double any \ or $.
2279 # By default was `s,x,x', remove it if useless.
2280 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2281 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2282
2283 # expand $ac_aux_dir to an absolute path
2284 am_aux_dir=`cd $ac_aux_dir && pwd`
2285
2286 if test x"${MISSING+set}" != xset; then
2287   case $am_aux_dir in
2288   *\ * | *\     *)
2289     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2290   *)
2291     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2292   esac
2293 fi
2294 # Use eval to expand $SHELL
2295 if eval "$MISSING --run true"; then
2296   am_missing_run="$MISSING --run "
2297 else
2298   am_missing_run=
2299   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2300 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2301 fi
2302
2303 if test x"${install_sh}" != xset; then
2304   case $am_aux_dir in
2305   *\ * | *\     *)
2306     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2307   *)
2308     install_sh="\${SHELL} $am_aux_dir/install-sh"
2309   esac
2310 fi
2311
2312 # Installed binaries are usually stripped using `strip' when the user
2313 # run `make install-strip'.  However `strip' might not be the right
2314 # tool to use in cross-compilation environments, therefore Automake
2315 # will honor the `STRIP' environment variable to overrule this program.
2316 if test "$cross_compiling" != no; then
2317   if test -n "$ac_tool_prefix"; then
2318   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}strip; ac_word=$2
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2321 $as_echo_n "checking for $ac_word... " >&6; }
2322 if ${ac_cv_prog_STRIP+:} false; then :
2323   $as_echo_n "(cached) " >&6
2324 else
2325   if test -n "$STRIP"; then
2326   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331   IFS=$as_save_IFS
2332   test -z "$as_dir" && as_dir=.
2333     for ac_exec_ext in '' $ac_executable_extensions; do
2334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2337     break 2
2338   fi
2339 done
2340   done
2341 IFS=$as_save_IFS
2342
2343 fi
2344 fi
2345 STRIP=$ac_cv_prog_STRIP
2346 if test -n "$STRIP"; then
2347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2348 $as_echo "$STRIP" >&6; }
2349 else
2350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2351 $as_echo "no" >&6; }
2352 fi
2353
2354
2355 fi
2356 if test -z "$ac_cv_prog_STRIP"; then
2357   ac_ct_STRIP=$STRIP
2358   # Extract the first word of "strip", so it can be a program name with args.
2359 set dummy strip; ac_word=$2
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2361 $as_echo_n "checking for $ac_word... " >&6; }
2362 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2363   $as_echo_n "(cached) " >&6
2364 else
2365   if test -n "$ac_ct_STRIP"; then
2366   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373     for ac_exec_ext in '' $ac_executable_extensions; do
2374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375     ac_cv_prog_ac_ct_STRIP="strip"
2376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2377     break 2
2378   fi
2379 done
2380   done
2381 IFS=$as_save_IFS
2382
2383 fi
2384 fi
2385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2386 if test -n "$ac_ct_STRIP"; then
2387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2388 $as_echo "$ac_ct_STRIP" >&6; }
2389 else
2390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2391 $as_echo "no" >&6; }
2392 fi
2393
2394   if test "x$ac_ct_STRIP" = x; then
2395     STRIP=":"
2396   else
2397     case $cross_compiling:$ac_tool_warned in
2398 yes:)
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2401 ac_tool_warned=yes ;;
2402 esac
2403     STRIP=$ac_ct_STRIP
2404   fi
2405 else
2406   STRIP="$ac_cv_prog_STRIP"
2407 fi
2408
2409 fi
2410 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2411
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2413 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2414 if test -z "$MKDIR_P"; then
2415   if ${ac_cv_path_mkdir+:} false; then :
2416   $as_echo_n "(cached) " >&6
2417 else
2418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2420 do
2421   IFS=$as_save_IFS
2422   test -z "$as_dir" && as_dir=.
2423     for ac_prog in mkdir gmkdir; do
2424          for ac_exec_ext in '' $ac_executable_extensions; do
2425            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2426            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2427              'mkdir (GNU coreutils) '* | \
2428              'mkdir (coreutils) '* | \
2429              'mkdir (fileutils) '4.1*)
2430                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2431                break 3;;
2432            esac
2433          done
2434        done
2435   done
2436 IFS=$as_save_IFS
2437
2438 fi
2439
2440   test -d ./--version && rmdir ./--version
2441   if test "${ac_cv_path_mkdir+set}" = set; then
2442     MKDIR_P="$ac_cv_path_mkdir -p"
2443   else
2444     # As a last resort, use the slow shell script.  Don't cache a
2445     # value for MKDIR_P within a source directory, because that will
2446     # break other packages using the cache if that directory is
2447     # removed, or if the value is a relative name.
2448     MKDIR_P="$ac_install_sh -d"
2449   fi
2450 fi
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2452 $as_echo "$MKDIR_P" >&6; }
2453
2454 mkdir_p="$MKDIR_P"
2455 case $mkdir_p in
2456   [\\/$]* | ?:[\\/]*) ;;
2457   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2458 esac
2459
2460 for ac_prog in gawk mawk nawk awk
2461 do
2462   # Extract the first word of "$ac_prog", so it can be a program name with args.
2463 set dummy $ac_prog; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_AWK+:} false; then :
2467   $as_echo_n "(cached) " >&6
2468 else
2469   if test -n "$AWK"; then
2470   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475   IFS=$as_save_IFS
2476   test -z "$as_dir" && as_dir=.
2477     for ac_exec_ext in '' $ac_executable_extensions; do
2478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479     ac_cv_prog_AWK="$ac_prog"
2480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481     break 2
2482   fi
2483 done
2484   done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 AWK=$ac_cv_prog_AWK
2490 if test -n "$AWK"; then
2491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2492 $as_echo "$AWK" >&6; }
2493 else
2494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2496 fi
2497
2498
2499   test -n "$AWK" && break
2500 done
2501
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2503 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2504 set x ${MAKE-make}
2505 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2506 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2507   $as_echo_n "(cached) " >&6
2508 else
2509   cat >conftest.make <<\_ACEOF
2510 SHELL = /bin/sh
2511 all:
2512         @echo '@@@%%%=$(MAKE)=@@@%%%'
2513 _ACEOF
2514 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2516   *@@@%%%=?*=@@@%%%*)
2517     eval ac_cv_prog_make_${ac_make}_set=yes;;
2518   *)
2519     eval ac_cv_prog_make_${ac_make}_set=no;;
2520 esac
2521 rm -f conftest.make
2522 fi
2523 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2525 $as_echo "yes" >&6; }
2526   SET_MAKE=
2527 else
2528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530   SET_MAKE="MAKE=${MAKE-make}"
2531 fi
2532
2533 rm -rf .tst 2>/dev/null
2534 mkdir .tst 2>/dev/null
2535 if test -d .tst; then
2536   am__leading_dot=.
2537 else
2538   am__leading_dot=_
2539 fi
2540 rmdir .tst 2>/dev/null
2541
2542 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2543   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2544   # is not polluted with repeated "-I."
2545   am__isrc=' -I$(srcdir)'
2546   # test to see if srcdir already configured
2547   if test -f $srcdir/config.status; then
2548     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2549   fi
2550 fi
2551
2552 # test whether we have cygpath
2553 if test -z "$CYGPATH_W"; then
2554   if (cygpath --version) >/dev/null 2>/dev/null; then
2555     CYGPATH_W='cygpath -w'
2556   else
2557     CYGPATH_W=echo
2558   fi
2559 fi
2560
2561
2562 # Define the identity of the package.
2563  PACKAGE='gacela'
2564  VERSION='0.5'
2565
2566
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE "$PACKAGE"
2569 _ACEOF
2570
2571
2572 cat >>confdefs.h <<_ACEOF
2573 #define VERSION "$VERSION"
2574 _ACEOF
2575
2576 # Some tools Automake needs.
2577
2578 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2579
2580
2581 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2582
2583
2584 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2585
2586
2587 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2588
2589
2590 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2591
2592 # We need awk for the "check" target.  The system "awk" is bad on
2593 # some platforms.
2594 # Always define AMTAR for backward compatibility.
2595
2596 AMTAR=${AMTAR-"${am_missing_run}tar"}
2597
2598 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2599
2600
2601
2602
2603
2604 case `pwd` in
2605   *\ * | *\     *)
2606     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2607 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2608 esac
2609
2610
2611
2612 macro_version='2.4.2'
2613 macro_revision='1.3337'
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627 ltmain="$ac_aux_dir/ltmain.sh"
2628
2629 # Make sure we can run config.sub.
2630 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2631   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2632
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2634 $as_echo_n "checking build system type... " >&6; }
2635 if ${ac_cv_build+:} false; then :
2636   $as_echo_n "(cached) " >&6
2637 else
2638   ac_build_alias=$build_alias
2639 test "x$ac_build_alias" = x &&
2640   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2641 test "x$ac_build_alias" = x &&
2642   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2643 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2644   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2645
2646 fi
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2648 $as_echo "$ac_cv_build" >&6; }
2649 case $ac_cv_build in
2650 *-*-*) ;;
2651 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2652 esac
2653 build=$ac_cv_build
2654 ac_save_IFS=$IFS; IFS='-'
2655 set x $ac_cv_build
2656 shift
2657 build_cpu=$1
2658 build_vendor=$2
2659 shift; shift
2660 # Remember, the first character of IFS is used to create $*,
2661 # except with old shells:
2662 build_os=$*
2663 IFS=$ac_save_IFS
2664 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2665
2666
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2668 $as_echo_n "checking host system type... " >&6; }
2669 if ${ac_cv_host+:} false; then :
2670   $as_echo_n "(cached) " >&6
2671 else
2672   if test "x$host_alias" = x; then
2673   ac_cv_host=$ac_cv_build
2674 else
2675   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2676     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2677 fi
2678
2679 fi
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2681 $as_echo "$ac_cv_host" >&6; }
2682 case $ac_cv_host in
2683 *-*-*) ;;
2684 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2685 esac
2686 host=$ac_cv_host
2687 ac_save_IFS=$IFS; IFS='-'
2688 set x $ac_cv_host
2689 shift
2690 host_cpu=$1
2691 host_vendor=$2
2692 shift; shift
2693 # Remember, the first character of IFS is used to create $*,
2694 # except with old shells:
2695 host_os=$*
2696 IFS=$ac_save_IFS
2697 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2698
2699
2700 # Backslashify metacharacters that are still active within
2701 # double-quoted strings.
2702 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2703
2704 # Same as above, but do not quote variable references.
2705 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2706
2707 # Sed substitution to delay expansion of an escaped shell variable in a
2708 # double_quote_subst'ed string.
2709 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2710
2711 # Sed substitution to delay expansion of an escaped single quote.
2712 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2713
2714 # Sed substitution to avoid accidental globbing in evaled expressions
2715 no_glob_subst='s/\*/\\\*/g'
2716
2717 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2718 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2719 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2720
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2722 $as_echo_n "checking how to print strings... " >&6; }
2723 # Test print first, because it will be a builtin if present.
2724 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2725    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2726   ECHO='print -r --'
2727 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2728   ECHO='printf %s\n'
2729 else
2730   # Use this function as a fallback that always works.
2731   func_fallback_echo ()
2732   {
2733     eval 'cat <<_LTECHO_EOF
2734 $1
2735 _LTECHO_EOF'
2736   }
2737   ECHO='func_fallback_echo'
2738 fi
2739
2740 # func_echo_all arg...
2741 # Invoke $ECHO with all args, space-separated.
2742 func_echo_all ()
2743 {
2744     $ECHO ""
2745 }
2746
2747 case "$ECHO" in
2748   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2749 $as_echo "printf" >&6; } ;;
2750   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2751 $as_echo "print -r" >&6; } ;;
2752   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2753 $as_echo "cat" >&6; } ;;
2754 esac
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769 DEPDIR="${am__leading_dot}deps"
2770
2771 ac_config_commands="$ac_config_commands depfiles"
2772
2773
2774 am_make=${MAKE-make}
2775 cat > confinc << 'END'
2776 am__doit:
2777         @echo this is the am__doit target
2778 .PHONY: am__doit
2779 END
2780 # If we don't find an include directive, just comment out the code.
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2782 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2783 am__include="#"
2784 am__quote=
2785 _am_result=none
2786 # First try GNU make style include.
2787 echo "include confinc" > confmf
2788 # Ignore all kinds of additional output from `make'.
2789 case `$am_make -s -f confmf 2> /dev/null` in #(
2790 *the\ am__doit\ target*)
2791   am__include=include
2792   am__quote=
2793   _am_result=GNU
2794   ;;
2795 esac
2796 # Now try BSD make style include.
2797 if test "$am__include" = "#"; then
2798    echo '.include "confinc"' > confmf
2799    case `$am_make -s -f confmf 2> /dev/null` in #(
2800    *the\ am__doit\ target*)
2801      am__include=.include
2802      am__quote="\""
2803      _am_result=BSD
2804      ;;
2805    esac
2806 fi
2807
2808
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2810 $as_echo "$_am_result" >&6; }
2811 rm -f confinc confmf
2812
2813 # Check whether --enable-dependency-tracking was given.
2814 if test "${enable_dependency_tracking+set}" = set; then :
2815   enableval=$enable_dependency_tracking;
2816 fi
2817
2818 if test "x$enable_dependency_tracking" != xno; then
2819   am_depcomp="$ac_aux_dir/depcomp"
2820   AMDEPBACKSLASH='\'
2821 fi
2822  if test "x$enable_dependency_tracking" != xno; then
2823   AMDEP_TRUE=
2824   AMDEP_FALSE='#'
2825 else
2826   AMDEP_TRUE='#'
2827   AMDEP_FALSE=
2828 fi
2829
2830
2831 ac_ext=c
2832 ac_cpp='$CPP $CPPFLAGS'
2833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 if test -n "$ac_tool_prefix"; then
2837   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if ${ac_cv_prog_CC+:} false; then :
2842   $as_echo_n "(cached) " >&6
2843 else
2844   if test -n "$CC"; then
2845   ac_cv_prog_CC="$CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850   IFS=$as_save_IFS
2851   test -z "$as_dir" && as_dir=.
2852     for ac_exec_ext in '' $ac_executable_extensions; do
2853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856     break 2
2857   fi
2858 done
2859   done
2860 IFS=$as_save_IFS
2861
2862 fi
2863 fi
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2868 else
2869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2871 fi
2872
2873
2874 fi
2875 if test -z "$ac_cv_prog_CC"; then
2876   ac_ct_CC=$CC
2877   # Extract the first word of "gcc", so it can be a program name with args.
2878 set dummy gcc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2882   $as_echo_n "(cached) " >&6
2883 else
2884   if test -n "$ac_ct_CC"; then
2885   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890   IFS=$as_save_IFS
2891   test -z "$as_dir" && as_dir=.
2892     for ac_exec_ext in '' $ac_executable_extensions; do
2893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894     ac_cv_prog_ac_ct_CC="gcc"
2895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896     break 2
2897   fi
2898 done
2899   done
2900 IFS=$as_save_IFS
2901
2902 fi
2903 fi
2904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905 if test -n "$ac_ct_CC"; then
2906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2907 $as_echo "$ac_ct_CC" >&6; }
2908 else
2909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2911 fi
2912
2913   if test "x$ac_ct_CC" = x; then
2914     CC=""
2915   else
2916     case $cross_compiling:$ac_tool_warned in
2917 yes:)
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2920 ac_tool_warned=yes ;;
2921 esac
2922     CC=$ac_ct_CC
2923   fi
2924 else
2925   CC="$ac_cv_prog_CC"
2926 fi
2927
2928 if test -z "$CC"; then
2929           if test -n "$ac_tool_prefix"; then
2930     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2931 set dummy ${ac_tool_prefix}cc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_CC+:} false; then :
2935   $as_echo_n "(cached) " >&6
2936 else
2937   if test -n "$CC"; then
2938   ac_cv_prog_CC="$CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943   IFS=$as_save_IFS
2944   test -z "$as_dir" && as_dir=.
2945     for ac_exec_ext in '' $ac_executable_extensions; do
2946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947     ac_cv_prog_CC="${ac_tool_prefix}cc"
2948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949     break 2
2950   fi
2951 done
2952   done
2953 IFS=$as_save_IFS
2954
2955 fi
2956 fi
2957 CC=$ac_cv_prog_CC
2958 if test -n "$CC"; then
2959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2961 else
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 fi
2965
2966
2967   fi
2968 fi
2969 if test -z "$CC"; then
2970   # Extract the first word of "cc", so it can be a program name with args.
2971 set dummy cc; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_CC+:} false; then :
2975   $as_echo_n "(cached) " >&6
2976 else
2977   if test -n "$CC"; then
2978   ac_cv_prog_CC="$CC" # Let the user override the test.
2979 else
2980   ac_prog_rejected=no
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2983 do
2984   IFS=$as_save_IFS
2985   test -z "$as_dir" && as_dir=.
2986     for ac_exec_ext in '' $ac_executable_extensions; do
2987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2989        ac_prog_rejected=yes
2990        continue
2991      fi
2992     ac_cv_prog_CC="cc"
2993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994     break 2
2995   fi
2996 done
2997   done
2998 IFS=$as_save_IFS
2999
3000 if test $ac_prog_rejected = yes; then
3001   # We found a bogon in the path, so make sure we never use it.
3002   set dummy $ac_cv_prog_CC
3003   shift
3004   if test $# != 0; then
3005     # We chose a different compiler from the bogus one.
3006     # However, it has the same basename, so the bogon will be chosen
3007     # first if we set CC to just the basename; use the full file name.
3008     shift
3009     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3010   fi
3011 fi
3012 fi
3013 fi
3014 CC=$ac_cv_prog_CC
3015 if test -n "$CC"; then
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3018 else
3019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 fi
3022
3023
3024 fi
3025 if test -z "$CC"; then
3026   if test -n "$ac_tool_prefix"; then
3027   for ac_prog in cl.exe
3028   do
3029     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if ${ac_cv_prog_CC+:} false; then :
3034   $as_echo_n "(cached) " >&6
3035 else
3036   if test -n "$CC"; then
3037   ac_cv_prog_CC="$CC" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3041 do
3042   IFS=$as_save_IFS
3043   test -z "$as_dir" && as_dir=.
3044     for ac_exec_ext in '' $ac_executable_extensions; do
3045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048     break 2
3049   fi
3050 done
3051   done
3052 IFS=$as_save_IFS
3053
3054 fi
3055 fi
3056 CC=$ac_cv_prog_CC
3057 if test -n "$CC"; then
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059 $as_echo "$CC" >&6; }
3060 else
3061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3063 fi
3064
3065
3066     test -n "$CC" && break
3067   done
3068 fi
3069 if test -z "$CC"; then
3070   ac_ct_CC=$CC
3071   for ac_prog in cl.exe
3072 do
3073   # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3078   $as_echo_n "(cached) " >&6
3079 else
3080   if test -n "$ac_ct_CC"; then
3081   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3082 else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086   IFS=$as_save_IFS
3087   test -z "$as_dir" && as_dir=.
3088     for ac_exec_ext in '' $ac_executable_extensions; do
3089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090     ac_cv_prog_ac_ct_CC="$ac_prog"
3091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092     break 2
3093   fi
3094 done
3095   done
3096 IFS=$as_save_IFS
3097
3098 fi
3099 fi
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3103 $as_echo "$ac_ct_CC" >&6; }
3104 else
3105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3107 fi
3108
3109
3110   test -n "$ac_ct_CC" && break
3111 done
3112
3113   if test "x$ac_ct_CC" = x; then
3114     CC=""
3115   else
3116     case $cross_compiling:$ac_tool_warned in
3117 yes:)
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120 ac_tool_warned=yes ;;
3121 esac
3122     CC=$ac_ct_CC
3123   fi
3124 fi
3125
3126 fi
3127
3128
3129 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 as_fn_error $? "no acceptable C compiler found in \$PATH
3132 See \`config.log' for more details" "$LINENO" 5; }
3133
3134 # Provide some information about the compiler.
3135 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3136 set X $ac_compile
3137 ac_compiler=$2
3138 for ac_option in --version -v -V -qversion; do
3139   { { ac_try="$ac_compiler $ac_option >&5"
3140 case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3147   ac_status=$?
3148   if test -s conftest.err; then
3149     sed '10a\
3150 ... rest of stderr output deleted ...
3151          10q' conftest.err >conftest.er1
3152     cat conftest.er1 >&5
3153   fi
3154   rm -f conftest.er1 conftest.err
3155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156   test $ac_status = 0; }
3157 done
3158
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h.  */
3161
3162 int
3163 main ()
3164 {
3165
3166   ;
3167   return 0;
3168 }
3169 _ACEOF
3170 ac_clean_files_save=$ac_clean_files
3171 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3172 # Try to create an executable without -o first, disregard a.out.
3173 # It will help us diagnose broken compilers, and finding out an intuition
3174 # of exeext.
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3176 $as_echo_n "checking whether the C compiler works... " >&6; }
3177 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3178
3179 # The possible output files:
3180 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3181
3182 ac_rmfiles=
3183 for ac_file in $ac_files
3184 do
3185   case $ac_file in
3186     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3187     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3188   esac
3189 done
3190 rm -f $ac_rmfiles
3191
3192 if { { ac_try="$ac_link_default"
3193 case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199   (eval "$ac_link_default") 2>&5
3200   ac_status=$?
3201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202   test $ac_status = 0; }; then :
3203   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3204 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3205 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3206 # so that the user can short-circuit this test for compilers unknown to
3207 # Autoconf.
3208 for ac_file in $ac_files ''
3209 do
3210   test -f "$ac_file" || continue
3211   case $ac_file in
3212     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3213         ;;
3214     [ab].out )
3215         # We found the default executable, but exeext='' is most
3216         # certainly right.
3217         break;;
3218     *.* )
3219         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3220         then :; else
3221            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222         fi
3223         # We set ac_cv_exeext here because the later test for it is not
3224         # safe: cross compilers may not add the suffix if given an `-o'
3225         # argument, so we may need to know it at that point already.
3226         # Even if this section looks crufty: it has the advantage of
3227         # actually working.
3228         break;;
3229     * )
3230         break;;
3231   esac
3232 done
3233 test "$ac_cv_exeext" = no && ac_cv_exeext=
3234
3235 else
3236   ac_file=''
3237 fi
3238 if test -z "$ac_file"; then :
3239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 $as_echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error 77 "C compiler cannot create executables
3247 See \`config.log' for more details" "$LINENO" 5; }
3248 else
3249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3250 $as_echo "yes" >&6; }
3251 fi
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3253 $as_echo_n "checking for C compiler default output file name... " >&6; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3255 $as_echo "$ac_file" >&6; }
3256 ac_exeext=$ac_cv_exeext
3257
3258 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3259 ac_clean_files=$ac_clean_files_save
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3261 $as_echo_n "checking for suffix of executables... " >&6; }
3262 if { { ac_try="$ac_link"
3263 case "(($ac_try" in
3264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265   *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269   (eval "$ac_link") 2>&5
3270   ac_status=$?
3271   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272   test $ac_status = 0; }; then :
3273   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3274 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3275 # work properly (i.e., refer to `conftest.exe'), while it won't with
3276 # `rm'.
3277 for ac_file in conftest.exe conftest conftest.*; do
3278   test -f "$ac_file" || continue
3279   case $ac_file in
3280     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3281     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3282           break;;
3283     * ) break;;
3284   esac
3285 done
3286 else
3287   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3290 See \`config.log' for more details" "$LINENO" 5; }
3291 fi
3292 rm -f conftest conftest$ac_cv_exeext
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3294 $as_echo "$ac_cv_exeext" >&6; }
3295
3296 rm -f conftest.$ac_ext
3297 EXEEXT=$ac_cv_exeext
3298 ac_exeext=$EXEEXT
3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h.  */
3301 #include <stdio.h>
3302 int
3303 main ()
3304 {
3305 FILE *f = fopen ("conftest.out", "w");
3306  return ferror (f) || fclose (f) != 0;
3307
3308   ;
3309   return 0;
3310 }
3311 _ACEOF
3312 ac_clean_files="$ac_clean_files conftest.out"
3313 # Check that the compiler produces executables we can run.  If not, either
3314 # the compiler is broken, or we cross compile.
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3316 $as_echo_n "checking whether we are cross compiling... " >&6; }
3317 if test "$cross_compiling" != yes; then
3318   { { ac_try="$ac_link"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325   (eval "$ac_link") 2>&5
3326   ac_status=$?
3327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328   test $ac_status = 0; }
3329   if { ac_try='./conftest$ac_cv_exeext'
3330   { { case "(($ac_try" in
3331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332   *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336   (eval "$ac_try") 2>&5
3337   ac_status=$?
3338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339   test $ac_status = 0; }; }; then
3340     cross_compiling=no
3341   else
3342     if test "$cross_compiling" = maybe; then
3343         cross_compiling=yes
3344     else
3345         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error $? "cannot run C compiled programs.
3348 If you meant to cross compile, use \`--host'.
3349 See \`config.log' for more details" "$LINENO" 5; }
3350     fi
3351   fi
3352 fi
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3354 $as_echo "$cross_compiling" >&6; }
3355
3356 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3357 ac_clean_files=$ac_clean_files_save
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3359 $as_echo_n "checking for suffix of object files... " >&6; }
3360 if ${ac_cv_objext+:} false; then :
3361   $as_echo_n "(cached) " >&6
3362 else
3363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h.  */
3365
3366 int
3367 main ()
3368 {
3369
3370   ;
3371   return 0;
3372 }
3373 _ACEOF
3374 rm -f conftest.o conftest.obj
3375 if { { ac_try="$ac_compile"
3376 case "(($ac_try" in
3377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378   *) ac_try_echo=$ac_try;;
3379 esac
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382   (eval "$ac_compile") 2>&5
3383   ac_status=$?
3384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385   test $ac_status = 0; }; then :
3386   for ac_file in conftest.o conftest.obj conftest.*; do
3387   test -f "$ac_file" || continue;
3388   case $ac_file in
3389     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3390     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3391        break;;
3392   esac
3393 done
3394 else
3395   $as_echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3397
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "cannot compute suffix of object files: cannot compile
3401 See \`config.log' for more details" "$LINENO" 5; }
3402 fi
3403 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3404 fi
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3406 $as_echo "$ac_cv_objext" >&6; }
3407 OBJEXT=$ac_cv_objext
3408 ac_objext=$OBJEXT
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3410 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3411 if ${ac_cv_c_compiler_gnu+:} false; then :
3412   $as_echo_n "(cached) " >&6
3413 else
3414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h.  */
3416
3417 int
3418 main ()
3419 {
3420 #ifndef __GNUC__
3421        choke me
3422 #endif
3423
3424   ;
3425   return 0;
3426 }
3427 _ACEOF
3428 if ac_fn_c_try_compile "$LINENO"; then :
3429   ac_compiler_gnu=yes
3430 else
3431   ac_compiler_gnu=no
3432 fi
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3435
3436 fi
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3438 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3439 if test $ac_compiler_gnu = yes; then
3440   GCC=yes
3441 else
3442   GCC=
3443 fi
3444 ac_test_CFLAGS=${CFLAGS+set}
3445 ac_save_CFLAGS=$CFLAGS
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3447 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3448 if ${ac_cv_prog_cc_g+:} false; then :
3449   $as_echo_n "(cached) " >&6
3450 else
3451   ac_save_c_werror_flag=$ac_c_werror_flag
3452    ac_c_werror_flag=yes
3453    ac_cv_prog_cc_g=no
3454    CFLAGS="-g"
3455    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h.  */
3457
3458 int
3459 main ()
3460 {
3461
3462   ;
3463   return 0;
3464 }
3465 _ACEOF
3466 if ac_fn_c_try_compile "$LINENO"; then :
3467   ac_cv_prog_cc_g=yes
3468 else
3469   CFLAGS=""
3470       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h.  */
3472
3473 int
3474 main ()
3475 {
3476
3477   ;
3478   return 0;
3479 }
3480 _ACEOF
3481 if ac_fn_c_try_compile "$LINENO"; then :
3482
3483 else
3484   ac_c_werror_flag=$ac_save_c_werror_flag
3485          CFLAGS="-g"
3486          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h.  */
3488
3489 int
3490 main ()
3491 {
3492
3493   ;
3494   return 0;
3495 }
3496 _ACEOF
3497 if ac_fn_c_try_compile "$LINENO"; then :
3498   ac_cv_prog_cc_g=yes
3499 fi
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505    ac_c_werror_flag=$ac_save_c_werror_flag
3506 fi
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3508 $as_echo "$ac_cv_prog_cc_g" >&6; }
3509 if test "$ac_test_CFLAGS" = set; then
3510   CFLAGS=$ac_save_CFLAGS
3511 elif test $ac_cv_prog_cc_g = yes; then
3512   if test "$GCC" = yes; then
3513     CFLAGS="-g -O2"
3514   else
3515     CFLAGS="-g"
3516   fi
3517 else
3518   if test "$GCC" = yes; then
3519     CFLAGS="-O2"
3520   else
3521     CFLAGS=
3522   fi
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3525 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3526 if ${ac_cv_prog_cc_c89+:} false; then :
3527   $as_echo_n "(cached) " >&6
3528 else
3529   ac_cv_prog_cc_c89=no
3530 ac_save_CC=$CC
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h.  */
3533 #include <stdarg.h>
3534 #include <stdio.h>
3535 #include <sys/types.h>
3536 #include <sys/stat.h>
3537 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3538 struct buf { int x; };
3539 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3540 static char *e (p, i)
3541      char **p;
3542      int i;
3543 {
3544   return p[i];
3545 }
3546 static char *f (char * (*g) (char **, int), char **p, ...)
3547 {
3548   char *s;
3549   va_list v;
3550   va_start (v,p);
3551   s = g (p, va_arg (v,int));
3552   va_end (v);
3553   return s;
3554 }
3555
3556 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3557    function prototypes and stuff, but not '\xHH' hex character constants.
3558    These don't provoke an error unfortunately, instead are silently treated
3559    as 'x'.  The following induces an error, until -std is added to get
3560    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3561    array size at least.  It's necessary to write '\x00'==0 to get something
3562    that's true only with -std.  */
3563 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3564
3565 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3566    inside strings and character constants.  */
3567 #define FOO(x) 'x'
3568 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3569
3570 int test (int i, double x);
3571 struct s1 {int (*f) (int a);};
3572 struct s2 {int (*f) (double a);};
3573 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3574 int argc;
3575 char **argv;
3576 int
3577 main ()
3578 {
3579 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3580   ;
3581   return 0;
3582 }
3583 _ACEOF
3584 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3585         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3586 do
3587   CC="$ac_save_CC $ac_arg"
3588   if ac_fn_c_try_compile "$LINENO"; then :
3589   ac_cv_prog_cc_c89=$ac_arg
3590 fi
3591 rm -f core conftest.err conftest.$ac_objext
3592   test "x$ac_cv_prog_cc_c89" != "xno" && break
3593 done
3594 rm -f conftest.$ac_ext
3595 CC=$ac_save_CC
3596
3597 fi
3598 # AC_CACHE_VAL
3599 case "x$ac_cv_prog_cc_c89" in
3600   x)
3601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3602 $as_echo "none needed" >&6; } ;;
3603   xno)
3604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3605 $as_echo "unsupported" >&6; } ;;
3606   *)
3607     CC="$CC $ac_cv_prog_cc_c89"
3608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3609 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3610 esac
3611 if test "x$ac_cv_prog_cc_c89" != xno; then :
3612
3613 fi
3614
3615 ac_ext=c
3616 ac_cpp='$CPP $CPPFLAGS'
3617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3620
3621 depcc="$CC"   am_compiler_list=
3622
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3624 $as_echo_n "checking dependency style of $depcc... " >&6; }
3625 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3626   $as_echo_n "(cached) " >&6
3627 else
3628   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3629   # We make a subdir and do the tests there.  Otherwise we can end up
3630   # making bogus files that we don't know about and never remove.  For
3631   # instance it was reported that on HP-UX the gcc test will end up
3632   # making a dummy file named `D' -- because `-MD' means `put the output
3633   # in D'.
3634   mkdir conftest.dir
3635   # Copy depcomp to subdir because otherwise we won't find it if we're
3636   # using a relative directory.
3637   cp "$am_depcomp" conftest.dir
3638   cd conftest.dir
3639   # We will build objects and dependencies in a subdirectory because
3640   # it helps to detect inapplicable dependency modes.  For instance
3641   # both Tru64's cc and ICC support -MD to output dependencies as a
3642   # side effect of compilation, but ICC will put the dependencies in
3643   # the current directory while Tru64 will put them in the object
3644   # directory.
3645   mkdir sub
3646
3647   am_cv_CC_dependencies_compiler_type=none
3648   if test "$am_compiler_list" = ""; then
3649      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3650   fi
3651   am__universal=false
3652   case " $depcc " in #(
3653      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3654      esac
3655
3656   for depmode in $am_compiler_list; do
3657     # Setup a source with many dependencies, because some compilers
3658     # like to wrap large dependency lists on column 80 (with \), and
3659     # we should not choose a depcomp mode which is confused by this.
3660     #
3661     # We need to recreate these files for each test, as the compiler may
3662     # overwrite some of them when testing with obscure command lines.
3663     # This happens at least with the AIX C compiler.
3664     : > sub/conftest.c
3665     for i in 1 2 3 4 5 6; do
3666       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3667       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3668       # Solaris 8's {/usr,}/bin/sh.
3669       touch sub/conftst$i.h
3670     done
3671     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3672
3673     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3674     # mode.  It turns out that the SunPro C++ compiler does not properly
3675     # handle `-M -o', and we need to detect this.  Also, some Intel
3676     # versions had trouble with output in subdirs
3677     am__obj=sub/conftest.${OBJEXT-o}
3678     am__minus_obj="-o $am__obj"
3679     case $depmode in
3680     gcc)
3681       # This depmode causes a compiler race in universal mode.
3682       test "$am__universal" = false || continue
3683       ;;
3684     nosideeffect)
3685       # after this tag, mechanisms are not by side-effect, so they'll
3686       # only be used when explicitly requested
3687       if test "x$enable_dependency_tracking" = xyes; then
3688         continue
3689       else
3690         break
3691       fi
3692       ;;
3693     msvisualcpp | msvcmsys)
3694       # This compiler won't grok `-c -o', but also, the minuso test has
3695       # not run yet.  These depmodes are late enough in the game, and
3696       # so weak that their functioning should not be impacted.
3697       am__obj=conftest.${OBJEXT-o}
3698       am__minus_obj=
3699       ;;
3700     none) break ;;
3701     esac
3702     if depmode=$depmode \
3703        source=sub/conftest.c object=$am__obj \
3704        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3705        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3706          >/dev/null 2>conftest.err &&
3707        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3708        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3709        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3710        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3711       # icc doesn't choke on unknown options, it will just issue warnings
3712       # or remarks (even with -Werror).  So we grep stderr for any message
3713       # that says an option was ignored or not supported.
3714       # When given -MP, icc 7.0 and 7.1 complain thusly:
3715       #   icc: Command line warning: ignoring option '-M'; no argument required
3716       # The diagnosis changed in icc 8.0:
3717       #   icc: Command line remark: option '-MP' not supported
3718       if (grep 'ignoring option' conftest.err ||
3719           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3720         am_cv_CC_dependencies_compiler_type=$depmode
3721         break
3722       fi
3723     fi
3724   done
3725
3726   cd ..
3727   rm -rf conftest.dir
3728 else
3729   am_cv_CC_dependencies_compiler_type=none
3730 fi
3731
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3734 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3735 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3736
3737  if
3738   test "x$enable_dependency_tracking" != xno \
3739   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3740   am__fastdepCC_TRUE=
3741   am__fastdepCC_FALSE='#'
3742 else
3743   am__fastdepCC_TRUE='#'
3744   am__fastdepCC_FALSE=
3745 fi
3746
3747
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3749 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3750 if ${ac_cv_path_SED+:} false; then :
3751   $as_echo_n "(cached) " >&6
3752 else
3753             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3754      for ac_i in 1 2 3 4 5 6 7; do
3755        ac_script="$ac_script$as_nl$ac_script"
3756      done
3757      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3758      { ac_script=; unset ac_script;}
3759      if test -z "$SED"; then
3760   ac_path_SED_found=false
3761   # Loop through the user's path and test for each of PROGNAME-LIST
3762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765   IFS=$as_save_IFS
3766   test -z "$as_dir" && as_dir=.
3767     for ac_prog in sed gsed; do
3768     for ac_exec_ext in '' $ac_executable_extensions; do
3769       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3770       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3771 # Check for GNU ac_path_SED and select it if it is found.
3772   # Check for GNU $ac_path_SED
3773 case `"$ac_path_SED" --version 2>&1` in
3774 *GNU*)
3775   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3776 *)
3777   ac_count=0
3778   $as_echo_n 0123456789 >"conftest.in"
3779   while :
3780   do
3781     cat "conftest.in" "conftest.in" >"conftest.tmp"
3782     mv "conftest.tmp" "conftest.in"
3783     cp "conftest.in" "conftest.nl"
3784     $as_echo '' >> "conftest.nl"
3785     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3786     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3787     as_fn_arith $ac_count + 1 && ac_count=$as_val
3788     if test $ac_count -gt ${ac_path_SED_max-0}; then
3789       # Best one so far, save it but keep looking for a better one
3790       ac_cv_path_SED="$ac_path_SED"
3791       ac_path_SED_max=$ac_count
3792     fi
3793     # 10*(2^10) chars as input seems more than enough
3794     test $ac_count -gt 10 && break
3795   done
3796   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3797 esac
3798
3799       $ac_path_SED_found && break 3
3800     done
3801   done
3802   done
3803 IFS=$as_save_IFS
3804   if test -z "$ac_cv_path_SED"; then
3805     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3806   fi
3807 else
3808   ac_cv_path_SED=$SED
3809 fi
3810
3811 fi
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3813 $as_echo "$ac_cv_path_SED" >&6; }
3814  SED="$ac_cv_path_SED"
3815   rm -f conftest.sed
3816
3817 test -z "$SED" && SED=sed
3818 Xsed="$SED -e 1s/^X//"
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3831 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3832 if ${ac_cv_path_GREP+:} false; then :
3833   $as_echo_n "(cached) " >&6
3834 else
3835   if test -z "$GREP"; then
3836   ac_path_GREP_found=false
3837   # Loop through the user's path and test for each of PROGNAME-LIST
3838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3840 do
3841   IFS=$as_save_IFS
3842   test -z "$as_dir" && as_dir=.
3843     for ac_prog in grep ggrep; do
3844     for ac_exec_ext in '' $ac_executable_extensions; do
3845       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3846       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3847 # Check for GNU ac_path_GREP and select it if it is found.
3848   # Check for GNU $ac_path_GREP
3849 case `"$ac_path_GREP" --version 2>&1` in
3850 *GNU*)
3851   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3852 *)
3853   ac_count=0
3854   $as_echo_n 0123456789 >"conftest.in"
3855   while :
3856   do
3857     cat "conftest.in" "conftest.in" >"conftest.tmp"
3858     mv "conftest.tmp" "conftest.in"
3859     cp "conftest.in" "conftest.nl"
3860     $as_echo 'GREP' >> "conftest.nl"
3861     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3862     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3863     as_fn_arith $ac_count + 1 && ac_count=$as_val
3864     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3865       # Best one so far, save it but keep looking for a better one
3866       ac_cv_path_GREP="$ac_path_GREP"
3867       ac_path_GREP_max=$ac_count
3868     fi
3869     # 10*(2^10) chars as input seems more than enough
3870     test $ac_count -gt 10 && break
3871   done
3872   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3873 esac
3874
3875       $ac_path_GREP_found && break 3
3876     done
3877   done
3878   done
3879 IFS=$as_save_IFS
3880   if test -z "$ac_cv_path_GREP"; then
3881     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3882   fi
3883 else
3884   ac_cv_path_GREP=$GREP
3885 fi
3886
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3889 $as_echo "$ac_cv_path_GREP" >&6; }
3890  GREP="$ac_cv_path_GREP"
3891
3892
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3894 $as_echo_n "checking for egrep... " >&6; }
3895 if ${ac_cv_path_EGREP+:} false; then :
3896   $as_echo_n "(cached) " >&6
3897 else
3898   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3899    then ac_cv_path_EGREP="$GREP -E"
3900    else
3901      if test -z "$EGREP"; then
3902   ac_path_EGREP_found=false
3903   # Loop through the user's path and test for each of PROGNAME-LIST
3904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3906 do
3907   IFS=$as_save_IFS
3908   test -z "$as_dir" && as_dir=.
3909     for ac_prog in egrep; do
3910     for ac_exec_ext in '' $ac_executable_extensions; do
3911       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3912       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3913 # Check for GNU ac_path_EGREP and select it if it is found.
3914   # Check for GNU $ac_path_EGREP
3915 case `"$ac_path_EGREP" --version 2>&1` in
3916 *GNU*)
3917   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3918 *)
3919   ac_count=0
3920   $as_echo_n 0123456789 >"conftest.in"
3921   while :
3922   do
3923     cat "conftest.in" "conftest.in" >"conftest.tmp"
3924     mv "conftest.tmp" "conftest.in"
3925     cp "conftest.in" "conftest.nl"
3926     $as_echo 'EGREP' >> "conftest.nl"
3927     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3928     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3929     as_fn_arith $ac_count + 1 && ac_count=$as_val
3930     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3931       # Best one so far, save it but keep looking for a better one
3932       ac_cv_path_EGREP="$ac_path_EGREP"
3933       ac_path_EGREP_max=$ac_count
3934     fi
3935     # 10*(2^10) chars as input seems more than enough
3936     test $ac_count -gt 10 && break
3937   done
3938   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939 esac
3940
3941       $ac_path_EGREP_found && break 3
3942     done
3943   done
3944   done
3945 IFS=$as_save_IFS
3946   if test -z "$ac_cv_path_EGREP"; then
3947     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3948   fi
3949 else
3950   ac_cv_path_EGREP=$EGREP
3951 fi
3952
3953    fi
3954 fi
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3956 $as_echo "$ac_cv_path_EGREP" >&6; }
3957  EGREP="$ac_cv_path_EGREP"
3958
3959
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3961 $as_echo_n "checking for fgrep... " >&6; }
3962 if ${ac_cv_path_FGREP+:} false; then :
3963   $as_echo_n "(cached) " >&6
3964 else
3965   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3966    then ac_cv_path_FGREP="$GREP -F"
3967    else
3968      if test -z "$FGREP"; then
3969   ac_path_FGREP_found=false
3970   # Loop through the user's path and test for each of PROGNAME-LIST
3971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3973 do
3974   IFS=$as_save_IFS
3975   test -z "$as_dir" && as_dir=.
3976     for ac_prog in fgrep; do
3977     for ac_exec_ext in '' $ac_executable_extensions; do
3978       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3979       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3980 # Check for GNU ac_path_FGREP and select it if it is found.
3981   # Check for GNU $ac_path_FGREP
3982 case `"$ac_path_FGREP" --version 2>&1` in
3983 *GNU*)
3984   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3985 *)
3986   ac_count=0
3987   $as_echo_n 0123456789 >"conftest.in"
3988   while :
3989   do
3990     cat "conftest.in" "conftest.in" >"conftest.tmp"
3991     mv "conftest.tmp" "conftest.in"
3992     cp "conftest.in" "conftest.nl"
3993     $as_echo 'FGREP' >> "conftest.nl"
3994     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996     as_fn_arith $ac_count + 1 && ac_count=$as_val
3997     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3998       # Best one so far, save it but keep looking for a better one
3999       ac_cv_path_FGREP="$ac_path_FGREP"
4000       ac_path_FGREP_max=$ac_count
4001     fi
4002     # 10*(2^10) chars as input seems more than enough
4003     test $ac_count -gt 10 && break
4004   done
4005   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4006 esac
4007
4008       $ac_path_FGREP_found && break 3
4009     done
4010   done
4011   done
4012 IFS=$as_save_IFS
4013   if test -z "$ac_cv_path_FGREP"; then
4014     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4015   fi
4016 else
4017   ac_cv_path_FGREP=$FGREP
4018 fi
4019
4020    fi
4021 fi
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4023 $as_echo "$ac_cv_path_FGREP" >&6; }
4024  FGREP="$ac_cv_path_FGREP"
4025
4026
4027 test -z "$GREP" && GREP=grep
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047 # Check whether --with-gnu-ld was given.
4048 if test "${with_gnu_ld+set}" = set; then :
4049   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4050 else
4051   with_gnu_ld=no
4052 fi
4053
4054 ac_prog=ld
4055 if test "$GCC" = yes; then
4056   # Check if gcc -print-prog-name=ld gives a path.
4057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4058 $as_echo_n "checking for ld used by $CC... " >&6; }
4059   case $host in
4060   *-*-mingw*)
4061     # gcc leaves a trailing carriage return which upsets mingw
4062     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4063   *)
4064     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4065   esac
4066   case $ac_prog in
4067     # Accept absolute paths.
4068     [\\/]* | ?:[\\/]*)
4069       re_direlt='/[^/][^/]*/\.\./'
4070       # Canonicalize the pathname of ld
4071       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4072       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4073         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4074       done
4075       test -z "$LD" && LD="$ac_prog"
4076       ;;
4077   "")
4078     # If it fails, then pretend we aren't using GCC.
4079     ac_prog=ld
4080     ;;
4081   *)
4082     # If it is relative, then search for the first ld in PATH.
4083     with_gnu_ld=unknown
4084     ;;
4085   esac
4086 elif test "$with_gnu_ld" = yes; then
4087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4088 $as_echo_n "checking for GNU ld... " >&6; }
4089 else
4090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4091 $as_echo_n "checking for non-GNU ld... " >&6; }
4092 fi
4093 if ${lt_cv_path_LD+:} false; then :
4094   $as_echo_n "(cached) " >&6
4095 else
4096   if test -z "$LD"; then
4097   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4098   for ac_dir in $PATH; do
4099     IFS="$lt_save_ifs"
4100     test -z "$ac_dir" && ac_dir=.
4101     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4102       lt_cv_path_LD="$ac_dir/$ac_prog"
4103       # Check to see if the program is GNU ld.  I'd rather use --version,
4104       # but apparently some variants of GNU ld only accept -v.
4105       # Break only if it was the GNU/non-GNU ld that we prefer.
4106       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4107       *GNU* | *'with BFD'*)
4108         test "$with_gnu_ld" != no && break
4109         ;;
4110       *)
4111         test "$with_gnu_ld" != yes && break
4112         ;;
4113       esac
4114     fi
4115   done
4116   IFS="$lt_save_ifs"
4117 else
4118   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4119 fi
4120 fi
4121
4122 LD="$lt_cv_path_LD"
4123 if test -n "$LD"; then
4124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4125 $as_echo "$LD" >&6; }
4126 else
4127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4129 fi
4130 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4132 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4133 if ${lt_cv_prog_gnu_ld+:} false; then :
4134   $as_echo_n "(cached) " >&6
4135 else
4136   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4137 case `$LD -v 2>&1 </dev/null` in
4138 *GNU* | *'with BFD'*)
4139   lt_cv_prog_gnu_ld=yes
4140   ;;
4141 *)
4142   lt_cv_prog_gnu_ld=no
4143   ;;
4144 esac
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4147 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4148 with_gnu_ld=$lt_cv_prog_gnu_ld
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4159 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4160 if ${lt_cv_path_NM+:} false; then :
4161   $as_echo_n "(cached) " >&6
4162 else
4163   if test -n "$NM"; then
4164   # Let the user override the test.
4165   lt_cv_path_NM="$NM"
4166 else
4167   lt_nm_to_check="${ac_tool_prefix}nm"
4168   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4169     lt_nm_to_check="$lt_nm_to_check nm"
4170   fi
4171   for lt_tmp_nm in $lt_nm_to_check; do
4172     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4173     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4174       IFS="$lt_save_ifs"
4175       test -z "$ac_dir" && ac_dir=.
4176       tmp_nm="$ac_dir/$lt_tmp_nm"
4177       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4178         # Check to see if the nm accepts a BSD-compat flag.
4179         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4180         #   nm: unknown option "B" ignored
4181         # Tru64's nm complains that /dev/null is an invalid object file
4182         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4183         */dev/null* | *'Invalid file or object type'*)
4184           lt_cv_path_NM="$tmp_nm -B"
4185           break
4186           ;;
4187         *)
4188           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4189           */dev/null*)
4190             lt_cv_path_NM="$tmp_nm -p"
4191             break
4192             ;;
4193           *)
4194             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4195             continue # so that we can try to find one that supports BSD flags
4196             ;;
4197           esac
4198           ;;
4199         esac
4200       fi
4201     done
4202     IFS="$lt_save_ifs"
4203   done
4204   : ${lt_cv_path_NM=no}
4205 fi
4206 fi
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4208 $as_echo "$lt_cv_path_NM" >&6; }
4209 if test "$lt_cv_path_NM" != "no"; then
4210   NM="$lt_cv_path_NM"
4211 else
4212   # Didn't find any BSD compatible name lister, look for dumpbin.
4213   if test -n "$DUMPBIN"; then :
4214     # Let the user override the test.
4215   else
4216     if test -n "$ac_tool_prefix"; then
4217   for ac_prog in dumpbin "link -dump"
4218   do
4219     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if ${ac_cv_prog_DUMPBIN+:} false; then :
4224   $as_echo_n "(cached) " >&6
4225 else
4226   if test -n "$DUMPBIN"; then
4227   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232   IFS=$as_save_IFS
4233   test -z "$as_dir" && as_dir=.
4234     for ac_exec_ext in '' $ac_executable_extensions; do
4235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238     break 2
4239   fi
4240 done
4241   done
4242 IFS=$as_save_IFS
4243
4244 fi
4245 fi
4246 DUMPBIN=$ac_cv_prog_DUMPBIN
4247 if test -n "$DUMPBIN"; then
4248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4249 $as_echo "$DUMPBIN" >&6; }
4250 else
4251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4253 fi
4254
4255
4256     test -n "$DUMPBIN" && break
4257   done
4258 fi
4259 if test -z "$DUMPBIN"; then
4260   ac_ct_DUMPBIN=$DUMPBIN
4261   for ac_prog in dumpbin "link -dump"
4262 do
4263   # Extract the first word of "$ac_prog", so it can be a program name with args.
4264 set dummy $ac_prog; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4268   $as_echo_n "(cached) " >&6
4269 else
4270   if test -n "$ac_ct_DUMPBIN"; then
4271   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276   IFS=$as_save_IFS
4277   test -z "$as_dir" && as_dir=.
4278     for ac_exec_ext in '' $ac_executable_extensions; do
4279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282     break 2
4283   fi
4284 done
4285   done
4286 IFS=$as_save_IFS
4287
4288 fi
4289 fi
4290 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4291 if test -n "$ac_ct_DUMPBIN"; then
4292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4293 $as_echo "$ac_ct_DUMPBIN" >&6; }
4294 else
4295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 fi
4298
4299
4300   test -n "$ac_ct_DUMPBIN" && break
4301 done
4302
4303   if test "x$ac_ct_DUMPBIN" = x; then
4304     DUMPBIN=":"
4305   else
4306     case $cross_compiling:$ac_tool_warned in
4307 yes:)
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4310 ac_tool_warned=yes ;;
4311 esac
4312     DUMPBIN=$ac_ct_DUMPBIN
4313   fi
4314 fi
4315
4316     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4317     *COFF*)
4318       DUMPBIN="$DUMPBIN -symbols"
4319       ;;
4320     *)
4321       DUMPBIN=:
4322       ;;
4323     esac
4324   fi
4325
4326   if test "$DUMPBIN" != ":"; then
4327     NM="$DUMPBIN"
4328   fi
4329 fi
4330 test -z "$NM" && NM=nm
4331
4332
4333
4334
4335
4336
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4338 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4339 if ${lt_cv_nm_interface+:} false; then :
4340   $as_echo_n "(cached) " >&6
4341 else
4342   lt_cv_nm_interface="BSD nm"
4343   echo "int some_variable = 0;" > conftest.$ac_ext
4344   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4345   (eval "$ac_compile" 2>conftest.err)
4346   cat conftest.err >&5
4347   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4348   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4349   cat conftest.err >&5
4350   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4351   cat conftest.out >&5
4352   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4353     lt_cv_nm_interface="MS dumpbin"
4354   fi
4355   rm -f conftest*
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4358 $as_echo "$lt_cv_nm_interface" >&6; }
4359
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4361 $as_echo_n "checking whether ln -s works... " >&6; }
4362 LN_S=$as_ln_s
4363 if test "$LN_S" = "ln -s"; then
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4365 $as_echo "yes" >&6; }
4366 else
4367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4368 $as_echo "no, using $LN_S" >&6; }
4369 fi
4370
4371 # find the maximum length of command line arguments
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4373 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4374 if ${lt_cv_sys_max_cmd_len+:} false; then :
4375   $as_echo_n "(cached) " >&6
4376 else
4377     i=0
4378   teststring="ABCD"
4379
4380   case $build_os in
4381   msdosdjgpp*)
4382     # On DJGPP, this test can blow up pretty badly due to problems in libc
4383     # (any single argument exceeding 2000 bytes causes a buffer overrun
4384     # during glob expansion).  Even if it were fixed, the result of this
4385     # check would be larger than it should be.
4386     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4387     ;;
4388
4389   gnu*)
4390     # Under GNU Hurd, this test is not required because there is
4391     # no limit to the length of command line arguments.
4392     # Libtool will interpret -1 as no limit whatsoever
4393     lt_cv_sys_max_cmd_len=-1;
4394     ;;
4395
4396   cygwin* | mingw* | cegcc*)
4397     # On Win9x/ME, this test blows up -- it succeeds, but takes
4398     # about 5 minutes as the teststring grows exponentially.
4399     # Worse, since 9x/ME are not pre-emptively multitasking,
4400     # you end up with a "frozen" computer, even though with patience
4401     # the test eventually succeeds (with a max line length of 256k).
4402     # Instead, let's just punt: use the minimum linelength reported by
4403     # all of the supported platforms: 8192 (on NT/2K/XP).
4404     lt_cv_sys_max_cmd_len=8192;
4405     ;;
4406
4407   mint*)
4408     # On MiNT this can take a long time and run out of memory.
4409     lt_cv_sys_max_cmd_len=8192;
4410     ;;
4411
4412   amigaos*)
4413     # On AmigaOS with pdksh, this test takes hours, literally.
4414     # So we just punt and use a minimum line length of 8192.
4415     lt_cv_sys_max_cmd_len=8192;
4416     ;;
4417
4418   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4419     # This has been around since 386BSD, at least.  Likely further.
4420     if test -x /sbin/sysctl; then
4421       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4422     elif test -x /usr/sbin/sysctl; then
4423       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4424     else
4425       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4426     fi
4427     # And add a safety zone
4428     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4429     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4430     ;;
4431
4432   interix*)
4433     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4434     lt_cv_sys_max_cmd_len=196608
4435     ;;
4436
4437   os2*)
4438     # The test takes a long time on OS/2.
4439     lt_cv_sys_max_cmd_len=8192
4440     ;;
4441
4442   osf*)
4443     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4444     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4445     # nice to cause kernel panics so lets avoid the loop below.
4446     # First set a reasonable default.
4447     lt_cv_sys_max_cmd_len=16384
4448     #
4449     if test -x /sbin/sysconfig; then
4450       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4451         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4452       esac
4453     fi
4454     ;;
4455   sco3.2v5*)
4456     lt_cv_sys_max_cmd_len=102400
4457     ;;
4458   sysv5* | sco5v6* | sysv4.2uw2*)
4459     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4460     if test -n "$kargmax"; then
4461       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4462     else
4463       lt_cv_sys_max_cmd_len=32768
4464     fi
4465     ;;
4466   *)
4467     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4468     if test -n "$lt_cv_sys_max_cmd_len"; then
4469       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4470       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4471     else
4472       # Make teststring a little bigger before we do anything with it.
4473       # a 1K string should be a reasonable start.
4474       for i in 1 2 3 4 5 6 7 8 ; do
4475         teststring=$teststring$teststring
4476       done
4477       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4478       # If test is not a shell built-in, we'll probably end up computing a
4479       # maximum length that is only half of the actual maximum length, but
4480       # we can't tell.
4481       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4482                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4483               test $i != 17 # 1/2 MB should be enough
4484       do
4485         i=`expr $i + 1`
4486         teststring=$teststring$teststring
4487       done
4488       # Only check the string length outside the loop.
4489       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4490       teststring=
4491       # Add a significant safety factor because C++ compilers can tack on
4492       # massive amounts of additional arguments before passing them to the
4493       # linker.  It appears as though 1/2 is a usable value.
4494       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4495     fi
4496     ;;
4497   esac
4498
4499 fi
4500
4501 if test -n $lt_cv_sys_max_cmd_len ; then
4502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4503 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4504 else
4505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4506 $as_echo "none" >&6; }
4507 fi
4508 max_cmd_len=$lt_cv_sys_max_cmd_len
4509
4510
4511
4512
4513
4514
4515 : ${CP="cp -f"}
4516 : ${MV="mv -f"}
4517 : ${RM="rm -f"}
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4520 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4521 # Try some XSI features
4522 xsi_shell=no
4523 ( _lt_dummy="a/b/c"
4524   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4525       = c,a/b,b/c, \
4526     && eval 'test $(( 1 + 1 )) -eq 2 \
4527     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4528   && xsi_shell=yes
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4530 $as_echo "$xsi_shell" >&6; }
4531
4532
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4534 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4535 lt_shell_append=no
4536 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4537     >/dev/null 2>&1 \
4538   && lt_shell_append=yes
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4540 $as_echo "$lt_shell_append" >&6; }
4541
4542
4543 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4544   lt_unset=unset
4545 else
4546   lt_unset=false
4547 fi
4548
4549
4550
4551
4552
4553 # test EBCDIC or ASCII
4554 case `echo X|tr X '\101'` in
4555  A) # ASCII based system
4556     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4557   lt_SP2NL='tr \040 \012'
4558   lt_NL2SP='tr \015\012 \040\040'
4559   ;;
4560  *) # EBCDIC based system
4561   lt_SP2NL='tr \100 \n'
4562   lt_NL2SP='tr \r\n \100\100'
4563   ;;
4564 esac
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4575 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4576 if ${lt_cv_to_host_file_cmd+:} false; then :
4577   $as_echo_n "(cached) " >&6
4578 else
4579   case $host in
4580   *-*-mingw* )
4581     case $build in
4582       *-*-mingw* ) # actually msys
4583         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4584         ;;
4585       *-*-cygwin* )
4586         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4587         ;;
4588       * ) # otherwise, assume *nix
4589         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4590         ;;
4591     esac
4592     ;;
4593   *-*-cygwin* )
4594     case $build in
4595       *-*-mingw* ) # actually msys
4596         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4597         ;;
4598       *-*-cygwin* )
4599         lt_cv_to_host_file_cmd=func_convert_file_noop
4600         ;;
4601       * ) # otherwise, assume *nix
4602         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4603         ;;
4604     esac
4605     ;;
4606   * ) # unhandled hosts (and "normal" native builds)
4607     lt_cv_to_host_file_cmd=func_convert_file_noop
4608     ;;
4609 esac
4610
4611 fi
4612
4613 to_host_file_cmd=$lt_cv_to_host_file_cmd
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4615 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4616
4617
4618
4619
4620
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4622 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4623 if ${lt_cv_to_tool_file_cmd+:} false; then :
4624   $as_echo_n "(cached) " >&6
4625 else
4626   #assume ordinary cross tools, or native build.
4627 lt_cv_to_tool_file_cmd=func_convert_file_noop
4628 case $host in
4629   *-*-mingw* )
4630     case $build in
4631       *-*-mingw* ) # actually msys
4632         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4633         ;;
4634     esac
4635     ;;
4636 esac
4637
4638 fi
4639
4640 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4642 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4643
4644
4645
4646
4647
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4649 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4650 if ${lt_cv_ld_reload_flag+:} false; then :
4651   $as_echo_n "(cached) " >&6
4652 else
4653   lt_cv_ld_reload_flag='-r'
4654 fi
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4656 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4657 reload_flag=$lt_cv_ld_reload_flag
4658 case $reload_flag in
4659 "" | " "*) ;;
4660 *) reload_flag=" $reload_flag" ;;
4661 esac
4662 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4663 case $host_os in
4664   cygwin* | mingw* | pw32* | cegcc*)
4665     if test "$GCC" != yes; then
4666       reload_cmds=false
4667     fi
4668     ;;
4669   darwin*)
4670     if test "$GCC" = yes; then
4671       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4672     else
4673       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4674     fi
4675     ;;
4676 esac
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686 if test -n "$ac_tool_prefix"; then
4687   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4688 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_OBJDUMP+:} false; then :
4692   $as_echo_n "(cached) " >&6
4693 else
4694   if test -n "$OBJDUMP"; then
4695   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700   IFS=$as_save_IFS
4701   test -z "$as_dir" && as_dir=.
4702     for ac_exec_ext in '' $ac_executable_extensions; do
4703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706     break 2
4707   fi
4708 done
4709   done
4710 IFS=$as_save_IFS
4711
4712 fi
4713 fi
4714 OBJDUMP=$ac_cv_prog_OBJDUMP
4715 if test -n "$OBJDUMP"; then
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4717 $as_echo "$OBJDUMP" >&6; }
4718 else
4719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4721 fi
4722
4723
4724 fi
4725 if test -z "$ac_cv_prog_OBJDUMP"; then
4726   ac_ct_OBJDUMP=$OBJDUMP
4727   # Extract the first word of "objdump", so it can be a program name with args.
4728 set dummy objdump; ac_word=$2
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730 $as_echo_n "checking for $ac_word... " >&6; }
4731 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4732   $as_echo_n "(cached) " >&6
4733 else
4734   if test -n "$ac_ct_OBJDUMP"; then
4735   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4736 else
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740   IFS=$as_save_IFS
4741   test -z "$as_dir" && as_dir=.
4742     for ac_exec_ext in '' $ac_executable_extensions; do
4743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746     break 2
4747   fi
4748 done
4749   done
4750 IFS=$as_save_IFS
4751
4752 fi
4753 fi
4754 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4755 if test -n "$ac_ct_OBJDUMP"; then
4756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4757 $as_echo "$ac_ct_OBJDUMP" >&6; }
4758 else
4759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760 $as_echo "no" >&6; }
4761 fi
4762
4763   if test "x$ac_ct_OBJDUMP" = x; then
4764     OBJDUMP="false"
4765   else
4766     case $cross_compiling:$ac_tool_warned in
4767 yes:)
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4770 ac_tool_warned=yes ;;
4771 esac
4772     OBJDUMP=$ac_ct_OBJDUMP
4773   fi
4774 else
4775   OBJDUMP="$ac_cv_prog_OBJDUMP"
4776 fi
4777
4778 test -z "$OBJDUMP" && OBJDUMP=objdump
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4789 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4790 if ${lt_cv_deplibs_check_method+:} false; then :
4791   $as_echo_n "(cached) " >&6
4792 else
4793   lt_cv_file_magic_cmd='$MAGIC_CMD'
4794 lt_cv_file_magic_test_file=
4795 lt_cv_deplibs_check_method='unknown'
4796 # Need to set the preceding variable on all platforms that support
4797 # interlibrary dependencies.
4798 # 'none' -- dependencies not supported.
4799 # `unknown' -- same as none, but documents that we really don't know.
4800 # 'pass_all' -- all dependencies passed with no checks.
4801 # 'test_compile' -- check by making test program.
4802 # 'file_magic [[regex]]' -- check by looking for files in library path
4803 # which responds to the $file_magic_cmd with a given extended regex.
4804 # If you have `file' or equivalent on your system and you're not sure
4805 # whether `pass_all' will *always* work, you probably want this one.
4806
4807 case $host_os in
4808 aix[4-9]*)
4809   lt_cv_deplibs_check_method=pass_all
4810   ;;
4811
4812 beos*)
4813   lt_cv_deplibs_check_method=pass_all
4814   ;;
4815
4816 bsdi[45]*)
4817   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4818   lt_cv_file_magic_cmd='/usr/bin/file -L'
4819   lt_cv_file_magic_test_file=/shlib/libc.so
4820   ;;
4821
4822 cygwin*)
4823   # func_win32_libid is a shell function defined in ltmain.sh
4824   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4825   lt_cv_file_magic_cmd='func_win32_libid'
4826   ;;
4827
4828 mingw* | pw32*)
4829   # Base MSYS/MinGW do not provide the 'file' command needed by
4830   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4831   # unless we find 'file', for example because we are cross-compiling.
4832   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4833   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4834     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4835     lt_cv_file_magic_cmd='func_win32_libid'
4836   else
4837     # Keep this pattern in sync with the one in func_win32_libid.
4838     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4839     lt_cv_file_magic_cmd='$OBJDUMP -f'
4840   fi
4841   ;;
4842
4843 cegcc*)
4844   # use the weaker test based on 'objdump'. See mingw*.
4845   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4846   lt_cv_file_magic_cmd='$OBJDUMP -f'
4847   ;;
4848
4849 darwin* | rhapsody*)
4850   lt_cv_deplibs_check_method=pass_all
4851   ;;
4852
4853 freebsd* | dragonfly*)
4854   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4855     case $host_cpu in
4856     i*86 )
4857       # Not sure whether the presence of OpenBSD here was a mistake.
4858       # Let's accept both of them until this is cleared up.
4859       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4860       lt_cv_file_magic_cmd=/usr/bin/file
4861       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4862       ;;
4863     esac
4864   else
4865     lt_cv_deplibs_check_method=pass_all
4866   fi
4867   ;;
4868
4869 gnu*)
4870   lt_cv_deplibs_check_method=pass_all
4871   ;;
4872
4873 haiku*)
4874   lt_cv_deplibs_check_method=pass_all
4875   ;;
4876
4877 hpux10.20* | hpux11*)
4878   lt_cv_file_magic_cmd=/usr/bin/file
4879   case $host_cpu in
4880   ia64*)
4881     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4882     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4883     ;;
4884   hppa*64*)
4885     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]'
4886     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4887     ;;
4888   *)
4889     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4890     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4891     ;;
4892   esac
4893   ;;
4894
4895 interix[3-9]*)
4896   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4897   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4898   ;;
4899
4900 irix5* | irix6* | nonstopux*)
4901   case $LD in
4902   *-32|*"-32 ") libmagic=32-bit;;
4903   *-n32|*"-n32 ") libmagic=N32;;
4904   *-64|*"-64 ") libmagic=64-bit;;
4905   *) libmagic=never-match;;
4906   esac
4907   lt_cv_deplibs_check_method=pass_all
4908   ;;
4909
4910 # This must be glibc/ELF.
4911 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4912   lt_cv_deplibs_check_method=pass_all
4913   ;;
4914
4915 netbsd* | netbsdelf*-gnu)
4916   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4917     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4918   else
4919     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4920   fi
4921   ;;
4922
4923 newos6*)
4924   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4925   lt_cv_file_magic_cmd=/usr/bin/file
4926   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4927   ;;
4928
4929 *nto* | *qnx*)
4930   lt_cv_deplibs_check_method=pass_all
4931   ;;
4932
4933 openbsd*)
4934   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4935     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4936   else
4937     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4938   fi
4939   ;;
4940
4941 osf3* | osf4* | osf5*)
4942   lt_cv_deplibs_check_method=pass_all
4943   ;;
4944
4945 rdos*)
4946   lt_cv_deplibs_check_method=pass_all
4947   ;;
4948
4949 solaris*)
4950   lt_cv_deplibs_check_method=pass_all
4951   ;;
4952
4953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4954   lt_cv_deplibs_check_method=pass_all
4955   ;;
4956
4957 sysv4 | sysv4.3*)
4958   case $host_vendor in
4959   motorola)
4960     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]'
4961     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4962     ;;
4963   ncr)
4964     lt_cv_deplibs_check_method=pass_all
4965     ;;
4966   sequent)
4967     lt_cv_file_magic_cmd='/bin/file'
4968     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4969     ;;
4970   sni)
4971     lt_cv_file_magic_cmd='/bin/file'
4972     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4973     lt_cv_file_magic_test_file=/lib/libc.so
4974     ;;
4975   siemens)
4976     lt_cv_deplibs_check_method=pass_all
4977     ;;
4978   pc)
4979     lt_cv_deplibs_check_method=pass_all
4980     ;;
4981   esac
4982   ;;
4983
4984 tpf*)
4985   lt_cv_deplibs_check_method=pass_all
4986   ;;
4987 esac
4988
4989 fi
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4991 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4992
4993 file_magic_glob=
4994 want_nocaseglob=no
4995 if test "$build" = "$host"; then
4996   case $host_os in
4997   mingw* | pw32*)
4998     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4999       want_nocaseglob=yes
5000     else
5001       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5002     fi
5003     ;;
5004   esac
5005 fi
5006
5007 file_magic_cmd=$lt_cv_file_magic_cmd
5008 deplibs_check_method=$lt_cv_deplibs_check_method
5009 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032 if test -n "$ac_tool_prefix"; then
5033   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5034 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if ${ac_cv_prog_DLLTOOL+:} false; then :
5038   $as_echo_n "(cached) " >&6
5039 else
5040   if test -n "$DLLTOOL"; then
5041   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5045 do
5046   IFS=$as_save_IFS
5047   test -z "$as_dir" && as_dir=.
5048     for ac_exec_ext in '' $ac_executable_extensions; do
5049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5050     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052     break 2
5053   fi
5054 done
5055   done
5056 IFS=$as_save_IFS
5057
5058 fi
5059 fi
5060 DLLTOOL=$ac_cv_prog_DLLTOOL
5061 if test -n "$DLLTOOL"; then
5062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5063 $as_echo "$DLLTOOL" >&6; }
5064 else
5065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5067 fi
5068
5069
5070 fi
5071 if test -z "$ac_cv_prog_DLLTOOL"; then
5072   ac_ct_DLLTOOL=$DLLTOOL
5073   # Extract the first word of "dlltool", so it can be a program name with args.
5074 set dummy dlltool; ac_word=$2
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5076 $as_echo_n "checking for $ac_word... " >&6; }
5077 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5078   $as_echo_n "(cached) " >&6
5079 else
5080   if test -n "$ac_ct_DLLTOOL"; then
5081   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5082 else
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5085 do
5086   IFS=$as_save_IFS
5087   test -z "$as_dir" && as_dir=.
5088     for ac_exec_ext in '' $ac_executable_extensions; do
5089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5090     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5092     break 2
5093   fi
5094 done
5095   done
5096 IFS=$as_save_IFS
5097
5098 fi
5099 fi
5100 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5101 if test -n "$ac_ct_DLLTOOL"; then
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5103 $as_echo "$ac_ct_DLLTOOL" >&6; }
5104 else
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5107 fi
5108
5109   if test "x$ac_ct_DLLTOOL" = x; then
5110     DLLTOOL="false"
5111   else
5112     case $cross_compiling:$ac_tool_warned in
5113 yes:)
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5116 ac_tool_warned=yes ;;
5117 esac
5118     DLLTOOL=$ac_ct_DLLTOOL
5119   fi
5120 else
5121   DLLTOOL="$ac_cv_prog_DLLTOOL"
5122 fi
5123
5124 test -z "$DLLTOOL" && DLLTOOL=dlltool
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5136 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5137 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5138   $as_echo_n "(cached) " >&6
5139 else
5140   lt_cv_sharedlib_from_linklib_cmd='unknown'
5141
5142 case $host_os in
5143 cygwin* | mingw* | pw32* | cegcc*)
5144   # two different shell functions defined in ltmain.sh
5145   # decide which to use based on capabilities of $DLLTOOL
5146   case `$DLLTOOL --help 2>&1` in
5147   *--identify-strict*)
5148     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5149     ;;
5150   *)
5151     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5152     ;;
5153   esac
5154   ;;
5155 *)
5156   # fallback: assume linklib IS sharedlib
5157   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5158   ;;
5159 esac
5160
5161 fi
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5163 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5164 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5165 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5166
5167
5168
5169
5170
5171
5172
5173
5174 if test -n "$ac_tool_prefix"; then
5175   for ac_prog in ar
5176   do
5177     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if ${ac_cv_prog_AR+:} false; then :
5182   $as_echo_n "(cached) " >&6
5183 else
5184   if test -n "$AR"; then
5185   ac_cv_prog_AR="$AR" # Let the user override the test.
5186 else
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5189 do
5190   IFS=$as_save_IFS
5191   test -z "$as_dir" && as_dir=.
5192     for ac_exec_ext in '' $ac_executable_extensions; do
5193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196     break 2
5197   fi
5198 done
5199   done
5200 IFS=$as_save_IFS
5201
5202 fi
5203 fi
5204 AR=$ac_cv_prog_AR
5205 if test -n "$AR"; then
5206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5207 $as_echo "$AR" >&6; }
5208 else
5209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 $as_echo "no" >&6; }
5211 fi
5212
5213
5214     test -n "$AR" && break
5215   done
5216 fi
5217 if test -z "$AR"; then
5218   ac_ct_AR=$AR
5219   for ac_prog in ar
5220 do
5221   # Extract the first word of "$ac_prog", so it can be a program name with args.
5222 set dummy $ac_prog; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5226   $as_echo_n "(cached) " >&6
5227 else
5228   if test -n "$ac_ct_AR"; then
5229   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236     for ac_exec_ext in '' $ac_executable_extensions; do
5237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238     ac_cv_prog_ac_ct_AR="$ac_prog"
5239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240     break 2
5241   fi
5242 done
5243   done
5244 IFS=$as_save_IFS
5245
5246 fi
5247 fi
5248 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5249 if test -n "$ac_ct_AR"; then
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5251 $as_echo "$ac_ct_AR" >&6; }
5252 else
5253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 fi
5256
5257
5258   test -n "$ac_ct_AR" && break
5259 done
5260
5261   if test "x$ac_ct_AR" = x; then
5262     AR="false"
5263   else
5264     case $cross_compiling:$ac_tool_warned in
5265 yes:)
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5268 ac_tool_warned=yes ;;
5269 esac
5270     AR=$ac_ct_AR
5271   fi
5272 fi
5273
5274 : ${AR=ar}
5275 : ${AR_FLAGS=cru}
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5288 $as_echo_n "checking for archiver @FILE support... " >&6; }
5289 if ${lt_cv_ar_at_file+:} false; then :
5290   $as_echo_n "(cached) " >&6
5291 else
5292   lt_cv_ar_at_file=no
5293    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h.  */
5295
5296 int
5297 main ()
5298 {
5299
5300   ;
5301   return 0;
5302 }
5303 _ACEOF
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305   echo conftest.$ac_objext > conftest.lst
5306       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5307       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5308   (eval $lt_ar_try) 2>&5
5309   ac_status=$?
5310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5311   test $ac_status = 0; }
5312       if test "$ac_status" -eq 0; then
5313         # Ensure the archiver fails upon bogus file names.
5314         rm -f conftest.$ac_objext libconftest.a
5315         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5316   (eval $lt_ar_try) 2>&5
5317   ac_status=$?
5318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5319   test $ac_status = 0; }
5320         if test "$ac_status" -ne 0; then
5321           lt_cv_ar_at_file=@
5322         fi
5323       fi
5324       rm -f conftest.* libconftest.a
5325
5326 fi
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328
5329 fi
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5331 $as_echo "$lt_cv_ar_at_file" >&6; }
5332
5333 if test "x$lt_cv_ar_at_file" = xno; then
5334   archiver_list_spec=
5335 else
5336   archiver_list_spec=$lt_cv_ar_at_file
5337 fi
5338
5339
5340
5341
5342
5343
5344
5345 if test -n "$ac_tool_prefix"; then
5346   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5347 set dummy ${ac_tool_prefix}strip; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_prog_STRIP+:} false; then :
5351   $as_echo_n "(cached) " >&6
5352 else
5353   if test -n "$STRIP"; then
5354   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5358 do
5359   IFS=$as_save_IFS
5360   test -z "$as_dir" && as_dir=.
5361     for ac_exec_ext in '' $ac_executable_extensions; do
5362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365     break 2
5366   fi
5367 done
5368   done
5369 IFS=$as_save_IFS
5370
5371 fi
5372 fi
5373 STRIP=$ac_cv_prog_STRIP
5374 if test -n "$STRIP"; then
5375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5376 $as_echo "$STRIP" >&6; }
5377 else
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380 fi
5381
5382
5383 fi
5384 if test -z "$ac_cv_prog_STRIP"; then
5385   ac_ct_STRIP=$STRIP
5386   # Extract the first word of "strip", so it can be a program name with args.
5387 set dummy strip; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5391   $as_echo_n "(cached) " >&6
5392 else
5393   if test -n "$ac_ct_STRIP"; then
5394   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399   IFS=$as_save_IFS
5400   test -z "$as_dir" && as_dir=.
5401     for ac_exec_ext in '' $ac_executable_extensions; do
5402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403     ac_cv_prog_ac_ct_STRIP="strip"
5404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405     break 2
5406   fi
5407 done
5408   done
5409 IFS=$as_save_IFS
5410
5411 fi
5412 fi
5413 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5414 if test -n "$ac_ct_STRIP"; then
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5416 $as_echo "$ac_ct_STRIP" >&6; }
5417 else
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5420 fi
5421
5422   if test "x$ac_ct_STRIP" = x; then
5423     STRIP=":"
5424   else
5425     case $cross_compiling:$ac_tool_warned in
5426 yes:)
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5429 ac_tool_warned=yes ;;
5430 esac
5431     STRIP=$ac_ct_STRIP
5432   fi
5433 else
5434   STRIP="$ac_cv_prog_STRIP"
5435 fi
5436
5437 test -z "$STRIP" && STRIP=:
5438
5439
5440
5441
5442
5443
5444 if test -n "$ac_tool_prefix"; then
5445   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5446 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if ${ac_cv_prog_RANLIB+:} false; then :
5450   $as_echo_n "(cached) " >&6
5451 else
5452   if test -n "$RANLIB"; then
5453   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458   IFS=$as_save_IFS
5459   test -z "$as_dir" && as_dir=.
5460     for ac_exec_ext in '' $ac_executable_extensions; do
5461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464     break 2
5465   fi
5466 done
5467   done
5468 IFS=$as_save_IFS
5469
5470 fi
5471 fi
5472 RANLIB=$ac_cv_prog_RANLIB
5473 if test -n "$RANLIB"; then
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5475 $as_echo "$RANLIB" >&6; }
5476 else
5477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5479 fi
5480
5481
5482 fi
5483 if test -z "$ac_cv_prog_RANLIB"; then
5484   ac_ct_RANLIB=$RANLIB
5485   # Extract the first word of "ranlib", so it can be a program name with args.
5486 set dummy ranlib; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5490   $as_echo_n "(cached) " >&6
5491 else
5492   if test -n "$ac_ct_RANLIB"; then
5493   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5494 else
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498   IFS=$as_save_IFS
5499   test -z "$as_dir" && as_dir=.
5500     for ac_exec_ext in '' $ac_executable_extensions; do
5501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502     ac_cv_prog_ac_ct_RANLIB="ranlib"
5503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504     break 2
5505   fi
5506 done
5507   done
5508 IFS=$as_save_IFS
5509
5510 fi
5511 fi
5512 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5513 if test -n "$ac_ct_RANLIB"; then
5514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5515 $as_echo "$ac_ct_RANLIB" >&6; }
5516 else
5517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 fi
5520
5521   if test "x$ac_ct_RANLIB" = x; then
5522     RANLIB=":"
5523   else
5524     case $cross_compiling:$ac_tool_warned in
5525 yes:)
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5528 ac_tool_warned=yes ;;
5529 esac
5530     RANLIB=$ac_ct_RANLIB
5531   fi
5532 else
5533   RANLIB="$ac_cv_prog_RANLIB"
5534 fi
5535
5536 test -z "$RANLIB" && RANLIB=:
5537
5538
5539
5540
5541
5542
5543 # Determine commands to create old-style static archives.
5544 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5545 old_postinstall_cmds='chmod 644 $oldlib'
5546 old_postuninstall_cmds=
5547
5548 if test -n "$RANLIB"; then
5549   case $host_os in
5550   openbsd*)
5551     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5552     ;;
5553   *)
5554     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5555     ;;
5556   esac
5557   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5558 fi
5559
5560 case $host_os in
5561   darwin*)
5562     lock_old_archive_extraction=yes ;;
5563   *)
5564     lock_old_archive_extraction=no ;;
5565 esac
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605 # If no C compiler was specified, use CC.
5606 LTCC=${LTCC-"$CC"}
5607
5608 # If no C compiler flags were specified, use CFLAGS.
5609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5610
5611 # Allow CC to be a program name with arguments.
5612 compiler=$CC
5613
5614
5615 # Check for command to grab the raw symbol name followed by C symbol from nm.
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5617 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5618 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621
5622 # These are sane defaults that work on at least a few old systems.
5623 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5624
5625 # Character class describing NM global symbol codes.
5626 symcode='[BCDEGRST]'
5627
5628 # Regexp to match symbols that can be accessed directly from C.
5629 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5630
5631 # Define system-specific variables.
5632 case $host_os in
5633 aix*)
5634   symcode='[BCDT]'
5635   ;;
5636 cygwin* | mingw* | pw32* | cegcc*)
5637   symcode='[ABCDGISTW]'
5638   ;;
5639 hpux*)
5640   if test "$host_cpu" = ia64; then
5641     symcode='[ABCDEGRST]'
5642   fi
5643   ;;
5644 irix* | nonstopux*)
5645   symcode='[BCDEGRST]'
5646   ;;
5647 osf*)
5648   symcode='[BCDEGQRST]'
5649   ;;
5650 solaris*)
5651   symcode='[BDRT]'
5652   ;;
5653 sco3.2v5*)
5654   symcode='[DT]'
5655   ;;
5656 sysv4.2uw2*)
5657   symcode='[DT]'
5658   ;;
5659 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5660   symcode='[ABDT]'
5661   ;;
5662 sysv4)
5663   symcode='[DFNSTU]'
5664   ;;
5665 esac
5666
5667 # If we're using GNU nm, then use its standard symbol codes.
5668 case `$NM -V 2>&1` in
5669 *GNU* | *'with BFD'*)
5670   symcode='[ABCDGIRSTW]' ;;
5671 esac
5672
5673 # Transform an extracted symbol line into a proper C declaration.
5674 # Some systems (esp. on ia64) link data and code symbols differently,
5675 # so use this general approach.
5676 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5677
5678 # Transform an extracted symbol line into symbol name and symbol address
5679 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5680 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'"
5681
5682 # Handle CRLF in mingw tool chain
5683 opt_cr=
5684 case $build_os in
5685 mingw*)
5686   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5687   ;;
5688 esac
5689
5690 # Try without a prefix underscore, then with it.
5691 for ac_symprfx in "" "_"; do
5692
5693   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5694   symxfrm="\\1 $ac_symprfx\\2 \\2"
5695
5696   # Write the raw and C identifiers.
5697   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5698     # Fake it for dumpbin and say T for any non-static function
5699     # and D for any global variable.
5700     # Also find C++ and __fastcall symbols from MSVC++,
5701     # which start with @ or ?.
5702     lt_cv_sys_global_symbol_pipe="$AWK '"\
5703 "     {last_section=section; section=\$ 3};"\
5704 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5705 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5706 "     \$ 0!~/External *\|/{next};"\
5707 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5708 "     {if(hide[section]) next};"\
5709 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5710 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5711 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5712 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5713 "     ' prfx=^$ac_symprfx"
5714   else
5715     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5716   fi
5717   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5718
5719   # Check to see that the pipe works correctly.
5720   pipe_works=no
5721
5722   rm -f conftest*
5723   cat > conftest.$ac_ext <<_LT_EOF
5724 #ifdef __cplusplus
5725 extern "C" {
5726 #endif
5727 char nm_test_var;
5728 void nm_test_func(void);
5729 void nm_test_func(void){}
5730 #ifdef __cplusplus
5731 }
5732 #endif
5733 int main(){nm_test_var='a';nm_test_func();return(0);}
5734 _LT_EOF
5735
5736   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5737   (eval $ac_compile) 2>&5
5738   ac_status=$?
5739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5740   test $ac_status = 0; }; then
5741     # Now try to grab the symbols.
5742     nlist=conftest.nm
5743     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5744   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5745   ac_status=$?
5746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5747   test $ac_status = 0; } && test -s "$nlist"; then
5748       # Try sorting and uniquifying the output.
5749       if sort "$nlist" | uniq > "$nlist"T; then
5750         mv -f "$nlist"T "$nlist"
5751       else
5752         rm -f "$nlist"T
5753       fi
5754
5755       # Make sure that we snagged all the symbols we need.
5756       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5757         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5758           cat <<_LT_EOF > conftest.$ac_ext
5759 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5760 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5761 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5762    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5763 # define LT_DLSYM_CONST
5764 #elif defined(__osf__)
5765 /* This system does not cope well with relocations in const data.  */
5766 # define LT_DLSYM_CONST
5767 #else
5768 # define LT_DLSYM_CONST const
5769 #endif
5770
5771 #ifdef __cplusplus
5772 extern "C" {
5773 #endif
5774
5775 _LT_EOF
5776           # Now generate the symbol file.
5777           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5778
5779           cat <<_LT_EOF >> conftest.$ac_ext
5780
5781 /* The mapping between symbol names and symbols.  */
5782 LT_DLSYM_CONST struct {
5783   const char *name;
5784   void       *address;
5785 }
5786 lt__PROGRAM__LTX_preloaded_symbols[] =
5787 {
5788   { "@PROGRAM@", (void *) 0 },
5789 _LT_EOF
5790           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5791           cat <<\_LT_EOF >> conftest.$ac_ext
5792   {0, (void *) 0}
5793 };
5794
5795 /* This works around a problem in FreeBSD linker */
5796 #ifdef FREEBSD_WORKAROUND
5797 static const void *lt_preloaded_setup() {
5798   return lt__PROGRAM__LTX_preloaded_symbols;
5799 }
5800 #endif
5801
5802 #ifdef __cplusplus
5803 }
5804 #endif
5805 _LT_EOF
5806           # Now try linking the two files.
5807           mv conftest.$ac_objext conftstm.$ac_objext
5808           lt_globsym_save_LIBS=$LIBS
5809           lt_globsym_save_CFLAGS=$CFLAGS
5810           LIBS="conftstm.$ac_objext"
5811           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5812           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5813   (eval $ac_link) 2>&5
5814   ac_status=$?
5815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5816   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5817             pipe_works=yes
5818           fi
5819           LIBS=$lt_globsym_save_LIBS
5820           CFLAGS=$lt_globsym_save_CFLAGS
5821         else
5822           echo "cannot find nm_test_func in $nlist" >&5
5823         fi
5824       else
5825         echo "cannot find nm_test_var in $nlist" >&5
5826       fi
5827     else
5828       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5829     fi
5830   else
5831     echo "$progname: failed program was:" >&5
5832     cat conftest.$ac_ext >&5
5833   fi
5834   rm -rf conftest* conftst*
5835
5836   # Do not use the global_symbol_pipe unless it works.
5837   if test "$pipe_works" = yes; then
5838     break
5839   else
5840     lt_cv_sys_global_symbol_pipe=
5841   fi
5842 done
5843
5844 fi
5845
5846 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5847   lt_cv_sys_global_symbol_to_cdecl=
5848 fi
5849 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5851 $as_echo "failed" >&6; }
5852 else
5853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5854 $as_echo "ok" >&6; }
5855 fi
5856
5857 # Response file support.
5858 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5859   nm_file_list_spec='@'
5860 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5861   nm_file_list_spec='@'
5862 fi
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5891 $as_echo_n "checking for sysroot... " >&6; }
5892
5893 # Check whether --with-sysroot was given.
5894 if test "${with_sysroot+set}" = set; then :
5895   withval=$with_sysroot;
5896 else
5897   with_sysroot=no
5898 fi
5899
5900
5901 lt_sysroot=
5902 case ${with_sysroot} in #(
5903  yes)
5904    if test "$GCC" = yes; then
5905      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5906    fi
5907    ;; #(
5908  /*)
5909    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5910    ;; #(
5911  no|'')
5912    ;; #(
5913  *)
5914    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5915 $as_echo "${with_sysroot}" >&6; }
5916    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5917    ;;
5918 esac
5919
5920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5921 $as_echo "${lt_sysroot:-no}" >&6; }
5922
5923
5924
5925
5926
5927 # Check whether --enable-libtool-lock was given.
5928 if test "${enable_libtool_lock+set}" = set; then :
5929   enableval=$enable_libtool_lock;
5930 fi
5931
5932 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5933
5934 # Some flags need to be propagated to the compiler or linker for good
5935 # libtool support.
5936 case $host in
5937 ia64-*-hpux*)
5938   # Find out which ABI we are using.
5939   echo 'int i;' > conftest.$ac_ext
5940   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5941   (eval $ac_compile) 2>&5
5942   ac_status=$?
5943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5944   test $ac_status = 0; }; then
5945     case `/usr/bin/file conftest.$ac_objext` in
5946       *ELF-32*)
5947         HPUX_IA64_MODE="32"
5948         ;;
5949       *ELF-64*)
5950         HPUX_IA64_MODE="64"
5951         ;;
5952     esac
5953   fi
5954   rm -rf conftest*
5955   ;;
5956 *-*-irix6*)
5957   # Find out which ABI we are using.
5958   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5959   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5960   (eval $ac_compile) 2>&5
5961   ac_status=$?
5962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5963   test $ac_status = 0; }; then
5964     if test "$lt_cv_prog_gnu_ld" = yes; then
5965       case `/usr/bin/file conftest.$ac_objext` in
5966         *32-bit*)
5967           LD="${LD-ld} -melf32bsmip"
5968           ;;
5969         *N32*)
5970           LD="${LD-ld} -melf32bmipn32"
5971           ;;
5972         *64-bit*)
5973           LD="${LD-ld} -melf64bmip"
5974         ;;
5975       esac
5976     else
5977       case `/usr/bin/file conftest.$ac_objext` in
5978         *32-bit*)
5979           LD="${LD-ld} -32"
5980           ;;
5981         *N32*)
5982           LD="${LD-ld} -n32"
5983           ;;
5984         *64-bit*)
5985           LD="${LD-ld} -64"
5986           ;;
5987       esac
5988     fi
5989   fi
5990   rm -rf conftest*
5991   ;;
5992
5993 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5994 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5995   # Find out which ABI we are using.
5996   echo 'int i;' > conftest.$ac_ext
5997   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5998   (eval $ac_compile) 2>&5
5999   ac_status=$?
6000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6001   test $ac_status = 0; }; then
6002     case `/usr/bin/file conftest.o` in
6003       *32-bit*)
6004         case $host in
6005           x86_64-*kfreebsd*-gnu)
6006             LD="${LD-ld} -m elf_i386_fbsd"
6007             ;;
6008           x86_64-*linux*)
6009             LD="${LD-ld} -m elf_i386"
6010             ;;
6011           ppc64-*linux*|powerpc64-*linux*)
6012             LD="${LD-ld} -m elf32ppclinux"
6013             ;;
6014           s390x-*linux*)
6015             LD="${LD-ld} -m elf_s390"
6016             ;;
6017           sparc64-*linux*)
6018             LD="${LD-ld} -m elf32_sparc"
6019             ;;
6020         esac
6021         ;;
6022       *64-bit*)
6023         case $host in
6024           x86_64-*kfreebsd*-gnu)
6025             LD="${LD-ld} -m elf_x86_64_fbsd"
6026             ;;
6027           x86_64-*linux*)
6028             LD="${LD-ld} -m elf_x86_64"
6029             ;;
6030           ppc*-*linux*|powerpc*-*linux*)
6031             LD="${LD-ld} -m elf64ppc"
6032             ;;
6033           s390*-*linux*|s390*-*tpf*)
6034             LD="${LD-ld} -m elf64_s390"
6035             ;;
6036           sparc*-*linux*)
6037             LD="${LD-ld} -m elf64_sparc"
6038             ;;
6039         esac
6040         ;;
6041     esac
6042   fi
6043   rm -rf conftest*
6044   ;;
6045
6046 *-*-sco3.2v5*)
6047   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6048   SAVE_CFLAGS="$CFLAGS"
6049   CFLAGS="$CFLAGS -belf"
6050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6051 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6052 if ${lt_cv_cc_needs_belf+:} false; then :
6053   $as_echo_n "(cached) " >&6
6054 else
6055   ac_ext=c
6056 ac_cpp='$CPP $CPPFLAGS'
6057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6060
6061      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h.  */
6063
6064 int
6065 main ()
6066 {
6067
6068   ;
6069   return 0;
6070 }
6071 _ACEOF
6072 if ac_fn_c_try_link "$LINENO"; then :
6073   lt_cv_cc_needs_belf=yes
6074 else
6075   lt_cv_cc_needs_belf=no
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext \
6078     conftest$ac_exeext conftest.$ac_ext
6079      ac_ext=c
6080 ac_cpp='$CPP $CPPFLAGS'
6081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6084
6085 fi
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6087 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6088   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6089     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6090     CFLAGS="$SAVE_CFLAGS"
6091   fi
6092   ;;
6093 *-*solaris*)
6094   # Find out which ABI we are using.
6095   echo 'int i;' > conftest.$ac_ext
6096   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6097   (eval $ac_compile) 2>&5
6098   ac_status=$?
6099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6100   test $ac_status = 0; }; then
6101     case `/usr/bin/file conftest.o` in
6102     *64-bit*)
6103       case $lt_cv_prog_gnu_ld in
6104       yes*)
6105         case $host in
6106         i?86-*-solaris*)
6107           LD="${LD-ld} -m elf_x86_64"
6108           ;;
6109         sparc*-*-solaris*)
6110           LD="${LD-ld} -m elf64_sparc"
6111           ;;
6112         esac
6113         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6114         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6115           LD="${LD-ld}_sol2"
6116         fi
6117         ;;
6118       *)
6119         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6120           LD="${LD-ld} -64"
6121         fi
6122         ;;
6123       esac
6124       ;;
6125     esac
6126   fi
6127   rm -rf conftest*
6128   ;;
6129 esac
6130
6131 need_locks="$enable_libtool_lock"
6132
6133 if test -n "$ac_tool_prefix"; then
6134   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6135 set dummy ${ac_tool_prefix}mt; ac_word=$2
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137 $as_echo_n "checking for $ac_word... " >&6; }
6138 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6139   $as_echo_n "(cached) " >&6
6140 else
6141   if test -n "$MANIFEST_TOOL"; then
6142   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147   IFS=$as_save_IFS
6148   test -z "$as_dir" && as_dir=.
6149     for ac_exec_ext in '' $ac_executable_extensions; do
6150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153     break 2
6154   fi
6155 done
6156   done
6157 IFS=$as_save_IFS
6158
6159 fi
6160 fi
6161 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6162 if test -n "$MANIFEST_TOOL"; then
6163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6164 $as_echo "$MANIFEST_TOOL" >&6; }
6165 else
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 $as_echo "no" >&6; }
6168 fi
6169
6170
6171 fi
6172 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6173   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6174   # Extract the first word of "mt", so it can be a program name with args.
6175 set dummy mt; ac_word=$2
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177 $as_echo_n "checking for $ac_word... " >&6; }
6178 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6179   $as_echo_n "(cached) " >&6
6180 else
6181   if test -n "$ac_ct_MANIFEST_TOOL"; then
6182   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6186 do
6187   IFS=$as_save_IFS
6188   test -z "$as_dir" && as_dir=.
6189     for ac_exec_ext in '' $ac_executable_extensions; do
6190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6191     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193     break 2
6194   fi
6195 done
6196   done
6197 IFS=$as_save_IFS
6198
6199 fi
6200 fi
6201 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6202 if test -n "$ac_ct_MANIFEST_TOOL"; then
6203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6204 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6205 else
6206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207 $as_echo "no" >&6; }
6208 fi
6209
6210   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6211     MANIFEST_TOOL=":"
6212   else
6213     case $cross_compiling:$ac_tool_warned in
6214 yes:)
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6217 ac_tool_warned=yes ;;
6218 esac
6219     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6220   fi
6221 else
6222   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6223 fi
6224
6225 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6227 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6228 if ${lt_cv_path_mainfest_tool+:} false; then :
6229   $as_echo_n "(cached) " >&6
6230 else
6231   lt_cv_path_mainfest_tool=no
6232   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6233   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6234   cat conftest.err >&5
6235   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6236     lt_cv_path_mainfest_tool=yes
6237   fi
6238   rm -f conftest*
6239 fi
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6241 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6242 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6243   MANIFEST_TOOL=:
6244 fi
6245
6246
6247
6248
6249
6250
6251   case $host_os in
6252     rhapsody* | darwin*)
6253     if test -n "$ac_tool_prefix"; then
6254   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6255 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6259   $as_echo_n "(cached) " >&6
6260 else
6261   if test -n "$DSYMUTIL"; then
6262   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6266 do
6267   IFS=$as_save_IFS
6268   test -z "$as_dir" && as_dir=.
6269     for ac_exec_ext in '' $ac_executable_extensions; do
6270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273     break 2
6274   fi
6275 done
6276   done
6277 IFS=$as_save_IFS
6278
6279 fi
6280 fi
6281 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6282 if test -n "$DSYMUTIL"; then
6283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6284 $as_echo "$DSYMUTIL" >&6; }
6285 else
6286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6288 fi
6289
6290
6291 fi
6292 if test -z "$ac_cv_prog_DSYMUTIL"; then
6293   ac_ct_DSYMUTIL=$DSYMUTIL
6294   # Extract the first word of "dsymutil", so it can be a program name with args.
6295 set dummy dsymutil; ac_word=$2
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6299   $as_echo_n "(cached) " >&6
6300 else
6301   if test -n "$ac_ct_DSYMUTIL"; then
6302   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307   IFS=$as_save_IFS
6308   test -z "$as_dir" && as_dir=.
6309     for ac_exec_ext in '' $ac_executable_extensions; do
6310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6311     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313     break 2
6314   fi
6315 done
6316   done
6317 IFS=$as_save_IFS
6318
6319 fi
6320 fi
6321 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6322 if test -n "$ac_ct_DSYMUTIL"; then
6323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6324 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6325 else
6326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6328 fi
6329
6330   if test "x$ac_ct_DSYMUTIL" = x; then
6331     DSYMUTIL=":"
6332   else
6333     case $cross_compiling:$ac_tool_warned in
6334 yes:)
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6337 ac_tool_warned=yes ;;
6338 esac
6339     DSYMUTIL=$ac_ct_DSYMUTIL
6340   fi
6341 else
6342   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6343 fi
6344
6345     if test -n "$ac_tool_prefix"; then
6346   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6347 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if ${ac_cv_prog_NMEDIT+:} false; then :
6351   $as_echo_n "(cached) " >&6
6352 else
6353   if test -n "$NMEDIT"; then
6354   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359   IFS=$as_save_IFS
6360   test -z "$as_dir" && as_dir=.
6361     for ac_exec_ext in '' $ac_executable_extensions; do
6362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365     break 2
6366   fi
6367 done
6368   done
6369 IFS=$as_save_IFS
6370
6371 fi
6372 fi
6373 NMEDIT=$ac_cv_prog_NMEDIT
6374 if test -n "$NMEDIT"; then
6375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6376 $as_echo "$NMEDIT" >&6; }
6377 else
6378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6381
6382
6383 fi
6384 if test -z "$ac_cv_prog_NMEDIT"; then
6385   ac_ct_NMEDIT=$NMEDIT
6386   # Extract the first word of "nmedit", so it can be a program name with args.
6387 set dummy nmedit; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6391   $as_echo_n "(cached) " >&6
6392 else
6393   if test -n "$ac_ct_NMEDIT"; then
6394   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399   IFS=$as_save_IFS
6400   test -z "$as_dir" && as_dir=.
6401     for ac_exec_ext in '' $ac_executable_extensions; do
6402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405     break 2
6406   fi
6407 done
6408   done
6409 IFS=$as_save_IFS
6410
6411 fi
6412 fi
6413 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6414 if test -n "$ac_ct_NMEDIT"; then
6415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6416 $as_echo "$ac_ct_NMEDIT" >&6; }
6417 else
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6420 fi
6421
6422   if test "x$ac_ct_NMEDIT" = x; then
6423     NMEDIT=":"
6424   else
6425     case $cross_compiling:$ac_tool_warned in
6426 yes:)
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6429 ac_tool_warned=yes ;;
6430 esac
6431     NMEDIT=$ac_ct_NMEDIT
6432   fi
6433 else
6434   NMEDIT="$ac_cv_prog_NMEDIT"
6435 fi
6436
6437     if test -n "$ac_tool_prefix"; then
6438   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6439 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_LIPO+:} false; then :
6443   $as_echo_n "(cached) " >&6
6444 else
6445   if test -n "$LIPO"; then
6446   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451   IFS=$as_save_IFS
6452   test -z "$as_dir" && as_dir=.
6453     for ac_exec_ext in '' $ac_executable_extensions; do
6454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457     break 2
6458   fi
6459 done
6460   done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 LIPO=$ac_cv_prog_LIPO
6466 if test -n "$LIPO"; then
6467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6468 $as_echo "$LIPO" >&6; }
6469 else
6470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474
6475 fi
6476 if test -z "$ac_cv_prog_LIPO"; then
6477   ac_ct_LIPO=$LIPO
6478   # Extract the first word of "lipo", so it can be a program name with args.
6479 set dummy lipo; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6483   $as_echo_n "(cached) " >&6
6484 else
6485   if test -n "$ac_ct_LIPO"; then
6486   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491   IFS=$as_save_IFS
6492   test -z "$as_dir" && as_dir=.
6493     for ac_exec_ext in '' $ac_executable_extensions; do
6494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495     ac_cv_prog_ac_ct_LIPO="lipo"
6496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497     break 2
6498   fi
6499 done
6500   done
6501 IFS=$as_save_IFS
6502
6503 fi
6504 fi
6505 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6506 if test -n "$ac_ct_LIPO"; then
6507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6508 $as_echo "$ac_ct_LIPO" >&6; }
6509 else
6510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6512 fi
6513
6514   if test "x$ac_ct_LIPO" = x; then
6515     LIPO=":"
6516   else
6517     case $cross_compiling:$ac_tool_warned in
6518 yes:)
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521 ac_tool_warned=yes ;;
6522 esac
6523     LIPO=$ac_ct_LIPO
6524   fi
6525 else
6526   LIPO="$ac_cv_prog_LIPO"
6527 fi
6528
6529     if test -n "$ac_tool_prefix"; then
6530   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}otool; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if ${ac_cv_prog_OTOOL+:} false; then :
6535   $as_echo_n "(cached) " >&6
6536 else
6537   if test -n "$OTOOL"; then
6538   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543   IFS=$as_save_IFS
6544   test -z "$as_dir" && as_dir=.
6545     for ac_exec_ext in '' $ac_executable_extensions; do
6546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549     break 2
6550   fi
6551 done
6552   done
6553 IFS=$as_save_IFS
6554
6555 fi
6556 fi
6557 OTOOL=$ac_cv_prog_OTOOL
6558 if test -n "$OTOOL"; then
6559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6560 $as_echo "$OTOOL" >&6; }
6561 else
6562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6564 fi
6565
6566
6567 fi
6568 if test -z "$ac_cv_prog_OTOOL"; then
6569   ac_ct_OTOOL=$OTOOL
6570   # Extract the first word of "otool", so it can be a program name with args.
6571 set dummy otool; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6575   $as_echo_n "(cached) " >&6
6576 else
6577   if test -n "$ac_ct_OTOOL"; then
6578   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585     for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_prog_ac_ct_OTOOL="otool"
6588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592   done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6598 if test -n "$ac_ct_OTOOL"; then
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6600 $as_echo "$ac_ct_OTOOL" >&6; }
6601 else
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606   if test "x$ac_ct_OTOOL" = x; then
6607     OTOOL=":"
6608   else
6609     case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615     OTOOL=$ac_ct_OTOOL
6616   fi
6617 else
6618   OTOOL="$ac_cv_prog_OTOOL"
6619 fi
6620
6621     if test -n "$ac_tool_prefix"; then
6622   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if ${ac_cv_prog_OTOOL64+:} false; then :
6627   $as_echo_n "(cached) " >&6
6628 else
6629   if test -n "$OTOOL64"; then
6630   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635   IFS=$as_save_IFS
6636   test -z "$as_dir" && as_dir=.
6637     for ac_exec_ext in '' $ac_executable_extensions; do
6638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641     break 2
6642   fi
6643 done
6644   done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 OTOOL64=$ac_cv_prog_OTOOL64
6650 if test -n "$OTOOL64"; then
6651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6652 $as_echo "$OTOOL64" >&6; }
6653 else
6654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6656 fi
6657
6658
6659 fi
6660 if test -z "$ac_cv_prog_OTOOL64"; then
6661   ac_ct_OTOOL64=$OTOOL64
6662   # Extract the first word of "otool64", so it can be a program name with args.
6663 set dummy otool64; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6667   $as_echo_n "(cached) " >&6
6668 else
6669   if test -n "$ac_ct_OTOOL64"; then
6670   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677     for ac_exec_ext in '' $ac_executable_extensions; do
6678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679     ac_cv_prog_ac_ct_OTOOL64="otool64"
6680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684   done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6690 if test -n "$ac_ct_OTOOL64"; then
6691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6692 $as_echo "$ac_ct_OTOOL64" >&6; }
6693 else
6694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6697
6698   if test "x$ac_ct_OTOOL64" = x; then
6699     OTOOL64=":"
6700   else
6701     case $cross_compiling:$ac_tool_warned in
6702 yes:)
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6705 ac_tool_warned=yes ;;
6706 esac
6707     OTOOL64=$ac_ct_OTOOL64
6708   fi
6709 else
6710   OTOOL64="$ac_cv_prog_OTOOL64"
6711 fi
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6740 $as_echo_n "checking for -single_module linker flag... " >&6; }
6741 if ${lt_cv_apple_cc_single_mod+:} false; then :
6742   $as_echo_n "(cached) " >&6
6743 else
6744   lt_cv_apple_cc_single_mod=no
6745       if test -z "${LT_MULTI_MODULE}"; then
6746         # By default we will add the -single_module flag. You can override
6747         # by either setting the environment variable LT_MULTI_MODULE
6748         # non-empty at configure time, or by adding -multi_module to the
6749         # link flags.
6750         rm -rf libconftest.dylib*
6751         echo "int foo(void){return 1;}" > conftest.c
6752         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6753 -dynamiclib -Wl,-single_module conftest.c" >&5
6754         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6755           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6756         _lt_result=$?
6757         # If there is a non-empty error log, and "single_module"
6758         # appears in it, assume the flag caused a linker warning
6759         if test -s conftest.err && $GREP single_module conftest.err; then
6760           cat conftest.err >&5
6761         # Otherwise, if the output was created with a 0 exit code from
6762         # the compiler, it worked.
6763         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6764           lt_cv_apple_cc_single_mod=yes
6765         else
6766           cat conftest.err >&5
6767         fi
6768         rm -rf libconftest.dylib*
6769         rm -f conftest.*
6770       fi
6771 fi
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6773 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6774
6775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6776 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6777 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6778   $as_echo_n "(cached) " >&6
6779 else
6780   lt_cv_ld_exported_symbols_list=no
6781       save_LDFLAGS=$LDFLAGS
6782       echo "_main" > conftest.sym
6783       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6784       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h.  */
6786
6787 int
6788 main ()
6789 {
6790
6791   ;
6792   return 0;
6793 }
6794 _ACEOF
6795 if ac_fn_c_try_link "$LINENO"; then :
6796   lt_cv_ld_exported_symbols_list=yes
6797 else
6798   lt_cv_ld_exported_symbols_list=no
6799 fi
6800 rm -f core conftest.err conftest.$ac_objext \
6801     conftest$ac_exeext conftest.$ac_ext
6802         LDFLAGS="$save_LDFLAGS"
6803
6804 fi
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6806 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6807
6808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6809 $as_echo_n "checking for -force_load linker flag... " >&6; }
6810 if ${lt_cv_ld_force_load+:} false; then :
6811   $as_echo_n "(cached) " >&6
6812 else
6813   lt_cv_ld_force_load=no
6814       cat > conftest.c << _LT_EOF
6815 int forced_loaded() { return 2;}
6816 _LT_EOF
6817       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6818       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6819       echo "$AR cru libconftest.a conftest.o" >&5
6820       $AR cru libconftest.a conftest.o 2>&5
6821       echo "$RANLIB libconftest.a" >&5
6822       $RANLIB libconftest.a 2>&5
6823       cat > conftest.c << _LT_EOF
6824 int main() { return 0;}
6825 _LT_EOF
6826       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6827       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6828       _lt_result=$?
6829       if test -s conftest.err && $GREP force_load conftest.err; then
6830         cat conftest.err >&5
6831       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6832         lt_cv_ld_force_load=yes
6833       else
6834         cat conftest.err >&5
6835       fi
6836         rm -f conftest.err libconftest.a conftest conftest.c
6837         rm -rf conftest.dSYM
6838
6839 fi
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6841 $as_echo "$lt_cv_ld_force_load" >&6; }
6842     case $host_os in
6843     rhapsody* | darwin1.[012])
6844       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6845     darwin1.*)
6846       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6847     darwin*) # darwin 5.x on
6848       # if running on 10.5 or later, the deployment target defaults
6849       # to the OS version, if on x86, and 10.4, the deployment
6850       # target defaults to 10.4. Don't you love it?
6851       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6852         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6853           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6854         10.[012]*)
6855           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6856         10.*)
6857           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6858       esac
6859     ;;
6860   esac
6861     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6862       _lt_dar_single_mod='$single_module'
6863     fi
6864     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6865       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6866     else
6867       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6868     fi
6869     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6870       _lt_dsymutil='~$DSYMUTIL $lib || :'
6871     else
6872       _lt_dsymutil=
6873     fi
6874     ;;
6875   esac
6876
6877 ac_ext=c
6878 ac_cpp='$CPP $CPPFLAGS'
6879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6883 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6884 # On Suns, sometimes $CPP names a directory.
6885 if test -n "$CPP" && test -d "$CPP"; then
6886   CPP=
6887 fi
6888 if test -z "$CPP"; then
6889   if ${ac_cv_prog_CPP+:} false; then :
6890   $as_echo_n "(cached) " >&6
6891 else
6892       # Double quotes because CPP needs to be expanded
6893     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6894     do
6895       ac_preproc_ok=false
6896 for ac_c_preproc_warn_flag in '' yes
6897 do
6898   # Use a header file that comes with gcc, so configuring glibc
6899   # with a fresh cross-compiler works.
6900   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6901   # <limits.h> exists even on freestanding compilers.
6902   # On the NeXT, cc -E runs the code through the compiler's parser,
6903   # not just through cpp. "Syntax error" is here to catch this case.
6904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h.  */
6906 #ifdef __STDC__
6907 # include <limits.h>
6908 #else
6909 # include <assert.h>
6910 #endif
6911                      Syntax error
6912 _ACEOF
6913 if ac_fn_c_try_cpp "$LINENO"; then :
6914
6915 else
6916   # Broken: fails on valid input.
6917 continue
6918 fi
6919 rm -f conftest.err conftest.i conftest.$ac_ext
6920
6921   # OK, works on sane cases.  Now check whether nonexistent headers
6922   # can be detected and how.
6923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h.  */
6925 #include <ac_nonexistent.h>
6926 _ACEOF
6927 if ac_fn_c_try_cpp "$LINENO"; then :
6928   # Broken: success on invalid input.
6929 continue
6930 else
6931   # Passes both tests.
6932 ac_preproc_ok=:
6933 break
6934 fi
6935 rm -f conftest.err conftest.i conftest.$ac_ext
6936
6937 done
6938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6939 rm -f conftest.i conftest.err conftest.$ac_ext
6940 if $ac_preproc_ok; then :
6941   break
6942 fi
6943
6944     done
6945     ac_cv_prog_CPP=$CPP
6946
6947 fi
6948   CPP=$ac_cv_prog_CPP
6949 else
6950   ac_cv_prog_CPP=$CPP
6951 fi
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6953 $as_echo "$CPP" >&6; }
6954 ac_preproc_ok=false
6955 for ac_c_preproc_warn_flag in '' yes
6956 do
6957   # Use a header file that comes with gcc, so configuring glibc
6958   # with a fresh cross-compiler works.
6959   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6960   # <limits.h> exists even on freestanding compilers.
6961   # On the NeXT, cc -E runs the code through the compiler's parser,
6962   # not just through cpp. "Syntax error" is here to catch this case.
6963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h.  */
6965 #ifdef __STDC__
6966 # include <limits.h>
6967 #else
6968 # include <assert.h>
6969 #endif
6970                      Syntax error
6971 _ACEOF
6972 if ac_fn_c_try_cpp "$LINENO"; then :
6973
6974 else
6975   # Broken: fails on valid input.
6976 continue
6977 fi
6978 rm -f conftest.err conftest.i conftest.$ac_ext
6979
6980   # OK, works on sane cases.  Now check whether nonexistent headers
6981   # can be detected and how.
6982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h.  */
6984 #include <ac_nonexistent.h>
6985 _ACEOF
6986 if ac_fn_c_try_cpp "$LINENO"; then :
6987   # Broken: success on invalid input.
6988 continue
6989 else
6990   # Passes both tests.
6991 ac_preproc_ok=:
6992 break
6993 fi
6994 rm -f conftest.err conftest.i conftest.$ac_ext
6995
6996 done
6997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6998 rm -f conftest.i conftest.err conftest.$ac_ext
6999 if $ac_preproc_ok; then :
7000
7001 else
7002   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7004 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7005 See \`config.log' for more details" "$LINENO" 5; }
7006 fi
7007
7008 ac_ext=c
7009 ac_cpp='$CPP $CPPFLAGS'
7010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7013
7014
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7016 $as_echo_n "checking for ANSI C header files... " >&6; }
7017 if ${ac_cv_header_stdc+:} false; then :
7018   $as_echo_n "(cached) " >&6
7019 else
7020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h.  */
7022 #include <stdlib.h>
7023 #include <stdarg.h>
7024 #include <string.h>
7025 #include <float.h>
7026
7027 int
7028 main ()
7029 {
7030
7031   ;
7032   return 0;
7033 }
7034 _ACEOF
7035 if ac_fn_c_try_compile "$LINENO"; then :
7036   ac_cv_header_stdc=yes
7037 else
7038   ac_cv_header_stdc=no
7039 fi
7040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041
7042 if test $ac_cv_header_stdc = yes; then
7043   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h.  */
7046 #include <string.h>
7047
7048 _ACEOF
7049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7050   $EGREP "memchr" >/dev/null 2>&1; then :
7051
7052 else
7053   ac_cv_header_stdc=no
7054 fi
7055 rm -f conftest*
7056
7057 fi
7058
7059 if test $ac_cv_header_stdc = yes; then
7060   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h.  */
7063 #include <stdlib.h>
7064
7065 _ACEOF
7066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7067   $EGREP "free" >/dev/null 2>&1; then :
7068
7069 else
7070   ac_cv_header_stdc=no
7071 fi
7072 rm -f conftest*
7073
7074 fi
7075
7076 if test $ac_cv_header_stdc = yes; then
7077   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7078   if test "$cross_compiling" = yes; then :
7079   :
7080 else
7081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h.  */
7083 #include <ctype.h>
7084 #include <stdlib.h>
7085 #if ((' ' & 0x0FF) == 0x020)
7086 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7087 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7088 #else
7089 # define ISLOWER(c) \
7090                    (('a' <= (c) && (c) <= 'i') \
7091                      || ('j' <= (c) && (c) <= 'r') \
7092                      || ('s' <= (c) && (c) <= 'z'))
7093 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7094 #endif
7095
7096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7097 int
7098 main ()
7099 {
7100   int i;
7101   for (i = 0; i < 256; i++)
7102     if (XOR (islower (i), ISLOWER (i))
7103         || toupper (i) != TOUPPER (i))
7104       return 2;
7105   return 0;
7106 }
7107 _ACEOF
7108 if ac_fn_c_try_run "$LINENO"; then :
7109
7110 else
7111   ac_cv_header_stdc=no
7112 fi
7113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7114   conftest.$ac_objext conftest.beam conftest.$ac_ext
7115 fi
7116
7117 fi
7118 fi
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7120 $as_echo "$ac_cv_header_stdc" >&6; }
7121 if test $ac_cv_header_stdc = yes; then
7122
7123 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7124
7125 fi
7126
7127 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7128 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7129                   inttypes.h stdint.h unistd.h
7130 do :
7131   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7132 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7133 "
7134 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7135   cat >>confdefs.h <<_ACEOF
7136 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7137 _ACEOF
7138
7139 fi
7140
7141 done
7142
7143
7144 for ac_header in dlfcn.h
7145 do :
7146   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7147 "
7148 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7149   cat >>confdefs.h <<_ACEOF
7150 #define HAVE_DLFCN_H 1
7151 _ACEOF
7152
7153 fi
7154
7155 done
7156
7157
7158
7159
7160
7161 # Set options
7162
7163
7164
7165         enable_dlopen=no
7166
7167
7168   enable_win32_dll=no
7169
7170
7171             # Check whether --enable-shared was given.
7172 if test "${enable_shared+set}" = set; then :
7173   enableval=$enable_shared; p=${PACKAGE-default}
7174     case $enableval in
7175     yes) enable_shared=yes ;;
7176     no) enable_shared=no ;;
7177     *)
7178       enable_shared=no
7179       # Look at the argument we got.  We use all the common list separators.
7180       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7181       for pkg in $enableval; do
7182         IFS="$lt_save_ifs"
7183         if test "X$pkg" = "X$p"; then
7184           enable_shared=yes
7185         fi
7186       done
7187       IFS="$lt_save_ifs"
7188       ;;
7189     esac
7190 else
7191   enable_shared=yes
7192 fi
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202   # Check whether --enable-static was given.
7203 if test "${enable_static+set}" = set; then :
7204   enableval=$enable_static; p=${PACKAGE-default}
7205     case $enableval in
7206     yes) enable_static=yes ;;
7207     no) enable_static=no ;;
7208     *)
7209      enable_static=no
7210       # Look at the argument we got.  We use all the common list separators.
7211       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7212       for pkg in $enableval; do
7213         IFS="$lt_save_ifs"
7214         if test "X$pkg" = "X$p"; then
7215           enable_static=yes
7216         fi
7217       done
7218       IFS="$lt_save_ifs"
7219       ;;
7220     esac
7221 else
7222   enable_static=yes
7223 fi
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234 # Check whether --with-pic was given.
7235 if test "${with_pic+set}" = set; then :
7236   withval=$with_pic; lt_p=${PACKAGE-default}
7237     case $withval in
7238     yes|no) pic_mode=$withval ;;
7239     *)
7240       pic_mode=default
7241       # Look at the argument we got.  We use all the common list separators.
7242       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7243       for lt_pkg in $withval; do
7244         IFS="$lt_save_ifs"
7245         if test "X$lt_pkg" = "X$lt_p"; then
7246           pic_mode=yes
7247         fi
7248       done
7249       IFS="$lt_save_ifs"
7250       ;;
7251     esac
7252 else
7253   pic_mode=default
7254 fi
7255
7256
7257 test -z "$pic_mode" && pic_mode=default
7258
7259
7260
7261
7262
7263
7264
7265   # Check whether --enable-fast-install was given.
7266 if test "${enable_fast_install+set}" = set; then :
7267   enableval=$enable_fast_install; p=${PACKAGE-default}
7268     case $enableval in
7269     yes) enable_fast_install=yes ;;
7270     no) enable_fast_install=no ;;
7271     *)
7272       enable_fast_install=no
7273       # Look at the argument we got.  We use all the common list separators.
7274       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7275       for pkg in $enableval; do
7276         IFS="$lt_save_ifs"
7277         if test "X$pkg" = "X$p"; then
7278           enable_fast_install=yes
7279         fi
7280       done
7281       IFS="$lt_save_ifs"
7282       ;;
7283     esac
7284 else
7285   enable_fast_install=yes
7286 fi
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298 # This can be used to rebuild libtool when needed
7299 LIBTOOL_DEPS="$ltmain"
7300
7301 # Always use our own libtool.
7302 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333 test -z "$LN_S" && LN_S="ln -s"
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348 if test -n "${ZSH_VERSION+set}" ; then
7349    setopt NO_GLOB_SUBST
7350 fi
7351
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7353 $as_echo_n "checking for objdir... " >&6; }
7354 if ${lt_cv_objdir+:} false; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   rm -f .libs 2>/dev/null
7358 mkdir .libs 2>/dev/null
7359 if test -d .libs; then
7360   lt_cv_objdir=.libs
7361 else
7362   # MS-DOS does not allow filenames that begin with a dot.
7363   lt_cv_objdir=_libs
7364 fi
7365 rmdir .libs 2>/dev/null
7366 fi
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7368 $as_echo "$lt_cv_objdir" >&6; }
7369 objdir=$lt_cv_objdir
7370
7371
7372
7373
7374
7375 cat >>confdefs.h <<_ACEOF
7376 #define LT_OBJDIR "$lt_cv_objdir/"
7377 _ACEOF
7378
7379
7380
7381
7382 case $host_os in
7383 aix3*)
7384   # AIX sometimes has problems with the GCC collect2 program.  For some
7385   # reason, if we set the COLLECT_NAMES environment variable, the problems
7386   # vanish in a puff of smoke.
7387   if test "X${COLLECT_NAMES+set}" != Xset; then
7388     COLLECT_NAMES=
7389     export COLLECT_NAMES
7390   fi
7391   ;;
7392 esac
7393
7394 # Global variables:
7395 ofile=libtool
7396 can_build_shared=yes
7397
7398 # All known linkers require a `.a' archive for static linking (except MSVC,
7399 # which needs '.lib').
7400 libext=a
7401
7402 with_gnu_ld="$lt_cv_prog_gnu_ld"
7403
7404 old_CC="$CC"
7405 old_CFLAGS="$CFLAGS"
7406
7407 # Set sane defaults for various variables
7408 test -z "$CC" && CC=cc
7409 test -z "$LTCC" && LTCC=$CC
7410 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7411 test -z "$LD" && LD=ld
7412 test -z "$ac_objext" && ac_objext=o
7413
7414 for cc_temp in $compiler""; do
7415   case $cc_temp in
7416     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7417     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7418     \-*) ;;
7419     *) break;;
7420   esac
7421 done
7422 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7423
7424
7425 # Only perform the check for file, if the check method requires it
7426 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7427 case $deplibs_check_method in
7428 file_magic*)
7429   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7431 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7432 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7433   $as_echo_n "(cached) " >&6
7434 else
7435   case $MAGIC_CMD in
7436 [\\/*] |  ?:[\\/]*)
7437   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7438   ;;
7439 *)
7440   lt_save_MAGIC_CMD="$MAGIC_CMD"
7441   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7442   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7443   for ac_dir in $ac_dummy; do
7444     IFS="$lt_save_ifs"
7445     test -z "$ac_dir" && ac_dir=.
7446     if test -f $ac_dir/${ac_tool_prefix}file; then
7447       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7448       if test -n "$file_magic_test_file"; then
7449         case $deplibs_check_method in
7450         "file_magic "*)
7451           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7452           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7453           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7454             $EGREP "$file_magic_regex" > /dev/null; then
7455             :
7456           else
7457             cat <<_LT_EOF 1>&2
7458
7459 *** Warning: the command libtool uses to detect shared libraries,
7460 *** $file_magic_cmd, produces output that libtool cannot recognize.
7461 *** The result is that libtool may fail to recognize shared libraries
7462 *** as such.  This will affect the creation of libtool libraries that
7463 *** depend on shared libraries, but programs linked with such libtool
7464 *** libraries will work regardless of this problem.  Nevertheless, you
7465 *** may want to report the problem to your system manager and/or to
7466 *** bug-libtool@gnu.org
7467
7468 _LT_EOF
7469           fi ;;
7470         esac
7471       fi
7472       break
7473     fi
7474   done
7475   IFS="$lt_save_ifs"
7476   MAGIC_CMD="$lt_save_MAGIC_CMD"
7477   ;;
7478 esac
7479 fi
7480
7481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7482 if test -n "$MAGIC_CMD"; then
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7484 $as_echo "$MAGIC_CMD" >&6; }
7485 else
7486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7488 fi
7489
7490
7491
7492
7493
7494 if test -z "$lt_cv_path_MAGIC_CMD"; then
7495   if test -n "$ac_tool_prefix"; then
7496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7497 $as_echo_n "checking for file... " >&6; }
7498 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7499   $as_echo_n "(cached) " >&6
7500 else
7501   case $MAGIC_CMD in
7502 [\\/*] |  ?:[\\/]*)
7503   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7504   ;;
7505 *)
7506   lt_save_MAGIC_CMD="$MAGIC_CMD"
7507   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7508   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7509   for ac_dir in $ac_dummy; do
7510     IFS="$lt_save_ifs"
7511     test -z "$ac_dir" && ac_dir=.
7512     if test -f $ac_dir/file; then
7513       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7514       if test -n "$file_magic_test_file"; then
7515         case $deplibs_check_method in
7516         "file_magic "*)
7517           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7518           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7519           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7520             $EGREP "$file_magic_regex" > /dev/null; then
7521             :
7522           else
7523             cat <<_LT_EOF 1>&2
7524
7525 *** Warning: the command libtool uses to detect shared libraries,
7526 *** $file_magic_cmd, produces output that libtool cannot recognize.
7527 *** The result is that libtool may fail to recognize shared libraries
7528 *** as such.  This will affect the creation of libtool libraries that
7529 *** depend on shared libraries, but programs linked with such libtool
7530 *** libraries will work regardless of this problem.  Nevertheless, you
7531 *** may want to report the problem to your system manager and/or to
7532 *** bug-libtool@gnu.org
7533
7534 _LT_EOF
7535           fi ;;
7536         esac
7537       fi
7538       break
7539     fi
7540   done
7541   IFS="$lt_save_ifs"
7542   MAGIC_CMD="$lt_save_MAGIC_CMD"
7543   ;;
7544 esac
7545 fi
7546
7547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7548 if test -n "$MAGIC_CMD"; then
7549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7550 $as_echo "$MAGIC_CMD" >&6; }
7551 else
7552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7554 fi
7555
7556
7557   else
7558     MAGIC_CMD=:
7559   fi
7560 fi
7561
7562   fi
7563   ;;
7564 esac
7565
7566 # Use C for the default configuration in the libtool script
7567
7568 lt_save_CC="$CC"
7569 ac_ext=c
7570 ac_cpp='$CPP $CPPFLAGS'
7571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7574
7575
7576 # Source file extension for C test sources.
7577 ac_ext=c
7578
7579 # Object file extension for compiled C test sources.
7580 objext=o
7581 objext=$objext
7582
7583 # Code to be used in simple compile tests
7584 lt_simple_compile_test_code="int some_variable = 0;"
7585
7586 # Code to be used in simple link tests
7587 lt_simple_link_test_code='int main(){return(0);}'
7588
7589
7590
7591
7592
7593
7594
7595 # If no C compiler was specified, use CC.
7596 LTCC=${LTCC-"$CC"}
7597
7598 # If no C compiler flags were specified, use CFLAGS.
7599 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7600
7601 # Allow CC to be a program name with arguments.
7602 compiler=$CC
7603
7604 # Save the default compiler, since it gets overwritten when the other
7605 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7606 compiler_DEFAULT=$CC
7607
7608 # save warnings/boilerplate of simple test code
7609 ac_outfile=conftest.$ac_objext
7610 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7611 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7612 _lt_compiler_boilerplate=`cat conftest.err`
7613 $RM conftest*
7614
7615 ac_outfile=conftest.$ac_objext
7616 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7617 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7618 _lt_linker_boilerplate=`cat conftest.err`
7619 $RM -r conftest*
7620
7621
7622 ## CAVEAT EMPTOR:
7623 ## There is no encapsulation within the following macros, do not change
7624 ## the running order or otherwise move them around unless you know exactly
7625 ## what you are doing...
7626 if test -n "$compiler"; then
7627
7628 lt_prog_compiler_no_builtin_flag=
7629
7630 if test "$GCC" = yes; then
7631   case $cc_basename in
7632   nvcc*)
7633     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7634   *)
7635     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7636   esac
7637
7638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7639 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7640 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7641   $as_echo_n "(cached) " >&6
7642 else
7643   lt_cv_prog_compiler_rtti_exceptions=no
7644    ac_outfile=conftest.$ac_objext
7645    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7646    lt_compiler_flag="-fno-rtti -fno-exceptions"
7647    # Insert the option either (1) after the last *FLAGS variable, or
7648    # (2) before a word containing "conftest.", or (3) at the end.
7649    # Note that $ac_compile itself does not contain backslashes and begins
7650    # with a dollar sign (not a hyphen), so the echo should work correctly.
7651    # The option is referenced via a variable to avoid confusing sed.
7652    lt_compile=`echo "$ac_compile" | $SED \
7653    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7654    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7655    -e 's:$: $lt_compiler_flag:'`
7656    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7657    (eval "$lt_compile" 2>conftest.err)
7658    ac_status=$?
7659    cat conftest.err >&5
7660    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661    if (exit $ac_status) && test -s "$ac_outfile"; then
7662      # The compiler can only warn and ignore the option if not recognized
7663      # So say no if there are warnings other than the usual output.
7664      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7665      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7666      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7667        lt_cv_prog_compiler_rtti_exceptions=yes
7668      fi
7669    fi
7670    $RM conftest*
7671
7672 fi
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7674 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7675
7676 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7677     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7678 else
7679     :
7680 fi
7681
7682 fi
7683
7684
7685
7686
7687
7688
7689   lt_prog_compiler_wl=
7690 lt_prog_compiler_pic=
7691 lt_prog_compiler_static=
7692
7693
7694   if test "$GCC" = yes; then
7695     lt_prog_compiler_wl='-Wl,'
7696     lt_prog_compiler_static='-static'
7697
7698     case $host_os in
7699       aix*)
7700       # All AIX code is PIC.
7701       if test "$host_cpu" = ia64; then
7702         # AIX 5 now supports IA64 processor
7703         lt_prog_compiler_static='-Bstatic'
7704       fi
7705       ;;
7706
7707     amigaos*)
7708       case $host_cpu in
7709       powerpc)
7710             # see comment about AmigaOS4 .so support
7711             lt_prog_compiler_pic='-fPIC'
7712         ;;
7713       m68k)
7714             # FIXME: we need at least 68020 code to build shared libraries, but
7715             # adding the `-m68020' flag to GCC prevents building anything better,
7716             # like `-m68040'.
7717             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7718         ;;
7719       esac
7720       ;;
7721
7722     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7723       # PIC is the default for these OSes.
7724       ;;
7725
7726     mingw* | cygwin* | pw32* | os2* | cegcc*)
7727       # This hack is so that the source file can tell whether it is being
7728       # built for inclusion in a dll (and should export symbols for example).
7729       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7730       # (--disable-auto-import) libraries
7731       lt_prog_compiler_pic='-DDLL_EXPORT'
7732       ;;
7733
7734     darwin* | rhapsody*)
7735       # PIC is the default on this platform
7736       # Common symbols not allowed in MH_DYLIB files
7737       lt_prog_compiler_pic='-fno-common'
7738       ;;
7739
7740     haiku*)
7741       # PIC is the default for Haiku.
7742       # The "-static" flag exists, but is broken.
7743       lt_prog_compiler_static=
7744       ;;
7745
7746     hpux*)
7747       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7748       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7749       # sets the default TLS model and affects inlining.
7750       case $host_cpu in
7751       hppa*64*)
7752         # +Z the default
7753         ;;
7754       *)
7755         lt_prog_compiler_pic='-fPIC'
7756         ;;
7757       esac
7758       ;;
7759
7760     interix[3-9]*)
7761       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7762       # Instead, we relocate shared libraries at runtime.
7763       ;;
7764
7765     msdosdjgpp*)
7766       # Just because we use GCC doesn't mean we suddenly get shared libraries
7767       # on systems that don't support them.
7768       lt_prog_compiler_can_build_shared=no
7769       enable_shared=no
7770       ;;
7771
7772     *nto* | *qnx*)
7773       # QNX uses GNU C++, but need to define -shared option too, otherwise
7774       # it will coredump.
7775       lt_prog_compiler_pic='-fPIC -shared'
7776       ;;
7777
7778     sysv4*MP*)
7779       if test -d /usr/nec; then
7780         lt_prog_compiler_pic=-Kconform_pic
7781       fi
7782       ;;
7783
7784     *)
7785       lt_prog_compiler_pic='-fPIC'
7786       ;;
7787     esac
7788
7789     case $cc_basename in
7790     nvcc*) # Cuda Compiler Driver 2.2
7791       lt_prog_compiler_wl='-Xlinker '
7792       if test -n "$lt_prog_compiler_pic"; then
7793         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7794       fi
7795       ;;
7796     esac
7797   else
7798     # PORTME Check for flag to pass linker flags through the system compiler.
7799     case $host_os in
7800     aix*)
7801       lt_prog_compiler_wl='-Wl,'
7802       if test "$host_cpu" = ia64; then
7803         # AIX 5 now supports IA64 processor
7804         lt_prog_compiler_static='-Bstatic'
7805       else
7806         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7807       fi
7808       ;;
7809
7810     mingw* | cygwin* | pw32* | os2* | cegcc*)
7811       # This hack is so that the source file can tell whether it is being
7812       # built for inclusion in a dll (and should export symbols for example).
7813       lt_prog_compiler_pic='-DDLL_EXPORT'
7814       ;;
7815
7816     hpux9* | hpux10* | hpux11*)
7817       lt_prog_compiler_wl='-Wl,'
7818       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7819       # not for PA HP-UX.
7820       case $host_cpu in
7821       hppa*64*|ia64*)
7822         # +Z the default
7823         ;;
7824       *)
7825         lt_prog_compiler_pic='+Z'
7826         ;;
7827       esac
7828       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7829       lt_prog_compiler_static='${wl}-a ${wl}archive'
7830       ;;
7831
7832     irix5* | irix6* | nonstopux*)
7833       lt_prog_compiler_wl='-Wl,'
7834       # PIC (with -KPIC) is the default.
7835       lt_prog_compiler_static='-non_shared'
7836       ;;
7837
7838     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7839       case $cc_basename in
7840       # old Intel for x86_64 which still supported -KPIC.
7841       ecc*)
7842         lt_prog_compiler_wl='-Wl,'
7843         lt_prog_compiler_pic='-KPIC'
7844         lt_prog_compiler_static='-static'
7845         ;;
7846       # icc used to be incompatible with GCC.
7847       # ICC 10 doesn't accept -KPIC any more.
7848       icc* | ifort*)
7849         lt_prog_compiler_wl='-Wl,'
7850         lt_prog_compiler_pic='-fPIC'
7851         lt_prog_compiler_static='-static'
7852         ;;
7853       # Lahey Fortran 8.1.
7854       lf95*)
7855         lt_prog_compiler_wl='-Wl,'
7856         lt_prog_compiler_pic='--shared'
7857         lt_prog_compiler_static='--static'
7858         ;;
7859       nagfor*)
7860         # NAG Fortran compiler
7861         lt_prog_compiler_wl='-Wl,-Wl,,'
7862         lt_prog_compiler_pic='-PIC'
7863         lt_prog_compiler_static='-Bstatic'
7864         ;;
7865       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7866         # Portland Group compilers (*not* the Pentium gcc compiler,
7867         # which looks to be a dead project)
7868         lt_prog_compiler_wl='-Wl,'
7869         lt_prog_compiler_pic='-fpic'
7870         lt_prog_compiler_static='-Bstatic'
7871         ;;
7872       ccc*)
7873         lt_prog_compiler_wl='-Wl,'
7874         # All Alpha code is PIC.
7875         lt_prog_compiler_static='-non_shared'
7876         ;;
7877       xl* | bgxl* | bgf* | mpixl*)
7878         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7879         lt_prog_compiler_wl='-Wl,'
7880         lt_prog_compiler_pic='-qpic'
7881         lt_prog_compiler_static='-qstaticlink'
7882         ;;
7883       *)
7884         case `$CC -V 2>&1 | sed 5q` in
7885         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7886           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7887           lt_prog_compiler_pic='-KPIC'
7888           lt_prog_compiler_static='-Bstatic'
7889           lt_prog_compiler_wl=''
7890           ;;
7891         *Sun\ F* | *Sun*Fortran*)
7892           lt_prog_compiler_pic='-KPIC'
7893           lt_prog_compiler_static='-Bstatic'
7894           lt_prog_compiler_wl='-Qoption ld '
7895           ;;
7896         *Sun\ C*)
7897           # Sun C 5.9
7898           lt_prog_compiler_pic='-KPIC'
7899           lt_prog_compiler_static='-Bstatic'
7900           lt_prog_compiler_wl='-Wl,'
7901           ;;
7902         *Intel*\ [CF]*Compiler*)
7903           lt_prog_compiler_wl='-Wl,'
7904           lt_prog_compiler_pic='-fPIC'
7905           lt_prog_compiler_static='-static'
7906           ;;
7907         *Portland\ Group*)
7908           lt_prog_compiler_wl='-Wl,'
7909           lt_prog_compiler_pic='-fpic'
7910           lt_prog_compiler_static='-Bstatic'
7911           ;;
7912         esac
7913         ;;
7914       esac
7915       ;;
7916
7917     newsos6)
7918       lt_prog_compiler_pic='-KPIC'
7919       lt_prog_compiler_static='-Bstatic'
7920       ;;
7921
7922     *nto* | *qnx*)
7923       # QNX uses GNU C++, but need to define -shared option too, otherwise
7924       # it will coredump.
7925       lt_prog_compiler_pic='-fPIC -shared'
7926       ;;
7927
7928     osf3* | osf4* | osf5*)
7929       lt_prog_compiler_wl='-Wl,'
7930       # All OSF/1 code is PIC.
7931       lt_prog_compiler_static='-non_shared'
7932       ;;
7933
7934     rdos*)
7935       lt_prog_compiler_static='-non_shared'
7936       ;;
7937
7938     solaris*)
7939       lt_prog_compiler_pic='-KPIC'
7940       lt_prog_compiler_static='-Bstatic'
7941       case $cc_basename in
7942       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7943         lt_prog_compiler_wl='-Qoption ld ';;
7944       *)
7945         lt_prog_compiler_wl='-Wl,';;
7946       esac
7947       ;;
7948
7949     sunos4*)
7950       lt_prog_compiler_wl='-Qoption ld '
7951       lt_prog_compiler_pic='-PIC'
7952       lt_prog_compiler_static='-Bstatic'
7953       ;;
7954
7955     sysv4 | sysv4.2uw2* | sysv4.3*)
7956       lt_prog_compiler_wl='-Wl,'
7957       lt_prog_compiler_pic='-KPIC'
7958       lt_prog_compiler_static='-Bstatic'
7959       ;;
7960
7961     sysv4*MP*)
7962       if test -d /usr/nec ;then
7963         lt_prog_compiler_pic='-Kconform_pic'
7964         lt_prog_compiler_static='-Bstatic'
7965       fi
7966       ;;
7967
7968     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7969       lt_prog_compiler_wl='-Wl,'
7970       lt_prog_compiler_pic='-KPIC'
7971       lt_prog_compiler_static='-Bstatic'
7972       ;;
7973
7974     unicos*)
7975       lt_prog_compiler_wl='-Wl,'
7976       lt_prog_compiler_can_build_shared=no
7977       ;;
7978
7979     uts4*)
7980       lt_prog_compiler_pic='-pic'
7981       lt_prog_compiler_static='-Bstatic'
7982       ;;
7983
7984     *)
7985       lt_prog_compiler_can_build_shared=no
7986       ;;
7987     esac
7988   fi
7989
7990 case $host_os in
7991   # For platforms which do not support PIC, -DPIC is meaningless:
7992   *djgpp*)
7993     lt_prog_compiler_pic=
7994     ;;
7995   *)
7996     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7997     ;;
7998 esac
7999
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8001 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8002 if ${lt_cv_prog_compiler_pic+:} false; then :
8003   $as_echo_n "(cached) " >&6
8004 else
8005   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8006 fi
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8008 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8009 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8010
8011 #
8012 # Check to make sure the PIC flag actually works.
8013 #
8014 if test -n "$lt_prog_compiler_pic"; then
8015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8016 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8017 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8018   $as_echo_n "(cached) " >&6
8019 else
8020   lt_cv_prog_compiler_pic_works=no
8021    ac_outfile=conftest.$ac_objext
8022    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8023    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8024    # Insert the option either (1) after the last *FLAGS variable, or
8025    # (2) before a word containing "conftest.", or (3) at the end.
8026    # Note that $ac_compile itself does not contain backslashes and begins
8027    # with a dollar sign (not a hyphen), so the echo should work correctly.
8028    # The option is referenced via a variable to avoid confusing sed.
8029    lt_compile=`echo "$ac_compile" | $SED \
8030    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8031    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8032    -e 's:$: $lt_compiler_flag:'`
8033    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8034    (eval "$lt_compile" 2>conftest.err)
8035    ac_status=$?
8036    cat conftest.err >&5
8037    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038    if (exit $ac_status) && test -s "$ac_outfile"; then
8039      # The compiler can only warn and ignore the option if not recognized
8040      # So say no if there are warnings other than the usual output.
8041      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8042      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8043      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8044        lt_cv_prog_compiler_pic_works=yes
8045      fi
8046    fi
8047    $RM conftest*
8048
8049 fi
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8051 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8052
8053 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8054     case $lt_prog_compiler_pic in
8055      "" | " "*) ;;
8056      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8057      esac
8058 else
8059     lt_prog_compiler_pic=
8060      lt_prog_compiler_can_build_shared=no
8061 fi
8062
8063 fi
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075 #
8076 # Check to make sure the static flag actually works.
8077 #
8078 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8080 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8081 if ${lt_cv_prog_compiler_static_works+:} false; then :
8082   $as_echo_n "(cached) " >&6
8083 else
8084   lt_cv_prog_compiler_static_works=no
8085    save_LDFLAGS="$LDFLAGS"
8086    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8087    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8088    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8089      # The linker can only warn and ignore the option if not recognized
8090      # So say no if there are warnings
8091      if test -s conftest.err; then
8092        # Append any errors to the config.log.
8093        cat conftest.err 1>&5
8094        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8095        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8096        if diff conftest.exp conftest.er2 >/dev/null; then
8097          lt_cv_prog_compiler_static_works=yes
8098        fi
8099      else
8100        lt_cv_prog_compiler_static_works=yes
8101      fi
8102    fi
8103    $RM -r conftest*
8104    LDFLAGS="$save_LDFLAGS"
8105
8106 fi
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8108 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8109
8110 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8111     :
8112 else
8113     lt_prog_compiler_static=
8114 fi
8115
8116
8117
8118
8119
8120
8121
8122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8123 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8124 if ${lt_cv_prog_compiler_c_o+:} false; then :
8125   $as_echo_n "(cached) " >&6
8126 else
8127   lt_cv_prog_compiler_c_o=no
8128    $RM -r conftest 2>/dev/null
8129    mkdir conftest
8130    cd conftest
8131    mkdir out
8132    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8133
8134    lt_compiler_flag="-o out/conftest2.$ac_objext"
8135    # Insert the option either (1) after the last *FLAGS variable, or
8136    # (2) before a word containing "conftest.", or (3) at the end.
8137    # Note that $ac_compile itself does not contain backslashes and begins
8138    # with a dollar sign (not a hyphen), so the echo should work correctly.
8139    lt_compile=`echo "$ac_compile" | $SED \
8140    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8141    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8142    -e 's:$: $lt_compiler_flag:'`
8143    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8144    (eval "$lt_compile" 2>out/conftest.err)
8145    ac_status=$?
8146    cat out/conftest.err >&5
8147    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8149    then
8150      # The compiler can only warn and ignore the option if not recognized
8151      # So say no if there are warnings
8152      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8153      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8154      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8155        lt_cv_prog_compiler_c_o=yes
8156      fi
8157    fi
8158    chmod u+w . 2>&5
8159    $RM conftest*
8160    # SGI C++ compiler will create directory out/ii_files/ for
8161    # template instantiation
8162    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8163    $RM out/* && rmdir out
8164    cd ..
8165    $RM -r conftest
8166    $RM conftest*
8167
8168 fi
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8170 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8171
8172
8173
8174
8175
8176
8177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8178 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8179 if ${lt_cv_prog_compiler_c_o+:} false; then :
8180   $as_echo_n "(cached) " >&6
8181 else
8182   lt_cv_prog_compiler_c_o=no
8183    $RM -r conftest 2>/dev/null
8184    mkdir conftest
8185    cd conftest
8186    mkdir out
8187    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8188
8189    lt_compiler_flag="-o out/conftest2.$ac_objext"
8190    # Insert the option either (1) after the last *FLAGS variable, or
8191    # (2) before a word containing "conftest.", or (3) at the end.
8192    # Note that $ac_compile itself does not contain backslashes and begins
8193    # with a dollar sign (not a hyphen), so the echo should work correctly.
8194    lt_compile=`echo "$ac_compile" | $SED \
8195    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8196    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8197    -e 's:$: $lt_compiler_flag:'`
8198    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8199    (eval "$lt_compile" 2>out/conftest.err)
8200    ac_status=$?
8201    cat out/conftest.err >&5
8202    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8204    then
8205      # The compiler can only warn and ignore the option if not recognized
8206      # So say no if there are warnings
8207      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8208      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8209      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8210        lt_cv_prog_compiler_c_o=yes
8211      fi
8212    fi
8213    chmod u+w . 2>&5
8214    $RM conftest*
8215    # SGI C++ compiler will create directory out/ii_files/ for
8216    # template instantiation
8217    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8218    $RM out/* && rmdir out
8219    cd ..
8220    $RM -r conftest
8221    $RM conftest*
8222
8223 fi
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8225 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8226
8227
8228
8229
8230 hard_links="nottested"
8231 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8232   # do not overwrite the value of need_locks provided by the user
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8234 $as_echo_n "checking if we can lock with hard links... " >&6; }
8235   hard_links=yes
8236   $RM conftest*
8237   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8238   touch conftest.a
8239   ln conftest.a conftest.b 2>&5 || hard_links=no
8240   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8242 $as_echo "$hard_links" >&6; }
8243   if test "$hard_links" = no; then
8244     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8245 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8246     need_locks=warn
8247   fi
8248 else
8249   need_locks=no
8250 fi
8251
8252
8253
8254
8255
8256
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8258 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8259
8260   runpath_var=
8261   allow_undefined_flag=
8262   always_export_symbols=no
8263   archive_cmds=
8264   archive_expsym_cmds=
8265   compiler_needs_object=no
8266   enable_shared_with_static_runtimes=no
8267   export_dynamic_flag_spec=
8268   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8269   hardcode_automatic=no
8270   hardcode_direct=no
8271   hardcode_direct_absolute=no
8272   hardcode_libdir_flag_spec=
8273   hardcode_libdir_separator=
8274   hardcode_minus_L=no
8275   hardcode_shlibpath_var=unsupported
8276   inherit_rpath=no
8277   link_all_deplibs=unknown
8278   module_cmds=
8279   module_expsym_cmds=
8280   old_archive_from_new_cmds=
8281   old_archive_from_expsyms_cmds=
8282   thread_safe_flag_spec=
8283   whole_archive_flag_spec=
8284   # include_expsyms should be a list of space-separated symbols to be *always*
8285   # included in the symbol list
8286   include_expsyms=
8287   # exclude_expsyms can be an extended regexp of symbols to exclude
8288   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8289   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8290   # as well as any symbol that contains `d'.
8291   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8292   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8293   # platforms (ab)use it in PIC code, but their linkers get confused if
8294   # the symbol is explicitly referenced.  Since portable code cannot
8295   # rely on this symbol name, it's probably fine to never include it in
8296   # preloaded symbol tables.
8297   # Exclude shared library initialization/finalization symbols.
8298   extract_expsyms_cmds=
8299
8300   case $host_os in
8301   cygwin* | mingw* | pw32* | cegcc*)
8302     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8303     # When not using gcc, we currently assume that we are using
8304     # Microsoft Visual C++.
8305     if test "$GCC" != yes; then
8306       with_gnu_ld=no
8307     fi
8308     ;;
8309   interix*)
8310     # we just hope/assume this is gcc and not c89 (= MSVC++)
8311     with_gnu_ld=yes
8312     ;;
8313   openbsd*)
8314     with_gnu_ld=no
8315     ;;
8316   linux* | k*bsd*-gnu | gnu*)
8317     link_all_deplibs=no
8318     ;;
8319   esac
8320
8321   ld_shlibs=yes
8322
8323   # On some targets, GNU ld is compatible enough with the native linker
8324   # that we're better off using the native interface for both.
8325   lt_use_gnu_ld_interface=no
8326   if test "$with_gnu_ld" = yes; then
8327     case $host_os in
8328       aix*)
8329         # The AIX port of GNU ld has always aspired to compatibility
8330         # with the native linker.  However, as the warning in the GNU ld
8331         # block says, versions before 2.19.5* couldn't really create working
8332         # shared libraries, regardless of the interface used.
8333         case `$LD -v 2>&1` in
8334           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8335           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8336           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8337           *)
8338             lt_use_gnu_ld_interface=yes
8339             ;;
8340         esac
8341         ;;
8342       *)
8343         lt_use_gnu_ld_interface=yes
8344         ;;
8345     esac
8346   fi
8347
8348   if test "$lt_use_gnu_ld_interface" = yes; then
8349     # If archive_cmds runs LD, not CC, wlarc should be empty
8350     wlarc='${wl}'
8351
8352     # Set some defaults for GNU ld with shared library support. These
8353     # are reset later if shared libraries are not supported. Putting them
8354     # here allows them to be overridden if necessary.
8355     runpath_var=LD_RUN_PATH
8356     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8357     export_dynamic_flag_spec='${wl}--export-dynamic'
8358     # ancient GNU ld didn't support --whole-archive et. al.
8359     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8360       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8361     else
8362       whole_archive_flag_spec=
8363     fi
8364     supports_anon_versioning=no
8365     case `$LD -v 2>&1` in
8366       *GNU\ gold*) supports_anon_versioning=yes ;;
8367       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8368       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8369       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8370       *\ 2.11.*) ;; # other 2.11 versions
8371       *) supports_anon_versioning=yes ;;
8372     esac
8373
8374     # See if GNU ld supports shared libraries.
8375     case $host_os in
8376     aix[3-9]*)
8377       # On AIX/PPC, the GNU linker is very broken
8378       if test "$host_cpu" != ia64; then
8379         ld_shlibs=no
8380         cat <<_LT_EOF 1>&2
8381
8382 *** Warning: the GNU linker, at least up to release 2.19, is reported
8383 *** to be unable to reliably create shared libraries on AIX.
8384 *** Therefore, libtool is disabling shared libraries support.  If you
8385 *** really care for shared libraries, you may want to install binutils
8386 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8387 *** You will then need to restart the configuration process.
8388
8389 _LT_EOF
8390       fi
8391       ;;
8392
8393     amigaos*)
8394       case $host_cpu in
8395       powerpc)
8396             # see comment about AmigaOS4 .so support
8397             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8398             archive_expsym_cmds=''
8399         ;;
8400       m68k)
8401             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)'
8402             hardcode_libdir_flag_spec='-L$libdir'
8403             hardcode_minus_L=yes
8404         ;;
8405       esac
8406       ;;
8407
8408     beos*)
8409       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8410         allow_undefined_flag=unsupported
8411         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8412         # support --undefined.  This deserves some investigation.  FIXME
8413         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8414       else
8415         ld_shlibs=no
8416       fi
8417       ;;
8418
8419     cygwin* | mingw* | pw32* | cegcc*)
8420       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8421       # as there is no search path for DLLs.
8422       hardcode_libdir_flag_spec='-L$libdir'
8423       export_dynamic_flag_spec='${wl}--export-all-symbols'
8424       allow_undefined_flag=unsupported
8425       always_export_symbols=no
8426       enable_shared_with_static_runtimes=yes
8427       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'
8428       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8429
8430       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8431         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8432         # If the export-symbols file already is a .def file (1st line
8433         # is EXPORTS), use it as is; otherwise, prepend...
8434         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8435           cp $export_symbols $output_objdir/$soname.def;
8436         else
8437           echo EXPORTS > $output_objdir/$soname.def;
8438           cat $export_symbols >> $output_objdir/$soname.def;
8439         fi~
8440         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8441       else
8442         ld_shlibs=no
8443       fi
8444       ;;
8445
8446     haiku*)
8447       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8448       link_all_deplibs=yes
8449       ;;
8450
8451     interix[3-9]*)
8452       hardcode_direct=no
8453       hardcode_shlibpath_var=no
8454       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8455       export_dynamic_flag_spec='${wl}-E'
8456       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8457       # Instead, shared libraries are loaded at an image base (0x10000000 by
8458       # default) and relocated if they conflict, which is a slow very memory
8459       # consuming and fragmenting process.  To avoid this, we pick a random,
8460       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8461       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8462       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8463       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'
8464       ;;
8465
8466     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8467       tmp_diet=no
8468       if test "$host_os" = linux-dietlibc; then
8469         case $cc_basename in
8470           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8471         esac
8472       fi
8473       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8474          && test "$tmp_diet" = no
8475       then
8476         tmp_addflag=' $pic_flag'
8477         tmp_sharedflag='-shared'
8478         case $cc_basename,$host_cpu in
8479         pgcc*)                          # Portland Group C compiler
8480           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'
8481           tmp_addflag=' $pic_flag'
8482           ;;
8483         pgf77* | pgf90* | pgf95* | pgfortran*)
8484                                         # Portland Group f77 and f90 compilers
8485           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'
8486           tmp_addflag=' $pic_flag -Mnomain' ;;
8487         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8488           tmp_addflag=' -i_dynamic' ;;
8489         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8490           tmp_addflag=' -i_dynamic -nofor_main' ;;
8491         ifc* | ifort*)                  # Intel Fortran compiler
8492           tmp_addflag=' -nofor_main' ;;
8493         lf95*)                          # Lahey Fortran 8.1
8494           whole_archive_flag_spec=
8495           tmp_sharedflag='--shared' ;;
8496         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8497           tmp_sharedflag='-qmkshrobj'
8498           tmp_addflag= ;;
8499         nvcc*)  # Cuda Compiler Driver 2.2
8500           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'
8501           compiler_needs_object=yes
8502           ;;
8503         esac
8504         case `$CC -V 2>&1 | sed 5q` in
8505         *Sun\ C*)                       # Sun C 5.9
8506           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'
8507           compiler_needs_object=yes
8508           tmp_sharedflag='-G' ;;
8509         *Sun\ F*)                       # Sun Fortran 8.3
8510           tmp_sharedflag='-G' ;;
8511         esac
8512         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8513
8514         if test "x$supports_anon_versioning" = xyes; then
8515           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8516             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8517             echo "local: *; };" >> $output_objdir/$libname.ver~
8518             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8519         fi
8520
8521         case $cc_basename in
8522         xlf* | bgf* | bgxlf* | mpixlf*)
8523           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8524           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8525           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8526           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8527           if test "x$supports_anon_versioning" = xyes; then
8528             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8529               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8530               echo "local: *; };" >> $output_objdir/$libname.ver~
8531               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8532           fi
8533           ;;
8534         esac
8535       else
8536         ld_shlibs=no
8537       fi
8538       ;;
8539
8540     netbsd* | netbsdelf*-gnu)
8541       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8542         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8543         wlarc=
8544       else
8545         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8546         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8547       fi
8548       ;;
8549
8550     solaris*)
8551       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8552         ld_shlibs=no
8553         cat <<_LT_EOF 1>&2
8554
8555 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8556 *** create shared libraries on Solaris systems.  Therefore, libtool
8557 *** is disabling shared libraries support.  We urge you to upgrade GNU
8558 *** binutils to release 2.9.1 or newer.  Another option is to modify
8559 *** your PATH or compiler configuration so that the native linker is
8560 *** used, and then restart.
8561
8562 _LT_EOF
8563       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8564         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8565         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8566       else
8567         ld_shlibs=no
8568       fi
8569       ;;
8570
8571     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8572       case `$LD -v 2>&1` in
8573         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8574         ld_shlibs=no
8575         cat <<_LT_EOF 1>&2
8576
8577 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8578 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8579 *** is disabling shared libraries support.  We urge you to upgrade GNU
8580 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8581 *** your PATH or compiler configuration so that the native linker is
8582 *** used, and then restart.
8583
8584 _LT_EOF
8585         ;;
8586         *)
8587           # For security reasons, it is highly recommended that you always
8588           # use absolute paths for naming shared libraries, and exclude the
8589           # DT_RUNPATH tag from executables and libraries.  But doing so
8590           # requires that you compile everything twice, which is a pain.
8591           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8592             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8593             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8594             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8595           else
8596             ld_shlibs=no
8597           fi
8598         ;;
8599       esac
8600       ;;
8601
8602     sunos4*)
8603       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8604       wlarc=
8605       hardcode_direct=yes
8606       hardcode_shlibpath_var=no
8607       ;;
8608
8609     *)
8610       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8611         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8612         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8613       else
8614         ld_shlibs=no
8615       fi
8616       ;;
8617     esac
8618
8619     if test "$ld_shlibs" = no; then
8620       runpath_var=
8621       hardcode_libdir_flag_spec=
8622       export_dynamic_flag_spec=
8623       whole_archive_flag_spec=
8624     fi
8625   else
8626     # PORTME fill in a description of your system's linker (not GNU ld)
8627     case $host_os in
8628     aix3*)
8629       allow_undefined_flag=unsupported
8630       always_export_symbols=yes
8631       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'
8632       # Note: this linker hardcodes the directories in LIBPATH if there
8633       # are no directories specified by -L.
8634       hardcode_minus_L=yes
8635       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8636         # Neither direct hardcoding nor static linking is supported with a
8637         # broken collect2.
8638         hardcode_direct=unsupported
8639       fi
8640       ;;
8641
8642     aix[4-9]*)
8643       if test "$host_cpu" = ia64; then
8644         # On IA64, the linker does run time linking by default, so we don't
8645         # have to do anything special.
8646         aix_use_runtimelinking=no
8647         exp_sym_flag='-Bexport'
8648         no_entry_flag=""
8649       else
8650         # If we're using GNU nm, then we don't want the "-C" option.
8651         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8652         # Also, AIX nm treats weak defined symbols like other global
8653         # defined symbols, whereas GNU nm marks them as "W".
8654         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8655           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'
8656         else
8657           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'
8658         fi
8659         aix_use_runtimelinking=no
8660
8661         # Test if we are trying to use run time linking or normal
8662         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8663         # need to do runtime linking.
8664         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8665           for ld_flag in $LDFLAGS; do
8666           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8667             aix_use_runtimelinking=yes
8668             break
8669           fi
8670           done
8671           ;;
8672         esac
8673
8674         exp_sym_flag='-bexport'
8675         no_entry_flag='-bnoentry'
8676       fi
8677
8678       # When large executables or shared objects are built, AIX ld can
8679       # have problems creating the table of contents.  If linking a library
8680       # or program results in "error TOC overflow" add -mminimal-toc to
8681       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8682       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8683
8684       archive_cmds=''
8685       hardcode_direct=yes
8686       hardcode_direct_absolute=yes
8687       hardcode_libdir_separator=':'
8688       link_all_deplibs=yes
8689       file_list_spec='${wl}-f,'
8690
8691       if test "$GCC" = yes; then
8692         case $host_os in aix4.[012]|aix4.[012].*)
8693         # We only want to do this on AIX 4.2 and lower, the check
8694         # below for broken collect2 doesn't work under 4.3+
8695           collect2name=`${CC} -print-prog-name=collect2`
8696           if test -f "$collect2name" &&
8697            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8698           then
8699           # We have reworked collect2
8700           :
8701           else
8702           # We have old collect2
8703           hardcode_direct=unsupported
8704           # It fails to find uninstalled libraries when the uninstalled
8705           # path is not listed in the libpath.  Setting hardcode_minus_L
8706           # to unsupported forces relinking
8707           hardcode_minus_L=yes
8708           hardcode_libdir_flag_spec='-L$libdir'
8709           hardcode_libdir_separator=
8710           fi
8711           ;;
8712         esac
8713         shared_flag='-shared'
8714         if test "$aix_use_runtimelinking" = yes; then
8715           shared_flag="$shared_flag "'${wl}-G'
8716         fi
8717         link_all_deplibs=no
8718       else
8719         # not using gcc
8720         if test "$host_cpu" = ia64; then
8721         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8722         # chokes on -Wl,-G. The following line is correct:
8723           shared_flag='-G'
8724         else
8725           if test "$aix_use_runtimelinking" = yes; then
8726             shared_flag='${wl}-G'
8727           else
8728             shared_flag='${wl}-bM:SRE'
8729           fi
8730         fi
8731       fi
8732
8733       export_dynamic_flag_spec='${wl}-bexpall'
8734       # It seems that -bexpall does not export symbols beginning with
8735       # underscore (_), so it is better to generate a list of symbols to export.
8736       always_export_symbols=yes
8737       if test "$aix_use_runtimelinking" = yes; then
8738         # Warning - without using the other runtime loading flags (-brtl),
8739         # -berok will link without error, but may produce a broken library.
8740         allow_undefined_flag='-berok'
8741         # Determine the default libpath from the value encoded in an
8742         # empty executable.
8743         if test "${lt_cv_aix_libpath+set}" = set; then
8744   aix_libpath=$lt_cv_aix_libpath
8745 else
8746   if ${lt_cv_aix_libpath_+:} false; then :
8747   $as_echo_n "(cached) " >&6
8748 else
8749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h.  */
8751
8752 int
8753 main ()
8754 {
8755
8756   ;
8757   return 0;
8758 }
8759 _ACEOF
8760 if ac_fn_c_try_link "$LINENO"; then :
8761
8762   lt_aix_libpath_sed='
8763       /Import File Strings/,/^$/ {
8764           /^0/ {
8765               s/^0  *\([^ ]*\) *$/\1/
8766               p
8767           }
8768       }'
8769   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8770   # Check for a 64-bit object if we didn't find anything.
8771   if test -z "$lt_cv_aix_libpath_"; then
8772     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8773   fi
8774 fi
8775 rm -f core conftest.err conftest.$ac_objext \
8776     conftest$ac_exeext conftest.$ac_ext
8777   if test -z "$lt_cv_aix_libpath_"; then
8778     lt_cv_aix_libpath_="/usr/lib:/lib"
8779   fi
8780
8781 fi
8782
8783   aix_libpath=$lt_cv_aix_libpath_
8784 fi
8785
8786         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8787         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"
8788       else
8789         if test "$host_cpu" = ia64; then
8790           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8791           allow_undefined_flag="-z nodefs"
8792           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"
8793         else
8794          # Determine the default libpath from the value encoded in an
8795          # empty executable.
8796          if test "${lt_cv_aix_libpath+set}" = set; then
8797   aix_libpath=$lt_cv_aix_libpath
8798 else
8799   if ${lt_cv_aix_libpath_+:} false; then :
8800   $as_echo_n "(cached) " >&6
8801 else
8802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h.  */
8804
8805 int
8806 main ()
8807 {
8808
8809   ;
8810   return 0;
8811 }
8812 _ACEOF
8813 if ac_fn_c_try_link "$LINENO"; then :
8814
8815   lt_aix_libpath_sed='
8816       /Import File Strings/,/^$/ {
8817           /^0/ {
8818               s/^0  *\([^ ]*\) *$/\1/
8819               p
8820           }
8821       }'
8822   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8823   # Check for a 64-bit object if we didn't find anything.
8824   if test -z "$lt_cv_aix_libpath_"; then
8825     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8826   fi
8827 fi
8828 rm -f core conftest.err conftest.$ac_objext \
8829     conftest$ac_exeext conftest.$ac_ext
8830   if test -z "$lt_cv_aix_libpath_"; then
8831     lt_cv_aix_libpath_="/usr/lib:/lib"
8832   fi
8833
8834 fi
8835
8836   aix_libpath=$lt_cv_aix_libpath_
8837 fi
8838
8839          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8840           # Warning - without using the other run time loading flags,
8841           # -berok will link without error, but may produce a broken library.
8842           no_undefined_flag=' ${wl}-bernotok'
8843           allow_undefined_flag=' ${wl}-berok'
8844           if test "$with_gnu_ld" = yes; then
8845             # We only use this code for GNU lds that support --whole-archive.
8846             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8847           else
8848             # Exported symbols can be pulled into shared objects from archives
8849             whole_archive_flag_spec='$convenience'
8850           fi
8851           archive_cmds_need_lc=yes
8852           # This is similar to how AIX traditionally builds its shared libraries.
8853           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'
8854         fi
8855       fi
8856       ;;
8857
8858     amigaos*)
8859       case $host_cpu in
8860       powerpc)
8861             # see comment about AmigaOS4 .so support
8862             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8863             archive_expsym_cmds=''
8864         ;;
8865       m68k)
8866             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)'
8867             hardcode_libdir_flag_spec='-L$libdir'
8868             hardcode_minus_L=yes
8869         ;;
8870       esac
8871       ;;
8872
8873     bsdi[45]*)
8874       export_dynamic_flag_spec=-rdynamic
8875       ;;
8876
8877     cygwin* | mingw* | pw32* | cegcc*)
8878       # When not using gcc, we currently assume that we are using
8879       # Microsoft Visual C++.
8880       # hardcode_libdir_flag_spec is actually meaningless, as there is
8881       # no search path for DLLs.
8882       case $cc_basename in
8883       cl*)
8884         # Native MSVC
8885         hardcode_libdir_flag_spec=' '
8886         allow_undefined_flag=unsupported
8887         always_export_symbols=yes
8888         file_list_spec='@'
8889         # Tell ltmain to make .lib files, not .a files.
8890         libext=lib
8891         # Tell ltmain to make .dll files, not .so files.
8892         shrext_cmds=".dll"
8893         # FIXME: Setting linknames here is a bad hack.
8894         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8895         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8896             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8897           else
8898             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8899           fi~
8900           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8901           linknames='
8902         # The linker will not automatically build a static lib if we build a DLL.
8903         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8904         enable_shared_with_static_runtimes=yes
8905         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8906         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8907         # Don't use ranlib
8908         old_postinstall_cmds='chmod 644 $oldlib'
8909         postlink_cmds='lt_outputfile="@OUTPUT@"~
8910           lt_tool_outputfile="@TOOL_OUTPUT@"~
8911           case $lt_outputfile in
8912             *.exe|*.EXE) ;;
8913             *)
8914               lt_outputfile="$lt_outputfile.exe"
8915               lt_tool_outputfile="$lt_tool_outputfile.exe"
8916               ;;
8917           esac~
8918           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8919             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8920             $RM "$lt_outputfile.manifest";
8921           fi'
8922         ;;
8923       *)
8924         # Assume MSVC wrapper
8925         hardcode_libdir_flag_spec=' '
8926         allow_undefined_flag=unsupported
8927         # Tell ltmain to make .lib files, not .a files.
8928         libext=lib
8929         # Tell ltmain to make .dll files, not .so files.
8930         shrext_cmds=".dll"
8931         # FIXME: Setting linknames here is a bad hack.
8932         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8933         # The linker will automatically build a .lib file if we build a DLL.
8934         old_archive_from_new_cmds='true'
8935         # FIXME: Should let the user specify the lib program.
8936         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8937         enable_shared_with_static_runtimes=yes
8938         ;;
8939       esac
8940       ;;
8941
8942     darwin* | rhapsody*)
8943
8944
8945   archive_cmds_need_lc=no
8946   hardcode_direct=no
8947   hardcode_automatic=yes
8948   hardcode_shlibpath_var=unsupported
8949   if test "$lt_cv_ld_force_load" = "yes"; then
8950     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\"`'
8951
8952   else
8953     whole_archive_flag_spec=''
8954   fi
8955   link_all_deplibs=yes
8956   allow_undefined_flag="$_lt_dar_allow_undefined"
8957   case $cc_basename in
8958      ifort*) _lt_dar_can_shared=yes ;;
8959      *) _lt_dar_can_shared=$GCC ;;
8960   esac
8961   if test "$_lt_dar_can_shared" = "yes"; then
8962     output_verbose_link_cmd=func_echo_all
8963     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8964     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8965     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}"
8966     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}"
8967
8968   else
8969   ld_shlibs=no
8970   fi
8971
8972       ;;
8973
8974     dgux*)
8975       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8976       hardcode_libdir_flag_spec='-L$libdir'
8977       hardcode_shlibpath_var=no
8978       ;;
8979
8980     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8981     # support.  Future versions do this automatically, but an explicit c++rt0.o
8982     # does not break anything, and helps significantly (at the cost of a little
8983     # extra space).
8984     freebsd2.2*)
8985       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8986       hardcode_libdir_flag_spec='-R$libdir'
8987       hardcode_direct=yes
8988       hardcode_shlibpath_var=no
8989       ;;
8990
8991     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8992     freebsd2.*)
8993       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8994       hardcode_direct=yes
8995       hardcode_minus_L=yes
8996       hardcode_shlibpath_var=no
8997       ;;
8998
8999     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9000     freebsd* | dragonfly*)
9001       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9002       hardcode_libdir_flag_spec='-R$libdir'
9003       hardcode_direct=yes
9004       hardcode_shlibpath_var=no
9005       ;;
9006
9007     hpux9*)
9008       if test "$GCC" = yes; then
9009         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'
9010       else
9011         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'
9012       fi
9013       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9014       hardcode_libdir_separator=:
9015       hardcode_direct=yes
9016
9017       # hardcode_minus_L: Not really in the search PATH,
9018       # but as the default location of the library.
9019       hardcode_minus_L=yes
9020       export_dynamic_flag_spec='${wl}-E'
9021       ;;
9022
9023     hpux10*)
9024       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9025         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9026       else
9027         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9028       fi
9029       if test "$with_gnu_ld" = no; then
9030         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9031         hardcode_libdir_separator=:
9032         hardcode_direct=yes
9033         hardcode_direct_absolute=yes
9034         export_dynamic_flag_spec='${wl}-E'
9035         # hardcode_minus_L: Not really in the search PATH,
9036         # but as the default location of the library.
9037         hardcode_minus_L=yes
9038       fi
9039       ;;
9040
9041     hpux11*)
9042       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9043         case $host_cpu in
9044         hppa*64*)
9045           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9046           ;;
9047         ia64*)
9048           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9049           ;;
9050         *)
9051           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9052           ;;
9053         esac
9054       else
9055         case $host_cpu in
9056         hppa*64*)
9057           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9058           ;;
9059         ia64*)
9060           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9061           ;;
9062         *)
9063
9064           # Older versions of the 11.00 compiler do not understand -b yet
9065           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9066           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9067 $as_echo_n "checking if $CC understands -b... " >&6; }
9068 if ${lt_cv_prog_compiler__b+:} false; then :
9069   $as_echo_n "(cached) " >&6
9070 else
9071   lt_cv_prog_compiler__b=no
9072    save_LDFLAGS="$LDFLAGS"
9073    LDFLAGS="$LDFLAGS -b"
9074    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9075    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9076      # The linker can only warn and ignore the option if not recognized
9077      # So say no if there are warnings
9078      if test -s conftest.err; then
9079        # Append any errors to the config.log.
9080        cat conftest.err 1>&5
9081        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9082        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9083        if diff conftest.exp conftest.er2 >/dev/null; then
9084          lt_cv_prog_compiler__b=yes
9085        fi
9086      else
9087        lt_cv_prog_compiler__b=yes
9088      fi
9089    fi
9090    $RM -r conftest*
9091    LDFLAGS="$save_LDFLAGS"
9092
9093 fi
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9095 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9096
9097 if test x"$lt_cv_prog_compiler__b" = xyes; then
9098     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9099 else
9100     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9101 fi
9102
9103           ;;
9104         esac
9105       fi
9106       if test "$with_gnu_ld" = no; then
9107         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9108         hardcode_libdir_separator=:
9109
9110         case $host_cpu in
9111         hppa*64*|ia64*)
9112           hardcode_direct=no
9113           hardcode_shlibpath_var=no
9114           ;;
9115         *)
9116           hardcode_direct=yes
9117           hardcode_direct_absolute=yes
9118           export_dynamic_flag_spec='${wl}-E'
9119
9120           # hardcode_minus_L: Not really in the search PATH,
9121           # but as the default location of the library.
9122           hardcode_minus_L=yes
9123           ;;
9124         esac
9125       fi
9126       ;;
9127
9128     irix5* | irix6* | nonstopux*)
9129       if test "$GCC" = yes; then
9130         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'
9131         # Try to use the -exported_symbol ld option, if it does not
9132         # work, assume that -exports_file does not work either and
9133         # implicitly export all symbols.
9134         # This should be the same for all languages, so no per-tag cache variable.
9135         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9136 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9137 if ${lt_cv_irix_exported_symbol+:} false; then :
9138   $as_echo_n "(cached) " >&6
9139 else
9140   save_LDFLAGS="$LDFLAGS"
9141            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9142            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h.  */
9144 int foo (void) { return 0; }
9145 _ACEOF
9146 if ac_fn_c_try_link "$LINENO"; then :
9147   lt_cv_irix_exported_symbol=yes
9148 else
9149   lt_cv_irix_exported_symbol=no
9150 fi
9151 rm -f core conftest.err conftest.$ac_objext \
9152     conftest$ac_exeext conftest.$ac_ext
9153            LDFLAGS="$save_LDFLAGS"
9154 fi
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9156 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9157         if test "$lt_cv_irix_exported_symbol" = yes; then
9158           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'
9159         fi
9160       else
9161         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'
9162         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'
9163       fi
9164       archive_cmds_need_lc='no'
9165       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9166       hardcode_libdir_separator=:
9167       inherit_rpath=yes
9168       link_all_deplibs=yes
9169       ;;
9170
9171     netbsd* | netbsdelf*-gnu)
9172       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9173         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9174       else
9175         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9176       fi
9177       hardcode_libdir_flag_spec='-R$libdir'
9178       hardcode_direct=yes
9179       hardcode_shlibpath_var=no
9180       ;;
9181
9182     newsos6)
9183       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9184       hardcode_direct=yes
9185       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9186       hardcode_libdir_separator=:
9187       hardcode_shlibpath_var=no
9188       ;;
9189
9190     *nto* | *qnx*)
9191       ;;
9192
9193     openbsd*)
9194       if test -f /usr/libexec/ld.so; then
9195         hardcode_direct=yes
9196         hardcode_shlibpath_var=no
9197         hardcode_direct_absolute=yes
9198         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9199           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9200           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9201           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9202           export_dynamic_flag_spec='${wl}-E'
9203         else
9204           case $host_os in
9205            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9206              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9207              hardcode_libdir_flag_spec='-R$libdir'
9208              ;;
9209            *)
9210              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9211              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9212              ;;
9213           esac
9214         fi
9215       else
9216         ld_shlibs=no
9217       fi
9218       ;;
9219
9220     os2*)
9221       hardcode_libdir_flag_spec='-L$libdir'
9222       hardcode_minus_L=yes
9223       allow_undefined_flag=unsupported
9224       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'
9225       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9226       ;;
9227
9228     osf3*)
9229       if test "$GCC" = yes; then
9230         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9231         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'
9232       else
9233         allow_undefined_flag=' -expect_unresolved \*'
9234         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'
9235       fi
9236       archive_cmds_need_lc='no'
9237       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9238       hardcode_libdir_separator=:
9239       ;;
9240
9241     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9242       if test "$GCC" = yes; then
9243         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9244         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'
9245         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9246       else
9247         allow_undefined_flag=' -expect_unresolved \*'
9248         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'
9249         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~
9250         $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'
9251
9252         # Both c and cxx compiler support -rpath directly
9253         hardcode_libdir_flag_spec='-rpath $libdir'
9254       fi
9255       archive_cmds_need_lc='no'
9256       hardcode_libdir_separator=:
9257       ;;
9258
9259     solaris*)
9260       no_undefined_flag=' -z defs'
9261       if test "$GCC" = yes; then
9262         wlarc='${wl}'
9263         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9264         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9265           $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'
9266       else
9267         case `$CC -V 2>&1` in
9268         *"Compilers 5.0"*)
9269           wlarc=''
9270           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9271           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9272           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9273           ;;
9274         *)
9275           wlarc='${wl}'
9276           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9277           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9278           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9279           ;;
9280         esac
9281       fi
9282       hardcode_libdir_flag_spec='-R$libdir'
9283       hardcode_shlibpath_var=no
9284       case $host_os in
9285       solaris2.[0-5] | solaris2.[0-5].*) ;;
9286       *)
9287         # The compiler driver will combine and reorder linker options,
9288         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9289         # but is careful enough not to reorder.
9290         # Supported since Solaris 2.6 (maybe 2.5.1?)
9291         if test "$GCC" = yes; then
9292           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9293         else
9294           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9295         fi
9296         ;;
9297       esac
9298       link_all_deplibs=yes
9299       ;;
9300
9301     sunos4*)
9302       if test "x$host_vendor" = xsequent; then
9303         # Use $CC to link under sequent, because it throws in some extra .o
9304         # files that make .init and .fini sections work.
9305         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9306       else
9307         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9308       fi
9309       hardcode_libdir_flag_spec='-L$libdir'
9310       hardcode_direct=yes
9311       hardcode_minus_L=yes
9312       hardcode_shlibpath_var=no
9313       ;;
9314
9315     sysv4)
9316       case $host_vendor in
9317         sni)
9318           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319           hardcode_direct=yes # is this really true???
9320         ;;
9321         siemens)
9322           ## LD is ld it makes a PLAMLIB
9323           ## CC just makes a GrossModule.
9324           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9325           reload_cmds='$CC -r -o $output$reload_objs'
9326           hardcode_direct=no
9327         ;;
9328         motorola)
9329           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9331         ;;
9332       esac
9333       runpath_var='LD_RUN_PATH'
9334       hardcode_shlibpath_var=no
9335       ;;
9336
9337     sysv4.3*)
9338       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339       hardcode_shlibpath_var=no
9340       export_dynamic_flag_spec='-Bexport'
9341       ;;
9342
9343     sysv4*MP*)
9344       if test -d /usr/nec; then
9345         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9346         hardcode_shlibpath_var=no
9347         runpath_var=LD_RUN_PATH
9348         hardcode_runpath_var=yes
9349         ld_shlibs=yes
9350       fi
9351       ;;
9352
9353     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9354       no_undefined_flag='${wl}-z,text'
9355       archive_cmds_need_lc=no
9356       hardcode_shlibpath_var=no
9357       runpath_var='LD_RUN_PATH'
9358
9359       if test "$GCC" = yes; then
9360         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9361         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9362       else
9363         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9364         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9365       fi
9366       ;;
9367
9368     sysv5* | sco3.2v5* | sco5v6*)
9369       # Note: We can NOT use -z defs as we might desire, because we do not
9370       # link with -lc, and that would cause any symbols used from libc to
9371       # always be unresolved, which means just about no library would
9372       # ever link correctly.  If we're not using GNU ld we use -z text
9373       # though, which does catch some bad symbols but isn't as heavy-handed
9374       # as -z defs.
9375       no_undefined_flag='${wl}-z,text'
9376       allow_undefined_flag='${wl}-z,nodefs'
9377       archive_cmds_need_lc=no
9378       hardcode_shlibpath_var=no
9379       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9380       hardcode_libdir_separator=':'
9381       link_all_deplibs=yes
9382       export_dynamic_flag_spec='${wl}-Bexport'
9383       runpath_var='LD_RUN_PATH'
9384
9385       if test "$GCC" = yes; then
9386         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9387         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9388       else
9389         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9391       fi
9392       ;;
9393
9394     uts4*)
9395       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396       hardcode_libdir_flag_spec='-L$libdir'
9397       hardcode_shlibpath_var=no
9398       ;;
9399
9400     *)
9401       ld_shlibs=no
9402       ;;
9403     esac
9404
9405     if test x$host_vendor = xsni; then
9406       case $host in
9407       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9408         export_dynamic_flag_spec='${wl}-Blargedynsym'
9409         ;;
9410       esac
9411     fi
9412   fi
9413
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9415 $as_echo "$ld_shlibs" >&6; }
9416 test "$ld_shlibs" = no && can_build_shared=no
9417
9418 with_gnu_ld=$with_gnu_ld
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434 #
9435 # Do we need to explicitly link libc?
9436 #
9437 case "x$archive_cmds_need_lc" in
9438 x|xyes)
9439   # Assume -lc should be added
9440   archive_cmds_need_lc=yes
9441
9442   if test "$enable_shared" = yes && test "$GCC" = yes; then
9443     case $archive_cmds in
9444     *'~'*)
9445       # FIXME: we may have to deal with multi-command sequences.
9446       ;;
9447     '$CC '*)
9448       # Test whether the compiler implicitly links with -lc since on some
9449       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9450       # to ld, don't add -lc before -lgcc.
9451       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9452 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9453 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9454   $as_echo_n "(cached) " >&6
9455 else
9456   $RM conftest*
9457         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9458
9459         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9460   (eval $ac_compile) 2>&5
9461   ac_status=$?
9462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9463   test $ac_status = 0; } 2>conftest.err; then
9464           soname=conftest
9465           lib=conftest
9466           libobjs=conftest.$ac_objext
9467           deplibs=
9468           wl=$lt_prog_compiler_wl
9469           pic_flag=$lt_prog_compiler_pic
9470           compiler_flags=-v
9471           linker_flags=-v
9472           verstring=
9473           output_objdir=.
9474           libname=conftest
9475           lt_save_allow_undefined_flag=$allow_undefined_flag
9476           allow_undefined_flag=
9477           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9478   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9479   ac_status=$?
9480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9481   test $ac_status = 0; }
9482           then
9483             lt_cv_archive_cmds_need_lc=no
9484           else
9485             lt_cv_archive_cmds_need_lc=yes
9486           fi
9487           allow_undefined_flag=$lt_save_allow_undefined_flag
9488         else
9489           cat conftest.err 1>&5
9490         fi
9491         $RM conftest*
9492
9493 fi
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9495 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9496       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9497       ;;
9498     esac
9499   fi
9500   ;;
9501 esac
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9655 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9656
9657 if test "$GCC" = yes; then
9658   case $host_os in
9659     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9660     *) lt_awk_arg="/^libraries:/" ;;
9661   esac
9662   case $host_os in
9663     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9664     *) lt_sed_strip_eq="s,=/,/,g" ;;
9665   esac
9666   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9667   case $lt_search_path_spec in
9668   *\;*)
9669     # if the path contains ";" then we assume it to be the separator
9670     # otherwise default to the standard path separator (i.e. ":") - it is
9671     # assumed that no part of a normal pathname contains ";" but that should
9672     # okay in the real world where ";" in dirpaths is itself problematic.
9673     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9674     ;;
9675   *)
9676     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9677     ;;
9678   esac
9679   # Ok, now we have the path, separated by spaces, we can step through it
9680   # and add multilib dir if necessary.
9681   lt_tmp_lt_search_path_spec=
9682   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9683   for lt_sys_path in $lt_search_path_spec; do
9684     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9685       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9686     else
9687       test -d "$lt_sys_path" && \
9688         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9689     fi
9690   done
9691   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9692 BEGIN {RS=" "; FS="/|\n";} {
9693   lt_foo="";
9694   lt_count=0;
9695   for (lt_i = NF; lt_i > 0; lt_i--) {
9696     if ($lt_i != "" && $lt_i != ".") {
9697       if ($lt_i == "..") {
9698         lt_count++;
9699       } else {
9700         if (lt_count == 0) {
9701           lt_foo="/" $lt_i lt_foo;
9702         } else {
9703           lt_count--;
9704         }
9705       }
9706     }
9707   }
9708   if (lt_foo != "") { lt_freq[lt_foo]++; }
9709   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9710 }'`
9711   # AWK program above erroneously prepends '/' to C:/dos/paths
9712   # for these hosts.
9713   case $host_os in
9714     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9715       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9716   esac
9717   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9718 else
9719   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9720 fi
9721 library_names_spec=
9722 libname_spec='lib$name'
9723 soname_spec=
9724 shrext_cmds=".so"
9725 postinstall_cmds=
9726 postuninstall_cmds=
9727 finish_cmds=
9728 finish_eval=
9729 shlibpath_var=
9730 shlibpath_overrides_runpath=unknown
9731 version_type=none
9732 dynamic_linker="$host_os ld.so"
9733 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9734 need_lib_prefix=unknown
9735 hardcode_into_libs=no
9736
9737 # when you set need_version to no, make sure it does not cause -set_version
9738 # flags to be left without arguments
9739 need_version=unknown
9740
9741 case $host_os in
9742 aix3*)
9743   version_type=linux # correct to gnu/linux during the next big refactor
9744   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9745   shlibpath_var=LIBPATH
9746
9747   # AIX 3 has no versioning support, so we append a major version to the name.
9748   soname_spec='${libname}${release}${shared_ext}$major'
9749   ;;
9750
9751 aix[4-9]*)
9752   version_type=linux # correct to gnu/linux during the next big refactor
9753   need_lib_prefix=no
9754   need_version=no
9755   hardcode_into_libs=yes
9756   if test "$host_cpu" = ia64; then
9757     # AIX 5 supports IA64
9758     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9759     shlibpath_var=LD_LIBRARY_PATH
9760   else
9761     # With GCC up to 2.95.x, collect2 would create an import file
9762     # for dependence libraries.  The import file would start with
9763     # the line `#! .'.  This would cause the generated library to
9764     # depend on `.', always an invalid library.  This was fixed in
9765     # development snapshots of GCC prior to 3.0.
9766     case $host_os in
9767       aix4 | aix4.[01] | aix4.[01].*)
9768       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9769            echo ' yes '
9770            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9771         :
9772       else
9773         can_build_shared=no
9774       fi
9775       ;;
9776     esac
9777     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9778     # soname into executable. Probably we can add versioning support to
9779     # collect2, so additional links can be useful in future.
9780     if test "$aix_use_runtimelinking" = yes; then
9781       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9782       # instead of lib<name>.a to let people know that these are not
9783       # typical AIX shared libraries.
9784       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785     else
9786       # We preserve .a as extension for shared libraries through AIX4.2
9787       # and later when we are not doing run time linking.
9788       library_names_spec='${libname}${release}.a $libname.a'
9789       soname_spec='${libname}${release}${shared_ext}$major'
9790     fi
9791     shlibpath_var=LIBPATH
9792   fi
9793   ;;
9794
9795 amigaos*)
9796   case $host_cpu in
9797   powerpc)
9798     # Since July 2007 AmigaOS4 officially supports .so libraries.
9799     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9800     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801     ;;
9802   m68k)
9803     library_names_spec='$libname.ixlibrary $libname.a'
9804     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9805     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'
9806     ;;
9807   esac
9808   ;;
9809
9810 beos*)
9811   library_names_spec='${libname}${shared_ext}'
9812   dynamic_linker="$host_os ld.so"
9813   shlibpath_var=LIBRARY_PATH
9814   ;;
9815
9816 bsdi[45]*)
9817   version_type=linux # correct to gnu/linux during the next big refactor
9818   need_version=no
9819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820   soname_spec='${libname}${release}${shared_ext}$major'
9821   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9822   shlibpath_var=LD_LIBRARY_PATH
9823   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9824   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9825   # the default ld.so.conf also contains /usr/contrib/lib and
9826   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9827   # libtool to hard-code these into programs
9828   ;;
9829
9830 cygwin* | mingw* | pw32* | cegcc*)
9831   version_type=windows
9832   shrext_cmds=".dll"
9833   need_version=no
9834   need_lib_prefix=no
9835
9836   case $GCC,$cc_basename in
9837   yes,*)
9838     # gcc
9839     library_names_spec='$libname.dll.a'
9840     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9841     postinstall_cmds='base_file=`basename \${file}`~
9842       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9843       dldir=$destdir/`dirname \$dlpath`~
9844       test -d \$dldir || mkdir -p \$dldir~
9845       $install_prog $dir/$dlname \$dldir/$dlname~
9846       chmod a+x \$dldir/$dlname~
9847       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9848         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9849       fi'
9850     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9851       dlpath=$dir/\$dldll~
9852        $RM \$dlpath'
9853     shlibpath_overrides_runpath=yes
9854
9855     case $host_os in
9856     cygwin*)
9857       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9858       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9859
9860       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9861       ;;
9862     mingw* | cegcc*)
9863       # MinGW DLLs use traditional 'lib' prefix
9864       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9865       ;;
9866     pw32*)
9867       # pw32 DLLs use 'pw' prefix rather than 'lib'
9868       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9869       ;;
9870     esac
9871     dynamic_linker='Win32 ld.exe'
9872     ;;
9873
9874   *,cl*)
9875     # Native MSVC
9876     libname_spec='$name'
9877     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9878     library_names_spec='${libname}.dll.lib'
9879
9880     case $build_os in
9881     mingw*)
9882       sys_lib_search_path_spec=
9883       lt_save_ifs=$IFS
9884       IFS=';'
9885       for lt_path in $LIB
9886       do
9887         IFS=$lt_save_ifs
9888         # Let DOS variable expansion print the short 8.3 style file name.
9889         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9890         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9891       done
9892       IFS=$lt_save_ifs
9893       # Convert to MSYS style.
9894       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9895       ;;
9896     cygwin*)
9897       # Convert to unix form, then to dos form, then back to unix form
9898       # but this time dos style (no spaces!) so that the unix form looks
9899       # like /cygdrive/c/PROGRA~1:/cygdr...
9900       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9901       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9902       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9903       ;;
9904     *)
9905       sys_lib_search_path_spec="$LIB"
9906       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9907         # It is most probably a Windows format PATH.
9908         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9909       else
9910         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9911       fi
9912       # FIXME: find the short name or the path components, as spaces are
9913       # common. (e.g. "Program Files" -> "PROGRA~1")
9914       ;;
9915     esac
9916
9917     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9918     postinstall_cmds='base_file=`basename \${file}`~
9919       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9920       dldir=$destdir/`dirname \$dlpath`~
9921       test -d \$dldir || mkdir -p \$dldir~
9922       $install_prog $dir/$dlname \$dldir/$dlname'
9923     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9924       dlpath=$dir/\$dldll~
9925        $RM \$dlpath'
9926     shlibpath_overrides_runpath=yes
9927     dynamic_linker='Win32 link.exe'
9928     ;;
9929
9930   *)
9931     # Assume MSVC wrapper
9932     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9933     dynamic_linker='Win32 ld.exe'
9934     ;;
9935   esac
9936   # FIXME: first we should search . and the directory the executable is in
9937   shlibpath_var=PATH
9938   ;;
9939
9940 darwin* | rhapsody*)
9941   dynamic_linker="$host_os dyld"
9942   version_type=darwin
9943   need_lib_prefix=no
9944   need_version=no
9945   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9946   soname_spec='${libname}${release}${major}$shared_ext'
9947   shlibpath_overrides_runpath=yes
9948   shlibpath_var=DYLD_LIBRARY_PATH
9949   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9950
9951   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9952   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9953   ;;
9954
9955 dgux*)
9956   version_type=linux # correct to gnu/linux during the next big refactor
9957   need_lib_prefix=no
9958   need_version=no
9959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9960   soname_spec='${libname}${release}${shared_ext}$major'
9961   shlibpath_var=LD_LIBRARY_PATH
9962   ;;
9963
9964 freebsd* | dragonfly*)
9965   # DragonFly does not have aout.  When/if they implement a new
9966   # versioning mechanism, adjust this.
9967   if test -x /usr/bin/objformat; then
9968     objformat=`/usr/bin/objformat`
9969   else
9970     case $host_os in
9971     freebsd[23].*) objformat=aout ;;
9972     *) objformat=elf ;;
9973     esac
9974   fi
9975   version_type=freebsd-$objformat
9976   case $version_type in
9977     freebsd-elf*)
9978       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9979       need_version=no
9980       need_lib_prefix=no
9981       ;;
9982     freebsd-*)
9983       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9984       need_version=yes
9985       ;;
9986   esac
9987   shlibpath_var=LD_LIBRARY_PATH
9988   case $host_os in
9989   freebsd2.*)
9990     shlibpath_overrides_runpath=yes
9991     ;;
9992   freebsd3.[01]* | freebsdelf3.[01]*)
9993     shlibpath_overrides_runpath=yes
9994     hardcode_into_libs=yes
9995     ;;
9996   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9997   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9998     shlibpath_overrides_runpath=no
9999     hardcode_into_libs=yes
10000     ;;
10001   *) # from 4.6 on, and DragonFly
10002     shlibpath_overrides_runpath=yes
10003     hardcode_into_libs=yes
10004     ;;
10005   esac
10006   ;;
10007
10008 gnu*)
10009   version_type=linux # correct to gnu/linux during the next big refactor
10010   need_lib_prefix=no
10011   need_version=no
10012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10013   soname_spec='${libname}${release}${shared_ext}$major'
10014   shlibpath_var=LD_LIBRARY_PATH
10015   shlibpath_overrides_runpath=no
10016   hardcode_into_libs=yes
10017   ;;
10018
10019 haiku*)
10020   version_type=linux # correct to gnu/linux during the next big refactor
10021   need_lib_prefix=no
10022   need_version=no
10023   dynamic_linker="$host_os runtime_loader"
10024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10025   soname_spec='${libname}${release}${shared_ext}$major'
10026   shlibpath_var=LIBRARY_PATH
10027   shlibpath_overrides_runpath=yes
10028   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10029   hardcode_into_libs=yes
10030   ;;
10031
10032 hpux9* | hpux10* | hpux11*)
10033   # Give a soname corresponding to the major version so that dld.sl refuses to
10034   # link against other versions.
10035   version_type=sunos
10036   need_lib_prefix=no
10037   need_version=no
10038   case $host_cpu in
10039   ia64*)
10040     shrext_cmds='.so'
10041     hardcode_into_libs=yes
10042     dynamic_linker="$host_os dld.so"
10043     shlibpath_var=LD_LIBRARY_PATH
10044     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046     soname_spec='${libname}${release}${shared_ext}$major'
10047     if test "X$HPUX_IA64_MODE" = X32; then
10048       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10049     else
10050       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10051     fi
10052     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10053     ;;
10054   hppa*64*)
10055     shrext_cmds='.sl'
10056     hardcode_into_libs=yes
10057     dynamic_linker="$host_os dld.sl"
10058     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10059     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10060     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061     soname_spec='${libname}${release}${shared_ext}$major'
10062     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10063     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10064     ;;
10065   *)
10066     shrext_cmds='.sl'
10067     dynamic_linker="$host_os dld.sl"
10068     shlibpath_var=SHLIB_PATH
10069     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10071     soname_spec='${libname}${release}${shared_ext}$major'
10072     ;;
10073   esac
10074   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10075   postinstall_cmds='chmod 555 $lib'
10076   # or fails outright, so override atomically:
10077   install_override_mode=555
10078   ;;
10079
10080 interix[3-9]*)
10081   version_type=linux # correct to gnu/linux during the next big refactor
10082   need_lib_prefix=no
10083   need_version=no
10084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10085   soname_spec='${libname}${release}${shared_ext}$major'
10086   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10087   shlibpath_var=LD_LIBRARY_PATH
10088   shlibpath_overrides_runpath=no
10089   hardcode_into_libs=yes
10090   ;;
10091
10092 irix5* | irix6* | nonstopux*)
10093   case $host_os in
10094     nonstopux*) version_type=nonstopux ;;
10095     *)
10096         if test "$lt_cv_prog_gnu_ld" = yes; then
10097                 version_type=linux # correct to gnu/linux during the next big refactor
10098         else
10099                 version_type=irix
10100         fi ;;
10101   esac
10102   need_lib_prefix=no
10103   need_version=no
10104   soname_spec='${libname}${release}${shared_ext}$major'
10105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10106   case $host_os in
10107   irix5* | nonstopux*)
10108     libsuff= shlibsuff=
10109     ;;
10110   *)
10111     case $LD in # libtool.m4 will add one of these switches to LD
10112     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10113       libsuff= shlibsuff= libmagic=32-bit;;
10114     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10115       libsuff=32 shlibsuff=N32 libmagic=N32;;
10116     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10117       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10118     *) libsuff= shlibsuff= libmagic=never-match;;
10119     esac
10120     ;;
10121   esac
10122   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10123   shlibpath_overrides_runpath=no
10124   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10125   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10126   hardcode_into_libs=yes
10127   ;;
10128
10129 # No shared lib support for Linux oldld, aout, or coff.
10130 linux*oldld* | linux*aout* | linux*coff*)
10131   dynamic_linker=no
10132   ;;
10133
10134 # This must be glibc/ELF.
10135 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10136   version_type=linux # correct to gnu/linux during the next big refactor
10137   need_lib_prefix=no
10138   need_version=no
10139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140   soname_spec='${libname}${release}${shared_ext}$major'
10141   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10142   shlibpath_var=LD_LIBRARY_PATH
10143   shlibpath_overrides_runpath=no
10144
10145   # Some binutils ld are patched to set DT_RUNPATH
10146   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10147   $as_echo_n "(cached) " >&6
10148 else
10149   lt_cv_shlibpath_overrides_runpath=no
10150     save_LDFLAGS=$LDFLAGS
10151     save_libdir=$libdir
10152     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10153          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10154     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155 /* end confdefs.h.  */
10156
10157 int
10158 main ()
10159 {
10160
10161   ;
10162   return 0;
10163 }
10164 _ACEOF
10165 if ac_fn_c_try_link "$LINENO"; then :
10166   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10167   lt_cv_shlibpath_overrides_runpath=yes
10168 fi
10169 fi
10170 rm -f core conftest.err conftest.$ac_objext \
10171     conftest$ac_exeext conftest.$ac_ext
10172     LDFLAGS=$save_LDFLAGS
10173     libdir=$save_libdir
10174
10175 fi
10176
10177   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10178
10179   # This implies no fast_install, which is unacceptable.
10180   # Some rework will be needed to allow for fast_install
10181   # before this can be enabled.
10182   hardcode_into_libs=yes
10183
10184   # Append ld.so.conf contents to the search path
10185   if test -f /etc/ld.so.conf; then
10186     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' ' '`
10187     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10188   fi
10189
10190   # We used to test for /lib/ld.so.1 and disable shared libraries on
10191   # powerpc, because MkLinux only supported shared libraries with the
10192   # GNU dynamic linker.  Since this was broken with cross compilers,
10193   # most powerpc-linux boxes support dynamic linking these days and
10194   # people can always --disable-shared, the test was removed, and we
10195   # assume the GNU/Linux dynamic linker is in use.
10196   dynamic_linker='GNU/Linux ld.so'
10197   ;;
10198
10199 netbsdelf*-gnu)
10200   version_type=linux
10201   need_lib_prefix=no
10202   need_version=no
10203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10204   soname_spec='${libname}${release}${shared_ext}$major'
10205   shlibpath_var=LD_LIBRARY_PATH
10206   shlibpath_overrides_runpath=no
10207   hardcode_into_libs=yes
10208   dynamic_linker='NetBSD ld.elf_so'
10209   ;;
10210
10211 netbsd*)
10212   version_type=sunos
10213   need_lib_prefix=no
10214   need_version=no
10215   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10217     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10218     dynamic_linker='NetBSD (a.out) ld.so'
10219   else
10220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10221     soname_spec='${libname}${release}${shared_ext}$major'
10222     dynamic_linker='NetBSD ld.elf_so'
10223   fi
10224   shlibpath_var=LD_LIBRARY_PATH
10225   shlibpath_overrides_runpath=yes
10226   hardcode_into_libs=yes
10227   ;;
10228
10229 newsos6)
10230   version_type=linux # correct to gnu/linux during the next big refactor
10231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10232   shlibpath_var=LD_LIBRARY_PATH
10233   shlibpath_overrides_runpath=yes
10234   ;;
10235
10236 *nto* | *qnx*)
10237   version_type=qnx
10238   need_lib_prefix=no
10239   need_version=no
10240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241   soname_spec='${libname}${release}${shared_ext}$major'
10242   shlibpath_var=LD_LIBRARY_PATH
10243   shlibpath_overrides_runpath=no
10244   hardcode_into_libs=yes
10245   dynamic_linker='ldqnx.so'
10246   ;;
10247
10248 openbsd*)
10249   version_type=sunos
10250   sys_lib_dlsearch_path_spec="/usr/lib"
10251   need_lib_prefix=no
10252   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10253   case $host_os in
10254     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10255     *)                          need_version=no  ;;
10256   esac
10257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10258   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10259   shlibpath_var=LD_LIBRARY_PATH
10260   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10261     case $host_os in
10262       openbsd2.[89] | openbsd2.[89].*)
10263         shlibpath_overrides_runpath=no
10264         ;;
10265       *)
10266         shlibpath_overrides_runpath=yes
10267         ;;
10268       esac
10269   else
10270     shlibpath_overrides_runpath=yes
10271   fi
10272   ;;
10273
10274 os2*)
10275   libname_spec='$name'
10276   shrext_cmds=".dll"
10277   need_lib_prefix=no
10278   library_names_spec='$libname${shared_ext} $libname.a'
10279   dynamic_linker='OS/2 ld.exe'
10280   shlibpath_var=LIBPATH
10281   ;;
10282
10283 osf3* | osf4* | osf5*)
10284   version_type=osf
10285   need_lib_prefix=no
10286   need_version=no
10287   soname_spec='${libname}${release}${shared_ext}$major'
10288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289   shlibpath_var=LD_LIBRARY_PATH
10290   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10291   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10292   ;;
10293
10294 rdos*)
10295   dynamic_linker=no
10296   ;;
10297
10298 solaris*)
10299   version_type=linux # correct to gnu/linux during the next big refactor
10300   need_lib_prefix=no
10301   need_version=no
10302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303   soname_spec='${libname}${release}${shared_ext}$major'
10304   shlibpath_var=LD_LIBRARY_PATH
10305   shlibpath_overrides_runpath=yes
10306   hardcode_into_libs=yes
10307   # ldd complains unless libraries are executable
10308   postinstall_cmds='chmod +x $lib'
10309   ;;
10310
10311 sunos4*)
10312   version_type=sunos
10313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10314   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10315   shlibpath_var=LD_LIBRARY_PATH
10316   shlibpath_overrides_runpath=yes
10317   if test "$with_gnu_ld" = yes; then
10318     need_lib_prefix=no
10319   fi
10320   need_version=yes
10321   ;;
10322
10323 sysv4 | sysv4.3*)
10324   version_type=linux # correct to gnu/linux during the next big refactor
10325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326   soname_spec='${libname}${release}${shared_ext}$major'
10327   shlibpath_var=LD_LIBRARY_PATH
10328   case $host_vendor in
10329     sni)
10330       shlibpath_overrides_runpath=no
10331       need_lib_prefix=no
10332       runpath_var=LD_RUN_PATH
10333       ;;
10334     siemens)
10335       need_lib_prefix=no
10336       ;;
10337     motorola)
10338       need_lib_prefix=no
10339       need_version=no
10340       shlibpath_overrides_runpath=no
10341       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10342       ;;
10343   esac
10344   ;;
10345
10346 sysv4*MP*)
10347   if test -d /usr/nec ;then
10348     version_type=linux # correct to gnu/linux during the next big refactor
10349     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10350     soname_spec='$libname${shared_ext}.$major'
10351     shlibpath_var=LD_LIBRARY_PATH
10352   fi
10353   ;;
10354
10355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10356   version_type=freebsd-elf
10357   need_lib_prefix=no
10358   need_version=no
10359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10360   soname_spec='${libname}${release}${shared_ext}$major'
10361   shlibpath_var=LD_LIBRARY_PATH
10362   shlibpath_overrides_runpath=yes
10363   hardcode_into_libs=yes
10364   if test "$with_gnu_ld" = yes; then
10365     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10366   else
10367     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10368     case $host_os in
10369       sco3.2v5*)
10370         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10371         ;;
10372     esac
10373   fi
10374   sys_lib_dlsearch_path_spec='/usr/lib'
10375   ;;
10376
10377 tpf*)
10378   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10379   version_type=linux # correct to gnu/linux during the next big refactor
10380   need_lib_prefix=no
10381   need_version=no
10382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383   shlibpath_var=LD_LIBRARY_PATH
10384   shlibpath_overrides_runpath=no
10385   hardcode_into_libs=yes
10386   ;;
10387
10388 uts4*)
10389   version_type=linux # correct to gnu/linux during the next big refactor
10390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391   soname_spec='${libname}${release}${shared_ext}$major'
10392   shlibpath_var=LD_LIBRARY_PATH
10393   ;;
10394
10395 *)
10396   dynamic_linker=no
10397   ;;
10398 esac
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10400 $as_echo "$dynamic_linker" >&6; }
10401 test "$dynamic_linker" = no && can_build_shared=no
10402
10403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10404 if test "$GCC" = yes; then
10405   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10406 fi
10407
10408 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10409   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10410 fi
10411 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10412   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10413 fi
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10507 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10508 hardcode_action=
10509 if test -n "$hardcode_libdir_flag_spec" ||
10510    test -n "$runpath_var" ||
10511    test "X$hardcode_automatic" = "Xyes" ; then
10512
10513   # We can hardcode non-existent directories.
10514   if test "$hardcode_direct" != no &&
10515      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10516      # have to relink, otherwise we might link with an installed library
10517      # when we should be linking with a yet-to-be-installed one
10518      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10519      test "$hardcode_minus_L" != no; then
10520     # Linking always hardcodes the temporary library directory.
10521     hardcode_action=relink
10522   else
10523     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10524     hardcode_action=immediate
10525   fi
10526 else
10527   # We cannot hardcode anything, or else we can only hardcode existing
10528   # directories.
10529   hardcode_action=unsupported
10530 fi
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10532 $as_echo "$hardcode_action" >&6; }
10533
10534 if test "$hardcode_action" = relink ||
10535    test "$inherit_rpath" = yes; then
10536   # Fast installation is not supported
10537   enable_fast_install=no
10538 elif test "$shlibpath_overrides_runpath" = yes ||
10539      test "$enable_shared" = no; then
10540   # Fast installation is not necessary
10541   enable_fast_install=needless
10542 fi
10543
10544
10545
10546
10547
10548
10549   if test "x$enable_dlopen" != xyes; then
10550   enable_dlopen=unknown
10551   enable_dlopen_self=unknown
10552   enable_dlopen_self_static=unknown
10553 else
10554   lt_cv_dlopen=no
10555   lt_cv_dlopen_libs=
10556
10557   case $host_os in
10558   beos*)
10559     lt_cv_dlopen="load_add_on"
10560     lt_cv_dlopen_libs=
10561     lt_cv_dlopen_self=yes
10562     ;;
10563
10564   mingw* | pw32* | cegcc*)
10565     lt_cv_dlopen="LoadLibrary"
10566     lt_cv_dlopen_libs=
10567     ;;
10568
10569   cygwin*)
10570     lt_cv_dlopen="dlopen"
10571     lt_cv_dlopen_libs=
10572     ;;
10573
10574   darwin*)
10575   # if libdl is installed we need to link against it
10576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10577 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10578 if ${ac_cv_lib_dl_dlopen+:} false; then :
10579   $as_echo_n "(cached) " >&6
10580 else
10581   ac_check_lib_save_LIBS=$LIBS
10582 LIBS="-ldl  $LIBS"
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h.  */
10585
10586 /* Override any GCC internal prototype to avoid an error.
10587    Use char because int might match the return type of a GCC
10588    builtin and then its argument prototype would still apply.  */
10589 #ifdef __cplusplus
10590 extern "C"
10591 #endif
10592 char dlopen ();
10593 int
10594 main ()
10595 {
10596 return dlopen ();
10597   ;
10598   return 0;
10599 }
10600 _ACEOF
10601 if ac_fn_c_try_link "$LINENO"; then :
10602   ac_cv_lib_dl_dlopen=yes
10603 else
10604   ac_cv_lib_dl_dlopen=no
10605 fi
10606 rm -f core conftest.err conftest.$ac_objext \
10607     conftest$ac_exeext conftest.$ac_ext
10608 LIBS=$ac_check_lib_save_LIBS
10609 fi
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10611 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10612 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10613   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10614 else
10615
10616     lt_cv_dlopen="dyld"
10617     lt_cv_dlopen_libs=
10618     lt_cv_dlopen_self=yes
10619
10620 fi
10621
10622     ;;
10623
10624   *)
10625     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10626 if test "x$ac_cv_func_shl_load" = xyes; then :
10627   lt_cv_dlopen="shl_load"
10628 else
10629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10630 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10631 if ${ac_cv_lib_dld_shl_load+:} false; then :
10632   $as_echo_n "(cached) " >&6
10633 else
10634   ac_check_lib_save_LIBS=$LIBS
10635 LIBS="-ldld  $LIBS"
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h.  */
10638
10639 /* Override any GCC internal prototype to avoid an error.
10640    Use char because int might match the return type of a GCC
10641    builtin and then its argument prototype would still apply.  */
10642 #ifdef __cplusplus
10643 extern "C"
10644 #endif
10645 char shl_load ();
10646 int
10647 main ()
10648 {
10649 return shl_load ();
10650   ;
10651   return 0;
10652 }
10653 _ACEOF
10654 if ac_fn_c_try_link "$LINENO"; then :
10655   ac_cv_lib_dld_shl_load=yes
10656 else
10657   ac_cv_lib_dld_shl_load=no
10658 fi
10659 rm -f core conftest.err conftest.$ac_objext \
10660     conftest$ac_exeext conftest.$ac_ext
10661 LIBS=$ac_check_lib_save_LIBS
10662 fi
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10664 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10665 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10666   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10667 else
10668   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10669 if test "x$ac_cv_func_dlopen" = xyes; then :
10670   lt_cv_dlopen="dlopen"
10671 else
10672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10673 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10674 if ${ac_cv_lib_dl_dlopen+:} false; then :
10675   $as_echo_n "(cached) " >&6
10676 else
10677   ac_check_lib_save_LIBS=$LIBS
10678 LIBS="-ldl  $LIBS"
10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h.  */
10681
10682 /* Override any GCC internal prototype to avoid an error.
10683    Use char because int might match the return type of a GCC
10684    builtin and then its argument prototype would still apply.  */
10685 #ifdef __cplusplus
10686 extern "C"
10687 #endif
10688 char dlopen ();
10689 int
10690 main ()
10691 {
10692 return dlopen ();
10693   ;
10694   return 0;
10695 }
10696 _ACEOF
10697 if ac_fn_c_try_link "$LINENO"; then :
10698   ac_cv_lib_dl_dlopen=yes
10699 else
10700   ac_cv_lib_dl_dlopen=no
10701 fi
10702 rm -f core conftest.err conftest.$ac_objext \
10703     conftest$ac_exeext conftest.$ac_ext
10704 LIBS=$ac_check_lib_save_LIBS
10705 fi
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10707 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10708 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10709   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10710 else
10711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10712 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10713 if ${ac_cv_lib_svld_dlopen+:} false; then :
10714   $as_echo_n "(cached) " >&6
10715 else
10716   ac_check_lib_save_LIBS=$LIBS
10717 LIBS="-lsvld  $LIBS"
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h.  */
10720
10721 /* Override any GCC internal prototype to avoid an error.
10722    Use char because int might match the return type of a GCC
10723    builtin and then its argument prototype would still apply.  */
10724 #ifdef __cplusplus
10725 extern "C"
10726 #endif
10727 char dlopen ();
10728 int
10729 main ()
10730 {
10731 return dlopen ();
10732   ;
10733   return 0;
10734 }
10735 _ACEOF
10736 if ac_fn_c_try_link "$LINENO"; then :
10737   ac_cv_lib_svld_dlopen=yes
10738 else
10739   ac_cv_lib_svld_dlopen=no
10740 fi
10741 rm -f core conftest.err conftest.$ac_objext \
10742     conftest$ac_exeext conftest.$ac_ext
10743 LIBS=$ac_check_lib_save_LIBS
10744 fi
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10746 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10747 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10748   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10749 else
10750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10751 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10752 if ${ac_cv_lib_dld_dld_link+:} false; then :
10753   $as_echo_n "(cached) " >&6
10754 else
10755   ac_check_lib_save_LIBS=$LIBS
10756 LIBS="-ldld  $LIBS"
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h.  */
10759
10760 /* Override any GCC internal prototype to avoid an error.
10761    Use char because int might match the return type of a GCC
10762    builtin and then its argument prototype would still apply.  */
10763 #ifdef __cplusplus
10764 extern "C"
10765 #endif
10766 char dld_link ();
10767 int
10768 main ()
10769 {
10770 return dld_link ();
10771   ;
10772   return 0;
10773 }
10774 _ACEOF
10775 if ac_fn_c_try_link "$LINENO"; then :
10776   ac_cv_lib_dld_dld_link=yes
10777 else
10778   ac_cv_lib_dld_dld_link=no
10779 fi
10780 rm -f core conftest.err conftest.$ac_objext \
10781     conftest$ac_exeext conftest.$ac_ext
10782 LIBS=$ac_check_lib_save_LIBS
10783 fi
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10785 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10786 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10787   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10788 fi
10789
10790
10791 fi
10792
10793
10794 fi
10795
10796
10797 fi
10798
10799
10800 fi
10801
10802
10803 fi
10804
10805     ;;
10806   esac
10807
10808   if test "x$lt_cv_dlopen" != xno; then
10809     enable_dlopen=yes
10810   else
10811     enable_dlopen=no
10812   fi
10813
10814   case $lt_cv_dlopen in
10815   dlopen)
10816     save_CPPFLAGS="$CPPFLAGS"
10817     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10818
10819     save_LDFLAGS="$LDFLAGS"
10820     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10821
10822     save_LIBS="$LIBS"
10823     LIBS="$lt_cv_dlopen_libs $LIBS"
10824
10825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10826 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10827 if ${lt_cv_dlopen_self+:} false; then :
10828   $as_echo_n "(cached) " >&6
10829 else
10830           if test "$cross_compiling" = yes; then :
10831   lt_cv_dlopen_self=cross
10832 else
10833   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10834   lt_status=$lt_dlunknown
10835   cat > conftest.$ac_ext <<_LT_EOF
10836 #line $LINENO "configure"
10837 #include "confdefs.h"
10838
10839 #if HAVE_DLFCN_H
10840 #include <dlfcn.h>
10841 #endif
10842
10843 #include <stdio.h>
10844
10845 #ifdef RTLD_GLOBAL
10846 #  define LT_DLGLOBAL           RTLD_GLOBAL
10847 #else
10848 #  ifdef DL_GLOBAL
10849 #    define LT_DLGLOBAL         DL_GLOBAL
10850 #  else
10851 #    define LT_DLGLOBAL         0
10852 #  endif
10853 #endif
10854
10855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10856    find out it does not work in some platform. */
10857 #ifndef LT_DLLAZY_OR_NOW
10858 #  ifdef RTLD_LAZY
10859 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10860 #  else
10861 #    ifdef DL_LAZY
10862 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10863 #    else
10864 #      ifdef RTLD_NOW
10865 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10866 #      else
10867 #        ifdef DL_NOW
10868 #          define LT_DLLAZY_OR_NOW      DL_NOW
10869 #        else
10870 #          define LT_DLLAZY_OR_NOW      0
10871 #        endif
10872 #      endif
10873 #    endif
10874 #  endif
10875 #endif
10876
10877 /* When -fvisbility=hidden is used, assume the code has been annotated
10878    correspondingly for the symbols needed.  */
10879 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10880 int fnord () __attribute__((visibility("default")));
10881 #endif
10882
10883 int fnord () { return 42; }
10884 int main ()
10885 {
10886   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10887   int status = $lt_dlunknown;
10888
10889   if (self)
10890     {
10891       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10892       else
10893         {
10894           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10895           else puts (dlerror ());
10896         }
10897       /* dlclose (self); */
10898     }
10899   else
10900     puts (dlerror ());
10901
10902   return status;
10903 }
10904 _LT_EOF
10905   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10906   (eval $ac_link) 2>&5
10907   ac_status=$?
10908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10909   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10910     (./conftest; exit; ) >&5 2>/dev/null
10911     lt_status=$?
10912     case x$lt_status in
10913       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10914       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10915       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10916     esac
10917   else :
10918     # compilation failed
10919     lt_cv_dlopen_self=no
10920   fi
10921 fi
10922 rm -fr conftest*
10923
10924
10925 fi
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10927 $as_echo "$lt_cv_dlopen_self" >&6; }
10928
10929     if test "x$lt_cv_dlopen_self" = xyes; then
10930       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10931       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10932 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10933 if ${lt_cv_dlopen_self_static+:} false; then :
10934   $as_echo_n "(cached) " >&6
10935 else
10936           if test "$cross_compiling" = yes; then :
10937   lt_cv_dlopen_self_static=cross
10938 else
10939   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10940   lt_status=$lt_dlunknown
10941   cat > conftest.$ac_ext <<_LT_EOF
10942 #line $LINENO "configure"
10943 #include "confdefs.h"
10944
10945 #if HAVE_DLFCN_H
10946 #include <dlfcn.h>
10947 #endif
10948
10949 #include <stdio.h>
10950
10951 #ifdef RTLD_GLOBAL
10952 #  define LT_DLGLOBAL           RTLD_GLOBAL
10953 #else
10954 #  ifdef DL_GLOBAL
10955 #    define LT_DLGLOBAL         DL_GLOBAL
10956 #  else
10957 #    define LT_DLGLOBAL         0
10958 #  endif
10959 #endif
10960
10961 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10962    find out it does not work in some platform. */
10963 #ifndef LT_DLLAZY_OR_NOW
10964 #  ifdef RTLD_LAZY
10965 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10966 #  else
10967 #    ifdef DL_LAZY
10968 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10969 #    else
10970 #      ifdef RTLD_NOW
10971 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10972 #      else
10973 #        ifdef DL_NOW
10974 #          define LT_DLLAZY_OR_NOW      DL_NOW
10975 #        else
10976 #          define LT_DLLAZY_OR_NOW      0
10977 #        endif
10978 #      endif
10979 #    endif
10980 #  endif
10981 #endif
10982
10983 /* When -fvisbility=hidden is used, assume the code has been annotated
10984    correspondingly for the symbols needed.  */
10985 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10986 int fnord () __attribute__((visibility("default")));
10987 #endif
10988
10989 int fnord () { return 42; }
10990 int main ()
10991 {
10992   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10993   int status = $lt_dlunknown;
10994
10995   if (self)
10996     {
10997       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10998       else
10999         {
11000           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11001           else puts (dlerror ());
11002         }
11003       /* dlclose (self); */
11004     }
11005   else
11006     puts (dlerror ());
11007
11008   return status;
11009 }
11010 _LT_EOF
11011   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11012   (eval $ac_link) 2>&5
11013   ac_status=$?
11014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11015   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11016     (./conftest; exit; ) >&5 2>/dev/null
11017     lt_status=$?
11018     case x$lt_status in
11019       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11020       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11021       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11022     esac
11023   else :
11024     # compilation failed
11025     lt_cv_dlopen_self_static=no
11026   fi
11027 fi
11028 rm -fr conftest*
11029
11030
11031 fi
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11033 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11034     fi
11035
11036     CPPFLAGS="$save_CPPFLAGS"
11037     LDFLAGS="$save_LDFLAGS"
11038     LIBS="$save_LIBS"
11039     ;;
11040   esac
11041
11042   case $lt_cv_dlopen_self in
11043   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11044   *) enable_dlopen_self=unknown ;;
11045   esac
11046
11047   case $lt_cv_dlopen_self_static in
11048   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11049   *) enable_dlopen_self_static=unknown ;;
11050   esac
11051 fi
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069 striplib=
11070 old_striplib=
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11072 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11073 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11074   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11075   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11077 $as_echo "yes" >&6; }
11078 else
11079 # FIXME - insert some real tests, host_os isn't really good enough
11080   case $host_os in
11081   darwin*)
11082     if test -n "$STRIP" ; then
11083       striplib="$STRIP -x"
11084       old_striplib="$STRIP -S"
11085       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11086 $as_echo "yes" >&6; }
11087     else
11088       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11090     fi
11091     ;;
11092   *)
11093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11095     ;;
11096   esac
11097 fi
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110   # Report which library types will actually be built
11111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11112 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11114 $as_echo "$can_build_shared" >&6; }
11115
11116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11117 $as_echo_n "checking whether to build shared libraries... " >&6; }
11118   test "$can_build_shared" = "no" && enable_shared=no
11119
11120   # On AIX, shared libraries and static libraries use the same namespace, and
11121   # are all built from PIC.
11122   case $host_os in
11123   aix3*)
11124     test "$enable_shared" = yes && enable_static=no
11125     if test -n "$RANLIB"; then
11126       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11127       postinstall_cmds='$RANLIB $lib'
11128     fi
11129     ;;
11130
11131   aix[4-9]*)
11132     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11133       test "$enable_shared" = yes && enable_static=no
11134     fi
11135     ;;
11136   esac
11137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11138 $as_echo "$enable_shared" >&6; }
11139
11140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11141 $as_echo_n "checking whether to build static libraries... " >&6; }
11142   # Make sure either enable_shared or enable_static is yes.
11143   test "$enable_shared" = yes || enable_static=yes
11144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11145 $as_echo "$enable_static" >&6; }
11146
11147
11148
11149
11150 fi
11151 ac_ext=c
11152 ac_cpp='$CPP $CPPFLAGS'
11153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11156
11157 CC="$lt_save_CC"
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173         ac_config_commands="$ac_config_commands libtool"
11174
11175
11176
11177
11178 # Only expand once:
11179
11180
11181 ac_ext=c
11182 ac_cpp='$CPP $CPPFLAGS'
11183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11186 if test -n "$ac_tool_prefix"; then
11187   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11188 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11190 $as_echo_n "checking for $ac_word... " >&6; }
11191 if ${ac_cv_prog_CC+:} false; then :
11192   $as_echo_n "(cached) " >&6
11193 else
11194   if test -n "$CC"; then
11195   ac_cv_prog_CC="$CC" # Let the user override the test.
11196 else
11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198 for as_dir in $PATH
11199 do
11200   IFS=$as_save_IFS
11201   test -z "$as_dir" && as_dir=.
11202     for ac_exec_ext in '' $ac_executable_extensions; do
11203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11204     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11206     break 2
11207   fi
11208 done
11209   done
11210 IFS=$as_save_IFS
11211
11212 fi
11213 fi
11214 CC=$ac_cv_prog_CC
11215 if test -n "$CC"; then
11216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11217 $as_echo "$CC" >&6; }
11218 else
11219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220 $as_echo "no" >&6; }
11221 fi
11222
11223
11224 fi
11225 if test -z "$ac_cv_prog_CC"; then
11226   ac_ct_CC=$CC
11227   # Extract the first word of "gcc", so it can be a program name with args.
11228 set dummy gcc; ac_word=$2
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11230 $as_echo_n "checking for $ac_word... " >&6; }
11231 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11232   $as_echo_n "(cached) " >&6
11233 else
11234   if test -n "$ac_ct_CC"; then
11235   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11236 else
11237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238 for as_dir in $PATH
11239 do
11240   IFS=$as_save_IFS
11241   test -z "$as_dir" && as_dir=.
11242     for ac_exec_ext in '' $ac_executable_extensions; do
11243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11244     ac_cv_prog_ac_ct_CC="gcc"
11245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11246     break 2
11247   fi
11248 done
11249   done
11250 IFS=$as_save_IFS
11251
11252 fi
11253 fi
11254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11255 if test -n "$ac_ct_CC"; then
11256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11257 $as_echo "$ac_ct_CC" >&6; }
11258 else
11259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260 $as_echo "no" >&6; }
11261 fi
11262
11263   if test "x$ac_ct_CC" = x; then
11264     CC=""
11265   else
11266     case $cross_compiling:$ac_tool_warned in
11267 yes:)
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11270 ac_tool_warned=yes ;;
11271 esac
11272     CC=$ac_ct_CC
11273   fi
11274 else
11275   CC="$ac_cv_prog_CC"
11276 fi
11277
11278 if test -z "$CC"; then
11279           if test -n "$ac_tool_prefix"; then
11280     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11281 set dummy ${ac_tool_prefix}cc; ac_word=$2
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11283 $as_echo_n "checking for $ac_word... " >&6; }
11284 if ${ac_cv_prog_CC+:} false; then :
11285   $as_echo_n "(cached) " >&6
11286 else
11287   if test -n "$CC"; then
11288   ac_cv_prog_CC="$CC" # Let the user override the test.
11289 else
11290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291 for as_dir in $PATH
11292 do
11293   IFS=$as_save_IFS
11294   test -z "$as_dir" && as_dir=.
11295     for ac_exec_ext in '' $ac_executable_extensions; do
11296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11297     ac_cv_prog_CC="${ac_tool_prefix}cc"
11298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11299     break 2
11300   fi
11301 done
11302   done
11303 IFS=$as_save_IFS
11304
11305 fi
11306 fi
11307 CC=$ac_cv_prog_CC
11308 if test -n "$CC"; then
11309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11310 $as_echo "$CC" >&6; }
11311 else
11312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313 $as_echo "no" >&6; }
11314 fi
11315
11316
11317   fi
11318 fi
11319 if test -z "$CC"; then
11320   # Extract the first word of "cc", so it can be a program name with args.
11321 set dummy cc; ac_word=$2
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323 $as_echo_n "checking for $ac_word... " >&6; }
11324 if ${ac_cv_prog_CC+:} false; then :
11325   $as_echo_n "(cached) " >&6
11326 else
11327   if test -n "$CC"; then
11328   ac_cv_prog_CC="$CC" # Let the user override the test.
11329 else
11330   ac_prog_rejected=no
11331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332 for as_dir in $PATH
11333 do
11334   IFS=$as_save_IFS
11335   test -z "$as_dir" && as_dir=.
11336     for ac_exec_ext in '' $ac_executable_extensions; do
11337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11338     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11339        ac_prog_rejected=yes
11340        continue
11341      fi
11342     ac_cv_prog_CC="cc"
11343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11344     break 2
11345   fi
11346 done
11347   done
11348 IFS=$as_save_IFS
11349
11350 if test $ac_prog_rejected = yes; then
11351   # We found a bogon in the path, so make sure we never use it.
11352   set dummy $ac_cv_prog_CC
11353   shift
11354   if test $# != 0; then
11355     # We chose a different compiler from the bogus one.
11356     # However, it has the same basename, so the bogon will be chosen
11357     # first if we set CC to just the basename; use the full file name.
11358     shift
11359     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11360   fi
11361 fi
11362 fi
11363 fi
11364 CC=$ac_cv_prog_CC
11365 if test -n "$CC"; then
11366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11367 $as_echo "$CC" >&6; }
11368 else
11369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11371 fi
11372
11373
11374 fi
11375 if test -z "$CC"; then
11376   if test -n "$ac_tool_prefix"; then
11377   for ac_prog in cl.exe
11378   do
11379     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11382 $as_echo_n "checking for $ac_word... " >&6; }
11383 if ${ac_cv_prog_CC+:} false; then :
11384   $as_echo_n "(cached) " >&6
11385 else
11386   if test -n "$CC"; then
11387   ac_cv_prog_CC="$CC" # Let the user override the test.
11388 else
11389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390 for as_dir in $PATH
11391 do
11392   IFS=$as_save_IFS
11393   test -z "$as_dir" && as_dir=.
11394     for ac_exec_ext in '' $ac_executable_extensions; do
11395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11396     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11398     break 2
11399   fi
11400 done
11401   done
11402 IFS=$as_save_IFS
11403
11404 fi
11405 fi
11406 CC=$ac_cv_prog_CC
11407 if test -n "$CC"; then
11408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11409 $as_echo "$CC" >&6; }
11410 else
11411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11413 fi
11414
11415
11416     test -n "$CC" && break
11417   done
11418 fi
11419 if test -z "$CC"; then
11420   ac_ct_CC=$CC
11421   for ac_prog in cl.exe
11422 do
11423   # Extract the first word of "$ac_prog", so it can be a program name with args.
11424 set dummy $ac_prog; ac_word=$2
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426 $as_echo_n "checking for $ac_word... " >&6; }
11427 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11428   $as_echo_n "(cached) " >&6
11429 else
11430   if test -n "$ac_ct_CC"; then
11431   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11432 else
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11435 do
11436   IFS=$as_save_IFS
11437   test -z "$as_dir" && as_dir=.
11438     for ac_exec_ext in '' $ac_executable_extensions; do
11439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11440     ac_cv_prog_ac_ct_CC="$ac_prog"
11441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442     break 2
11443   fi
11444 done
11445   done
11446 IFS=$as_save_IFS
11447
11448 fi
11449 fi
11450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11451 if test -n "$ac_ct_CC"; then
11452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11453 $as_echo "$ac_ct_CC" >&6; }
11454 else
11455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11457 fi
11458
11459
11460   test -n "$ac_ct_CC" && break
11461 done
11462
11463   if test "x$ac_ct_CC" = x; then
11464     CC=""
11465   else
11466     case $cross_compiling:$ac_tool_warned in
11467 yes:)
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11470 ac_tool_warned=yes ;;
11471 esac
11472     CC=$ac_ct_CC
11473   fi
11474 fi
11475
11476 fi
11477
11478
11479 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11481 as_fn_error $? "no acceptable C compiler found in \$PATH
11482 See \`config.log' for more details" "$LINENO" 5; }
11483
11484 # Provide some information about the compiler.
11485 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11486 set X $ac_compile
11487 ac_compiler=$2
11488 for ac_option in --version -v -V -qversion; do
11489   { { ac_try="$ac_compiler $ac_option >&5"
11490 case "(($ac_try" in
11491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492   *) ac_try_echo=$ac_try;;
11493 esac
11494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11495 $as_echo "$ac_try_echo"; } >&5
11496   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11497   ac_status=$?
11498   if test -s conftest.err; then
11499     sed '10a\
11500 ... rest of stderr output deleted ...
11501          10q' conftest.err >conftest.er1
11502     cat conftest.er1 >&5
11503   fi
11504   rm -f conftest.er1 conftest.err
11505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11506   test $ac_status = 0; }
11507 done
11508
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11510 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11511 if ${ac_cv_c_compiler_gnu+:} false; then :
11512   $as_echo_n "(cached) " >&6
11513 else
11514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h.  */
11516
11517 int
11518 main ()
11519 {
11520 #ifndef __GNUC__
11521        choke me
11522 #endif
11523
11524   ;
11525   return 0;
11526 }
11527 _ACEOF
11528 if ac_fn_c_try_compile "$LINENO"; then :
11529   ac_compiler_gnu=yes
11530 else
11531   ac_compiler_gnu=no
11532 fi
11533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11534 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11535
11536 fi
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11538 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11539 if test $ac_compiler_gnu = yes; then
11540   GCC=yes
11541 else
11542   GCC=
11543 fi
11544 ac_test_CFLAGS=${CFLAGS+set}
11545 ac_save_CFLAGS=$CFLAGS
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11547 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11548 if ${ac_cv_prog_cc_g+:} false; then :
11549   $as_echo_n "(cached) " >&6
11550 else
11551   ac_save_c_werror_flag=$ac_c_werror_flag
11552    ac_c_werror_flag=yes
11553    ac_cv_prog_cc_g=no
11554    CFLAGS="-g"
11555    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h.  */
11557
11558 int
11559 main ()
11560 {
11561
11562   ;
11563   return 0;
11564 }
11565 _ACEOF
11566 if ac_fn_c_try_compile "$LINENO"; then :
11567   ac_cv_prog_cc_g=yes
11568 else
11569   CFLAGS=""
11570       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h.  */
11572
11573 int
11574 main ()
11575 {
11576
11577   ;
11578   return 0;
11579 }
11580 _ACEOF
11581 if ac_fn_c_try_compile "$LINENO"; then :
11582
11583 else
11584   ac_c_werror_flag=$ac_save_c_werror_flag
11585          CFLAGS="-g"
11586          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h.  */
11588
11589 int
11590 main ()
11591 {
11592
11593   ;
11594   return 0;
11595 }
11596 _ACEOF
11597 if ac_fn_c_try_compile "$LINENO"; then :
11598   ac_cv_prog_cc_g=yes
11599 fi
11600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11601 fi
11602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11603 fi
11604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11605    ac_c_werror_flag=$ac_save_c_werror_flag
11606 fi
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11608 $as_echo "$ac_cv_prog_cc_g" >&6; }
11609 if test "$ac_test_CFLAGS" = set; then
11610   CFLAGS=$ac_save_CFLAGS
11611 elif test $ac_cv_prog_cc_g = yes; then
11612   if test "$GCC" = yes; then
11613     CFLAGS="-g -O2"
11614   else
11615     CFLAGS="-g"
11616   fi
11617 else
11618   if test "$GCC" = yes; then
11619     CFLAGS="-O2"
11620   else
11621     CFLAGS=
11622   fi
11623 fi
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11625 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11626 if ${ac_cv_prog_cc_c89+:} false; then :
11627   $as_echo_n "(cached) " >&6
11628 else
11629   ac_cv_prog_cc_c89=no
11630 ac_save_CC=$CC
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h.  */
11633 #include <stdarg.h>
11634 #include <stdio.h>
11635 #include <sys/types.h>
11636 #include <sys/stat.h>
11637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11638 struct buf { int x; };
11639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11640 static char *e (p, i)
11641      char **p;
11642      int i;
11643 {
11644   return p[i];
11645 }
11646 static char *f (char * (*g) (char **, int), char **p, ...)
11647 {
11648   char *s;
11649   va_list v;
11650   va_start (v,p);
11651   s = g (p, va_arg (v,int));
11652   va_end (v);
11653   return s;
11654 }
11655
11656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11657    function prototypes and stuff, but not '\xHH' hex character constants.
11658    These don't provoke an error unfortunately, instead are silently treated
11659    as 'x'.  The following induces an error, until -std is added to get
11660    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11661    array size at least.  It's necessary to write '\x00'==0 to get something
11662    that's true only with -std.  */
11663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11664
11665 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11666    inside strings and character constants.  */
11667 #define FOO(x) 'x'
11668 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11669
11670 int test (int i, double x);
11671 struct s1 {int (*f) (int a);};
11672 struct s2 {int (*f) (double a);};
11673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11674 int argc;
11675 char **argv;
11676 int
11677 main ()
11678 {
11679 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11680   ;
11681   return 0;
11682 }
11683 _ACEOF
11684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11685         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11686 do
11687   CC="$ac_save_CC $ac_arg"
11688   if ac_fn_c_try_compile "$LINENO"; then :
11689   ac_cv_prog_cc_c89=$ac_arg
11690 fi
11691 rm -f core conftest.err conftest.$ac_objext
11692   test "x$ac_cv_prog_cc_c89" != "xno" && break
11693 done
11694 rm -f conftest.$ac_ext
11695 CC=$ac_save_CC
11696
11697 fi
11698 # AC_CACHE_VAL
11699 case "x$ac_cv_prog_cc_c89" in
11700   x)
11701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11702 $as_echo "none needed" >&6; } ;;
11703   xno)
11704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11705 $as_echo "unsupported" >&6; } ;;
11706   *)
11707     CC="$CC $ac_cv_prog_cc_c89"
11708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11709 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11710 esac
11711 if test "x$ac_cv_prog_cc_c89" != xno; then :
11712
11713 fi
11714
11715 ac_ext=c
11716 ac_cpp='$CPP $CPPFLAGS'
11717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11720
11721 depcc="$CC"   am_compiler_list=
11722
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11724 $as_echo_n "checking dependency style of $depcc... " >&6; }
11725 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11726   $as_echo_n "(cached) " >&6
11727 else
11728   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11729   # We make a subdir and do the tests there.  Otherwise we can end up
11730   # making bogus files that we don't know about and never remove.  For
11731   # instance it was reported that on HP-UX the gcc test will end up
11732   # making a dummy file named `D' -- because `-MD' means `put the output
11733   # in D'.
11734   mkdir conftest.dir
11735   # Copy depcomp to subdir because otherwise we won't find it if we're
11736   # using a relative directory.
11737   cp "$am_depcomp" conftest.dir
11738   cd conftest.dir
11739   # We will build objects and dependencies in a subdirectory because
11740   # it helps to detect inapplicable dependency modes.  For instance
11741   # both Tru64's cc and ICC support -MD to output dependencies as a
11742   # side effect of compilation, but ICC will put the dependencies in
11743   # the current directory while Tru64 will put them in the object
11744   # directory.
11745   mkdir sub
11746
11747   am_cv_CC_dependencies_compiler_type=none
11748   if test "$am_compiler_list" = ""; then
11749      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11750   fi
11751   am__universal=false
11752   case " $depcc " in #(
11753      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11754      esac
11755
11756   for depmode in $am_compiler_list; do
11757     # Setup a source with many dependencies, because some compilers
11758     # like to wrap large dependency lists on column 80 (with \), and
11759     # we should not choose a depcomp mode which is confused by this.
11760     #
11761     # We need to recreate these files for each test, as the compiler may
11762     # overwrite some of them when testing with obscure command lines.
11763     # This happens at least with the AIX C compiler.
11764     : > sub/conftest.c
11765     for i in 1 2 3 4 5 6; do
11766       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11767       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11768       # Solaris 8's {/usr,}/bin/sh.
11769       touch sub/conftst$i.h
11770     done
11771     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11772
11773     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11774     # mode.  It turns out that the SunPro C++ compiler does not properly
11775     # handle `-M -o', and we need to detect this.  Also, some Intel
11776     # versions had trouble with output in subdirs
11777     am__obj=sub/conftest.${OBJEXT-o}
11778     am__minus_obj="-o $am__obj"
11779     case $depmode in
11780     gcc)
11781       # This depmode causes a compiler race in universal mode.
11782       test "$am__universal" = false || continue
11783       ;;
11784     nosideeffect)
11785       # after this tag, mechanisms are not by side-effect, so they'll
11786       # only be used when explicitly requested
11787       if test "x$enable_dependency_tracking" = xyes; then
11788         continue
11789       else
11790         break
11791       fi
11792       ;;
11793     msvisualcpp | msvcmsys)
11794       # This compiler won't grok `-c -o', but also, the minuso test has
11795       # not run yet.  These depmodes are late enough in the game, and
11796       # so weak that their functioning should not be impacted.
11797       am__obj=conftest.${OBJEXT-o}
11798       am__minus_obj=
11799       ;;
11800     none) break ;;
11801     esac
11802     if depmode=$depmode \
11803        source=sub/conftest.c object=$am__obj \
11804        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11805        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11806          >/dev/null 2>conftest.err &&
11807        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11808        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11809        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11810        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11811       # icc doesn't choke on unknown options, it will just issue warnings
11812       # or remarks (even with -Werror).  So we grep stderr for any message
11813       # that says an option was ignored or not supported.
11814       # When given -MP, icc 7.0 and 7.1 complain thusly:
11815       #   icc: Command line warning: ignoring option '-M'; no argument required
11816       # The diagnosis changed in icc 8.0:
11817       #   icc: Command line remark: option '-MP' not supported
11818       if (grep 'ignoring option' conftest.err ||
11819           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11820         am_cv_CC_dependencies_compiler_type=$depmode
11821         break
11822       fi
11823     fi
11824   done
11825
11826   cd ..
11827   rm -rf conftest.dir
11828 else
11829   am_cv_CC_dependencies_compiler_type=none
11830 fi
11831
11832 fi
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11834 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11835 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11836
11837  if
11838   test "x$enable_dependency_tracking" != xno \
11839   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11840   am__fastdepCC_TRUE=
11841   am__fastdepCC_FALSE='#'
11842 else
11843   am__fastdepCC_TRUE='#'
11844   am__fastdepCC_FALSE=
11845 fi
11846
11847
11848
11849 # Extract the first word of "guile", so it can be a program name with args.
11850 set dummy guile; ac_word=$2
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852 $as_echo_n "checking for $ac_word... " >&6; }
11853 if ${ac_cv_path_GUILE+:} false; then :
11854   $as_echo_n "(cached) " >&6
11855 else
11856   case $GUILE in
11857   [\\/]* | ?:[\\/]*)
11858   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
11859   ;;
11860   *)
11861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862 for as_dir in $PATH
11863 do
11864   IFS=$as_save_IFS
11865   test -z "$as_dir" && as_dir=.
11866     for ac_exec_ext in '' $ac_executable_extensions; do
11867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11868     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
11869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11870     break 2
11871   fi
11872 done
11873   done
11874 IFS=$as_save_IFS
11875
11876   ;;
11877 esac
11878 fi
11879 GUILE=$ac_cv_path_GUILE
11880 if test -n "$GUILE"; then
11881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
11882 $as_echo "$GUILE" >&6; }
11883 else
11884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11886 fi
11887
11888
11889   if test "$GUILE" = "" ; then
11890       as_fn_error $? "guile required but not found" "$LINENO" 5
11891   fi
11892
11893   # Extract the first word of "guile-config", so it can be a program name with args.
11894 set dummy guile-config; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if ${ac_cv_path_GUILE_CONFIG+:} false; then :
11898   $as_echo_n "(cached) " >&6
11899 else
11900   case $GUILE_CONFIG in
11901   [\\/]* | ?:[\\/]*)
11902   ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
11903   ;;
11904   *)
11905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11907 do
11908   IFS=$as_save_IFS
11909   test -z "$as_dir" && as_dir=.
11910     for ac_exec_ext in '' $ac_executable_extensions; do
11911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11912     ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914     break 2
11915   fi
11916 done
11917   done
11918 IFS=$as_save_IFS
11919
11920   ;;
11921 esac
11922 fi
11923 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
11924 if test -n "$GUILE_CONFIG"; then
11925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
11926 $as_echo "$GUILE_CONFIG" >&6; }
11927 else
11928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11930 fi
11931
11932
11933   if test "$GUILE_CONFIG" = "" ; then
11934       as_fn_error $? "guile-config required but not found" "$LINENO" 5
11935   fi
11936
11937   # Extract the first word of "guile-tools", so it can be a program name with args.
11938 set dummy guile-tools; ac_word=$2
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940 $as_echo_n "checking for $ac_word... " >&6; }
11941 if ${ac_cv_path_GUILE_TOOLS+:} false; then :
11942   $as_echo_n "(cached) " >&6
11943 else
11944   case $GUILE_TOOLS in
11945   [\\/]* | ?:[\\/]*)
11946   ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
11947   ;;
11948   *)
11949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11951 do
11952   IFS=$as_save_IFS
11953   test -z "$as_dir" && as_dir=.
11954     for ac_exec_ext in '' $ac_executable_extensions; do
11955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956     ac_cv_path_GUILE_TOOLS="$as_dir/$ac_word$ac_exec_ext"
11957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958     break 2
11959   fi
11960 done
11961   done
11962 IFS=$as_save_IFS
11963
11964   ;;
11965 esac
11966 fi
11967 GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
11968 if test -n "$GUILE_TOOLS"; then
11969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
11970 $as_echo "$GUILE_TOOLS" >&6; }
11971 else
11972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11974 fi
11975
11976
11977
11978
11979
11980 # Check whether --with-gnu-ld was given.
11981 if test "${with_gnu_ld+set}" = set; then :
11982   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11983 else
11984   with_gnu_ld=no
11985 fi
11986
11987 # Prepare PATH_SEPARATOR.
11988 # The user is always right.
11989 if test "${PATH_SEPARATOR+set}" != set; then
11990   echo "#! /bin/sh" >conf$$.sh
11991   echo  "exit 0"   >>conf$$.sh
11992   chmod +x conf$$.sh
11993   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11994     PATH_SEPARATOR=';'
11995   else
11996     PATH_SEPARATOR=:
11997   fi
11998   rm -f conf$$.sh
11999 fi
12000 ac_prog=ld
12001 if test "$GCC" = yes; then
12002   # Check if gcc -print-prog-name=ld gives a path.
12003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12004 $as_echo_n "checking for ld used by GCC... " >&6; }
12005   case $host in
12006   *-*-mingw*)
12007     # gcc leaves a trailing carriage return which upsets mingw
12008     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12009   *)
12010     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12011   esac
12012   case $ac_prog in
12013     # Accept absolute paths.
12014     [\\/]* | [A-Za-z]:[\\/]*)
12015       re_direlt='/[^/][^/]*/\.\./'
12016       # Canonicalize the path of ld
12017       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12018       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12019         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12020       done
12021       test -z "$LD" && LD="$ac_prog"
12022       ;;
12023   "")
12024     # If it fails, then pretend we aren't using GCC.
12025     ac_prog=ld
12026     ;;
12027   *)
12028     # If it is relative, then search for the first ld in PATH.
12029     with_gnu_ld=unknown
12030     ;;
12031   esac
12032 elif test "$with_gnu_ld" = yes; then
12033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12034 $as_echo_n "checking for GNU ld... " >&6; }
12035 else
12036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12037 $as_echo_n "checking for non-GNU ld... " >&6; }
12038 fi
12039 if ${acl_cv_path_LD+:} false; then :
12040   $as_echo_n "(cached) " >&6
12041 else
12042   if test -z "$LD"; then
12043   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12044   for ac_dir in $PATH; do
12045     test -z "$ac_dir" && ac_dir=.
12046     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12047       acl_cv_path_LD="$ac_dir/$ac_prog"
12048       # Check to see if the program is GNU ld.  I'd rather use --version,
12049       # but apparently some GNU ld's only accept -v.
12050       # Break only if it was the GNU/non-GNU ld that we prefer.
12051       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12052       *GNU* | *'with BFD'*)
12053         test "$with_gnu_ld" != no && break ;;
12054       *)
12055         test "$with_gnu_ld" != yes && break ;;
12056       esac
12057     fi
12058   done
12059   IFS="$ac_save_ifs"
12060 else
12061   acl_cv_path_LD="$LD" # Let the user override the test with a path.
12062 fi
12063 fi
12064
12065 LD="$acl_cv_path_LD"
12066 if test -n "$LD"; then
12067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12068 $as_echo "$LD" >&6; }
12069 else
12070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12072 fi
12073 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12075 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12076 if ${acl_cv_prog_gnu_ld+:} false; then :
12077   $as_echo_n "(cached) " >&6
12078 else
12079   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12080 case `$LD -v 2>&1 </dev/null` in
12081 *GNU* | *'with BFD'*)
12082   acl_cv_prog_gnu_ld=yes ;;
12083 *)
12084   acl_cv_prog_gnu_ld=no ;;
12085 esac
12086 fi
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12088 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12089 with_gnu_ld=$acl_cv_prog_gnu_ld
12090
12091
12092
12093
12094                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12095 $as_echo_n "checking for shared library run path origin... " >&6; }
12096 if ${acl_cv_rpath+:} false; then :
12097   $as_echo_n "(cached) " >&6
12098 else
12099
12100     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12101     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12102     . ./conftest.sh
12103     rm -f ./conftest.sh
12104     acl_cv_rpath=done
12105
12106 fi
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12108 $as_echo "$acl_cv_rpath" >&6; }
12109   wl="$acl_cv_wl"
12110   acl_libext="$acl_cv_libext"
12111   acl_shlibext="$acl_cv_shlibext"
12112   acl_libname_spec="$acl_cv_libname_spec"
12113   acl_library_names_spec="$acl_cv_library_names_spec"
12114   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12115   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12116   acl_hardcode_direct="$acl_cv_hardcode_direct"
12117   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12118     # Check whether --enable-rpath was given.
12119 if test "${enable_rpath+set}" = set; then :
12120   enableval=$enable_rpath; :
12121 else
12122   enable_rpath=yes
12123 fi
12124
12125
12126
12127
12128   acl_libdirstem=lib
12129   acl_libdirstem2=
12130   case "$host_os" in
12131     solaris*)
12132                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12133 $as_echo_n "checking for 64-bit host... " >&6; }
12134 if ${gl_cv_solaris_64bit+:} false; then :
12135   $as_echo_n "(cached) " >&6
12136 else
12137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h.  */
12139
12140 #ifdef _LP64
12141 sixtyfour bits
12142 #endif
12143
12144 _ACEOF
12145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12146   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12147   gl_cv_solaris_64bit=yes
12148 else
12149   gl_cv_solaris_64bit=no
12150 fi
12151 rm -f conftest*
12152
12153
12154 fi
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12156 $as_echo "$gl_cv_solaris_64bit" >&6; }
12157       if test $gl_cv_solaris_64bit = yes; then
12158         acl_libdirstem=lib/64
12159         case "$host_cpu" in
12160           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
12161           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12162         esac
12163       fi
12164       ;;
12165     *)
12166       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12167       if test -n "$searchpath"; then
12168         acl_save_IFS="${IFS=    }"; IFS=":"
12169         for searchdir in $searchpath; do
12170           if test -d "$searchdir"; then
12171             case "$searchdir" in
12172               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12173               */../ | */.. )
12174                 # Better ignore directories of this form. They are misleading.
12175                 ;;
12176               *) searchdir=`cd "$searchdir" && pwd`
12177                  case "$searchdir" in
12178                    */lib64 ) acl_libdirstem=lib64 ;;
12179                  esac ;;
12180             esac
12181           fi
12182         done
12183         IFS="$acl_save_IFS"
12184       fi
12185       ;;
12186   esac
12187   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12188
12189
12190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile compile flags" >&5
12191 $as_echo_n "checking libguile compile flags... " >&6; }
12192   GUILE_CFLAGS="`$GUILE_CONFIG compile`"
12193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CFLAGS" >&5
12194 $as_echo "$GUILE_CFLAGS" >&6; }
12195
12196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile link flags" >&5
12197 $as_echo_n "checking libguile link flags... " >&6; }
12198   GUILE_LDFLAGS="`$GUILE_CONFIG link`"
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LDFLAGS" >&5
12200 $as_echo "$GUILE_LDFLAGS" >&6; }
12201
12202
12203
12204
12205   GUILE_LIBS=
12206   if test "$enable_rpath" != no; then
12207     if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12208                   rpathdirs=
12209       next=
12210       for opt in $GUILE_LDFLAGS; do
12211         if test -n "$next"; then
12212           dir="$next"
12213                     if test "X$dir" != "X/usr/$acl_libdirstem" \
12214              && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12215             rpathdirs="$rpathdirs $dir"
12216           fi
12217           next=
12218         else
12219           case $opt in
12220             -L) next=yes ;;
12221             -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
12222                                   if test "X$dir" != "X/usr/$acl_libdirstem" \
12223                     && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12224                    rpathdirs="$rpathdirs $dir"
12225                  fi
12226                  next= ;;
12227             *) next= ;;
12228           esac
12229         fi
12230       done
12231       if test "X$rpathdirs" != "X"; then
12232         if test -n """"; then
12233                     for dir in $rpathdirs; do
12234             GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }-R$dir"
12235           done
12236         else
12237                     if test -n "$acl_hardcode_libdir_separator"; then
12238                                     alldirs=
12239             for dir in $rpathdirs; do
12240               alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
12241             done
12242             acl_save_libdir="$libdir"
12243             libdir="$alldirs"
12244             eval flag=\"$acl_hardcode_libdir_flag_spec\"
12245             libdir="$acl_save_libdir"
12246             GUILE_LIBS="$flag"
12247           else
12248                         for dir in $rpathdirs; do
12249               acl_save_libdir="$libdir"
12250               libdir="$dir"
12251               eval flag=\"$acl_hardcode_libdir_flag_spec\"
12252               libdir="$acl_save_libdir"
12253               GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }$flag"
12254             done
12255           fi
12256         fi
12257       fi
12258     fi
12259   fi
12260
12261
12262   GUILE_LIBS="$GUILE_LDFLAGS $GUILE_LIBS"
12263
12264
12265
12266   GUILE_LTLIBS=
12267   if test "$enable_rpath" != no; then
12268     if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12269                   rpathdirs=
12270       next=
12271       for opt in $GUILE_LDFLAGS; do
12272         if test -n "$next"; then
12273           dir="$next"
12274                     if test "X$dir" != "X/usr/$acl_libdirstem" \
12275              && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12276             rpathdirs="$rpathdirs $dir"
12277           fi
12278           next=
12279         else
12280           case $opt in
12281             -L) next=yes ;;
12282             -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
12283                                   if test "X$dir" != "X/usr/$acl_libdirstem" \
12284                     && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12285                    rpathdirs="$rpathdirs $dir"
12286                  fi
12287                  next= ;;
12288             *) next= ;;
12289           esac
12290         fi
12291       done
12292       if test "X$rpathdirs" != "X"; then
12293         if test -n ""yes""; then
12294                     for dir in $rpathdirs; do
12295             GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }-R$dir"
12296           done
12297         else
12298                     if test -n "$acl_hardcode_libdir_separator"; then
12299                                     alldirs=
12300             for dir in $rpathdirs; do
12301               alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
12302             done
12303             acl_save_libdir="$libdir"
12304             libdir="$alldirs"
12305             eval flag=\"$acl_hardcode_libdir_flag_spec\"
12306             libdir="$acl_save_libdir"
12307             GUILE_LTLIBS="$flag"
12308           else
12309                         for dir in $rpathdirs; do
12310               acl_save_libdir="$libdir"
12311               libdir="$dir"
12312               eval flag=\"$acl_hardcode_libdir_flag_spec\"
12313               libdir="$acl_save_libdir"
12314               GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }$flag"
12315             done
12316           fi
12317         fi
12318       fi
12319     fi
12320   fi
12321
12322
12323   GUILE_LTLIBS="$GUILE_LDFLAGS $GUILE_LTLIBS"
12324
12325
12326
12327
12328
12329
12330
12331 for lib in SDL SDL_image SDL_gfx SDL_mixer ; do
12332     as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12334 $as_echo_n "checking for main in -l${lib}... " >&6; }
12335 if eval \${$as_ac_Lib+:} false; then :
12336   $as_echo_n "(cached) " >&6
12337 else
12338   ac_check_lib_save_LIBS=$LIBS
12339 LIBS="-l${lib}  $LIBS"
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h.  */
12342
12343
12344 int
12345 main ()
12346 {
12347 return main ();
12348   ;
12349   return 0;
12350 }
12351 _ACEOF
12352 if ac_fn_c_try_link "$LINENO"; then :
12353   eval "$as_ac_Lib=yes"
12354 else
12355   eval "$as_ac_Lib=no"
12356 fi
12357 rm -f core conftest.err conftest.$ac_objext \
12358     conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12360 fi
12361 eval ac_res=\$$as_ac_Lib
12362                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12363 $as_echo "$ac_res" >&6; }
12364 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12365   SDL_LIBS="-l${lib} $SDL_LIBS"
12366 else
12367   as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12368 fi
12369
12370 done
12371
12372 for lib in GL GLU ; do
12373     as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12375 $as_echo_n "checking for main in -l${lib}... " >&6; }
12376 if eval \${$as_ac_Lib+:} false; then :
12377   $as_echo_n "(cached) " >&6
12378 else
12379   ac_check_lib_save_LIBS=$LIBS
12380 LIBS="-l${lib}  $LIBS"
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h.  */
12383
12384
12385 int
12386 main ()
12387 {
12388 return main ();
12389   ;
12390   return 0;
12391 }
12392 _ACEOF
12393 if ac_fn_c_try_link "$LINENO"; then :
12394   eval "$as_ac_Lib=yes"
12395 else
12396   eval "$as_ac_Lib=no"
12397 fi
12398 rm -f core conftest.err conftest.$ac_objext \
12399     conftest$ac_exeext conftest.$ac_ext
12400 LIBS=$ac_check_lib_save_LIBS
12401 fi
12402 eval ac_res=\$$as_ac_Lib
12403                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12404 $as_echo "$ac_res" >&6; }
12405 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12406   GL_LIBS="-l${lib} $GL_LIBS"
12407 else
12408   as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12409 fi
12410
12411 done
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lftgl" >&5
12413 $as_echo_n "checking for main in -lftgl... " >&6; }
12414 if ${ac_cv_lib_ftgl_main+:} false; then :
12415   $as_echo_n "(cached) " >&6
12416 else
12417   ac_check_lib_save_LIBS=$LIBS
12418 LIBS="-lftgl  $LIBS"
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h.  */
12421
12422
12423 int
12424 main ()
12425 {
12426 return main ();
12427   ;
12428   return 0;
12429 }
12430 _ACEOF
12431 if ac_fn_c_try_link "$LINENO"; then :
12432   ac_cv_lib_ftgl_main=yes
12433 else
12434   ac_cv_lib_ftgl_main=no
12435 fi
12436 rm -f core conftest.err conftest.$ac_objext \
12437     conftest$ac_exeext conftest.$ac_ext
12438 LIBS=$ac_check_lib_save_LIBS
12439 fi
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftgl_main" >&5
12441 $as_echo "$ac_cv_lib_ftgl_main" >&6; }
12442 if test "x$ac_cv_lib_ftgl_main" = xyes; then :
12443   FTGL_LIBS="-lftgl $FTGL_LIBS"
12444 else
12445   as_fn_error $? "*** FTGL library not found!" "$LINENO" 5
12446 fi
12447
12448
12449
12450
12451 ac_config_headers="$ac_config_headers config.h"
12452
12453 ac_config_files="$ac_config_files Makefile src/Makefile"
12454
12455 cat >confcache <<\_ACEOF
12456 # This file is a shell script that caches the results of configure
12457 # tests run on this system so they can be shared between configure
12458 # scripts and configure runs, see configure's option --config-cache.
12459 # It is not useful on other systems.  If it contains results you don't
12460 # want to keep, you may remove or edit it.
12461 #
12462 # config.status only pays attention to the cache file if you give it
12463 # the --recheck option to rerun configure.
12464 #
12465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12467 # following values.
12468
12469 _ACEOF
12470
12471 # The following way of writing the cache mishandles newlines in values,
12472 # but we know of no workaround that is simple, portable, and efficient.
12473 # So, we kill variables containing newlines.
12474 # Ultrix sh set writes to stderr and can't be redirected directly,
12475 # and sets the high bit in the cache file unless we assign to the vars.
12476 (
12477   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12478     eval ac_val=\$$ac_var
12479     case $ac_val in #(
12480     *${as_nl}*)
12481       case $ac_var in #(
12482       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12483 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12484       esac
12485       case $ac_var in #(
12486       _ | IFS | as_nl) ;; #(
12487       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12488       *) { eval $ac_var=; unset $ac_var;} ;;
12489       esac ;;
12490     esac
12491   done
12492
12493   (set) 2>&1 |
12494     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12495     *${as_nl}ac_space=\ *)
12496       # `set' does not quote correctly, so add quotes: double-quote
12497       # substitution turns \\\\ into \\, and sed turns \\ into \.
12498       sed -n \
12499         "s/'/'\\\\''/g;
12500           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12501       ;; #(
12502     *)
12503       # `set' quotes correctly as required by POSIX, so do not add quotes.
12504       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12505       ;;
12506     esac |
12507     sort
12508 ) |
12509   sed '
12510      /^ac_cv_env_/b end
12511      t clear
12512      :clear
12513      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12514      t end
12515      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12516      :end' >>confcache
12517 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12518   if test -w "$cache_file"; then
12519     if test "x$cache_file" != "x/dev/null"; then
12520       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12521 $as_echo "$as_me: updating cache $cache_file" >&6;}
12522       if test ! -f "$cache_file" || test -h "$cache_file"; then
12523         cat confcache >"$cache_file"
12524       else
12525         case $cache_file in #(
12526         */* | ?:*)
12527           mv -f confcache "$cache_file"$$ &&
12528           mv -f "$cache_file"$$ "$cache_file" ;; #(
12529         *)
12530           mv -f confcache "$cache_file" ;;
12531         esac
12532       fi
12533     fi
12534   else
12535     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12536 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12537   fi
12538 fi
12539 rm -f confcache
12540
12541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12542 # Let make expand exec_prefix.
12543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12544
12545 DEFS=-DHAVE_CONFIG_H
12546
12547 ac_libobjs=
12548 ac_ltlibobjs=
12549 U=
12550 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12551   # 1. Remove the extension, and $U if already installed.
12552   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12553   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12554   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12555   #    will be set to the directory where LIBOBJS objects are built.
12556   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12557   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12558 done
12559 LIBOBJS=$ac_libobjs
12560
12561 LTLIBOBJS=$ac_ltlibobjs
12562
12563
12564  if test -n "$EXEEXT"; then
12565   am__EXEEXT_TRUE=
12566   am__EXEEXT_FALSE='#'
12567 else
12568   am__EXEEXT_TRUE='#'
12569   am__EXEEXT_FALSE=
12570 fi
12571
12572 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12573   as_fn_error $? "conditional \"AMDEP\" was never defined.
12574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12575 fi
12576 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12577   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12579 fi
12580 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12581   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12583 fi
12584
12585 : "${CONFIG_STATUS=./config.status}"
12586 ac_write_fail=0
12587 ac_clean_files_save=$ac_clean_files
12588 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12590 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12591 as_write_fail=0
12592 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12593 #! $SHELL
12594 # Generated by $as_me.
12595 # Run this file to recreate the current configuration.
12596 # Compiler output produced by configure, useful for debugging
12597 # configure, is in config.log if it exists.
12598
12599 debug=false
12600 ac_cs_recheck=false
12601 ac_cs_silent=false
12602
12603 SHELL=\${CONFIG_SHELL-$SHELL}
12604 export SHELL
12605 _ASEOF
12606 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12607 ## -------------------- ##
12608 ## M4sh Initialization. ##
12609 ## -------------------- ##
12610
12611 # Be more Bourne compatible
12612 DUALCASE=1; export DUALCASE # for MKS sh
12613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12614   emulate sh
12615   NULLCMD=:
12616   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12617   # is contrary to our usage.  Disable this feature.
12618   alias -g '${1+"$@"}'='"$@"'
12619   setopt NO_GLOB_SUBST
12620 else
12621   case `(set -o) 2>/dev/null` in #(
12622   *posix*) :
12623     set -o posix ;; #(
12624   *) :
12625      ;;
12626 esac
12627 fi
12628
12629
12630 as_nl='
12631 '
12632 export as_nl
12633 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12634 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12635 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12636 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12637 # Prefer a ksh shell builtin over an external printf program on Solaris,
12638 # but without wasting forks for bash or zsh.
12639 if test -z "$BASH_VERSION$ZSH_VERSION" \
12640     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12641   as_echo='print -r --'
12642   as_echo_n='print -rn --'
12643 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12644   as_echo='printf %s\n'
12645   as_echo_n='printf %s'
12646 else
12647   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12648     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12649     as_echo_n='/usr/ucb/echo -n'
12650   else
12651     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12652     as_echo_n_body='eval
12653       arg=$1;
12654       case $arg in #(
12655       *"$as_nl"*)
12656         expr "X$arg" : "X\\(.*\\)$as_nl";
12657         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12658       esac;
12659       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12660     '
12661     export as_echo_n_body
12662     as_echo_n='sh -c $as_echo_n_body as_echo'
12663   fi
12664   export as_echo_body
12665   as_echo='sh -c $as_echo_body as_echo'
12666 fi
12667
12668 # The user is always right.
12669 if test "${PATH_SEPARATOR+set}" != set; then
12670   PATH_SEPARATOR=:
12671   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12672     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12673       PATH_SEPARATOR=';'
12674   }
12675 fi
12676
12677
12678 # IFS
12679 # We need space, tab and new line, in precisely that order.  Quoting is
12680 # there to prevent editors from complaining about space-tab.
12681 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12682 # splitting by setting IFS to empty value.)
12683 IFS=" ""        $as_nl"
12684
12685 # Find who we are.  Look in the path if we contain no directory separator.
12686 as_myself=
12687 case $0 in #((
12688   *[\\/]* ) as_myself=$0 ;;
12689   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690 for as_dir in $PATH
12691 do
12692   IFS=$as_save_IFS
12693   test -z "$as_dir" && as_dir=.
12694     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12695   done
12696 IFS=$as_save_IFS
12697
12698      ;;
12699 esac
12700 # We did not find ourselves, most probably we were run as `sh COMMAND'
12701 # in which case we are not to be found in the path.
12702 if test "x$as_myself" = x; then
12703   as_myself=$0
12704 fi
12705 if test ! -f "$as_myself"; then
12706   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12707   exit 1
12708 fi
12709
12710 # Unset variables that we do not need and which cause bugs (e.g. in
12711 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12712 # suppresses any "Segmentation fault" message there.  '((' could
12713 # trigger a bug in pdksh 5.2.14.
12714 for as_var in BASH_ENV ENV MAIL MAILPATH
12715 do eval test x\${$as_var+set} = xset \
12716   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12717 done
12718 PS1='$ '
12719 PS2='> '
12720 PS4='+ '
12721
12722 # NLS nuisances.
12723 LC_ALL=C
12724 export LC_ALL
12725 LANGUAGE=C
12726 export LANGUAGE
12727
12728 # CDPATH.
12729 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12730
12731
12732 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12733 # ----------------------------------------
12734 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12735 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12736 # script with STATUS, using 1 if that was 0.
12737 as_fn_error ()
12738 {
12739   as_status=$1; test $as_status -eq 0 && as_status=1
12740   if test "$4"; then
12741     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12742     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12743   fi
12744   $as_echo "$as_me: error: $2" >&2
12745   as_fn_exit $as_status
12746 } # as_fn_error
12747
12748
12749 # as_fn_set_status STATUS
12750 # -----------------------
12751 # Set $? to STATUS, without forking.
12752 as_fn_set_status ()
12753 {
12754   return $1
12755 } # as_fn_set_status
12756
12757 # as_fn_exit STATUS
12758 # -----------------
12759 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12760 as_fn_exit ()
12761 {
12762   set +e
12763   as_fn_set_status $1
12764   exit $1
12765 } # as_fn_exit
12766
12767 # as_fn_unset VAR
12768 # ---------------
12769 # Portably unset VAR.
12770 as_fn_unset ()
12771 {
12772   { eval $1=; unset $1;}
12773 }
12774 as_unset=as_fn_unset
12775 # as_fn_append VAR VALUE
12776 # ----------------------
12777 # Append the text in VALUE to the end of the definition contained in VAR. Take
12778 # advantage of any shell optimizations that allow amortized linear growth over
12779 # repeated appends, instead of the typical quadratic growth present in naive
12780 # implementations.
12781 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12782   eval 'as_fn_append ()
12783   {
12784     eval $1+=\$2
12785   }'
12786 else
12787   as_fn_append ()
12788   {
12789     eval $1=\$$1\$2
12790   }
12791 fi # as_fn_append
12792
12793 # as_fn_arith ARG...
12794 # ------------------
12795 # Perform arithmetic evaluation on the ARGs, and store the result in the
12796 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12797 # must be portable across $(()) and expr.
12798 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12799   eval 'as_fn_arith ()
12800   {
12801     as_val=$(( $* ))
12802   }'
12803 else
12804   as_fn_arith ()
12805   {
12806     as_val=`expr "$@" || test $? -eq 1`
12807   }
12808 fi # as_fn_arith
12809
12810
12811 if expr a : '\(a\)' >/dev/null 2>&1 &&
12812    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12813   as_expr=expr
12814 else
12815   as_expr=false
12816 fi
12817
12818 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12819   as_basename=basename
12820 else
12821   as_basename=false
12822 fi
12823
12824 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12825   as_dirname=dirname
12826 else
12827   as_dirname=false
12828 fi
12829
12830 as_me=`$as_basename -- "$0" ||
12831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12832          X"$0" : 'X\(//\)$' \| \
12833          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12834 $as_echo X/"$0" |
12835     sed '/^.*\/\([^/][^/]*\)\/*$/{
12836             s//\1/
12837             q
12838           }
12839           /^X\/\(\/\/\)$/{
12840             s//\1/
12841             q
12842           }
12843           /^X\/\(\/\).*/{
12844             s//\1/
12845             q
12846           }
12847           s/.*/./; q'`
12848
12849 # Avoid depending upon Character Ranges.
12850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12853 as_cr_digits='0123456789'
12854 as_cr_alnum=$as_cr_Letters$as_cr_digits
12855
12856 ECHO_C= ECHO_N= ECHO_T=
12857 case `echo -n x` in #(((((
12858 -n*)
12859   case `echo 'xy\c'` in
12860   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12861   xy)  ECHO_C='\c';;
12862   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12863        ECHO_T=' ';;
12864   esac;;
12865 *)
12866   ECHO_N='-n';;
12867 esac
12868
12869 rm -f conf$$ conf$$.exe conf$$.file
12870 if test -d conf$$.dir; then
12871   rm -f conf$$.dir/conf$$.file
12872 else
12873   rm -f conf$$.dir
12874   mkdir conf$$.dir 2>/dev/null
12875 fi
12876 if (echo >conf$$.file) 2>/dev/null; then
12877   if ln -s conf$$.file conf$$ 2>/dev/null; then
12878     as_ln_s='ln -s'
12879     # ... but there are two gotchas:
12880     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12881     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12882     # In both cases, we have to default to `cp -p'.
12883     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12884       as_ln_s='cp -p'
12885   elif ln conf$$.file conf$$ 2>/dev/null; then
12886     as_ln_s=ln
12887   else
12888     as_ln_s='cp -p'
12889   fi
12890 else
12891   as_ln_s='cp -p'
12892 fi
12893 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12894 rmdir conf$$.dir 2>/dev/null
12895
12896
12897 # as_fn_mkdir_p
12898 # -------------
12899 # Create "$as_dir" as a directory, including parents if necessary.
12900 as_fn_mkdir_p ()
12901 {
12902
12903   case $as_dir in #(
12904   -*) as_dir=./$as_dir;;
12905   esac
12906   test -d "$as_dir" || eval $as_mkdir_p || {
12907     as_dirs=
12908     while :; do
12909       case $as_dir in #(
12910       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12911       *) as_qdir=$as_dir;;
12912       esac
12913       as_dirs="'$as_qdir' $as_dirs"
12914       as_dir=`$as_dirname -- "$as_dir" ||
12915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12916          X"$as_dir" : 'X\(//\)[^/]' \| \
12917          X"$as_dir" : 'X\(//\)$' \| \
12918          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12919 $as_echo X"$as_dir" |
12920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12921             s//\1/
12922             q
12923           }
12924           /^X\(\/\/\)[^/].*/{
12925             s//\1/
12926             q
12927           }
12928           /^X\(\/\/\)$/{
12929             s//\1/
12930             q
12931           }
12932           /^X\(\/\).*/{
12933             s//\1/
12934             q
12935           }
12936           s/.*/./; q'`
12937       test -d "$as_dir" && break
12938     done
12939     test -z "$as_dirs" || eval "mkdir $as_dirs"
12940   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12941
12942
12943 } # as_fn_mkdir_p
12944 if mkdir -p . 2>/dev/null; then
12945   as_mkdir_p='mkdir -p "$as_dir"'
12946 else
12947   test -d ./-p && rmdir ./-p
12948   as_mkdir_p=false
12949 fi
12950
12951 if test -x / >/dev/null 2>&1; then
12952   as_test_x='test -x'
12953 else
12954   if ls -dL / >/dev/null 2>&1; then
12955     as_ls_L_option=L
12956   else
12957     as_ls_L_option=
12958   fi
12959   as_test_x='
12960     eval sh -c '\''
12961       if test -d "$1"; then
12962         test -d "$1/.";
12963       else
12964         case $1 in #(
12965         -*)set "./$1";;
12966         esac;
12967         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12968         ???[sx]*):;;*)false;;esac;fi
12969     '\'' sh
12970   '
12971 fi
12972 as_executable_p=$as_test_x
12973
12974 # Sed expression to map a string onto a valid CPP name.
12975 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12976
12977 # Sed expression to map a string onto a valid variable name.
12978 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12979
12980
12981 exec 6>&1
12982 ## ----------------------------------- ##
12983 ## Main body of $CONFIG_STATUS script. ##
12984 ## ----------------------------------- ##
12985 _ASEOF
12986 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12987
12988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12989 # Save the log message, to keep $0 and so on meaningful, and to
12990 # report actual input values of CONFIG_FILES etc. instead of their
12991 # values after options handling.
12992 ac_log="
12993 This file was extended by gacela $as_me 0.5, which was
12994 generated by GNU Autoconf 2.68.  Invocation command line was
12995
12996   CONFIG_FILES    = $CONFIG_FILES
12997   CONFIG_HEADERS  = $CONFIG_HEADERS
12998   CONFIG_LINKS    = $CONFIG_LINKS
12999   CONFIG_COMMANDS = $CONFIG_COMMANDS
13000   $ $0 $@
13001
13002 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13003 "
13004
13005 _ACEOF
13006
13007 case $ac_config_files in *"
13008 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13009 esac
13010
13011 case $ac_config_headers in *"
13012 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13013 esac
13014
13015
13016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13017 # Files that config.status was made for.
13018 config_files="$ac_config_files"
13019 config_headers="$ac_config_headers"
13020 config_commands="$ac_config_commands"
13021
13022 _ACEOF
13023
13024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13025 ac_cs_usage="\
13026 \`$as_me' instantiates files and other configuration actions
13027 from templates according to the current configuration.  Unless the files
13028 and actions are specified as TAGs, all are instantiated by default.
13029
13030 Usage: $0 [OPTION]... [TAG]...
13031
13032   -h, --help       print this help, then exit
13033   -V, --version    print version number and configuration settings, then exit
13034       --config     print configuration, then exit
13035   -q, --quiet, --silent
13036                    do not print progress messages
13037   -d, --debug      don't remove temporary files
13038       --recheck    update $as_me by reconfiguring in the same conditions
13039       --file=FILE[:TEMPLATE]
13040                    instantiate the configuration file FILE
13041       --header=FILE[:TEMPLATE]
13042                    instantiate the configuration header FILE
13043
13044 Configuration files:
13045 $config_files
13046
13047 Configuration headers:
13048 $config_headers
13049
13050 Configuration commands:
13051 $config_commands
13052
13053 Report bugs to <jsf@jsancho.org>."
13054
13055 _ACEOF
13056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13057 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13058 ac_cs_version="\\
13059 gacela config.status 0.5
13060 configured by $0, generated by GNU Autoconf 2.68,
13061   with options \\"\$ac_cs_config\\"
13062
13063 Copyright (C) 2010 Free Software Foundation, Inc.
13064 This config.status script is free software; the Free Software Foundation
13065 gives unlimited permission to copy, distribute and modify it."
13066
13067 ac_pwd='$ac_pwd'
13068 srcdir='$srcdir'
13069 INSTALL='$INSTALL'
13070 MKDIR_P='$MKDIR_P'
13071 AWK='$AWK'
13072 test -n "\$AWK" || AWK=awk
13073 _ACEOF
13074
13075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13076 # The default lists apply if the user does not specify any file.
13077 ac_need_defaults=:
13078 while test $# != 0
13079 do
13080   case $1 in
13081   --*=?*)
13082     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13083     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13084     ac_shift=:
13085     ;;
13086   --*=)
13087     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13088     ac_optarg=
13089     ac_shift=:
13090     ;;
13091   *)
13092     ac_option=$1
13093     ac_optarg=$2
13094     ac_shift=shift
13095     ;;
13096   esac
13097
13098   case $ac_option in
13099   # Handling of the options.
13100   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13101     ac_cs_recheck=: ;;
13102   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13103     $as_echo "$ac_cs_version"; exit ;;
13104   --config | --confi | --conf | --con | --co | --c )
13105     $as_echo "$ac_cs_config"; exit ;;
13106   --debug | --debu | --deb | --de | --d | -d )
13107     debug=: ;;
13108   --file | --fil | --fi | --f )
13109     $ac_shift
13110     case $ac_optarg in
13111     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13112     '') as_fn_error $? "missing file argument" ;;
13113     esac
13114     as_fn_append CONFIG_FILES " '$ac_optarg'"
13115     ac_need_defaults=false;;
13116   --header | --heade | --head | --hea )
13117     $ac_shift
13118     case $ac_optarg in
13119     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13120     esac
13121     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13122     ac_need_defaults=false;;
13123   --he | --h)
13124     # Conflict between --help and --header
13125     as_fn_error $? "ambiguous option: \`$1'
13126 Try \`$0 --help' for more information.";;
13127   --help | --hel | -h )
13128     $as_echo "$ac_cs_usage"; exit ;;
13129   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13130   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13131     ac_cs_silent=: ;;
13132
13133   # This is an error.
13134   -*) as_fn_error $? "unrecognized option: \`$1'
13135 Try \`$0 --help' for more information." ;;
13136
13137   *) as_fn_append ac_config_targets " $1"
13138      ac_need_defaults=false ;;
13139
13140   esac
13141   shift
13142 done
13143
13144 ac_configure_extra_args=
13145
13146 if $ac_cs_silent; then
13147   exec 6>/dev/null
13148   ac_configure_extra_args="$ac_configure_extra_args --silent"
13149 fi
13150
13151 _ACEOF
13152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13153 if \$ac_cs_recheck; then
13154   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13155   shift
13156   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13157   CONFIG_SHELL='$SHELL'
13158   export CONFIG_SHELL
13159   exec "\$@"
13160 fi
13161
13162 _ACEOF
13163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13164 exec 5>>config.log
13165 {
13166   echo
13167   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13168 ## Running $as_me. ##
13169 _ASBOX
13170   $as_echo "$ac_log"
13171 } >&5
13172
13173 _ACEOF
13174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13175 #
13176 # INIT-COMMANDS
13177 #
13178 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13179
13180
13181 # The HP-UX ksh and POSIX shell print the target directory to stdout
13182 # if CDPATH is set.
13183 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13184
13185 sed_quote_subst='$sed_quote_subst'
13186 double_quote_subst='$double_quote_subst'
13187 delay_variable_subst='$delay_variable_subst'
13188 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13189 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13190 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13191 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13192 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13193 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13194 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13195 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13196 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13197 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13198 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13199 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13200 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13201 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13202 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13203 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13204 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13205 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13206 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13207 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13208 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13209 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13210 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13211 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13212 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13213 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13214 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13215 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13216 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13217 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13218 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13219 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13220 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13221 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13222 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13223 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13224 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13225 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13226 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13227 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13228 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13229 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13230 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13231 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13232 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13233 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13234 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13235 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13236 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13237 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13238 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13239 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13240 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13241 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13242 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13243 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13244 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"`'
13245 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13246 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13247 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13248 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13249 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13250 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13251 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13252 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13253 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13254 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13255 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13256 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13257 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13258 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13259 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13260 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13261 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13262 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13263 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13264 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13265 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13266 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13267 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13268 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13269 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13270 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13271 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13272 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13273 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13274 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13275 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13276 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13277 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13278 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13279 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13280 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13281 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13282 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13283 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13284 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13285 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13286 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13287 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13288 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13289 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13290 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13291 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13292 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13293 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13294 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13295 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13296 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13297 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13298 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13299 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13300 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13301 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13302 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13303 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13304 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13305 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13306 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13307 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13308 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13309 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13310 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13311 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13312 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13313 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13314 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13315 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13316 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13317 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13318
13319 LTCC='$LTCC'
13320 LTCFLAGS='$LTCFLAGS'
13321 compiler='$compiler_DEFAULT'
13322
13323 # A function that is used when there is no print builtin or printf.
13324 func_fallback_echo ()
13325 {
13326   eval 'cat <<_LTECHO_EOF
13327 \$1
13328 _LTECHO_EOF'
13329 }
13330
13331 # Quote evaled strings.
13332 for var in SHELL \
13333 ECHO \
13334 PATH_SEPARATOR \
13335 SED \
13336 GREP \
13337 EGREP \
13338 FGREP \
13339 LD \
13340 NM \
13341 LN_S \
13342 lt_SP2NL \
13343 lt_NL2SP \
13344 reload_flag \
13345 OBJDUMP \
13346 deplibs_check_method \
13347 file_magic_cmd \
13348 file_magic_glob \
13349 want_nocaseglob \
13350 DLLTOOL \
13351 sharedlib_from_linklib_cmd \
13352 AR \
13353 AR_FLAGS \
13354 archiver_list_spec \
13355 STRIP \
13356 RANLIB \
13357 CC \
13358 CFLAGS \
13359 compiler \
13360 lt_cv_sys_global_symbol_pipe \
13361 lt_cv_sys_global_symbol_to_cdecl \
13362 lt_cv_sys_global_symbol_to_c_name_address \
13363 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13364 nm_file_list_spec \
13365 lt_prog_compiler_no_builtin_flag \
13366 lt_prog_compiler_pic \
13367 lt_prog_compiler_wl \
13368 lt_prog_compiler_static \
13369 lt_cv_prog_compiler_c_o \
13370 need_locks \
13371 MANIFEST_TOOL \
13372 DSYMUTIL \
13373 NMEDIT \
13374 LIPO \
13375 OTOOL \
13376 OTOOL64 \
13377 shrext_cmds \
13378 export_dynamic_flag_spec \
13379 whole_archive_flag_spec \
13380 compiler_needs_object \
13381 with_gnu_ld \
13382 allow_undefined_flag \
13383 no_undefined_flag \
13384 hardcode_libdir_flag_spec \
13385 hardcode_libdir_separator \
13386 exclude_expsyms \
13387 include_expsyms \
13388 file_list_spec \
13389 variables_saved_for_relink \
13390 libname_spec \
13391 library_names_spec \
13392 soname_spec \
13393 install_override_mode \
13394 finish_eval \
13395 old_striplib \
13396 striplib; do
13397     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13398     *[\\\\\\\`\\"\\\$]*)
13399       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13400       ;;
13401     *)
13402       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13403       ;;
13404     esac
13405 done
13406
13407 # Double-quote double-evaled strings.
13408 for var in reload_cmds \
13409 old_postinstall_cmds \
13410 old_postuninstall_cmds \
13411 old_archive_cmds \
13412 extract_expsyms_cmds \
13413 old_archive_from_new_cmds \
13414 old_archive_from_expsyms_cmds \
13415 archive_cmds \
13416 archive_expsym_cmds \
13417 module_cmds \
13418 module_expsym_cmds \
13419 export_symbols_cmds \
13420 prelink_cmds \
13421 postlink_cmds \
13422 postinstall_cmds \
13423 postuninstall_cmds \
13424 finish_cmds \
13425 sys_lib_search_path_spec \
13426 sys_lib_dlsearch_path_spec; do
13427     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13428     *[\\\\\\\`\\"\\\$]*)
13429       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13430       ;;
13431     *)
13432       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13433       ;;
13434     esac
13435 done
13436
13437 ac_aux_dir='$ac_aux_dir'
13438 xsi_shell='$xsi_shell'
13439 lt_shell_append='$lt_shell_append'
13440
13441 # See if we are running on zsh, and set the options which allow our
13442 # commands through without removal of \ escapes INIT.
13443 if test -n "\${ZSH_VERSION+set}" ; then
13444    setopt NO_GLOB_SUBST
13445 fi
13446
13447
13448     PACKAGE='$PACKAGE'
13449     VERSION='$VERSION'
13450     TIMESTAMP='$TIMESTAMP'
13451     RM='$RM'
13452     ofile='$ofile'
13453
13454
13455
13456
13457 _ACEOF
13458
13459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13460
13461 # Handling of arguments.
13462 for ac_config_target in $ac_config_targets
13463 do
13464   case $ac_config_target in
13465     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13466     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13467     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13468     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13469     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13470
13471   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13472   esac
13473 done
13474
13475
13476 # If the user did not use the arguments to specify the items to instantiate,
13477 # then the envvar interface is used.  Set only those that are not.
13478 # We use the long form for the default assignment because of an extremely
13479 # bizarre bug on SunOS 4.1.3.
13480 if $ac_need_defaults; then
13481   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13482   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13483   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13484 fi
13485
13486 # Have a temporary directory for convenience.  Make it in the build tree
13487 # simply because there is no reason against having it here, and in addition,
13488 # creating and moving files from /tmp can sometimes cause problems.
13489 # Hook for its removal unless debugging.
13490 # Note that there is a small window in which the directory will not be cleaned:
13491 # after its creation but before its name has been assigned to `$tmp'.
13492 $debug ||
13493 {
13494   tmp= ac_tmp=
13495   trap 'exit_status=$?
13496   : "${ac_tmp:=$tmp}"
13497   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13498 ' 0
13499   trap 'as_fn_exit 1' 1 2 13 15
13500 }
13501 # Create a (secure) tmp directory for tmp files.
13502
13503 {
13504   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13505   test -d "$tmp"
13506 }  ||
13507 {
13508   tmp=./conf$$-$RANDOM
13509   (umask 077 && mkdir "$tmp")
13510 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13511 ac_tmp=$tmp
13512
13513 # Set up the scripts for CONFIG_FILES section.
13514 # No need to generate them if there are no CONFIG_FILES.
13515 # This happens for instance with `./config.status config.h'.
13516 if test -n "$CONFIG_FILES"; then
13517
13518
13519 ac_cr=`echo X | tr X '\015'`
13520 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13521 # But we know of no other shell where ac_cr would be empty at this
13522 # point, so we can use a bashism as a fallback.
13523 if test "x$ac_cr" = x; then
13524   eval ac_cr=\$\'\\r\'
13525 fi
13526 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13527 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13528   ac_cs_awk_cr='\\r'
13529 else
13530   ac_cs_awk_cr=$ac_cr
13531 fi
13532
13533 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13534 _ACEOF
13535
13536
13537 {
13538   echo "cat >conf$$subs.awk <<_ACEOF" &&
13539   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13540   echo "_ACEOF"
13541 } >conf$$subs.sh ||
13542   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13543 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13544 ac_delim='%!_!# '
13545 for ac_last_try in false false false false false :; do
13546   . ./conf$$subs.sh ||
13547     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13548
13549   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13550   if test $ac_delim_n = $ac_delim_num; then
13551     break
13552   elif $ac_last_try; then
13553     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13554   else
13555     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13556   fi
13557 done
13558 rm -f conf$$subs.sh
13559
13560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13561 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13562 _ACEOF
13563 sed -n '
13564 h
13565 s/^/S["/; s/!.*/"]=/
13566 p
13567 g
13568 s/^[^!]*!//
13569 :repl
13570 t repl
13571 s/'"$ac_delim"'$//
13572 t delim
13573 :nl
13574 h
13575 s/\(.\{148\}\)..*/\1/
13576 t more1
13577 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13578 p
13579 n
13580 b repl
13581 :more1
13582 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13583 p
13584 g
13585 s/.\{148\}//
13586 t nl
13587 :delim
13588 h
13589 s/\(.\{148\}\)..*/\1/
13590 t more2
13591 s/["\\]/\\&/g; s/^/"/; s/$/"/
13592 p
13593 b
13594 :more2
13595 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13596 p
13597 g
13598 s/.\{148\}//
13599 t delim
13600 ' <conf$$subs.awk | sed '
13601 /^[^""]/{
13602   N
13603   s/\n//
13604 }
13605 ' >>$CONFIG_STATUS || ac_write_fail=1
13606 rm -f conf$$subs.awk
13607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13608 _ACAWK
13609 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13610   for (key in S) S_is_set[key] = 1
13611   FS = "\a"
13612
13613 }
13614 {
13615   line = $ 0
13616   nfields = split(line, field, "@")
13617   substed = 0
13618   len = length(field[1])
13619   for (i = 2; i < nfields; i++) {
13620     key = field[i]
13621     keylen = length(key)
13622     if (S_is_set[key]) {
13623       value = S[key]
13624       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13625       len += length(value) + length(field[++i])
13626       substed = 1
13627     } else
13628       len += 1 + keylen
13629   }
13630
13631   print line
13632 }
13633
13634 _ACAWK
13635 _ACEOF
13636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13637 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13638   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13639 else
13640   cat
13641 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13642   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13643 _ACEOF
13644
13645 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13646 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13647 # trailing colons and then remove the whole line if VPATH becomes empty
13648 # (actually we leave an empty line to preserve line numbers).
13649 if test "x$srcdir" = x.; then
13650   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13651 h
13652 s///
13653 s/^/:/
13654 s/[      ]*$/:/
13655 s/:\$(srcdir):/:/g
13656 s/:\${srcdir}:/:/g
13657 s/:@srcdir@:/:/g
13658 s/^:*//
13659 s/:*$//
13660 x
13661 s/\(=[   ]*\).*/\1/
13662 G
13663 s/\n//
13664 s/^[^=]*=[       ]*$//
13665 }'
13666 fi
13667
13668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13669 fi # test -n "$CONFIG_FILES"
13670
13671 # Set up the scripts for CONFIG_HEADERS section.
13672 # No need to generate them if there are no CONFIG_HEADERS.
13673 # This happens for instance with `./config.status Makefile'.
13674 if test -n "$CONFIG_HEADERS"; then
13675 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13676 BEGIN {
13677 _ACEOF
13678
13679 # Transform confdefs.h into an awk script `defines.awk', embedded as
13680 # here-document in config.status, that substitutes the proper values into
13681 # config.h.in to produce config.h.
13682
13683 # Create a delimiter string that does not exist in confdefs.h, to ease
13684 # handling of long lines.
13685 ac_delim='%!_!# '
13686 for ac_last_try in false false :; do
13687   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13688   if test -z "$ac_tt"; then
13689     break
13690   elif $ac_last_try; then
13691     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13692   else
13693     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13694   fi
13695 done
13696
13697 # For the awk script, D is an array of macro values keyed by name,
13698 # likewise P contains macro parameters if any.  Preserve backslash
13699 # newline sequences.
13700
13701 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13702 sed -n '
13703 s/.\{148\}/&'"$ac_delim"'/g
13704 t rset
13705 :rset
13706 s/^[     ]*#[    ]*define[       ][      ]*/ /
13707 t def
13708 d
13709 :def
13710 s/\\$//
13711 t bsnl
13712 s/["\\]/\\&/g
13713 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13714 D["\1"]=" \3"/p
13715 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13716 d
13717 :bsnl
13718 s/["\\]/\\&/g
13719 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13720 D["\1"]=" \3\\\\\\n"\\/p
13721 t cont
13722 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13723 t cont
13724 d
13725 :cont
13726 n
13727 s/.\{148\}/&'"$ac_delim"'/g
13728 t clear
13729 :clear
13730 s/\\$//
13731 t bsnlc
13732 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13733 d
13734 :bsnlc
13735 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13736 b cont
13737 ' <confdefs.h | sed '
13738 s/'"$ac_delim"'/"\\\
13739 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13740
13741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13742   for (key in D) D_is_set[key] = 1
13743   FS = "\a"
13744 }
13745 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13746   line = \$ 0
13747   split(line, arg, " ")
13748   if (arg[1] == "#") {
13749     defundef = arg[2]
13750     mac1 = arg[3]
13751   } else {
13752     defundef = substr(arg[1], 2)
13753     mac1 = arg[2]
13754   }
13755   split(mac1, mac2, "(") #)
13756   macro = mac2[1]
13757   prefix = substr(line, 1, index(line, defundef) - 1)
13758   if (D_is_set[macro]) {
13759     # Preserve the white space surrounding the "#".
13760     print prefix "define", macro P[macro] D[macro]
13761     next
13762   } else {
13763     # Replace #undef with comments.  This is necessary, for example,
13764     # in the case of _POSIX_SOURCE, which is predefined and required
13765     # on some systems where configure will not decide to define it.
13766     if (defundef == "undef") {
13767       print "/*", prefix defundef, macro, "*/"
13768       next
13769     }
13770   }
13771 }
13772 { print }
13773 _ACAWK
13774 _ACEOF
13775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13776   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13777 fi # test -n "$CONFIG_HEADERS"
13778
13779
13780 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13781 shift
13782 for ac_tag
13783 do
13784   case $ac_tag in
13785   :[FHLC]) ac_mode=$ac_tag; continue;;
13786   esac
13787   case $ac_mode$ac_tag in
13788   :[FHL]*:*);;
13789   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13790   :[FH]-) ac_tag=-:-;;
13791   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13792   esac
13793   ac_save_IFS=$IFS
13794   IFS=:
13795   set x $ac_tag
13796   IFS=$ac_save_IFS
13797   shift
13798   ac_file=$1
13799   shift
13800
13801   case $ac_mode in
13802   :L) ac_source=$1;;
13803   :[FH])
13804     ac_file_inputs=
13805     for ac_f
13806     do
13807       case $ac_f in
13808       -) ac_f="$ac_tmp/stdin";;
13809       *) # Look for the file first in the build tree, then in the source tree
13810          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13811          # because $ac_f cannot contain `:'.
13812          test -f "$ac_f" ||
13813            case $ac_f in
13814            [\\/$]*) false;;
13815            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13816            esac ||
13817            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13818       esac
13819       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13820       as_fn_append ac_file_inputs " '$ac_f'"
13821     done
13822
13823     # Let's still pretend it is `configure' which instantiates (i.e., don't
13824     # use $as_me), people would be surprised to read:
13825     #    /* config.h.  Generated by config.status.  */
13826     configure_input='Generated from '`
13827           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13828         `' by configure.'
13829     if test x"$ac_file" != x-; then
13830       configure_input="$ac_file.  $configure_input"
13831       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13832 $as_echo "$as_me: creating $ac_file" >&6;}
13833     fi
13834     # Neutralize special characters interpreted by sed in replacement strings.
13835     case $configure_input in #(
13836     *\&* | *\|* | *\\* )
13837        ac_sed_conf_input=`$as_echo "$configure_input" |
13838        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13839     *) ac_sed_conf_input=$configure_input;;
13840     esac
13841
13842     case $ac_tag in
13843     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13844       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13845     esac
13846     ;;
13847   esac
13848
13849   ac_dir=`$as_dirname -- "$ac_file" ||
13850 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13851          X"$ac_file" : 'X\(//\)[^/]' \| \
13852          X"$ac_file" : 'X\(//\)$' \| \
13853          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13854 $as_echo X"$ac_file" |
13855     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13856             s//\1/
13857             q
13858           }
13859           /^X\(\/\/\)[^/].*/{
13860             s//\1/
13861             q
13862           }
13863           /^X\(\/\/\)$/{
13864             s//\1/
13865             q
13866           }
13867           /^X\(\/\).*/{
13868             s//\1/
13869             q
13870           }
13871           s/.*/./; q'`
13872   as_dir="$ac_dir"; as_fn_mkdir_p
13873   ac_builddir=.
13874
13875 case "$ac_dir" in
13876 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13877 *)
13878   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13879   # A ".." for each directory in $ac_dir_suffix.
13880   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13881   case $ac_top_builddir_sub in
13882   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13883   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13884   esac ;;
13885 esac
13886 ac_abs_top_builddir=$ac_pwd
13887 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13888 # for backward compatibility:
13889 ac_top_builddir=$ac_top_build_prefix
13890
13891 case $srcdir in
13892   .)  # We are building in place.
13893     ac_srcdir=.
13894     ac_top_srcdir=$ac_top_builddir_sub
13895     ac_abs_top_srcdir=$ac_pwd ;;
13896   [\\/]* | ?:[\\/]* )  # Absolute name.
13897     ac_srcdir=$srcdir$ac_dir_suffix;
13898     ac_top_srcdir=$srcdir
13899     ac_abs_top_srcdir=$srcdir ;;
13900   *) # Relative name.
13901     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13902     ac_top_srcdir=$ac_top_build_prefix$srcdir
13903     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13904 esac
13905 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13906
13907
13908   case $ac_mode in
13909   :F)
13910   #
13911   # CONFIG_FILE
13912   #
13913
13914   case $INSTALL in
13915   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13916   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13917   esac
13918   ac_MKDIR_P=$MKDIR_P
13919   case $MKDIR_P in
13920   [\\/$]* | ?:[\\/]* ) ;;
13921   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13922   esac
13923 _ACEOF
13924
13925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13926 # If the template does not know about datarootdir, expand it.
13927 # FIXME: This hack should be removed a few years after 2.60.
13928 ac_datarootdir_hack=; ac_datarootdir_seen=
13929 ac_sed_dataroot='
13930 /datarootdir/ {
13931   p
13932   q
13933 }
13934 /@datadir@/p
13935 /@docdir@/p
13936 /@infodir@/p
13937 /@localedir@/p
13938 /@mandir@/p'
13939 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13940 *datarootdir*) ac_datarootdir_seen=yes;;
13941 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13942   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13943 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13944 _ACEOF
13945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13946   ac_datarootdir_hack='
13947   s&@datadir@&$datadir&g
13948   s&@docdir@&$docdir&g
13949   s&@infodir@&$infodir&g
13950   s&@localedir@&$localedir&g
13951   s&@mandir@&$mandir&g
13952   s&\\\${datarootdir}&$datarootdir&g' ;;
13953 esac
13954 _ACEOF
13955
13956 # Neutralize VPATH when `$srcdir' = `.'.
13957 # Shell code in configure.ac might set extrasub.
13958 # FIXME: do we really want to maintain this feature?
13959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13960 ac_sed_extra="$ac_vpsub
13961 $extrasub
13962 _ACEOF
13963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13964 :t
13965 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13966 s|@configure_input@|$ac_sed_conf_input|;t t
13967 s&@top_builddir@&$ac_top_builddir_sub&;t t
13968 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13969 s&@srcdir@&$ac_srcdir&;t t
13970 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13971 s&@top_srcdir@&$ac_top_srcdir&;t t
13972 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13973 s&@builddir@&$ac_builddir&;t t
13974 s&@abs_builddir@&$ac_abs_builddir&;t t
13975 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13976 s&@INSTALL@&$ac_INSTALL&;t t
13977 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13978 $ac_datarootdir_hack
13979 "
13980 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13981   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13982
13983 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13984   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13985   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13986       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13987   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13988 which seems to be undefined.  Please make sure it is defined" >&5
13989 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13990 which seems to be undefined.  Please make sure it is defined" >&2;}
13991
13992   rm -f "$ac_tmp/stdin"
13993   case $ac_file in
13994   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13995   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13996   esac \
13997   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13998  ;;
13999   :H)
14000   #
14001   # CONFIG_HEADER
14002   #
14003   if test x"$ac_file" != x-; then
14004     {
14005       $as_echo "/* $configure_input  */" \
14006       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14007     } >"$ac_tmp/config.h" \
14008       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14009     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14010       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14011 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14012     else
14013       rm -f "$ac_file"
14014       mv "$ac_tmp/config.h" "$ac_file" \
14015         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14016     fi
14017   else
14018     $as_echo "/* $configure_input  */" \
14019       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14020       || as_fn_error $? "could not create -" "$LINENO" 5
14021   fi
14022 # Compute "$ac_file"'s index in $config_headers.
14023 _am_arg="$ac_file"
14024 _am_stamp_count=1
14025 for _am_header in $config_headers :; do
14026   case $_am_header in
14027     $_am_arg | $_am_arg:* )
14028       break ;;
14029     * )
14030       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14031   esac
14032 done
14033 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14034 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14035          X"$_am_arg" : 'X\(//\)[^/]' \| \
14036          X"$_am_arg" : 'X\(//\)$' \| \
14037          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14038 $as_echo X"$_am_arg" |
14039     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14040             s//\1/
14041             q
14042           }
14043           /^X\(\/\/\)[^/].*/{
14044             s//\1/
14045             q
14046           }
14047           /^X\(\/\/\)$/{
14048             s//\1/
14049             q
14050           }
14051           /^X\(\/\).*/{
14052             s//\1/
14053             q
14054           }
14055           s/.*/./; q'`/stamp-h$_am_stamp_count
14056  ;;
14057
14058   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14059 $as_echo "$as_me: executing $ac_file commands" >&6;}
14060  ;;
14061   esac
14062
14063
14064   case $ac_file$ac_mode in
14065     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14066   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14067   # are listed without --file.  Let's play safe and only enable the eval
14068   # if we detect the quoting.
14069   case $CONFIG_FILES in
14070   *\'*) eval set x "$CONFIG_FILES" ;;
14071   *)   set x $CONFIG_FILES ;;
14072   esac
14073   shift
14074   for mf
14075   do
14076     # Strip MF so we end up with the name of the file.
14077     mf=`echo "$mf" | sed -e 's/:.*$//'`
14078     # Check whether this is an Automake generated Makefile or not.
14079     # We used to match only the files named `Makefile.in', but
14080     # some people rename them; so instead we look at the file content.
14081     # Grep'ing the first line is not enough: some people post-process
14082     # each Makefile.in and add a new line on top of each file to say so.
14083     # Grep'ing the whole file is not good either: AIX grep has a line
14084     # limit of 2048, but all sed's we know have understand at least 4000.
14085     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14086       dirpart=`$as_dirname -- "$mf" ||
14087 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14088          X"$mf" : 'X\(//\)[^/]' \| \
14089          X"$mf" : 'X\(//\)$' \| \
14090          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14091 $as_echo X"$mf" |
14092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14093             s//\1/
14094             q
14095           }
14096           /^X\(\/\/\)[^/].*/{
14097             s//\1/
14098             q
14099           }
14100           /^X\(\/\/\)$/{
14101             s//\1/
14102             q
14103           }
14104           /^X\(\/\).*/{
14105             s//\1/
14106             q
14107           }
14108           s/.*/./; q'`
14109     else
14110       continue
14111     fi
14112     # Extract the definition of DEPDIR, am__include, and am__quote
14113     # from the Makefile without running `make'.
14114     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14115     test -z "$DEPDIR" && continue
14116     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14117     test -z "am__include" && continue
14118     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14119     # When using ansi2knr, U may be empty or an underscore; expand it
14120     U=`sed -n 's/^U = //p' < "$mf"`
14121     # Find all dependency output files, they are included files with
14122     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14123     # simplest approach to changing $(DEPDIR) to its actual value in the
14124     # expansion.
14125     for file in `sed -n "
14126       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14127          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14128       # Make sure the directory exists.
14129       test -f "$dirpart/$file" && continue
14130       fdir=`$as_dirname -- "$file" ||
14131 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14132          X"$file" : 'X\(//\)[^/]' \| \
14133          X"$file" : 'X\(//\)$' \| \
14134          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14135 $as_echo X"$file" |
14136     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14137             s//\1/
14138             q
14139           }
14140           /^X\(\/\/\)[^/].*/{
14141             s//\1/
14142             q
14143           }
14144           /^X\(\/\/\)$/{
14145             s//\1/
14146             q
14147           }
14148           /^X\(\/\).*/{
14149             s//\1/
14150             q
14151           }
14152           s/.*/./; q'`
14153       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14154       # echo "creating $dirpart/$file"
14155       echo '# dummy' > "$dirpart/$file"
14156     done
14157   done
14158 }
14159  ;;
14160     "libtool":C)
14161
14162     # See if we are running on zsh, and set the options which allow our
14163     # commands through without removal of \ escapes.
14164     if test -n "${ZSH_VERSION+set}" ; then
14165       setopt NO_GLOB_SUBST
14166     fi
14167
14168     cfgfile="${ofile}T"
14169     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14170     $RM "$cfgfile"
14171
14172     cat <<_LT_EOF >> "$cfgfile"
14173 #! $SHELL
14174
14175 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14176 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14177 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14178 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14179 #
14180 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14181 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14182 #                 Foundation, Inc.
14183 #   Written by Gordon Matzigkeit, 1996
14184 #
14185 #   This file is part of GNU Libtool.
14186 #
14187 # GNU Libtool is free software; you can redistribute it and/or
14188 # modify it under the terms of the GNU General Public License as
14189 # published by the Free Software Foundation; either version 2 of
14190 # the License, or (at your option) any later version.
14191 #
14192 # As a special exception to the GNU General Public License,
14193 # if you distribute this file as part of a program or library that
14194 # is built using GNU Libtool, you may include this file under the
14195 # same distribution terms that you use for the rest of that program.
14196 #
14197 # GNU Libtool is distributed in the hope that it will be useful,
14198 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14199 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14200 # GNU General Public License for more details.
14201 #
14202 # You should have received a copy of the GNU General Public License
14203 # along with GNU Libtool; see the file COPYING.  If not, a copy
14204 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14205 # obtained by writing to the Free Software Foundation, Inc.,
14206 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14207
14208
14209 # The names of the tagged configurations supported by this script.
14210 available_tags=""
14211
14212 # ### BEGIN LIBTOOL CONFIG
14213
14214 # Which release of libtool.m4 was used?
14215 macro_version=$macro_version
14216 macro_revision=$macro_revision
14217
14218 # Whether or not to build shared libraries.
14219 build_libtool_libs=$enable_shared
14220
14221 # Whether or not to build static libraries.
14222 build_old_libs=$enable_static
14223
14224 # What type of objects to build.
14225 pic_mode=$pic_mode
14226
14227 # Whether or not to optimize for fast installation.
14228 fast_install=$enable_fast_install
14229
14230 # Shell to use when invoking shell scripts.
14231 SHELL=$lt_SHELL
14232
14233 # An echo program that protects backslashes.
14234 ECHO=$lt_ECHO
14235
14236 # The PATH separator for the build system.
14237 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14238
14239 # The host system.
14240 host_alias=$host_alias
14241 host=$host
14242 host_os=$host_os
14243
14244 # The build system.
14245 build_alias=$build_alias
14246 build=$build
14247 build_os=$build_os
14248
14249 # A sed program that does not truncate output.
14250 SED=$lt_SED
14251
14252 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14253 Xsed="\$SED -e 1s/^X//"
14254
14255 # A grep program that handles long lines.
14256 GREP=$lt_GREP
14257
14258 # An ERE matcher.
14259 EGREP=$lt_EGREP
14260
14261 # A literal string matcher.
14262 FGREP=$lt_FGREP
14263
14264 # A BSD- or MS-compatible name lister.
14265 NM=$lt_NM
14266
14267 # Whether we need soft or hard links.
14268 LN_S=$lt_LN_S
14269
14270 # What is the maximum length of a command?
14271 max_cmd_len=$max_cmd_len
14272
14273 # Object file suffix (normally "o").
14274 objext=$ac_objext
14275
14276 # Executable file suffix (normally "").
14277 exeext=$exeext
14278
14279 # whether the shell understands "unset".
14280 lt_unset=$lt_unset
14281
14282 # turn spaces into newlines.
14283 SP2NL=$lt_lt_SP2NL
14284
14285 # turn newlines into spaces.
14286 NL2SP=$lt_lt_NL2SP
14287
14288 # convert \$build file names to \$host format.
14289 to_host_file_cmd=$lt_cv_to_host_file_cmd
14290
14291 # convert \$build files to toolchain format.
14292 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14293
14294 # An object symbol dumper.
14295 OBJDUMP=$lt_OBJDUMP
14296
14297 # Method to check whether dependent libraries are shared objects.
14298 deplibs_check_method=$lt_deplibs_check_method
14299
14300 # Command to use when deplibs_check_method = "file_magic".
14301 file_magic_cmd=$lt_file_magic_cmd
14302
14303 # How to find potential files when deplibs_check_method = "file_magic".
14304 file_magic_glob=$lt_file_magic_glob
14305
14306 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14307 want_nocaseglob=$lt_want_nocaseglob
14308
14309 # DLL creation program.
14310 DLLTOOL=$lt_DLLTOOL
14311
14312 # Command to associate shared and link libraries.
14313 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14314
14315 # The archiver.
14316 AR=$lt_AR
14317
14318 # Flags to create an archive.
14319 AR_FLAGS=$lt_AR_FLAGS
14320
14321 # How to feed a file listing to the archiver.
14322 archiver_list_spec=$lt_archiver_list_spec
14323
14324 # A symbol stripping program.
14325 STRIP=$lt_STRIP
14326
14327 # Commands used to install an old-style archive.
14328 RANLIB=$lt_RANLIB
14329 old_postinstall_cmds=$lt_old_postinstall_cmds
14330 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14331
14332 # Whether to use a lock for old archive extraction.
14333 lock_old_archive_extraction=$lock_old_archive_extraction
14334
14335 # A C compiler.
14336 LTCC=$lt_CC
14337
14338 # LTCC compiler flags.
14339 LTCFLAGS=$lt_CFLAGS
14340
14341 # Take the output of nm and produce a listing of raw symbols and C names.
14342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14343
14344 # Transform the output of nm in a proper C declaration.
14345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14346
14347 # Transform the output of nm in a C name address pair.
14348 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14349
14350 # Transform the output of nm in a C name address pair when lib prefix is needed.
14351 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14352
14353 # Specify filename containing input files for \$NM.
14354 nm_file_list_spec=$lt_nm_file_list_spec
14355
14356 # The root where to search for dependent libraries,and in which our libraries should be installed.
14357 lt_sysroot=$lt_sysroot
14358
14359 # The name of the directory that contains temporary libtool files.
14360 objdir=$objdir
14361
14362 # Used to examine libraries when file_magic_cmd begins with "file".
14363 MAGIC_CMD=$MAGIC_CMD
14364
14365 # Must we lock files when doing compilation?
14366 need_locks=$lt_need_locks
14367
14368 # Manifest tool.
14369 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14370
14371 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14372 DSYMUTIL=$lt_DSYMUTIL
14373
14374 # Tool to change global to local symbols on Mac OS X.
14375 NMEDIT=$lt_NMEDIT
14376
14377 # Tool to manipulate fat objects and archives on Mac OS X.
14378 LIPO=$lt_LIPO
14379
14380 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14381 OTOOL=$lt_OTOOL
14382
14383 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14384 OTOOL64=$lt_OTOOL64
14385
14386 # Old archive suffix (normally "a").
14387 libext=$libext
14388
14389 # Shared library suffix (normally ".so").
14390 shrext_cmds=$lt_shrext_cmds
14391
14392 # The commands to extract the exported symbol list from a shared archive.
14393 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14394
14395 # Variables whose values should be saved in libtool wrapper scripts and
14396 # restored at link time.
14397 variables_saved_for_relink=$lt_variables_saved_for_relink
14398
14399 # Do we need the "lib" prefix for modules?
14400 need_lib_prefix=$need_lib_prefix
14401
14402 # Do we need a version for libraries?
14403 need_version=$need_version
14404
14405 # Library versioning type.
14406 version_type=$version_type
14407
14408 # Shared library runtime path variable.
14409 runpath_var=$runpath_var
14410
14411 # Shared library path variable.
14412 shlibpath_var=$shlibpath_var
14413
14414 # Is shlibpath searched before the hard-coded library search path?
14415 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14416
14417 # Format of library name prefix.
14418 libname_spec=$lt_libname_spec
14419
14420 # List of archive names.  First name is the real one, the rest are links.
14421 # The last name is the one that the linker finds with -lNAME
14422 library_names_spec=$lt_library_names_spec
14423
14424 # The coded name of the library, if different from the real name.
14425 soname_spec=$lt_soname_spec
14426
14427 # Permission mode override for installation of shared libraries.
14428 install_override_mode=$lt_install_override_mode
14429
14430 # Command to use after installation of a shared archive.
14431 postinstall_cmds=$lt_postinstall_cmds
14432
14433 # Command to use after uninstallation of a shared archive.
14434 postuninstall_cmds=$lt_postuninstall_cmds
14435
14436 # Commands used to finish a libtool library installation in a directory.
14437 finish_cmds=$lt_finish_cmds
14438
14439 # As "finish_cmds", except a single script fragment to be evaled but
14440 # not shown.
14441 finish_eval=$lt_finish_eval
14442
14443 # Whether we should hardcode library paths into libraries.
14444 hardcode_into_libs=$hardcode_into_libs
14445
14446 # Compile-time system search path for libraries.
14447 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14448
14449 # Run-time system search path for libraries.
14450 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14451
14452 # Whether dlopen is supported.
14453 dlopen_support=$enable_dlopen
14454
14455 # Whether dlopen of programs is supported.
14456 dlopen_self=$enable_dlopen_self
14457
14458 # Whether dlopen of statically linked programs is supported.
14459 dlopen_self_static=$enable_dlopen_self_static
14460
14461 # Commands to strip libraries.
14462 old_striplib=$lt_old_striplib
14463 striplib=$lt_striplib
14464
14465
14466 # The linker used to build libraries.
14467 LD=$lt_LD
14468
14469 # How to create reloadable object files.
14470 reload_flag=$lt_reload_flag
14471 reload_cmds=$lt_reload_cmds
14472
14473 # Commands used to build an old-style archive.
14474 old_archive_cmds=$lt_old_archive_cmds
14475
14476 # A language specific compiler.
14477 CC=$lt_compiler
14478
14479 # Is the compiler the GNU compiler?
14480 with_gcc=$GCC
14481
14482 # Compiler flag to turn off builtin functions.
14483 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14484
14485 # Additional compiler flags for building library objects.
14486 pic_flag=$lt_lt_prog_compiler_pic
14487
14488 # How to pass a linker flag through the compiler.
14489 wl=$lt_lt_prog_compiler_wl
14490
14491 # Compiler flag to prevent dynamic linking.
14492 link_static_flag=$lt_lt_prog_compiler_static
14493
14494 # Does compiler simultaneously support -c and -o options?
14495 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14496
14497 # Whether or not to add -lc for building shared libraries.
14498 build_libtool_need_lc=$archive_cmds_need_lc
14499
14500 # Whether or not to disallow shared libs when runtime libs are static.
14501 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14502
14503 # Compiler flag to allow reflexive dlopens.
14504 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14505
14506 # Compiler flag to generate shared objects directly from archives.
14507 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14508
14509 # Whether the compiler copes with passing no objects directly.
14510 compiler_needs_object=$lt_compiler_needs_object
14511
14512 # Create an old-style archive from a shared archive.
14513 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14514
14515 # Create a temporary old-style archive to link instead of a shared archive.
14516 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14517
14518 # Commands used to build a shared archive.
14519 archive_cmds=$lt_archive_cmds
14520 archive_expsym_cmds=$lt_archive_expsym_cmds
14521
14522 # Commands used to build a loadable module if different from building
14523 # a shared archive.
14524 module_cmds=$lt_module_cmds
14525 module_expsym_cmds=$lt_module_expsym_cmds
14526
14527 # Whether we are building with GNU ld or not.
14528 with_gnu_ld=$lt_with_gnu_ld
14529
14530 # Flag that allows shared libraries with undefined symbols to be built.
14531 allow_undefined_flag=$lt_allow_undefined_flag
14532
14533 # Flag that enforces no undefined symbols.
14534 no_undefined_flag=$lt_no_undefined_flag
14535
14536 # Flag to hardcode \$libdir into a binary during linking.
14537 # This must work even if \$libdir does not exist
14538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14539
14540 # Whether we need a single "-rpath" flag with a separated argument.
14541 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14542
14543 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14544 # DIR into the resulting binary.
14545 hardcode_direct=$hardcode_direct
14546
14547 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14548 # DIR into the resulting binary and the resulting library dependency is
14549 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14550 # library is relocated.
14551 hardcode_direct_absolute=$hardcode_direct_absolute
14552
14553 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14554 # into the resulting binary.
14555 hardcode_minus_L=$hardcode_minus_L
14556
14557 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14558 # into the resulting binary.
14559 hardcode_shlibpath_var=$hardcode_shlibpath_var
14560
14561 # Set to "yes" if building a shared library automatically hardcodes DIR
14562 # into the library and all subsequent libraries and executables linked
14563 # against it.
14564 hardcode_automatic=$hardcode_automatic
14565
14566 # Set to yes if linker adds runtime paths of dependent libraries
14567 # to runtime path list.
14568 inherit_rpath=$inherit_rpath
14569
14570 # Whether libtool must link a program against all its dependency libraries.
14571 link_all_deplibs=$link_all_deplibs
14572
14573 # Set to "yes" if exported symbols are required.
14574 always_export_symbols=$always_export_symbols
14575
14576 # The commands to list exported symbols.
14577 export_symbols_cmds=$lt_export_symbols_cmds
14578
14579 # Symbols that should not be listed in the preloaded symbols.
14580 exclude_expsyms=$lt_exclude_expsyms
14581
14582 # Symbols that must always be exported.
14583 include_expsyms=$lt_include_expsyms
14584
14585 # Commands necessary for linking programs (against libraries) with templates.
14586 prelink_cmds=$lt_prelink_cmds
14587
14588 # Commands necessary for finishing linking programs.
14589 postlink_cmds=$lt_postlink_cmds
14590
14591 # Specify filename containing input files.
14592 file_list_spec=$lt_file_list_spec
14593
14594 # How to hardcode a shared library path into an executable.
14595 hardcode_action=$hardcode_action
14596
14597 # ### END LIBTOOL CONFIG
14598
14599 _LT_EOF
14600
14601   case $host_os in
14602   aix3*)
14603     cat <<\_LT_EOF >> "$cfgfile"
14604 # AIX sometimes has problems with the GCC collect2 program.  For some
14605 # reason, if we set the COLLECT_NAMES environment variable, the problems
14606 # vanish in a puff of smoke.
14607 if test "X${COLLECT_NAMES+set}" != Xset; then
14608   COLLECT_NAMES=
14609   export COLLECT_NAMES
14610 fi
14611 _LT_EOF
14612     ;;
14613   esac
14614
14615
14616 ltmain="$ac_aux_dir/ltmain.sh"
14617
14618
14619   # We use sed instead of cat because bash on DJGPP gets confused if
14620   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14621   # text mode, it properly converts lines to CR/LF.  This bash problem
14622   # is reportedly fixed, but why not run on old versions too?
14623   sed '$q' "$ltmain" >> "$cfgfile" \
14624      || (rm -f "$cfgfile"; exit 1)
14625
14626   if test x"$xsi_shell" = xyes; then
14627   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14628 func_dirname ()\
14629 {\
14630 \    case ${1} in\
14631 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14632 \      *  ) func_dirname_result="${3}" ;;\
14633 \    esac\
14634 } # Extended-shell func_dirname 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
14640   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14641 func_basename ()\
14642 {\
14643 \    func_basename_result="${1##*/}"\
14644 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14645   && mv -f "$cfgfile.tmp" "$cfgfile" \
14646     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14647 test 0 -eq $? || _lt_function_replace_fail=:
14648
14649
14650   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14651 func_dirname_and_basename ()\
14652 {\
14653 \    case ${1} in\
14654 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14655 \      *  ) func_dirname_result="${3}" ;;\
14656 \    esac\
14657 \    func_basename_result="${1##*/}"\
14658 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14659   && mv -f "$cfgfile.tmp" "$cfgfile" \
14660     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14661 test 0 -eq $? || _lt_function_replace_fail=:
14662
14663
14664   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14665 func_stripname ()\
14666 {\
14667 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14668 \    # positional parameters, so assign one to ordinary parameter first.\
14669 \    func_stripname_result=${3}\
14670 \    func_stripname_result=${func_stripname_result#"${1}"}\
14671 \    func_stripname_result=${func_stripname_result%"${2}"}\
14672 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14673   && mv -f "$cfgfile.tmp" "$cfgfile" \
14674     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14675 test 0 -eq $? || _lt_function_replace_fail=:
14676
14677
14678   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14679 func_split_long_opt ()\
14680 {\
14681 \    func_split_long_opt_name=${1%%=*}\
14682 \    func_split_long_opt_arg=${1#*=}\
14683 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14684   && mv -f "$cfgfile.tmp" "$cfgfile" \
14685     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14686 test 0 -eq $? || _lt_function_replace_fail=:
14687
14688
14689   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14690 func_split_short_opt ()\
14691 {\
14692 \    func_split_short_opt_arg=${1#??}\
14693 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14694 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14695   && mv -f "$cfgfile.tmp" "$cfgfile" \
14696     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14697 test 0 -eq $? || _lt_function_replace_fail=:
14698
14699
14700   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14701 func_lo2o ()\
14702 {\
14703 \    case ${1} in\
14704 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14705 \      *)    func_lo2o_result=${1} ;;\
14706 \    esac\
14707 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14708   && mv -f "$cfgfile.tmp" "$cfgfile" \
14709     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14710 test 0 -eq $? || _lt_function_replace_fail=:
14711
14712
14713   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14714 func_xform ()\
14715 {\
14716     func_xform_result=${1%.*}.lo\
14717 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14718   && mv -f "$cfgfile.tmp" "$cfgfile" \
14719     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14720 test 0 -eq $? || _lt_function_replace_fail=:
14721
14722
14723   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14724 func_arith ()\
14725 {\
14726     func_arith_result=$(( $* ))\
14727 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14728   && mv -f "$cfgfile.tmp" "$cfgfile" \
14729     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14730 test 0 -eq $? || _lt_function_replace_fail=:
14731
14732
14733   sed -e '/^func_len ()$/,/^} # func_len /c\
14734 func_len ()\
14735 {\
14736     func_len_result=${#1}\
14737 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14738   && mv -f "$cfgfile.tmp" "$cfgfile" \
14739     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14740 test 0 -eq $? || _lt_function_replace_fail=:
14741
14742 fi
14743
14744 if test x"$lt_shell_append" = xyes; then
14745   sed -e '/^func_append ()$/,/^} # func_append /c\
14746 func_append ()\
14747 {\
14748     eval "${1}+=\\${2}"\
14749 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14750   && mv -f "$cfgfile.tmp" "$cfgfile" \
14751     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14752 test 0 -eq $? || _lt_function_replace_fail=:
14753
14754
14755   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14756 func_append_quoted ()\
14757 {\
14758 \    func_quote_for_eval "${2}"\
14759 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14760 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14761   && mv -f "$cfgfile.tmp" "$cfgfile" \
14762     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14763 test 0 -eq $? || _lt_function_replace_fail=:
14764
14765
14766   # Save a `func_append' function call where possible by direct use of '+='
14767   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14768     && mv -f "$cfgfile.tmp" "$cfgfile" \
14769       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14770   test 0 -eq $? || _lt_function_replace_fail=:
14771 else
14772   # Save a `func_append' function call even when '+=' is not available
14773   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14774     && mv -f "$cfgfile.tmp" "$cfgfile" \
14775       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14776   test 0 -eq $? || _lt_function_replace_fail=:
14777 fi
14778
14779 if test x"$_lt_function_replace_fail" = x":"; then
14780   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14781 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14782 fi
14783
14784
14785    mv -f "$cfgfile" "$ofile" ||
14786     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14787   chmod +x "$ofile"
14788
14789  ;;
14790
14791   esac
14792 done # for ac_tag
14793
14794
14795 as_fn_exit 0
14796 _ACEOF
14797 ac_clean_files=$ac_clean_files_save
14798
14799 test $ac_write_fail = 0 ||
14800   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14801
14802
14803 # configure is writing to config.log, and then calls config.status.
14804 # config.status does its own redirection, appending to config.log.
14805 # Unfortunately, on DOS this fails, as config.log is still kept open
14806 # by configure, so config.status won't be able to write to it; its
14807 # output is simply discarded.  So we exec the FD to /dev/null,
14808 # effectively closing config.log, so it can be properly (re)opened and
14809 # appended to by config.status.  When coming back to configure, we
14810 # need to make the FD available again.
14811 if test "$no_create" != yes; then
14812   ac_cs_success=:
14813   ac_config_status_args=
14814   test "$silent" = yes &&
14815     ac_config_status_args="$ac_config_status_args --quiet"
14816   exec 5>/dev/null
14817   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14818   exec 5>>config.log
14819   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14820   # would make configure fail if this is the last instruction.
14821   $ac_cs_success || as_fn_exit 1
14822 fi
14823 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14824   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14825 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14826 fi
14827