]> 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 GUILE_LTLIBS
620 GUILE_LIBS
621 GUILE_LDFLAGS
622 GUILE_CFLAGS
623 GUILE_TOOLS
624 GUILE_CONFIG
625 GUILE
626 CPP
627 OTOOL64
628 OTOOL
629 LIPO
630 NMEDIT
631 DSYMUTIL
632 MANIFEST_TOOL
633 RANLIB
634 ac_ct_AR
635 AR
636 DLLTOOL
637 OBJDUMP
638 LN_S
639 NM
640 ac_ct_DUMPBIN
641 DUMPBIN
642 LD
643 FGREP
644 EGREP
645 GREP
646 SED
647 host_os
648 host_vendor
649 host_cpu
650 host
651 build_os
652 build_vendor
653 build_cpu
654 build
655 LIBTOOL
656 am__fastdepCC_FALSE
657 am__fastdepCC_TRUE
658 CCDEPMODE
659 AMDEPBACKSLASH
660 AMDEP_FALSE
661 AMDEP_TRUE
662 am__quote
663 am__include
664 DEPDIR
665 OBJEXT
666 EXEEXT
667 ac_ct_CC
668 CPPFLAGS
669 LDFLAGS
670 CFLAGS
671 CC
672 am__untar
673 am__tar
674 AMTAR
675 am__leading_dot
676 SET_MAKE
677 AWK
678 mkdir_p
679 MKDIR_P
680 INSTALL_STRIP_PROGRAM
681 STRIP
682 install_sh
683 MAKEINFO
684 AUTOHEADER
685 AUTOMAKE
686 AUTOCONF
687 ACLOCAL
688 VERSION
689 PACKAGE
690 CYGPATH_W
691 am__isrc
692 INSTALL_DATA
693 INSTALL_SCRIPT
694 INSTALL_PROGRAM
695 target_alias
696 host_alias
697 build_alias
698 LIBS
699 ECHO_T
700 ECHO_N
701 ECHO_C
702 DEFS
703 mandir
704 localedir
705 libdir
706 psdir
707 pdfdir
708 dvidir
709 htmldir
710 infodir
711 docdir
712 oldincludedir
713 includedir
714 localstatedir
715 sharedstatedir
716 sysconfdir
717 datadir
718 datarootdir
719 libexecdir
720 sbindir
721 bindir
722 program_transform_name
723 prefix
724 exec_prefix
725 PACKAGE_URL
726 PACKAGE_BUGREPORT
727 PACKAGE_STRING
728 PACKAGE_VERSION
729 PACKAGE_TARNAME
730 PACKAGE_NAME
731 PATH_SEPARATOR
732 SHELL'
733 ac_subst_files=''
734 ac_user_opts='
735 enable_option_checking
736 enable_dependency_tracking
737 enable_shared
738 enable_static
739 with_pic
740 enable_fast_install
741 with_gnu_ld
742 with_sysroot
743 enable_libtool_lock
744 '
745       ac_precious_vars='build_alias
746 host_alias
747 target_alias
748 CC
749 CFLAGS
750 LDFLAGS
751 LIBS
752 CPPFLAGS
753 CPP'
754
755
756 # Initialize some variables set by options.
757 ac_init_help=
758 ac_init_version=false
759 ac_unrecognized_opts=
760 ac_unrecognized_sep=
761 # The variables have the same names as the options, with
762 # dashes changed to underlines.
763 cache_file=/dev/null
764 exec_prefix=NONE
765 no_create=
766 no_recursion=
767 prefix=NONE
768 program_prefix=NONE
769 program_suffix=NONE
770 program_transform_name=s,x,x,
771 silent=
772 site=
773 srcdir=
774 verbose=
775 x_includes=NONE
776 x_libraries=NONE
777
778 # Installation directory options.
779 # These are left unexpanded so users can "make install exec_prefix=/foo"
780 # and all the variables that are supposed to be based on exec_prefix
781 # by default will actually change.
782 # Use braces instead of parens because sh, perl, etc. also accept them.
783 # (The list follows the same order as the GNU Coding Standards.)
784 bindir='${exec_prefix}/bin'
785 sbindir='${exec_prefix}/sbin'
786 libexecdir='${exec_prefix}/libexec'
787 datarootdir='${prefix}/share'
788 datadir='${datarootdir}'
789 sysconfdir='${prefix}/etc'
790 sharedstatedir='${prefix}/com'
791 localstatedir='${prefix}/var'
792 includedir='${prefix}/include'
793 oldincludedir='/usr/include'
794 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795 infodir='${datarootdir}/info'
796 htmldir='${docdir}'
797 dvidir='${docdir}'
798 pdfdir='${docdir}'
799 psdir='${docdir}'
800 libdir='${exec_prefix}/lib'
801 localedir='${datarootdir}/locale'
802 mandir='${datarootdir}/man'
803
804 ac_prev=
805 ac_dashdash=
806 for ac_option
807 do
808   # If the previous option needs an argument, assign it.
809   if test -n "$ac_prev"; then
810     eval $ac_prev=\$ac_option
811     ac_prev=
812     continue
813   fi
814
815   case $ac_option in
816   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817   *=)   ac_optarg= ;;
818   *)    ac_optarg=yes ;;
819   esac
820
821   # Accept the important Cygnus configure options, so we can diagnose typos.
822
823   case $ac_dashdash$ac_option in
824   --)
825     ac_dashdash=yes ;;
826
827   -bindir | --bindir | --bindi | --bind | --bin | --bi)
828     ac_prev=bindir ;;
829   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830     bindir=$ac_optarg ;;
831
832   -build | --build | --buil | --bui | --bu)
833     ac_prev=build_alias ;;
834   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835     build_alias=$ac_optarg ;;
836
837   -cache-file | --cache-file | --cache-fil | --cache-fi \
838   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839     ac_prev=cache_file ;;
840   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842     cache_file=$ac_optarg ;;
843
844   --config-cache | -C)
845     cache_file=config.cache ;;
846
847   -datadir | --datadir | --datadi | --datad)
848     ac_prev=datadir ;;
849   -datadir=* | --datadir=* | --datadi=* | --datad=*)
850     datadir=$ac_optarg ;;
851
852   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853   | --dataroo | --dataro | --datar)
854     ac_prev=datarootdir ;;
855   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857     datarootdir=$ac_optarg ;;
858
859   -disable-* | --disable-*)
860     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861     # Reject names that are not valid shell variable names.
862     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863       as_fn_error $? "invalid feature name: $ac_useropt"
864     ac_useropt_orig=$ac_useropt
865     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866     case $ac_user_opts in
867       *"
868 "enable_$ac_useropt"
869 "*) ;;
870       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
871          ac_unrecognized_sep=', ';;
872     esac
873     eval enable_$ac_useropt=no ;;
874
875   -docdir | --docdir | --docdi | --doc | --do)
876     ac_prev=docdir ;;
877   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
878     docdir=$ac_optarg ;;
879
880   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881     ac_prev=dvidir ;;
882   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
883     dvidir=$ac_optarg ;;
884
885   -enable-* | --enable-*)
886     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
887     # Reject names that are not valid shell variable names.
888     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889       as_fn_error $? "invalid feature name: $ac_useropt"
890     ac_useropt_orig=$ac_useropt
891     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892     case $ac_user_opts in
893       *"
894 "enable_$ac_useropt"
895 "*) ;;
896       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
897          ac_unrecognized_sep=', ';;
898     esac
899     eval enable_$ac_useropt=\$ac_optarg ;;
900
901   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
902   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
903   | --exec | --exe | --ex)
904     ac_prev=exec_prefix ;;
905   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
906   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
907   | --exec=* | --exe=* | --ex=*)
908     exec_prefix=$ac_optarg ;;
909
910   -gas | --gas | --ga | --g)
911     # Obsolete; use --with-gas.
912     with_gas=yes ;;
913
914   -help | --help | --hel | --he | -h)
915     ac_init_help=long ;;
916   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
917     ac_init_help=recursive ;;
918   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
919     ac_init_help=short ;;
920
921   -host | --host | --hos | --ho)
922     ac_prev=host_alias ;;
923   -host=* | --host=* | --hos=* | --ho=*)
924     host_alias=$ac_optarg ;;
925
926   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
927     ac_prev=htmldir ;;
928   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
929   | --ht=*)
930     htmldir=$ac_optarg ;;
931
932   -includedir | --includedir | --includedi | --included | --include \
933   | --includ | --inclu | --incl | --inc)
934     ac_prev=includedir ;;
935   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
936   | --includ=* | --inclu=* | --incl=* | --inc=*)
937     includedir=$ac_optarg ;;
938
939   -infodir | --infodir | --infodi | --infod | --info | --inf)
940     ac_prev=infodir ;;
941   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
942     infodir=$ac_optarg ;;
943
944   -libdir | --libdir | --libdi | --libd)
945     ac_prev=libdir ;;
946   -libdir=* | --libdir=* | --libdi=* | --libd=*)
947     libdir=$ac_optarg ;;
948
949   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
950   | --libexe | --libex | --libe)
951     ac_prev=libexecdir ;;
952   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
953   | --libexe=* | --libex=* | --libe=*)
954     libexecdir=$ac_optarg ;;
955
956   -localedir | --localedir | --localedi | --localed | --locale)
957     ac_prev=localedir ;;
958   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
959     localedir=$ac_optarg ;;
960
961   -localstatedir | --localstatedir | --localstatedi | --localstated \
962   | --localstate | --localstat | --localsta | --localst | --locals)
963     ac_prev=localstatedir ;;
964   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
965   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
966     localstatedir=$ac_optarg ;;
967
968   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
969     ac_prev=mandir ;;
970   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
971     mandir=$ac_optarg ;;
972
973   -nfp | --nfp | --nf)
974     # Obsolete; use --without-fp.
975     with_fp=no ;;
976
977   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
978   | --no-cr | --no-c | -n)
979     no_create=yes ;;
980
981   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
982   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983     no_recursion=yes ;;
984
985   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
986   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
987   | --oldin | --oldi | --old | --ol | --o)
988     ac_prev=oldincludedir ;;
989   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
990   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
991   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
992     oldincludedir=$ac_optarg ;;
993
994   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
995     ac_prev=prefix ;;
996   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
997     prefix=$ac_optarg ;;
998
999   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1000   | --program-pre | --program-pr | --program-p)
1001     ac_prev=program_prefix ;;
1002   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1003   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1004     program_prefix=$ac_optarg ;;
1005
1006   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1007   | --program-suf | --program-su | --program-s)
1008     ac_prev=program_suffix ;;
1009   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1010   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1011     program_suffix=$ac_optarg ;;
1012
1013   -program-transform-name | --program-transform-name \
1014   | --program-transform-nam | --program-transform-na \
1015   | --program-transform-n | --program-transform- \
1016   | --program-transform | --program-transfor \
1017   | --program-transfo | --program-transf \
1018   | --program-trans | --program-tran \
1019   | --progr-tra | --program-tr | --program-t)
1020     ac_prev=program_transform_name ;;
1021   -program-transform-name=* | --program-transform-name=* \
1022   | --program-transform-nam=* | --program-transform-na=* \
1023   | --program-transform-n=* | --program-transform-=* \
1024   | --program-transform=* | --program-transfor=* \
1025   | --program-transfo=* | --program-transf=* \
1026   | --program-trans=* | --program-tran=* \
1027   | --progr-tra=* | --program-tr=* | --program-t=*)
1028     program_transform_name=$ac_optarg ;;
1029
1030   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1031     ac_prev=pdfdir ;;
1032   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1033     pdfdir=$ac_optarg ;;
1034
1035   -psdir | --psdir | --psdi | --psd | --ps)
1036     ac_prev=psdir ;;
1037   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1038     psdir=$ac_optarg ;;
1039
1040   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041   | -silent | --silent | --silen | --sile | --sil)
1042     silent=yes ;;
1043
1044   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045     ac_prev=sbindir ;;
1046   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047   | --sbi=* | --sb=*)
1048     sbindir=$ac_optarg ;;
1049
1050   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1051   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1052   | --sharedst | --shareds | --shared | --share | --shar \
1053   | --sha | --sh)
1054     ac_prev=sharedstatedir ;;
1055   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1056   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1057   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1058   | --sha=* | --sh=*)
1059     sharedstatedir=$ac_optarg ;;
1060
1061   -site | --site | --sit)
1062     ac_prev=site ;;
1063   -site=* | --site=* | --sit=*)
1064     site=$ac_optarg ;;
1065
1066   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1067     ac_prev=srcdir ;;
1068   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1069     srcdir=$ac_optarg ;;
1070
1071   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1072   | --syscon | --sysco | --sysc | --sys | --sy)
1073     ac_prev=sysconfdir ;;
1074   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1075   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1076     sysconfdir=$ac_optarg ;;
1077
1078   -target | --target | --targe | --targ | --tar | --ta | --t)
1079     ac_prev=target_alias ;;
1080   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1081     target_alias=$ac_optarg ;;
1082
1083   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1084     verbose=yes ;;
1085
1086   -version | --version | --versio | --versi | --vers | -V)
1087     ac_init_version=: ;;
1088
1089   -with-* | --with-*)
1090     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1091     # Reject names that are not valid shell variable names.
1092     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093       as_fn_error $? "invalid package name: $ac_useropt"
1094     ac_useropt_orig=$ac_useropt
1095     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096     case $ac_user_opts in
1097       *"
1098 "with_$ac_useropt"
1099 "*) ;;
1100       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1101          ac_unrecognized_sep=', ';;
1102     esac
1103     eval with_$ac_useropt=\$ac_optarg ;;
1104
1105   -without-* | --without-*)
1106     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107     # Reject names that are not valid shell variable names.
1108     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109       as_fn_error $? "invalid package name: $ac_useropt"
1110     ac_useropt_orig=$ac_useropt
1111     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112     case $ac_user_opts in
1113       *"
1114 "with_$ac_useropt"
1115 "*) ;;
1116       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117          ac_unrecognized_sep=', ';;
1118     esac
1119     eval with_$ac_useropt=no ;;
1120
1121   --x)
1122     # Obsolete; use --with-x.
1123     with_x=yes ;;
1124
1125   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126   | --x-incl | --x-inc | --x-in | --x-i)
1127     ac_prev=x_includes ;;
1128   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130     x_includes=$ac_optarg ;;
1131
1132   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134     ac_prev=x_libraries ;;
1135   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137     x_libraries=$ac_optarg ;;
1138
1139   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1140 Try \`$0 --help' for more information"
1141     ;;
1142
1143   *=*)
1144     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1145     # Reject names that are not valid shell variable names.
1146     case $ac_envvar in #(
1147       '' | [0-9]* | *[!_$as_cr_alnum]* )
1148       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1149     esac
1150     eval $ac_envvar=\$ac_optarg
1151     export $ac_envvar ;;
1152
1153   *)
1154     # FIXME: should be removed in autoconf 3.0.
1155     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1159     ;;
1160
1161   esac
1162 done
1163
1164 if test -n "$ac_prev"; then
1165   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166   as_fn_error $? "missing argument to $ac_option"
1167 fi
1168
1169 if test -n "$ac_unrecognized_opts"; then
1170   case $enable_option_checking in
1171     no) ;;
1172     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1173     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174   esac
1175 fi
1176
1177 # Check all directory arguments for consistency.
1178 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179                 datadir sysconfdir sharedstatedir localstatedir includedir \
1180                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181                 libdir localedir mandir
1182 do
1183   eval ac_val=\$$ac_var
1184   # Remove trailing slashes.
1185   case $ac_val in
1186     */ )
1187       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1188       eval $ac_var=\$ac_val;;
1189   esac
1190   # Be sure to have absolute directory names.
1191   case $ac_val in
1192     [\\/$]* | ?:[\\/]* )  continue;;
1193     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194   esac
1195   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1196 done
1197
1198 # There might be people who depend on the old broken behavior: `$host'
1199 # used to hold the argument of --host etc.
1200 # FIXME: To remove some day.
1201 build=$build_alias
1202 host=$host_alias
1203 target=$target_alias
1204
1205 # FIXME: To remove some day.
1206 if test "x$host_alias" != x; then
1207   if test "x$build_alias" = x; then
1208     cross_compiling=maybe
1209     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1210     If a cross compiler is detected then cross compile mode will be used" >&2
1211   elif test "x$build_alias" != "x$host_alias"; then
1212     cross_compiling=yes
1213   fi
1214 fi
1215
1216 ac_tool_prefix=
1217 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1218
1219 test "$silent" = yes && exec 6>/dev/null
1220
1221
1222 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1223 ac_ls_di=`ls -di .` &&
1224 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1225   as_fn_error $? "working directory cannot be determined"
1226 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1227   as_fn_error $? "pwd does not report name of working directory"
1228
1229
1230 # Find the source files, if location was not specified.
1231 if test -z "$srcdir"; then
1232   ac_srcdir_defaulted=yes
1233   # Try the directory containing this script, then the parent directory.
1234   ac_confdir=`$as_dirname -- "$as_myself" ||
1235 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236          X"$as_myself" : 'X\(//\)[^/]' \| \
1237          X"$as_myself" : 'X\(//\)$' \| \
1238          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1239 $as_echo X"$as_myself" |
1240     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241             s//\1/
1242             q
1243           }
1244           /^X\(\/\/\)[^/].*/{
1245             s//\1/
1246             q
1247           }
1248           /^X\(\/\/\)$/{
1249             s//\1/
1250             q
1251           }
1252           /^X\(\/\).*/{
1253             s//\1/
1254             q
1255           }
1256           s/.*/./; q'`
1257   srcdir=$ac_confdir
1258   if test ! -r "$srcdir/$ac_unique_file"; then
1259     srcdir=..
1260   fi
1261 else
1262   ac_srcdir_defaulted=no
1263 fi
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1266   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1267 fi
1268 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1269 ac_abs_confdir=`(
1270         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1271         pwd)`
1272 # When building in place, set srcdir=.
1273 if test "$ac_abs_confdir" = "$ac_pwd"; then
1274   srcdir=.
1275 fi
1276 # Remove unnecessary trailing slashes from srcdir.
1277 # Double slashes in file names in object file debugging info
1278 # mess up M-x gdb in Emacs.
1279 case $srcdir in
1280 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 esac
1282 for ac_var in $ac_precious_vars; do
1283   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1284   eval ac_env_${ac_var}_value=\$${ac_var}
1285   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1286   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1287 done
1288
1289 #
1290 # Report the --help message.
1291 #
1292 if test "$ac_init_help" = "long"; then
1293   # Omit some internal or obsolete options to make the list less imposing.
1294   # This message is too long to be a string in the A/UX 3.1 sh.
1295   cat <<_ACEOF
1296 \`configure' configures gacela 0.5 to adapt to many kinds of systems.
1297
1298 Usage: $0 [OPTION]... [VAR=VALUE]...
1299
1300 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1301 VAR=VALUE.  See below for descriptions of some of the useful variables.
1302
1303 Defaults for the options are specified in brackets.
1304
1305 Configuration:
1306   -h, --help              display this help and exit
1307       --help=short        display options specific to this package
1308       --help=recursive    display the short help of all the included packages
1309   -V, --version           display version information and exit
1310   -q, --quiet, --silent   do not print \`checking ...' messages
1311       --cache-file=FILE   cache test results in FILE [disabled]
1312   -C, --config-cache      alias for \`--cache-file=config.cache'
1313   -n, --no-create         do not create output files
1314       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1315
1316 Installation directories:
1317   --prefix=PREFIX         install architecture-independent files in PREFIX
1318                           [$ac_default_prefix]
1319   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1320                           [PREFIX]
1321
1322 By default, \`make install' will install all the files in
1323 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1324 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1325 for instance \`--prefix=\$HOME'.
1326
1327 For better control, use the options below.
1328
1329 Fine tuning of the installation directories:
1330   --bindir=DIR            user executables [EPREFIX/bin]
1331   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1332   --libexecdir=DIR        program executables [EPREFIX/libexec]
1333   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1334   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1335   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1336   --libdir=DIR            object code libraries [EPREFIX/lib]
1337   --includedir=DIR        C header files [PREFIX/include]
1338   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1339   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1340   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1341   --infodir=DIR           info documentation [DATAROOTDIR/info]
1342   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1343   --mandir=DIR            man documentation [DATAROOTDIR/man]
1344   --docdir=DIR            documentation root [DATAROOTDIR/doc/gacela]
1345   --htmldir=DIR           html documentation [DOCDIR]
1346   --dvidir=DIR            dvi documentation [DOCDIR]
1347   --pdfdir=DIR            pdf documentation [DOCDIR]
1348   --psdir=DIR             ps documentation [DOCDIR]
1349 _ACEOF
1350
1351   cat <<\_ACEOF
1352
1353 Program names:
1354   --program-prefix=PREFIX            prepend PREFIX to installed program names
1355   --program-suffix=SUFFIX            append SUFFIX to installed program names
1356   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1357
1358 System types:
1359   --build=BUILD     configure for building on BUILD [guessed]
1360   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1361 _ACEOF
1362 fi
1363
1364 if test -n "$ac_init_help"; then
1365   case $ac_init_help in
1366      short | recursive ) echo "Configuration of gacela 0.5:";;
1367    esac
1368   cat <<\_ACEOF
1369
1370 Optional Features:
1371   --disable-option-checking  ignore unrecognized --enable/--with options
1372   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1373   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1374   --disable-dependency-tracking  speeds up one-time build
1375   --enable-dependency-tracking   do not reject slow dependency extractors
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-libtool-lock  avoid locking (might break parallel builds)
1381
1382 Optional Packages:
1383   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1384   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1385   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1386                           both]
1387   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1388   --with-sysroot=DIR Search for dependent libraries within DIR
1389                         (or the compiler's sysroot if not specified).
1390
1391 Some influential environment variables:
1392   CC          C compiler command
1393   CFLAGS      C compiler flags
1394   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1395               nonstandard directory <lib dir>
1396   LIBS        libraries to pass to the linker, e.g. -l<library>
1397   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1398               you have headers in a nonstandard directory <include dir>
1399   CPP         C preprocessor
1400
1401 Use these variables to override the choices made by `configure' or to help
1402 it to find libraries and programs with nonstandard names/locations.
1403
1404 Report bugs to <jsf@jsancho.org>.
1405 _ACEOF
1406 ac_status=$?
1407 fi
1408
1409 if test "$ac_init_help" = "recursive"; then
1410   # If there are subdirs, report their specific --help.
1411   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1412     test -d "$ac_dir" ||
1413       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1414       continue
1415     ac_builddir=.
1416
1417 case "$ac_dir" in
1418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *)
1420   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1421   # A ".." for each directory in $ac_dir_suffix.
1422   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1423   case $ac_top_builddir_sub in
1424   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1426   esac ;;
1427 esac
1428 ac_abs_top_builddir=$ac_pwd
1429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1430 # for backward compatibility:
1431 ac_top_builddir=$ac_top_build_prefix
1432
1433 case $srcdir in
1434   .)  # We are building in place.
1435     ac_srcdir=.
1436     ac_top_srcdir=$ac_top_builddir_sub
1437     ac_abs_top_srcdir=$ac_pwd ;;
1438   [\\/]* | ?:[\\/]* )  # Absolute name.
1439     ac_srcdir=$srcdir$ac_dir_suffix;
1440     ac_top_srcdir=$srcdir
1441     ac_abs_top_srcdir=$srcdir ;;
1442   *) # Relative name.
1443     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1444     ac_top_srcdir=$ac_top_build_prefix$srcdir
1445     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1446 esac
1447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1448
1449     cd "$ac_dir" || { ac_status=$?; continue; }
1450     # Check for guested configure.
1451     if test -f "$ac_srcdir/configure.gnu"; then
1452       echo &&
1453       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1454     elif test -f "$ac_srcdir/configure"; then
1455       echo &&
1456       $SHELL "$ac_srcdir/configure" --help=recursive
1457     else
1458       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1459     fi || ac_status=$?
1460     cd "$ac_pwd" || { ac_status=$?; break; }
1461   done
1462 fi
1463
1464 test -n "$ac_init_help" && exit $ac_status
1465 if $ac_init_version; then
1466   cat <<\_ACEOF
1467 gacela configure 0.5
1468 generated by GNU Autoconf 2.68
1469
1470 Copyright (C) 2010 Free Software Foundation, Inc.
1471 This configure script is free software; the Free Software Foundation
1472 gives unlimited permission to copy, distribute and modify it.
1473 _ACEOF
1474   exit
1475 fi
1476
1477 ## ------------------------ ##
1478 ## Autoconf initialization. ##
1479 ## ------------------------ ##
1480
1481 # ac_fn_c_try_compile LINENO
1482 # --------------------------
1483 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1484 ac_fn_c_try_compile ()
1485 {
1486   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487   rm -f conftest.$ac_objext
1488   if { { ac_try="$ac_compile"
1489 case "(($ac_try" in
1490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1491   *) ac_try_echo=$ac_try;;
1492 esac
1493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1494 $as_echo "$ac_try_echo"; } >&5
1495   (eval "$ac_compile") 2>conftest.err
1496   ac_status=$?
1497   if test -s conftest.err; then
1498     grep -v '^ *+' conftest.err >conftest.er1
1499     cat conftest.er1 >&5
1500     mv -f conftest.er1 conftest.err
1501   fi
1502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1503   test $ac_status = 0; } && {
1504          test -z "$ac_c_werror_flag" ||
1505          test ! -s conftest.err
1506        } && test -s conftest.$ac_objext; then :
1507   ac_retval=0
1508 else
1509   $as_echo "$as_me: failed program was:" >&5
1510 sed 's/^/| /' conftest.$ac_ext >&5
1511
1512         ac_retval=1
1513 fi
1514   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1515   as_fn_set_status $ac_retval
1516
1517 } # ac_fn_c_try_compile
1518
1519 # ac_fn_c_try_link LINENO
1520 # -----------------------
1521 # Try to link conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_c_try_link ()
1523 {
1524   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525   rm -f conftest.$ac_objext conftest$ac_exeext
1526   if { { ac_try="$ac_link"
1527 case "(($ac_try" in
1528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529   *) ac_try_echo=$ac_try;;
1530 esac
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533   (eval "$ac_link") 2>conftest.err
1534   ac_status=$?
1535   if test -s conftest.err; then
1536     grep -v '^ *+' conftest.err >conftest.er1
1537     cat conftest.er1 >&5
1538     mv -f conftest.er1 conftest.err
1539   fi
1540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541   test $ac_status = 0; } && {
1542          test -z "$ac_c_werror_flag" ||
1543          test ! -s conftest.err
1544        } && test -s conftest$ac_exeext && {
1545          test "$cross_compiling" = yes ||
1546          $as_test_x conftest$ac_exeext
1547        }; then :
1548   ac_retval=0
1549 else
1550   $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1552
1553         ac_retval=1
1554 fi
1555   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1556   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1557   # interfere with the next link command; also delete a directory that is
1558   # left behind by Apple's compiler.  We do this before executing the actions.
1559   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1560   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561   as_fn_set_status $ac_retval
1562
1563 } # ac_fn_c_try_link
1564
1565 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1566 # -------------------------------------------------------
1567 # Tests whether HEADER exists and can be compiled using the include files in
1568 # INCLUDES, setting the cache variable VAR accordingly.
1569 ac_fn_c_check_header_compile ()
1570 {
1571   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1573 $as_echo_n "checking for $2... " >&6; }
1574 if eval \${$3+:} false; then :
1575   $as_echo_n "(cached) " >&6
1576 else
1577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1578 /* end confdefs.h.  */
1579 $4
1580 #include <$2>
1581 _ACEOF
1582 if ac_fn_c_try_compile "$LINENO"; then :
1583   eval "$3=yes"
1584 else
1585   eval "$3=no"
1586 fi
1587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1588 fi
1589 eval ac_res=\$$3
1590                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1591 $as_echo "$ac_res" >&6; }
1592   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593
1594 } # ac_fn_c_check_header_compile
1595
1596 # ac_fn_c_try_cpp LINENO
1597 # ----------------------
1598 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_cpp ()
1600 {
1601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602   if { { ac_try="$ac_cpp conftest.$ac_ext"
1603 case "(($ac_try" in
1604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605   *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610   ac_status=$?
1611   if test -s conftest.err; then
1612     grep -v '^ *+' conftest.err >conftest.er1
1613     cat conftest.er1 >&5
1614     mv -f conftest.er1 conftest.err
1615   fi
1616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617   test $ac_status = 0; } > conftest.i && {
1618          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619          test ! -s conftest.err
1620        }; then :
1621   ac_retval=0
1622 else
1623   $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626     ac_retval=1
1627 fi
1628   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629   as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_cpp
1632
1633 # ac_fn_c_try_run LINENO
1634 # ----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1636 # that executables *can* be run.
1637 ac_fn_c_try_run ()
1638 {
1639   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640   if { { ac_try="$ac_link"
1641 case "(($ac_try" in
1642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643   *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647   (eval "$ac_link") 2>&5
1648   ac_status=$?
1649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1651   { { case "(($ac_try" in
1652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653   *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657   (eval "$ac_try") 2>&5
1658   ac_status=$?
1659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660   test $ac_status = 0; }; }; then :
1661   ac_retval=0
1662 else
1663   $as_echo "$as_me: program exited with status $ac_status" >&5
1664        $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667        ac_retval=$ac_status
1668 fi
1669   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671   as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_run
1674
1675 # ac_fn_c_check_func LINENO FUNC VAR
1676 # ----------------------------------
1677 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1678 ac_fn_c_check_func ()
1679 {
1680   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682 $as_echo_n "checking for $2... " >&6; }
1683 if eval \${$3+:} false; then :
1684   $as_echo_n "(cached) " >&6
1685 else
1686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h.  */
1688 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1690 #define $2 innocuous_$2
1691
1692 /* System header to define __stub macros and hopefully few prototypes,
1693     which can conflict with char $2 (); below.
1694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1695     <limits.h> exists even on freestanding compilers.  */
1696
1697 #ifdef __STDC__
1698 # include <limits.h>
1699 #else
1700 # include <assert.h>
1701 #endif
1702
1703 #undef $2
1704
1705 /* Override any GCC internal prototype to avoid an error.
1706    Use char because int might match the return type of a GCC
1707    builtin and then its argument prototype would still apply.  */
1708 #ifdef __cplusplus
1709 extern "C"
1710 #endif
1711 char $2 ();
1712 /* The GNU C library defines this for functions which it implements
1713     to always fail with ENOSYS.  Some functions are actually named
1714     something starting with __ and the normal name is an alias.  */
1715 #if defined __stub_$2 || defined __stub___$2
1716 choke me
1717 #endif
1718
1719 int
1720 main ()
1721 {
1722 return $2 ();
1723   ;
1724   return 0;
1725 }
1726 _ACEOF
1727 if ac_fn_c_try_link "$LINENO"; then :
1728   eval "$3=yes"
1729 else
1730   eval "$3=no"
1731 fi
1732 rm -f core conftest.err conftest.$ac_objext \
1733     conftest$ac_exeext conftest.$ac_ext
1734 fi
1735 eval ac_res=\$$3
1736                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739
1740 } # ac_fn_c_check_func
1741 cat >config.log <<_ACEOF
1742 This file contains any messages produced by compilers while
1743 running configure, to aid debugging if configure makes a mistake.
1744
1745 It was created by gacela $as_me 0.5, which was
1746 generated by GNU Autoconf 2.68.  Invocation command line was
1747
1748   $ $0 $@
1749
1750 _ACEOF
1751 exec 5>>config.log
1752 {
1753 cat <<_ASUNAME
1754 ## --------- ##
1755 ## Platform. ##
1756 ## --------- ##
1757
1758 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1759 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1760 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1761 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1762 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1763
1764 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1765 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1766
1767 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1768 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1769 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1770 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1771 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1772 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1773 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1774
1775 _ASUNAME
1776
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 for as_dir in $PATH
1779 do
1780   IFS=$as_save_IFS
1781   test -z "$as_dir" && as_dir=.
1782     $as_echo "PATH: $as_dir"
1783   done
1784 IFS=$as_save_IFS
1785
1786 } >&5
1787
1788 cat >&5 <<_ACEOF
1789
1790
1791 ## ----------- ##
1792 ## Core tests. ##
1793 ## ----------- ##
1794
1795 _ACEOF
1796
1797
1798 # Keep a trace of the command line.
1799 # Strip out --no-create and --no-recursion so they do not pile up.
1800 # Strip out --silent because we don't want to record it for future runs.
1801 # Also quote any args containing shell meta-characters.
1802 # Make two passes to allow for proper duplicate-argument suppression.
1803 ac_configure_args=
1804 ac_configure_args0=
1805 ac_configure_args1=
1806 ac_must_keep_next=false
1807 for ac_pass in 1 2
1808 do
1809   for ac_arg
1810   do
1811     case $ac_arg in
1812     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1813     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1814     | -silent | --silent | --silen | --sile | --sil)
1815       continue ;;
1816     *\'*)
1817       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1818     esac
1819     case $ac_pass in
1820     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1821     2)
1822       as_fn_append ac_configure_args1 " '$ac_arg'"
1823       if test $ac_must_keep_next = true; then
1824         ac_must_keep_next=false # Got value, back to normal.
1825       else
1826         case $ac_arg in
1827           *=* | --config-cache | -C | -disable-* | --disable-* \
1828           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1829           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1830           | -with-* | --with-* | -without-* | --without-* | --x)
1831             case "$ac_configure_args0 " in
1832               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1833             esac
1834             ;;
1835           -* ) ac_must_keep_next=true ;;
1836         esac
1837       fi
1838       as_fn_append ac_configure_args " '$ac_arg'"
1839       ;;
1840     esac
1841   done
1842 done
1843 { ac_configure_args0=; unset ac_configure_args0;}
1844 { ac_configure_args1=; unset ac_configure_args1;}
1845
1846 # When interrupted or exit'd, cleanup temporary files, and complete
1847 # config.log.  We remove comments because anyway the quotes in there
1848 # would cause problems or look ugly.
1849 # WARNING: Use '\'' to represent an apostrophe within the trap.
1850 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1851 trap 'exit_status=$?
1852   # Save into config.log some information that might help in debugging.
1853   {
1854     echo
1855
1856     $as_echo "## ---------------- ##
1857 ## Cache variables. ##
1858 ## ---------------- ##"
1859     echo
1860     # The following way of writing the cache mishandles newlines in values,
1861 (
1862   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1863     eval ac_val=\$$ac_var
1864     case $ac_val in #(
1865     *${as_nl}*)
1866       case $ac_var in #(
1867       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1868 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1869       esac
1870       case $ac_var in #(
1871       _ | IFS | as_nl) ;; #(
1872       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1873       *) { eval $ac_var=; unset $ac_var;} ;;
1874       esac ;;
1875     esac
1876   done
1877   (set) 2>&1 |
1878     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1879     *${as_nl}ac_space=\ *)
1880       sed -n \
1881         "s/'\''/'\''\\\\'\'''\''/g;
1882           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1883       ;; #(
1884     *)
1885       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1886       ;;
1887     esac |
1888     sort
1889 )
1890     echo
1891
1892     $as_echo "## ----------------- ##
1893 ## Output variables. ##
1894 ## ----------------- ##"
1895     echo
1896     for ac_var in $ac_subst_vars
1897     do
1898       eval ac_val=\$$ac_var
1899       case $ac_val in
1900       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1901       esac
1902       $as_echo "$ac_var='\''$ac_val'\''"
1903     done | sort
1904     echo
1905
1906     if test -n "$ac_subst_files"; then
1907       $as_echo "## ------------------- ##
1908 ## File substitutions. ##
1909 ## ------------------- ##"
1910       echo
1911       for ac_var in $ac_subst_files
1912       do
1913         eval ac_val=\$$ac_var
1914         case $ac_val in
1915         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916         esac
1917         $as_echo "$ac_var='\''$ac_val'\''"
1918       done | sort
1919       echo
1920     fi
1921
1922     if test -s confdefs.h; then
1923       $as_echo "## ----------- ##
1924 ## confdefs.h. ##
1925 ## ----------- ##"
1926       echo
1927       cat confdefs.h
1928       echo
1929     fi
1930     test "$ac_signal" != 0 &&
1931       $as_echo "$as_me: caught signal $ac_signal"
1932     $as_echo "$as_me: exit $exit_status"
1933   } >&5
1934   rm -f core *.core core.conftest.* &&
1935     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936     exit $exit_status
1937 ' 0
1938 for ac_signal in 1 2 13 15; do
1939   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1940 done
1941 ac_signal=0
1942
1943 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1944 rm -f -r conftest* confdefs.h
1945
1946 $as_echo "/* confdefs.h */" > confdefs.h
1947
1948 # Predefined preprocessor variables.
1949
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_NAME "$PACKAGE_NAME"
1952 _ACEOF
1953
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1956 _ACEOF
1957
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1960 _ACEOF
1961
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_STRING "$PACKAGE_STRING"
1964 _ACEOF
1965
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1968 _ACEOF
1969
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_URL "$PACKAGE_URL"
1972 _ACEOF
1973
1974
1975 # Let the site file select an alternate cache file if it wants to.
1976 # Prefer an explicitly selected file to automatically selected ones.
1977 ac_site_file1=NONE
1978 ac_site_file2=NONE
1979 if test -n "$CONFIG_SITE"; then
1980   # We do not want a PATH search for config.site.
1981   case $CONFIG_SITE in #((
1982     -*)  ac_site_file1=./$CONFIG_SITE;;
1983     */*) ac_site_file1=$CONFIG_SITE;;
1984     *)   ac_site_file1=./$CONFIG_SITE;;
1985   esac
1986 elif test "x$prefix" != xNONE; then
1987   ac_site_file1=$prefix/share/config.site
1988   ac_site_file2=$prefix/etc/config.site
1989 else
1990   ac_site_file1=$ac_default_prefix/share/config.site
1991   ac_site_file2=$ac_default_prefix/etc/config.site
1992 fi
1993 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1994 do
1995   test "x$ac_site_file" = xNONE && continue
1996   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1997     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1998 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1999     sed 's/^/| /' "$ac_site_file" >&5
2000     . "$ac_site_file" \
2001       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2003 as_fn_error $? "failed to load site script $ac_site_file
2004 See \`config.log' for more details" "$LINENO" 5; }
2005   fi
2006 done
2007
2008 if test -r "$cache_file"; then
2009   # Some versions of bash will fail to source /dev/null (special files
2010   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2011   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2012     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2013 $as_echo "$as_me: loading cache $cache_file" >&6;}
2014     case $cache_file in
2015       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2016       *)                      . "./$cache_file";;
2017     esac
2018   fi
2019 else
2020   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2021 $as_echo "$as_me: creating cache $cache_file" >&6;}
2022   >$cache_file
2023 fi
2024
2025 # Check that the precious variables saved in the cache have kept the same
2026 # value.
2027 ac_cache_corrupted=false
2028 for ac_var in $ac_precious_vars; do
2029   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2030   eval ac_new_set=\$ac_env_${ac_var}_set
2031   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2032   eval ac_new_val=\$ac_env_${ac_var}_value
2033   case $ac_old_set,$ac_new_set in
2034     set,)
2035       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2036 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2037       ac_cache_corrupted=: ;;
2038     ,set)
2039       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2040 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2041       ac_cache_corrupted=: ;;
2042     ,);;
2043     *)
2044       if test "x$ac_old_val" != "x$ac_new_val"; then
2045         # differences in whitespace do not lead to failure.
2046         ac_old_val_w=`echo x $ac_old_val`
2047         ac_new_val_w=`echo x $ac_new_val`
2048         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2049           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2050 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2051           ac_cache_corrupted=:
2052         else
2053           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2054 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2055           eval $ac_var=\$ac_old_val
2056         fi
2057         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2058 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2059         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2060 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2061       fi;;
2062   esac
2063   # Pass precious variables to config.status.
2064   if test "$ac_new_set" = set; then
2065     case $ac_new_val in
2066     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2067     *) ac_arg=$ac_var=$ac_new_val ;;
2068     esac
2069     case " $ac_configure_args " in
2070       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2071       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2072     esac
2073   fi
2074 done
2075 if $ac_cache_corrupted; then
2076   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2078   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2079 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2080   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2081 fi
2082 ## -------------------- ##
2083 ## Main body of script. ##
2084 ## -------------------- ##
2085
2086 ac_ext=c
2087 ac_cpp='$CPP $CPPFLAGS'
2088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2091
2092
2093 am__api_version='1.11'
2094
2095 ac_aux_dir=
2096 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2097   if test -f "$ac_dir/install-sh"; then
2098     ac_aux_dir=$ac_dir
2099     ac_install_sh="$ac_aux_dir/install-sh -c"
2100     break
2101   elif 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/shtool"; then
2106     ac_aux_dir=$ac_dir
2107     ac_install_sh="$ac_aux_dir/shtool install -c"
2108     break
2109   fi
2110 done
2111 if test -z "$ac_aux_dir"; then
2112   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2113 fi
2114
2115 # These three variables are undocumented and unsupported,
2116 # and are intended to be withdrawn in a future Autoconf release.
2117 # They can cause serious problems if a builder's source tree is in a directory
2118 # whose full name contains unusual characters.
2119 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2120 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2121 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2122
2123
2124 # Find a good install program.  We prefer a C program (faster),
2125 # so one script is as good as another.  But avoid the broken or
2126 # incompatible versions:
2127 # SysV /etc/install, /usr/sbin/install
2128 # SunOS /usr/etc/install
2129 # IRIX /sbin/install
2130 # AIX /bin/install
2131 # AmigaOS /C/install, which installs bootblocks on floppy discs
2132 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2133 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2134 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2135 # OS/2's system install, which has a completely different semantic
2136 # ./install, which can be erroneously created by make from ./install.sh.
2137 # Reject install programs that cannot install multiple files.
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2139 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2140 if test -z "$INSTALL"; then
2141 if ${ac_cv_path_install+:} false; then :
2142   $as_echo_n "(cached) " >&6
2143 else
2144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147   IFS=$as_save_IFS
2148   test -z "$as_dir" && as_dir=.
2149     # Account for people who put trailing slashes in PATH elements.
2150 case $as_dir/ in #((
2151   ./ | .// | /[cC]/* | \
2152   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2153   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2154   /usr/ucb/* ) ;;
2155   *)
2156     # OSF1 and SCO ODT 3.0 have their own names for install.
2157     # Don't use installbsd from OSF since it installs stuff as root
2158     # by default.
2159     for ac_prog in ginstall scoinst install; do
2160       for ac_exec_ext in '' $ac_executable_extensions; do
2161         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2162           if test $ac_prog = install &&
2163             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2164             # AIX install.  It has an incompatible calling convention.
2165             :
2166           elif test $ac_prog = install &&
2167             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2168             # program-specific install script used by HP pwplus--don't use.
2169             :
2170           else
2171             rm -rf conftest.one conftest.two conftest.dir
2172             echo one > conftest.one
2173             echo two > conftest.two
2174             mkdir conftest.dir
2175             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2176               test -s conftest.one && test -s conftest.two &&
2177               test -s conftest.dir/conftest.one &&
2178               test -s conftest.dir/conftest.two
2179             then
2180               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2181               break 3
2182             fi
2183           fi
2184         fi
2185       done
2186     done
2187     ;;
2188 esac
2189
2190   done
2191 IFS=$as_save_IFS
2192
2193 rm -rf conftest.one conftest.two conftest.dir
2194
2195 fi
2196   if test "${ac_cv_path_install+set}" = set; then
2197     INSTALL=$ac_cv_path_install
2198   else
2199     # As a last resort, use the slow shell script.  Don't cache a
2200     # value for INSTALL within a source directory, because that will
2201     # break other packages using the cache if that directory is
2202     # removed, or if the value is a relative name.
2203     INSTALL=$ac_install_sh
2204   fi
2205 fi
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2207 $as_echo "$INSTALL" >&6; }
2208
2209 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2210 # It thinks the first close brace ends the variable substitution.
2211 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2212
2213 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2214
2215 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2216
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2218 $as_echo_n "checking whether build environment is sane... " >&6; }
2219 # Just in case
2220 sleep 1
2221 echo timestamp > conftest.file
2222 # Reject unsafe characters in $srcdir or the absolute working directory
2223 # name.  Accept space and tab only in the latter.
2224 am_lf='
2225 '
2226 case `pwd` in
2227   *[\\\"\#\$\&\'\`$am_lf]*)
2228     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2229 esac
2230 case $srcdir in
2231   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2232     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2233 esac
2234
2235 # Do `set' in a subshell so we don't clobber the current shell's
2236 # arguments.  Must try -L first in case configure is actually a
2237 # symlink; some systems play weird games with the mod time of symlinks
2238 # (eg FreeBSD returns the mod time of the symlink's containing
2239 # directory).
2240 if (
2241    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2242    if test "$*" = "X"; then
2243       # -L didn't work.
2244       set X `ls -t "$srcdir/configure" conftest.file`
2245    fi
2246    rm -f conftest.file
2247    if test "$*" != "X $srcdir/configure conftest.file" \
2248       && test "$*" != "X conftest.file $srcdir/configure"; then
2249
2250       # If neither matched, then we have a broken ls.  This can happen
2251       # if, for instance, CONFIG_SHELL is bash and it inherits a
2252       # broken ls alias from the environment.  This has actually
2253       # happened.  Such a system could not be considered "sane".
2254       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2255 alias in your environment" "$LINENO" 5
2256    fi
2257
2258    test "$2" = conftest.file
2259    )
2260 then
2261    # Ok.
2262    :
2263 else
2264    as_fn_error $? "newly created file is older than distributed files!
2265 Check your system clock" "$LINENO" 5
2266 fi
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2268 $as_echo "yes" >&6; }
2269 test "$program_prefix" != NONE &&
2270   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2271 # Use a double $ so make ignores it.
2272 test "$program_suffix" != NONE &&
2273   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2274 # Double any \ or $.
2275 # By default was `s,x,x', remove it if useless.
2276 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2277 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2278
2279 # expand $ac_aux_dir to an absolute path
2280 am_aux_dir=`cd $ac_aux_dir && pwd`
2281
2282 if test x"${MISSING+set}" != xset; then
2283   case $am_aux_dir in
2284   *\ * | *\     *)
2285     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2286   *)
2287     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2288   esac
2289 fi
2290 # Use eval to expand $SHELL
2291 if eval "$MISSING --run true"; then
2292   am_missing_run="$MISSING --run "
2293 else
2294   am_missing_run=
2295   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2296 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2297 fi
2298
2299 if test x"${install_sh}" != xset; then
2300   case $am_aux_dir in
2301   *\ * | *\     *)
2302     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2303   *)
2304     install_sh="\${SHELL} $am_aux_dir/install-sh"
2305   esac
2306 fi
2307
2308 # Installed binaries are usually stripped using `strip' when the user
2309 # run `make install-strip'.  However `strip' might not be the right
2310 # tool to use in cross-compilation environments, therefore Automake
2311 # will honor the `STRIP' environment variable to overrule this program.
2312 if test "$cross_compiling" != no; then
2313   if test -n "$ac_tool_prefix"; then
2314   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2315 set dummy ${ac_tool_prefix}strip; ac_word=$2
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2317 $as_echo_n "checking for $ac_word... " >&6; }
2318 if ${ac_cv_prog_STRIP+:} false; then :
2319   $as_echo_n "(cached) " >&6
2320 else
2321   if test -n "$STRIP"; then
2322   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2323 else
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2326 do
2327   IFS=$as_save_IFS
2328   test -z "$as_dir" && as_dir=.
2329     for ac_exec_ext in '' $ac_executable_extensions; do
2330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2333     break 2
2334   fi
2335 done
2336   done
2337 IFS=$as_save_IFS
2338
2339 fi
2340 fi
2341 STRIP=$ac_cv_prog_STRIP
2342 if test -n "$STRIP"; then
2343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2344 $as_echo "$STRIP" >&6; }
2345 else
2346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2347 $as_echo "no" >&6; }
2348 fi
2349
2350
2351 fi
2352 if test -z "$ac_cv_prog_STRIP"; then
2353   ac_ct_STRIP=$STRIP
2354   # Extract the first word of "strip", so it can be a program name with args.
2355 set dummy strip; ac_word=$2
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2357 $as_echo_n "checking for $ac_word... " >&6; }
2358 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2359   $as_echo_n "(cached) " >&6
2360 else
2361   if test -n "$ac_ct_STRIP"; then
2362   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367   IFS=$as_save_IFS
2368   test -z "$as_dir" && as_dir=.
2369     for ac_exec_ext in '' $ac_executable_extensions; do
2370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371     ac_cv_prog_ac_ct_STRIP="strip"
2372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2373     break 2
2374   fi
2375 done
2376   done
2377 IFS=$as_save_IFS
2378
2379 fi
2380 fi
2381 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2382 if test -n "$ac_ct_STRIP"; then
2383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2384 $as_echo "$ac_ct_STRIP" >&6; }
2385 else
2386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2387 $as_echo "no" >&6; }
2388 fi
2389
2390   if test "x$ac_ct_STRIP" = x; then
2391     STRIP=":"
2392   else
2393     case $cross_compiling:$ac_tool_warned in
2394 yes:)
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2397 ac_tool_warned=yes ;;
2398 esac
2399     STRIP=$ac_ct_STRIP
2400   fi
2401 else
2402   STRIP="$ac_cv_prog_STRIP"
2403 fi
2404
2405 fi
2406 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2407
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2409 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2410 if test -z "$MKDIR_P"; then
2411   if ${ac_cv_path_mkdir+:} false; then :
2412   $as_echo_n "(cached) " >&6
2413 else
2414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2416 do
2417   IFS=$as_save_IFS
2418   test -z "$as_dir" && as_dir=.
2419     for ac_prog in mkdir gmkdir; do
2420          for ac_exec_ext in '' $ac_executable_extensions; do
2421            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2422            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2423              'mkdir (GNU coreutils) '* | \
2424              'mkdir (coreutils) '* | \
2425              'mkdir (fileutils) '4.1*)
2426                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2427                break 3;;
2428            esac
2429          done
2430        done
2431   done
2432 IFS=$as_save_IFS
2433
2434 fi
2435
2436   test -d ./--version && rmdir ./--version
2437   if test "${ac_cv_path_mkdir+set}" = set; then
2438     MKDIR_P="$ac_cv_path_mkdir -p"
2439   else
2440     # As a last resort, use the slow shell script.  Don't cache a
2441     # value for MKDIR_P within a source directory, because that will
2442     # break other packages using the cache if that directory is
2443     # removed, or if the value is a relative name.
2444     MKDIR_P="$ac_install_sh -d"
2445   fi
2446 fi
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2448 $as_echo "$MKDIR_P" >&6; }
2449
2450 mkdir_p="$MKDIR_P"
2451 case $mkdir_p in
2452   [\\/$]* | ?:[\\/]*) ;;
2453   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2454 esac
2455
2456 for ac_prog in gawk mawk nawk awk
2457 do
2458   # Extract the first word of "$ac_prog", so it can be a program name with args.
2459 set dummy $ac_prog; ac_word=$2
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2461 $as_echo_n "checking for $ac_word... " >&6; }
2462 if ${ac_cv_prog_AWK+:} false; then :
2463   $as_echo_n "(cached) " >&6
2464 else
2465   if test -n "$AWK"; then
2466   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471   IFS=$as_save_IFS
2472   test -z "$as_dir" && as_dir=.
2473     for ac_exec_ext in '' $ac_executable_extensions; do
2474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475     ac_cv_prog_AWK="$ac_prog"
2476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2477     break 2
2478   fi
2479 done
2480   done
2481 IFS=$as_save_IFS
2482
2483 fi
2484 fi
2485 AWK=$ac_cv_prog_AWK
2486 if test -n "$AWK"; then
2487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2488 $as_echo "$AWK" >&6; }
2489 else
2490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491 $as_echo "no" >&6; }
2492 fi
2493
2494
2495   test -n "$AWK" && break
2496 done
2497
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2499 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2500 set x ${MAKE-make}
2501 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2502 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2503   $as_echo_n "(cached) " >&6
2504 else
2505   cat >conftest.make <<\_ACEOF
2506 SHELL = /bin/sh
2507 all:
2508         @echo '@@@%%%=$(MAKE)=@@@%%%'
2509 _ACEOF
2510 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2511 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2512   *@@@%%%=?*=@@@%%%*)
2513     eval ac_cv_prog_make_${ac_make}_set=yes;;
2514   *)
2515     eval ac_cv_prog_make_${ac_make}_set=no;;
2516 esac
2517 rm -f conftest.make
2518 fi
2519 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2521 $as_echo "yes" >&6; }
2522   SET_MAKE=
2523 else
2524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2526   SET_MAKE="MAKE=${MAKE-make}"
2527 fi
2528
2529 rm -rf .tst 2>/dev/null
2530 mkdir .tst 2>/dev/null
2531 if test -d .tst; then
2532   am__leading_dot=.
2533 else
2534   am__leading_dot=_
2535 fi
2536 rmdir .tst 2>/dev/null
2537
2538 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2539   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2540   # is not polluted with repeated "-I."
2541   am__isrc=' -I$(srcdir)'
2542   # test to see if srcdir already configured
2543   if test -f $srcdir/config.status; then
2544     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2545   fi
2546 fi
2547
2548 # test whether we have cygpath
2549 if test -z "$CYGPATH_W"; then
2550   if (cygpath --version) >/dev/null 2>/dev/null; then
2551     CYGPATH_W='cygpath -w'
2552   else
2553     CYGPATH_W=echo
2554   fi
2555 fi
2556
2557
2558 # Define the identity of the package.
2559  PACKAGE='gacela'
2560  VERSION='0.5'
2561
2562
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE "$PACKAGE"
2565 _ACEOF
2566
2567
2568 cat >>confdefs.h <<_ACEOF
2569 #define VERSION "$VERSION"
2570 _ACEOF
2571
2572 # Some tools Automake needs.
2573
2574 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2575
2576
2577 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2578
2579
2580 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2581
2582
2583 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2584
2585
2586 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2587
2588 # We need awk for the "check" target.  The system "awk" is bad on
2589 # some platforms.
2590 # Always define AMTAR for backward compatibility.
2591
2592 AMTAR=${AMTAR-"${am_missing_run}tar"}
2593
2594 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2595
2596
2597
2598
2599
2600 ac_ext=c
2601 ac_cpp='$CPP $CPPFLAGS'
2602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605 if test -n "$ac_tool_prefix"; then
2606   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2607 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if ${ac_cv_prog_CC+:} false; then :
2611   $as_echo_n "(cached) " >&6
2612 else
2613   if test -n "$CC"; then
2614   ac_cv_prog_CC="$CC" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619   IFS=$as_save_IFS
2620   test -z "$as_dir" && as_dir=.
2621     for ac_exec_ext in '' $ac_executable_extensions; do
2622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625     break 2
2626   fi
2627 done
2628   done
2629 IFS=$as_save_IFS
2630
2631 fi
2632 fi
2633 CC=$ac_cv_prog_CC
2634 if test -n "$CC"; then
2635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2636 $as_echo "$CC" >&6; }
2637 else
2638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2640 fi
2641
2642
2643 fi
2644 if test -z "$ac_cv_prog_CC"; then
2645   ac_ct_CC=$CC
2646   # Extract the first word of "gcc", so it can be a program name with args.
2647 set dummy gcc; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2651   $as_echo_n "(cached) " >&6
2652 else
2653   if test -n "$ac_ct_CC"; then
2654   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659   IFS=$as_save_IFS
2660   test -z "$as_dir" && as_dir=.
2661     for ac_exec_ext in '' $ac_executable_extensions; do
2662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663     ac_cv_prog_ac_ct_CC="gcc"
2664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665     break 2
2666   fi
2667 done
2668   done
2669 IFS=$as_save_IFS
2670
2671 fi
2672 fi
2673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674 if test -n "$ac_ct_CC"; then
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2676 $as_echo "$ac_ct_CC" >&6; }
2677 else
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 fi
2681
2682   if test "x$ac_ct_CC" = x; then
2683     CC=""
2684   else
2685     case $cross_compiling:$ac_tool_warned in
2686 yes:)
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2689 ac_tool_warned=yes ;;
2690 esac
2691     CC=$ac_ct_CC
2692   fi
2693 else
2694   CC="$ac_cv_prog_CC"
2695 fi
2696
2697 if test -z "$CC"; then
2698           if test -n "$ac_tool_prefix"; then
2699     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2700 set dummy ${ac_tool_prefix}cc; ac_word=$2
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if ${ac_cv_prog_CC+:} false; then :
2704   $as_echo_n "(cached) " >&6
2705 else
2706   if test -n "$CC"; then
2707   ac_cv_prog_CC="$CC" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712   IFS=$as_save_IFS
2713   test -z "$as_dir" && as_dir=.
2714     for ac_exec_ext in '' $ac_executable_extensions; do
2715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2716     ac_cv_prog_CC="${ac_tool_prefix}cc"
2717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718     break 2
2719   fi
2720 done
2721   done
2722 IFS=$as_save_IFS
2723
2724 fi
2725 fi
2726 CC=$ac_cv_prog_CC
2727 if test -n "$CC"; then
2728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2729 $as_echo "$CC" >&6; }
2730 else
2731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 $as_echo "no" >&6; }
2733 fi
2734
2735
2736   fi
2737 fi
2738 if test -z "$CC"; then
2739   # Extract the first word of "cc", so it can be a program name with args.
2740 set dummy cc; ac_word=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if ${ac_cv_prog_CC+:} false; then :
2744   $as_echo_n "(cached) " >&6
2745 else
2746   if test -n "$CC"; then
2747   ac_cv_prog_CC="$CC" # Let the user override the test.
2748 else
2749   ac_prog_rejected=no
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753   IFS=$as_save_IFS
2754   test -z "$as_dir" && as_dir=.
2755     for ac_exec_ext in '' $ac_executable_extensions; do
2756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2758        ac_prog_rejected=yes
2759        continue
2760      fi
2761     ac_cv_prog_CC="cc"
2762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763     break 2
2764   fi
2765 done
2766   done
2767 IFS=$as_save_IFS
2768
2769 if test $ac_prog_rejected = yes; then
2770   # We found a bogon in the path, so make sure we never use it.
2771   set dummy $ac_cv_prog_CC
2772   shift
2773   if test $# != 0; then
2774     # We chose a different compiler from the bogus one.
2775     # However, it has the same basename, so the bogon will be chosen
2776     # first if we set CC to just the basename; use the full file name.
2777     shift
2778     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2779   fi
2780 fi
2781 fi
2782 fi
2783 CC=$ac_cv_prog_CC
2784 if test -n "$CC"; then
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2786 $as_echo "$CC" >&6; }
2787 else
2788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792
2793 fi
2794 if test -z "$CC"; then
2795   if test -n "$ac_tool_prefix"; then
2796   for ac_prog in cl.exe
2797   do
2798     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2799 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_CC+:} false; then :
2803   $as_echo_n "(cached) " >&6
2804 else
2805   if test -n "$CC"; then
2806   ac_cv_prog_CC="$CC" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811   IFS=$as_save_IFS
2812   test -z "$as_dir" && as_dir=.
2813     for ac_exec_ext in '' $ac_executable_extensions; do
2814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817     break 2
2818   fi
2819 done
2820   done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 CC=$ac_cv_prog_CC
2826 if test -n "$CC"; then
2827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2828 $as_echo "$CC" >&6; }
2829 else
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2832 fi
2833
2834
2835     test -n "$CC" && break
2836   done
2837 fi
2838 if test -z "$CC"; then
2839   ac_ct_CC=$CC
2840   for ac_prog in cl.exe
2841 do
2842   # Extract the first word of "$ac_prog", so it can be a program name with args.
2843 set dummy $ac_prog; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2847   $as_echo_n "(cached) " >&6
2848 else
2849   if test -n "$ac_ct_CC"; then
2850   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855   IFS=$as_save_IFS
2856   test -z "$as_dir" && as_dir=.
2857     for ac_exec_ext in '' $ac_executable_extensions; do
2858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859     ac_cv_prog_ac_ct_CC="$ac_prog"
2860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861     break 2
2862   fi
2863 done
2864   done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2870 if test -n "$ac_ct_CC"; then
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2872 $as_echo "$ac_ct_CC" >&6; }
2873 else
2874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878
2879   test -n "$ac_ct_CC" && break
2880 done
2881
2882   if test "x$ac_ct_CC" = x; then
2883     CC=""
2884   else
2885     case $cross_compiling:$ac_tool_warned in
2886 yes:)
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2889 ac_tool_warned=yes ;;
2890 esac
2891     CC=$ac_ct_CC
2892   fi
2893 fi
2894
2895 fi
2896
2897
2898 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2900 as_fn_error $? "no acceptable C compiler found in \$PATH
2901 See \`config.log' for more details" "$LINENO" 5; }
2902
2903 # Provide some information about the compiler.
2904 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2905 set X $ac_compile
2906 ac_compiler=$2
2907 for ac_option in --version -v -V -qversion; do
2908   { { ac_try="$ac_compiler $ac_option >&5"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2914 $as_echo "$ac_try_echo"; } >&5
2915   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2916   ac_status=$?
2917   if test -s conftest.err; then
2918     sed '10a\
2919 ... rest of stderr output deleted ...
2920          10q' conftest.err >conftest.er1
2921     cat conftest.er1 >&5
2922   fi
2923   rm -f conftest.er1 conftest.err
2924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925   test $ac_status = 0; }
2926 done
2927
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h.  */
2930
2931 int
2932 main ()
2933 {
2934
2935   ;
2936   return 0;
2937 }
2938 _ACEOF
2939 ac_clean_files_save=$ac_clean_files
2940 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2941 # Try to create an executable without -o first, disregard a.out.
2942 # It will help us diagnose broken compilers, and finding out an intuition
2943 # of exeext.
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2945 $as_echo_n "checking whether the C compiler works... " >&6; }
2946 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2947
2948 # The possible output files:
2949 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2950
2951 ac_rmfiles=
2952 for ac_file in $ac_files
2953 do
2954   case $ac_file in
2955     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2956     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2957   esac
2958 done
2959 rm -f $ac_rmfiles
2960
2961 if { { ac_try="$ac_link_default"
2962 case "(($ac_try" in
2963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964   *) ac_try_echo=$ac_try;;
2965 esac
2966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967 $as_echo "$ac_try_echo"; } >&5
2968   (eval "$ac_link_default") 2>&5
2969   ac_status=$?
2970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971   test $ac_status = 0; }; then :
2972   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2973 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2974 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2975 # so that the user can short-circuit this test for compilers unknown to
2976 # Autoconf.
2977 for ac_file in $ac_files ''
2978 do
2979   test -f "$ac_file" || continue
2980   case $ac_file in
2981     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2982         ;;
2983     [ab].out )
2984         # We found the default executable, but exeext='' is most
2985         # certainly right.
2986         break;;
2987     *.* )
2988         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2989         then :; else
2990            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2991         fi
2992         # We set ac_cv_exeext here because the later test for it is not
2993         # safe: cross compilers may not add the suffix if given an `-o'
2994         # argument, so we may need to know it at that point already.
2995         # Even if this section looks crufty: it has the advantage of
2996         # actually working.
2997         break;;
2998     * )
2999         break;;
3000   esac
3001 done
3002 test "$ac_cv_exeext" = no && ac_cv_exeext=
3003
3004 else
3005   ac_file=''
3006 fi
3007 if test -z "$ac_file"; then :
3008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010 $as_echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3012
3013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 as_fn_error 77 "C compiler cannot create executables
3016 See \`config.log' for more details" "$LINENO" 5; }
3017 else
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3019 $as_echo "yes" >&6; }
3020 fi
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3022 $as_echo_n "checking for C compiler default output file name... " >&6; }
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3024 $as_echo "$ac_file" >&6; }
3025 ac_exeext=$ac_cv_exeext
3026
3027 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3028 ac_clean_files=$ac_clean_files_save
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3030 $as_echo_n "checking for suffix of executables... " >&6; }
3031 if { { ac_try="$ac_link"
3032 case "(($ac_try" in
3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034   *) ac_try_echo=$ac_try;;
3035 esac
3036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038   (eval "$ac_link") 2>&5
3039   ac_status=$?
3040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041   test $ac_status = 0; }; then :
3042   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3043 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3044 # work properly (i.e., refer to `conftest.exe'), while it won't with
3045 # `rm'.
3046 for ac_file in conftest.exe conftest conftest.*; do
3047   test -f "$ac_file" || continue
3048   case $ac_file in
3049     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3050     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3051           break;;
3052     * ) break;;
3053   esac
3054 done
3055 else
3056   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3059 See \`config.log' for more details" "$LINENO" 5; }
3060 fi
3061 rm -f conftest conftest$ac_cv_exeext
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3063 $as_echo "$ac_cv_exeext" >&6; }
3064
3065 rm -f conftest.$ac_ext
3066 EXEEXT=$ac_cv_exeext
3067 ac_exeext=$EXEEXT
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h.  */
3070 #include <stdio.h>
3071 int
3072 main ()
3073 {
3074 FILE *f = fopen ("conftest.out", "w");
3075  return ferror (f) || fclose (f) != 0;
3076
3077   ;
3078   return 0;
3079 }
3080 _ACEOF
3081 ac_clean_files="$ac_clean_files conftest.out"
3082 # Check that the compiler produces executables we can run.  If not, either
3083 # the compiler is broken, or we cross compile.
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3085 $as_echo_n "checking whether we are cross compiling... " >&6; }
3086 if test "$cross_compiling" != yes; then
3087   { { ac_try="$ac_link"
3088 case "(($ac_try" in
3089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090   *) ac_try_echo=$ac_try;;
3091 esac
3092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093 $as_echo "$ac_try_echo"; } >&5
3094   (eval "$ac_link") 2>&5
3095   ac_status=$?
3096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097   test $ac_status = 0; }
3098   if { ac_try='./conftest$ac_cv_exeext'
3099   { { case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104 $as_echo "$ac_try_echo"; } >&5
3105   (eval "$ac_try") 2>&5
3106   ac_status=$?
3107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108   test $ac_status = 0; }; }; then
3109     cross_compiling=no
3110   else
3111     if test "$cross_compiling" = maybe; then
3112         cross_compiling=yes
3113     else
3114         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116 as_fn_error $? "cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details" "$LINENO" 5; }
3119     fi
3120   fi
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3123 $as_echo "$cross_compiling" >&6; }
3124
3125 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3126 ac_clean_files=$ac_clean_files_save
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3128 $as_echo_n "checking for suffix of object files... " >&6; }
3129 if ${ac_cv_objext+:} false; then :
3130   $as_echo_n "(cached) " >&6
3131 else
3132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 /* end confdefs.h.  */
3134
3135 int
3136 main ()
3137 {
3138
3139   ;
3140   return 0;
3141 }
3142 _ACEOF
3143 rm -f conftest.o conftest.obj
3144 if { { ac_try="$ac_compile"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150 $as_echo "$ac_try_echo"; } >&5
3151   (eval "$ac_compile") 2>&5
3152   ac_status=$?
3153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154   test $ac_status = 0; }; then :
3155   for ac_file in conftest.o conftest.obj conftest.*; do
3156   test -f "$ac_file" || continue;
3157   case $ac_file in
3158     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3159     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3160        break;;
3161   esac
3162 done
3163 else
3164   $as_echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3166
3167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 as_fn_error $? "cannot compute suffix of object files: cannot compile
3170 See \`config.log' for more details" "$LINENO" 5; }
3171 fi
3172 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3173 fi
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3175 $as_echo "$ac_cv_objext" >&6; }
3176 OBJEXT=$ac_cv_objext
3177 ac_objext=$OBJEXT
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3179 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3180 if ${ac_cv_c_compiler_gnu+:} false; then :
3181   $as_echo_n "(cached) " >&6
3182 else
3183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h.  */
3185
3186 int
3187 main ()
3188 {
3189 #ifndef __GNUC__
3190        choke me
3191 #endif
3192
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 if ac_fn_c_try_compile "$LINENO"; then :
3198   ac_compiler_gnu=yes
3199 else
3200   ac_compiler_gnu=no
3201 fi
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3204
3205 fi
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3207 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3208 if test $ac_compiler_gnu = yes; then
3209   GCC=yes
3210 else
3211   GCC=
3212 fi
3213 ac_test_CFLAGS=${CFLAGS+set}
3214 ac_save_CFLAGS=$CFLAGS
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3216 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3217 if ${ac_cv_prog_cc_g+:} false; then :
3218   $as_echo_n "(cached) " >&6
3219 else
3220   ac_save_c_werror_flag=$ac_c_werror_flag
3221    ac_c_werror_flag=yes
3222    ac_cv_prog_cc_g=no
3223    CFLAGS="-g"
3224    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h.  */
3226
3227 int
3228 main ()
3229 {
3230
3231   ;
3232   return 0;
3233 }
3234 _ACEOF
3235 if ac_fn_c_try_compile "$LINENO"; then :
3236   ac_cv_prog_cc_g=yes
3237 else
3238   CFLAGS=""
3239       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h.  */
3241
3242 int
3243 main ()
3244 {
3245
3246   ;
3247   return 0;
3248 }
3249 _ACEOF
3250 if ac_fn_c_try_compile "$LINENO"; then :
3251
3252 else
3253   ac_c_werror_flag=$ac_save_c_werror_flag
3254          CFLAGS="-g"
3255          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h.  */
3257
3258 int
3259 main ()
3260 {
3261
3262   ;
3263   return 0;
3264 }
3265 _ACEOF
3266 if ac_fn_c_try_compile "$LINENO"; then :
3267   ac_cv_prog_cc_g=yes
3268 fi
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 fi
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 fi
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274    ac_c_werror_flag=$ac_save_c_werror_flag
3275 fi
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3277 $as_echo "$ac_cv_prog_cc_g" >&6; }
3278 if test "$ac_test_CFLAGS" = set; then
3279   CFLAGS=$ac_save_CFLAGS
3280 elif test $ac_cv_prog_cc_g = yes; then
3281   if test "$GCC" = yes; then
3282     CFLAGS="-g -O2"
3283   else
3284     CFLAGS="-g"
3285   fi
3286 else
3287   if test "$GCC" = yes; then
3288     CFLAGS="-O2"
3289   else
3290     CFLAGS=
3291   fi
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3294 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3295 if ${ac_cv_prog_cc_c89+:} false; then :
3296   $as_echo_n "(cached) " >&6
3297 else
3298   ac_cv_prog_cc_c89=no
3299 ac_save_CC=$CC
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h.  */
3302 #include <stdarg.h>
3303 #include <stdio.h>
3304 #include <sys/types.h>
3305 #include <sys/stat.h>
3306 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3307 struct buf { int x; };
3308 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3309 static char *e (p, i)
3310      char **p;
3311      int i;
3312 {
3313   return p[i];
3314 }
3315 static char *f (char * (*g) (char **, int), char **p, ...)
3316 {
3317   char *s;
3318   va_list v;
3319   va_start (v,p);
3320   s = g (p, va_arg (v,int));
3321   va_end (v);
3322   return s;
3323 }
3324
3325 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3326    function prototypes and stuff, but not '\xHH' hex character constants.
3327    These don't provoke an error unfortunately, instead are silently treated
3328    as 'x'.  The following induces an error, until -std is added to get
3329    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3330    array size at least.  It's necessary to write '\x00'==0 to get something
3331    that's true only with -std.  */
3332 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3333
3334 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3335    inside strings and character constants.  */
3336 #define FOO(x) 'x'
3337 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3338
3339 int test (int i, double x);
3340 struct s1 {int (*f) (int a);};
3341 struct s2 {int (*f) (double a);};
3342 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3343 int argc;
3344 char **argv;
3345 int
3346 main ()
3347 {
3348 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3349   ;
3350   return 0;
3351 }
3352 _ACEOF
3353 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3354         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3355 do
3356   CC="$ac_save_CC $ac_arg"
3357   if ac_fn_c_try_compile "$LINENO"; then :
3358   ac_cv_prog_cc_c89=$ac_arg
3359 fi
3360 rm -f core conftest.err conftest.$ac_objext
3361   test "x$ac_cv_prog_cc_c89" != "xno" && break
3362 done
3363 rm -f conftest.$ac_ext
3364 CC=$ac_save_CC
3365
3366 fi
3367 # AC_CACHE_VAL
3368 case "x$ac_cv_prog_cc_c89" in
3369   x)
3370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3371 $as_echo "none needed" >&6; } ;;
3372   xno)
3373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3374 $as_echo "unsupported" >&6; } ;;
3375   *)
3376     CC="$CC $ac_cv_prog_cc_c89"
3377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3378 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3379 esac
3380 if test "x$ac_cv_prog_cc_c89" != xno; then :
3381
3382 fi
3383
3384 ac_ext=c
3385 ac_cpp='$CPP $CPPFLAGS'
3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 DEPDIR="${am__leading_dot}deps"
3390
3391 ac_config_commands="$ac_config_commands depfiles"
3392
3393
3394 am_make=${MAKE-make}
3395 cat > confinc << 'END'
3396 am__doit:
3397         @echo this is the am__doit target
3398 .PHONY: am__doit
3399 END
3400 # If we don't find an include directive, just comment out the code.
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3402 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3403 am__include="#"
3404 am__quote=
3405 _am_result=none
3406 # First try GNU make style include.
3407 echo "include confinc" > confmf
3408 # Ignore all kinds of additional output from `make'.
3409 case `$am_make -s -f confmf 2> /dev/null` in #(
3410 *the\ am__doit\ target*)
3411   am__include=include
3412   am__quote=
3413   _am_result=GNU
3414   ;;
3415 esac
3416 # Now try BSD make style include.
3417 if test "$am__include" = "#"; then
3418    echo '.include "confinc"' > confmf
3419    case `$am_make -s -f confmf 2> /dev/null` in #(
3420    *the\ am__doit\ target*)
3421      am__include=.include
3422      am__quote="\""
3423      _am_result=BSD
3424      ;;
3425    esac
3426 fi
3427
3428
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3430 $as_echo "$_am_result" >&6; }
3431 rm -f confinc confmf
3432
3433 # Check whether --enable-dependency-tracking was given.
3434 if test "${enable_dependency_tracking+set}" = set; then :
3435   enableval=$enable_dependency_tracking;
3436 fi
3437
3438 if test "x$enable_dependency_tracking" != xno; then
3439   am_depcomp="$ac_aux_dir/depcomp"
3440   AMDEPBACKSLASH='\'
3441 fi
3442  if test "x$enable_dependency_tracking" != xno; then
3443   AMDEP_TRUE=
3444   AMDEP_FALSE='#'
3445 else
3446   AMDEP_TRUE='#'
3447   AMDEP_FALSE=
3448 fi
3449
3450
3451
3452 depcc="$CC"   am_compiler_list=
3453
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3455 $as_echo_n "checking dependency style of $depcc... " >&6; }
3456 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3457   $as_echo_n "(cached) " >&6
3458 else
3459   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3460   # We make a subdir and do the tests there.  Otherwise we can end up
3461   # making bogus files that we don't know about and never remove.  For
3462   # instance it was reported that on HP-UX the gcc test will end up
3463   # making a dummy file named `D' -- because `-MD' means `put the output
3464   # in D'.
3465   mkdir conftest.dir
3466   # Copy depcomp to subdir because otherwise we won't find it if we're
3467   # using a relative directory.
3468   cp "$am_depcomp" conftest.dir
3469   cd conftest.dir
3470   # We will build objects and dependencies in a subdirectory because
3471   # it helps to detect inapplicable dependency modes.  For instance
3472   # both Tru64's cc and ICC support -MD to output dependencies as a
3473   # side effect of compilation, but ICC will put the dependencies in
3474   # the current directory while Tru64 will put them in the object
3475   # directory.
3476   mkdir sub
3477
3478   am_cv_CC_dependencies_compiler_type=none
3479   if test "$am_compiler_list" = ""; then
3480      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3481   fi
3482   am__universal=false
3483   case " $depcc " in #(
3484      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3485      esac
3486
3487   for depmode in $am_compiler_list; do
3488     # Setup a source with many dependencies, because some compilers
3489     # like to wrap large dependency lists on column 80 (with \), and
3490     # we should not choose a depcomp mode which is confused by this.
3491     #
3492     # We need to recreate these files for each test, as the compiler may
3493     # overwrite some of them when testing with obscure command lines.
3494     # This happens at least with the AIX C compiler.
3495     : > sub/conftest.c
3496     for i in 1 2 3 4 5 6; do
3497       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3498       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3499       # Solaris 8's {/usr,}/bin/sh.
3500       touch sub/conftst$i.h
3501     done
3502     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3503
3504     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3505     # mode.  It turns out that the SunPro C++ compiler does not properly
3506     # handle `-M -o', and we need to detect this.  Also, some Intel
3507     # versions had trouble with output in subdirs
3508     am__obj=sub/conftest.${OBJEXT-o}
3509     am__minus_obj="-o $am__obj"
3510     case $depmode in
3511     gcc)
3512       # This depmode causes a compiler race in universal mode.
3513       test "$am__universal" = false || continue
3514       ;;
3515     nosideeffect)
3516       # after this tag, mechanisms are not by side-effect, so they'll
3517       # only be used when explicitly requested
3518       if test "x$enable_dependency_tracking" = xyes; then
3519         continue
3520       else
3521         break
3522       fi
3523       ;;
3524     msvisualcpp | msvcmsys)
3525       # This compiler won't grok `-c -o', but also, the minuso test has
3526       # not run yet.  These depmodes are late enough in the game, and
3527       # so weak that their functioning should not be impacted.
3528       am__obj=conftest.${OBJEXT-o}
3529       am__minus_obj=
3530       ;;
3531     none) break ;;
3532     esac
3533     if depmode=$depmode \
3534        source=sub/conftest.c object=$am__obj \
3535        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3536        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3537          >/dev/null 2>conftest.err &&
3538        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3539        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3540        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3541        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3542       # icc doesn't choke on unknown options, it will just issue warnings
3543       # or remarks (even with -Werror).  So we grep stderr for any message
3544       # that says an option was ignored or not supported.
3545       # When given -MP, icc 7.0 and 7.1 complain thusly:
3546       #   icc: Command line warning: ignoring option '-M'; no argument required
3547       # The diagnosis changed in icc 8.0:
3548       #   icc: Command line remark: option '-MP' not supported
3549       if (grep 'ignoring option' conftest.err ||
3550           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3551         am_cv_CC_dependencies_compiler_type=$depmode
3552         break
3553       fi
3554     fi
3555   done
3556
3557   cd ..
3558   rm -rf conftest.dir
3559 else
3560   am_cv_CC_dependencies_compiler_type=none
3561 fi
3562
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3565 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3566 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3567
3568  if
3569   test "x$enable_dependency_tracking" != xno \
3570   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3571   am__fastdepCC_TRUE=
3572   am__fastdepCC_FALSE='#'
3573 else
3574   am__fastdepCC_TRUE='#'
3575   am__fastdepCC_FALSE=
3576 fi
3577
3578
3579 case `pwd` in
3580   *\ * | *\     *)
3581     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3582 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3583 esac
3584
3585
3586
3587 macro_version='2.4.2'
3588 macro_revision='1.3337'
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602 ltmain="$ac_aux_dir/ltmain.sh"
3603
3604 # Make sure we can run config.sub.
3605 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3606   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3607
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3609 $as_echo_n "checking build system type... " >&6; }
3610 if ${ac_cv_build+:} false; then :
3611   $as_echo_n "(cached) " >&6
3612 else
3613   ac_build_alias=$build_alias
3614 test "x$ac_build_alias" = x &&
3615   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3616 test "x$ac_build_alias" = x &&
3617   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3618 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3619   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3620
3621 fi
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3623 $as_echo "$ac_cv_build" >&6; }
3624 case $ac_cv_build in
3625 *-*-*) ;;
3626 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3627 esac
3628 build=$ac_cv_build
3629 ac_save_IFS=$IFS; IFS='-'
3630 set x $ac_cv_build
3631 shift
3632 build_cpu=$1
3633 build_vendor=$2
3634 shift; shift
3635 # Remember, the first character of IFS is used to create $*,
3636 # except with old shells:
3637 build_os=$*
3638 IFS=$ac_save_IFS
3639 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3640
3641
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3643 $as_echo_n "checking host system type... " >&6; }
3644 if ${ac_cv_host+:} false; then :
3645   $as_echo_n "(cached) " >&6
3646 else
3647   if test "x$host_alias" = x; then
3648   ac_cv_host=$ac_cv_build
3649 else
3650   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3651     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3652 fi
3653
3654 fi
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3656 $as_echo "$ac_cv_host" >&6; }
3657 case $ac_cv_host in
3658 *-*-*) ;;
3659 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3660 esac
3661 host=$ac_cv_host
3662 ac_save_IFS=$IFS; IFS='-'
3663 set x $ac_cv_host
3664 shift
3665 host_cpu=$1
3666 host_vendor=$2
3667 shift; shift
3668 # Remember, the first character of IFS is used to create $*,
3669 # except with old shells:
3670 host_os=$*
3671 IFS=$ac_save_IFS
3672 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3673
3674
3675 # Backslashify metacharacters that are still active within
3676 # double-quoted strings.
3677 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3678
3679 # Same as above, but do not quote variable references.
3680 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3681
3682 # Sed substitution to delay expansion of an escaped shell variable in a
3683 # double_quote_subst'ed string.
3684 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3685
3686 # Sed substitution to delay expansion of an escaped single quote.
3687 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3688
3689 # Sed substitution to avoid accidental globbing in evaled expressions
3690 no_glob_subst='s/\*/\\\*/g'
3691
3692 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3693 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3694 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3695
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3697 $as_echo_n "checking how to print strings... " >&6; }
3698 # Test print first, because it will be a builtin if present.
3699 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3700    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3701   ECHO='print -r --'
3702 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3703   ECHO='printf %s\n'
3704 else
3705   # Use this function as a fallback that always works.
3706   func_fallback_echo ()
3707   {
3708     eval 'cat <<_LTECHO_EOF
3709 $1
3710 _LTECHO_EOF'
3711   }
3712   ECHO='func_fallback_echo'
3713 fi
3714
3715 # func_echo_all arg...
3716 # Invoke $ECHO with all args, space-separated.
3717 func_echo_all ()
3718 {
3719     $ECHO ""
3720 }
3721
3722 case "$ECHO" in
3723   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3724 $as_echo "printf" >&6; } ;;
3725   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3726 $as_echo "print -r" >&6; } ;;
3727   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3728 $as_echo "cat" >&6; } ;;
3729 esac
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3745 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3746 if ${ac_cv_path_SED+:} false; then :
3747   $as_echo_n "(cached) " >&6
3748 else
3749             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3750      for ac_i in 1 2 3 4 5 6 7; do
3751        ac_script="$ac_script$as_nl$ac_script"
3752      done
3753      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3754      { ac_script=; unset ac_script;}
3755      if test -z "$SED"; then
3756   ac_path_SED_found=false
3757   # Loop through the user's path and test for each of PROGNAME-LIST
3758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3760 do
3761   IFS=$as_save_IFS
3762   test -z "$as_dir" && as_dir=.
3763     for ac_prog in sed gsed; do
3764     for ac_exec_ext in '' $ac_executable_extensions; do
3765       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3766       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3767 # Check for GNU ac_path_SED and select it if it is found.
3768   # Check for GNU $ac_path_SED
3769 case `"$ac_path_SED" --version 2>&1` in
3770 *GNU*)
3771   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3772 *)
3773   ac_count=0
3774   $as_echo_n 0123456789 >"conftest.in"
3775   while :
3776   do
3777     cat "conftest.in" "conftest.in" >"conftest.tmp"
3778     mv "conftest.tmp" "conftest.in"
3779     cp "conftest.in" "conftest.nl"
3780     $as_echo '' >> "conftest.nl"
3781     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3782     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3783     as_fn_arith $ac_count + 1 && ac_count=$as_val
3784     if test $ac_count -gt ${ac_path_SED_max-0}; then
3785       # Best one so far, save it but keep looking for a better one
3786       ac_cv_path_SED="$ac_path_SED"
3787       ac_path_SED_max=$ac_count
3788     fi
3789     # 10*(2^10) chars as input seems more than enough
3790     test $ac_count -gt 10 && break
3791   done
3792   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3793 esac
3794
3795       $ac_path_SED_found && break 3
3796     done
3797   done
3798   done
3799 IFS=$as_save_IFS
3800   if test -z "$ac_cv_path_SED"; then
3801     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3802   fi
3803 else
3804   ac_cv_path_SED=$SED
3805 fi
3806
3807 fi
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3809 $as_echo "$ac_cv_path_SED" >&6; }
3810  SED="$ac_cv_path_SED"
3811   rm -f conftest.sed
3812
3813 test -z "$SED" && SED=sed
3814 Xsed="$SED -e 1s/^X//"
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3827 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3828 if ${ac_cv_path_GREP+:} false; then :
3829   $as_echo_n "(cached) " >&6
3830 else
3831   if test -z "$GREP"; then
3832   ac_path_GREP_found=false
3833   # Loop through the user's path and test for each of PROGNAME-LIST
3834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3836 do
3837   IFS=$as_save_IFS
3838   test -z "$as_dir" && as_dir=.
3839     for ac_prog in grep ggrep; do
3840     for ac_exec_ext in '' $ac_executable_extensions; do
3841       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3842       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3843 # Check for GNU ac_path_GREP and select it if it is found.
3844   # Check for GNU $ac_path_GREP
3845 case `"$ac_path_GREP" --version 2>&1` in
3846 *GNU*)
3847   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3848 *)
3849   ac_count=0
3850   $as_echo_n 0123456789 >"conftest.in"
3851   while :
3852   do
3853     cat "conftest.in" "conftest.in" >"conftest.tmp"
3854     mv "conftest.tmp" "conftest.in"
3855     cp "conftest.in" "conftest.nl"
3856     $as_echo 'GREP' >> "conftest.nl"
3857     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3858     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3859     as_fn_arith $ac_count + 1 && ac_count=$as_val
3860     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3861       # Best one so far, save it but keep looking for a better one
3862       ac_cv_path_GREP="$ac_path_GREP"
3863       ac_path_GREP_max=$ac_count
3864     fi
3865     # 10*(2^10) chars as input seems more than enough
3866     test $ac_count -gt 10 && break
3867   done
3868   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3869 esac
3870
3871       $ac_path_GREP_found && break 3
3872     done
3873   done
3874   done
3875 IFS=$as_save_IFS
3876   if test -z "$ac_cv_path_GREP"; then
3877     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3878   fi
3879 else
3880   ac_cv_path_GREP=$GREP
3881 fi
3882
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3885 $as_echo "$ac_cv_path_GREP" >&6; }
3886  GREP="$ac_cv_path_GREP"
3887
3888
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3890 $as_echo_n "checking for egrep... " >&6; }
3891 if ${ac_cv_path_EGREP+:} false; then :
3892   $as_echo_n "(cached) " >&6
3893 else
3894   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3895    then ac_cv_path_EGREP="$GREP -E"
3896    else
3897      if test -z "$EGREP"; then
3898   ac_path_EGREP_found=false
3899   # Loop through the user's path and test for each of PROGNAME-LIST
3900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3902 do
3903   IFS=$as_save_IFS
3904   test -z "$as_dir" && as_dir=.
3905     for ac_prog in egrep; do
3906     for ac_exec_ext in '' $ac_executable_extensions; do
3907       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3908       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3909 # Check for GNU ac_path_EGREP and select it if it is found.
3910   # Check for GNU $ac_path_EGREP
3911 case `"$ac_path_EGREP" --version 2>&1` in
3912 *GNU*)
3913   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3914 *)
3915   ac_count=0
3916   $as_echo_n 0123456789 >"conftest.in"
3917   while :
3918   do
3919     cat "conftest.in" "conftest.in" >"conftest.tmp"
3920     mv "conftest.tmp" "conftest.in"
3921     cp "conftest.in" "conftest.nl"
3922     $as_echo 'EGREP' >> "conftest.nl"
3923     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3924     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3925     as_fn_arith $ac_count + 1 && ac_count=$as_val
3926     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3927       # Best one so far, save it but keep looking for a better one
3928       ac_cv_path_EGREP="$ac_path_EGREP"
3929       ac_path_EGREP_max=$ac_count
3930     fi
3931     # 10*(2^10) chars as input seems more than enough
3932     test $ac_count -gt 10 && break
3933   done
3934   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3935 esac
3936
3937       $ac_path_EGREP_found && break 3
3938     done
3939   done
3940   done
3941 IFS=$as_save_IFS
3942   if test -z "$ac_cv_path_EGREP"; then
3943     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3944   fi
3945 else
3946   ac_cv_path_EGREP=$EGREP
3947 fi
3948
3949    fi
3950 fi
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3952 $as_echo "$ac_cv_path_EGREP" >&6; }
3953  EGREP="$ac_cv_path_EGREP"
3954
3955
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3957 $as_echo_n "checking for fgrep... " >&6; }
3958 if ${ac_cv_path_FGREP+:} false; then :
3959   $as_echo_n "(cached) " >&6
3960 else
3961   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3962    then ac_cv_path_FGREP="$GREP -F"
3963    else
3964      if test -z "$FGREP"; then
3965   ac_path_FGREP_found=false
3966   # Loop through the user's path and test for each of PROGNAME-LIST
3967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972     for ac_prog in fgrep; do
3973     for ac_exec_ext in '' $ac_executable_extensions; do
3974       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3975       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3976 # Check for GNU ac_path_FGREP and select it if it is found.
3977   # Check for GNU $ac_path_FGREP
3978 case `"$ac_path_FGREP" --version 2>&1` in
3979 *GNU*)
3980   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3981 *)
3982   ac_count=0
3983   $as_echo_n 0123456789 >"conftest.in"
3984   while :
3985   do
3986     cat "conftest.in" "conftest.in" >"conftest.tmp"
3987     mv "conftest.tmp" "conftest.in"
3988     cp "conftest.in" "conftest.nl"
3989     $as_echo 'FGREP' >> "conftest.nl"
3990     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3991     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3992     as_fn_arith $ac_count + 1 && ac_count=$as_val
3993     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3994       # Best one so far, save it but keep looking for a better one
3995       ac_cv_path_FGREP="$ac_path_FGREP"
3996       ac_path_FGREP_max=$ac_count
3997     fi
3998     # 10*(2^10) chars as input seems more than enough
3999     test $ac_count -gt 10 && break
4000   done
4001   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4002 esac
4003
4004       $ac_path_FGREP_found && break 3
4005     done
4006   done
4007   done
4008 IFS=$as_save_IFS
4009   if test -z "$ac_cv_path_FGREP"; then
4010     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4011   fi
4012 else
4013   ac_cv_path_FGREP=$FGREP
4014 fi
4015
4016    fi
4017 fi
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4019 $as_echo "$ac_cv_path_FGREP" >&6; }
4020  FGREP="$ac_cv_path_FGREP"
4021
4022
4023 test -z "$GREP" && GREP=grep
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043 # Check whether --with-gnu-ld was given.
4044 if test "${with_gnu_ld+set}" = set; then :
4045   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4046 else
4047   with_gnu_ld=no
4048 fi
4049
4050 ac_prog=ld
4051 if test "$GCC" = yes; then
4052   # Check if gcc -print-prog-name=ld gives a path.
4053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4054 $as_echo_n "checking for ld used by $CC... " >&6; }
4055   case $host in
4056   *-*-mingw*)
4057     # gcc leaves a trailing carriage return which upsets mingw
4058     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4059   *)
4060     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4061   esac
4062   case $ac_prog in
4063     # Accept absolute paths.
4064     [\\/]* | ?:[\\/]*)
4065       re_direlt='/[^/][^/]*/\.\./'
4066       # Canonicalize the pathname of ld
4067       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4068       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4069         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4070       done
4071       test -z "$LD" && LD="$ac_prog"
4072       ;;
4073   "")
4074     # If it fails, then pretend we aren't using GCC.
4075     ac_prog=ld
4076     ;;
4077   *)
4078     # If it is relative, then search for the first ld in PATH.
4079     with_gnu_ld=unknown
4080     ;;
4081   esac
4082 elif test "$with_gnu_ld" = yes; then
4083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4084 $as_echo_n "checking for GNU ld... " >&6; }
4085 else
4086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4087 $as_echo_n "checking for non-GNU ld... " >&6; }
4088 fi
4089 if ${lt_cv_path_LD+:} false; then :
4090   $as_echo_n "(cached) " >&6
4091 else
4092   if test -z "$LD"; then
4093   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4094   for ac_dir in $PATH; do
4095     IFS="$lt_save_ifs"
4096     test -z "$ac_dir" && ac_dir=.
4097     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4098       lt_cv_path_LD="$ac_dir/$ac_prog"
4099       # Check to see if the program is GNU ld.  I'd rather use --version,
4100       # but apparently some variants of GNU ld only accept -v.
4101       # Break only if it was the GNU/non-GNU ld that we prefer.
4102       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4103       *GNU* | *'with BFD'*)
4104         test "$with_gnu_ld" != no && break
4105         ;;
4106       *)
4107         test "$with_gnu_ld" != yes && break
4108         ;;
4109       esac
4110     fi
4111   done
4112   IFS="$lt_save_ifs"
4113 else
4114   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4115 fi
4116 fi
4117
4118 LD="$lt_cv_path_LD"
4119 if test -n "$LD"; then
4120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4121 $as_echo "$LD" >&6; }
4122 else
4123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4125 fi
4126 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4128 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4129 if ${lt_cv_prog_gnu_ld+:} false; then :
4130   $as_echo_n "(cached) " >&6
4131 else
4132   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4133 case `$LD -v 2>&1 </dev/null` in
4134 *GNU* | *'with BFD'*)
4135   lt_cv_prog_gnu_ld=yes
4136   ;;
4137 *)
4138   lt_cv_prog_gnu_ld=no
4139   ;;
4140 esac
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4143 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4144 with_gnu_ld=$lt_cv_prog_gnu_ld
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4155 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4156 if ${lt_cv_path_NM+:} false; then :
4157   $as_echo_n "(cached) " >&6
4158 else
4159   if test -n "$NM"; then
4160   # Let the user override the test.
4161   lt_cv_path_NM="$NM"
4162 else
4163   lt_nm_to_check="${ac_tool_prefix}nm"
4164   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4165     lt_nm_to_check="$lt_nm_to_check nm"
4166   fi
4167   for lt_tmp_nm in $lt_nm_to_check; do
4168     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4169     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4170       IFS="$lt_save_ifs"
4171       test -z "$ac_dir" && ac_dir=.
4172       tmp_nm="$ac_dir/$lt_tmp_nm"
4173       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4174         # Check to see if the nm accepts a BSD-compat flag.
4175         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4176         #   nm: unknown option "B" ignored
4177         # Tru64's nm complains that /dev/null is an invalid object file
4178         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4179         */dev/null* | *'Invalid file or object type'*)
4180           lt_cv_path_NM="$tmp_nm -B"
4181           break
4182           ;;
4183         *)
4184           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4185           */dev/null*)
4186             lt_cv_path_NM="$tmp_nm -p"
4187             break
4188             ;;
4189           *)
4190             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4191             continue # so that we can try to find one that supports BSD flags
4192             ;;
4193           esac
4194           ;;
4195         esac
4196       fi
4197     done
4198     IFS="$lt_save_ifs"
4199   done
4200   : ${lt_cv_path_NM=no}
4201 fi
4202 fi
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4204 $as_echo "$lt_cv_path_NM" >&6; }
4205 if test "$lt_cv_path_NM" != "no"; then
4206   NM="$lt_cv_path_NM"
4207 else
4208   # Didn't find any BSD compatible name lister, look for dumpbin.
4209   if test -n "$DUMPBIN"; then :
4210     # Let the user override the test.
4211   else
4212     if test -n "$ac_tool_prefix"; then
4213   for ac_prog in dumpbin "link -dump"
4214   do
4215     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_DUMPBIN+:} false; then :
4220   $as_echo_n "(cached) " >&6
4221 else
4222   if test -n "$DUMPBIN"; then
4223   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228   IFS=$as_save_IFS
4229   test -z "$as_dir" && as_dir=.
4230     for ac_exec_ext in '' $ac_executable_extensions; do
4231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234     break 2
4235   fi
4236 done
4237   done
4238 IFS=$as_save_IFS
4239
4240 fi
4241 fi
4242 DUMPBIN=$ac_cv_prog_DUMPBIN
4243 if test -n "$DUMPBIN"; then
4244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4245 $as_echo "$DUMPBIN" >&6; }
4246 else
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4249 fi
4250
4251
4252     test -n "$DUMPBIN" && break
4253   done
4254 fi
4255 if test -z "$DUMPBIN"; then
4256   ac_ct_DUMPBIN=$DUMPBIN
4257   for ac_prog in dumpbin "link -dump"
4258 do
4259   # Extract the first word of "$ac_prog", so it can be a program name with args.
4260 set dummy $ac_prog; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   if test -n "$ac_ct_DUMPBIN"; then
4267   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272   IFS=$as_save_IFS
4273   test -z "$as_dir" && as_dir=.
4274     for ac_exec_ext in '' $ac_executable_extensions; do
4275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278     break 2
4279   fi
4280 done
4281   done
4282 IFS=$as_save_IFS
4283
4284 fi
4285 fi
4286 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4287 if test -n "$ac_ct_DUMPBIN"; then
4288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4289 $as_echo "$ac_ct_DUMPBIN" >&6; }
4290 else
4291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4293 fi
4294
4295
4296   test -n "$ac_ct_DUMPBIN" && break
4297 done
4298
4299   if test "x$ac_ct_DUMPBIN" = x; then
4300     DUMPBIN=":"
4301   else
4302     case $cross_compiling:$ac_tool_warned in
4303 yes:)
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306 ac_tool_warned=yes ;;
4307 esac
4308     DUMPBIN=$ac_ct_DUMPBIN
4309   fi
4310 fi
4311
4312     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4313     *COFF*)
4314       DUMPBIN="$DUMPBIN -symbols"
4315       ;;
4316     *)
4317       DUMPBIN=:
4318       ;;
4319     esac
4320   fi
4321
4322   if test "$DUMPBIN" != ":"; then
4323     NM="$DUMPBIN"
4324   fi
4325 fi
4326 test -z "$NM" && NM=nm
4327
4328
4329
4330
4331
4332
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4334 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4335 if ${lt_cv_nm_interface+:} false; then :
4336   $as_echo_n "(cached) " >&6
4337 else
4338   lt_cv_nm_interface="BSD nm"
4339   echo "int some_variable = 0;" > conftest.$ac_ext
4340   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4341   (eval "$ac_compile" 2>conftest.err)
4342   cat conftest.err >&5
4343   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4344   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4345   cat conftest.err >&5
4346   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4347   cat conftest.out >&5
4348   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4349     lt_cv_nm_interface="MS dumpbin"
4350   fi
4351   rm -f conftest*
4352 fi
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4354 $as_echo "$lt_cv_nm_interface" >&6; }
4355
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4357 $as_echo_n "checking whether ln -s works... " >&6; }
4358 LN_S=$as_ln_s
4359 if test "$LN_S" = "ln -s"; then
4360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4361 $as_echo "yes" >&6; }
4362 else
4363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4364 $as_echo "no, using $LN_S" >&6; }
4365 fi
4366
4367 # find the maximum length of command line arguments
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4369 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4370 if ${lt_cv_sys_max_cmd_len+:} false; then :
4371   $as_echo_n "(cached) " >&6
4372 else
4373     i=0
4374   teststring="ABCD"
4375
4376   case $build_os in
4377   msdosdjgpp*)
4378     # On DJGPP, this test can blow up pretty badly due to problems in libc
4379     # (any single argument exceeding 2000 bytes causes a buffer overrun
4380     # during glob expansion).  Even if it were fixed, the result of this
4381     # check would be larger than it should be.
4382     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4383     ;;
4384
4385   gnu*)
4386     # Under GNU Hurd, this test is not required because there is
4387     # no limit to the length of command line arguments.
4388     # Libtool will interpret -1 as no limit whatsoever
4389     lt_cv_sys_max_cmd_len=-1;
4390     ;;
4391
4392   cygwin* | mingw* | cegcc*)
4393     # On Win9x/ME, this test blows up -- it succeeds, but takes
4394     # about 5 minutes as the teststring grows exponentially.
4395     # Worse, since 9x/ME are not pre-emptively multitasking,
4396     # you end up with a "frozen" computer, even though with patience
4397     # the test eventually succeeds (with a max line length of 256k).
4398     # Instead, let's just punt: use the minimum linelength reported by
4399     # all of the supported platforms: 8192 (on NT/2K/XP).
4400     lt_cv_sys_max_cmd_len=8192;
4401     ;;
4402
4403   mint*)
4404     # On MiNT this can take a long time and run out of memory.
4405     lt_cv_sys_max_cmd_len=8192;
4406     ;;
4407
4408   amigaos*)
4409     # On AmigaOS with pdksh, this test takes hours, literally.
4410     # So we just punt and use a minimum line length of 8192.
4411     lt_cv_sys_max_cmd_len=8192;
4412     ;;
4413
4414   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4415     # This has been around since 386BSD, at least.  Likely further.
4416     if test -x /sbin/sysctl; then
4417       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4418     elif test -x /usr/sbin/sysctl; then
4419       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4420     else
4421       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4422     fi
4423     # And add a safety zone
4424     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4425     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4426     ;;
4427
4428   interix*)
4429     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4430     lt_cv_sys_max_cmd_len=196608
4431     ;;
4432
4433   os2*)
4434     # The test takes a long time on OS/2.
4435     lt_cv_sys_max_cmd_len=8192
4436     ;;
4437
4438   osf*)
4439     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4440     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4441     # nice to cause kernel panics so lets avoid the loop below.
4442     # First set a reasonable default.
4443     lt_cv_sys_max_cmd_len=16384
4444     #
4445     if test -x /sbin/sysconfig; then
4446       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4447         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4448       esac
4449     fi
4450     ;;
4451   sco3.2v5*)
4452     lt_cv_sys_max_cmd_len=102400
4453     ;;
4454   sysv5* | sco5v6* | sysv4.2uw2*)
4455     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4456     if test -n "$kargmax"; then
4457       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4458     else
4459       lt_cv_sys_max_cmd_len=32768
4460     fi
4461     ;;
4462   *)
4463     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4464     if test -n "$lt_cv_sys_max_cmd_len"; then
4465       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4466       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4467     else
4468       # Make teststring a little bigger before we do anything with it.
4469       # a 1K string should be a reasonable start.
4470       for i in 1 2 3 4 5 6 7 8 ; do
4471         teststring=$teststring$teststring
4472       done
4473       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4474       # If test is not a shell built-in, we'll probably end up computing a
4475       # maximum length that is only half of the actual maximum length, but
4476       # we can't tell.
4477       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4478                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4479               test $i != 17 # 1/2 MB should be enough
4480       do
4481         i=`expr $i + 1`
4482         teststring=$teststring$teststring
4483       done
4484       # Only check the string length outside the loop.
4485       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4486       teststring=
4487       # Add a significant safety factor because C++ compilers can tack on
4488       # massive amounts of additional arguments before passing them to the
4489       # linker.  It appears as though 1/2 is a usable value.
4490       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4491     fi
4492     ;;
4493   esac
4494
4495 fi
4496
4497 if test -n $lt_cv_sys_max_cmd_len ; then
4498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4499 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4500 else
4501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4502 $as_echo "none" >&6; }
4503 fi
4504 max_cmd_len=$lt_cv_sys_max_cmd_len
4505
4506
4507
4508
4509
4510
4511 : ${CP="cp -f"}
4512 : ${MV="mv -f"}
4513 : ${RM="rm -f"}
4514
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4516 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4517 # Try some XSI features
4518 xsi_shell=no
4519 ( _lt_dummy="a/b/c"
4520   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4521       = c,a/b,b/c, \
4522     && eval 'test $(( 1 + 1 )) -eq 2 \
4523     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4524   && xsi_shell=yes
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4526 $as_echo "$xsi_shell" >&6; }
4527
4528
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4530 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4531 lt_shell_append=no
4532 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4533     >/dev/null 2>&1 \
4534   && lt_shell_append=yes
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4536 $as_echo "$lt_shell_append" >&6; }
4537
4538
4539 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4540   lt_unset=unset
4541 else
4542   lt_unset=false
4543 fi
4544
4545
4546
4547
4548
4549 # test EBCDIC or ASCII
4550 case `echo X|tr X '\101'` in
4551  A) # ASCII based system
4552     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4553   lt_SP2NL='tr \040 \012'
4554   lt_NL2SP='tr \015\012 \040\040'
4555   ;;
4556  *) # EBCDIC based system
4557   lt_SP2NL='tr \100 \n'
4558   lt_NL2SP='tr \r\n \100\100'
4559   ;;
4560 esac
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4571 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4572 if ${lt_cv_to_host_file_cmd+:} false; then :
4573   $as_echo_n "(cached) " >&6
4574 else
4575   case $host in
4576   *-*-mingw* )
4577     case $build in
4578       *-*-mingw* ) # actually msys
4579         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4580         ;;
4581       *-*-cygwin* )
4582         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4583         ;;
4584       * ) # otherwise, assume *nix
4585         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4586         ;;
4587     esac
4588     ;;
4589   *-*-cygwin* )
4590     case $build in
4591       *-*-mingw* ) # actually msys
4592         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4593         ;;
4594       *-*-cygwin* )
4595         lt_cv_to_host_file_cmd=func_convert_file_noop
4596         ;;
4597       * ) # otherwise, assume *nix
4598         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4599         ;;
4600     esac
4601     ;;
4602   * ) # unhandled hosts (and "normal" native builds)
4603     lt_cv_to_host_file_cmd=func_convert_file_noop
4604     ;;
4605 esac
4606
4607 fi
4608
4609 to_host_file_cmd=$lt_cv_to_host_file_cmd
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4611 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4612
4613
4614
4615
4616
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4618 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4619 if ${lt_cv_to_tool_file_cmd+:} false; then :
4620   $as_echo_n "(cached) " >&6
4621 else
4622   #assume ordinary cross tools, or native build.
4623 lt_cv_to_tool_file_cmd=func_convert_file_noop
4624 case $host in
4625   *-*-mingw* )
4626     case $build in
4627       *-*-mingw* ) # actually msys
4628         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4629         ;;
4630     esac
4631     ;;
4632 esac
4633
4634 fi
4635
4636 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4638 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4639
4640
4641
4642
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4645 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4646 if ${lt_cv_ld_reload_flag+:} false; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649   lt_cv_ld_reload_flag='-r'
4650 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4652 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4653 reload_flag=$lt_cv_ld_reload_flag
4654 case $reload_flag in
4655 "" | " "*) ;;
4656 *) reload_flag=" $reload_flag" ;;
4657 esac
4658 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4659 case $host_os in
4660   cygwin* | mingw* | pw32* | cegcc*)
4661     if test "$GCC" != yes; then
4662       reload_cmds=false
4663     fi
4664     ;;
4665   darwin*)
4666     if test "$GCC" = yes; then
4667       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4668     else
4669       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4670     fi
4671     ;;
4672 esac
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682 if test -n "$ac_tool_prefix"; then
4683   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4684 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if ${ac_cv_prog_OBJDUMP+:} false; then :
4688   $as_echo_n "(cached) " >&6
4689 else
4690   if test -n "$OBJDUMP"; then
4691   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698     for ac_exec_ext in '' $ac_executable_extensions; do
4699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702     break 2
4703   fi
4704 done
4705   done
4706 IFS=$as_save_IFS
4707
4708 fi
4709 fi
4710 OBJDUMP=$ac_cv_prog_OBJDUMP
4711 if test -n "$OBJDUMP"; then
4712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4713 $as_echo "$OBJDUMP" >&6; }
4714 else
4715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4717 fi
4718
4719
4720 fi
4721 if test -z "$ac_cv_prog_OBJDUMP"; then
4722   ac_ct_OBJDUMP=$OBJDUMP
4723   # Extract the first word of "objdump", so it can be a program name with args.
4724 set dummy objdump; ac_word=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4728   $as_echo_n "(cached) " >&6
4729 else
4730   if test -n "$ac_ct_OBJDUMP"; then
4731   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736   IFS=$as_save_IFS
4737   test -z "$as_dir" && as_dir=.
4738     for ac_exec_ext in '' $ac_executable_extensions; do
4739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4740     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4742     break 2
4743   fi
4744 done
4745   done
4746 IFS=$as_save_IFS
4747
4748 fi
4749 fi
4750 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4751 if test -n "$ac_ct_OBJDUMP"; then
4752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4753 $as_echo "$ac_ct_OBJDUMP" >&6; }
4754 else
4755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4757 fi
4758
4759   if test "x$ac_ct_OBJDUMP" = x; then
4760     OBJDUMP="false"
4761   else
4762     case $cross_compiling:$ac_tool_warned in
4763 yes:)
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4766 ac_tool_warned=yes ;;
4767 esac
4768     OBJDUMP=$ac_ct_OBJDUMP
4769   fi
4770 else
4771   OBJDUMP="$ac_cv_prog_OBJDUMP"
4772 fi
4773
4774 test -z "$OBJDUMP" && OBJDUMP=objdump
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4785 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4786 if ${lt_cv_deplibs_check_method+:} false; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789   lt_cv_file_magic_cmd='$MAGIC_CMD'
4790 lt_cv_file_magic_test_file=
4791 lt_cv_deplibs_check_method='unknown'
4792 # Need to set the preceding variable on all platforms that support
4793 # interlibrary dependencies.
4794 # 'none' -- dependencies not supported.
4795 # `unknown' -- same as none, but documents that we really don't know.
4796 # 'pass_all' -- all dependencies passed with no checks.
4797 # 'test_compile' -- check by making test program.
4798 # 'file_magic [[regex]]' -- check by looking for files in library path
4799 # which responds to the $file_magic_cmd with a given extended regex.
4800 # If you have `file' or equivalent on your system and you're not sure
4801 # whether `pass_all' will *always* work, you probably want this one.
4802
4803 case $host_os in
4804 aix[4-9]*)
4805   lt_cv_deplibs_check_method=pass_all
4806   ;;
4807
4808 beos*)
4809   lt_cv_deplibs_check_method=pass_all
4810   ;;
4811
4812 bsdi[45]*)
4813   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4814   lt_cv_file_magic_cmd='/usr/bin/file -L'
4815   lt_cv_file_magic_test_file=/shlib/libc.so
4816   ;;
4817
4818 cygwin*)
4819   # func_win32_libid is a shell function defined in ltmain.sh
4820   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4821   lt_cv_file_magic_cmd='func_win32_libid'
4822   ;;
4823
4824 mingw* | pw32*)
4825   # Base MSYS/MinGW do not provide the 'file' command needed by
4826   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4827   # unless we find 'file', for example because we are cross-compiling.
4828   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4829   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4830     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4831     lt_cv_file_magic_cmd='func_win32_libid'
4832   else
4833     # Keep this pattern in sync with the one in func_win32_libid.
4834     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4835     lt_cv_file_magic_cmd='$OBJDUMP -f'
4836   fi
4837   ;;
4838
4839 cegcc*)
4840   # use the weaker test based on 'objdump'. See mingw*.
4841   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4842   lt_cv_file_magic_cmd='$OBJDUMP -f'
4843   ;;
4844
4845 darwin* | rhapsody*)
4846   lt_cv_deplibs_check_method=pass_all
4847   ;;
4848
4849 freebsd* | dragonfly*)
4850   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4851     case $host_cpu in
4852     i*86 )
4853       # Not sure whether the presence of OpenBSD here was a mistake.
4854       # Let's accept both of them until this is cleared up.
4855       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4856       lt_cv_file_magic_cmd=/usr/bin/file
4857       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4858       ;;
4859     esac
4860   else
4861     lt_cv_deplibs_check_method=pass_all
4862   fi
4863   ;;
4864
4865 gnu*)
4866   lt_cv_deplibs_check_method=pass_all
4867   ;;
4868
4869 haiku*)
4870   lt_cv_deplibs_check_method=pass_all
4871   ;;
4872
4873 hpux10.20* | hpux11*)
4874   lt_cv_file_magic_cmd=/usr/bin/file
4875   case $host_cpu in
4876   ia64*)
4877     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4878     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4879     ;;
4880   hppa*64*)
4881     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]'
4882     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4883     ;;
4884   *)
4885     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4886     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4887     ;;
4888   esac
4889   ;;
4890
4891 interix[3-9]*)
4892   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4893   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4894   ;;
4895
4896 irix5* | irix6* | nonstopux*)
4897   case $LD in
4898   *-32|*"-32 ") libmagic=32-bit;;
4899   *-n32|*"-n32 ") libmagic=N32;;
4900   *-64|*"-64 ") libmagic=64-bit;;
4901   *) libmagic=never-match;;
4902   esac
4903   lt_cv_deplibs_check_method=pass_all
4904   ;;
4905
4906 # This must be glibc/ELF.
4907 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4908   lt_cv_deplibs_check_method=pass_all
4909   ;;
4910
4911 netbsd* | netbsdelf*-gnu)
4912   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4913     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4914   else
4915     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4916   fi
4917   ;;
4918
4919 newos6*)
4920   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4921   lt_cv_file_magic_cmd=/usr/bin/file
4922   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4923   ;;
4924
4925 *nto* | *qnx*)
4926   lt_cv_deplibs_check_method=pass_all
4927   ;;
4928
4929 openbsd*)
4930   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4931     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4932   else
4933     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4934   fi
4935   ;;
4936
4937 osf3* | osf4* | osf5*)
4938   lt_cv_deplibs_check_method=pass_all
4939   ;;
4940
4941 rdos*)
4942   lt_cv_deplibs_check_method=pass_all
4943   ;;
4944
4945 solaris*)
4946   lt_cv_deplibs_check_method=pass_all
4947   ;;
4948
4949 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4950   lt_cv_deplibs_check_method=pass_all
4951   ;;
4952
4953 sysv4 | sysv4.3*)
4954   case $host_vendor in
4955   motorola)
4956     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]'
4957     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4958     ;;
4959   ncr)
4960     lt_cv_deplibs_check_method=pass_all
4961     ;;
4962   sequent)
4963     lt_cv_file_magic_cmd='/bin/file'
4964     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4965     ;;
4966   sni)
4967     lt_cv_file_magic_cmd='/bin/file'
4968     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4969     lt_cv_file_magic_test_file=/lib/libc.so
4970     ;;
4971   siemens)
4972     lt_cv_deplibs_check_method=pass_all
4973     ;;
4974   pc)
4975     lt_cv_deplibs_check_method=pass_all
4976     ;;
4977   esac
4978   ;;
4979
4980 tpf*)
4981   lt_cv_deplibs_check_method=pass_all
4982   ;;
4983 esac
4984
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4987 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4988
4989 file_magic_glob=
4990 want_nocaseglob=no
4991 if test "$build" = "$host"; then
4992   case $host_os in
4993   mingw* | pw32*)
4994     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4995       want_nocaseglob=yes
4996     else
4997       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4998     fi
4999     ;;
5000   esac
5001 fi
5002
5003 file_magic_cmd=$lt_cv_file_magic_cmd
5004 deplibs_check_method=$lt_cv_deplibs_check_method
5005 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028 if test -n "$ac_tool_prefix"; then
5029   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5030 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if ${ac_cv_prog_DLLTOOL+:} false; then :
5034   $as_echo_n "(cached) " >&6
5035 else
5036   if test -n "$DLLTOOL"; then
5037   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044     for ac_exec_ext in '' $ac_executable_extensions; do
5045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048     break 2
5049   fi
5050 done
5051   done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 DLLTOOL=$ac_cv_prog_DLLTOOL
5057 if test -n "$DLLTOOL"; then
5058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5059 $as_echo "$DLLTOOL" >&6; }
5060 else
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5063 fi
5064
5065
5066 fi
5067 if test -z "$ac_cv_prog_DLLTOOL"; then
5068   ac_ct_DLLTOOL=$DLLTOOL
5069   # Extract the first word of "dlltool", so it can be a program name with args.
5070 set dummy dlltool; ac_word=$2
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072 $as_echo_n "checking for $ac_word... " >&6; }
5073 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5074   $as_echo_n "(cached) " >&6
5075 else
5076   if test -n "$ac_ct_DLLTOOL"; then
5077   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5078 else
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH
5081 do
5082   IFS=$as_save_IFS
5083   test -z "$as_dir" && as_dir=.
5084     for ac_exec_ext in '' $ac_executable_extensions; do
5085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088     break 2
5089   fi
5090 done
5091   done
5092 IFS=$as_save_IFS
5093
5094 fi
5095 fi
5096 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5097 if test -n "$ac_ct_DLLTOOL"; then
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5099 $as_echo "$ac_ct_DLLTOOL" >&6; }
5100 else
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 $as_echo "no" >&6; }
5103 fi
5104
5105   if test "x$ac_ct_DLLTOOL" = x; then
5106     DLLTOOL="false"
5107   else
5108     case $cross_compiling:$ac_tool_warned in
5109 yes:)
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5112 ac_tool_warned=yes ;;
5113 esac
5114     DLLTOOL=$ac_ct_DLLTOOL
5115   fi
5116 else
5117   DLLTOOL="$ac_cv_prog_DLLTOOL"
5118 fi
5119
5120 test -z "$DLLTOOL" && DLLTOOL=dlltool
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5132 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5133 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5134   $as_echo_n "(cached) " >&6
5135 else
5136   lt_cv_sharedlib_from_linklib_cmd='unknown'
5137
5138 case $host_os in
5139 cygwin* | mingw* | pw32* | cegcc*)
5140   # two different shell functions defined in ltmain.sh
5141   # decide which to use based on capabilities of $DLLTOOL
5142   case `$DLLTOOL --help 2>&1` in
5143   *--identify-strict*)
5144     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5145     ;;
5146   *)
5147     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5148     ;;
5149   esac
5150   ;;
5151 *)
5152   # fallback: assume linklib IS sharedlib
5153   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5154   ;;
5155 esac
5156
5157 fi
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5159 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5160 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5161 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5162
5163
5164
5165
5166
5167
5168
5169
5170 if test -n "$ac_tool_prefix"; then
5171   for ac_prog in ar
5172   do
5173     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if ${ac_cv_prog_AR+:} false; then :
5178   $as_echo_n "(cached) " >&6
5179 else
5180   if test -n "$AR"; then
5181   ac_cv_prog_AR="$AR" # Let the user override the test.
5182 else
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186   IFS=$as_save_IFS
5187   test -z "$as_dir" && as_dir=.
5188     for ac_exec_ext in '' $ac_executable_extensions; do
5189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192     break 2
5193   fi
5194 done
5195   done
5196 IFS=$as_save_IFS
5197
5198 fi
5199 fi
5200 AR=$ac_cv_prog_AR
5201 if test -n "$AR"; then
5202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5203 $as_echo "$AR" >&6; }
5204 else
5205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5207 fi
5208
5209
5210     test -n "$AR" && break
5211   done
5212 fi
5213 if test -z "$AR"; then
5214   ac_ct_AR=$AR
5215   for ac_prog in ar
5216 do
5217   # Extract the first word of "$ac_prog", so it can be a program name with args.
5218 set dummy $ac_prog; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5222   $as_echo_n "(cached) " >&6
5223 else
5224   if test -n "$ac_ct_AR"; then
5225   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230   IFS=$as_save_IFS
5231   test -z "$as_dir" && as_dir=.
5232     for ac_exec_ext in '' $ac_executable_extensions; do
5233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234     ac_cv_prog_ac_ct_AR="$ac_prog"
5235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236     break 2
5237   fi
5238 done
5239   done
5240 IFS=$as_save_IFS
5241
5242 fi
5243 fi
5244 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5245 if test -n "$ac_ct_AR"; then
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5247 $as_echo "$ac_ct_AR" >&6; }
5248 else
5249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5251 fi
5252
5253
5254   test -n "$ac_ct_AR" && break
5255 done
5256
5257   if test "x$ac_ct_AR" = x; then
5258     AR="false"
5259   else
5260     case $cross_compiling:$ac_tool_warned in
5261 yes:)
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5264 ac_tool_warned=yes ;;
5265 esac
5266     AR=$ac_ct_AR
5267   fi
5268 fi
5269
5270 : ${AR=ar}
5271 : ${AR_FLAGS=cru}
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5284 $as_echo_n "checking for archiver @FILE support... " >&6; }
5285 if ${lt_cv_ar_at_file+:} false; then :
5286   $as_echo_n "(cached) " >&6
5287 else
5288   lt_cv_ar_at_file=no
5289    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h.  */
5291
5292 int
5293 main ()
5294 {
5295
5296   ;
5297   return 0;
5298 }
5299 _ACEOF
5300 if ac_fn_c_try_compile "$LINENO"; then :
5301   echo conftest.$ac_objext > conftest.lst
5302       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5303       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5304   (eval $lt_ar_try) 2>&5
5305   ac_status=$?
5306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5307   test $ac_status = 0; }
5308       if test "$ac_status" -eq 0; then
5309         # Ensure the archiver fails upon bogus file names.
5310         rm -f conftest.$ac_objext libconftest.a
5311         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5312   (eval $lt_ar_try) 2>&5
5313   ac_status=$?
5314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5315   test $ac_status = 0; }
5316         if test "$ac_status" -ne 0; then
5317           lt_cv_ar_at_file=@
5318         fi
5319       fi
5320       rm -f conftest.* libconftest.a
5321
5322 fi
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5327 $as_echo "$lt_cv_ar_at_file" >&6; }
5328
5329 if test "x$lt_cv_ar_at_file" = xno; then
5330   archiver_list_spec=
5331 else
5332   archiver_list_spec=$lt_cv_ar_at_file
5333 fi
5334
5335
5336
5337
5338
5339
5340
5341 if test -n "$ac_tool_prefix"; then
5342   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5343 set dummy ${ac_tool_prefix}strip; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if ${ac_cv_prog_STRIP+:} false; then :
5347   $as_echo_n "(cached) " >&6
5348 else
5349   if test -n "$STRIP"; then
5350   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355   IFS=$as_save_IFS
5356   test -z "$as_dir" && as_dir=.
5357     for ac_exec_ext in '' $ac_executable_extensions; do
5358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361     break 2
5362   fi
5363 done
5364   done
5365 IFS=$as_save_IFS
5366
5367 fi
5368 fi
5369 STRIP=$ac_cv_prog_STRIP
5370 if test -n "$STRIP"; then
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5372 $as_echo "$STRIP" >&6; }
5373 else
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377
5378
5379 fi
5380 if test -z "$ac_cv_prog_STRIP"; then
5381   ac_ct_STRIP=$STRIP
5382   # Extract the first word of "strip", so it can be a program name with args.
5383 set dummy strip; ac_word=$2
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 $as_echo_n "checking for $ac_word... " >&6; }
5386 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5387   $as_echo_n "(cached) " >&6
5388 else
5389   if test -n "$ac_ct_STRIP"; then
5390   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5391 else
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5394 do
5395   IFS=$as_save_IFS
5396   test -z "$as_dir" && as_dir=.
5397     for ac_exec_ext in '' $ac_executable_extensions; do
5398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5399     ac_cv_prog_ac_ct_STRIP="strip"
5400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401     break 2
5402   fi
5403 done
5404   done
5405 IFS=$as_save_IFS
5406
5407 fi
5408 fi
5409 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5410 if test -n "$ac_ct_STRIP"; then
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5412 $as_echo "$ac_ct_STRIP" >&6; }
5413 else
5414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5416 fi
5417
5418   if test "x$ac_ct_STRIP" = x; then
5419     STRIP=":"
5420   else
5421     case $cross_compiling:$ac_tool_warned in
5422 yes:)
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5425 ac_tool_warned=yes ;;
5426 esac
5427     STRIP=$ac_ct_STRIP
5428   fi
5429 else
5430   STRIP="$ac_cv_prog_STRIP"
5431 fi
5432
5433 test -z "$STRIP" && STRIP=:
5434
5435
5436
5437
5438
5439
5440 if test -n "$ac_tool_prefix"; then
5441   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5442 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_prog_RANLIB+:} false; then :
5446   $as_echo_n "(cached) " >&6
5447 else
5448   if test -n "$RANLIB"; then
5449   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   test -z "$as_dir" && as_dir=.
5456     for ac_exec_ext in '' $ac_executable_extensions; do
5457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460     break 2
5461   fi
5462 done
5463   done
5464 IFS=$as_save_IFS
5465
5466 fi
5467 fi
5468 RANLIB=$ac_cv_prog_RANLIB
5469 if test -n "$RANLIB"; then
5470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5471 $as_echo "$RANLIB" >&6; }
5472 else
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5475 fi
5476
5477
5478 fi
5479 if test -z "$ac_cv_prog_RANLIB"; then
5480   ac_ct_RANLIB=$RANLIB
5481   # Extract the first word of "ranlib", so it can be a program name with args.
5482 set dummy ranlib; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5486   $as_echo_n "(cached) " >&6
5487 else
5488   if test -n "$ac_ct_RANLIB"; then
5489   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5493 do
5494   IFS=$as_save_IFS
5495   test -z "$as_dir" && as_dir=.
5496     for ac_exec_ext in '' $ac_executable_extensions; do
5497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5498     ac_cv_prog_ac_ct_RANLIB="ranlib"
5499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500     break 2
5501   fi
5502 done
5503   done
5504 IFS=$as_save_IFS
5505
5506 fi
5507 fi
5508 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5509 if test -n "$ac_ct_RANLIB"; then
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5511 $as_echo "$ac_ct_RANLIB" >&6; }
5512 else
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5515 fi
5516
5517   if test "x$ac_ct_RANLIB" = x; then
5518     RANLIB=":"
5519   else
5520     case $cross_compiling:$ac_tool_warned in
5521 yes:)
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5524 ac_tool_warned=yes ;;
5525 esac
5526     RANLIB=$ac_ct_RANLIB
5527   fi
5528 else
5529   RANLIB="$ac_cv_prog_RANLIB"
5530 fi
5531
5532 test -z "$RANLIB" && RANLIB=:
5533
5534
5535
5536
5537
5538
5539 # Determine commands to create old-style static archives.
5540 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5541 old_postinstall_cmds='chmod 644 $oldlib'
5542 old_postuninstall_cmds=
5543
5544 if test -n "$RANLIB"; then
5545   case $host_os in
5546   openbsd*)
5547     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5548     ;;
5549   *)
5550     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5551     ;;
5552   esac
5553   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5554 fi
5555
5556 case $host_os in
5557   darwin*)
5558     lock_old_archive_extraction=yes ;;
5559   *)
5560     lock_old_archive_extraction=no ;;
5561 esac
5562
5563
5564
5565
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 # If no C compiler was specified, use CC.
5602 LTCC=${LTCC-"$CC"}
5603
5604 # If no C compiler flags were specified, use CFLAGS.
5605 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5606
5607 # Allow CC to be a program name with arguments.
5608 compiler=$CC
5609
5610
5611 # Check for command to grab the raw symbol name followed by C symbol from nm.
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5613 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5614 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5615   $as_echo_n "(cached) " >&6
5616 else
5617
5618 # These are sane defaults that work on at least a few old systems.
5619 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5620
5621 # Character class describing NM global symbol codes.
5622 symcode='[BCDEGRST]'
5623
5624 # Regexp to match symbols that can be accessed directly from C.
5625 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5626
5627 # Define system-specific variables.
5628 case $host_os in
5629 aix*)
5630   symcode='[BCDT]'
5631   ;;
5632 cygwin* | mingw* | pw32* | cegcc*)
5633   symcode='[ABCDGISTW]'
5634   ;;
5635 hpux*)
5636   if test "$host_cpu" = ia64; then
5637     symcode='[ABCDEGRST]'
5638   fi
5639   ;;
5640 irix* | nonstopux*)
5641   symcode='[BCDEGRST]'
5642   ;;
5643 osf*)
5644   symcode='[BCDEGQRST]'
5645   ;;
5646 solaris*)
5647   symcode='[BDRT]'
5648   ;;
5649 sco3.2v5*)
5650   symcode='[DT]'
5651   ;;
5652 sysv4.2uw2*)
5653   symcode='[DT]'
5654   ;;
5655 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5656   symcode='[ABDT]'
5657   ;;
5658 sysv4)
5659   symcode='[DFNSTU]'
5660   ;;
5661 esac
5662
5663 # If we're using GNU nm, then use its standard symbol codes.
5664 case `$NM -V 2>&1` in
5665 *GNU* | *'with BFD'*)
5666   symcode='[ABCDGIRSTW]' ;;
5667 esac
5668
5669 # Transform an extracted symbol line into a proper C declaration.
5670 # Some systems (esp. on ia64) link data and code symbols differently,
5671 # so use this general approach.
5672 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5673
5674 # Transform an extracted symbol line into symbol name and symbol address
5675 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5676 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'"
5677
5678 # Handle CRLF in mingw tool chain
5679 opt_cr=
5680 case $build_os in
5681 mingw*)
5682   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5683   ;;
5684 esac
5685
5686 # Try without a prefix underscore, then with it.
5687 for ac_symprfx in "" "_"; do
5688
5689   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5690   symxfrm="\\1 $ac_symprfx\\2 \\2"
5691
5692   # Write the raw and C identifiers.
5693   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5694     # Fake it for dumpbin and say T for any non-static function
5695     # and D for any global variable.
5696     # Also find C++ and __fastcall symbols from MSVC++,
5697     # which start with @ or ?.
5698     lt_cv_sys_global_symbol_pipe="$AWK '"\
5699 "     {last_section=section; section=\$ 3};"\
5700 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5701 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5702 "     \$ 0!~/External *\|/{next};"\
5703 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5704 "     {if(hide[section]) next};"\
5705 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5706 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5707 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5708 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5709 "     ' prfx=^$ac_symprfx"
5710   else
5711     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5712   fi
5713   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5714
5715   # Check to see that the pipe works correctly.
5716   pipe_works=no
5717
5718   rm -f conftest*
5719   cat > conftest.$ac_ext <<_LT_EOF
5720 #ifdef __cplusplus
5721 extern "C" {
5722 #endif
5723 char nm_test_var;
5724 void nm_test_func(void);
5725 void nm_test_func(void){}
5726 #ifdef __cplusplus
5727 }
5728 #endif
5729 int main(){nm_test_var='a';nm_test_func();return(0);}
5730 _LT_EOF
5731
5732   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5733   (eval $ac_compile) 2>&5
5734   ac_status=$?
5735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5736   test $ac_status = 0; }; then
5737     # Now try to grab the symbols.
5738     nlist=conftest.nm
5739     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5740   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5741   ac_status=$?
5742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5743   test $ac_status = 0; } && test -s "$nlist"; then
5744       # Try sorting and uniquifying the output.
5745       if sort "$nlist" | uniq > "$nlist"T; then
5746         mv -f "$nlist"T "$nlist"
5747       else
5748         rm -f "$nlist"T
5749       fi
5750
5751       # Make sure that we snagged all the symbols we need.
5752       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5753         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5754           cat <<_LT_EOF > conftest.$ac_ext
5755 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5756 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5757 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5758    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5759 # define LT_DLSYM_CONST
5760 #elif defined(__osf__)
5761 /* This system does not cope well with relocations in const data.  */
5762 # define LT_DLSYM_CONST
5763 #else
5764 # define LT_DLSYM_CONST const
5765 #endif
5766
5767 #ifdef __cplusplus
5768 extern "C" {
5769 #endif
5770
5771 _LT_EOF
5772           # Now generate the symbol file.
5773           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5774
5775           cat <<_LT_EOF >> conftest.$ac_ext
5776
5777 /* The mapping between symbol names and symbols.  */
5778 LT_DLSYM_CONST struct {
5779   const char *name;
5780   void       *address;
5781 }
5782 lt__PROGRAM__LTX_preloaded_symbols[] =
5783 {
5784   { "@PROGRAM@", (void *) 0 },
5785 _LT_EOF
5786           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5787           cat <<\_LT_EOF >> conftest.$ac_ext
5788   {0, (void *) 0}
5789 };
5790
5791 /* This works around a problem in FreeBSD linker */
5792 #ifdef FREEBSD_WORKAROUND
5793 static const void *lt_preloaded_setup() {
5794   return lt__PROGRAM__LTX_preloaded_symbols;
5795 }
5796 #endif
5797
5798 #ifdef __cplusplus
5799 }
5800 #endif
5801 _LT_EOF
5802           # Now try linking the two files.
5803           mv conftest.$ac_objext conftstm.$ac_objext
5804           lt_globsym_save_LIBS=$LIBS
5805           lt_globsym_save_CFLAGS=$CFLAGS
5806           LIBS="conftstm.$ac_objext"
5807           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5808           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5809   (eval $ac_link) 2>&5
5810   ac_status=$?
5811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5812   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5813             pipe_works=yes
5814           fi
5815           LIBS=$lt_globsym_save_LIBS
5816           CFLAGS=$lt_globsym_save_CFLAGS
5817         else
5818           echo "cannot find nm_test_func in $nlist" >&5
5819         fi
5820       else
5821         echo "cannot find nm_test_var in $nlist" >&5
5822       fi
5823     else
5824       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5825     fi
5826   else
5827     echo "$progname: failed program was:" >&5
5828     cat conftest.$ac_ext >&5
5829   fi
5830   rm -rf conftest* conftst*
5831
5832   # Do not use the global_symbol_pipe unless it works.
5833   if test "$pipe_works" = yes; then
5834     break
5835   else
5836     lt_cv_sys_global_symbol_pipe=
5837   fi
5838 done
5839
5840 fi
5841
5842 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5843   lt_cv_sys_global_symbol_to_cdecl=
5844 fi
5845 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5847 $as_echo "failed" >&6; }
5848 else
5849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5850 $as_echo "ok" >&6; }
5851 fi
5852
5853 # Response file support.
5854 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5855   nm_file_list_spec='@'
5856 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5857   nm_file_list_spec='@'
5858 fi
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5887 $as_echo_n "checking for sysroot... " >&6; }
5888
5889 # Check whether --with-sysroot was given.
5890 if test "${with_sysroot+set}" = set; then :
5891   withval=$with_sysroot;
5892 else
5893   with_sysroot=no
5894 fi
5895
5896
5897 lt_sysroot=
5898 case ${with_sysroot} in #(
5899  yes)
5900    if test "$GCC" = yes; then
5901      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5902    fi
5903    ;; #(
5904  /*)
5905    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5906    ;; #(
5907  no|'')
5908    ;; #(
5909  *)
5910    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5911 $as_echo "${with_sysroot}" >&6; }
5912    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5913    ;;
5914 esac
5915
5916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5917 $as_echo "${lt_sysroot:-no}" >&6; }
5918
5919
5920
5921
5922
5923 # Check whether --enable-libtool-lock was given.
5924 if test "${enable_libtool_lock+set}" = set; then :
5925   enableval=$enable_libtool_lock;
5926 fi
5927
5928 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5929
5930 # Some flags need to be propagated to the compiler or linker for good
5931 # libtool support.
5932 case $host in
5933 ia64-*-hpux*)
5934   # Find out which ABI we are using.
5935   echo 'int i;' > conftest.$ac_ext
5936   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5937   (eval $ac_compile) 2>&5
5938   ac_status=$?
5939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5940   test $ac_status = 0; }; then
5941     case `/usr/bin/file conftest.$ac_objext` in
5942       *ELF-32*)
5943         HPUX_IA64_MODE="32"
5944         ;;
5945       *ELF-64*)
5946         HPUX_IA64_MODE="64"
5947         ;;
5948     esac
5949   fi
5950   rm -rf conftest*
5951   ;;
5952 *-*-irix6*)
5953   # Find out which ABI we are using.
5954   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5955   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5956   (eval $ac_compile) 2>&5
5957   ac_status=$?
5958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5959   test $ac_status = 0; }; then
5960     if test "$lt_cv_prog_gnu_ld" = yes; then
5961       case `/usr/bin/file conftest.$ac_objext` in
5962         *32-bit*)
5963           LD="${LD-ld} -melf32bsmip"
5964           ;;
5965         *N32*)
5966           LD="${LD-ld} -melf32bmipn32"
5967           ;;
5968         *64-bit*)
5969           LD="${LD-ld} -melf64bmip"
5970         ;;
5971       esac
5972     else
5973       case `/usr/bin/file conftest.$ac_objext` in
5974         *32-bit*)
5975           LD="${LD-ld} -32"
5976           ;;
5977         *N32*)
5978           LD="${LD-ld} -n32"
5979           ;;
5980         *64-bit*)
5981           LD="${LD-ld} -64"
5982           ;;
5983       esac
5984     fi
5985   fi
5986   rm -rf conftest*
5987   ;;
5988
5989 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5990 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5991   # Find out which ABI we are using.
5992   echo 'int i;' > conftest.$ac_ext
5993   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5994   (eval $ac_compile) 2>&5
5995   ac_status=$?
5996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5997   test $ac_status = 0; }; then
5998     case `/usr/bin/file conftest.o` in
5999       *32-bit*)
6000         case $host in
6001           x86_64-*kfreebsd*-gnu)
6002             LD="${LD-ld} -m elf_i386_fbsd"
6003             ;;
6004           x86_64-*linux*)
6005             LD="${LD-ld} -m elf_i386"
6006             ;;
6007           ppc64-*linux*|powerpc64-*linux*)
6008             LD="${LD-ld} -m elf32ppclinux"
6009             ;;
6010           s390x-*linux*)
6011             LD="${LD-ld} -m elf_s390"
6012             ;;
6013           sparc64-*linux*)
6014             LD="${LD-ld} -m elf32_sparc"
6015             ;;
6016         esac
6017         ;;
6018       *64-bit*)
6019         case $host in
6020           x86_64-*kfreebsd*-gnu)
6021             LD="${LD-ld} -m elf_x86_64_fbsd"
6022             ;;
6023           x86_64-*linux*)
6024             LD="${LD-ld} -m elf_x86_64"
6025             ;;
6026           ppc*-*linux*|powerpc*-*linux*)
6027             LD="${LD-ld} -m elf64ppc"
6028             ;;
6029           s390*-*linux*|s390*-*tpf*)
6030             LD="${LD-ld} -m elf64_s390"
6031             ;;
6032           sparc*-*linux*)
6033             LD="${LD-ld} -m elf64_sparc"
6034             ;;
6035         esac
6036         ;;
6037     esac
6038   fi
6039   rm -rf conftest*
6040   ;;
6041
6042 *-*-sco3.2v5*)
6043   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6044   SAVE_CFLAGS="$CFLAGS"
6045   CFLAGS="$CFLAGS -belf"
6046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6047 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6048 if ${lt_cv_cc_needs_belf+:} false; then :
6049   $as_echo_n "(cached) " >&6
6050 else
6051   ac_ext=c
6052 ac_cpp='$CPP $CPPFLAGS'
6053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6056
6057      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h.  */
6059
6060 int
6061 main ()
6062 {
6063
6064   ;
6065   return 0;
6066 }
6067 _ACEOF
6068 if ac_fn_c_try_link "$LINENO"; then :
6069   lt_cv_cc_needs_belf=yes
6070 else
6071   lt_cv_cc_needs_belf=no
6072 fi
6073 rm -f core conftest.err conftest.$ac_objext \
6074     conftest$ac_exeext conftest.$ac_ext
6075      ac_ext=c
6076 ac_cpp='$CPP $CPPFLAGS'
6077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6080
6081 fi
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6083 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6084   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6085     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6086     CFLAGS="$SAVE_CFLAGS"
6087   fi
6088   ;;
6089 *-*solaris*)
6090   # Find out which ABI we are using.
6091   echo 'int i;' > conftest.$ac_ext
6092   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6093   (eval $ac_compile) 2>&5
6094   ac_status=$?
6095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096   test $ac_status = 0; }; then
6097     case `/usr/bin/file conftest.o` in
6098     *64-bit*)
6099       case $lt_cv_prog_gnu_ld in
6100       yes*)
6101         case $host in
6102         i?86-*-solaris*)
6103           LD="${LD-ld} -m elf_x86_64"
6104           ;;
6105         sparc*-*-solaris*)
6106           LD="${LD-ld} -m elf64_sparc"
6107           ;;
6108         esac
6109         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6110         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6111           LD="${LD-ld}_sol2"
6112         fi
6113         ;;
6114       *)
6115         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6116           LD="${LD-ld} -64"
6117         fi
6118         ;;
6119       esac
6120       ;;
6121     esac
6122   fi
6123   rm -rf conftest*
6124   ;;
6125 esac
6126
6127 need_locks="$enable_libtool_lock"
6128
6129 if test -n "$ac_tool_prefix"; then
6130   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6131 set dummy ${ac_tool_prefix}mt; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6135   $as_echo_n "(cached) " >&6
6136 else
6137   if test -n "$MANIFEST_TOOL"; then
6138   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6139 else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6142 do
6143   IFS=$as_save_IFS
6144   test -z "$as_dir" && as_dir=.
6145     for ac_exec_ext in '' $ac_executable_extensions; do
6146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149     break 2
6150   fi
6151 done
6152   done
6153 IFS=$as_save_IFS
6154
6155 fi
6156 fi
6157 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6158 if test -n "$MANIFEST_TOOL"; then
6159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6160 $as_echo "$MANIFEST_TOOL" >&6; }
6161 else
6162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6164 fi
6165
6166
6167 fi
6168 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6169   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6170   # Extract the first word of "mt", so it can be a program name with args.
6171 set dummy mt; ac_word=$2
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173 $as_echo_n "checking for $ac_word... " >&6; }
6174 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6175   $as_echo_n "(cached) " >&6
6176 else
6177   if test -n "$ac_ct_MANIFEST_TOOL"; then
6178   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183   IFS=$as_save_IFS
6184   test -z "$as_dir" && as_dir=.
6185     for ac_exec_ext in '' $ac_executable_extensions; do
6186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6187     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189     break 2
6190   fi
6191 done
6192   done
6193 IFS=$as_save_IFS
6194
6195 fi
6196 fi
6197 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6198 if test -n "$ac_ct_MANIFEST_TOOL"; then
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6200 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6201 else
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6204 fi
6205
6206   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6207     MANIFEST_TOOL=":"
6208   else
6209     case $cross_compiling:$ac_tool_warned in
6210 yes:)
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6213 ac_tool_warned=yes ;;
6214 esac
6215     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6216   fi
6217 else
6218   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6219 fi
6220
6221 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6223 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6224 if ${lt_cv_path_mainfest_tool+:} false; then :
6225   $as_echo_n "(cached) " >&6
6226 else
6227   lt_cv_path_mainfest_tool=no
6228   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6229   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6230   cat conftest.err >&5
6231   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6232     lt_cv_path_mainfest_tool=yes
6233   fi
6234   rm -f conftest*
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6237 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6238 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6239   MANIFEST_TOOL=:
6240 fi
6241
6242
6243
6244
6245
6246
6247   case $host_os in
6248     rhapsody* | darwin*)
6249     if test -n "$ac_tool_prefix"; then
6250   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6251 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   if test -n "$DSYMUTIL"; then
6258   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263   IFS=$as_save_IFS
6264   test -z "$as_dir" && as_dir=.
6265     for ac_exec_ext in '' $ac_executable_extensions; do
6266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269     break 2
6270   fi
6271 done
6272   done
6273 IFS=$as_save_IFS
6274
6275 fi
6276 fi
6277 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6278 if test -n "$DSYMUTIL"; then
6279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6280 $as_echo "$DSYMUTIL" >&6; }
6281 else
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6284 fi
6285
6286
6287 fi
6288 if test -z "$ac_cv_prog_DSYMUTIL"; then
6289   ac_ct_DSYMUTIL=$DSYMUTIL
6290   # Extract the first word of "dsymutil", so it can be a program name with args.
6291 set dummy dsymutil; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297   if test -n "$ac_ct_DSYMUTIL"; then
6298   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303   IFS=$as_save_IFS
6304   test -z "$as_dir" && as_dir=.
6305     for ac_exec_ext in '' $ac_executable_extensions; do
6306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309     break 2
6310   fi
6311 done
6312   done
6313 IFS=$as_save_IFS
6314
6315 fi
6316 fi
6317 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6318 if test -n "$ac_ct_DSYMUTIL"; then
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6320 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6321 else
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6324 fi
6325
6326   if test "x$ac_ct_DSYMUTIL" = x; then
6327     DSYMUTIL=":"
6328   else
6329     case $cross_compiling:$ac_tool_warned in
6330 yes:)
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333 ac_tool_warned=yes ;;
6334 esac
6335     DSYMUTIL=$ac_ct_DSYMUTIL
6336   fi
6337 else
6338   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6339 fi
6340
6341     if test -n "$ac_tool_prefix"; then
6342   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6343 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if ${ac_cv_prog_NMEDIT+:} false; then :
6347   $as_echo_n "(cached) " >&6
6348 else
6349   if test -n "$NMEDIT"; then
6350   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355   IFS=$as_save_IFS
6356   test -z "$as_dir" && as_dir=.
6357     for ac_exec_ext in '' $ac_executable_extensions; do
6358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6359     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361     break 2
6362   fi
6363 done
6364   done
6365 IFS=$as_save_IFS
6366
6367 fi
6368 fi
6369 NMEDIT=$ac_cv_prog_NMEDIT
6370 if test -n "$NMEDIT"; then
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6372 $as_echo "$NMEDIT" >&6; }
6373 else
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376 fi
6377
6378
6379 fi
6380 if test -z "$ac_cv_prog_NMEDIT"; then
6381   ac_ct_NMEDIT=$NMEDIT
6382   # Extract the first word of "nmedit", so it can be a program name with args.
6383 set dummy nmedit; ac_word=$2
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6385 $as_echo_n "checking for $ac_word... " >&6; }
6386 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6387   $as_echo_n "(cached) " >&6
6388 else
6389   if test -n "$ac_ct_NMEDIT"; then
6390   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6394 do
6395   IFS=$as_save_IFS
6396   test -z "$as_dir" && as_dir=.
6397     for ac_exec_ext in '' $ac_executable_extensions; do
6398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6399     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6401     break 2
6402   fi
6403 done
6404   done
6405 IFS=$as_save_IFS
6406
6407 fi
6408 fi
6409 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6410 if test -n "$ac_ct_NMEDIT"; then
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6412 $as_echo "$ac_ct_NMEDIT" >&6; }
6413 else
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6416 fi
6417
6418   if test "x$ac_ct_NMEDIT" = x; then
6419     NMEDIT=":"
6420   else
6421     case $cross_compiling:$ac_tool_warned in
6422 yes:)
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6425 ac_tool_warned=yes ;;
6426 esac
6427     NMEDIT=$ac_ct_NMEDIT
6428   fi
6429 else
6430   NMEDIT="$ac_cv_prog_NMEDIT"
6431 fi
6432
6433     if test -n "$ac_tool_prefix"; then
6434   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6435 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if ${ac_cv_prog_LIPO+:} false; then :
6439   $as_echo_n "(cached) " >&6
6440 else
6441   if test -n "$LIPO"; then
6442   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6446 do
6447   IFS=$as_save_IFS
6448   test -z "$as_dir" && as_dir=.
6449     for ac_exec_ext in '' $ac_executable_extensions; do
6450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453     break 2
6454   fi
6455 done
6456   done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 LIPO=$ac_cv_prog_LIPO
6462 if test -n "$LIPO"; then
6463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6464 $as_echo "$LIPO" >&6; }
6465 else
6466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6468 fi
6469
6470
6471 fi
6472 if test -z "$ac_cv_prog_LIPO"; then
6473   ac_ct_LIPO=$LIPO
6474   # Extract the first word of "lipo", so it can be a program name with args.
6475 set dummy lipo; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6479   $as_echo_n "(cached) " >&6
6480 else
6481   if test -n "$ac_ct_LIPO"; then
6482   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489     for ac_exec_ext in '' $ac_executable_extensions; do
6490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491     ac_cv_prog_ac_ct_LIPO="lipo"
6492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496   done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6502 if test -n "$ac_ct_LIPO"; then
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6504 $as_echo "$ac_ct_LIPO" >&6; }
6505 else
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6508 fi
6509
6510   if test "x$ac_ct_LIPO" = x; then
6511     LIPO=":"
6512   else
6513     case $cross_compiling:$ac_tool_warned in
6514 yes:)
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6517 ac_tool_warned=yes ;;
6518 esac
6519     LIPO=$ac_ct_LIPO
6520   fi
6521 else
6522   LIPO="$ac_cv_prog_LIPO"
6523 fi
6524
6525     if test -n "$ac_tool_prefix"; then
6526   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6527 set dummy ${ac_tool_prefix}otool; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if ${ac_cv_prog_OTOOL+:} false; then :
6531   $as_echo_n "(cached) " >&6
6532 else
6533   if test -n "$OTOOL"; then
6534   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539   IFS=$as_save_IFS
6540   test -z "$as_dir" && as_dir=.
6541     for ac_exec_ext in '' $ac_executable_extensions; do
6542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545     break 2
6546   fi
6547 done
6548   done
6549 IFS=$as_save_IFS
6550
6551 fi
6552 fi
6553 OTOOL=$ac_cv_prog_OTOOL
6554 if test -n "$OTOOL"; then
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6556 $as_echo "$OTOOL" >&6; }
6557 else
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6560 fi
6561
6562
6563 fi
6564 if test -z "$ac_cv_prog_OTOOL"; then
6565   ac_ct_OTOOL=$OTOOL
6566   # Extract the first word of "otool", so it can be a program name with args.
6567 set dummy otool; ac_word=$2
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 $as_echo_n "checking for $ac_word... " >&6; }
6570 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6571   $as_echo_n "(cached) " >&6
6572 else
6573   if test -n "$ac_ct_OTOOL"; then
6574   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579   IFS=$as_save_IFS
6580   test -z "$as_dir" && as_dir=.
6581     for ac_exec_ext in '' $ac_executable_extensions; do
6582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6583     ac_cv_prog_ac_ct_OTOOL="otool"
6584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6585     break 2
6586   fi
6587 done
6588   done
6589 IFS=$as_save_IFS
6590
6591 fi
6592 fi
6593 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6594 if test -n "$ac_ct_OTOOL"; then
6595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6596 $as_echo "$ac_ct_OTOOL" >&6; }
6597 else
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 $as_echo "no" >&6; }
6600 fi
6601
6602   if test "x$ac_ct_OTOOL" = x; then
6603     OTOOL=":"
6604   else
6605     case $cross_compiling:$ac_tool_warned in
6606 yes:)
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6609 ac_tool_warned=yes ;;
6610 esac
6611     OTOOL=$ac_ct_OTOOL
6612   fi
6613 else
6614   OTOOL="$ac_cv_prog_OTOOL"
6615 fi
6616
6617     if test -n "$ac_tool_prefix"; then
6618   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6619 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_prog_OTOOL64+:} false; then :
6623   $as_echo_n "(cached) " >&6
6624 else
6625   if test -n "$OTOOL64"; then
6626   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6627 else
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6630 do
6631   IFS=$as_save_IFS
6632   test -z "$as_dir" && as_dir=.
6633     for ac_exec_ext in '' $ac_executable_extensions; do
6634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6635     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637     break 2
6638   fi
6639 done
6640   done
6641 IFS=$as_save_IFS
6642
6643 fi
6644 fi
6645 OTOOL64=$ac_cv_prog_OTOOL64
6646 if test -n "$OTOOL64"; then
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6648 $as_echo "$OTOOL64" >&6; }
6649 else
6650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6652 fi
6653
6654
6655 fi
6656 if test -z "$ac_cv_prog_OTOOL64"; then
6657   ac_ct_OTOOL64=$OTOOL64
6658   # Extract the first word of "otool64", so it can be a program name with args.
6659 set dummy otool64; ac_word=$2
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661 $as_echo_n "checking for $ac_word... " >&6; }
6662 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6663   $as_echo_n "(cached) " >&6
6664 else
6665   if test -n "$ac_ct_OTOOL64"; then
6666   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6667 else
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 for as_dir in $PATH
6670 do
6671   IFS=$as_save_IFS
6672   test -z "$as_dir" && as_dir=.
6673     for ac_exec_ext in '' $ac_executable_extensions; do
6674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6675     ac_cv_prog_ac_ct_OTOOL64="otool64"
6676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6677     break 2
6678   fi
6679 done
6680   done
6681 IFS=$as_save_IFS
6682
6683 fi
6684 fi
6685 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6686 if test -n "$ac_ct_OTOOL64"; then
6687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6688 $as_echo "$ac_ct_OTOOL64" >&6; }
6689 else
6690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691 $as_echo "no" >&6; }
6692 fi
6693
6694   if test "x$ac_ct_OTOOL64" = x; then
6695     OTOOL64=":"
6696   else
6697     case $cross_compiling:$ac_tool_warned in
6698 yes:)
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6701 ac_tool_warned=yes ;;
6702 esac
6703     OTOOL64=$ac_ct_OTOOL64
6704   fi
6705 else
6706   OTOOL64="$ac_cv_prog_OTOOL64"
6707 fi
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6736 $as_echo_n "checking for -single_module linker flag... " >&6; }
6737 if ${lt_cv_apple_cc_single_mod+:} false; then :
6738   $as_echo_n "(cached) " >&6
6739 else
6740   lt_cv_apple_cc_single_mod=no
6741       if test -z "${LT_MULTI_MODULE}"; then
6742         # By default we will add the -single_module flag. You can override
6743         # by either setting the environment variable LT_MULTI_MODULE
6744         # non-empty at configure time, or by adding -multi_module to the
6745         # link flags.
6746         rm -rf libconftest.dylib*
6747         echo "int foo(void){return 1;}" > conftest.c
6748         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6749 -dynamiclib -Wl,-single_module conftest.c" >&5
6750         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6751           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6752         _lt_result=$?
6753         # If there is a non-empty error log, and "single_module"
6754         # appears in it, assume the flag caused a linker warning
6755         if test -s conftest.err && $GREP single_module conftest.err; then
6756           cat conftest.err >&5
6757         # Otherwise, if the output was created with a 0 exit code from
6758         # the compiler, it worked.
6759         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6760           lt_cv_apple_cc_single_mod=yes
6761         else
6762           cat conftest.err >&5
6763         fi
6764         rm -rf libconftest.dylib*
6765         rm -f conftest.*
6766       fi
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6769 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6770
6771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6772 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6773 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6774   $as_echo_n "(cached) " >&6
6775 else
6776   lt_cv_ld_exported_symbols_list=no
6777       save_LDFLAGS=$LDFLAGS
6778       echo "_main" > conftest.sym
6779       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6780       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h.  */
6782
6783 int
6784 main ()
6785 {
6786
6787   ;
6788   return 0;
6789 }
6790 _ACEOF
6791 if ac_fn_c_try_link "$LINENO"; then :
6792   lt_cv_ld_exported_symbols_list=yes
6793 else
6794   lt_cv_ld_exported_symbols_list=no
6795 fi
6796 rm -f core conftest.err conftest.$ac_objext \
6797     conftest$ac_exeext conftest.$ac_ext
6798         LDFLAGS="$save_LDFLAGS"
6799
6800 fi
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6802 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6803
6804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6805 $as_echo_n "checking for -force_load linker flag... " >&6; }
6806 if ${lt_cv_ld_force_load+:} false; then :
6807   $as_echo_n "(cached) " >&6
6808 else
6809   lt_cv_ld_force_load=no
6810       cat > conftest.c << _LT_EOF
6811 int forced_loaded() { return 2;}
6812 _LT_EOF
6813       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6814       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6815       echo "$AR cru libconftest.a conftest.o" >&5
6816       $AR cru libconftest.a conftest.o 2>&5
6817       echo "$RANLIB libconftest.a" >&5
6818       $RANLIB libconftest.a 2>&5
6819       cat > conftest.c << _LT_EOF
6820 int main() { return 0;}
6821 _LT_EOF
6822       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6823       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6824       _lt_result=$?
6825       if test -s conftest.err && $GREP force_load conftest.err; then
6826         cat conftest.err >&5
6827       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6828         lt_cv_ld_force_load=yes
6829       else
6830         cat conftest.err >&5
6831       fi
6832         rm -f conftest.err libconftest.a conftest conftest.c
6833         rm -rf conftest.dSYM
6834
6835 fi
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6837 $as_echo "$lt_cv_ld_force_load" >&6; }
6838     case $host_os in
6839     rhapsody* | darwin1.[012])
6840       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6841     darwin1.*)
6842       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6843     darwin*) # darwin 5.x on
6844       # if running on 10.5 or later, the deployment target defaults
6845       # to the OS version, if on x86, and 10.4, the deployment
6846       # target defaults to 10.4. Don't you love it?
6847       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6848         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6849           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6850         10.[012]*)
6851           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6852         10.*)
6853           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6854       esac
6855     ;;
6856   esac
6857     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6858       _lt_dar_single_mod='$single_module'
6859     fi
6860     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6861       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6862     else
6863       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6864     fi
6865     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6866       _lt_dsymutil='~$DSYMUTIL $lib || :'
6867     else
6868       _lt_dsymutil=
6869     fi
6870     ;;
6871   esac
6872
6873 ac_ext=c
6874 ac_cpp='$CPP $CPPFLAGS'
6875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6879 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6880 # On Suns, sometimes $CPP names a directory.
6881 if test -n "$CPP" && test -d "$CPP"; then
6882   CPP=
6883 fi
6884 if test -z "$CPP"; then
6885   if ${ac_cv_prog_CPP+:} false; then :
6886   $as_echo_n "(cached) " >&6
6887 else
6888       # Double quotes because CPP needs to be expanded
6889     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6890     do
6891       ac_preproc_ok=false
6892 for ac_c_preproc_warn_flag in '' yes
6893 do
6894   # Use a header file that comes with gcc, so configuring glibc
6895   # with a fresh cross-compiler works.
6896   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6897   # <limits.h> exists even on freestanding compilers.
6898   # On the NeXT, cc -E runs the code through the compiler's parser,
6899   # not just through cpp. "Syntax error" is here to catch this case.
6900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h.  */
6902 #ifdef __STDC__
6903 # include <limits.h>
6904 #else
6905 # include <assert.h>
6906 #endif
6907                      Syntax error
6908 _ACEOF
6909 if ac_fn_c_try_cpp "$LINENO"; then :
6910
6911 else
6912   # Broken: fails on valid input.
6913 continue
6914 fi
6915 rm -f conftest.err conftest.i conftest.$ac_ext
6916
6917   # OK, works on sane cases.  Now check whether nonexistent headers
6918   # can be detected and how.
6919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h.  */
6921 #include <ac_nonexistent.h>
6922 _ACEOF
6923 if ac_fn_c_try_cpp "$LINENO"; then :
6924   # Broken: success on invalid input.
6925 continue
6926 else
6927   # Passes both tests.
6928 ac_preproc_ok=:
6929 break
6930 fi
6931 rm -f conftest.err conftest.i conftest.$ac_ext
6932
6933 done
6934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6935 rm -f conftest.i conftest.err conftest.$ac_ext
6936 if $ac_preproc_ok; then :
6937   break
6938 fi
6939
6940     done
6941     ac_cv_prog_CPP=$CPP
6942
6943 fi
6944   CPP=$ac_cv_prog_CPP
6945 else
6946   ac_cv_prog_CPP=$CPP
6947 fi
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6949 $as_echo "$CPP" >&6; }
6950 ac_preproc_ok=false
6951 for ac_c_preproc_warn_flag in '' yes
6952 do
6953   # Use a header file that comes with gcc, so configuring glibc
6954   # with a fresh cross-compiler works.
6955   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6956   # <limits.h> exists even on freestanding compilers.
6957   # On the NeXT, cc -E runs the code through the compiler's parser,
6958   # not just through cpp. "Syntax error" is here to catch this case.
6959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h.  */
6961 #ifdef __STDC__
6962 # include <limits.h>
6963 #else
6964 # include <assert.h>
6965 #endif
6966                      Syntax error
6967 _ACEOF
6968 if ac_fn_c_try_cpp "$LINENO"; then :
6969
6970 else
6971   # Broken: fails on valid input.
6972 continue
6973 fi
6974 rm -f conftest.err conftest.i conftest.$ac_ext
6975
6976   # OK, works on sane cases.  Now check whether nonexistent headers
6977   # can be detected and how.
6978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h.  */
6980 #include <ac_nonexistent.h>
6981 _ACEOF
6982 if ac_fn_c_try_cpp "$LINENO"; then :
6983   # Broken: success on invalid input.
6984 continue
6985 else
6986   # Passes both tests.
6987 ac_preproc_ok=:
6988 break
6989 fi
6990 rm -f conftest.err conftest.i conftest.$ac_ext
6991
6992 done
6993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6994 rm -f conftest.i conftest.err conftest.$ac_ext
6995 if $ac_preproc_ok; then :
6996
6997 else
6998   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7000 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7001 See \`config.log' for more details" "$LINENO" 5; }
7002 fi
7003
7004 ac_ext=c
7005 ac_cpp='$CPP $CPPFLAGS'
7006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7009
7010
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7012 $as_echo_n "checking for ANSI C header files... " >&6; }
7013 if ${ac_cv_header_stdc+:} false; then :
7014   $as_echo_n "(cached) " >&6
7015 else
7016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h.  */
7018 #include <stdlib.h>
7019 #include <stdarg.h>
7020 #include <string.h>
7021 #include <float.h>
7022
7023 int
7024 main ()
7025 {
7026
7027   ;
7028   return 0;
7029 }
7030 _ACEOF
7031 if ac_fn_c_try_compile "$LINENO"; then :
7032   ac_cv_header_stdc=yes
7033 else
7034   ac_cv_header_stdc=no
7035 fi
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037
7038 if test $ac_cv_header_stdc = yes; then
7039   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h.  */
7042 #include <string.h>
7043
7044 _ACEOF
7045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7046   $EGREP "memchr" >/dev/null 2>&1; then :
7047
7048 else
7049   ac_cv_header_stdc=no
7050 fi
7051 rm -f conftest*
7052
7053 fi
7054
7055 if test $ac_cv_header_stdc = yes; then
7056   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h.  */
7059 #include <stdlib.h>
7060
7061 _ACEOF
7062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7063   $EGREP "free" >/dev/null 2>&1; then :
7064
7065 else
7066   ac_cv_header_stdc=no
7067 fi
7068 rm -f conftest*
7069
7070 fi
7071
7072 if test $ac_cv_header_stdc = yes; then
7073   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7074   if test "$cross_compiling" = yes; then :
7075   :
7076 else
7077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h.  */
7079 #include <ctype.h>
7080 #include <stdlib.h>
7081 #if ((' ' & 0x0FF) == 0x020)
7082 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7083 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7084 #else
7085 # define ISLOWER(c) \
7086                    (('a' <= (c) && (c) <= 'i') \
7087                      || ('j' <= (c) && (c) <= 'r') \
7088                      || ('s' <= (c) && (c) <= 'z'))
7089 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7090 #endif
7091
7092 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7093 int
7094 main ()
7095 {
7096   int i;
7097   for (i = 0; i < 256; i++)
7098     if (XOR (islower (i), ISLOWER (i))
7099         || toupper (i) != TOUPPER (i))
7100       return 2;
7101   return 0;
7102 }
7103 _ACEOF
7104 if ac_fn_c_try_run "$LINENO"; then :
7105
7106 else
7107   ac_cv_header_stdc=no
7108 fi
7109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7110   conftest.$ac_objext conftest.beam conftest.$ac_ext
7111 fi
7112
7113 fi
7114 fi
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7116 $as_echo "$ac_cv_header_stdc" >&6; }
7117 if test $ac_cv_header_stdc = yes; then
7118
7119 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7120
7121 fi
7122
7123 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7124 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7125                   inttypes.h stdint.h unistd.h
7126 do :
7127   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7128 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7129 "
7130 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7131   cat >>confdefs.h <<_ACEOF
7132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7133 _ACEOF
7134
7135 fi
7136
7137 done
7138
7139
7140 for ac_header in dlfcn.h
7141 do :
7142   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7143 "
7144 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7145   cat >>confdefs.h <<_ACEOF
7146 #define HAVE_DLFCN_H 1
7147 _ACEOF
7148
7149 fi
7150
7151 done
7152
7153
7154
7155
7156
7157 # Set options
7158
7159
7160
7161         enable_dlopen=no
7162
7163
7164   enable_win32_dll=no
7165
7166
7167             # Check whether --enable-shared was given.
7168 if test "${enable_shared+set}" = set; then :
7169   enableval=$enable_shared; p=${PACKAGE-default}
7170     case $enableval in
7171     yes) enable_shared=yes ;;
7172     no) enable_shared=no ;;
7173     *)
7174       enable_shared=no
7175       # Look at the argument we got.  We use all the common list separators.
7176       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7177       for pkg in $enableval; do
7178         IFS="$lt_save_ifs"
7179         if test "X$pkg" = "X$p"; then
7180           enable_shared=yes
7181         fi
7182       done
7183       IFS="$lt_save_ifs"
7184       ;;
7185     esac
7186 else
7187   enable_shared=yes
7188 fi
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198   # Check whether --enable-static was given.
7199 if test "${enable_static+set}" = set; then :
7200   enableval=$enable_static; p=${PACKAGE-default}
7201     case $enableval in
7202     yes) enable_static=yes ;;
7203     no) enable_static=no ;;
7204     *)
7205      enable_static=no
7206       # Look at the argument we got.  We use all the common list separators.
7207       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7208       for pkg in $enableval; do
7209         IFS="$lt_save_ifs"
7210         if test "X$pkg" = "X$p"; then
7211           enable_static=yes
7212         fi
7213       done
7214       IFS="$lt_save_ifs"
7215       ;;
7216     esac
7217 else
7218   enable_static=yes
7219 fi
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230 # Check whether --with-pic was given.
7231 if test "${with_pic+set}" = set; then :
7232   withval=$with_pic; lt_p=${PACKAGE-default}
7233     case $withval in
7234     yes|no) pic_mode=$withval ;;
7235     *)
7236       pic_mode=default
7237       # Look at the argument we got.  We use all the common list separators.
7238       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7239       for lt_pkg in $withval; do
7240         IFS="$lt_save_ifs"
7241         if test "X$lt_pkg" = "X$lt_p"; then
7242           pic_mode=yes
7243         fi
7244       done
7245       IFS="$lt_save_ifs"
7246       ;;
7247     esac
7248 else
7249   pic_mode=default
7250 fi
7251
7252
7253 test -z "$pic_mode" && pic_mode=default
7254
7255
7256
7257
7258
7259
7260
7261   # Check whether --enable-fast-install was given.
7262 if test "${enable_fast_install+set}" = set; then :
7263   enableval=$enable_fast_install; p=${PACKAGE-default}
7264     case $enableval in
7265     yes) enable_fast_install=yes ;;
7266     no) enable_fast_install=no ;;
7267     *)
7268       enable_fast_install=no
7269       # Look at the argument we got.  We use all the common list separators.
7270       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7271       for pkg in $enableval; do
7272         IFS="$lt_save_ifs"
7273         if test "X$pkg" = "X$p"; then
7274           enable_fast_install=yes
7275         fi
7276       done
7277       IFS="$lt_save_ifs"
7278       ;;
7279     esac
7280 else
7281   enable_fast_install=yes
7282 fi
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294 # This can be used to rebuild libtool when needed
7295 LIBTOOL_DEPS="$ltmain"
7296
7297 # Always use our own libtool.
7298 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7299
7300
7301
7302
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 test -z "$LN_S" && LN_S="ln -s"
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344 if test -n "${ZSH_VERSION+set}" ; then
7345    setopt NO_GLOB_SUBST
7346 fi
7347
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7349 $as_echo_n "checking for objdir... " >&6; }
7350 if ${lt_cv_objdir+:} false; then :
7351   $as_echo_n "(cached) " >&6
7352 else
7353   rm -f .libs 2>/dev/null
7354 mkdir .libs 2>/dev/null
7355 if test -d .libs; then
7356   lt_cv_objdir=.libs
7357 else
7358   # MS-DOS does not allow filenames that begin with a dot.
7359   lt_cv_objdir=_libs
7360 fi
7361 rmdir .libs 2>/dev/null
7362 fi
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7364 $as_echo "$lt_cv_objdir" >&6; }
7365 objdir=$lt_cv_objdir
7366
7367
7368
7369
7370
7371 cat >>confdefs.h <<_ACEOF
7372 #define LT_OBJDIR "$lt_cv_objdir/"
7373 _ACEOF
7374
7375
7376
7377
7378 case $host_os in
7379 aix3*)
7380   # AIX sometimes has problems with the GCC collect2 program.  For some
7381   # reason, if we set the COLLECT_NAMES environment variable, the problems
7382   # vanish in a puff of smoke.
7383   if test "X${COLLECT_NAMES+set}" != Xset; then
7384     COLLECT_NAMES=
7385     export COLLECT_NAMES
7386   fi
7387   ;;
7388 esac
7389
7390 # Global variables:
7391 ofile=libtool
7392 can_build_shared=yes
7393
7394 # All known linkers require a `.a' archive for static linking (except MSVC,
7395 # which needs '.lib').
7396 libext=a
7397
7398 with_gnu_ld="$lt_cv_prog_gnu_ld"
7399
7400 old_CC="$CC"
7401 old_CFLAGS="$CFLAGS"
7402
7403 # Set sane defaults for various variables
7404 test -z "$CC" && CC=cc
7405 test -z "$LTCC" && LTCC=$CC
7406 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7407 test -z "$LD" && LD=ld
7408 test -z "$ac_objext" && ac_objext=o
7409
7410 for cc_temp in $compiler""; do
7411   case $cc_temp in
7412     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7413     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7414     \-*) ;;
7415     *) break;;
7416   esac
7417 done
7418 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7419
7420
7421 # Only perform the check for file, if the check method requires it
7422 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7423 case $deplibs_check_method in
7424 file_magic*)
7425   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7427 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7428 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7429   $as_echo_n "(cached) " >&6
7430 else
7431   case $MAGIC_CMD in
7432 [\\/*] |  ?:[\\/]*)
7433   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7434   ;;
7435 *)
7436   lt_save_MAGIC_CMD="$MAGIC_CMD"
7437   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7438   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7439   for ac_dir in $ac_dummy; do
7440     IFS="$lt_save_ifs"
7441     test -z "$ac_dir" && ac_dir=.
7442     if test -f $ac_dir/${ac_tool_prefix}file; then
7443       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7444       if test -n "$file_magic_test_file"; then
7445         case $deplibs_check_method in
7446         "file_magic "*)
7447           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7448           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7449           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7450             $EGREP "$file_magic_regex" > /dev/null; then
7451             :
7452           else
7453             cat <<_LT_EOF 1>&2
7454
7455 *** Warning: the command libtool uses to detect shared libraries,
7456 *** $file_magic_cmd, produces output that libtool cannot recognize.
7457 *** The result is that libtool may fail to recognize shared libraries
7458 *** as such.  This will affect the creation of libtool libraries that
7459 *** depend on shared libraries, but programs linked with such libtool
7460 *** libraries will work regardless of this problem.  Nevertheless, you
7461 *** may want to report the problem to your system manager and/or to
7462 *** bug-libtool@gnu.org
7463
7464 _LT_EOF
7465           fi ;;
7466         esac
7467       fi
7468       break
7469     fi
7470   done
7471   IFS="$lt_save_ifs"
7472   MAGIC_CMD="$lt_save_MAGIC_CMD"
7473   ;;
7474 esac
7475 fi
7476
7477 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7478 if test -n "$MAGIC_CMD"; then
7479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7480 $as_echo "$MAGIC_CMD" >&6; }
7481 else
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7484 fi
7485
7486
7487
7488
7489
7490 if test -z "$lt_cv_path_MAGIC_CMD"; then
7491   if test -n "$ac_tool_prefix"; then
7492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7493 $as_echo_n "checking for file... " >&6; }
7494 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7495   $as_echo_n "(cached) " >&6
7496 else
7497   case $MAGIC_CMD in
7498 [\\/*] |  ?:[\\/]*)
7499   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7500   ;;
7501 *)
7502   lt_save_MAGIC_CMD="$MAGIC_CMD"
7503   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7504   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7505   for ac_dir in $ac_dummy; do
7506     IFS="$lt_save_ifs"
7507     test -z "$ac_dir" && ac_dir=.
7508     if test -f $ac_dir/file; then
7509       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7510       if test -n "$file_magic_test_file"; then
7511         case $deplibs_check_method in
7512         "file_magic "*)
7513           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7514           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7515           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7516             $EGREP "$file_magic_regex" > /dev/null; then
7517             :
7518           else
7519             cat <<_LT_EOF 1>&2
7520
7521 *** Warning: the command libtool uses to detect shared libraries,
7522 *** $file_magic_cmd, produces output that libtool cannot recognize.
7523 *** The result is that libtool may fail to recognize shared libraries
7524 *** as such.  This will affect the creation of libtool libraries that
7525 *** depend on shared libraries, but programs linked with such libtool
7526 *** libraries will work regardless of this problem.  Nevertheless, you
7527 *** may want to report the problem to your system manager and/or to
7528 *** bug-libtool@gnu.org
7529
7530 _LT_EOF
7531           fi ;;
7532         esac
7533       fi
7534       break
7535     fi
7536   done
7537   IFS="$lt_save_ifs"
7538   MAGIC_CMD="$lt_save_MAGIC_CMD"
7539   ;;
7540 esac
7541 fi
7542
7543 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7544 if test -n "$MAGIC_CMD"; then
7545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7546 $as_echo "$MAGIC_CMD" >&6; }
7547 else
7548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7550 fi
7551
7552
7553   else
7554     MAGIC_CMD=:
7555   fi
7556 fi
7557
7558   fi
7559   ;;
7560 esac
7561
7562 # Use C for the default configuration in the libtool script
7563
7564 lt_save_CC="$CC"
7565 ac_ext=c
7566 ac_cpp='$CPP $CPPFLAGS'
7567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7570
7571
7572 # Source file extension for C test sources.
7573 ac_ext=c
7574
7575 # Object file extension for compiled C test sources.
7576 objext=o
7577 objext=$objext
7578
7579 # Code to be used in simple compile tests
7580 lt_simple_compile_test_code="int some_variable = 0;"
7581
7582 # Code to be used in simple link tests
7583 lt_simple_link_test_code='int main(){return(0);}'
7584
7585
7586
7587
7588
7589
7590
7591 # If no C compiler was specified, use CC.
7592 LTCC=${LTCC-"$CC"}
7593
7594 # If no C compiler flags were specified, use CFLAGS.
7595 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7596
7597 # Allow CC to be a program name with arguments.
7598 compiler=$CC
7599
7600 # Save the default compiler, since it gets overwritten when the other
7601 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7602 compiler_DEFAULT=$CC
7603
7604 # save warnings/boilerplate of simple test code
7605 ac_outfile=conftest.$ac_objext
7606 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7607 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7608 _lt_compiler_boilerplate=`cat conftest.err`
7609 $RM conftest*
7610
7611 ac_outfile=conftest.$ac_objext
7612 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7613 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7614 _lt_linker_boilerplate=`cat conftest.err`
7615 $RM -r conftest*
7616
7617
7618 if test -n "$compiler"; then
7619
7620 lt_prog_compiler_no_builtin_flag=
7621
7622 if test "$GCC" = yes; then
7623   case $cc_basename in
7624   nvcc*)
7625     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7626   *)
7627     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7628   esac
7629
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7631 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7632 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7633   $as_echo_n "(cached) " >&6
7634 else
7635   lt_cv_prog_compiler_rtti_exceptions=no
7636    ac_outfile=conftest.$ac_objext
7637    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7638    lt_compiler_flag="-fno-rtti -fno-exceptions"
7639    # Insert the option either (1) after the last *FLAGS variable, or
7640    # (2) before a word containing "conftest.", or (3) at the end.
7641    # Note that $ac_compile itself does not contain backslashes and begins
7642    # with a dollar sign (not a hyphen), so the echo should work correctly.
7643    # The option is referenced via a variable to avoid confusing sed.
7644    lt_compile=`echo "$ac_compile" | $SED \
7645    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7646    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7647    -e 's:$: $lt_compiler_flag:'`
7648    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7649    (eval "$lt_compile" 2>conftest.err)
7650    ac_status=$?
7651    cat conftest.err >&5
7652    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653    if (exit $ac_status) && test -s "$ac_outfile"; then
7654      # The compiler can only warn and ignore the option if not recognized
7655      # So say no if there are warnings other than the usual output.
7656      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7657      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7658      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7659        lt_cv_prog_compiler_rtti_exceptions=yes
7660      fi
7661    fi
7662    $RM conftest*
7663
7664 fi
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7666 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7667
7668 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7669     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7670 else
7671     :
7672 fi
7673
7674 fi
7675
7676
7677
7678
7679
7680
7681   lt_prog_compiler_wl=
7682 lt_prog_compiler_pic=
7683 lt_prog_compiler_static=
7684
7685
7686   if test "$GCC" = yes; then
7687     lt_prog_compiler_wl='-Wl,'
7688     lt_prog_compiler_static='-static'
7689
7690     case $host_os in
7691       aix*)
7692       # All AIX code is PIC.
7693       if test "$host_cpu" = ia64; then
7694         # AIX 5 now supports IA64 processor
7695         lt_prog_compiler_static='-Bstatic'
7696       fi
7697       ;;
7698
7699     amigaos*)
7700       case $host_cpu in
7701       powerpc)
7702             # see comment about AmigaOS4 .so support
7703             lt_prog_compiler_pic='-fPIC'
7704         ;;
7705       m68k)
7706             # FIXME: we need at least 68020 code to build shared libraries, but
7707             # adding the `-m68020' flag to GCC prevents building anything better,
7708             # like `-m68040'.
7709             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7710         ;;
7711       esac
7712       ;;
7713
7714     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7715       # PIC is the default for these OSes.
7716       ;;
7717
7718     mingw* | cygwin* | pw32* | os2* | cegcc*)
7719       # This hack is so that the source file can tell whether it is being
7720       # built for inclusion in a dll (and should export symbols for example).
7721       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7722       # (--disable-auto-import) libraries
7723       lt_prog_compiler_pic='-DDLL_EXPORT'
7724       ;;
7725
7726     darwin* | rhapsody*)
7727       # PIC is the default on this platform
7728       # Common symbols not allowed in MH_DYLIB files
7729       lt_prog_compiler_pic='-fno-common'
7730       ;;
7731
7732     haiku*)
7733       # PIC is the default for Haiku.
7734       # The "-static" flag exists, but is broken.
7735       lt_prog_compiler_static=
7736       ;;
7737
7738     hpux*)
7739       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7740       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7741       # sets the default TLS model and affects inlining.
7742       case $host_cpu in
7743       hppa*64*)
7744         # +Z the default
7745         ;;
7746       *)
7747         lt_prog_compiler_pic='-fPIC'
7748         ;;
7749       esac
7750       ;;
7751
7752     interix[3-9]*)
7753       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7754       # Instead, we relocate shared libraries at runtime.
7755       ;;
7756
7757     msdosdjgpp*)
7758       # Just because we use GCC doesn't mean we suddenly get shared libraries
7759       # on systems that don't support them.
7760       lt_prog_compiler_can_build_shared=no
7761       enable_shared=no
7762       ;;
7763
7764     *nto* | *qnx*)
7765       # QNX uses GNU C++, but need to define -shared option too, otherwise
7766       # it will coredump.
7767       lt_prog_compiler_pic='-fPIC -shared'
7768       ;;
7769
7770     sysv4*MP*)
7771       if test -d /usr/nec; then
7772         lt_prog_compiler_pic=-Kconform_pic
7773       fi
7774       ;;
7775
7776     *)
7777       lt_prog_compiler_pic='-fPIC'
7778       ;;
7779     esac
7780
7781     case $cc_basename in
7782     nvcc*) # Cuda Compiler Driver 2.2
7783       lt_prog_compiler_wl='-Xlinker '
7784       if test -n "$lt_prog_compiler_pic"; then
7785         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7786       fi
7787       ;;
7788     esac
7789   else
7790     # PORTME Check for flag to pass linker flags through the system compiler.
7791     case $host_os in
7792     aix*)
7793       lt_prog_compiler_wl='-Wl,'
7794       if test "$host_cpu" = ia64; then
7795         # AIX 5 now supports IA64 processor
7796         lt_prog_compiler_static='-Bstatic'
7797       else
7798         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7799       fi
7800       ;;
7801
7802     mingw* | cygwin* | pw32* | os2* | cegcc*)
7803       # This hack is so that the source file can tell whether it is being
7804       # built for inclusion in a dll (and should export symbols for example).
7805       lt_prog_compiler_pic='-DDLL_EXPORT'
7806       ;;
7807
7808     hpux9* | hpux10* | hpux11*)
7809       lt_prog_compiler_wl='-Wl,'
7810       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7811       # not for PA HP-UX.
7812       case $host_cpu in
7813       hppa*64*|ia64*)
7814         # +Z the default
7815         ;;
7816       *)
7817         lt_prog_compiler_pic='+Z'
7818         ;;
7819       esac
7820       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7821       lt_prog_compiler_static='${wl}-a ${wl}archive'
7822       ;;
7823
7824     irix5* | irix6* | nonstopux*)
7825       lt_prog_compiler_wl='-Wl,'
7826       # PIC (with -KPIC) is the default.
7827       lt_prog_compiler_static='-non_shared'
7828       ;;
7829
7830     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7831       case $cc_basename in
7832       # old Intel for x86_64 which still supported -KPIC.
7833       ecc*)
7834         lt_prog_compiler_wl='-Wl,'
7835         lt_prog_compiler_pic='-KPIC'
7836         lt_prog_compiler_static='-static'
7837         ;;
7838       # icc used to be incompatible with GCC.
7839       # ICC 10 doesn't accept -KPIC any more.
7840       icc* | ifort*)
7841         lt_prog_compiler_wl='-Wl,'
7842         lt_prog_compiler_pic='-fPIC'
7843         lt_prog_compiler_static='-static'
7844         ;;
7845       # Lahey Fortran 8.1.
7846       lf95*)
7847         lt_prog_compiler_wl='-Wl,'
7848         lt_prog_compiler_pic='--shared'
7849         lt_prog_compiler_static='--static'
7850         ;;
7851       nagfor*)
7852         # NAG Fortran compiler
7853         lt_prog_compiler_wl='-Wl,-Wl,,'
7854         lt_prog_compiler_pic='-PIC'
7855         lt_prog_compiler_static='-Bstatic'
7856         ;;
7857       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7858         # Portland Group compilers (*not* the Pentium gcc compiler,
7859         # which looks to be a dead project)
7860         lt_prog_compiler_wl='-Wl,'
7861         lt_prog_compiler_pic='-fpic'
7862         lt_prog_compiler_static='-Bstatic'
7863         ;;
7864       ccc*)
7865         lt_prog_compiler_wl='-Wl,'
7866         # All Alpha code is PIC.
7867         lt_prog_compiler_static='-non_shared'
7868         ;;
7869       xl* | bgxl* | bgf* | mpixl*)
7870         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7871         lt_prog_compiler_wl='-Wl,'
7872         lt_prog_compiler_pic='-qpic'
7873         lt_prog_compiler_static='-qstaticlink'
7874         ;;
7875       *)
7876         case `$CC -V 2>&1 | sed 5q` in
7877         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7878           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7879           lt_prog_compiler_pic='-KPIC'
7880           lt_prog_compiler_static='-Bstatic'
7881           lt_prog_compiler_wl=''
7882           ;;
7883         *Sun\ F* | *Sun*Fortran*)
7884           lt_prog_compiler_pic='-KPIC'
7885           lt_prog_compiler_static='-Bstatic'
7886           lt_prog_compiler_wl='-Qoption ld '
7887           ;;
7888         *Sun\ C*)
7889           # Sun C 5.9
7890           lt_prog_compiler_pic='-KPIC'
7891           lt_prog_compiler_static='-Bstatic'
7892           lt_prog_compiler_wl='-Wl,'
7893           ;;
7894         *Intel*\ [CF]*Compiler*)
7895           lt_prog_compiler_wl='-Wl,'
7896           lt_prog_compiler_pic='-fPIC'
7897           lt_prog_compiler_static='-static'
7898           ;;
7899         *Portland\ Group*)
7900           lt_prog_compiler_wl='-Wl,'
7901           lt_prog_compiler_pic='-fpic'
7902           lt_prog_compiler_static='-Bstatic'
7903           ;;
7904         esac
7905         ;;
7906       esac
7907       ;;
7908
7909     newsos6)
7910       lt_prog_compiler_pic='-KPIC'
7911       lt_prog_compiler_static='-Bstatic'
7912       ;;
7913
7914     *nto* | *qnx*)
7915       # QNX uses GNU C++, but need to define -shared option too, otherwise
7916       # it will coredump.
7917       lt_prog_compiler_pic='-fPIC -shared'
7918       ;;
7919
7920     osf3* | osf4* | osf5*)
7921       lt_prog_compiler_wl='-Wl,'
7922       # All OSF/1 code is PIC.
7923       lt_prog_compiler_static='-non_shared'
7924       ;;
7925
7926     rdos*)
7927       lt_prog_compiler_static='-non_shared'
7928       ;;
7929
7930     solaris*)
7931       lt_prog_compiler_pic='-KPIC'
7932       lt_prog_compiler_static='-Bstatic'
7933       case $cc_basename in
7934       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7935         lt_prog_compiler_wl='-Qoption ld ';;
7936       *)
7937         lt_prog_compiler_wl='-Wl,';;
7938       esac
7939       ;;
7940
7941     sunos4*)
7942       lt_prog_compiler_wl='-Qoption ld '
7943       lt_prog_compiler_pic='-PIC'
7944       lt_prog_compiler_static='-Bstatic'
7945       ;;
7946
7947     sysv4 | sysv4.2uw2* | sysv4.3*)
7948       lt_prog_compiler_wl='-Wl,'
7949       lt_prog_compiler_pic='-KPIC'
7950       lt_prog_compiler_static='-Bstatic'
7951       ;;
7952
7953     sysv4*MP*)
7954       if test -d /usr/nec ;then
7955         lt_prog_compiler_pic='-Kconform_pic'
7956         lt_prog_compiler_static='-Bstatic'
7957       fi
7958       ;;
7959
7960     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7961       lt_prog_compiler_wl='-Wl,'
7962       lt_prog_compiler_pic='-KPIC'
7963       lt_prog_compiler_static='-Bstatic'
7964       ;;
7965
7966     unicos*)
7967       lt_prog_compiler_wl='-Wl,'
7968       lt_prog_compiler_can_build_shared=no
7969       ;;
7970
7971     uts4*)
7972       lt_prog_compiler_pic='-pic'
7973       lt_prog_compiler_static='-Bstatic'
7974       ;;
7975
7976     *)
7977       lt_prog_compiler_can_build_shared=no
7978       ;;
7979     esac
7980   fi
7981
7982 case $host_os in
7983   # For platforms which do not support PIC, -DPIC is meaningless:
7984   *djgpp*)
7985     lt_prog_compiler_pic=
7986     ;;
7987   *)
7988     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7989     ;;
7990 esac
7991
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7993 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7994 if ${lt_cv_prog_compiler_pic+:} false; then :
7995   $as_echo_n "(cached) " >&6
7996 else
7997   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7998 fi
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8000 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8001 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8002
8003 #
8004 # Check to make sure the PIC flag actually works.
8005 #
8006 if test -n "$lt_prog_compiler_pic"; then
8007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8008 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8009 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8010   $as_echo_n "(cached) " >&6
8011 else
8012   lt_cv_prog_compiler_pic_works=no
8013    ac_outfile=conftest.$ac_objext
8014    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8015    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8016    # Insert the option either (1) after the last *FLAGS variable, or
8017    # (2) before a word containing "conftest.", or (3) at the end.
8018    # Note that $ac_compile itself does not contain backslashes and begins
8019    # with a dollar sign (not a hyphen), so the echo should work correctly.
8020    # The option is referenced via a variable to avoid confusing sed.
8021    lt_compile=`echo "$ac_compile" | $SED \
8022    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8023    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8024    -e 's:$: $lt_compiler_flag:'`
8025    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8026    (eval "$lt_compile" 2>conftest.err)
8027    ac_status=$?
8028    cat conftest.err >&5
8029    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030    if (exit $ac_status) && test -s "$ac_outfile"; then
8031      # The compiler can only warn and ignore the option if not recognized
8032      # So say no if there are warnings other than the usual output.
8033      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8034      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8035      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8036        lt_cv_prog_compiler_pic_works=yes
8037      fi
8038    fi
8039    $RM conftest*
8040
8041 fi
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8043 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8044
8045 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8046     case $lt_prog_compiler_pic in
8047      "" | " "*) ;;
8048      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8049      esac
8050 else
8051     lt_prog_compiler_pic=
8052      lt_prog_compiler_can_build_shared=no
8053 fi
8054
8055 fi
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067 #
8068 # Check to make sure the static flag actually works.
8069 #
8070 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8072 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8073 if ${lt_cv_prog_compiler_static_works+:} false; then :
8074   $as_echo_n "(cached) " >&6
8075 else
8076   lt_cv_prog_compiler_static_works=no
8077    save_LDFLAGS="$LDFLAGS"
8078    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8079    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8080    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8081      # The linker can only warn and ignore the option if not recognized
8082      # So say no if there are warnings
8083      if test -s conftest.err; then
8084        # Append any errors to the config.log.
8085        cat conftest.err 1>&5
8086        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8087        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8088        if diff conftest.exp conftest.er2 >/dev/null; then
8089          lt_cv_prog_compiler_static_works=yes
8090        fi
8091      else
8092        lt_cv_prog_compiler_static_works=yes
8093      fi
8094    fi
8095    $RM -r conftest*
8096    LDFLAGS="$save_LDFLAGS"
8097
8098 fi
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8100 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8101
8102 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8103     :
8104 else
8105     lt_prog_compiler_static=
8106 fi
8107
8108
8109
8110
8111
8112
8113
8114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8115 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8116 if ${lt_cv_prog_compiler_c_o+:} false; then :
8117   $as_echo_n "(cached) " >&6
8118 else
8119   lt_cv_prog_compiler_c_o=no
8120    $RM -r conftest 2>/dev/null
8121    mkdir conftest
8122    cd conftest
8123    mkdir out
8124    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8125
8126    lt_compiler_flag="-o out/conftest2.$ac_objext"
8127    # Insert the option either (1) after the last *FLAGS variable, or
8128    # (2) before a word containing "conftest.", or (3) at the end.
8129    # Note that $ac_compile itself does not contain backslashes and begins
8130    # with a dollar sign (not a hyphen), so the echo should work correctly.
8131    lt_compile=`echo "$ac_compile" | $SED \
8132    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8133    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8134    -e 's:$: $lt_compiler_flag:'`
8135    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8136    (eval "$lt_compile" 2>out/conftest.err)
8137    ac_status=$?
8138    cat out/conftest.err >&5
8139    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8141    then
8142      # The compiler can only warn and ignore the option if not recognized
8143      # So say no if there are warnings
8144      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8145      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8146      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8147        lt_cv_prog_compiler_c_o=yes
8148      fi
8149    fi
8150    chmod u+w . 2>&5
8151    $RM conftest*
8152    # SGI C++ compiler will create directory out/ii_files/ for
8153    # template instantiation
8154    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8155    $RM out/* && rmdir out
8156    cd ..
8157    $RM -r conftest
8158    $RM conftest*
8159
8160 fi
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8162 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8163
8164
8165
8166
8167
8168
8169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8170 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8171 if ${lt_cv_prog_compiler_c_o+:} false; then :
8172   $as_echo_n "(cached) " >&6
8173 else
8174   lt_cv_prog_compiler_c_o=no
8175    $RM -r conftest 2>/dev/null
8176    mkdir conftest
8177    cd conftest
8178    mkdir out
8179    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8180
8181    lt_compiler_flag="-o out/conftest2.$ac_objext"
8182    # Insert the option either (1) after the last *FLAGS variable, or
8183    # (2) before a word containing "conftest.", or (3) at the end.
8184    # Note that $ac_compile itself does not contain backslashes and begins
8185    # with a dollar sign (not a hyphen), so the echo should work correctly.
8186    lt_compile=`echo "$ac_compile" | $SED \
8187    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8188    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8189    -e 's:$: $lt_compiler_flag:'`
8190    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8191    (eval "$lt_compile" 2>out/conftest.err)
8192    ac_status=$?
8193    cat out/conftest.err >&5
8194    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8196    then
8197      # The compiler can only warn and ignore the option if not recognized
8198      # So say no if there are warnings
8199      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8200      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8201      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8202        lt_cv_prog_compiler_c_o=yes
8203      fi
8204    fi
8205    chmod u+w . 2>&5
8206    $RM conftest*
8207    # SGI C++ compiler will create directory out/ii_files/ for
8208    # template instantiation
8209    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8210    $RM out/* && rmdir out
8211    cd ..
8212    $RM -r conftest
8213    $RM conftest*
8214
8215 fi
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8217 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8218
8219
8220
8221
8222 hard_links="nottested"
8223 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8224   # do not overwrite the value of need_locks provided by the user
8225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8226 $as_echo_n "checking if we can lock with hard links... " >&6; }
8227   hard_links=yes
8228   $RM conftest*
8229   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8230   touch conftest.a
8231   ln conftest.a conftest.b 2>&5 || hard_links=no
8232   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8234 $as_echo "$hard_links" >&6; }
8235   if test "$hard_links" = no; then
8236     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8237 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8238     need_locks=warn
8239   fi
8240 else
8241   need_locks=no
8242 fi
8243
8244
8245
8246
8247
8248
8249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8250 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8251
8252   runpath_var=
8253   allow_undefined_flag=
8254   always_export_symbols=no
8255   archive_cmds=
8256   archive_expsym_cmds=
8257   compiler_needs_object=no
8258   enable_shared_with_static_runtimes=no
8259   export_dynamic_flag_spec=
8260   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8261   hardcode_automatic=no
8262   hardcode_direct=no
8263   hardcode_direct_absolute=no
8264   hardcode_libdir_flag_spec=
8265   hardcode_libdir_separator=
8266   hardcode_minus_L=no
8267   hardcode_shlibpath_var=unsupported
8268   inherit_rpath=no
8269   link_all_deplibs=unknown
8270   module_cmds=
8271   module_expsym_cmds=
8272   old_archive_from_new_cmds=
8273   old_archive_from_expsyms_cmds=
8274   thread_safe_flag_spec=
8275   whole_archive_flag_spec=
8276   # include_expsyms should be a list of space-separated symbols to be *always*
8277   # included in the symbol list
8278   include_expsyms=
8279   # exclude_expsyms can be an extended regexp of symbols to exclude
8280   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8281   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8282   # as well as any symbol that contains `d'.
8283   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8284   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8285   # platforms (ab)use it in PIC code, but their linkers get confused if
8286   # the symbol is explicitly referenced.  Since portable code cannot
8287   # rely on this symbol name, it's probably fine to never include it in
8288   # preloaded symbol tables.
8289   # Exclude shared library initialization/finalization symbols.
8290   extract_expsyms_cmds=
8291
8292   case $host_os in
8293   cygwin* | mingw* | pw32* | cegcc*)
8294     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8295     # When not using gcc, we currently assume that we are using
8296     # Microsoft Visual C++.
8297     if test "$GCC" != yes; then
8298       with_gnu_ld=no
8299     fi
8300     ;;
8301   interix*)
8302     # we just hope/assume this is gcc and not c89 (= MSVC++)
8303     with_gnu_ld=yes
8304     ;;
8305   openbsd*)
8306     with_gnu_ld=no
8307     ;;
8308   linux* | k*bsd*-gnu | gnu*)
8309     link_all_deplibs=no
8310     ;;
8311   esac
8312
8313   ld_shlibs=yes
8314
8315   # On some targets, GNU ld is compatible enough with the native linker
8316   # that we're better off using the native interface for both.
8317   lt_use_gnu_ld_interface=no
8318   if test "$with_gnu_ld" = yes; then
8319     case $host_os in
8320       aix*)
8321         # The AIX port of GNU ld has always aspired to compatibility
8322         # with the native linker.  However, as the warning in the GNU ld
8323         # block says, versions before 2.19.5* couldn't really create working
8324         # shared libraries, regardless of the interface used.
8325         case `$LD -v 2>&1` in
8326           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8327           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8328           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8329           *)
8330             lt_use_gnu_ld_interface=yes
8331             ;;
8332         esac
8333         ;;
8334       *)
8335         lt_use_gnu_ld_interface=yes
8336         ;;
8337     esac
8338   fi
8339
8340   if test "$lt_use_gnu_ld_interface" = yes; then
8341     # If archive_cmds runs LD, not CC, wlarc should be empty
8342     wlarc='${wl}'
8343
8344     # Set some defaults for GNU ld with shared library support. These
8345     # are reset later if shared libraries are not supported. Putting them
8346     # here allows them to be overridden if necessary.
8347     runpath_var=LD_RUN_PATH
8348     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8349     export_dynamic_flag_spec='${wl}--export-dynamic'
8350     # ancient GNU ld didn't support --whole-archive et. al.
8351     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8352       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8353     else
8354       whole_archive_flag_spec=
8355     fi
8356     supports_anon_versioning=no
8357     case `$LD -v 2>&1` in
8358       *GNU\ gold*) supports_anon_versioning=yes ;;
8359       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8360       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8361       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8362       *\ 2.11.*) ;; # other 2.11 versions
8363       *) supports_anon_versioning=yes ;;
8364     esac
8365
8366     # See if GNU ld supports shared libraries.
8367     case $host_os in
8368     aix[3-9]*)
8369       # On AIX/PPC, the GNU linker is very broken
8370       if test "$host_cpu" != ia64; then
8371         ld_shlibs=no
8372         cat <<_LT_EOF 1>&2
8373
8374 *** Warning: the GNU linker, at least up to release 2.19, is reported
8375 *** to be unable to reliably create shared libraries on AIX.
8376 *** Therefore, libtool is disabling shared libraries support.  If you
8377 *** really care for shared libraries, you may want to install binutils
8378 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8379 *** You will then need to restart the configuration process.
8380
8381 _LT_EOF
8382       fi
8383       ;;
8384
8385     amigaos*)
8386       case $host_cpu in
8387       powerpc)
8388             # see comment about AmigaOS4 .so support
8389             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8390             archive_expsym_cmds=''
8391         ;;
8392       m68k)
8393             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)'
8394             hardcode_libdir_flag_spec='-L$libdir'
8395             hardcode_minus_L=yes
8396         ;;
8397       esac
8398       ;;
8399
8400     beos*)
8401       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8402         allow_undefined_flag=unsupported
8403         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8404         # support --undefined.  This deserves some investigation.  FIXME
8405         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8406       else
8407         ld_shlibs=no
8408       fi
8409       ;;
8410
8411     cygwin* | mingw* | pw32* | cegcc*)
8412       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8413       # as there is no search path for DLLs.
8414       hardcode_libdir_flag_spec='-L$libdir'
8415       export_dynamic_flag_spec='${wl}--export-all-symbols'
8416       allow_undefined_flag=unsupported
8417       always_export_symbols=no
8418       enable_shared_with_static_runtimes=yes
8419       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'
8420       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8421
8422       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8423         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8424         # If the export-symbols file already is a .def file (1st line
8425         # is EXPORTS), use it as is; otherwise, prepend...
8426         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8427           cp $export_symbols $output_objdir/$soname.def;
8428         else
8429           echo EXPORTS > $output_objdir/$soname.def;
8430           cat $export_symbols >> $output_objdir/$soname.def;
8431         fi~
8432         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8433       else
8434         ld_shlibs=no
8435       fi
8436       ;;
8437
8438     haiku*)
8439       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8440       link_all_deplibs=yes
8441       ;;
8442
8443     interix[3-9]*)
8444       hardcode_direct=no
8445       hardcode_shlibpath_var=no
8446       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8447       export_dynamic_flag_spec='${wl}-E'
8448       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8449       # Instead, shared libraries are loaded at an image base (0x10000000 by
8450       # default) and relocated if they conflict, which is a slow very memory
8451       # consuming and fragmenting process.  To avoid this, we pick a random,
8452       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8453       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8454       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8455       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'
8456       ;;
8457
8458     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8459       tmp_diet=no
8460       if test "$host_os" = linux-dietlibc; then
8461         case $cc_basename in
8462           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8463         esac
8464       fi
8465       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8466          && test "$tmp_diet" = no
8467       then
8468         tmp_addflag=' $pic_flag'
8469         tmp_sharedflag='-shared'
8470         case $cc_basename,$host_cpu in
8471         pgcc*)                          # Portland Group C compiler
8472           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'
8473           tmp_addflag=' $pic_flag'
8474           ;;
8475         pgf77* | pgf90* | pgf95* | pgfortran*)
8476                                         # Portland Group f77 and f90 compilers
8477           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'
8478           tmp_addflag=' $pic_flag -Mnomain' ;;
8479         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8480           tmp_addflag=' -i_dynamic' ;;
8481         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8482           tmp_addflag=' -i_dynamic -nofor_main' ;;
8483         ifc* | ifort*)                  # Intel Fortran compiler
8484           tmp_addflag=' -nofor_main' ;;
8485         lf95*)                          # Lahey Fortran 8.1
8486           whole_archive_flag_spec=
8487           tmp_sharedflag='--shared' ;;
8488         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8489           tmp_sharedflag='-qmkshrobj'
8490           tmp_addflag= ;;
8491         nvcc*)  # Cuda Compiler Driver 2.2
8492           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'
8493           compiler_needs_object=yes
8494           ;;
8495         esac
8496         case `$CC -V 2>&1 | sed 5q` in
8497         *Sun\ C*)                       # Sun C 5.9
8498           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'
8499           compiler_needs_object=yes
8500           tmp_sharedflag='-G' ;;
8501         *Sun\ F*)                       # Sun Fortran 8.3
8502           tmp_sharedflag='-G' ;;
8503         esac
8504         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8505
8506         if test "x$supports_anon_versioning" = xyes; then
8507           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8508             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8509             echo "local: *; };" >> $output_objdir/$libname.ver~
8510             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8511         fi
8512
8513         case $cc_basename in
8514         xlf* | bgf* | bgxlf* | mpixlf*)
8515           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8516           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8517           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8518           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8519           if test "x$supports_anon_versioning" = xyes; then
8520             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8521               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8522               echo "local: *; };" >> $output_objdir/$libname.ver~
8523               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8524           fi
8525           ;;
8526         esac
8527       else
8528         ld_shlibs=no
8529       fi
8530       ;;
8531
8532     netbsd* | netbsdelf*-gnu)
8533       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8534         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8535         wlarc=
8536       else
8537         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8538         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8539       fi
8540       ;;
8541
8542     solaris*)
8543       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8544         ld_shlibs=no
8545         cat <<_LT_EOF 1>&2
8546
8547 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8548 *** create shared libraries on Solaris systems.  Therefore, libtool
8549 *** is disabling shared libraries support.  We urge you to upgrade GNU
8550 *** binutils to release 2.9.1 or newer.  Another option is to modify
8551 *** your PATH or compiler configuration so that the native linker is
8552 *** used, and then restart.
8553
8554 _LT_EOF
8555       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8556         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8557         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8558       else
8559         ld_shlibs=no
8560       fi
8561       ;;
8562
8563     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8564       case `$LD -v 2>&1` in
8565         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8566         ld_shlibs=no
8567         cat <<_LT_EOF 1>&2
8568
8569 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8570 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8571 *** is disabling shared libraries support.  We urge you to upgrade GNU
8572 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8573 *** your PATH or compiler configuration so that the native linker is
8574 *** used, and then restart.
8575
8576 _LT_EOF
8577         ;;
8578         *)
8579           # For security reasons, it is highly recommended that you always
8580           # use absolute paths for naming shared libraries, and exclude the
8581           # DT_RUNPATH tag from executables and libraries.  But doing so
8582           # requires that you compile everything twice, which is a pain.
8583           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8584             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8585             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8586             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8587           else
8588             ld_shlibs=no
8589           fi
8590         ;;
8591       esac
8592       ;;
8593
8594     sunos4*)
8595       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8596       wlarc=
8597       hardcode_direct=yes
8598       hardcode_shlibpath_var=no
8599       ;;
8600
8601     *)
8602       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8603         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8604         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8605       else
8606         ld_shlibs=no
8607       fi
8608       ;;
8609     esac
8610
8611     if test "$ld_shlibs" = no; then
8612       runpath_var=
8613       hardcode_libdir_flag_spec=
8614       export_dynamic_flag_spec=
8615       whole_archive_flag_spec=
8616     fi
8617   else
8618     # PORTME fill in a description of your system's linker (not GNU ld)
8619     case $host_os in
8620     aix3*)
8621       allow_undefined_flag=unsupported
8622       always_export_symbols=yes
8623       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'
8624       # Note: this linker hardcodes the directories in LIBPATH if there
8625       # are no directories specified by -L.
8626       hardcode_minus_L=yes
8627       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8628         # Neither direct hardcoding nor static linking is supported with a
8629         # broken collect2.
8630         hardcode_direct=unsupported
8631       fi
8632       ;;
8633
8634     aix[4-9]*)
8635       if test "$host_cpu" = ia64; then
8636         # On IA64, the linker does run time linking by default, so we don't
8637         # have to do anything special.
8638         aix_use_runtimelinking=no
8639         exp_sym_flag='-Bexport'
8640         no_entry_flag=""
8641       else
8642         # If we're using GNU nm, then we don't want the "-C" option.
8643         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8644         # Also, AIX nm treats weak defined symbols like other global
8645         # defined symbols, whereas GNU nm marks them as "W".
8646         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8647           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'
8648         else
8649           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'
8650         fi
8651         aix_use_runtimelinking=no
8652
8653         # Test if we are trying to use run time linking or normal
8654         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8655         # need to do runtime linking.
8656         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8657           for ld_flag in $LDFLAGS; do
8658           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8659             aix_use_runtimelinking=yes
8660             break
8661           fi
8662           done
8663           ;;
8664         esac
8665
8666         exp_sym_flag='-bexport'
8667         no_entry_flag='-bnoentry'
8668       fi
8669
8670       # When large executables or shared objects are built, AIX ld can
8671       # have problems creating the table of contents.  If linking a library
8672       # or program results in "error TOC overflow" add -mminimal-toc to
8673       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8674       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8675
8676       archive_cmds=''
8677       hardcode_direct=yes
8678       hardcode_direct_absolute=yes
8679       hardcode_libdir_separator=':'
8680       link_all_deplibs=yes
8681       file_list_spec='${wl}-f,'
8682
8683       if test "$GCC" = yes; then
8684         case $host_os in aix4.[012]|aix4.[012].*)
8685         # We only want to do this on AIX 4.2 and lower, the check
8686         # below for broken collect2 doesn't work under 4.3+
8687           collect2name=`${CC} -print-prog-name=collect2`
8688           if test -f "$collect2name" &&
8689            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8690           then
8691           # We have reworked collect2
8692           :
8693           else
8694           # We have old collect2
8695           hardcode_direct=unsupported
8696           # It fails to find uninstalled libraries when the uninstalled
8697           # path is not listed in the libpath.  Setting hardcode_minus_L
8698           # to unsupported forces relinking
8699           hardcode_minus_L=yes
8700           hardcode_libdir_flag_spec='-L$libdir'
8701           hardcode_libdir_separator=
8702           fi
8703           ;;
8704         esac
8705         shared_flag='-shared'
8706         if test "$aix_use_runtimelinking" = yes; then
8707           shared_flag="$shared_flag "'${wl}-G'
8708         fi
8709         link_all_deplibs=no
8710       else
8711         # not using gcc
8712         if test "$host_cpu" = ia64; then
8713         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8714         # chokes on -Wl,-G. The following line is correct:
8715           shared_flag='-G'
8716         else
8717           if test "$aix_use_runtimelinking" = yes; then
8718             shared_flag='${wl}-G'
8719           else
8720             shared_flag='${wl}-bM:SRE'
8721           fi
8722         fi
8723       fi
8724
8725       export_dynamic_flag_spec='${wl}-bexpall'
8726       # It seems that -bexpall does not export symbols beginning with
8727       # underscore (_), so it is better to generate a list of symbols to export.
8728       always_export_symbols=yes
8729       if test "$aix_use_runtimelinking" = yes; then
8730         # Warning - without using the other runtime loading flags (-brtl),
8731         # -berok will link without error, but may produce a broken library.
8732         allow_undefined_flag='-berok'
8733         # Determine the default libpath from the value encoded in an
8734         # empty executable.
8735         if test "${lt_cv_aix_libpath+set}" = set; then
8736   aix_libpath=$lt_cv_aix_libpath
8737 else
8738   if ${lt_cv_aix_libpath_+:} false; then :
8739   $as_echo_n "(cached) " >&6
8740 else
8741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h.  */
8743
8744 int
8745 main ()
8746 {
8747
8748   ;
8749   return 0;
8750 }
8751 _ACEOF
8752 if ac_fn_c_try_link "$LINENO"; then :
8753
8754   lt_aix_libpath_sed='
8755       /Import File Strings/,/^$/ {
8756           /^0/ {
8757               s/^0  *\([^ ]*\) *$/\1/
8758               p
8759           }
8760       }'
8761   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8762   # Check for a 64-bit object if we didn't find anything.
8763   if test -z "$lt_cv_aix_libpath_"; then
8764     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8765   fi
8766 fi
8767 rm -f core conftest.err conftest.$ac_objext \
8768     conftest$ac_exeext conftest.$ac_ext
8769   if test -z "$lt_cv_aix_libpath_"; then
8770     lt_cv_aix_libpath_="/usr/lib:/lib"
8771   fi
8772
8773 fi
8774
8775   aix_libpath=$lt_cv_aix_libpath_
8776 fi
8777
8778         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8779         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"
8780       else
8781         if test "$host_cpu" = ia64; then
8782           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8783           allow_undefined_flag="-z nodefs"
8784           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"
8785         else
8786          # Determine the default libpath from the value encoded in an
8787          # empty executable.
8788          if test "${lt_cv_aix_libpath+set}" = set; then
8789   aix_libpath=$lt_cv_aix_libpath
8790 else
8791   if ${lt_cv_aix_libpath_+:} false; then :
8792   $as_echo_n "(cached) " >&6
8793 else
8794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h.  */
8796
8797 int
8798 main ()
8799 {
8800
8801   ;
8802   return 0;
8803 }
8804 _ACEOF
8805 if ac_fn_c_try_link "$LINENO"; then :
8806
8807   lt_aix_libpath_sed='
8808       /Import File Strings/,/^$/ {
8809           /^0/ {
8810               s/^0  *\([^ ]*\) *$/\1/
8811               p
8812           }
8813       }'
8814   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8815   # Check for a 64-bit object if we didn't find anything.
8816   if test -z "$lt_cv_aix_libpath_"; then
8817     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8818   fi
8819 fi
8820 rm -f core conftest.err conftest.$ac_objext \
8821     conftest$ac_exeext conftest.$ac_ext
8822   if test -z "$lt_cv_aix_libpath_"; then
8823     lt_cv_aix_libpath_="/usr/lib:/lib"
8824   fi
8825
8826 fi
8827
8828   aix_libpath=$lt_cv_aix_libpath_
8829 fi
8830
8831          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8832           # Warning - without using the other run time loading flags,
8833           # -berok will link without error, but may produce a broken library.
8834           no_undefined_flag=' ${wl}-bernotok'
8835           allow_undefined_flag=' ${wl}-berok'
8836           if test "$with_gnu_ld" = yes; then
8837             # We only use this code for GNU lds that support --whole-archive.
8838             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8839           else
8840             # Exported symbols can be pulled into shared objects from archives
8841             whole_archive_flag_spec='$convenience'
8842           fi
8843           archive_cmds_need_lc=yes
8844           # This is similar to how AIX traditionally builds its shared libraries.
8845           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'
8846         fi
8847       fi
8848       ;;
8849
8850     amigaos*)
8851       case $host_cpu in
8852       powerpc)
8853             # see comment about AmigaOS4 .so support
8854             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8855             archive_expsym_cmds=''
8856         ;;
8857       m68k)
8858             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)'
8859             hardcode_libdir_flag_spec='-L$libdir'
8860             hardcode_minus_L=yes
8861         ;;
8862       esac
8863       ;;
8864
8865     bsdi[45]*)
8866       export_dynamic_flag_spec=-rdynamic
8867       ;;
8868
8869     cygwin* | mingw* | pw32* | cegcc*)
8870       # When not using gcc, we currently assume that we are using
8871       # Microsoft Visual C++.
8872       # hardcode_libdir_flag_spec is actually meaningless, as there is
8873       # no search path for DLLs.
8874       case $cc_basename in
8875       cl*)
8876         # Native MSVC
8877         hardcode_libdir_flag_spec=' '
8878         allow_undefined_flag=unsupported
8879         always_export_symbols=yes
8880         file_list_spec='@'
8881         # Tell ltmain to make .lib files, not .a files.
8882         libext=lib
8883         # Tell ltmain to make .dll files, not .so files.
8884         shrext_cmds=".dll"
8885         # FIXME: Setting linknames here is a bad hack.
8886         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8887         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8888             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8889           else
8890             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8891           fi~
8892           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8893           linknames='
8894         # The linker will not automatically build a static lib if we build a DLL.
8895         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8896         enable_shared_with_static_runtimes=yes
8897         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8898         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8899         # Don't use ranlib
8900         old_postinstall_cmds='chmod 644 $oldlib'
8901         postlink_cmds='lt_outputfile="@OUTPUT@"~
8902           lt_tool_outputfile="@TOOL_OUTPUT@"~
8903           case $lt_outputfile in
8904             *.exe|*.EXE) ;;
8905             *)
8906               lt_outputfile="$lt_outputfile.exe"
8907               lt_tool_outputfile="$lt_tool_outputfile.exe"
8908               ;;
8909           esac~
8910           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8911             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8912             $RM "$lt_outputfile.manifest";
8913           fi'
8914         ;;
8915       *)
8916         # Assume MSVC wrapper
8917         hardcode_libdir_flag_spec=' '
8918         allow_undefined_flag=unsupported
8919         # Tell ltmain to make .lib files, not .a files.
8920         libext=lib
8921         # Tell ltmain to make .dll files, not .so files.
8922         shrext_cmds=".dll"
8923         # FIXME: Setting linknames here is a bad hack.
8924         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8925         # The linker will automatically build a .lib file if we build a DLL.
8926         old_archive_from_new_cmds='true'
8927         # FIXME: Should let the user specify the lib program.
8928         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8929         enable_shared_with_static_runtimes=yes
8930         ;;
8931       esac
8932       ;;
8933
8934     darwin* | rhapsody*)
8935
8936
8937   archive_cmds_need_lc=no
8938   hardcode_direct=no
8939   hardcode_automatic=yes
8940   hardcode_shlibpath_var=unsupported
8941   if test "$lt_cv_ld_force_load" = "yes"; then
8942     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\"`'
8943
8944   else
8945     whole_archive_flag_spec=''
8946   fi
8947   link_all_deplibs=yes
8948   allow_undefined_flag="$_lt_dar_allow_undefined"
8949   case $cc_basename in
8950      ifort*) _lt_dar_can_shared=yes ;;
8951      *) _lt_dar_can_shared=$GCC ;;
8952   esac
8953   if test "$_lt_dar_can_shared" = "yes"; then
8954     output_verbose_link_cmd=func_echo_all
8955     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8956     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8957     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}"
8958     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}"
8959
8960   else
8961   ld_shlibs=no
8962   fi
8963
8964       ;;
8965
8966     dgux*)
8967       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8968       hardcode_libdir_flag_spec='-L$libdir'
8969       hardcode_shlibpath_var=no
8970       ;;
8971
8972     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8973     # support.  Future versions do this automatically, but an explicit c++rt0.o
8974     # does not break anything, and helps significantly (at the cost of a little
8975     # extra space).
8976     freebsd2.2*)
8977       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8978       hardcode_libdir_flag_spec='-R$libdir'
8979       hardcode_direct=yes
8980       hardcode_shlibpath_var=no
8981       ;;
8982
8983     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8984     freebsd2.*)
8985       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8986       hardcode_direct=yes
8987       hardcode_minus_L=yes
8988       hardcode_shlibpath_var=no
8989       ;;
8990
8991     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8992     freebsd* | dragonfly*)
8993       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8994       hardcode_libdir_flag_spec='-R$libdir'
8995       hardcode_direct=yes
8996       hardcode_shlibpath_var=no
8997       ;;
8998
8999     hpux9*)
9000       if test "$GCC" = yes; then
9001         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'
9002       else
9003         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'
9004       fi
9005       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9006       hardcode_libdir_separator=:
9007       hardcode_direct=yes
9008
9009       # hardcode_minus_L: Not really in the search PATH,
9010       # but as the default location of the library.
9011       hardcode_minus_L=yes
9012       export_dynamic_flag_spec='${wl}-E'
9013       ;;
9014
9015     hpux10*)
9016       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9017         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9018       else
9019         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9020       fi
9021       if test "$with_gnu_ld" = no; then
9022         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9023         hardcode_libdir_separator=:
9024         hardcode_direct=yes
9025         hardcode_direct_absolute=yes
9026         export_dynamic_flag_spec='${wl}-E'
9027         # hardcode_minus_L: Not really in the search PATH,
9028         # but as the default location of the library.
9029         hardcode_minus_L=yes
9030       fi
9031       ;;
9032
9033     hpux11*)
9034       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9035         case $host_cpu in
9036         hppa*64*)
9037           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9038           ;;
9039         ia64*)
9040           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9041           ;;
9042         *)
9043           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9044           ;;
9045         esac
9046       else
9047         case $host_cpu in
9048         hppa*64*)
9049           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9050           ;;
9051         ia64*)
9052           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9053           ;;
9054         *)
9055
9056           # Older versions of the 11.00 compiler do not understand -b yet
9057           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9058           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9059 $as_echo_n "checking if $CC understands -b... " >&6; }
9060 if ${lt_cv_prog_compiler__b+:} false; then :
9061   $as_echo_n "(cached) " >&6
9062 else
9063   lt_cv_prog_compiler__b=no
9064    save_LDFLAGS="$LDFLAGS"
9065    LDFLAGS="$LDFLAGS -b"
9066    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9067    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9068      # The linker can only warn and ignore the option if not recognized
9069      # So say no if there are warnings
9070      if test -s conftest.err; then
9071        # Append any errors to the config.log.
9072        cat conftest.err 1>&5
9073        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9074        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9075        if diff conftest.exp conftest.er2 >/dev/null; then
9076          lt_cv_prog_compiler__b=yes
9077        fi
9078      else
9079        lt_cv_prog_compiler__b=yes
9080      fi
9081    fi
9082    $RM -r conftest*
9083    LDFLAGS="$save_LDFLAGS"
9084
9085 fi
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9087 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9088
9089 if test x"$lt_cv_prog_compiler__b" = xyes; then
9090     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9091 else
9092     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9093 fi
9094
9095           ;;
9096         esac
9097       fi
9098       if test "$with_gnu_ld" = no; then
9099         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9100         hardcode_libdir_separator=:
9101
9102         case $host_cpu in
9103         hppa*64*|ia64*)
9104           hardcode_direct=no
9105           hardcode_shlibpath_var=no
9106           ;;
9107         *)
9108           hardcode_direct=yes
9109           hardcode_direct_absolute=yes
9110           export_dynamic_flag_spec='${wl}-E'
9111
9112           # hardcode_minus_L: Not really in the search PATH,
9113           # but as the default location of the library.
9114           hardcode_minus_L=yes
9115           ;;
9116         esac
9117       fi
9118       ;;
9119
9120     irix5* | irix6* | nonstopux*)
9121       if test "$GCC" = yes; then
9122         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'
9123         # Try to use the -exported_symbol ld option, if it does not
9124         # work, assume that -exports_file does not work either and
9125         # implicitly export all symbols.
9126         # This should be the same for all languages, so no per-tag cache variable.
9127         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9128 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9129 if ${lt_cv_irix_exported_symbol+:} false; then :
9130   $as_echo_n "(cached) " >&6
9131 else
9132   save_LDFLAGS="$LDFLAGS"
9133            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9134            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h.  */
9136 int foo (void) { return 0; }
9137 _ACEOF
9138 if ac_fn_c_try_link "$LINENO"; then :
9139   lt_cv_irix_exported_symbol=yes
9140 else
9141   lt_cv_irix_exported_symbol=no
9142 fi
9143 rm -f core conftest.err conftest.$ac_objext \
9144     conftest$ac_exeext conftest.$ac_ext
9145            LDFLAGS="$save_LDFLAGS"
9146 fi
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9148 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9149         if test "$lt_cv_irix_exported_symbol" = yes; then
9150           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'
9151         fi
9152       else
9153         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'
9154         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'
9155       fi
9156       archive_cmds_need_lc='no'
9157       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9158       hardcode_libdir_separator=:
9159       inherit_rpath=yes
9160       link_all_deplibs=yes
9161       ;;
9162
9163     netbsd* | netbsdelf*-gnu)
9164       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9165         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9166       else
9167         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9168       fi
9169       hardcode_libdir_flag_spec='-R$libdir'
9170       hardcode_direct=yes
9171       hardcode_shlibpath_var=no
9172       ;;
9173
9174     newsos6)
9175       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9176       hardcode_direct=yes
9177       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9178       hardcode_libdir_separator=:
9179       hardcode_shlibpath_var=no
9180       ;;
9181
9182     *nto* | *qnx*)
9183       ;;
9184
9185     openbsd*)
9186       if test -f /usr/libexec/ld.so; then
9187         hardcode_direct=yes
9188         hardcode_shlibpath_var=no
9189         hardcode_direct_absolute=yes
9190         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9191           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9192           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9193           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9194           export_dynamic_flag_spec='${wl}-E'
9195         else
9196           case $host_os in
9197            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9198              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9199              hardcode_libdir_flag_spec='-R$libdir'
9200              ;;
9201            *)
9202              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9203              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9204              ;;
9205           esac
9206         fi
9207       else
9208         ld_shlibs=no
9209       fi
9210       ;;
9211
9212     os2*)
9213       hardcode_libdir_flag_spec='-L$libdir'
9214       hardcode_minus_L=yes
9215       allow_undefined_flag=unsupported
9216       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'
9217       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9218       ;;
9219
9220     osf3*)
9221       if test "$GCC" = yes; then
9222         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9223         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'
9224       else
9225         allow_undefined_flag=' -expect_unresolved \*'
9226         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'
9227       fi
9228       archive_cmds_need_lc='no'
9229       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9230       hardcode_libdir_separator=:
9231       ;;
9232
9233     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9234       if test "$GCC" = yes; then
9235         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9236         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'
9237         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9238       else
9239         allow_undefined_flag=' -expect_unresolved \*'
9240         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'
9241         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~
9242         $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'
9243
9244         # Both c and cxx compiler support -rpath directly
9245         hardcode_libdir_flag_spec='-rpath $libdir'
9246       fi
9247       archive_cmds_need_lc='no'
9248       hardcode_libdir_separator=:
9249       ;;
9250
9251     solaris*)
9252       no_undefined_flag=' -z defs'
9253       if test "$GCC" = yes; then
9254         wlarc='${wl}'
9255         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9256         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9257           $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'
9258       else
9259         case `$CC -V 2>&1` in
9260         *"Compilers 5.0"*)
9261           wlarc=''
9262           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9263           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9264           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9265           ;;
9266         *)
9267           wlarc='${wl}'
9268           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9269           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9270           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9271           ;;
9272         esac
9273       fi
9274       hardcode_libdir_flag_spec='-R$libdir'
9275       hardcode_shlibpath_var=no
9276       case $host_os in
9277       solaris2.[0-5] | solaris2.[0-5].*) ;;
9278       *)
9279         # The compiler driver will combine and reorder linker options,
9280         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9281         # but is careful enough not to reorder.
9282         # Supported since Solaris 2.6 (maybe 2.5.1?)
9283         if test "$GCC" = yes; then
9284           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9285         else
9286           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9287         fi
9288         ;;
9289       esac
9290       link_all_deplibs=yes
9291       ;;
9292
9293     sunos4*)
9294       if test "x$host_vendor" = xsequent; then
9295         # Use $CC to link under sequent, because it throws in some extra .o
9296         # files that make .init and .fini sections work.
9297         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9298       else
9299         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9300       fi
9301       hardcode_libdir_flag_spec='-L$libdir'
9302       hardcode_direct=yes
9303       hardcode_minus_L=yes
9304       hardcode_shlibpath_var=no
9305       ;;
9306
9307     sysv4)
9308       case $host_vendor in
9309         sni)
9310           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9311           hardcode_direct=yes # is this really true???
9312         ;;
9313         siemens)
9314           ## LD is ld it makes a PLAMLIB
9315           ## CC just makes a GrossModule.
9316           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9317           reload_cmds='$CC -r -o $output$reload_objs'
9318           hardcode_direct=no
9319         ;;
9320         motorola)
9321           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9323         ;;
9324       esac
9325       runpath_var='LD_RUN_PATH'
9326       hardcode_shlibpath_var=no
9327       ;;
9328
9329     sysv4.3*)
9330       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9331       hardcode_shlibpath_var=no
9332       export_dynamic_flag_spec='-Bexport'
9333       ;;
9334
9335     sysv4*MP*)
9336       if test -d /usr/nec; then
9337         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9338         hardcode_shlibpath_var=no
9339         runpath_var=LD_RUN_PATH
9340         hardcode_runpath_var=yes
9341         ld_shlibs=yes
9342       fi
9343       ;;
9344
9345     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9346       no_undefined_flag='${wl}-z,text'
9347       archive_cmds_need_lc=no
9348       hardcode_shlibpath_var=no
9349       runpath_var='LD_RUN_PATH'
9350
9351       if test "$GCC" = yes; then
9352         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354       else
9355         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9356         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9357       fi
9358       ;;
9359
9360     sysv5* | sco3.2v5* | sco5v6*)
9361       # Note: We can NOT use -z defs as we might desire, because we do not
9362       # link with -lc, and that would cause any symbols used from libc to
9363       # always be unresolved, which means just about no library would
9364       # ever link correctly.  If we're not using GNU ld we use -z text
9365       # though, which does catch some bad symbols but isn't as heavy-handed
9366       # as -z defs.
9367       no_undefined_flag='${wl}-z,text'
9368       allow_undefined_flag='${wl}-z,nodefs'
9369       archive_cmds_need_lc=no
9370       hardcode_shlibpath_var=no
9371       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9372       hardcode_libdir_separator=':'
9373       link_all_deplibs=yes
9374       export_dynamic_flag_spec='${wl}-Bexport'
9375       runpath_var='LD_RUN_PATH'
9376
9377       if test "$GCC" = yes; then
9378         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9379         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380       else
9381         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9382         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9383       fi
9384       ;;
9385
9386     uts4*)
9387       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9388       hardcode_libdir_flag_spec='-L$libdir'
9389       hardcode_shlibpath_var=no
9390       ;;
9391
9392     *)
9393       ld_shlibs=no
9394       ;;
9395     esac
9396
9397     if test x$host_vendor = xsni; then
9398       case $host in
9399       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9400         export_dynamic_flag_spec='${wl}-Blargedynsym'
9401         ;;
9402       esac
9403     fi
9404   fi
9405
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9407 $as_echo "$ld_shlibs" >&6; }
9408 test "$ld_shlibs" = no && can_build_shared=no
9409
9410 with_gnu_ld=$with_gnu_ld
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426 #
9427 # Do we need to explicitly link libc?
9428 #
9429 case "x$archive_cmds_need_lc" in
9430 x|xyes)
9431   # Assume -lc should be added
9432   archive_cmds_need_lc=yes
9433
9434   if test "$enable_shared" = yes && test "$GCC" = yes; then
9435     case $archive_cmds in
9436     *'~'*)
9437       # FIXME: we may have to deal with multi-command sequences.
9438       ;;
9439     '$CC '*)
9440       # Test whether the compiler implicitly links with -lc since on some
9441       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9442       # to ld, don't add -lc before -lgcc.
9443       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9444 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9445 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9446   $as_echo_n "(cached) " >&6
9447 else
9448   $RM conftest*
9449         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9450
9451         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9452   (eval $ac_compile) 2>&5
9453   ac_status=$?
9454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9455   test $ac_status = 0; } 2>conftest.err; then
9456           soname=conftest
9457           lib=conftest
9458           libobjs=conftest.$ac_objext
9459           deplibs=
9460           wl=$lt_prog_compiler_wl
9461           pic_flag=$lt_prog_compiler_pic
9462           compiler_flags=-v
9463           linker_flags=-v
9464           verstring=
9465           output_objdir=.
9466           libname=conftest
9467           lt_save_allow_undefined_flag=$allow_undefined_flag
9468           allow_undefined_flag=
9469           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9470   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9471   ac_status=$?
9472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9473   test $ac_status = 0; }
9474           then
9475             lt_cv_archive_cmds_need_lc=no
9476           else
9477             lt_cv_archive_cmds_need_lc=yes
9478           fi
9479           allow_undefined_flag=$lt_save_allow_undefined_flag
9480         else
9481           cat conftest.err 1>&5
9482         fi
9483         $RM conftest*
9484
9485 fi
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9487 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9488       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9489       ;;
9490     esac
9491   fi
9492   ;;
9493 esac
9494
9495
9496
9497
9498
9499
9500
9501
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9647 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9648
9649 if test "$GCC" = yes; then
9650   case $host_os in
9651     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9652     *) lt_awk_arg="/^libraries:/" ;;
9653   esac
9654   case $host_os in
9655     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9656     *) lt_sed_strip_eq="s,=/,/,g" ;;
9657   esac
9658   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9659   case $lt_search_path_spec in
9660   *\;*)
9661     # if the path contains ";" then we assume it to be the separator
9662     # otherwise default to the standard path separator (i.e. ":") - it is
9663     # assumed that no part of a normal pathname contains ";" but that should
9664     # okay in the real world where ";" in dirpaths is itself problematic.
9665     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9666     ;;
9667   *)
9668     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9669     ;;
9670   esac
9671   # Ok, now we have the path, separated by spaces, we can step through it
9672   # and add multilib dir if necessary.
9673   lt_tmp_lt_search_path_spec=
9674   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9675   for lt_sys_path in $lt_search_path_spec; do
9676     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9677       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9678     else
9679       test -d "$lt_sys_path" && \
9680         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9681     fi
9682   done
9683   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9684 BEGIN {RS=" "; FS="/|\n";} {
9685   lt_foo="";
9686   lt_count=0;
9687   for (lt_i = NF; lt_i > 0; lt_i--) {
9688     if ($lt_i != "" && $lt_i != ".") {
9689       if ($lt_i == "..") {
9690         lt_count++;
9691       } else {
9692         if (lt_count == 0) {
9693           lt_foo="/" $lt_i lt_foo;
9694         } else {
9695           lt_count--;
9696         }
9697       }
9698     }
9699   }
9700   if (lt_foo != "") { lt_freq[lt_foo]++; }
9701   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9702 }'`
9703   # AWK program above erroneously prepends '/' to C:/dos/paths
9704   # for these hosts.
9705   case $host_os in
9706     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9707       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9708   esac
9709   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9710 else
9711   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9712 fi
9713 library_names_spec=
9714 libname_spec='lib$name'
9715 soname_spec=
9716 shrext_cmds=".so"
9717 postinstall_cmds=
9718 postuninstall_cmds=
9719 finish_cmds=
9720 finish_eval=
9721 shlibpath_var=
9722 shlibpath_overrides_runpath=unknown
9723 version_type=none
9724 dynamic_linker="$host_os ld.so"
9725 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9726 need_lib_prefix=unknown
9727 hardcode_into_libs=no
9728
9729 # when you set need_version to no, make sure it does not cause -set_version
9730 # flags to be left without arguments
9731 need_version=unknown
9732
9733 case $host_os in
9734 aix3*)
9735   version_type=linux # correct to gnu/linux during the next big refactor
9736   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9737   shlibpath_var=LIBPATH
9738
9739   # AIX 3 has no versioning support, so we append a major version to the name.
9740   soname_spec='${libname}${release}${shared_ext}$major'
9741   ;;
9742
9743 aix[4-9]*)
9744   version_type=linux # correct to gnu/linux during the next big refactor
9745   need_lib_prefix=no
9746   need_version=no
9747   hardcode_into_libs=yes
9748   if test "$host_cpu" = ia64; then
9749     # AIX 5 supports IA64
9750     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9751     shlibpath_var=LD_LIBRARY_PATH
9752   else
9753     # With GCC up to 2.95.x, collect2 would create an import file
9754     # for dependence libraries.  The import file would start with
9755     # the line `#! .'.  This would cause the generated library to
9756     # depend on `.', always an invalid library.  This was fixed in
9757     # development snapshots of GCC prior to 3.0.
9758     case $host_os in
9759       aix4 | aix4.[01] | aix4.[01].*)
9760       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9761            echo ' yes '
9762            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9763         :
9764       else
9765         can_build_shared=no
9766       fi
9767       ;;
9768     esac
9769     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9770     # soname into executable. Probably we can add versioning support to
9771     # collect2, so additional links can be useful in future.
9772     if test "$aix_use_runtimelinking" = yes; then
9773       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9774       # instead of lib<name>.a to let people know that these are not
9775       # typical AIX shared libraries.
9776       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9777     else
9778       # We preserve .a as extension for shared libraries through AIX4.2
9779       # and later when we are not doing run time linking.
9780       library_names_spec='${libname}${release}.a $libname.a'
9781       soname_spec='${libname}${release}${shared_ext}$major'
9782     fi
9783     shlibpath_var=LIBPATH
9784   fi
9785   ;;
9786
9787 amigaos*)
9788   case $host_cpu in
9789   powerpc)
9790     # Since July 2007 AmigaOS4 officially supports .so libraries.
9791     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793     ;;
9794   m68k)
9795     library_names_spec='$libname.ixlibrary $libname.a'
9796     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9797     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'
9798     ;;
9799   esac
9800   ;;
9801
9802 beos*)
9803   library_names_spec='${libname}${shared_ext}'
9804   dynamic_linker="$host_os ld.so"
9805   shlibpath_var=LIBRARY_PATH
9806   ;;
9807
9808 bsdi[45]*)
9809   version_type=linux # correct to gnu/linux during the next big refactor
9810   need_version=no
9811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9812   soname_spec='${libname}${release}${shared_ext}$major'
9813   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9814   shlibpath_var=LD_LIBRARY_PATH
9815   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9816   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9817   # the default ld.so.conf also contains /usr/contrib/lib and
9818   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9819   # libtool to hard-code these into programs
9820   ;;
9821
9822 cygwin* | mingw* | pw32* | cegcc*)
9823   version_type=windows
9824   shrext_cmds=".dll"
9825   need_version=no
9826   need_lib_prefix=no
9827
9828   case $GCC,$cc_basename in
9829   yes,*)
9830     # gcc
9831     library_names_spec='$libname.dll.a'
9832     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9833     postinstall_cmds='base_file=`basename \${file}`~
9834       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9835       dldir=$destdir/`dirname \$dlpath`~
9836       test -d \$dldir || mkdir -p \$dldir~
9837       $install_prog $dir/$dlname \$dldir/$dlname~
9838       chmod a+x \$dldir/$dlname~
9839       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9840         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9841       fi'
9842     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9843       dlpath=$dir/\$dldll~
9844        $RM \$dlpath'
9845     shlibpath_overrides_runpath=yes
9846
9847     case $host_os in
9848     cygwin*)
9849       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9850       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9851
9852       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9853       ;;
9854     mingw* | cegcc*)
9855       # MinGW DLLs use traditional 'lib' prefix
9856       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9857       ;;
9858     pw32*)
9859       # pw32 DLLs use 'pw' prefix rather than 'lib'
9860       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9861       ;;
9862     esac
9863     dynamic_linker='Win32 ld.exe'
9864     ;;
9865
9866   *,cl*)
9867     # Native MSVC
9868     libname_spec='$name'
9869     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9870     library_names_spec='${libname}.dll.lib'
9871
9872     case $build_os in
9873     mingw*)
9874       sys_lib_search_path_spec=
9875       lt_save_ifs=$IFS
9876       IFS=';'
9877       for lt_path in $LIB
9878       do
9879         IFS=$lt_save_ifs
9880         # Let DOS variable expansion print the short 8.3 style file name.
9881         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9882         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9883       done
9884       IFS=$lt_save_ifs
9885       # Convert to MSYS style.
9886       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9887       ;;
9888     cygwin*)
9889       # Convert to unix form, then to dos form, then back to unix form
9890       # but this time dos style (no spaces!) so that the unix form looks
9891       # like /cygdrive/c/PROGRA~1:/cygdr...
9892       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9893       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9894       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9895       ;;
9896     *)
9897       sys_lib_search_path_spec="$LIB"
9898       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9899         # It is most probably a Windows format PATH.
9900         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9901       else
9902         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9903       fi
9904       # FIXME: find the short name or the path components, as spaces are
9905       # common. (e.g. "Program Files" -> "PROGRA~1")
9906       ;;
9907     esac
9908
9909     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9910     postinstall_cmds='base_file=`basename \${file}`~
9911       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9912       dldir=$destdir/`dirname \$dlpath`~
9913       test -d \$dldir || mkdir -p \$dldir~
9914       $install_prog $dir/$dlname \$dldir/$dlname'
9915     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9916       dlpath=$dir/\$dldll~
9917        $RM \$dlpath'
9918     shlibpath_overrides_runpath=yes
9919     dynamic_linker='Win32 link.exe'
9920     ;;
9921
9922   *)
9923     # Assume MSVC wrapper
9924     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9925     dynamic_linker='Win32 ld.exe'
9926     ;;
9927   esac
9928   # FIXME: first we should search . and the directory the executable is in
9929   shlibpath_var=PATH
9930   ;;
9931
9932 darwin* | rhapsody*)
9933   dynamic_linker="$host_os dyld"
9934   version_type=darwin
9935   need_lib_prefix=no
9936   need_version=no
9937   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9938   soname_spec='${libname}${release}${major}$shared_ext'
9939   shlibpath_overrides_runpath=yes
9940   shlibpath_var=DYLD_LIBRARY_PATH
9941   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9942
9943   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9944   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9945   ;;
9946
9947 dgux*)
9948   version_type=linux # correct to gnu/linux during the next big refactor
9949   need_lib_prefix=no
9950   need_version=no
9951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9952   soname_spec='${libname}${release}${shared_ext}$major'
9953   shlibpath_var=LD_LIBRARY_PATH
9954   ;;
9955
9956 freebsd* | dragonfly*)
9957   # DragonFly does not have aout.  When/if they implement a new
9958   # versioning mechanism, adjust this.
9959   if test -x /usr/bin/objformat; then
9960     objformat=`/usr/bin/objformat`
9961   else
9962     case $host_os in
9963     freebsd[23].*) objformat=aout ;;
9964     *) objformat=elf ;;
9965     esac
9966   fi
9967   version_type=freebsd-$objformat
9968   case $version_type in
9969     freebsd-elf*)
9970       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9971       need_version=no
9972       need_lib_prefix=no
9973       ;;
9974     freebsd-*)
9975       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9976       need_version=yes
9977       ;;
9978   esac
9979   shlibpath_var=LD_LIBRARY_PATH
9980   case $host_os in
9981   freebsd2.*)
9982     shlibpath_overrides_runpath=yes
9983     ;;
9984   freebsd3.[01]* | freebsdelf3.[01]*)
9985     shlibpath_overrides_runpath=yes
9986     hardcode_into_libs=yes
9987     ;;
9988   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9989   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9990     shlibpath_overrides_runpath=no
9991     hardcode_into_libs=yes
9992     ;;
9993   *) # from 4.6 on, and DragonFly
9994     shlibpath_overrides_runpath=yes
9995     hardcode_into_libs=yes
9996     ;;
9997   esac
9998   ;;
9999
10000 gnu*)
10001   version_type=linux # correct to gnu/linux during the next big refactor
10002   need_lib_prefix=no
10003   need_version=no
10004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10005   soname_spec='${libname}${release}${shared_ext}$major'
10006   shlibpath_var=LD_LIBRARY_PATH
10007   shlibpath_overrides_runpath=no
10008   hardcode_into_libs=yes
10009   ;;
10010
10011 haiku*)
10012   version_type=linux # correct to gnu/linux during the next big refactor
10013   need_lib_prefix=no
10014   need_version=no
10015   dynamic_linker="$host_os runtime_loader"
10016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10017   soname_spec='${libname}${release}${shared_ext}$major'
10018   shlibpath_var=LIBRARY_PATH
10019   shlibpath_overrides_runpath=yes
10020   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10021   hardcode_into_libs=yes
10022   ;;
10023
10024 hpux9* | hpux10* | hpux11*)
10025   # Give a soname corresponding to the major version so that dld.sl refuses to
10026   # link against other versions.
10027   version_type=sunos
10028   need_lib_prefix=no
10029   need_version=no
10030   case $host_cpu in
10031   ia64*)
10032     shrext_cmds='.so'
10033     hardcode_into_libs=yes
10034     dynamic_linker="$host_os dld.so"
10035     shlibpath_var=LD_LIBRARY_PATH
10036     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10037     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038     soname_spec='${libname}${release}${shared_ext}$major'
10039     if test "X$HPUX_IA64_MODE" = X32; then
10040       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10041     else
10042       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10043     fi
10044     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10045     ;;
10046   hppa*64*)
10047     shrext_cmds='.sl'
10048     hardcode_into_libs=yes
10049     dynamic_linker="$host_os dld.sl"
10050     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10051     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10053     soname_spec='${libname}${release}${shared_ext}$major'
10054     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10055     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10056     ;;
10057   *)
10058     shrext_cmds='.sl'
10059     dynamic_linker="$host_os dld.sl"
10060     shlibpath_var=SHLIB_PATH
10061     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063     soname_spec='${libname}${release}${shared_ext}$major'
10064     ;;
10065   esac
10066   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10067   postinstall_cmds='chmod 555 $lib'
10068   # or fails outright, so override atomically:
10069   install_override_mode=555
10070   ;;
10071
10072 interix[3-9]*)
10073   version_type=linux # correct to gnu/linux during the next big refactor
10074   need_lib_prefix=no
10075   need_version=no
10076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10077   soname_spec='${libname}${release}${shared_ext}$major'
10078   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10079   shlibpath_var=LD_LIBRARY_PATH
10080   shlibpath_overrides_runpath=no
10081   hardcode_into_libs=yes
10082   ;;
10083
10084 irix5* | irix6* | nonstopux*)
10085   case $host_os in
10086     nonstopux*) version_type=nonstopux ;;
10087     *)
10088         if test "$lt_cv_prog_gnu_ld" = yes; then
10089                 version_type=linux # correct to gnu/linux during the next big refactor
10090         else
10091                 version_type=irix
10092         fi ;;
10093   esac
10094   need_lib_prefix=no
10095   need_version=no
10096   soname_spec='${libname}${release}${shared_ext}$major'
10097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10098   case $host_os in
10099   irix5* | nonstopux*)
10100     libsuff= shlibsuff=
10101     ;;
10102   *)
10103     case $LD in # libtool.m4 will add one of these switches to LD
10104     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10105       libsuff= shlibsuff= libmagic=32-bit;;
10106     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10107       libsuff=32 shlibsuff=N32 libmagic=N32;;
10108     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10109       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10110     *) libsuff= shlibsuff= libmagic=never-match;;
10111     esac
10112     ;;
10113   esac
10114   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10115   shlibpath_overrides_runpath=no
10116   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10117   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10118   hardcode_into_libs=yes
10119   ;;
10120
10121 # No shared lib support for Linux oldld, aout, or coff.
10122 linux*oldld* | linux*aout* | linux*coff*)
10123   dynamic_linker=no
10124   ;;
10125
10126 # This must be glibc/ELF.
10127 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10128   version_type=linux # correct to gnu/linux during the next big refactor
10129   need_lib_prefix=no
10130   need_version=no
10131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132   soname_spec='${libname}${release}${shared_ext}$major'
10133   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10134   shlibpath_var=LD_LIBRARY_PATH
10135   shlibpath_overrides_runpath=no
10136
10137   # Some binutils ld are patched to set DT_RUNPATH
10138   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10139   $as_echo_n "(cached) " >&6
10140 else
10141   lt_cv_shlibpath_overrides_runpath=no
10142     save_LDFLAGS=$LDFLAGS
10143     save_libdir=$libdir
10144     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10145          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10146     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h.  */
10148
10149 int
10150 main ()
10151 {
10152
10153   ;
10154   return 0;
10155 }
10156 _ACEOF
10157 if ac_fn_c_try_link "$LINENO"; then :
10158   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10159   lt_cv_shlibpath_overrides_runpath=yes
10160 fi
10161 fi
10162 rm -f core conftest.err conftest.$ac_objext \
10163     conftest$ac_exeext conftest.$ac_ext
10164     LDFLAGS=$save_LDFLAGS
10165     libdir=$save_libdir
10166
10167 fi
10168
10169   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10170
10171   # This implies no fast_install, which is unacceptable.
10172   # Some rework will be needed to allow for fast_install
10173   # before this can be enabled.
10174   hardcode_into_libs=yes
10175
10176   # Append ld.so.conf contents to the search path
10177   if test -f /etc/ld.so.conf; then
10178     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' ' '`
10179     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10180   fi
10181
10182   # We used to test for /lib/ld.so.1 and disable shared libraries on
10183   # powerpc, because MkLinux only supported shared libraries with the
10184   # GNU dynamic linker.  Since this was broken with cross compilers,
10185   # most powerpc-linux boxes support dynamic linking these days and
10186   # people can always --disable-shared, the test was removed, and we
10187   # assume the GNU/Linux dynamic linker is in use.
10188   dynamic_linker='GNU/Linux ld.so'
10189   ;;
10190
10191 netbsdelf*-gnu)
10192   version_type=linux
10193   need_lib_prefix=no
10194   need_version=no
10195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10196   soname_spec='${libname}${release}${shared_ext}$major'
10197   shlibpath_var=LD_LIBRARY_PATH
10198   shlibpath_overrides_runpath=no
10199   hardcode_into_libs=yes
10200   dynamic_linker='NetBSD ld.elf_so'
10201   ;;
10202
10203 netbsd*)
10204   version_type=sunos
10205   need_lib_prefix=no
10206   need_version=no
10207   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10208     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10209     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10210     dynamic_linker='NetBSD (a.out) ld.so'
10211   else
10212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10213     soname_spec='${libname}${release}${shared_ext}$major'
10214     dynamic_linker='NetBSD ld.elf_so'
10215   fi
10216   shlibpath_var=LD_LIBRARY_PATH
10217   shlibpath_overrides_runpath=yes
10218   hardcode_into_libs=yes
10219   ;;
10220
10221 newsos6)
10222   version_type=linux # correct to gnu/linux during the next big refactor
10223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10224   shlibpath_var=LD_LIBRARY_PATH
10225   shlibpath_overrides_runpath=yes
10226   ;;
10227
10228 *nto* | *qnx*)
10229   version_type=qnx
10230   need_lib_prefix=no
10231   need_version=no
10232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233   soname_spec='${libname}${release}${shared_ext}$major'
10234   shlibpath_var=LD_LIBRARY_PATH
10235   shlibpath_overrides_runpath=no
10236   hardcode_into_libs=yes
10237   dynamic_linker='ldqnx.so'
10238   ;;
10239
10240 openbsd*)
10241   version_type=sunos
10242   sys_lib_dlsearch_path_spec="/usr/lib"
10243   need_lib_prefix=no
10244   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10245   case $host_os in
10246     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10247     *)                          need_version=no  ;;
10248   esac
10249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10250   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10251   shlibpath_var=LD_LIBRARY_PATH
10252   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10253     case $host_os in
10254       openbsd2.[89] | openbsd2.[89].*)
10255         shlibpath_overrides_runpath=no
10256         ;;
10257       *)
10258         shlibpath_overrides_runpath=yes
10259         ;;
10260       esac
10261   else
10262     shlibpath_overrides_runpath=yes
10263   fi
10264   ;;
10265
10266 os2*)
10267   libname_spec='$name'
10268   shrext_cmds=".dll"
10269   need_lib_prefix=no
10270   library_names_spec='$libname${shared_ext} $libname.a'
10271   dynamic_linker='OS/2 ld.exe'
10272   shlibpath_var=LIBPATH
10273   ;;
10274
10275 osf3* | osf4* | osf5*)
10276   version_type=osf
10277   need_lib_prefix=no
10278   need_version=no
10279   soname_spec='${libname}${release}${shared_ext}$major'
10280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281   shlibpath_var=LD_LIBRARY_PATH
10282   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10283   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10284   ;;
10285
10286 rdos*)
10287   dynamic_linker=no
10288   ;;
10289
10290 solaris*)
10291   version_type=linux # correct to gnu/linux during the next big refactor
10292   need_lib_prefix=no
10293   need_version=no
10294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295   soname_spec='${libname}${release}${shared_ext}$major'
10296   shlibpath_var=LD_LIBRARY_PATH
10297   shlibpath_overrides_runpath=yes
10298   hardcode_into_libs=yes
10299   # ldd complains unless libraries are executable
10300   postinstall_cmds='chmod +x $lib'
10301   ;;
10302
10303 sunos4*)
10304   version_type=sunos
10305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10306   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10307   shlibpath_var=LD_LIBRARY_PATH
10308   shlibpath_overrides_runpath=yes
10309   if test "$with_gnu_ld" = yes; then
10310     need_lib_prefix=no
10311   fi
10312   need_version=yes
10313   ;;
10314
10315 sysv4 | sysv4.3*)
10316   version_type=linux # correct to gnu/linux during the next big refactor
10317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10318   soname_spec='${libname}${release}${shared_ext}$major'
10319   shlibpath_var=LD_LIBRARY_PATH
10320   case $host_vendor in
10321     sni)
10322       shlibpath_overrides_runpath=no
10323       need_lib_prefix=no
10324       runpath_var=LD_RUN_PATH
10325       ;;
10326     siemens)
10327       need_lib_prefix=no
10328       ;;
10329     motorola)
10330       need_lib_prefix=no
10331       need_version=no
10332       shlibpath_overrides_runpath=no
10333       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10334       ;;
10335   esac
10336   ;;
10337
10338 sysv4*MP*)
10339   if test -d /usr/nec ;then
10340     version_type=linux # correct to gnu/linux during the next big refactor
10341     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10342     soname_spec='$libname${shared_ext}.$major'
10343     shlibpath_var=LD_LIBRARY_PATH
10344   fi
10345   ;;
10346
10347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10348   version_type=freebsd-elf
10349   need_lib_prefix=no
10350   need_version=no
10351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10352   soname_spec='${libname}${release}${shared_ext}$major'
10353   shlibpath_var=LD_LIBRARY_PATH
10354   shlibpath_overrides_runpath=yes
10355   hardcode_into_libs=yes
10356   if test "$with_gnu_ld" = yes; then
10357     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10358   else
10359     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10360     case $host_os in
10361       sco3.2v5*)
10362         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10363         ;;
10364     esac
10365   fi
10366   sys_lib_dlsearch_path_spec='/usr/lib'
10367   ;;
10368
10369 tpf*)
10370   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10371   version_type=linux # correct to gnu/linux during the next big refactor
10372   need_lib_prefix=no
10373   need_version=no
10374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10375   shlibpath_var=LD_LIBRARY_PATH
10376   shlibpath_overrides_runpath=no
10377   hardcode_into_libs=yes
10378   ;;
10379
10380 uts4*)
10381   version_type=linux # correct to gnu/linux during the next big refactor
10382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383   soname_spec='${libname}${release}${shared_ext}$major'
10384   shlibpath_var=LD_LIBRARY_PATH
10385   ;;
10386
10387 *)
10388   dynamic_linker=no
10389   ;;
10390 esac
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10392 $as_echo "$dynamic_linker" >&6; }
10393 test "$dynamic_linker" = no && can_build_shared=no
10394
10395 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10396 if test "$GCC" = yes; then
10397   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10398 fi
10399
10400 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10401   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10402 fi
10403 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10404   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10405 fi
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10499 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10500 hardcode_action=
10501 if test -n "$hardcode_libdir_flag_spec" ||
10502    test -n "$runpath_var" ||
10503    test "X$hardcode_automatic" = "Xyes" ; then
10504
10505   # We can hardcode non-existent directories.
10506   if test "$hardcode_direct" != no &&
10507      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10508      # have to relink, otherwise we might link with an installed library
10509      # when we should be linking with a yet-to-be-installed one
10510      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10511      test "$hardcode_minus_L" != no; then
10512     # Linking always hardcodes the temporary library directory.
10513     hardcode_action=relink
10514   else
10515     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10516     hardcode_action=immediate
10517   fi
10518 else
10519   # We cannot hardcode anything, or else we can only hardcode existing
10520   # directories.
10521   hardcode_action=unsupported
10522 fi
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10524 $as_echo "$hardcode_action" >&6; }
10525
10526 if test "$hardcode_action" = relink ||
10527    test "$inherit_rpath" = yes; then
10528   # Fast installation is not supported
10529   enable_fast_install=no
10530 elif test "$shlibpath_overrides_runpath" = yes ||
10531      test "$enable_shared" = no; then
10532   # Fast installation is not necessary
10533   enable_fast_install=needless
10534 fi
10535
10536
10537
10538
10539
10540
10541   if test "x$enable_dlopen" != xyes; then
10542   enable_dlopen=unknown
10543   enable_dlopen_self=unknown
10544   enable_dlopen_self_static=unknown
10545 else
10546   lt_cv_dlopen=no
10547   lt_cv_dlopen_libs=
10548
10549   case $host_os in
10550   beos*)
10551     lt_cv_dlopen="load_add_on"
10552     lt_cv_dlopen_libs=
10553     lt_cv_dlopen_self=yes
10554     ;;
10555
10556   mingw* | pw32* | cegcc*)
10557     lt_cv_dlopen="LoadLibrary"
10558     lt_cv_dlopen_libs=
10559     ;;
10560
10561   cygwin*)
10562     lt_cv_dlopen="dlopen"
10563     lt_cv_dlopen_libs=
10564     ;;
10565
10566   darwin*)
10567   # if libdl is installed we need to link against it
10568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10569 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10570 if ${ac_cv_lib_dl_dlopen+:} false; then :
10571   $as_echo_n "(cached) " >&6
10572 else
10573   ac_check_lib_save_LIBS=$LIBS
10574 LIBS="-ldl  $LIBS"
10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h.  */
10577
10578 /* Override any GCC internal prototype to avoid an error.
10579    Use char because int might match the return type of a GCC
10580    builtin and then its argument prototype would still apply.  */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 char dlopen ();
10585 int
10586 main ()
10587 {
10588 return dlopen ();
10589   ;
10590   return 0;
10591 }
10592 _ACEOF
10593 if ac_fn_c_try_link "$LINENO"; then :
10594   ac_cv_lib_dl_dlopen=yes
10595 else
10596   ac_cv_lib_dl_dlopen=no
10597 fi
10598 rm -f core conftest.err conftest.$ac_objext \
10599     conftest$ac_exeext conftest.$ac_ext
10600 LIBS=$ac_check_lib_save_LIBS
10601 fi
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10603 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10604 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10605   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10606 else
10607
10608     lt_cv_dlopen="dyld"
10609     lt_cv_dlopen_libs=
10610     lt_cv_dlopen_self=yes
10611
10612 fi
10613
10614     ;;
10615
10616   *)
10617     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10618 if test "x$ac_cv_func_shl_load" = xyes; then :
10619   lt_cv_dlopen="shl_load"
10620 else
10621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10622 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10623 if ${ac_cv_lib_dld_shl_load+:} false; then :
10624   $as_echo_n "(cached) " >&6
10625 else
10626   ac_check_lib_save_LIBS=$LIBS
10627 LIBS="-ldld  $LIBS"
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h.  */
10630
10631 /* Override any GCC internal prototype to avoid an error.
10632    Use char because int might match the return type of a GCC
10633    builtin and then its argument prototype would still apply.  */
10634 #ifdef __cplusplus
10635 extern "C"
10636 #endif
10637 char shl_load ();
10638 int
10639 main ()
10640 {
10641 return shl_load ();
10642   ;
10643   return 0;
10644 }
10645 _ACEOF
10646 if ac_fn_c_try_link "$LINENO"; then :
10647   ac_cv_lib_dld_shl_load=yes
10648 else
10649   ac_cv_lib_dld_shl_load=no
10650 fi
10651 rm -f core conftest.err conftest.$ac_objext \
10652     conftest$ac_exeext conftest.$ac_ext
10653 LIBS=$ac_check_lib_save_LIBS
10654 fi
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10656 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10657 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10658   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10659 else
10660   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10661 if test "x$ac_cv_func_dlopen" = xyes; then :
10662   lt_cv_dlopen="dlopen"
10663 else
10664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10665 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10666 if ${ac_cv_lib_dl_dlopen+:} false; then :
10667   $as_echo_n "(cached) " >&6
10668 else
10669   ac_check_lib_save_LIBS=$LIBS
10670 LIBS="-ldl  $LIBS"
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h.  */
10673
10674 /* Override any GCC internal prototype to avoid an error.
10675    Use char because int might match the return type of a GCC
10676    builtin and then its argument prototype would still apply.  */
10677 #ifdef __cplusplus
10678 extern "C"
10679 #endif
10680 char dlopen ();
10681 int
10682 main ()
10683 {
10684 return dlopen ();
10685   ;
10686   return 0;
10687 }
10688 _ACEOF
10689 if ac_fn_c_try_link "$LINENO"; then :
10690   ac_cv_lib_dl_dlopen=yes
10691 else
10692   ac_cv_lib_dl_dlopen=no
10693 fi
10694 rm -f core conftest.err conftest.$ac_objext \
10695     conftest$ac_exeext conftest.$ac_ext
10696 LIBS=$ac_check_lib_save_LIBS
10697 fi
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10699 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10700 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10701   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10702 else
10703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10704 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10705 if ${ac_cv_lib_svld_dlopen+:} false; then :
10706   $as_echo_n "(cached) " >&6
10707 else
10708   ac_check_lib_save_LIBS=$LIBS
10709 LIBS="-lsvld  $LIBS"
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h.  */
10712
10713 /* Override any GCC internal prototype to avoid an error.
10714    Use char because int might match the return type of a GCC
10715    builtin and then its argument prototype would still apply.  */
10716 #ifdef __cplusplus
10717 extern "C"
10718 #endif
10719 char dlopen ();
10720 int
10721 main ()
10722 {
10723 return dlopen ();
10724   ;
10725   return 0;
10726 }
10727 _ACEOF
10728 if ac_fn_c_try_link "$LINENO"; then :
10729   ac_cv_lib_svld_dlopen=yes
10730 else
10731   ac_cv_lib_svld_dlopen=no
10732 fi
10733 rm -f core conftest.err conftest.$ac_objext \
10734     conftest$ac_exeext conftest.$ac_ext
10735 LIBS=$ac_check_lib_save_LIBS
10736 fi
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10738 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10739 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10740   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10741 else
10742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10743 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10744 if ${ac_cv_lib_dld_dld_link+:} false; then :
10745   $as_echo_n "(cached) " >&6
10746 else
10747   ac_check_lib_save_LIBS=$LIBS
10748 LIBS="-ldld  $LIBS"
10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h.  */
10751
10752 /* Override any GCC internal prototype to avoid an error.
10753    Use char because int might match the return type of a GCC
10754    builtin and then its argument prototype would still apply.  */
10755 #ifdef __cplusplus
10756 extern "C"
10757 #endif
10758 char dld_link ();
10759 int
10760 main ()
10761 {
10762 return dld_link ();
10763   ;
10764   return 0;
10765 }
10766 _ACEOF
10767 if ac_fn_c_try_link "$LINENO"; then :
10768   ac_cv_lib_dld_dld_link=yes
10769 else
10770   ac_cv_lib_dld_dld_link=no
10771 fi
10772 rm -f core conftest.err conftest.$ac_objext \
10773     conftest$ac_exeext conftest.$ac_ext
10774 LIBS=$ac_check_lib_save_LIBS
10775 fi
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10777 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10778 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10779   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10780 fi
10781
10782
10783 fi
10784
10785
10786 fi
10787
10788
10789 fi
10790
10791
10792 fi
10793
10794
10795 fi
10796
10797     ;;
10798   esac
10799
10800   if test "x$lt_cv_dlopen" != xno; then
10801     enable_dlopen=yes
10802   else
10803     enable_dlopen=no
10804   fi
10805
10806   case $lt_cv_dlopen in
10807   dlopen)
10808     save_CPPFLAGS="$CPPFLAGS"
10809     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10810
10811     save_LDFLAGS="$LDFLAGS"
10812     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10813
10814     save_LIBS="$LIBS"
10815     LIBS="$lt_cv_dlopen_libs $LIBS"
10816
10817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10818 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10819 if ${lt_cv_dlopen_self+:} false; then :
10820   $as_echo_n "(cached) " >&6
10821 else
10822           if test "$cross_compiling" = yes; then :
10823   lt_cv_dlopen_self=cross
10824 else
10825   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10826   lt_status=$lt_dlunknown
10827   cat > conftest.$ac_ext <<_LT_EOF
10828 #line $LINENO "configure"
10829 #include "confdefs.h"
10830
10831 #if HAVE_DLFCN_H
10832 #include <dlfcn.h>
10833 #endif
10834
10835 #include <stdio.h>
10836
10837 #ifdef RTLD_GLOBAL
10838 #  define LT_DLGLOBAL           RTLD_GLOBAL
10839 #else
10840 #  ifdef DL_GLOBAL
10841 #    define LT_DLGLOBAL         DL_GLOBAL
10842 #  else
10843 #    define LT_DLGLOBAL         0
10844 #  endif
10845 #endif
10846
10847 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10848    find out it does not work in some platform. */
10849 #ifndef LT_DLLAZY_OR_NOW
10850 #  ifdef RTLD_LAZY
10851 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10852 #  else
10853 #    ifdef DL_LAZY
10854 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10855 #    else
10856 #      ifdef RTLD_NOW
10857 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10858 #      else
10859 #        ifdef DL_NOW
10860 #          define LT_DLLAZY_OR_NOW      DL_NOW
10861 #        else
10862 #          define LT_DLLAZY_OR_NOW      0
10863 #        endif
10864 #      endif
10865 #    endif
10866 #  endif
10867 #endif
10868
10869 /* When -fvisbility=hidden is used, assume the code has been annotated
10870    correspondingly for the symbols needed.  */
10871 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10872 int fnord () __attribute__((visibility("default")));
10873 #endif
10874
10875 int fnord () { return 42; }
10876 int main ()
10877 {
10878   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10879   int status = $lt_dlunknown;
10880
10881   if (self)
10882     {
10883       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10884       else
10885         {
10886           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10887           else puts (dlerror ());
10888         }
10889       /* dlclose (self); */
10890     }
10891   else
10892     puts (dlerror ());
10893
10894   return status;
10895 }
10896 _LT_EOF
10897   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10898   (eval $ac_link) 2>&5
10899   ac_status=$?
10900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10901   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10902     (./conftest; exit; ) >&5 2>/dev/null
10903     lt_status=$?
10904     case x$lt_status in
10905       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10906       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10907       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10908     esac
10909   else :
10910     # compilation failed
10911     lt_cv_dlopen_self=no
10912   fi
10913 fi
10914 rm -fr conftest*
10915
10916
10917 fi
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10919 $as_echo "$lt_cv_dlopen_self" >&6; }
10920
10921     if test "x$lt_cv_dlopen_self" = xyes; then
10922       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10923       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10924 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10925 if ${lt_cv_dlopen_self_static+:} false; then :
10926   $as_echo_n "(cached) " >&6
10927 else
10928           if test "$cross_compiling" = yes; then :
10929   lt_cv_dlopen_self_static=cross
10930 else
10931   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10932   lt_status=$lt_dlunknown
10933   cat > conftest.$ac_ext <<_LT_EOF
10934 #line $LINENO "configure"
10935 #include "confdefs.h"
10936
10937 #if HAVE_DLFCN_H
10938 #include <dlfcn.h>
10939 #endif
10940
10941 #include <stdio.h>
10942
10943 #ifdef RTLD_GLOBAL
10944 #  define LT_DLGLOBAL           RTLD_GLOBAL
10945 #else
10946 #  ifdef DL_GLOBAL
10947 #    define LT_DLGLOBAL         DL_GLOBAL
10948 #  else
10949 #    define LT_DLGLOBAL         0
10950 #  endif
10951 #endif
10952
10953 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10954    find out it does not work in some platform. */
10955 #ifndef LT_DLLAZY_OR_NOW
10956 #  ifdef RTLD_LAZY
10957 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10958 #  else
10959 #    ifdef DL_LAZY
10960 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10961 #    else
10962 #      ifdef RTLD_NOW
10963 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10964 #      else
10965 #        ifdef DL_NOW
10966 #          define LT_DLLAZY_OR_NOW      DL_NOW
10967 #        else
10968 #          define LT_DLLAZY_OR_NOW      0
10969 #        endif
10970 #      endif
10971 #    endif
10972 #  endif
10973 #endif
10974
10975 /* When -fvisbility=hidden is used, assume the code has been annotated
10976    correspondingly for the symbols needed.  */
10977 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10978 int fnord () __attribute__((visibility("default")));
10979 #endif
10980
10981 int fnord () { return 42; }
10982 int main ()
10983 {
10984   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10985   int status = $lt_dlunknown;
10986
10987   if (self)
10988     {
10989       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10990       else
10991         {
10992           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10993           else puts (dlerror ());
10994         }
10995       /* dlclose (self); */
10996     }
10997   else
10998     puts (dlerror ());
10999
11000   return status;
11001 }
11002 _LT_EOF
11003   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11004   (eval $ac_link) 2>&5
11005   ac_status=$?
11006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11007   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11008     (./conftest; exit; ) >&5 2>/dev/null
11009     lt_status=$?
11010     case x$lt_status in
11011       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11012       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11013       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11014     esac
11015   else :
11016     # compilation failed
11017     lt_cv_dlopen_self_static=no
11018   fi
11019 fi
11020 rm -fr conftest*
11021
11022
11023 fi
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11025 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11026     fi
11027
11028     CPPFLAGS="$save_CPPFLAGS"
11029     LDFLAGS="$save_LDFLAGS"
11030     LIBS="$save_LIBS"
11031     ;;
11032   esac
11033
11034   case $lt_cv_dlopen_self in
11035   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11036   *) enable_dlopen_self=unknown ;;
11037   esac
11038
11039   case $lt_cv_dlopen_self_static in
11040   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11041   *) enable_dlopen_self_static=unknown ;;
11042   esac
11043 fi
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061 striplib=
11062 old_striplib=
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11064 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11065 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11066   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11067   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11069 $as_echo "yes" >&6; }
11070 else
11071 # FIXME - insert some real tests, host_os isn't really good enough
11072   case $host_os in
11073   darwin*)
11074     if test -n "$STRIP" ; then
11075       striplib="$STRIP -x"
11076       old_striplib="$STRIP -S"
11077       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11078 $as_echo "yes" >&6; }
11079     else
11080       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081 $as_echo "no" >&6; }
11082     fi
11083     ;;
11084   *)
11085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11087     ;;
11088   esac
11089 fi
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102   # Report which library types will actually be built
11103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11104 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11106 $as_echo "$can_build_shared" >&6; }
11107
11108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11109 $as_echo_n "checking whether to build shared libraries... " >&6; }
11110   test "$can_build_shared" = "no" && enable_shared=no
11111
11112   # On AIX, shared libraries and static libraries use the same namespace, and
11113   # are all built from PIC.
11114   case $host_os in
11115   aix3*)
11116     test "$enable_shared" = yes && enable_static=no
11117     if test -n "$RANLIB"; then
11118       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11119       postinstall_cmds='$RANLIB $lib'
11120     fi
11121     ;;
11122
11123   aix[4-9]*)
11124     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11125       test "$enable_shared" = yes && enable_static=no
11126     fi
11127     ;;
11128   esac
11129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11130 $as_echo "$enable_shared" >&6; }
11131
11132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11133 $as_echo_n "checking whether to build static libraries... " >&6; }
11134   # Make sure either enable_shared or enable_static is yes.
11135   test "$enable_shared" = yes || enable_static=yes
11136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11137 $as_echo "$enable_static" >&6; }
11138
11139
11140
11141
11142 fi
11143 ac_ext=c
11144 ac_cpp='$CPP $CPPFLAGS'
11145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11148
11149 CC="$lt_save_CC"
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165         ac_config_commands="$ac_config_commands libtool"
11166
11167
11168
11169
11170 # Only expand once:
11171
11172
11173 # Extract the first word of "guile", so it can be a program name with args.
11174 set dummy guile; ac_word=$2
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11176 $as_echo_n "checking for $ac_word... " >&6; }
11177 if ${ac_cv_path_GUILE+:} false; then :
11178   $as_echo_n "(cached) " >&6
11179 else
11180   case $GUILE in
11181   [\\/]* | ?:[\\/]*)
11182   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
11183   ;;
11184   *)
11185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11186 for as_dir in $PATH
11187 do
11188   IFS=$as_save_IFS
11189   test -z "$as_dir" && as_dir=.
11190     for ac_exec_ext in '' $ac_executable_extensions; do
11191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11192     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
11193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11194     break 2
11195   fi
11196 done
11197   done
11198 IFS=$as_save_IFS
11199
11200   ;;
11201 esac
11202 fi
11203 GUILE=$ac_cv_path_GUILE
11204 if test -n "$GUILE"; then
11205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
11206 $as_echo "$GUILE" >&6; }
11207 else
11208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11209 $as_echo "no" >&6; }
11210 fi
11211
11212
11213   if test "$GUILE" = "" ; then
11214       as_fn_error $? "guile required but not found" "$LINENO" 5
11215   fi
11216
11217   # Extract the first word of "guile-config", so it can be a program name with args.
11218 set dummy guile-config; ac_word=$2
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220 $as_echo_n "checking for $ac_word... " >&6; }
11221 if ${ac_cv_path_GUILE_CONFIG+:} false; then :
11222   $as_echo_n "(cached) " >&6
11223 else
11224   case $GUILE_CONFIG in
11225   [\\/]* | ?:[\\/]*)
11226   ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
11227   ;;
11228   *)
11229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH
11231 do
11232   IFS=$as_save_IFS
11233   test -z "$as_dir" && as_dir=.
11234     for ac_exec_ext in '' $ac_executable_extensions; do
11235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11236     ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11238     break 2
11239   fi
11240 done
11241   done
11242 IFS=$as_save_IFS
11243
11244   ;;
11245 esac
11246 fi
11247 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
11248 if test -n "$GUILE_CONFIG"; then
11249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
11250 $as_echo "$GUILE_CONFIG" >&6; }
11251 else
11252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253 $as_echo "no" >&6; }
11254 fi
11255
11256
11257   if test "$GUILE_CONFIG" = "" ; then
11258       as_fn_error $? "guile-config required but not found" "$LINENO" 5
11259   fi
11260
11261   # Extract the first word of "guile-tools", so it can be a program name with args.
11262 set dummy guile-tools; ac_word=$2
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11264 $as_echo_n "checking for $ac_word... " >&6; }
11265 if ${ac_cv_path_GUILE_TOOLS+:} false; then :
11266   $as_echo_n "(cached) " >&6
11267 else
11268   case $GUILE_TOOLS in
11269   [\\/]* | ?:[\\/]*)
11270   ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
11271   ;;
11272   *)
11273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11274 for as_dir in $PATH
11275 do
11276   IFS=$as_save_IFS
11277   test -z "$as_dir" && as_dir=.
11278     for ac_exec_ext in '' $ac_executable_extensions; do
11279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11280     ac_cv_path_GUILE_TOOLS="$as_dir/$ac_word$ac_exec_ext"
11281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11282     break 2
11283   fi
11284 done
11285   done
11286 IFS=$as_save_IFS
11287
11288   ;;
11289 esac
11290 fi
11291 GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
11292 if test -n "$GUILE_TOOLS"; then
11293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
11294 $as_echo "$GUILE_TOOLS" >&6; }
11295 else
11296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297 $as_echo "no" >&6; }
11298 fi
11299
11300
11301
11302
11303
11304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile compile flags" >&5
11305 $as_echo_n "checking libguile compile flags... " >&6; }
11306   GUILE_CFLAGS="`$GUILE_CONFIG compile`"
11307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CFLAGS" >&5
11308 $as_echo "$GUILE_CFLAGS" >&6; }
11309
11310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile link flags" >&5
11311 $as_echo_n "checking libguile link flags... " >&6; }
11312   GUILE_LDFLAGS="`$GUILE_CONFIG link`"
11313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LDFLAGS" >&5
11314 $as_echo "$GUILE_LDFLAGS" >&6; }
11315
11316         AC_LIB_LINKFLAGS_FROM_LIBS(GUILE_LIBS, $GUILE_LDFLAGS, )
11317   GUILE_LIBS="$GUILE_LDFLAGS $GUILE_LIBS"
11318   AC_LIB_LINKFLAGS_FROM_LIBS(GUILE_LTLIBS, $GUILE_LDFLAGS, yes)
11319   GUILE_LTLIBS="$GUILE_LDFLAGS $GUILE_LTLIBS"
11320
11321
11322
11323
11324
11325
11326 CFLAGS="$CFLAGS -I/usr/include/freetype2"
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
11328 $as_echo_n "checking for main in -lreadline... " >&6; }
11329 if ${ac_cv_lib_readline_main+:} false; then :
11330   $as_echo_n "(cached) " >&6
11331 else
11332   ac_check_lib_save_LIBS=$LIBS
11333 LIBS="-lreadline  $LIBS"
11334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h.  */
11336
11337
11338 int
11339 main ()
11340 {
11341 return main ();
11342   ;
11343   return 0;
11344 }
11345 _ACEOF
11346 if ac_fn_c_try_link "$LINENO"; then :
11347   ac_cv_lib_readline_main=yes
11348 else
11349   ac_cv_lib_readline_main=no
11350 fi
11351 rm -f core conftest.err conftest.$ac_objext \
11352     conftest$ac_exeext conftest.$ac_ext
11353 LIBS=$ac_check_lib_save_LIBS
11354 fi
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
11356 $as_echo "$ac_cv_lib_readline_main" >&6; }
11357 if test "x$ac_cv_lib_readline_main" = xyes; then :
11358   as_fn_error $? "*** readline library not found!" "$LINENO" 5
11359 fi
11360
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL" >&5
11362 $as_echo_n "checking for main in -lSDL... " >&6; }
11363 if ${ac_cv_lib_SDL_main+:} false; then :
11364   $as_echo_n "(cached) " >&6
11365 else
11366   ac_check_lib_save_LIBS=$LIBS
11367 LIBS="-lSDL  $LIBS"
11368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h.  */
11370
11371
11372 int
11373 main ()
11374 {
11375 return main ();
11376   ;
11377   return 0;
11378 }
11379 _ACEOF
11380 if ac_fn_c_try_link "$LINENO"; then :
11381   ac_cv_lib_SDL_main=yes
11382 else
11383   ac_cv_lib_SDL_main=no
11384 fi
11385 rm -f core conftest.err conftest.$ac_objext \
11386     conftest$ac_exeext conftest.$ac_ext
11387 LIBS=$ac_check_lib_save_LIBS
11388 fi
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_main" >&5
11390 $as_echo "$ac_cv_lib_SDL_main" >&6; }
11391 if test "x$ac_cv_lib_SDL_main" = xyes; then :
11392   as_fn_error $? "*** SDL library not found!" "$LINENO" 5
11393 fi
11394
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_image" >&5
11396 $as_echo_n "checking for main in -lSDL_image... " >&6; }
11397 if ${ac_cv_lib_SDL_image_main+:} false; then :
11398   $as_echo_n "(cached) " >&6
11399 else
11400   ac_check_lib_save_LIBS=$LIBS
11401 LIBS="-lSDL_image  $LIBS"
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h.  */
11404
11405
11406 int
11407 main ()
11408 {
11409 return main ();
11410   ;
11411   return 0;
11412 }
11413 _ACEOF
11414 if ac_fn_c_try_link "$LINENO"; then :
11415   ac_cv_lib_SDL_image_main=yes
11416 else
11417   ac_cv_lib_SDL_image_main=no
11418 fi
11419 rm -f core conftest.err conftest.$ac_objext \
11420     conftest$ac_exeext conftest.$ac_ext
11421 LIBS=$ac_check_lib_save_LIBS
11422 fi
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_main" >&5
11424 $as_echo "$ac_cv_lib_SDL_image_main" >&6; }
11425 if test "x$ac_cv_lib_SDL_image_main" = xyes; then :
11426   as_fn_error $? "*** SDL_image library not found!" "$LINENO" 5
11427 fi
11428
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_gfx" >&5
11430 $as_echo_n "checking for main in -lSDL_gfx... " >&6; }
11431 if ${ac_cv_lib_SDL_gfx_main+:} false; then :
11432   $as_echo_n "(cached) " >&6
11433 else
11434   ac_check_lib_save_LIBS=$LIBS
11435 LIBS="-lSDL_gfx  $LIBS"
11436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437 /* end confdefs.h.  */
11438
11439
11440 int
11441 main ()
11442 {
11443 return main ();
11444   ;
11445   return 0;
11446 }
11447 _ACEOF
11448 if ac_fn_c_try_link "$LINENO"; then :
11449   ac_cv_lib_SDL_gfx_main=yes
11450 else
11451   ac_cv_lib_SDL_gfx_main=no
11452 fi
11453 rm -f core conftest.err conftest.$ac_objext \
11454     conftest$ac_exeext conftest.$ac_ext
11455 LIBS=$ac_check_lib_save_LIBS
11456 fi
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_gfx_main" >&5
11458 $as_echo "$ac_cv_lib_SDL_gfx_main" >&6; }
11459 if test "x$ac_cv_lib_SDL_gfx_main" = xyes; then :
11460   as_fn_error $? "*** SDL_gfx library not found!" "$LINENO" 5
11461 fi
11462
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5
11464 $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
11465 if ${ac_cv_lib_SDL_mixer_main+:} false; then :
11466   $as_echo_n "(cached) " >&6
11467 else
11468   ac_check_lib_save_LIBS=$LIBS
11469 LIBS="-lSDL_mixer  $LIBS"
11470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h.  */
11472
11473
11474 int
11475 main ()
11476 {
11477 return main ();
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 if ac_fn_c_try_link "$LINENO"; then :
11483   ac_cv_lib_SDL_mixer_main=yes
11484 else
11485   ac_cv_lib_SDL_mixer_main=no
11486 fi
11487 rm -f core conftest.err conftest.$ac_objext \
11488     conftest$ac_exeext conftest.$ac_ext
11489 LIBS=$ac_check_lib_save_LIBS
11490 fi
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5
11492 $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
11493 if test "x$ac_cv_lib_SDL_mixer_main" = xyes; then :
11494   as_fn_error $? "*** SDL_mixer library not found!" "$LINENO" 5
11495 fi
11496
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
11498 $as_echo_n "checking for main in -lGL... " >&6; }
11499 if ${ac_cv_lib_GL_main+:} false; then :
11500   $as_echo_n "(cached) " >&6
11501 else
11502   ac_check_lib_save_LIBS=$LIBS
11503 LIBS="-lGL  $LIBS"
11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h.  */
11506
11507
11508 int
11509 main ()
11510 {
11511 return main ();
11512   ;
11513   return 0;
11514 }
11515 _ACEOF
11516 if ac_fn_c_try_link "$LINENO"; then :
11517   ac_cv_lib_GL_main=yes
11518 else
11519   ac_cv_lib_GL_main=no
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext \
11522     conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_check_lib_save_LIBS
11524 fi
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
11526 $as_echo "$ac_cv_lib_GL_main" >&6; }
11527 if test "x$ac_cv_lib_GL_main" = xyes; then :
11528   as_fn_error $? "*** GL library not found!" "$LINENO" 5
11529 fi
11530
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGLU" >&5
11532 $as_echo_n "checking for main in -lGLU... " >&6; }
11533 if ${ac_cv_lib_GLU_main+:} false; then :
11534   $as_echo_n "(cached) " >&6
11535 else
11536   ac_check_lib_save_LIBS=$LIBS
11537 LIBS="-lGLU  $LIBS"
11538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h.  */
11540
11541
11542 int
11543 main ()
11544 {
11545 return main ();
11546   ;
11547   return 0;
11548 }
11549 _ACEOF
11550 if ac_fn_c_try_link "$LINENO"; then :
11551   ac_cv_lib_GLU_main=yes
11552 else
11553   ac_cv_lib_GLU_main=no
11554 fi
11555 rm -f core conftest.err conftest.$ac_objext \
11556     conftest$ac_exeext conftest.$ac_ext
11557 LIBS=$ac_check_lib_save_LIBS
11558 fi
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_main" >&5
11560 $as_echo "$ac_cv_lib_GLU_main" >&6; }
11561 if test "x$ac_cv_lib_GLU_main" = xyes; then :
11562   as_fn_error $? "*** GLU library not found!" "$LINENO" 5
11563 fi
11564
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lftgl" >&5
11566 $as_echo_n "checking for main in -lftgl... " >&6; }
11567 if ${ac_cv_lib_ftgl_main+:} false; then :
11568   $as_echo_n "(cached) " >&6
11569 else
11570   ac_check_lib_save_LIBS=$LIBS
11571 LIBS="-lftgl  $LIBS"
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h.  */
11574
11575
11576 int
11577 main ()
11578 {
11579 return main ();
11580   ;
11581   return 0;
11582 }
11583 _ACEOF
11584 if ac_fn_c_try_link "$LINENO"; then :
11585   ac_cv_lib_ftgl_main=yes
11586 else
11587   ac_cv_lib_ftgl_main=no
11588 fi
11589 rm -f core conftest.err conftest.$ac_objext \
11590     conftest$ac_exeext conftest.$ac_ext
11591 LIBS=$ac_check_lib_save_LIBS
11592 fi
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftgl_main" >&5
11594 $as_echo "$ac_cv_lib_ftgl_main" >&6; }
11595 if test "x$ac_cv_lib_ftgl_main" = xyes; then :
11596   as_fn_error $? "*** FTGL library not found!" "$LINENO" 5
11597 fi
11598
11599
11600 ac_config_headers="$ac_config_headers config.h"
11601
11602 ac_config_files="$ac_config_files Makefile src/Makefile"
11603
11604 cat >confcache <<\_ACEOF
11605 # This file is a shell script that caches the results of configure
11606 # tests run on this system so they can be shared between configure
11607 # scripts and configure runs, see configure's option --config-cache.
11608 # It is not useful on other systems.  If it contains results you don't
11609 # want to keep, you may remove or edit it.
11610 #
11611 # config.status only pays attention to the cache file if you give it
11612 # the --recheck option to rerun configure.
11613 #
11614 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11615 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11616 # following values.
11617
11618 _ACEOF
11619
11620 # The following way of writing the cache mishandles newlines in values,
11621 # but we know of no workaround that is simple, portable, and efficient.
11622 # So, we kill variables containing newlines.
11623 # Ultrix sh set writes to stderr and can't be redirected directly,
11624 # and sets the high bit in the cache file unless we assign to the vars.
11625 (
11626   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11627     eval ac_val=\$$ac_var
11628     case $ac_val in #(
11629     *${as_nl}*)
11630       case $ac_var in #(
11631       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11632 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11633       esac
11634       case $ac_var in #(
11635       _ | IFS | as_nl) ;; #(
11636       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11637       *) { eval $ac_var=; unset $ac_var;} ;;
11638       esac ;;
11639     esac
11640   done
11641
11642   (set) 2>&1 |
11643     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11644     *${as_nl}ac_space=\ *)
11645       # `set' does not quote correctly, so add quotes: double-quote
11646       # substitution turns \\\\ into \\, and sed turns \\ into \.
11647       sed -n \
11648         "s/'/'\\\\''/g;
11649           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11650       ;; #(
11651     *)
11652       # `set' quotes correctly as required by POSIX, so do not add quotes.
11653       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11654       ;;
11655     esac |
11656     sort
11657 ) |
11658   sed '
11659      /^ac_cv_env_/b end
11660      t clear
11661      :clear
11662      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11663      t end
11664      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11665      :end' >>confcache
11666 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11667   if test -w "$cache_file"; then
11668     if test "x$cache_file" != "x/dev/null"; then
11669       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11670 $as_echo "$as_me: updating cache $cache_file" >&6;}
11671       if test ! -f "$cache_file" || test -h "$cache_file"; then
11672         cat confcache >"$cache_file"
11673       else
11674         case $cache_file in #(
11675         */* | ?:*)
11676           mv -f confcache "$cache_file"$$ &&
11677           mv -f "$cache_file"$$ "$cache_file" ;; #(
11678         *)
11679           mv -f confcache "$cache_file" ;;
11680         esac
11681       fi
11682     fi
11683   else
11684     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11685 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11686   fi
11687 fi
11688 rm -f confcache
11689
11690 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11691 # Let make expand exec_prefix.
11692 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11693
11694 DEFS=-DHAVE_CONFIG_H
11695
11696 ac_libobjs=
11697 ac_ltlibobjs=
11698 U=
11699 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11700   # 1. Remove the extension, and $U if already installed.
11701   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11702   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11703   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11704   #    will be set to the directory where LIBOBJS objects are built.
11705   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11706   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11707 done
11708 LIBOBJS=$ac_libobjs
11709
11710 LTLIBOBJS=$ac_ltlibobjs
11711
11712
11713  if test -n "$EXEEXT"; then
11714   am__EXEEXT_TRUE=
11715   am__EXEEXT_FALSE='#'
11716 else
11717   am__EXEEXT_TRUE='#'
11718   am__EXEEXT_FALSE=
11719 fi
11720
11721 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11722   as_fn_error $? "conditional \"AMDEP\" was never defined.
11723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11724 fi
11725 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11726   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11728 fi
11729
11730 : "${CONFIG_STATUS=./config.status}"
11731 ac_write_fail=0
11732 ac_clean_files_save=$ac_clean_files
11733 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11735 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11736 as_write_fail=0
11737 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11738 #! $SHELL
11739 # Generated by $as_me.
11740 # Run this file to recreate the current configuration.
11741 # Compiler output produced by configure, useful for debugging
11742 # configure, is in config.log if it exists.
11743
11744 debug=false
11745 ac_cs_recheck=false
11746 ac_cs_silent=false
11747
11748 SHELL=\${CONFIG_SHELL-$SHELL}
11749 export SHELL
11750 _ASEOF
11751 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11752 ## -------------------- ##
11753 ## M4sh Initialization. ##
11754 ## -------------------- ##
11755
11756 # Be more Bourne compatible
11757 DUALCASE=1; export DUALCASE # for MKS sh
11758 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11759   emulate sh
11760   NULLCMD=:
11761   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11762   # is contrary to our usage.  Disable this feature.
11763   alias -g '${1+"$@"}'='"$@"'
11764   setopt NO_GLOB_SUBST
11765 else
11766   case `(set -o) 2>/dev/null` in #(
11767   *posix*) :
11768     set -o posix ;; #(
11769   *) :
11770      ;;
11771 esac
11772 fi
11773
11774
11775 as_nl='
11776 '
11777 export as_nl
11778 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11779 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11780 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11781 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11782 # Prefer a ksh shell builtin over an external printf program on Solaris,
11783 # but without wasting forks for bash or zsh.
11784 if test -z "$BASH_VERSION$ZSH_VERSION" \
11785     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11786   as_echo='print -r --'
11787   as_echo_n='print -rn --'
11788 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11789   as_echo='printf %s\n'
11790   as_echo_n='printf %s'
11791 else
11792   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11793     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11794     as_echo_n='/usr/ucb/echo -n'
11795   else
11796     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11797     as_echo_n_body='eval
11798       arg=$1;
11799       case $arg in #(
11800       *"$as_nl"*)
11801         expr "X$arg" : "X\\(.*\\)$as_nl";
11802         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11803       esac;
11804       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11805     '
11806     export as_echo_n_body
11807     as_echo_n='sh -c $as_echo_n_body as_echo'
11808   fi
11809   export as_echo_body
11810   as_echo='sh -c $as_echo_body as_echo'
11811 fi
11812
11813 # The user is always right.
11814 if test "${PATH_SEPARATOR+set}" != set; then
11815   PATH_SEPARATOR=:
11816   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11817     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11818       PATH_SEPARATOR=';'
11819   }
11820 fi
11821
11822
11823 # IFS
11824 # We need space, tab and new line, in precisely that order.  Quoting is
11825 # there to prevent editors from complaining about space-tab.
11826 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11827 # splitting by setting IFS to empty value.)
11828 IFS=" ""        $as_nl"
11829
11830 # Find who we are.  Look in the path if we contain no directory separator.
11831 as_myself=
11832 case $0 in #((
11833   *[\\/]* ) as_myself=$0 ;;
11834   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835 for as_dir in $PATH
11836 do
11837   IFS=$as_save_IFS
11838   test -z "$as_dir" && as_dir=.
11839     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11840   done
11841 IFS=$as_save_IFS
11842
11843      ;;
11844 esac
11845 # We did not find ourselves, most probably we were run as `sh COMMAND'
11846 # in which case we are not to be found in the path.
11847 if test "x$as_myself" = x; then
11848   as_myself=$0
11849 fi
11850 if test ! -f "$as_myself"; then
11851   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11852   exit 1
11853 fi
11854
11855 # Unset variables that we do not need and which cause bugs (e.g. in
11856 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11857 # suppresses any "Segmentation fault" message there.  '((' could
11858 # trigger a bug in pdksh 5.2.14.
11859 for as_var in BASH_ENV ENV MAIL MAILPATH
11860 do eval test x\${$as_var+set} = xset \
11861   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11862 done
11863 PS1='$ '
11864 PS2='> '
11865 PS4='+ '
11866
11867 # NLS nuisances.
11868 LC_ALL=C
11869 export LC_ALL
11870 LANGUAGE=C
11871 export LANGUAGE
11872
11873 # CDPATH.
11874 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11875
11876
11877 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11878 # ----------------------------------------
11879 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11880 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11881 # script with STATUS, using 1 if that was 0.
11882 as_fn_error ()
11883 {
11884   as_status=$1; test $as_status -eq 0 && as_status=1
11885   if test "$4"; then
11886     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11887     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11888   fi
11889   $as_echo "$as_me: error: $2" >&2
11890   as_fn_exit $as_status
11891 } # as_fn_error
11892
11893
11894 # as_fn_set_status STATUS
11895 # -----------------------
11896 # Set $? to STATUS, without forking.
11897 as_fn_set_status ()
11898 {
11899   return $1
11900 } # as_fn_set_status
11901
11902 # as_fn_exit STATUS
11903 # -----------------
11904 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11905 as_fn_exit ()
11906 {
11907   set +e
11908   as_fn_set_status $1
11909   exit $1
11910 } # as_fn_exit
11911
11912 # as_fn_unset VAR
11913 # ---------------
11914 # Portably unset VAR.
11915 as_fn_unset ()
11916 {
11917   { eval $1=; unset $1;}
11918 }
11919 as_unset=as_fn_unset
11920 # as_fn_append VAR VALUE
11921 # ----------------------
11922 # Append the text in VALUE to the end of the definition contained in VAR. Take
11923 # advantage of any shell optimizations that allow amortized linear growth over
11924 # repeated appends, instead of the typical quadratic growth present in naive
11925 # implementations.
11926 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11927   eval 'as_fn_append ()
11928   {
11929     eval $1+=\$2
11930   }'
11931 else
11932   as_fn_append ()
11933   {
11934     eval $1=\$$1\$2
11935   }
11936 fi # as_fn_append
11937
11938 # as_fn_arith ARG...
11939 # ------------------
11940 # Perform arithmetic evaluation on the ARGs, and store the result in the
11941 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11942 # must be portable across $(()) and expr.
11943 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11944   eval 'as_fn_arith ()
11945   {
11946     as_val=$(( $* ))
11947   }'
11948 else
11949   as_fn_arith ()
11950   {
11951     as_val=`expr "$@" || test $? -eq 1`
11952   }
11953 fi # as_fn_arith
11954
11955
11956 if expr a : '\(a\)' >/dev/null 2>&1 &&
11957    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11958   as_expr=expr
11959 else
11960   as_expr=false
11961 fi
11962
11963 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11964   as_basename=basename
11965 else
11966   as_basename=false
11967 fi
11968
11969 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11970   as_dirname=dirname
11971 else
11972   as_dirname=false
11973 fi
11974
11975 as_me=`$as_basename -- "$0" ||
11976 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11977          X"$0" : 'X\(//\)$' \| \
11978          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11979 $as_echo X/"$0" |
11980     sed '/^.*\/\([^/][^/]*\)\/*$/{
11981             s//\1/
11982             q
11983           }
11984           /^X\/\(\/\/\)$/{
11985             s//\1/
11986             q
11987           }
11988           /^X\/\(\/\).*/{
11989             s//\1/
11990             q
11991           }
11992           s/.*/./; q'`
11993
11994 # Avoid depending upon Character Ranges.
11995 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11996 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11997 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11998 as_cr_digits='0123456789'
11999 as_cr_alnum=$as_cr_Letters$as_cr_digits
12000
12001 ECHO_C= ECHO_N= ECHO_T=
12002 case `echo -n x` in #(((((
12003 -n*)
12004   case `echo 'xy\c'` in
12005   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12006   xy)  ECHO_C='\c';;
12007   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12008        ECHO_T=' ';;
12009   esac;;
12010 *)
12011   ECHO_N='-n';;
12012 esac
12013
12014 rm -f conf$$ conf$$.exe conf$$.file
12015 if test -d conf$$.dir; then
12016   rm -f conf$$.dir/conf$$.file
12017 else
12018   rm -f conf$$.dir
12019   mkdir conf$$.dir 2>/dev/null
12020 fi
12021 if (echo >conf$$.file) 2>/dev/null; then
12022   if ln -s conf$$.file conf$$ 2>/dev/null; then
12023     as_ln_s='ln -s'
12024     # ... but there are two gotchas:
12025     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12026     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12027     # In both cases, we have to default to `cp -p'.
12028     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12029       as_ln_s='cp -p'
12030   elif ln conf$$.file conf$$ 2>/dev/null; then
12031     as_ln_s=ln
12032   else
12033     as_ln_s='cp -p'
12034   fi
12035 else
12036   as_ln_s='cp -p'
12037 fi
12038 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12039 rmdir conf$$.dir 2>/dev/null
12040
12041
12042 # as_fn_mkdir_p
12043 # -------------
12044 # Create "$as_dir" as a directory, including parents if necessary.
12045 as_fn_mkdir_p ()
12046 {
12047
12048   case $as_dir in #(
12049   -*) as_dir=./$as_dir;;
12050   esac
12051   test -d "$as_dir" || eval $as_mkdir_p || {
12052     as_dirs=
12053     while :; do
12054       case $as_dir in #(
12055       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12056       *) as_qdir=$as_dir;;
12057       esac
12058       as_dirs="'$as_qdir' $as_dirs"
12059       as_dir=`$as_dirname -- "$as_dir" ||
12060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12061          X"$as_dir" : 'X\(//\)[^/]' \| \
12062          X"$as_dir" : 'X\(//\)$' \| \
12063          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12064 $as_echo X"$as_dir" |
12065     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12066             s//\1/
12067             q
12068           }
12069           /^X\(\/\/\)[^/].*/{
12070             s//\1/
12071             q
12072           }
12073           /^X\(\/\/\)$/{
12074             s//\1/
12075             q
12076           }
12077           /^X\(\/\).*/{
12078             s//\1/
12079             q
12080           }
12081           s/.*/./; q'`
12082       test -d "$as_dir" && break
12083     done
12084     test -z "$as_dirs" || eval "mkdir $as_dirs"
12085   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12086
12087
12088 } # as_fn_mkdir_p
12089 if mkdir -p . 2>/dev/null; then
12090   as_mkdir_p='mkdir -p "$as_dir"'
12091 else
12092   test -d ./-p && rmdir ./-p
12093   as_mkdir_p=false
12094 fi
12095
12096 if test -x / >/dev/null 2>&1; then
12097   as_test_x='test -x'
12098 else
12099   if ls -dL / >/dev/null 2>&1; then
12100     as_ls_L_option=L
12101   else
12102     as_ls_L_option=
12103   fi
12104   as_test_x='
12105     eval sh -c '\''
12106       if test -d "$1"; then
12107         test -d "$1/.";
12108       else
12109         case $1 in #(
12110         -*)set "./$1";;
12111         esac;
12112         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12113         ???[sx]*):;;*)false;;esac;fi
12114     '\'' sh
12115   '
12116 fi
12117 as_executable_p=$as_test_x
12118
12119 # Sed expression to map a string onto a valid CPP name.
12120 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12121
12122 # Sed expression to map a string onto a valid variable name.
12123 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12124
12125
12126 exec 6>&1
12127 ## ----------------------------------- ##
12128 ## Main body of $CONFIG_STATUS script. ##
12129 ## ----------------------------------- ##
12130 _ASEOF
12131 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12132
12133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12134 # Save the log message, to keep $0 and so on meaningful, and to
12135 # report actual input values of CONFIG_FILES etc. instead of their
12136 # values after options handling.
12137 ac_log="
12138 This file was extended by gacela $as_me 0.5, which was
12139 generated by GNU Autoconf 2.68.  Invocation command line was
12140
12141   CONFIG_FILES    = $CONFIG_FILES
12142   CONFIG_HEADERS  = $CONFIG_HEADERS
12143   CONFIG_LINKS    = $CONFIG_LINKS
12144   CONFIG_COMMANDS = $CONFIG_COMMANDS
12145   $ $0 $@
12146
12147 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12148 "
12149
12150 _ACEOF
12151
12152 case $ac_config_files in *"
12153 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12154 esac
12155
12156 case $ac_config_headers in *"
12157 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12158 esac
12159
12160
12161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12162 # Files that config.status was made for.
12163 config_files="$ac_config_files"
12164 config_headers="$ac_config_headers"
12165 config_commands="$ac_config_commands"
12166
12167 _ACEOF
12168
12169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12170 ac_cs_usage="\
12171 \`$as_me' instantiates files and other configuration actions
12172 from templates according to the current configuration.  Unless the files
12173 and actions are specified as TAGs, all are instantiated by default.
12174
12175 Usage: $0 [OPTION]... [TAG]...
12176
12177   -h, --help       print this help, then exit
12178   -V, --version    print version number and configuration settings, then exit
12179       --config     print configuration, then exit
12180   -q, --quiet, --silent
12181                    do not print progress messages
12182   -d, --debug      don't remove temporary files
12183       --recheck    update $as_me by reconfiguring in the same conditions
12184       --file=FILE[:TEMPLATE]
12185                    instantiate the configuration file FILE
12186       --header=FILE[:TEMPLATE]
12187                    instantiate the configuration header FILE
12188
12189 Configuration files:
12190 $config_files
12191
12192 Configuration headers:
12193 $config_headers
12194
12195 Configuration commands:
12196 $config_commands
12197
12198 Report bugs to <jsf@jsancho.org>."
12199
12200 _ACEOF
12201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12202 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12203 ac_cs_version="\\
12204 gacela config.status 0.5
12205 configured by $0, generated by GNU Autoconf 2.68,
12206   with options \\"\$ac_cs_config\\"
12207
12208 Copyright (C) 2010 Free Software Foundation, Inc.
12209 This config.status script is free software; the Free Software Foundation
12210 gives unlimited permission to copy, distribute and modify it."
12211
12212 ac_pwd='$ac_pwd'
12213 srcdir='$srcdir'
12214 INSTALL='$INSTALL'
12215 MKDIR_P='$MKDIR_P'
12216 AWK='$AWK'
12217 test -n "\$AWK" || AWK=awk
12218 _ACEOF
12219
12220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12221 # The default lists apply if the user does not specify any file.
12222 ac_need_defaults=:
12223 while test $# != 0
12224 do
12225   case $1 in
12226   --*=?*)
12227     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12228     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12229     ac_shift=:
12230     ;;
12231   --*=)
12232     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12233     ac_optarg=
12234     ac_shift=:
12235     ;;
12236   *)
12237     ac_option=$1
12238     ac_optarg=$2
12239     ac_shift=shift
12240     ;;
12241   esac
12242
12243   case $ac_option in
12244   # Handling of the options.
12245   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12246     ac_cs_recheck=: ;;
12247   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12248     $as_echo "$ac_cs_version"; exit ;;
12249   --config | --confi | --conf | --con | --co | --c )
12250     $as_echo "$ac_cs_config"; exit ;;
12251   --debug | --debu | --deb | --de | --d | -d )
12252     debug=: ;;
12253   --file | --fil | --fi | --f )
12254     $ac_shift
12255     case $ac_optarg in
12256     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12257     '') as_fn_error $? "missing file argument" ;;
12258     esac
12259     as_fn_append CONFIG_FILES " '$ac_optarg'"
12260     ac_need_defaults=false;;
12261   --header | --heade | --head | --hea )
12262     $ac_shift
12263     case $ac_optarg in
12264     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12265     esac
12266     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12267     ac_need_defaults=false;;
12268   --he | --h)
12269     # Conflict between --help and --header
12270     as_fn_error $? "ambiguous option: \`$1'
12271 Try \`$0 --help' for more information.";;
12272   --help | --hel | -h )
12273     $as_echo "$ac_cs_usage"; exit ;;
12274   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12275   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12276     ac_cs_silent=: ;;
12277
12278   # This is an error.
12279   -*) as_fn_error $? "unrecognized option: \`$1'
12280 Try \`$0 --help' for more information." ;;
12281
12282   *) as_fn_append ac_config_targets " $1"
12283      ac_need_defaults=false ;;
12284
12285   esac
12286   shift
12287 done
12288
12289 ac_configure_extra_args=
12290
12291 if $ac_cs_silent; then
12292   exec 6>/dev/null
12293   ac_configure_extra_args="$ac_configure_extra_args --silent"
12294 fi
12295
12296 _ACEOF
12297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12298 if \$ac_cs_recheck; then
12299   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12300   shift
12301   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12302   CONFIG_SHELL='$SHELL'
12303   export CONFIG_SHELL
12304   exec "\$@"
12305 fi
12306
12307 _ACEOF
12308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12309 exec 5>>config.log
12310 {
12311   echo
12312   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12313 ## Running $as_me. ##
12314 _ASBOX
12315   $as_echo "$ac_log"
12316 } >&5
12317
12318 _ACEOF
12319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12320 #
12321 # INIT-COMMANDS
12322 #
12323 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12324
12325
12326 # The HP-UX ksh and POSIX shell print the target directory to stdout
12327 # if CDPATH is set.
12328 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12329
12330 sed_quote_subst='$sed_quote_subst'
12331 double_quote_subst='$double_quote_subst'
12332 delay_variable_subst='$delay_variable_subst'
12333 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12334 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12335 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12336 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12337 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12338 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12339 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12340 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12341 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12342 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12343 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12344 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12345 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12346 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12347 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12348 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12349 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12350 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12351 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12352 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12353 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12354 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12355 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12356 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12357 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12358 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12359 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12360 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12361 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12362 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12363 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12364 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12365 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12366 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12367 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12368 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12369 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12370 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12371 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12372 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12373 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12374 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12375 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12376 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12377 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12378 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12379 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12380 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12381 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12382 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12383 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12384 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12385 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12386 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12387 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12388 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12389 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"`'
12390 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12391 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12392 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12393 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12394 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12395 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12396 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12397 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12398 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12399 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12400 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12401 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12402 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12403 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12404 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12405 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12406 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12407 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12408 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12409 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12410 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12411 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12412 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12413 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12414 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12415 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12416 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12417 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12418 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12419 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12420 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12421 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12422 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12423 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12424 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12425 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12426 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12427 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12428 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12429 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12430 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12431 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12432 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12433 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12434 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12435 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12436 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12437 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12438 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12439 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12440 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12441 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12442 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12443 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12444 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12445 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12446 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12447 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12448 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12449 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12450 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12451 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12452 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12453 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12454 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12455 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12456 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12457 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12458 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12459 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12460 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12461 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12462 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12463
12464 LTCC='$LTCC'
12465 LTCFLAGS='$LTCFLAGS'
12466 compiler='$compiler_DEFAULT'
12467
12468 # A function that is used when there is no print builtin or printf.
12469 func_fallback_echo ()
12470 {
12471   eval 'cat <<_LTECHO_EOF
12472 \$1
12473 _LTECHO_EOF'
12474 }
12475
12476 # Quote evaled strings.
12477 for var in SHELL \
12478 ECHO \
12479 PATH_SEPARATOR \
12480 SED \
12481 GREP \
12482 EGREP \
12483 FGREP \
12484 LD \
12485 NM \
12486 LN_S \
12487 lt_SP2NL \
12488 lt_NL2SP \
12489 reload_flag \
12490 OBJDUMP \
12491 deplibs_check_method \
12492 file_magic_cmd \
12493 file_magic_glob \
12494 want_nocaseglob \
12495 DLLTOOL \
12496 sharedlib_from_linklib_cmd \
12497 AR \
12498 AR_FLAGS \
12499 archiver_list_spec \
12500 STRIP \
12501 RANLIB \
12502 CC \
12503 CFLAGS \
12504 compiler \
12505 lt_cv_sys_global_symbol_pipe \
12506 lt_cv_sys_global_symbol_to_cdecl \
12507 lt_cv_sys_global_symbol_to_c_name_address \
12508 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12509 nm_file_list_spec \
12510 lt_prog_compiler_no_builtin_flag \
12511 lt_prog_compiler_pic \
12512 lt_prog_compiler_wl \
12513 lt_prog_compiler_static \
12514 lt_cv_prog_compiler_c_o \
12515 need_locks \
12516 MANIFEST_TOOL \
12517 DSYMUTIL \
12518 NMEDIT \
12519 LIPO \
12520 OTOOL \
12521 OTOOL64 \
12522 shrext_cmds \
12523 export_dynamic_flag_spec \
12524 whole_archive_flag_spec \
12525 compiler_needs_object \
12526 with_gnu_ld \
12527 allow_undefined_flag \
12528 no_undefined_flag \
12529 hardcode_libdir_flag_spec \
12530 hardcode_libdir_separator \
12531 exclude_expsyms \
12532 include_expsyms \
12533 file_list_spec \
12534 variables_saved_for_relink \
12535 libname_spec \
12536 library_names_spec \
12537 soname_spec \
12538 install_override_mode \
12539 finish_eval \
12540 old_striplib \
12541 striplib; do
12542     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12543     *[\\\\\\\`\\"\\\$]*)
12544       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12545       ;;
12546     *)
12547       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12548       ;;
12549     esac
12550 done
12551
12552 # Double-quote double-evaled strings.
12553 for var in reload_cmds \
12554 old_postinstall_cmds \
12555 old_postuninstall_cmds \
12556 old_archive_cmds \
12557 extract_expsyms_cmds \
12558 old_archive_from_new_cmds \
12559 old_archive_from_expsyms_cmds \
12560 archive_cmds \
12561 archive_expsym_cmds \
12562 module_cmds \
12563 module_expsym_cmds \
12564 export_symbols_cmds \
12565 prelink_cmds \
12566 postlink_cmds \
12567 postinstall_cmds \
12568 postuninstall_cmds \
12569 finish_cmds \
12570 sys_lib_search_path_spec \
12571 sys_lib_dlsearch_path_spec; do
12572     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12573     *[\\\\\\\`\\"\\\$]*)
12574       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12575       ;;
12576     *)
12577       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12578       ;;
12579     esac
12580 done
12581
12582 ac_aux_dir='$ac_aux_dir'
12583 xsi_shell='$xsi_shell'
12584 lt_shell_append='$lt_shell_append'
12585
12586 # See if we are running on zsh, and set the options which allow our
12587 # commands through without removal of \ escapes INIT.
12588 if test -n "\${ZSH_VERSION+set}" ; then
12589    setopt NO_GLOB_SUBST
12590 fi
12591
12592
12593     PACKAGE='$PACKAGE'
12594     VERSION='$VERSION'
12595     TIMESTAMP='$TIMESTAMP'
12596     RM='$RM'
12597     ofile='$ofile'
12598
12599
12600
12601
12602 _ACEOF
12603
12604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12605
12606 # Handling of arguments.
12607 for ac_config_target in $ac_config_targets
12608 do
12609   case $ac_config_target in
12610     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12611     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12612     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12613     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12614     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12615
12616   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12617   esac
12618 done
12619
12620
12621 # If the user did not use the arguments to specify the items to instantiate,
12622 # then the envvar interface is used.  Set only those that are not.
12623 # We use the long form for the default assignment because of an extremely
12624 # bizarre bug on SunOS 4.1.3.
12625 if $ac_need_defaults; then
12626   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12627   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12628   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12629 fi
12630
12631 # Have a temporary directory for convenience.  Make it in the build tree
12632 # simply because there is no reason against having it here, and in addition,
12633 # creating and moving files from /tmp can sometimes cause problems.
12634 # Hook for its removal unless debugging.
12635 # Note that there is a small window in which the directory will not be cleaned:
12636 # after its creation but before its name has been assigned to `$tmp'.
12637 $debug ||
12638 {
12639   tmp= ac_tmp=
12640   trap 'exit_status=$?
12641   : "${ac_tmp:=$tmp}"
12642   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12643 ' 0
12644   trap 'as_fn_exit 1' 1 2 13 15
12645 }
12646 # Create a (secure) tmp directory for tmp files.
12647
12648 {
12649   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12650   test -d "$tmp"
12651 }  ||
12652 {
12653   tmp=./conf$$-$RANDOM
12654   (umask 077 && mkdir "$tmp")
12655 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12656 ac_tmp=$tmp
12657
12658 # Set up the scripts for CONFIG_FILES section.
12659 # No need to generate them if there are no CONFIG_FILES.
12660 # This happens for instance with `./config.status config.h'.
12661 if test -n "$CONFIG_FILES"; then
12662
12663
12664 ac_cr=`echo X | tr X '\015'`
12665 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12666 # But we know of no other shell where ac_cr would be empty at this
12667 # point, so we can use a bashism as a fallback.
12668 if test "x$ac_cr" = x; then
12669   eval ac_cr=\$\'\\r\'
12670 fi
12671 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12672 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12673   ac_cs_awk_cr='\\r'
12674 else
12675   ac_cs_awk_cr=$ac_cr
12676 fi
12677
12678 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12679 _ACEOF
12680
12681
12682 {
12683   echo "cat >conf$$subs.awk <<_ACEOF" &&
12684   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12685   echo "_ACEOF"
12686 } >conf$$subs.sh ||
12687   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12688 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12689 ac_delim='%!_!# '
12690 for ac_last_try in false false false false false :; do
12691   . ./conf$$subs.sh ||
12692     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12693
12694   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12695   if test $ac_delim_n = $ac_delim_num; then
12696     break
12697   elif $ac_last_try; then
12698     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12699   else
12700     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12701   fi
12702 done
12703 rm -f conf$$subs.sh
12704
12705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12706 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12707 _ACEOF
12708 sed -n '
12709 h
12710 s/^/S["/; s/!.*/"]=/
12711 p
12712 g
12713 s/^[^!]*!//
12714 :repl
12715 t repl
12716 s/'"$ac_delim"'$//
12717 t delim
12718 :nl
12719 h
12720 s/\(.\{148\}\)..*/\1/
12721 t more1
12722 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12723 p
12724 n
12725 b repl
12726 :more1
12727 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12728 p
12729 g
12730 s/.\{148\}//
12731 t nl
12732 :delim
12733 h
12734 s/\(.\{148\}\)..*/\1/
12735 t more2
12736 s/["\\]/\\&/g; s/^/"/; s/$/"/
12737 p
12738 b
12739 :more2
12740 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12741 p
12742 g
12743 s/.\{148\}//
12744 t delim
12745 ' <conf$$subs.awk | sed '
12746 /^[^""]/{
12747   N
12748   s/\n//
12749 }
12750 ' >>$CONFIG_STATUS || ac_write_fail=1
12751 rm -f conf$$subs.awk
12752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12753 _ACAWK
12754 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12755   for (key in S) S_is_set[key] = 1
12756   FS = "\a"
12757
12758 }
12759 {
12760   line = $ 0
12761   nfields = split(line, field, "@")
12762   substed = 0
12763   len = length(field[1])
12764   for (i = 2; i < nfields; i++) {
12765     key = field[i]
12766     keylen = length(key)
12767     if (S_is_set[key]) {
12768       value = S[key]
12769       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12770       len += length(value) + length(field[++i])
12771       substed = 1
12772     } else
12773       len += 1 + keylen
12774   }
12775
12776   print line
12777 }
12778
12779 _ACAWK
12780 _ACEOF
12781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12782 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12783   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12784 else
12785   cat
12786 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12787   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12788 _ACEOF
12789
12790 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12791 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12792 # trailing colons and then remove the whole line if VPATH becomes empty
12793 # (actually we leave an empty line to preserve line numbers).
12794 if test "x$srcdir" = x.; then
12795   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12796 h
12797 s///
12798 s/^/:/
12799 s/[      ]*$/:/
12800 s/:\$(srcdir):/:/g
12801 s/:\${srcdir}:/:/g
12802 s/:@srcdir@:/:/g
12803 s/^:*//
12804 s/:*$//
12805 x
12806 s/\(=[   ]*\).*/\1/
12807 G
12808 s/\n//
12809 s/^[^=]*=[       ]*$//
12810 }'
12811 fi
12812
12813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12814 fi # test -n "$CONFIG_FILES"
12815
12816 # Set up the scripts for CONFIG_HEADERS section.
12817 # No need to generate them if there are no CONFIG_HEADERS.
12818 # This happens for instance with `./config.status Makefile'.
12819 if test -n "$CONFIG_HEADERS"; then
12820 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12821 BEGIN {
12822 _ACEOF
12823
12824 # Transform confdefs.h into an awk script `defines.awk', embedded as
12825 # here-document in config.status, that substitutes the proper values into
12826 # config.h.in to produce config.h.
12827
12828 # Create a delimiter string that does not exist in confdefs.h, to ease
12829 # handling of long lines.
12830 ac_delim='%!_!# '
12831 for ac_last_try in false false :; do
12832   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12833   if test -z "$ac_tt"; then
12834     break
12835   elif $ac_last_try; then
12836     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12837   else
12838     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12839   fi
12840 done
12841
12842 # For the awk script, D is an array of macro values keyed by name,
12843 # likewise P contains macro parameters if any.  Preserve backslash
12844 # newline sequences.
12845
12846 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12847 sed -n '
12848 s/.\{148\}/&'"$ac_delim"'/g
12849 t rset
12850 :rset
12851 s/^[     ]*#[    ]*define[       ][      ]*/ /
12852 t def
12853 d
12854 :def
12855 s/\\$//
12856 t bsnl
12857 s/["\\]/\\&/g
12858 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12859 D["\1"]=" \3"/p
12860 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12861 d
12862 :bsnl
12863 s/["\\]/\\&/g
12864 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12865 D["\1"]=" \3\\\\\\n"\\/p
12866 t cont
12867 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12868 t cont
12869 d
12870 :cont
12871 n
12872 s/.\{148\}/&'"$ac_delim"'/g
12873 t clear
12874 :clear
12875 s/\\$//
12876 t bsnlc
12877 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12878 d
12879 :bsnlc
12880 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12881 b cont
12882 ' <confdefs.h | sed '
12883 s/'"$ac_delim"'/"\\\
12884 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12885
12886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12887   for (key in D) D_is_set[key] = 1
12888   FS = "\a"
12889 }
12890 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12891   line = \$ 0
12892   split(line, arg, " ")
12893   if (arg[1] == "#") {
12894     defundef = arg[2]
12895     mac1 = arg[3]
12896   } else {
12897     defundef = substr(arg[1], 2)
12898     mac1 = arg[2]
12899   }
12900   split(mac1, mac2, "(") #)
12901   macro = mac2[1]
12902   prefix = substr(line, 1, index(line, defundef) - 1)
12903   if (D_is_set[macro]) {
12904     # Preserve the white space surrounding the "#".
12905     print prefix "define", macro P[macro] D[macro]
12906     next
12907   } else {
12908     # Replace #undef with comments.  This is necessary, for example,
12909     # in the case of _POSIX_SOURCE, which is predefined and required
12910     # on some systems where configure will not decide to define it.
12911     if (defundef == "undef") {
12912       print "/*", prefix defundef, macro, "*/"
12913       next
12914     }
12915   }
12916 }
12917 { print }
12918 _ACAWK
12919 _ACEOF
12920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12921   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12922 fi # test -n "$CONFIG_HEADERS"
12923
12924
12925 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12926 shift
12927 for ac_tag
12928 do
12929   case $ac_tag in
12930   :[FHLC]) ac_mode=$ac_tag; continue;;
12931   esac
12932   case $ac_mode$ac_tag in
12933   :[FHL]*:*);;
12934   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12935   :[FH]-) ac_tag=-:-;;
12936   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12937   esac
12938   ac_save_IFS=$IFS
12939   IFS=:
12940   set x $ac_tag
12941   IFS=$ac_save_IFS
12942   shift
12943   ac_file=$1
12944   shift
12945
12946   case $ac_mode in
12947   :L) ac_source=$1;;
12948   :[FH])
12949     ac_file_inputs=
12950     for ac_f
12951     do
12952       case $ac_f in
12953       -) ac_f="$ac_tmp/stdin";;
12954       *) # Look for the file first in the build tree, then in the source tree
12955          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12956          # because $ac_f cannot contain `:'.
12957          test -f "$ac_f" ||
12958            case $ac_f in
12959            [\\/$]*) false;;
12960            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12961            esac ||
12962            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12963       esac
12964       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12965       as_fn_append ac_file_inputs " '$ac_f'"
12966     done
12967
12968     # Let's still pretend it is `configure' which instantiates (i.e., don't
12969     # use $as_me), people would be surprised to read:
12970     #    /* config.h.  Generated by config.status.  */
12971     configure_input='Generated from '`
12972           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12973         `' by configure.'
12974     if test x"$ac_file" != x-; then
12975       configure_input="$ac_file.  $configure_input"
12976       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12977 $as_echo "$as_me: creating $ac_file" >&6;}
12978     fi
12979     # Neutralize special characters interpreted by sed in replacement strings.
12980     case $configure_input in #(
12981     *\&* | *\|* | *\\* )
12982        ac_sed_conf_input=`$as_echo "$configure_input" |
12983        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12984     *) ac_sed_conf_input=$configure_input;;
12985     esac
12986
12987     case $ac_tag in
12988     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12989       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12990     esac
12991     ;;
12992   esac
12993
12994   ac_dir=`$as_dirname -- "$ac_file" ||
12995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12996          X"$ac_file" : 'X\(//\)[^/]' \| \
12997          X"$ac_file" : 'X\(//\)$' \| \
12998          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12999 $as_echo X"$ac_file" |
13000     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13001             s//\1/
13002             q
13003           }
13004           /^X\(\/\/\)[^/].*/{
13005             s//\1/
13006             q
13007           }
13008           /^X\(\/\/\)$/{
13009             s//\1/
13010             q
13011           }
13012           /^X\(\/\).*/{
13013             s//\1/
13014             q
13015           }
13016           s/.*/./; q'`
13017   as_dir="$ac_dir"; as_fn_mkdir_p
13018   ac_builddir=.
13019
13020 case "$ac_dir" in
13021 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13022 *)
13023   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13024   # A ".." for each directory in $ac_dir_suffix.
13025   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13026   case $ac_top_builddir_sub in
13027   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13028   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13029   esac ;;
13030 esac
13031 ac_abs_top_builddir=$ac_pwd
13032 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13033 # for backward compatibility:
13034 ac_top_builddir=$ac_top_build_prefix
13035
13036 case $srcdir in
13037   .)  # We are building in place.
13038     ac_srcdir=.
13039     ac_top_srcdir=$ac_top_builddir_sub
13040     ac_abs_top_srcdir=$ac_pwd ;;
13041   [\\/]* | ?:[\\/]* )  # Absolute name.
13042     ac_srcdir=$srcdir$ac_dir_suffix;
13043     ac_top_srcdir=$srcdir
13044     ac_abs_top_srcdir=$srcdir ;;
13045   *) # Relative name.
13046     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13047     ac_top_srcdir=$ac_top_build_prefix$srcdir
13048     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13049 esac
13050 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13051
13052
13053   case $ac_mode in
13054   :F)
13055   #
13056   # CONFIG_FILE
13057   #
13058
13059   case $INSTALL in
13060   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13061   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13062   esac
13063   ac_MKDIR_P=$MKDIR_P
13064   case $MKDIR_P in
13065   [\\/$]* | ?:[\\/]* ) ;;
13066   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13067   esac
13068 _ACEOF
13069
13070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13071 # If the template does not know about datarootdir, expand it.
13072 # FIXME: This hack should be removed a few years after 2.60.
13073 ac_datarootdir_hack=; ac_datarootdir_seen=
13074 ac_sed_dataroot='
13075 /datarootdir/ {
13076   p
13077   q
13078 }
13079 /@datadir@/p
13080 /@docdir@/p
13081 /@infodir@/p
13082 /@localedir@/p
13083 /@mandir@/p'
13084 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13085 *datarootdir*) ac_datarootdir_seen=yes;;
13086 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13087   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13088 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13089 _ACEOF
13090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13091   ac_datarootdir_hack='
13092   s&@datadir@&$datadir&g
13093   s&@docdir@&$docdir&g
13094   s&@infodir@&$infodir&g
13095   s&@localedir@&$localedir&g
13096   s&@mandir@&$mandir&g
13097   s&\\\${datarootdir}&$datarootdir&g' ;;
13098 esac
13099 _ACEOF
13100
13101 # Neutralize VPATH when `$srcdir' = `.'.
13102 # Shell code in configure.ac might set extrasub.
13103 # FIXME: do we really want to maintain this feature?
13104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13105 ac_sed_extra="$ac_vpsub
13106 $extrasub
13107 _ACEOF
13108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13109 :t
13110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13111 s|@configure_input@|$ac_sed_conf_input|;t t
13112 s&@top_builddir@&$ac_top_builddir_sub&;t t
13113 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13114 s&@srcdir@&$ac_srcdir&;t t
13115 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13116 s&@top_srcdir@&$ac_top_srcdir&;t t
13117 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13118 s&@builddir@&$ac_builddir&;t t
13119 s&@abs_builddir@&$ac_abs_builddir&;t t
13120 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13121 s&@INSTALL@&$ac_INSTALL&;t t
13122 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13123 $ac_datarootdir_hack
13124 "
13125 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13126   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13127
13128 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13129   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13130   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13131       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13132   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13133 which seems to be undefined.  Please make sure it is defined" >&5
13134 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13135 which seems to be undefined.  Please make sure it is defined" >&2;}
13136
13137   rm -f "$ac_tmp/stdin"
13138   case $ac_file in
13139   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13140   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13141   esac \
13142   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13143  ;;
13144   :H)
13145   #
13146   # CONFIG_HEADER
13147   #
13148   if test x"$ac_file" != x-; then
13149     {
13150       $as_echo "/* $configure_input  */" \
13151       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13152     } >"$ac_tmp/config.h" \
13153       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13154     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13155       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13156 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13157     else
13158       rm -f "$ac_file"
13159       mv "$ac_tmp/config.h" "$ac_file" \
13160         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13161     fi
13162   else
13163     $as_echo "/* $configure_input  */" \
13164       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13165       || as_fn_error $? "could not create -" "$LINENO" 5
13166   fi
13167 # Compute "$ac_file"'s index in $config_headers.
13168 _am_arg="$ac_file"
13169 _am_stamp_count=1
13170 for _am_header in $config_headers :; do
13171   case $_am_header in
13172     $_am_arg | $_am_arg:* )
13173       break ;;
13174     * )
13175       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13176   esac
13177 done
13178 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13179 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13180          X"$_am_arg" : 'X\(//\)[^/]' \| \
13181          X"$_am_arg" : 'X\(//\)$' \| \
13182          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13183 $as_echo X"$_am_arg" |
13184     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13185             s//\1/
13186             q
13187           }
13188           /^X\(\/\/\)[^/].*/{
13189             s//\1/
13190             q
13191           }
13192           /^X\(\/\/\)$/{
13193             s//\1/
13194             q
13195           }
13196           /^X\(\/\).*/{
13197             s//\1/
13198             q
13199           }
13200           s/.*/./; q'`/stamp-h$_am_stamp_count
13201  ;;
13202
13203   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13204 $as_echo "$as_me: executing $ac_file commands" >&6;}
13205  ;;
13206   esac
13207
13208
13209   case $ac_file$ac_mode in
13210     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13211   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13212   # are listed without --file.  Let's play safe and only enable the eval
13213   # if we detect the quoting.
13214   case $CONFIG_FILES in
13215   *\'*) eval set x "$CONFIG_FILES" ;;
13216   *)   set x $CONFIG_FILES ;;
13217   esac
13218   shift
13219   for mf
13220   do
13221     # Strip MF so we end up with the name of the file.
13222     mf=`echo "$mf" | sed -e 's/:.*$//'`
13223     # Check whether this is an Automake generated Makefile or not.
13224     # We used to match only the files named `Makefile.in', but
13225     # some people rename them; so instead we look at the file content.
13226     # Grep'ing the first line is not enough: some people post-process
13227     # each Makefile.in and add a new line on top of each file to say so.
13228     # Grep'ing the whole file is not good either: AIX grep has a line
13229     # limit of 2048, but all sed's we know have understand at least 4000.
13230     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13231       dirpart=`$as_dirname -- "$mf" ||
13232 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13233          X"$mf" : 'X\(//\)[^/]' \| \
13234          X"$mf" : 'X\(//\)$' \| \
13235          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13236 $as_echo X"$mf" |
13237     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13238             s//\1/
13239             q
13240           }
13241           /^X\(\/\/\)[^/].*/{
13242             s//\1/
13243             q
13244           }
13245           /^X\(\/\/\)$/{
13246             s//\1/
13247             q
13248           }
13249           /^X\(\/\).*/{
13250             s//\1/
13251             q
13252           }
13253           s/.*/./; q'`
13254     else
13255       continue
13256     fi
13257     # Extract the definition of DEPDIR, am__include, and am__quote
13258     # from the Makefile without running `make'.
13259     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13260     test -z "$DEPDIR" && continue
13261     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13262     test -z "am__include" && continue
13263     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13264     # When using ansi2knr, U may be empty or an underscore; expand it
13265     U=`sed -n 's/^U = //p' < "$mf"`
13266     # Find all dependency output files, they are included files with
13267     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13268     # simplest approach to changing $(DEPDIR) to its actual value in the
13269     # expansion.
13270     for file in `sed -n "
13271       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13272          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13273       # Make sure the directory exists.
13274       test -f "$dirpart/$file" && continue
13275       fdir=`$as_dirname -- "$file" ||
13276 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13277          X"$file" : 'X\(//\)[^/]' \| \
13278          X"$file" : 'X\(//\)$' \| \
13279          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13280 $as_echo X"$file" |
13281     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13282             s//\1/
13283             q
13284           }
13285           /^X\(\/\/\)[^/].*/{
13286             s//\1/
13287             q
13288           }
13289           /^X\(\/\/\)$/{
13290             s//\1/
13291             q
13292           }
13293           /^X\(\/\).*/{
13294             s//\1/
13295             q
13296           }
13297           s/.*/./; q'`
13298       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13299       # echo "creating $dirpart/$file"
13300       echo '# dummy' > "$dirpart/$file"
13301     done
13302   done
13303 }
13304  ;;
13305     "libtool":C)
13306
13307     # See if we are running on zsh, and set the options which allow our
13308     # commands through without removal of \ escapes.
13309     if test -n "${ZSH_VERSION+set}" ; then
13310       setopt NO_GLOB_SUBST
13311     fi
13312
13313     cfgfile="${ofile}T"
13314     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13315     $RM "$cfgfile"
13316
13317     cat <<_LT_EOF >> "$cfgfile"
13318 #! $SHELL
13319
13320 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13321 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13322 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13323 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13324 #
13325 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13326 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13327 #                 Foundation, Inc.
13328 #   Written by Gordon Matzigkeit, 1996
13329 #
13330 #   This file is part of GNU Libtool.
13331 #
13332 # GNU Libtool is free software; you can redistribute it and/or
13333 # modify it under the terms of the GNU General Public License as
13334 # published by the Free Software Foundation; either version 2 of
13335 # the License, or (at your option) any later version.
13336 #
13337 # As a special exception to the GNU General Public License,
13338 # if you distribute this file as part of a program or library that
13339 # is built using GNU Libtool, you may include this file under the
13340 # same distribution terms that you use for the rest of that program.
13341 #
13342 # GNU Libtool is distributed in the hope that it will be useful,
13343 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13344 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13345 # GNU General Public License for more details.
13346 #
13347 # You should have received a copy of the GNU General Public License
13348 # along with GNU Libtool; see the file COPYING.  If not, a copy
13349 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13350 # obtained by writing to the Free Software Foundation, Inc.,
13351 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13352
13353
13354 # The names of the tagged configurations supported by this script.
13355 available_tags=""
13356
13357 # ### BEGIN LIBTOOL CONFIG
13358
13359 # Which release of libtool.m4 was used?
13360 macro_version=$macro_version
13361 macro_revision=$macro_revision
13362
13363 # Whether or not to build shared libraries.
13364 build_libtool_libs=$enable_shared
13365
13366 # Whether or not to build static libraries.
13367 build_old_libs=$enable_static
13368
13369 # What type of objects to build.
13370 pic_mode=$pic_mode
13371
13372 # Whether or not to optimize for fast installation.
13373 fast_install=$enable_fast_install
13374
13375 # Shell to use when invoking shell scripts.
13376 SHELL=$lt_SHELL
13377
13378 # An echo program that protects backslashes.
13379 ECHO=$lt_ECHO
13380
13381 # The PATH separator for the build system.
13382 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13383
13384 # The host system.
13385 host_alias=$host_alias
13386 host=$host
13387 host_os=$host_os
13388
13389 # The build system.
13390 build_alias=$build_alias
13391 build=$build
13392 build_os=$build_os
13393
13394 # A sed program that does not truncate output.
13395 SED=$lt_SED
13396
13397 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13398 Xsed="\$SED -e 1s/^X//"
13399
13400 # A grep program that handles long lines.
13401 GREP=$lt_GREP
13402
13403 # An ERE matcher.
13404 EGREP=$lt_EGREP
13405
13406 # A literal string matcher.
13407 FGREP=$lt_FGREP
13408
13409 # A BSD- or MS-compatible name lister.
13410 NM=$lt_NM
13411
13412 # Whether we need soft or hard links.
13413 LN_S=$lt_LN_S
13414
13415 # What is the maximum length of a command?
13416 max_cmd_len=$max_cmd_len
13417
13418 # Object file suffix (normally "o").
13419 objext=$ac_objext
13420
13421 # Executable file suffix (normally "").
13422 exeext=$exeext
13423
13424 # whether the shell understands "unset".
13425 lt_unset=$lt_unset
13426
13427 # turn spaces into newlines.
13428 SP2NL=$lt_lt_SP2NL
13429
13430 # turn newlines into spaces.
13431 NL2SP=$lt_lt_NL2SP
13432
13433 # convert \$build file names to \$host format.
13434 to_host_file_cmd=$lt_cv_to_host_file_cmd
13435
13436 # convert \$build files to toolchain format.
13437 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13438
13439 # An object symbol dumper.
13440 OBJDUMP=$lt_OBJDUMP
13441
13442 # Method to check whether dependent libraries are shared objects.
13443 deplibs_check_method=$lt_deplibs_check_method
13444
13445 # Command to use when deplibs_check_method = "file_magic".
13446 file_magic_cmd=$lt_file_magic_cmd
13447
13448 # How to find potential files when deplibs_check_method = "file_magic".
13449 file_magic_glob=$lt_file_magic_glob
13450
13451 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13452 want_nocaseglob=$lt_want_nocaseglob
13453
13454 # DLL creation program.
13455 DLLTOOL=$lt_DLLTOOL
13456
13457 # Command to associate shared and link libraries.
13458 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13459
13460 # The archiver.
13461 AR=$lt_AR
13462
13463 # Flags to create an archive.
13464 AR_FLAGS=$lt_AR_FLAGS
13465
13466 # How to feed a file listing to the archiver.
13467 archiver_list_spec=$lt_archiver_list_spec
13468
13469 # A symbol stripping program.
13470 STRIP=$lt_STRIP
13471
13472 # Commands used to install an old-style archive.
13473 RANLIB=$lt_RANLIB
13474 old_postinstall_cmds=$lt_old_postinstall_cmds
13475 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13476
13477 # Whether to use a lock for old archive extraction.
13478 lock_old_archive_extraction=$lock_old_archive_extraction
13479
13480 # A C compiler.
13481 LTCC=$lt_CC
13482
13483 # LTCC compiler flags.
13484 LTCFLAGS=$lt_CFLAGS
13485
13486 # Take the output of nm and produce a listing of raw symbols and C names.
13487 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13488
13489 # Transform the output of nm in a proper C declaration.
13490 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13491
13492 # Transform the output of nm in a C name address pair.
13493 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13494
13495 # Transform the output of nm in a C name address pair when lib prefix is needed.
13496 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13497
13498 # Specify filename containing input files for \$NM.
13499 nm_file_list_spec=$lt_nm_file_list_spec
13500
13501 # The root where to search for dependent libraries,and in which our libraries should be installed.
13502 lt_sysroot=$lt_sysroot
13503
13504 # The name of the directory that contains temporary libtool files.
13505 objdir=$objdir
13506
13507 # Used to examine libraries when file_magic_cmd begins with "file".
13508 MAGIC_CMD=$MAGIC_CMD
13509
13510 # Must we lock files when doing compilation?
13511 need_locks=$lt_need_locks
13512
13513 # Manifest tool.
13514 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13515
13516 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13517 DSYMUTIL=$lt_DSYMUTIL
13518
13519 # Tool to change global to local symbols on Mac OS X.
13520 NMEDIT=$lt_NMEDIT
13521
13522 # Tool to manipulate fat objects and archives on Mac OS X.
13523 LIPO=$lt_LIPO
13524
13525 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13526 OTOOL=$lt_OTOOL
13527
13528 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13529 OTOOL64=$lt_OTOOL64
13530
13531 # Old archive suffix (normally "a").
13532 libext=$libext
13533
13534 # Shared library suffix (normally ".so").
13535 shrext_cmds=$lt_shrext_cmds
13536
13537 # The commands to extract the exported symbol list from a shared archive.
13538 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13539
13540 # Variables whose values should be saved in libtool wrapper scripts and
13541 # restored at link time.
13542 variables_saved_for_relink=$lt_variables_saved_for_relink
13543
13544 # Do we need the "lib" prefix for modules?
13545 need_lib_prefix=$need_lib_prefix
13546
13547 # Do we need a version for libraries?
13548 need_version=$need_version
13549
13550 # Library versioning type.
13551 version_type=$version_type
13552
13553 # Shared library runtime path variable.
13554 runpath_var=$runpath_var
13555
13556 # Shared library path variable.
13557 shlibpath_var=$shlibpath_var
13558
13559 # Is shlibpath searched before the hard-coded library search path?
13560 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13561
13562 # Format of library name prefix.
13563 libname_spec=$lt_libname_spec
13564
13565 # List of archive names.  First name is the real one, the rest are links.
13566 # The last name is the one that the linker finds with -lNAME
13567 library_names_spec=$lt_library_names_spec
13568
13569 # The coded name of the library, if different from the real name.
13570 soname_spec=$lt_soname_spec
13571
13572 # Permission mode override for installation of shared libraries.
13573 install_override_mode=$lt_install_override_mode
13574
13575 # Command to use after installation of a shared archive.
13576 postinstall_cmds=$lt_postinstall_cmds
13577
13578 # Command to use after uninstallation of a shared archive.
13579 postuninstall_cmds=$lt_postuninstall_cmds
13580
13581 # Commands used to finish a libtool library installation in a directory.
13582 finish_cmds=$lt_finish_cmds
13583
13584 # As "finish_cmds", except a single script fragment to be evaled but
13585 # not shown.
13586 finish_eval=$lt_finish_eval
13587
13588 # Whether we should hardcode library paths into libraries.
13589 hardcode_into_libs=$hardcode_into_libs
13590
13591 # Compile-time system search path for libraries.
13592 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13593
13594 # Run-time system search path for libraries.
13595 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13596
13597 # Whether dlopen is supported.
13598 dlopen_support=$enable_dlopen
13599
13600 # Whether dlopen of programs is supported.
13601 dlopen_self=$enable_dlopen_self
13602
13603 # Whether dlopen of statically linked programs is supported.
13604 dlopen_self_static=$enable_dlopen_self_static
13605
13606 # Commands to strip libraries.
13607 old_striplib=$lt_old_striplib
13608 striplib=$lt_striplib
13609
13610
13611 # The linker used to build libraries.
13612 LD=$lt_LD
13613
13614 # How to create reloadable object files.
13615 reload_flag=$lt_reload_flag
13616 reload_cmds=$lt_reload_cmds
13617
13618 # Commands used to build an old-style archive.
13619 old_archive_cmds=$lt_old_archive_cmds
13620
13621 # A language specific compiler.
13622 CC=$lt_compiler
13623
13624 # Is the compiler the GNU compiler?
13625 with_gcc=$GCC
13626
13627 # Compiler flag to turn off builtin functions.
13628 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13629
13630 # Additional compiler flags for building library objects.
13631 pic_flag=$lt_lt_prog_compiler_pic
13632
13633 # How to pass a linker flag through the compiler.
13634 wl=$lt_lt_prog_compiler_wl
13635
13636 # Compiler flag to prevent dynamic linking.
13637 link_static_flag=$lt_lt_prog_compiler_static
13638
13639 # Does compiler simultaneously support -c and -o options?
13640 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13641
13642 # Whether or not to add -lc for building shared libraries.
13643 build_libtool_need_lc=$archive_cmds_need_lc
13644
13645 # Whether or not to disallow shared libs when runtime libs are static.
13646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13647
13648 # Compiler flag to allow reflexive dlopens.
13649 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13650
13651 # Compiler flag to generate shared objects directly from archives.
13652 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13653
13654 # Whether the compiler copes with passing no objects directly.
13655 compiler_needs_object=$lt_compiler_needs_object
13656
13657 # Create an old-style archive from a shared archive.
13658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13659
13660 # Create a temporary old-style archive to link instead of a shared archive.
13661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13662
13663 # Commands used to build a shared archive.
13664 archive_cmds=$lt_archive_cmds
13665 archive_expsym_cmds=$lt_archive_expsym_cmds
13666
13667 # Commands used to build a loadable module if different from building
13668 # a shared archive.
13669 module_cmds=$lt_module_cmds
13670 module_expsym_cmds=$lt_module_expsym_cmds
13671
13672 # Whether we are building with GNU ld or not.
13673 with_gnu_ld=$lt_with_gnu_ld
13674
13675 # Flag that allows shared libraries with undefined symbols to be built.
13676 allow_undefined_flag=$lt_allow_undefined_flag
13677
13678 # Flag that enforces no undefined symbols.
13679 no_undefined_flag=$lt_no_undefined_flag
13680
13681 # Flag to hardcode \$libdir into a binary during linking.
13682 # This must work even if \$libdir does not exist
13683 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13684
13685 # Whether we need a single "-rpath" flag with a separated argument.
13686 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13687
13688 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13689 # DIR into the resulting binary.
13690 hardcode_direct=$hardcode_direct
13691
13692 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13693 # DIR into the resulting binary and the resulting library dependency is
13694 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13695 # library is relocated.
13696 hardcode_direct_absolute=$hardcode_direct_absolute
13697
13698 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13699 # into the resulting binary.
13700 hardcode_minus_L=$hardcode_minus_L
13701
13702 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13703 # into the resulting binary.
13704 hardcode_shlibpath_var=$hardcode_shlibpath_var
13705
13706 # Set to "yes" if building a shared library automatically hardcodes DIR
13707 # into the library and all subsequent libraries and executables linked
13708 # against it.
13709 hardcode_automatic=$hardcode_automatic
13710
13711 # Set to yes if linker adds runtime paths of dependent libraries
13712 # to runtime path list.
13713 inherit_rpath=$inherit_rpath
13714
13715 # Whether libtool must link a program against all its dependency libraries.
13716 link_all_deplibs=$link_all_deplibs
13717
13718 # Set to "yes" if exported symbols are required.
13719 always_export_symbols=$always_export_symbols
13720
13721 # The commands to list exported symbols.
13722 export_symbols_cmds=$lt_export_symbols_cmds
13723
13724 # Symbols that should not be listed in the preloaded symbols.
13725 exclude_expsyms=$lt_exclude_expsyms
13726
13727 # Symbols that must always be exported.
13728 include_expsyms=$lt_include_expsyms
13729
13730 # Commands necessary for linking programs (against libraries) with templates.
13731 prelink_cmds=$lt_prelink_cmds
13732
13733 # Commands necessary for finishing linking programs.
13734 postlink_cmds=$lt_postlink_cmds
13735
13736 # Specify filename containing input files.
13737 file_list_spec=$lt_file_list_spec
13738
13739 # How to hardcode a shared library path into an executable.
13740 hardcode_action=$hardcode_action
13741
13742 # ### END LIBTOOL CONFIG
13743
13744 _LT_EOF
13745
13746   case $host_os in
13747   aix3*)
13748     cat <<\_LT_EOF >> "$cfgfile"
13749 # AIX sometimes has problems with the GCC collect2 program.  For some
13750 # reason, if we set the COLLECT_NAMES environment variable, the problems
13751 # vanish in a puff of smoke.
13752 if test "X${COLLECT_NAMES+set}" != Xset; then
13753   COLLECT_NAMES=
13754   export COLLECT_NAMES
13755 fi
13756 _LT_EOF
13757     ;;
13758   esac
13759
13760
13761 ltmain="$ac_aux_dir/ltmain.sh"
13762
13763
13764   # We use sed instead of cat because bash on DJGPP gets confused if
13765   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13766   # text mode, it properly converts lines to CR/LF.  This bash problem
13767   # is reportedly fixed, but why not run on old versions too?
13768   sed '$q' "$ltmain" >> "$cfgfile" \
13769      || (rm -f "$cfgfile"; exit 1)
13770
13771   if test x"$xsi_shell" = xyes; then
13772   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13773 func_dirname ()\
13774 {\
13775 \    case ${1} in\
13776 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13777 \      *  ) func_dirname_result="${3}" ;;\
13778 \    esac\
13779 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13780   && mv -f "$cfgfile.tmp" "$cfgfile" \
13781     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13782 test 0 -eq $? || _lt_function_replace_fail=:
13783
13784
13785   sed -e '/^func_basename ()$/,/^} # func_basename /c\
13786 func_basename ()\
13787 {\
13788 \    func_basename_result="${1##*/}"\
13789 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13790   && mv -f "$cfgfile.tmp" "$cfgfile" \
13791     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13792 test 0 -eq $? || _lt_function_replace_fail=:
13793
13794
13795   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13796 func_dirname_and_basename ()\
13797 {\
13798 \    case ${1} in\
13799 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13800 \      *  ) func_dirname_result="${3}" ;;\
13801 \    esac\
13802 \    func_basename_result="${1##*/}"\
13803 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13804   && mv -f "$cfgfile.tmp" "$cfgfile" \
13805     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13806 test 0 -eq $? || _lt_function_replace_fail=:
13807
13808
13809   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13810 func_stripname ()\
13811 {\
13812 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13813 \    # positional parameters, so assign one to ordinary parameter first.\
13814 \    func_stripname_result=${3}\
13815 \    func_stripname_result=${func_stripname_result#"${1}"}\
13816 \    func_stripname_result=${func_stripname_result%"${2}"}\
13817 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13818   && mv -f "$cfgfile.tmp" "$cfgfile" \
13819     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13820 test 0 -eq $? || _lt_function_replace_fail=:
13821
13822
13823   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13824 func_split_long_opt ()\
13825 {\
13826 \    func_split_long_opt_name=${1%%=*}\
13827 \    func_split_long_opt_arg=${1#*=}\
13828 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13829   && mv -f "$cfgfile.tmp" "$cfgfile" \
13830     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13831 test 0 -eq $? || _lt_function_replace_fail=:
13832
13833
13834   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13835 func_split_short_opt ()\
13836 {\
13837 \    func_split_short_opt_arg=${1#??}\
13838 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13839 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13840   && mv -f "$cfgfile.tmp" "$cfgfile" \
13841     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13842 test 0 -eq $? || _lt_function_replace_fail=:
13843
13844
13845   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13846 func_lo2o ()\
13847 {\
13848 \    case ${1} in\
13849 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13850 \      *)    func_lo2o_result=${1} ;;\
13851 \    esac\
13852 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13853   && mv -f "$cfgfile.tmp" "$cfgfile" \
13854     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13855 test 0 -eq $? || _lt_function_replace_fail=:
13856
13857
13858   sed -e '/^func_xform ()$/,/^} # func_xform /c\
13859 func_xform ()\
13860 {\
13861     func_xform_result=${1%.*}.lo\
13862 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13863   && mv -f "$cfgfile.tmp" "$cfgfile" \
13864     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13865 test 0 -eq $? || _lt_function_replace_fail=:
13866
13867
13868   sed -e '/^func_arith ()$/,/^} # func_arith /c\
13869 func_arith ()\
13870 {\
13871     func_arith_result=$(( $* ))\
13872 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13873   && mv -f "$cfgfile.tmp" "$cfgfile" \
13874     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13875 test 0 -eq $? || _lt_function_replace_fail=:
13876
13877
13878   sed -e '/^func_len ()$/,/^} # func_len /c\
13879 func_len ()\
13880 {\
13881     func_len_result=${#1}\
13882 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13883   && mv -f "$cfgfile.tmp" "$cfgfile" \
13884     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13885 test 0 -eq $? || _lt_function_replace_fail=:
13886
13887 fi
13888
13889 if test x"$lt_shell_append" = xyes; then
13890   sed -e '/^func_append ()$/,/^} # func_append /c\
13891 func_append ()\
13892 {\
13893     eval "${1}+=\\${2}"\
13894 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13895   && mv -f "$cfgfile.tmp" "$cfgfile" \
13896     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13897 test 0 -eq $? || _lt_function_replace_fail=:
13898
13899
13900   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13901 func_append_quoted ()\
13902 {\
13903 \    func_quote_for_eval "${2}"\
13904 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13905 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13906   && mv -f "$cfgfile.tmp" "$cfgfile" \
13907     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13908 test 0 -eq $? || _lt_function_replace_fail=:
13909
13910
13911   # Save a `func_append' function call where possible by direct use of '+='
13912   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13913     && mv -f "$cfgfile.tmp" "$cfgfile" \
13914       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13915   test 0 -eq $? || _lt_function_replace_fail=:
13916 else
13917   # Save a `func_append' function call even when '+=' is not available
13918   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13919     && mv -f "$cfgfile.tmp" "$cfgfile" \
13920       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13921   test 0 -eq $? || _lt_function_replace_fail=:
13922 fi
13923
13924 if test x"$_lt_function_replace_fail" = x":"; then
13925   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13926 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13927 fi
13928
13929
13930    mv -f "$cfgfile" "$ofile" ||
13931     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13932   chmod +x "$ofile"
13933
13934  ;;
13935
13936   esac
13937 done # for ac_tag
13938
13939
13940 as_fn_exit 0
13941 _ACEOF
13942 ac_clean_files=$ac_clean_files_save
13943
13944 test $ac_write_fail = 0 ||
13945   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13946
13947
13948 # configure is writing to config.log, and then calls config.status.
13949 # config.status does its own redirection, appending to config.log.
13950 # Unfortunately, on DOS this fails, as config.log is still kept open
13951 # by configure, so config.status won't be able to write to it; its
13952 # output is simply discarded.  So we exec the FD to /dev/null,
13953 # effectively closing config.log, so it can be properly (re)opened and
13954 # appended to by config.status.  When coming back to configure, we
13955 # need to make the FD available again.
13956 if test "$no_create" != yes; then
13957   ac_cs_success=:
13958   ac_config_status_args=
13959   test "$silent" = yes &&
13960     ac_config_status_args="$ac_config_status_args --quiet"
13961   exec 5>/dev/null
13962   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13963   exec 5>>config.log
13964   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13965   # would make configure fail if this is the last instruction.
13966   $ac_cs_success || as_fn_exit 1
13967 fi
13968 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13969   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13970 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13971 fi
13972